ceill-ieee: Make it work on OSF/1 5.1 with cc.
[gnulib.git] / ChangeLog
1 2010-12-25  Bruno Haible  <bruno@clisp.org>
2
3         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6         test whether ceill works according to ISO C 99 with IEC 60559.
7         * m4/ceill-ieee.m4: New file.
8         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9         m4/signbit.m4.
10         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11
12 2010-12-25  Bruno Haible  <bruno@clisp.org>
13
14         Ensure all prerequisites of <wchar.h> are included.
15         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16         before <wchar.h>.
17         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18         gl_MBRLEN_NUL_RETVAL): Likewise.
19         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21         AC_FUNC_MBRTOWC): Likewise.
22         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26         Likewise.
27         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
29         (gl_WCHAR_H): Improve comments.
30         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
31
32 2010-12-25  Bruno Haible  <bruno@clisp.org>
33
34         strtok_r: Fix C syntax error in autoconf macro.
35         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
36         characters in test program.
37
38 2010-12-24  Bruno Haible  <bruno@clisp.org>
39
40         ceil, trunc, round: Fix gcc warnings.
41         * lib/ceil.c (MIN): Undefine before redefining.
42         * lib/trunc.c (MIN): Likewise.
43         * lib/round.c (MIN): Likewise.
44         Include <math.h> first.
45
46 2010-12-24  Bruno Haible  <bruno@clisp.org>
47
48         select tests: Avoid failures on OSF/1 5.1.
49         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
50         failure of closing the last socket; it may fail with ECONNRESET.
51
52 2010-12-24  Eric Blake  <eblake@redhat.com>
53
54         stdint: avoid HP-UX 10.20 preprocessor bug
55         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
56         than #if.
57         * tests/test-floor2.c (main): Likewise.
58         Reported by Peter O'Gorman.
59
60         pipe: make obsoletion transition easier
61         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62         * modules/pipe (Files): Include revived file.
63         (Include): Drop reference, to mirror getdate's behavior.
64
65 2010-12-24  Bruno Haible  <bruno@clisp.org>
66
67         sys_socket: Hide mismatch of declarations on NonStop Kernel.
68         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
69         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
70         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
71
72 2010-12-24  Bruno Haible  <bruno@clisp.org>
73
74         gethostname: Ensure declaration on NonStop Kernel.
75         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
76         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
77
78 2010-12-24  Bruno Haible  <bruno@clisp.org>
79
80         sys_select: Ensure all necessary types on NonStop Kernel.
81         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
82         include <sys/time.h>.
83         * doc/posix-headers/sys_select.texi: Mention that it's missing on
84         NonStop Kernel.
85         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
86
87 2010-12-24  Bruno Haible  <bruno@clisp.org>
88
89         sys_select: Remove unneeded include.
90         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
91         have <sys/select.h>.
92
93 2010-12-24  Bruno Haible  <bruno@clisp.org>
94
95         gethostname: Provide a fallback for HOST_NAME_MAX.
96         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
97         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
98         instead.
99         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
100
101 2010-12-24  Bruno Haible  <bruno@clisp.org>
102
103         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
104         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
105         (SA_RESTART): Likewise.
106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
107
108 2010-12-24  Bruno Haible  <bruno@clisp.org>
109
110         signal: Define NSIG.
111         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
112         * tests/test-signal.c (nsig): New variable.
113         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
114
115 2010-12-24  Bruno Haible  <bruno@clisp.org>
116
117         rename, renameat: Avoid test failures on OSF/1 5.1.
118         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
119         alternative error codes.
120         * tests/test-renameat.c (main): Likewise.
121
122 2010-12-24  Bruno Haible  <bruno@clisp.org>
123
124         *printf: Detect large precisions bug on Solaris 10/SPARC.
125         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
126         by Paul Eggert.
127         * tests/test-snprintf-posix.h (test_function): Add this test code here
128         too.
129         * tests/test-sprintf-posix.h (test_function): Likewise.
130         * tests/test-vasnprintf-posix.c (test_function): Likewise.
131         * tests/test-vasprintf-posix.c (test_function): Likewise.
132         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
133         around by gnulib.
134         * doc/posix-functions/printf.texi: Likewise.
135         * doc/posix-functions/snprintf.texi: Likewise.
136         * doc/posix-functions/sprintf.texi: Likewise.
137         * doc/posix-functions/vfprintf.texi: Likewise.
138         * doc/posix-functions/vprintf.texi: Likewise.
139         * doc/posix-functions/vsnprintf.texi: Likewise.
140         * doc/posix-functions/vsprintf.texi: Likewise.
141         * doc/posix-functions/dprintf.texi: Undo last commit.
142         * doc/posix-functions/vdprintf.texi: Likewise.
143
144 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
145
146         tests: port test-fdutimensat.c to Solaris 8
147         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
148         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
149         On Solaris 8, it fails with errno == ENOSYS, because there is no
150         futimens (so it can't use the fd), and there is no lutimens (so it
151         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
152
153         vsnprintf: make more consistent with snprintf; doc fixes
154
155         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
156         the byte count return problem was promoted from the snprintf-posix
157         to the snprintf module.
158         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
159         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
160         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
161         * tests/test-snprintf.c (main): Check the byte count returned.
162         * tests/test-vsnprintf.c (main): Likewise.
163
164 2010-12-23  Eric Blake  <eblake@redhat.com>
165
166         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
167         * modules/sigpipe (License): Relax license.
168
169 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
170
171         doc: document Solaris printf bug with large float precisions
172         * doc/posix-functions/dprintf.texi (dprintf):
173         * doc/posix-functions/fprintf.texi (fprintf):
174         * doc/posix-functions/printf.texi (printf):
175         * doc/posix-functions/snprintf.texi (snprintf):
176         * doc/posix-functions/sprintf.texi (sprintf):
177         * doc/posix-functions/vdprintf.texi (vdprintf):
178         * doc/posix-functions/vfprintf.texi (vfprintf):
179         * doc/posix-functions/vprintf.texi (vprintf):
180         * doc/posix-functions/vsnprintf.texi (vsnprintf):
181         * doc/posix-functions/vsprintf.texi (vsprintf):
182         Mention that these functions mishandle large floating point
183         precisions on Solaris 10.  The same bug is also present in Solaris
184         8, and I assume earlier.  This causes "cd gnulib-tests; make
185         check" to fail on Solaris 8 (and I assume, later) when building
186         the latest coreutils, in test-vasprintf-posix's call to
187         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
188         the wide flavors (e.g., wprintf) so this patch just updates the
189         documentation for the narrow ones.
190
191         test-posixtm.c: add two tests
192         * tests/test-posixtm.c: Add two tests, to highlight the
193         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
194         around this bug; this is merely to document it.
195
196 2010-12-22  Bruno Haible  <bruno@clisp.org>
197
198         getlogin_r: Work around portability problem on OSF/1.
199         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
200         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
201         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
202         test for a truncated result.
203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
204         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
205         * modules/getlogin_r (Depends-on): Add memchr.
206         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
207
208 2010-12-22  Bruno Haible  <bruno@clisp.org>
209
210         ptsname: Avoid test failure on OSF/1 5.1.
211         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
212         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
213         (same_slave): New function.
214         (main): Use it to compare ptsname's result with the expected file name.
215
216 2010-12-22  Bruno Haible  <bruno@clisp.org>
217
218         Port extended stdio modules to HP NonStop Kernel.
219         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
220         macros.
221         * lib/fbufmode.c: Update comments.
222         * lib/fflush.c: Likewise.
223         * lib/fpurge.c: Likewise.
224         * lib/freadable.c: Likewise.
225         * lib/freadahead.c: Likewise.
226         * lib/freading.c: Likewise.
227         * lib/freadptr.c: Likewise.
228         * lib/freadseek.c: Likewise.
229         * lib/fseeko.c: Likewise.
230         * lib/fseterr.c: Likewise.
231         * lib/fwritable.c: Likewise.
232         * lib/fwriting.c: Likewise.
233         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
234
235 2010-12-22  Bruno Haible  <bruno@clisp.org>
236
237         ttyname_r: Work around bug on OSF/1 5.1.
238         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
240         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
241         present.
242         * lib/ttyname_r.c (ttyname_r): Update comments.
243
244 2010-12-22  Bruno Haible  <bruno@clisp.org>
245
246         round: Implement result sign according to IEEE 754.
247         * lib/round.c (MIN, MINUS_ZERO): New macros.
248         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
249         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
250         * tests/test-round-ieee.c (main): Likewise.
251         * tests/test-roundl-ieee.c (main): Likewise.
252
253         trunc: Implement result sign according to IEEE 754.
254         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
255         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
256         * tests/test-trunc2.c: Include minus-zero.h.
257         (MINUS_ZERO): New macro.
258         (trunc_reference): Keep in sync with lib/trunc.c.
259         * tests/test-truncf2.c: Include minus-zero.h.
260         (MINUS_ZERO): New macro.
261         (truncf_reference): Keep in sync with lib/trunc.c.
262         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
263         * tests/test-trunc-ieee.c (main): Likewise.
264         * tests/test-truncl-ieee.c (main): Likewise.
265
266         ceil: Implement result sign according to IEEE 754.
267         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
268         (FUNC): Return -0.0 for -1 < x < 0.
269         * tests/test-ceil2.c: Include minus-zero.h.
270         (MINUS_ZERO): New macro.
271         (ceil_reference): Keep in sync with lib/ceil.c.
272         * tests/test-ceilf2.c: Include minus-zero.h.
273         (MINUS_ZERO): New macro.
274         (ceilf_reference): Keep in sync with lib/ceil.c.
275         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
276         * tests/test-ceil-ieee.c (main): Likewise.
277         * tests/test-ceill-ieee.c (main): Likewise.
278
279         floor: Implement result sign according to IEEE 754.
280         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
281         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
282         * tests/test-floorf2.c (floorf_reference): Likewise.
283         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
284         * tests/test-floor-ieee.c (main): Likewise.
285         * tests/test-floorl-ieee.c (main): Likewise.
286
287 2010-12-22  Bruno Haible  <bruno@clisp.org>
288
289         getaddrinfo: Update doc.
290         * doc/posix-functions/gai_strerror.texi: Return type is also different
291         on AIX and HP-UX.
292
293 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
294
295         getaddrinfo, inet_ntop: Update doc for Solaris.
296         * doc/posix-functions/gai_strerror.texi: Return type is also an
297         issue on Solaris 9 and earlier.
298         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
299         on Solaris 10 and earlier.
300
301 2010-12-21  Bruno Haible  <bruno@clisp.org>
302
303         New module 'roundl-ieee'.
304         * modules/roundl-ieee: New file.
305         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
306         test whether roundl works according to ISO C 99 with IEC 60559.
307         * m4/roundl-ieee.m4: New file.
308         * modules/roundl-ieee-tests: New file.
309         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
310         * tests/test-roundl.c (main): Remove signbit tests.
311         * modules/roundl-tests (Depends-on): Remove signbit.
312         * doc/posix-functions/roundl.texi: Mention the new module.
313
314 2010-12-21  Bruno Haible  <bruno@clisp.org>
315
316         New module 'truncl-ieee'.
317         * modules/truncl-ieee: New file.
318         * modules/truncl-ieee-tests: New file.
319         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
320         * tests/test-truncl.c (main): Remove signbit tests.
321         * modules/truncl-tests (Depends-on): Remove signbit.
322         * doc/posix-functions/truncl.texi: Mention the new module.
323
324 2010-12-21  Bruno Haible  <bruno@clisp.org>
325
326         New module 'ceill-ieee'.
327         * modules/ceill-ieee: New file.
328         * modules/ceill-ieee-tests: New file.
329         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
330         * tests/test-ceill.c (main): Remove signbit tests.
331         * modules/ceill-tests (Depends-on): Remove signbit.
332         * doc/posix-functions/ceill.texi: Mention the new module.
333
334 2010-12-21  Bruno Haible  <bruno@clisp.org>
335
336         New module 'floorl-ieee'.
337         * modules/floorl-ieee: New file.
338         * modules/floorl-ieee-tests: New file.
339         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
340         * tests/test-floorl.c (main): Remove signbit tests.
341         * modules/floorl-tests (Depends-on): Remove signbit.
342         * doc/posix-functions/floorl.texi: Mention the new module.
343
344 2010-12-21  Bruno Haible  <bruno@clisp.org>
345
346         New module 'round-ieee'.
347         * modules/round-ieee: New file.
348         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
349         whether round works according to ISO C 99 with IEC 60559.
350         * m4/round-ieee.m4: New file.
351         * modules/round-ieee-tests: New file.
352         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
353         * tests/test-round1.c (main): Remove signbit tests.
354         * modules/round-tests (Depends-on): Remove 'signbit'.
355         * doc/posix-functions/round.texi: Mention the new module.
356
357 2010-12-21  Bruno Haible  <bruno@clisp.org>
358
359         New module 'trunc-ieee'.
360         * modules/trunc-ieee: New file.
361         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
362         whether trunc works according to ISO C 99 with IEC 60559.
363         * m4/trunc-ieee.m4: New file.
364         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
366         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
367         * modules/trunc-ieee-tests: New file.
368         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
369         * tests/test-trunc1.c (main): Remove signbit tests.
370         * modules/trunc-tests (Depends-on): Remove 'signbit'.
371         * doc/posix-functions/trunc.texi: Mention the new module.
372
373 2010-12-21  Bruno Haible  <bruno@clisp.org>
374
375         New module 'ceil-ieee'.
376         * modules/ceil-ieee: New file.
377         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
378         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
379         ISO C 99 with IEC 60559.
380         * m4/ceil-ieee.m4: New file.
381         * modules/ceil (Files): Add lib/ceil.c.
382         (Depends-on): Add 'float'.
383         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
384         * lib/math.in.h (ceil): New declaration.
385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
386         REPLACE_CEIL.
387         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
388         * modules/ceil-ieee-tests: New file.
389         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
390         * tests/test-math-c++.cc: Check the signature of 'ceil'.
391         * doc/posix-functions/ceil.texi: Mention the new module.
392
393 2010-12-21  Bruno Haible  <bruno@clisp.org>
394
395         New module 'floor-ieee'.
396         * modules/floor-ieee: New file.
397         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
398         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
399         ISO C 99 with IEC 60559.
400         * m4/floor-ieee.m4: New file.
401         * modules/floor (Files): Add lib/floor.c.
402         (Depends-on): Add 'float'.
403         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
404         * lib/math.in.h (floor): New declaration.
405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
406         REPLACE_FLOOR.
407         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
408         * modules/floor-ieee-tests: New file.
409         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
410         * tests/test-math-c++.cc: Check the signature of 'floor'.
411         * doc/posix-functions/floor.texi: Mention the new module.
412
413 2010-12-21  Bruno Haible  <bruno@clisp.org>
414
415         New module 'roundf-ieee'.
416         * modules/roundf-ieee: New file.
417         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
418         test whether roundf works according to ISO C 99 with IEC 60559.
419         * m4/roundf-ieee.m4: New file.
420         * modules/roundf-ieee-tests: New file.
421         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
422         * tests/test-roundf1.c (main): Remove signbit tests.
423         * modules/roundf-tests (Depends-on): Remove 'signbit'.
424         * doc/posix-functions/roundf.texi: Mention the new module.
425
426 2010-12-21  Bruno Haible  <bruno@clisp.org>
427
428         New module 'truncf-ieee'.
429         * modules/truncf-ieee: New file.
430         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
431         test whether truncf works according to ISO C 99 with IEC 60559.
432         * m4/truncf-ieee.m4: New file.
433         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
435         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
436         * modules/truncf-ieee-tests: New file.
437         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
438         * tests/test-truncf1.c (main): Remove signbit tests.
439         * modules/truncf-tests (Depends-on): Remove 'signbit'.
440         * doc/posix-functions/truncf.texi: Mention the new module.
441
442 2010-12-21  Bruno Haible  <bruno@clisp.org>
443
444         New module 'ceilf-ieee'.
445         * modules/ceilf-ieee: New file.
446         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
447         test whether ceilf works according to ISO C 99 with IEC 60559.
448         * m4/ceilf-ieee.m4: New file.
449         * modules/ceilf-ieee-tests: New file.
450         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
451         * tests/test-ceilf1.c (main): Remove signbit tests.
452         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
453         * doc/posix-functions/ceilf.texi: Mention the new module.
454
455 2010-12-21  Bruno Haible  <bruno@clisp.org>
456
457         New module 'floorf-ieee'.
458         * modules/floorf-ieee: New file.
459         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
460         test whether floorf works according to ISO C 99 with IEC 60559.
461         * m4/floorf-ieee.m4: New file.
462         * modules/floorf-ieee-tests: New file.
463         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
464         * tests/test-floorf1.c (main): Remove signbit tests.
465         * modules/floorf-tests (Depends-on): Remove 'signbit'.
466         * doc/posix-functions/floorf.texi: Mention the new module.
467
468 2010-12-21  Bruno Haible  <bruno@clisp.org>
469
470         Support for minus zero in autoconf macros.
471         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
472         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
473         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
474         * tests/minus-zero.h: Update comments.
475
476 2010-12-21  Bruno Haible  <bruno@clisp.org>
477
478         Tests for module 'ceil'.
479         * modules/ceil-tests: New file.
480         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
481         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
482
483 2010-12-21  Bruno Haible  <bruno@clisp.org>
484
485         Tests for module 'floor'.
486         * modules/floor-tests: New file.
487         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
488         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
489
490 2010-12-21  Bruno Haible  <bruno@clisp.org>
491
492         math: Fix indentation.
493         * lib/math.in.h (floorf): Fix indentation.
494
495 2010-12-21  Bruno Haible  <bruno@clisp.org>
496
497         Fix cross-compilation guesses on Solaris.
498         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
499         not match "solaris2.10".
500         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
501         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
502         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
503
504 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
505
506         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
507         This fixes a problem observed with the latest coreutils snapshot
508         that caused a test to fail on Solaris 8.  src/csplit.c's call
509         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
510         earlier, instead of returning the number of bytes that would have
511         been generated; this causes csplit to incorrectly report memory
512         exhaustion.
513         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
514         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
515         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
516         comments to match.
517         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
518         Fix typo in matching older versions of Solaris: "solaris2.10"
519         is matched by the shell pattern "solaris2.[0-9]*".  This matters
520         only for guessing while cross-compiling.
521         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
522
523 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
524
525         ftoastr: fix comment again
526         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
528         Also, simplify example a bit by using flags = 0.
529
530 2010-12-20  Bruno Haible  <bruno@clisp.org>
531
532         round*, trunc*: Update documentation regarding glibc.
533         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
534         * doc/posix-functions/round.texi: Likewise.
535         * doc/posix-functions/roundl.texi: Likewise.
536         * doc/posix-functions/truncf.texi: Likewise.
537         * doc/posix-functions/trunc.texi: Likewise.
538         * doc/posix-functions/truncl.texi: Likewise.
539
540 2010-12-20  Bruno Haible  <bruno@clisp.org>
541
542         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
543         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
544         * doc/posix-functions/round.texi: Likewise.
545         * doc/posix-functions/roundl.texi: Likewise.
546
547 2010-12-20  Bruno Haible  <bruno@clisp.org>
548
549         ttyname_r: Add missing declaration on HP-UX 11.
550         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
551         HAVE_TTYNAME_R.
552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
553         declared. Set HAVE_TTYNAME_R always.
554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
555         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
556         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
557         HAVE_TTYNAME_R.
558         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
559
560 2010-12-20  Bruno Haible  <bruno@clisp.org>
561
562         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
563         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
564         * doc/posix-functions/getlogin_r.texi: Likewise.
565         * tests/test-getlogin.c: Include <errno.h>.
566         (main): Avoid test failure on HP-UX 11.11.
567         * tests/test-getlogin_r.c (main): Likewise.
568
569 2010-12-20  Bruno Haible  <bruno@clisp.org>
570
571         getlogin_r: Add missing declaration on HP-UX 11.
572         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
573         declared also when it exists as a function.
574         * doc/posix-functions/getlogin_r.texi: Document this workaround.
575
576 2010-12-20  Bruno Haible  <bruno@clisp.org>
577
578         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
579         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
580         through wcrtomb.
581
582 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
583
584         ftoastr: fix comment
585         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
587
588 2010-12-19  Bruno Haible  <bruno@clisp.org>
589
590         isnan: Ensure it is a macro.
591         * lib/math.in.h (isnan): Define as a macro if not already a macro.
592         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
593         Solaris.
594
595 2010-12-19  Bruno Haible  <bruno@clisp.org>
596
597         ldexpl test: Fix link error on OSF/1 5.1.
598         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
599
600 2010-12-19  Bruno Haible  <bruno@clisp.org>
601
602         wctype: Make it work in C++ mode on OSF/1 5.1.
603         * lib/wctype.in.h (iswblank): Declare but not define here.
604         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
605         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
606         * modules/wctype (Files): Add lib/iswblank.c.
607
608 2010-12-19  Bruno Haible  <bruno@clisp.org>
609
610         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
611         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
612         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
613
614 2010-12-19  Bruno Haible  <bruno@clisp.org>
615
616         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
618         _POSIX_PII_SOCKET.
619         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
620         * doc/posix-functions/recvfrom.texi: Likewise.
621         * doc/posix-functions/send.texi: Likewise.
622         * doc/posix-functions/sendto.texi: Likewise.
623
624 2010-12-19  Bruno Haible  <bruno@clisp.org>
625
626         tcgetsid: Add missing declaration on OSF/1 5.1.
627         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
628         HAVE_TCGETSID.
629         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
630         Don't set HAVE_TCGETSID.
631         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
632         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
633         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
634         HAVE_TCGETSID.
635         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
636
637 2010-12-19  Bruno Haible  <bruno@clisp.org>
638
639         stdio: Fix problem with popen() declaration on OSF/1 5.1.
640         * lib/stdio.in.h: During the include_next statement, let recursive
641         includes of this file include only the system header file.
642
643 2010-12-19  Bruno Haible  <bruno@clisp.org>
644
645         iconv_open: Fix regression from 2010-12-04.
646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
647         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
648
649 2010-12-19  Bruno Haible  <bruno@clisp.org>
650
651         stdbool test: Avoid a gcc warning.
652         * tests/test-stdbool.c (main): Fail if e1 is false.
653         Reported by Jim Meyering.
654
655 2010-12-19  Jim Meyering  <meyering@redhat.com>
656
657         setenv: restore to working order
658         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
659         mistakenly removed.
660         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
661         HAVE_SETENV.
662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
663         HAVE_SETENV.
664
665 2010-12-19  Bruno Haible  <bruno@clisp.org>
666
667         Document some different function declarations on OSF/1 5.1.
668         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
669         * doc/posix-functions/inet_ntop.texi: Likewise.
670         * doc/posix-functions/gethostname.texi: Likewise.
671         * lib/unistd.in.h (gethostname): Update comment.
672
673 2010-12-19  Bruno Haible  <bruno@clisp.org>
674
675         doc: Mention vasprintf-posix module.
676         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
677         the 'vasprintf-posix' module.
678         * doc/glibc-functions/vasprintf.texi: Likewise.
679
680 2010-12-19  Bruno Haible  <bruno@clisp.org>
681
682         unsetenv: Add missing declaration on OSF/1 5.1.
683         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
684         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
685         Don't set HAVE_UNSETENV. In the test program, set _BSD.
686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
687         not HAVE_UNSETENV.
688         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
689         HAVE_UNSETENV.
690         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
691
692 2010-12-19  Bruno Haible  <bruno@clisp.org>
693
694         setenv: Add missing declaration on OSF/1 5.1.
695         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
697         declared. Don't set HAVE_SETENV.
698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
699         not HAVE_SETENV.
700         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
701         HAVE_SETENV.
702         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
703
704 2010-12-19  Bruno Haible  <bruno@clisp.org>
705
706         nl_langinfo tests: Avoid gcc warning.
707         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
708
709 2010-12-19  Bruno Haible  <bruno@clisp.org>
710
711         mknod: Avoid error in C++ mode on OSF/1 with GCC.
712         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
713         _GL_CXXALIAS_SYS.
714
715 2010-12-19  Bruno Haible  <bruno@clisp.org>
716
717         stdbool: Relax test.
718         * tests/test-stdbool.c (e): Don't require that casts from a variable's
719         address to 'bool' work in static initializer, for compilers other than
720         GCC.
721
722 2010-12-19  Bruno Haible  <bruno@clisp.org>
723
724         ftello: Add missing declaration on OSF/1 5.1.
725         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
726         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
728         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
729         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
730
731 2010-12-19  Bruno Haible  <bruno@clisp.org>
732
733         fseeko: Add missing declaration on OSF/1 5.1.
734         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
735         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
737         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
738         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
739
740 2010-12-19  Bruno Haible  <bruno@clisp.org>
741
742         fchdir: Add missing declaration on OSF/1 5.1.
743         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
746         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
747         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
748
749 2010-12-19  Bruno Haible  <bruno@clisp.org>
750
751         relocatable-prog-wrapper: Separate from relocatable-prog.
752         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
753         uninstall-relocwrapper rule here.
754         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
755         Reported by Ian Beckwith <ianb@erislabs.net>.
756
757 2010-12-19  Bruno Haible  <bruno@clisp.org>
758
759         unistr/u8-mbsnlen: Add missing dependency.
760         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
761         Reported by Ian Beckwith <ianb@erislabs.net>.
762
763 2010-12-19  Bruno Haible  <bruno@clisp.org>
764
765         iconv: Make it possible again to use this module without 'iconv-h'.
766         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
767         if it is not defined.
768         Reported by Ian Beckwith <ianb@erislabs.net>.
769
770 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
771
772         acl: port to Solaris 8 when copying from tmpfs to ufs
773         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
774         error number.  Problem observed on Solaris 8 with latest
775         coreutils, with "mv A B", where A is on a tmpfs file system and B
776         is on a ufs file system.  This caused coreutils' mv/part-symlink
777         test to fail.
778
779         tests: set fail=0 at start
780         * tests/init.sh (setup_): Move fail=0 initialization here ...
781         (mktempd_): ... from here, so that tests can rely on fail being
782         set to 0 initially.  This fixes a problem in coreutils; see:
783         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
784
785 2010-12-18  Bruno Haible  <bruno@clisp.org>
786
787         memmem-simple: Stylistic changes.
788         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
789         Fix preprocessor directive indentation.
790
791 2010-12-15  Pádraig Brady <P@draigBrady.com>
792
793         memmem, memmem-simple: reorganize and expand empty needle check
794         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
795         functional checks to memmem-simple so that one has a fully functional
796         memmem by using just this module.
797         Restrict the performance only check to the memmem module.
798         Also expand the empty needle check to ensure the correct
799         pointer is returned, not just a non NULL pointer.
800         * doc/glibc-functions/memmem.texi: Rearrange the portability
801         documentation to correlate with the rearranged checks.
802         Clarify exactly how the memmem and memmem-simple modules
803         relate to each other.
804
805 2010-12-15  Pádraig Brady <P@draigBrady.com>
806             Bruno Haible  <bruno@clisp.org>
807
808         Improve cross-compilation guesses for uClibc.
809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
810         that uClibc does not have the glibc bug.
811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
812         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
813
814 2010-12-14  Eric Blake  <eblake@redhat.com>
815
816         configmake: provide fallbacks for oldest supported autotools
817         * m4/configmake.m4: New file.
818         * modules/configmake (Files): Ship it.
819         (configure.ac): Use it to guarantee fallbacks.
820
821 2010-12-13  Pádraig Brady <P@draigBrady.com>
822
823         read-file: Improve handling of large files
824         * lib/read-file.c (fread_file): Minimize realloc()s
825         for regular files, and better manage sizes around SIZE_MAX.
826
827 2010-12-13  Eric Blake  <eblake@redhat.com>
828
829         cloexec, fcntl: relax license
830         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
831         consent from all contributors.
832         * modules/fcntl (License): Likewise.
833
834 2010-12-10  Bruno Haible  <bruno@clisp.org>
835
836         Tests for module 'pipe-posix'.
837         * modules/pipe-posix-tests: New file.
838         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
839
840 2010-12-10  Bruno Haible  <bruno@clisp.org>
841
842         pipe-posix: Make it work in C++ mode.
843         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
844         (pipe): Use common idiom, not a macro definition.
845         * lib/pipe.c: New file.
846         * m4/pipe.m4: New file.
847         * modules/pipe-posix (Description): Enhance.
848         (Files): Add lib/pipe.c, m4/pipe.m4.
849         (configure.ac): Invoke gl_FUNC_PIPE.
850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
851         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
852         * tests/test-unistd-c++.cc: Check the signature of pipe.
853
854 2010-12-10  Bruno Haible  <bruno@clisp.org>
855
856         Rename module 'pipe' to 'spawn-pipe'.
857         * modules/spawn-pipe: New file, renamed from modules/pipe.
858         (Files, configure.ac, Makefile.am): Update.
859         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
860         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
861         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
862         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
863         "spawn-pipe.h" instead of "pipe.h".
864         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
865         to gl_SPAWN_PIPE.
866         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
867         (Files, Makefile.am): Update.
868         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
869         Update.
870         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
871         Include "spawn-pipe.h" instead of "pipe.h".
872         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
873         * lib/javacomp.c: Likewise.
874         * lib/javaversion.c: Likewise.
875         * lib/pipe-filter-gi.c: Likewise.
876         * lib/pipe-filter-ii.c: Likewise.
877         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
878         * modules/javacomp (Depends-on): Likewise.
879         * modules/javaversion (Depends-on): Likewise.
880         * modules/pipe-filter-gi (Depends-on): Likewise.
881         * modules/pipe-filter-ii (Depends-on): Likewise.
882         * MODULES.html.sh (Executing programs): Update.
883         * NEWS: Mention the change.
884
885 2010-12-10  Eric Blake  <eblake@redhat.com>
886
887         pipe-posix: new module
888         * modules/pipe-posix: New file.
889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
890         (gl_UNISTD_H): Check for declaration.
891         * modules/unistd (Makefile.am): Substitute it.
892         * lib/unistd.in.h (pipe): Provide it for mingw.
893         * doc/posix-functions/pipe.texi (pipe): Update documentation.
894         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
895
896 2010-12-07  Bruno Haible  <bruno@clisp.org>
897
898         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
899         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
900         u8_strcmp_gnu.
901         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
902
903 2010-12-06  Bruno Haible  <bruno@clisp.org>
904
905         Update internal documentation.
906         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
907
908 2010-12-04  Bruno Haible  <bruno@clisp.org>
909
910         Put more information about failed tests into the test return codes.
911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
912         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
913         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
915         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
916         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
917         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
918         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
919         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
922         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
923         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
924         * m4/stdint.m4 (gl_STDINT_H): Likewise.
925         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
926         returns a bit mask.
927         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
928         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
929         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
930         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
931         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
932         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
935         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
937         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
938         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
939         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
941         * m4/link.m4 (gl_FUNC_LINK): Likewise.
942         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
943         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
944         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
945         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
946         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
947         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
948         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
949         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
950         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
951         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
952         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
953         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
954         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
955         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
956         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
957         gl_PRINTF_PRECISION): Likewise.
958         * m4/regex.m4 (gl_REGEX): Likewise.
959         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
960         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
961         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
962         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
965         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
966         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
967         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
968         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
969         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
970         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
971         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
972         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
973         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
974         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
975         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
976         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
978         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
979         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
980         enumerated value.
981         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
982
983 2010-12-04  Bruno Haible  <bruno@clisp.org>
984
985         Update for Solaris 11 2010-11.
986         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
987         Express, released in November 2010.
988
989 2010-12-04  Bruno Haible  <bruno@clisp.org>
990
991         nproc: Relax license.
992         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
993         and Paul Eggert.
994         Requested by Ludovic Courtès <ludo@gnu.org>.
995
996 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
997
998         utimecmp: fine-grained src to nearby coarse-grained dest
999
1000         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
1001         and the source is on a file system with higher-resolution time
1002         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
1003         not work, and the time stamps are close together, the algorithm to
1004         determine the exact resolution from the read-back mtime was buggy:
1005         it had a "!=" where it should have had an "==".  This bug has been
1006         in the code ever since it was introduced to gnulib.
1007         Problem reported by Dan Jacobson in
1008         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
1009
1010 2010-11-30  Bruno Haible  <bruno@clisp.org>
1011
1012         strerror_r-posix: Fix autoconf test.
1013         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
1014
1015 2010-11-28  Bruno Haible  <bruno@clisp.org>
1016             Paul Eggert  <eggert@cs.ucla.edu>
1017
1018         Tests for module 'getdomainname'.
1019         * modules/getdomainname-tests: New file.
1020         * tests/test-getdomainname.c: New file, based on
1021         tests/test-gethostname.c.
1022
1023 2010-11-28  Bruno Haible  <bruno@clisp.org>
1024             Paul Eggert  <eggert@cs.ucla.edu>
1025
1026         getdomainname: Use the system function when possible.
1027         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
1028         (getdomainname): Replace if needed. Provide the declaration if it is
1029         missing. Don't use _GL_CXXALIAS_SYS_CAST.
1030         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
1031         (getdomainname): When the system has getdomainname, call the system
1032         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
1033         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1034         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
1035         found in libnsl. Look for the declaration also in <netdb.h>. Replace
1036         the function if its second argument is of type 'int' or if it is found
1037         in libnsl.
1038         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
1039         <sys/systeminfo.h> and sysinfo().
1040         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
1041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1042         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
1043         HAVE_GETDOMAINNAME.
1044         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
1045         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
1046         * doc/glibc-functions/getdomainname.texi: Document the problems with
1047         the getdomainname declaration.
1048
1049 2010-11-28  Bruno Haible  <bruno@clisp.org>
1050
1051         sys_socket: Ensure ss_family field on AIX.
1052         * lib/sys_socket.in.h (ss_family): New macro definition.
1053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
1054         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
1055         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1056         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1057         * modules/sys_socket (Makefile.am): Substitute
1058         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1059         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
1060
1061 2010-11-27  Bruno Haible  <bruno@clisp.org>
1062
1063         readline: Improve configure output.
1064         * m4/readline.m4 (gl_FUNC_READLINE): Make the
1065         "checking for readline..." result understandable.
1066
1067 2010-11-27  Bruno Haible  <bruno@clisp.org>
1068
1069         *printf-posix: Detect a bug on Solaris 10/x86.
1070         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
1071         for floating-point output.
1072         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
1073         directive.
1074         * tests/test-snprintf-posix.h (test_function): Likewise.
1075         * tests/test-sprintf-posix.h (test_function): Likewise.
1076         * tests/test-vasprintf-posix.c (test_function): Likewise.
1077         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1078         * doc/posix-functions/printf.texi: Likewise.
1079         * doc/posix-functions/snprintf.texi: Likewise.
1080         * doc/posix-functions/sprintf.texi: Likewise.
1081         * doc/posix-functions/vfprintf.texi: Likewise.
1082         * doc/posix-functions/vprintf.texi: Likewise.
1083         * doc/posix-functions/vsnprintf.texi: Likewise.
1084         * doc/posix-functions/vsprintf.texi: Likewise.
1085         * doc/glibc-functions/obstack_printf.texi: Likewise.
1086         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1087
1088 2010-11-27  Bruno Haible  <bruno@clisp.org>
1089
1090         Fix link error when module libunistring-optional is in use.
1091         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1092         * modules/striconveha-tests (Makefile.am): Likewise.
1093
1094 2010-11-27  Bruno Haible  <bruno@clisp.org>
1095
1096         regex: Mention link dependencies.
1097         * modules/regex (Link): New section.
1098         * modules/rpmatch (Link): Likewise.
1099         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1100
1101 2010-11-27  Bruno Haible  <bruno@clisp.org>
1102
1103         ftoastr: Fix compilation error on Solaris.
1104         * lib/ftoastr.c: Include <config.h>.
1105
1106 2010-11-27  Bruno Haible  <bruno@clisp.org>
1107
1108         getloadavg: Update documentation.
1109         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1110
1111 2010-11-27  Bruno Haible  <bruno@clisp.org>
1112
1113         sys_socket: Fix test whether the functions are declared.
1114         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1115         not <sys/select.h>.
1116
1117 2010-11-27  Bruno Haible  <bruno@clisp.org>
1118
1119         getpass: Make sure to get system declaration on some platforms.
1120         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1121         gl_USE_SYSTEM_EXTENSIONS.
1122         * modules/getpass (Depends-on): Add extensions.
1123
1124 2010-11-26  Bruno Haible  <bruno@clisp.org>
1125
1126         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1127         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1128         'iconv' module is present.
1129         (ICONV_CONST): New macro.
1130         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1131         ICONV_CONST.
1132         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1133         set ICONV_CONST.
1134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1135         here.
1136         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1137         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1138         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1139         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1140         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1141         present.
1142
1143 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         ftoastr: comment fix
1146         * lib/ftoastr.c: "little" -> "little or no" in comment
1147
1148 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1149
1150         stdint: port to GCC 4.3 + OSX + Octave
1151         On this platform, stdint.h is buggy and defines int64_t to long
1152         long int.  The replacement defined it to long int, causing
1153         problems with C++ style name mangling.  Instead, trust the system
1154         definition if INT64_MAX is defined, and likewise for the unsigned
1155         variant.   Problem reported by Jarno Rajahalme in
1156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1157         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1158         and don't mess with int64_t and INT64_MAX in this case.
1159         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1160
1161 2010-11-24  Bruno Haible  <bruno@clisp.org>
1162
1163         doc: Corrections regarding MacOS X 10.4 and 10.5.
1164         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1165         MacOS X.
1166         Reported by Simon Josefsson.
1167
1168 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1169
1170         Uninstall ".bin" files installed by relocwrapper.
1171         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1172         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1173         unless it is already there.
1174
1175 2010-11-21  Bruno Haible  <bruno@clisp.org>
1176
1177         Update for NetBSD 5.0.
1178         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1179         NetBSD; the test fails on NetBSD 5.0.
1180         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1181         about NetBSD.
1182
1183 2010-11-21  Bruno Haible  <bruno@clisp.org>
1184
1185         Update for HP-UX 11.23 and HP-UX 11.31.
1186         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1187         HP-UX.
1188
1189 2010-11-21  Bruno Haible  <bruno@clisp.org>
1190
1191         Update for MacOS X 10.5.
1192         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1193         MacOS X; the test fails on MacOS X 10.5.8.
1194         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1195         about MacOS X.
1196
1197 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1198
1199         bootstrap: add bootstrap_sync option.
1200         See discussion at
1201         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1203         * build-aux/bootstrap: Accept --bootstrap-sync to update
1204         bootstrap if it is not identical to the local gnulib's
1205         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1206         enable this by default.  Accept --no-bootstrap-sync to disable
1207         it.
1208
1209 2010-11-20  Bruno Haible  <bruno@clisp.org>
1210
1211         Ensure that <features.h> is included before __GLIBC__ is tested.
1212         * lib/printf-parse.h: Include <features.h>.
1213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1214         Reported by Mike Frysinger <vapier@gentoo.org>.
1215
1216         Ensure that <features.h> is included before __GLIBC__ is tested.
1217         * lib/wchar.in.h: Include <features.h>.
1218         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1219         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1220         Reported by Mike Frysinger <vapier@gentoo.org>.
1221
1222         Ensure that <features.h> is included before __GLIBC__ is tested.
1223         * lib/arpa_inet.in.h: Include <features.h>.
1224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1225         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1226         Reported by Mike Frysinger <vapier@gentoo.org>.
1227
1228         Ensure that <features.h> is included before __GLIBC__ is tested.
1229         * build-aux/link-warning.h: Include <features.h>.
1230         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1231         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1232         Reported by Mike Frysinger <vapier@gentoo.org>.
1233
1234         Ensure that <features.h> is included before __GLIBC__ is tested.
1235         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1236         Reported by Mike Frysinger <vapier@gentoo.org>.
1237
1238 2010-11-20  Bruno Haible  <bruno@clisp.org>
1239
1240         memmem: Fix autoconf test.
1241         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1242
1243 2010-11-20  Bruno Haible  <bruno@clisp.org>
1244
1245         Port to uClibc.
1246         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1247         * lib/fcntl.in.h: Likewise.
1248         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1249         * lib/mbrtowc.c (mbrtowc): Likewise.
1250         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1251         * lib/strerror_r.c: Likewise.
1252         * lib/unistr/u8-strnlen.c: Likewise.
1253         * lib/vasnprintf.c (decimal_point_char): Likewise.
1254         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1255         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1256         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1257         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1258         * tests/test-sigaction.c (handler, main): Likewise.
1259         * lib/freading.h: Treat uClibc like a non-glibc platform.
1260         * lib/freading.c: Likewise.
1261         * lib/gettext.h: Likewise.
1262         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1263         Likewise.
1264         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1265         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1266         * lib/propername.c (proper_name_utf8): Likewise.
1267         * lib/spawn.in.h: Likewise.
1268         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1269         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1270         mem_cd_iconveh_internal): Likewise.
1271         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1272         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1273         strstr, strcasestr): Likewise.
1274         * lib/unicodeio.c (unicode_to_mb): Likewise.
1275         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1276         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1277         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1278         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1279         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1280         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1281         * lib/unistr/u8-stpncpy.c: Likewise.
1282         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1283         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1285         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1286         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1288         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1291         Likewise.
1292         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1293         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1297         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1298         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1299         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1300         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1301         * tests/test-striconveha.c (main): Likewise.
1302         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1303         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1304         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1305         * doc/posix-functions/getline.texi: Likewise.
1306         Reported by Mike Frysinger <vapier@gentoo.org>.
1307
1308 2010-11-20  Bruno Haible  <bruno@clisp.org>
1309
1310         nproc: Fix condition.
1311         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1312         HAVE_PTHREAD_AFFINITY_NP.
1313
1314 2010-11-20  Bruno Haible  <bruno@clisp.org>
1315
1316         Fix a comment.
1317         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1318
1319 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         ftoastr: don't assume snprintf
1322         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1323         Implement a subset of snprintf here, by using sprintf safely.
1324         * modules/ftoastr (Depends-on): Remove snprintf.
1325
1326 2010-11-19  Jim Meyering  <meyering@redhat.com>
1327
1328         test-rename.h: fix compilation failure
1329         * tests/test-rename.h (test_rename): Add omitted "}".
1330
1331 2010-11-17  Jim Meyering  <meyering@redhat.com>
1332
1333         maint.mk: add a URL discussing the no-@acronym policy
1334         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1335
1336 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1337
1338         ftoastr: depend on snprintf, improve comments
1339         * lib/ftoastr.c: Also mention Loitsch's draft.
1340         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1341         needed in the current implementation, but it might simplify
1342         speeding up the code later.
1343         * modules/ftoastr: Depend on snprintf; this improves portability.
1344         Suggested by Bruno Haible in the same email.
1345
1346         ftoastr: port to hosts lacking strtof and strtold
1347         Problem reported by Bruno Haible in
1348         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1349         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1350         environment and strtold (and presumably strtof) are not available.
1351         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1352         (configure.ac): Require gl_C99_STRTOLD.
1353
1354 2010-11-18  Bruno Haible  <bruno@clisp.org>
1355
1356         c-strtold: Avoid link error on AIX 7.
1357         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1358         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1359         (gl_C_STRTOLD): Test whether strtold_l exists.
1360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1361
1362 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         intprops: new macro INT_BITS_STRLEN_BOUND
1365         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1366         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1367         not exposed.  Also, it uses a slightly tighter bound than before;
1368         though this makes no practical difference, we might as well be as
1369         tight as we easily can.
1370
1371         ftoastr: new module, for lossless conversion of floats to short strings
1372         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1373         * modules/ftoastr: New files.
1374
1375 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1376
1377         bootstrap: port to Solaris sed
1378         * build-aux/bootstrap (get_version): Port to Solaris sed.
1379         See Ralf Wildenhues's note in
1380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1381
1382 2010-11-14  Jim Meyering  <meyering@redhat.com>
1383
1384         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1385         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1386         and move definition closer to sole use.
1387
1388 2010-11-13  Jim Meyering  <meyering@redhat.com>
1389
1390         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1391         Now we require at least autoconf-2.59, which means the work-around
1392         is no longer needed.
1393         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1394         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1395         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1396         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1397         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1398
1399 2010-11-13  Bruno Haible  <bruno@clisp.org>
1400
1401         rename, renameat: Avoid test failures at NFS mounted locations.
1402         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1403         functions.
1404         (test_rename): Use assert_nonexistent.
1405         * tests/test-rename.c: Include <dirent.h>.
1406         * tests/test-renameat.c: Likewise.
1407         Reported by Gary V. Vaughan <gary@gnu.org>.
1408
1409         rename, renameat: Document Linux bug with NFS
1410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1411         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1412         * doc/posix-functions/renameat.texi: Likewise.
1413         Suggested by Eric Blake.
1414
1415 2010-11-13  Bruno Haible  <bruno@clisp.org>
1416
1417         rename test: Add comments.
1418         * tests/test-rename.h (test_rename): Add structure and comments.
1419
1420 2010-11-13  Eric Blake  <eblake@redhat.com>
1421
1422         maintainer-makefile: cover a few more files
1423         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1424         scripts generated within C files, for libvirt.
1425
1426 2010-11-13  Bruno Haible  <bruno@clisp.org>
1427
1428         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1429         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1430         character, return the number of bytes that belong together, not always
1431         1.
1432         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1433         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1434         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1435         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1436         number of bytes of an invalid character.
1437         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1438         (main): Invoke it.
1439         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1440         results.
1441         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1442         malformed byte sequences.
1443         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1444         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1445         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1446         Reported by Ben Pfaff and Paolo Bonzini.
1447
1448 2010-11-13  Bruno Haible  <bruno@clisp.org>
1449
1450         openat: Work around glibc bug with fchownat() and empty file names.
1451         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1452         (gl_FUNC_FCHOWNAT): Invoke it.
1453         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1454         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1455         Reported by Gary V. Vaughan <gary@gnu.org>.
1456
1457 2010-11-13  Bruno Haible  <bruno@clisp.org>
1458
1459         openat: Ensure autoconf macro ordering.
1460         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1461         gl_USE_SYSTEM_EXTENSIONS.
1462         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1463
1464 2010-11-13  Bruno Haible  <bruno@clisp.org>
1465
1466         Update comments.
1467         * lib/unistr/u8-check.c: Update file name in comments.
1468         * lib/unistr/u8-mblen.c: Likewise.
1469         * lib/unistr/u8-prev.c: Likewise.
1470         * lib/unistr/u8-strmblen.c: Likewise.
1471         * lib/unistr/u8-strmbtouc.c: Likewise.
1472
1473 2010-11-13  Jim Meyering  <meyering@redhat.com>
1474
1475         tests: avoid test failure on Solaris 10 due to lack of PATH export
1476         * tests/test-update-copyright.sh: Don't forget to export PATH.
1477
1478         init.sh: ensure that IFS is defined, just in case...
1479         * tests/init.sh (setup_): Ensure that IFS is defined,
1480         so that saving and restoring it works as expected.  This
1481         appears to be useful at least for an old version of dash
1482         from a long time ago (RH 6).  See here for details:
1483         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1484
1485         maint.mk: tighten "test a == b" check
1486         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1487         test to files that contain something like #!/bin/sh.
1488         Without this, coreutils would get two false positives in
1489         the comments of C source files.
1490
1491 2010-11-12  Eric Blake  <eblake@redhat.com>
1492
1493         bootstrap: fix typo in previous attempt
1494         * build-aux/bootstrap (buildreq): Correct the grouping.
1495         Reported by Paul Eggert.
1496
1497         maintainer-makefile: prohibit test x == x
1498         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1499         Based on a report by Matthias Bolte.
1500
1501         bootstrap: allow FreeBSD gzip
1502         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1503         which has no '.' and goes to stderr.
1504         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1505         Reported by Matthias Bolte.
1506
1507         maintainer-makefile: check for i18n setup
1508         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1509         will likely work.
1510
1511 2010-11-12  Bruno Haible  <bruno@clisp.org>
1512
1513         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1514         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1515         * lib/nanosleep.c (nanosleep): Likewise.
1516
1517 2010-11-11  Bruno Haible  <bruno@clisp.org>
1518
1519         fcntl-h: Fix for use of C++ on glibc systems.
1520         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1521         also on glibc systems in C++ mode.
1522         Reported by Gary V. Vaughan <gary@gnu.org>.
1523
1524 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1525
1526         mknod: avoid false failure with dash
1527         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1528
1529 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1530
1531         unlink: Fix "is it should" typo in diagnostic.
1532         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1534
1535 2010-11-11  Bruno Haible  <bruno@clisp.org>
1536
1537         Tests for module 'strerror_r-posix'.
1538         * modules/strerror_r-posix-tests: New file.
1539         * tests/test-strerror_r.c: New file.
1540         * tests/test-string-c++.cc: Check the signature of strerror_r.
1541
1542         New module 'strerror_r-posix'.
1543         * lib/string.in.h (strerror_r): New declaration.
1544         * lib/strerror_r.c: New file.
1545         * m4/strerror_r.m4: New file.
1546         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1547         of strerror_r.
1548         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1549         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1550         * modules/strerror_r-posix: New file.
1551         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1552         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1553         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1554         portability problems.
1555
1556 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1557
1558         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1559         line is also considered for output. Quoted function name in shell
1560         command, so temporary files for functions like MyClass::operator()
1561         are removed correctly without errors.
1562
1563 2010-11-09  Bruno Haible  <bruno@clisp.org>
1564
1565         * doc/posix-functions/strerror.texi: List more failing platforms.
1566
1567         * doc/posix-functions/strerror.texi: Add a comment.
1568
1569 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1570
1571         fdopendir: fix bug on MacOS X when low on file descriptors
1572
1573         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1574         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1575         All callers changed.
1576         (fdopendir): Invoke save_cwd at the top level, not after using
1577         multiple dup() calls to use up file descriptors.  Then retry
1578         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1579         less than the maximum number of open file descriptors, because
1580         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1581         on Mac OS X 10.6.4 for tar 1.24
1582         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1583         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1584         and for tar 1.25
1585         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1586
1587 2010-11-07  Bruno Haible  <bruno@clisp.org>
1588
1589         vasnprintf: Support I flag on glibc systems.
1590         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1591         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1592         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1593         snprintf function.
1594         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1595         glibc systems.
1596         * tests/test-vasnprintf-posix3.c: New file.
1597         * modules/vasnprintf-posix-tests (Files): Add it.
1598         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1599
1600 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1601
1602         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1603         * MODULES.html.sh: For compiler warnings, use name
1604         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1605
1606 2010-11-05  Eric Blake  <eblake@redhat.com>
1607
1608         ceil, floor: avoid spurious failure with icc
1609         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1610         [denormals-as-zero] when optimizing without -mieee-fp option.
1611         * tests/test-floorf2.c (floorf_reference): Likewise.
1612         * tests/test-ceilf1.c (dummy): New function.
1613         (main): Use it to outsmart icc's optimization.
1614         * tests/test-floorf1.c (dummy, main): Likewise.
1615
1616         tests: require working signbit
1617         * modules/ceilf-tests (Depends-on): Add signbit.
1618         * modules/ceill-tests (Depends-on): Likewise.
1619         * modules/floorf-tests (Depends-on): Likewise.
1620         * modules/floorl-tests (Depends-on): Likewise.
1621         * modules/round-tests (Depends-on): Likewise.
1622         * modules/roundf-tests (Depends-on): Likewise.
1623         * modules/roundl-tests (Depends-on): Likewise.
1624         * modules/trunc-tests (Depends-on): Likewise.
1625         * modules/truncf-tests (Depends-on): Likewise.
1626         * modules/truncl-tests (Depends-on): Likewise.
1627
1628         strtod: work around icc bug
1629         * lib/strtod.c (minus_zero): Define to working value.
1630         (strtod): Use it to avoid icc bug.
1631
1632         copysign: enhance tests
1633         * modules/copysign-tests (Files): Add minus-zero.h.
1634         * tests/test-copysign.c (main): Also test zeros.
1635
1636 2010-11-04  Eric Blake  <eblake@redhat.com>
1637
1638         ceil, floor, round, trunc: enhance tests of -0
1639         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1640         * tests/test-ceill.c (main): Likewise.
1641         * tests/test-floorf1.c (main): Likewise.
1642         * tests/test-floorl.c (main): Likewise.
1643         * tests/test-round1.c (main): Likewise.
1644         * tests/test-roundf1.c (main): Likewise.
1645         * tests/test-roundl.c (main): Likewise.
1646         * tests/test-trunc1.c (main): Likewise.
1647         * tests/test-truncf1.c (main): Likewise.
1648         * tests/test-truncl.c (main): Likewise.
1649
1650 2010-11-04  Eric Blake  <eblake@redhat.com>
1651
1652         frexp, tests: work around ICC bug with -zero
1653         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1654         works with more compilers.
1655         * tests/minus-zero.h: New file.
1656         * modules/ceilf-tests (Files): Include it.
1657         * modules/ceill-tests (Files): Likewise.
1658         * modules/floorf-tests (Files): Likewise.
1659         * modules/floorl-tests (Files): Likewise.
1660         * modules/frexp-nolibm-tests (Files): Likewise.
1661         * modules/frexp-tests (Files): Likewise.
1662         * modules/frexpl-nolibm-tests (Files): Likewise.
1663         * modules/frexpl-tests (Files): Likewise.
1664         * modules/isnan-tests (Files): Likewise.
1665         * modules/isnand-nolibm-tests (Files): Likewise.
1666         * modules/isnand-tests (Files): Likewise.
1667         * modules/isnanf-nolibm-tests (Files): Likewise.
1668         * modules/isnanf-tests (Files): Likewise.
1669         * modules/isnanl-nolibm-tests (Files): Likewise.
1670         * modules/isnanl-tests (Files): Likewise.
1671         * modules/round-tests (Files): Likewise.
1672         * modules/roundf-tests (Files): Likewise.
1673         * modules/roundl-tests (Files): Likewise.
1674         * modules/ldexpl-tests (Files): Likewise.
1675         * modules/signbit-tests (Files): Likewise.
1676         * modules/snprintf-posix-tests (Files): Likewise.
1677         * modules/sprintf-posix-tests (Files): Likewise.
1678         * modules/strtod-tests (Files): Likewise.
1679         * modules/trunc-tests (Files): Likewise.
1680         * modules/truncf-tests (Files): Likewise.
1681         * modules/truncl-tests (Files): Likewise.
1682         * modules/vsnprintf-posix-tests (Files): Likewise.
1683         * modules/vsprintf-posix-tests (Files): Likewise.
1684         * modules/vasnprintf-posix-tests (Files): Likewise.
1685         * modules/vasprintf-posix-tests (Files): Likewise.
1686         * tests/test-ceilf1.c (main): Use it.
1687         * tests/test-ceill.c (main): Likewise.
1688         * tests/test-floorf1.c (main): Likewise.
1689         * tests/test-floorl.c (main): Likewise.
1690         * tests/test-frexp.c (main): Likewise.
1691         * tests/test-frexpl.c (main): Likewise.
1692         * tests/test-isnan.c (main): Likewise.
1693         * tests/test-isnand.h (main): Likewise.
1694         * tests/test-isnanf.h (main): Likewise.
1695         * tests/test-isnanl.h (main): Likewise.
1696         * tests/test-ldexpl.c (main): Likewise.
1697         * tests/test-round.c (main): Likewise.
1698         * tests/test-roundf.c (main): Likewise.
1699         * tests/test-roundl.c (main): Likewise.
1700         * tests/test-signbit.c (test_signbitf, test_signbitd)
1701         (test_signbitl): Likewise.
1702         * tests/test-snprintf-posix.h (test_function): Likewise.
1703         * tests/test-sprintf-posix.h (test_function): Likewise.
1704         * tests/test-strtod.c (main): Likewise.
1705         * tests/test-trunc1.c (main): Likewise.
1706         * tests/test-truncf1.c (main): Likewise.
1707         * tests/test-truncl.c (main): Likewise.
1708
1709         isnanl: work around icc bug
1710         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1711
1712 2010-11-03  Eric Blake  <eblake@redhat.com>
1713
1714         tests: fix compiler warnings
1715         * tests/test-getopt.h (test_getopt): Fix condition.
1716         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1717         * tests/test-pipe2.c (main): Likewise.
1718         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1719
1720         utimens: fix broken m4 test
1721         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1722
1723 2010-10-28  Bruno Haible  <bruno@clisp.org>
1724
1725         posix_spawn*, getdtablesize: Relax license.
1726         * modules/posix_spawn (License): Change to LGPLv2+.
1727         * modules/posix_spawnp (License): Likewise.
1728         * modules/posix_spawn-internal (License): Likewise.
1729         * modules/posix_spawnattr_init (License): Likewise.
1730         * modules/posix_spawnattr_getflags (License): Likewise.
1731         * modules/posix_spawnattr_setflags (License): Likewise.
1732         * modules/posix_spawnattr_getpgroup (License): Likewise.
1733         * modules/posix_spawnattr_setpgroup (License): Likewise.
1734         * modules/posix_spawnattr_getschedparam (License): Likewise.
1735         * modules/posix_spawnattr_setschedparam (License): Likewise.
1736         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1737         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1738         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1739         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1740         * modules/posix_spawnattr_getsigmask (License): Likewise.
1741         * modules/posix_spawnattr_setsigmask (License): Likewise.
1742         * modules/posix_spawnattr_destroy (License): Likewise.
1743         * modules/posix_spawn_file_actions_init (License): Likewise.
1744         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1745         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1746         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1747         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1748         * modules/getdtablesize (License): Likewise.
1749         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1750
1751 2010-10-26  Bruno Haible  <bruno@clisp.org>
1752
1753         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1754         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1755         Cygwin and mingw.
1756         Suggested by Eric Blake.
1757
1758 2010-10-26  Bruno Haible  <bruno@clisp.org>
1759
1760         stdio: Work around compilation error due to renameat() on Solaris 10.
1761         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1762         * lib/renameat.c: Don't include <unistd.h> here.
1763         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1764         Reported by Paul Eggert and Eric Blake.
1765
1766 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1767
1768         renameat: port to Solaris 10, which declares renameat in unistd.h
1769
1770         * lib/renameat.c: Include unistd.h before stdio.h, because
1771         Solaris 10 declares renameat in unistd.h.  Problem encountered
1772         when building GNU tar 1.24 on Solaris 10.
1773
1774 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1775
1776         fdopendir: fix C89 compilation
1777         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1778         compilers.
1779
1780 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         inttostr: simplify by removing unnecessary redundancy
1783         * lib/anytostr.c: Don't include verify.h.
1784         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1785         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1786         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1787         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1788         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1789         Likewise.
1790         * modules/inttostr (Depends-on): Remove 'verify'.
1791
1792 2010-10-23  Bruno Haible  <bruno@clisp.org>
1793
1794         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1795         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1796         Reported by Eric Blake.
1797
1798 2010-10-23  Bruno Haible  <bruno@clisp.org>
1799
1800         Tests: Fix LOCALE_JA on MirBSD 10.
1801         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1802         to an UTF-8 locale.
1803         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1805         Reported by Eric Blake.
1806
1807 2010-10-21  Bruno Haible  <bruno@clisp.org>
1808
1809         nl_langinfo test: Avoid test failure on NetBSD 5.
1810         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1811         Reported by Eric Blake.
1812
1813 2010-10-21  Eric Blake  <eblake@redhat.com>
1814
1815         c-stack: work around libsigsegv 2.8 bug
1816         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1817         overflow on at least PowerPC64.
1818
1819 2010-10-17  Bruno Haible  <bruno@clisp.org>
1820
1821         userspec: Drop redundant file.
1822         * modules/userspec (Files): Remove lib/inttostr.h.
1823
1824 2010-10-17  Bruno Haible  <bruno@clisp.org>
1825
1826         nl_langinfo tests: Silence some warnings.
1827         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1828         Reported by Jim Meyering.
1829
1830 2010-10-17  Bruno Haible  <bruno@clisp.org>
1831
1832         Make use of GCC's attribute __alloc_size__.
1833         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1834         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1835         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1836         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1837         __alloc_size__.
1838         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1839         Suggested by Jim Meyering.
1840
1841 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1842
1843         bootstrap: anchor .gitignore entries.
1844         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1845         with...
1846         (insert_vc_ignore): ... this new function, which prepends `/' to
1847         all .gitignore entries before passing them to
1848         insert_sorted_if_absent.
1849
1850 2010-10-16  Bruno Haible  <bruno@clisp.org>
1851
1852         nextafter: Fix configure check.
1853         * modules/nextafter (configure.ac): Correct expected prototype.
1854
1855 2010-10-16  Bruno Haible  <bruno@clisp.org>
1856
1857         termios: Update documentation.
1858         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1859
1860 2010-10-16  Bruno Haible  <bruno@clisp.org>
1861
1862         tests: Make them compile with TinyCC.
1863         * tests/test-strstr.c (main): Remove parentheses around array
1864         initializer.
1865
1866 2010-10-15  Eric Blake  <eblake@redhat.com>
1867
1868         ignore-value: make header idempotent
1869         * lib/ignore-value.h: Add double-inclusion guards.
1870         Reported by Stefan Berger.
1871
1872 2010-10-15  Jim Meyering  <meyering@redhat.com>
1873
1874         GNUmakefile: handle "stable" target, not "major"
1875         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1876         lists in maint.mk and announce-gen.  Without this, "make stable"
1877         would fail to ensure that $(VERSION) is up to date.
1878
1879 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1880
1881         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1882         & co.
1883
1884 2010-10-14  Bruno Haible  <bruno@clisp.org>
1885
1886         vasnprintf: Don't set errno to 0.
1887         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1888         block that sets it to 0.
1889         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1890
1891 2010-10-14  Bruno Haible  <bruno@clisp.org>
1892
1893         socketlib: Fix.
1894         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1895         gl_PREREQ_SYS_H_WINSOCK2.
1896         Reported by Ian Beckwith <ianb@erislabs.net>.
1897
1898 2010-10-13  Jim Meyering  <meyering@redhat.com>
1899
1900         test-select-stdin.c: avoid warn_unused_result warnings
1901         * tests/test-select-stdin.c: Include "macros.h".
1902         ASSERT that read and fflush succeed.
1903
1904 2010-10-13  Jim Meyering  <meyering@redhat.com>
1905
1906         git-version-gen: do require git-VC'd files in cwd
1907         * build-aux/git-version-gen: Reject a git version string
1908         if there are no commits associated with the current directory.
1909         This avoids an unlikely false-positive (unrelated dir whose parent
1910         repository also contains a tag matching v*), as pointed out
1911         by Giuseppe Scrivano in
1912         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1913
1914 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1915
1916         argv-iter: omit nonconforming declaration
1917         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1918         enum arg_iter_err declaration, which doesn't conform to C99.
1919         Solaris 10 cc warns about this.
1920
1921 2010-10-13  Eric Blake  <eblake@redhat.com>
1922
1923         termios: fix compilation on mingw
1924         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1925         (gl_TERMIOS_H): Adjust it on mingw.
1926         * modules/termios (Makefile.am): Substitute new key.
1927         * lib/termios.in.h (includes): Make include_next conditional.
1928         * doc/posix-headers/termios.texi (termios.h): Update
1929         documentation.
1930         Reported by Daniel P. Berrange.
1931
1932 2010-10-13  Jim Meyering  <meyering@redhat.com>
1933
1934         git-version-gen: don't require that .git/ be in the current dir
1935         * build-aux/git-version-gen: Adjust this script so that it works
1936         when run from any working directory beneath the top-level .git/-
1937         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1938         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1939
1940         test-select: avoid warn_unused_result warnings
1941         * tests/test-select.c: Include "macros.h".
1942         ASSERT that each call to read, write, and pipe succeeds.
1943         While not technically required, also check each "close".
1944         * modules/select-tests (Files): Add tests/macros.h.
1945
1946         test-symlinkat: remove declaration of unused local
1947         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1948
1949         test-inttostr: avoid shadowing warnings
1950         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1951         and use malloc rather than the stack for the same reason as
1952         mentioned in the comment justifying the other allocation.
1953
1954 2010-10-11  Bruno Haible  <bruno@clisp.org>
1955
1956         stdlib: Allow multiple gnulib generated replacements to coexist.
1957         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1958         Reported by Sam Steingold <sds@gnu.org>.
1959
1960 2010-10-11  Jim Meyering  <meyering@redhat.com>
1961
1962         fix a documentation typo
1963         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1964
1965 2010-10-11  Eric Blake  <eblake@redhat.com>
1966
1967         futimens: work around Solaris 11 bug
1968         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1969         * tests/test-futimens.h (test_futimens): Enhance, rather than
1970         weaken test.
1971         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1972
1973 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1974
1975         Indentation.
1976         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
1977         higher-level operators more to the left.
1978
1979 2010-10-11  Jim Meyering  <meyering@redhat.com>
1980
1981         test-futimens: avoid unwarranted test failure on Solaris 5.11
1982         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1983         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1984         because it tries to dereference the NULL name argument.
1985
1986 2010-10-11  Bruno Haible  <bruno@clisp.org>
1987
1988         Indentation.
1989         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1990         indentation.
1991
1992 2010-10-11  Jim Meyering  <meyering@redhat.com>
1993
1994         spawn.in.h: make indentation consistent with parentheses
1995         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1996         Make indentation consistent with parentheses.
1997
1998 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1999
2000         Fix mismatched parens in previous commit
2001         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
2002         parens.
2003
2004 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2005
2006         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
2007
2008         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
2009         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
2010         * lib/malloca.c: Include "verify.h".
2011         (verify1): Remove, replacing with a verify call.
2012         * lib/relocwrapper.c (verify1): Likewise.
2013         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
2014         Likewise.
2015         * modules/malloca (Depends-on): Add 'verify'.
2016         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
2017         * modules/vasnprintf (Depends-on): Add 'verify'.
2018         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2019         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2020         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2021         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2022         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2023         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2024         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2025
2026         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
2027
2028         Formerly the style was sometimes 2*X - 1, because the C standard
2029         was wrongly thought to disallow ?: in integral constant expressions.
2030         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
2031         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
2032         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2033         * lib/stdint.in.h (_verify_intmax_size): Likewise.
2034         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
2035         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
2036         verify that time_t cannot be floating.
2037
2038 2010-10-08  Eric Blake  <eblake@redhat.com>
2039
2040         time: enforce recent POSIX ruling that time_t is integral
2041         * lib/time.in.h (__time_t_must_be_integral): Detect any
2042         problematic systems, allowing the rest of gnulib to assume POSIX.
2043
2044 2010-10-08  Jim Meyering  <meyering@redhat.com>
2045
2046         fdopendir: fix a bug on systems lacking openat and /proc support
2047         OpenBSD 4.7 is one such system.  The most noticeable effect was
2048         failure of any application making nontrivial use of fts: rm, du,
2049         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
2050           ./rm: traversal failed: `a': Bad file descriptor
2051         Debugging that, you see that even though FD 6 was closed just
2052         prior to the opendir call in fd_clone_opendir, its resulting
2053         dir->dd_fd was 8, rather than the expected value of 6:
2054
2055         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
2056         93                close (fd);
2057         (gdb) n
2058         94                dir = fd_clone_opendir (dupfd);
2059         (gdb) n
2060         95                saved_errno = errno;
2061         (gdb) p dir->dd_fd
2062         $11 = 8
2063
2064         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
2065         The problem is that on OpenBSD, fd_clone_opendir has to resort
2066         to using the old-style save/restore CWD mechanism, due to its
2067         lack of openat/proc support, and *that* would steal the FD (6)
2068         that opendir was supposed to use.
2069
2070         The fix is to squirrel away the desired FD so that save_cwd uses a
2071         different one, and then free the dest FD right before calling opendir.
2072         That guarantees opendir will use the required file descriptor.
2073
2074         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
2075
2076 2010-10-08  Bruno Haible  <bruno@clisp.org>
2077
2078         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2079         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2080
2081 2010-10-08  Bruno Haible  <bruno@clisp.org>
2082
2083         nanosleep: Make replacement POSIX compliant.
2084         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2085         is out of range.
2086         Reported by Jim Meyering.
2087
2088 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2089
2090         bootstrap: add hook for altering gnulib.mk, for Bison
2091         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2092         the Bison bootstrapping process can rewrite file names and variables
2093         in this file before later parts of 'bootstrap' use the file.
2094         Bison wants to include lib/gnulib.mk from the top-level makefile,
2095         so it needs the file names in this file to be relative to the top
2096         level, not relative to lib; plus it needs variable names to be
2097         rewritten.
2098         (slurp): Use the new function.
2099
2100         bootstrap: reformat for readability
2101         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2102
2103 2010-10-08  Eric Blake  <eblake@redhat.com>
2104
2105         docs: update cygwin progress
2106         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2107         1.7.7.
2108         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2109         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2110         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2111         * doc/posix-functions/carg.texi (carg): Likewise.
2112         * doc/posix-functions/cargf.texi (cargf): Likewise.
2113         * doc/posix-functions/casin.texi (casin): Likewise.
2114         * doc/posix-functions/casinf.texi (casinf): Likewise.
2115         * doc/posix-functions/casinh.texi (casinh): Likewise.
2116         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2117         * doc/posix-functions/catan.texi (catan): Likewise.
2118         * doc/posix-functions/catanf.texi (catanf): Likewise.
2119         * doc/posix-functions/catanh.texi (catanh): Likewise.
2120         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2121         * doc/posix-functions/ccos.texi (ccos): Likewise.
2122         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2123         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2124         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2125         * doc/posix-functions/cexp.texi (cexp): Likewise.
2126         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2127         * doc/posix-functions/cimag.texi (cimag): Likewise.
2128         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2129         * doc/posix-functions/clog.texi (clog): Likewise.
2130         * doc/posix-functions/clogf.texi (clogf): Likewise.
2131         * doc/posix-functions/conj.texi (conj): Likewise.
2132         * doc/posix-functions/conjf.texi (conjf): Likewise.
2133         * doc/posix-functions/cpow.texi (cpow): Likewise.
2134         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2135         * doc/posix-functions/cproj.texi (cproj): Likewise.
2136         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2137         * doc/posix-functions/creal.texi (creal): Likewise.
2138         * doc/posix-functions/crealf.texi (crealf): Likewise.
2139         * doc/posix-functions/csin.texi (csin): Likewise.
2140         * doc/posix-functions/csinf.texi (csinf): Likewise.
2141         * doc/posix-functions/csinh.texi (csinh): Likewise.
2142         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2143         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2144         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2145         * doc/posix-functions/ctan.texi (ctan): Likewise.
2146         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2147         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2148         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2149         * doc/posix-headers/complex.texi (complex.h): Likewise.
2150
2151 2010-10-07  Jim Meyering  <meyering@redhat.com>
2152
2153         parse-datetime: avoid compilation failure on OpenBSD 4.7
2154         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2155         This works around a compilation failure on OpenBSD 4.7:
2156         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2157
2158 2010-10-07  Eric Blake  <eblake@redhat.com>
2159
2160         docs: update cygwin progress
2161         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2162         1.7.6.
2163         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2164         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2165         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2166         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2167         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2168         Likewise.
2169         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2170         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2171         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2172         Likewise.
2173         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2174         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2175         Likewise.
2176         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2177         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2178         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2179         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2180         Likewise.
2181         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2182         Likewise.
2183         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2184
2185         docs: update parse-datetime history
2186         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2187         documentation of this function's history and alternatives.
2188
2189         cygwin: use more robust version check
2190         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2191         exclude an eventual cygwin 1.9.1.
2192         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2194         (gl_FUNC_STRCASESTR): Likewise.
2195         Reported by Bruno Haible.
2196
2197 2010-10-06  Bruno Haible  <bruno@clisp.org>
2198
2199         string, sys_select: Avoid #including large headers unless necessary.
2200         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2201         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2202         OSF/1, BeOS, Haiku.
2203         Reported by Jim Meyering.
2204
2205 2010-10-05  Eric Blake  <eblake@redhat.com>
2206
2207         memmem, strstr, strcasestr: fix bug with long periodic needle
2208         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2209         periodic needle having false positive.
2210         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2211         and cygwin 1.7.7.
2212         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2214         (gl_FUNC_STRCASESTR): Likewise.
2215         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2216         * tests/test-memmem.c (main): Expose the bug.
2217         * tests/test-strcasestr.c (main): Likewise.
2218         * tests/test-strstr.c (main): Likewise.
2219         * tests/test-c-strcasestr.c (main): Likewise.
2220         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2221         * doc/posix-functions/strstr.texi (strstr): Likewise.
2222         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2223         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2224
2225 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2226
2227         parse-datetime: do some more renaming
2228         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2229         parse_datetime, not get_date.  Mention the renaming.
2230         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2231         in comments.
2232         * m4/bison.m4: Likewise.
2233
2234 2010-10-05  Eric Blake  <eblake@redhat.com>
2235
2236         parse-datetime: better name than get_date
2237         * NEWS: Reword the deprecation notice.
2238         * modules/get_date: Rename to modules/parse-datetime.
2239         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2240         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2241         * lib/get_date.y: Rename to lib/parse-datetime.y.
2242         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2243         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2244         * doc/getdate.texi: Provide fallback wrapper.
2245         * lib/getdate.h: Move guts, and wrap...
2246         * lib/parse-datetime.h: ...new file.
2247         * lib/parse-datetime.y (get_date): Rename...
2248         (parse_datetime): ...to this.
2249         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2250         (gl_PARSE_DATETIME): ...to this.
2251         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2252         documentation.
2253         * modules/getdate (Files): Provide fallback docs and header.
2254         (Notice, Depends-on): Update references.
2255         * tests/test-parse-datetime.c: Likewise.
2256         * DEPENDENCIES: Likewise.
2257         * MODULES.html.sh (Date and time <time.h>): Likewise.
2258         * doc/parse-datetime.texi (Date input formats)
2259         (Authors of parse_datetime): Likewise.
2260         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2261         (Include): Likewise.
2262         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2263         * gnulib-tool: Likewise.
2264         * m4/bison.m4 (gl_BISON): Likewise.
2265         Suggested by Bruno Haible.
2266
2267 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2268
2269         more ports to Solaris tr, which needs [] around ranges
2270         * gnulib-tool: Solaris tr needs [] around ranges.
2271         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2272         * tests/test-pipe-filter-gi1.c (main): Likewise.
2273         * tests/test-pipe-filter-ii1.c (main): Likewise.
2274
2275 2010-10-05  Eric Blake  <eblake@redhat.com>
2276
2277         bootstrap: fix Solaris regression
2278         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2279         around ranges.
2280         Reported by Pádraig Brady.
2281
2282         bootstrap: work with pkg-config
2283         * build-aux/bootstrap (check_versions): Also transliterate - in
2284         prerequisite name.
2285         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2286         prerequisites that were already found, to avoid confusion.
2287         Reported by Justin Clift.
2288
2289         faccessat: remove unused wrappers
2290         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2291         presence of these wrappers dragged in -lgen on Solaris.
2292         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2293
2294 2010-10-05  Jim Meyering  <meyering@redhat.com>
2295
2296         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2297         * Makefile (sc_pragma_columns): New syntax-check rule.
2298
2299 2010-10-04  Bruno Haible  <bruno@clisp.org>
2300
2301         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2302         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2303         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2304         Reported by Bruce Korb and Eric Blake.
2305
2306 2010-10-04  Bruno Haible  <bruno@clisp.org>
2307
2308         threadlib: Make option --with-libpth-prefix work.
2309         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2310         use $LIBPTH, not just -lpth.
2311
2312 2010-10-04  Bruno Haible  <bruno@clisp.org>
2313
2314         Avoid line length limitation from HP NonStop system header files.
2315         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2316         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2317         * lib/ctype.in.h: Likewise.
2318         * lib/dirent.in.h: Likewise.
2319         * lib/errno.in.h: Likewise.
2320         * lib/fcntl.in.h: Likewise.
2321         * lib/float.in.h: Likewise.
2322         * lib/getopt.in.h: Likewise.
2323         * lib/iconv.in.h: Likewise.
2324         * lib/inttypes.in.h: Likewise.
2325         * lib/langinfo.in.h: Likewise.
2326         * lib/locale.in.h: Likewise.
2327         * lib/math.in.h: Likewise.
2328         * lib/netdb.in.h: Likewise.
2329         * lib/netinet_in.in.h: Likewise.
2330         * lib/poll.in.h: Likewise.
2331         * lib/pthread.in.h: Likewise.
2332         * lib/pty.in.h: Likewise.
2333         * lib/sched.in.h: Likewise.
2334         * lib/se-selinux.in.h: Likewise.
2335         * lib/search.in.h: Likewise.
2336         * lib/signal.in.h: Likewise.
2337         * lib/spawn.in.h: Likewise.
2338         * lib/stdarg.in.h: Likewise.
2339         * lib/stddef.in.h: Likewise.
2340         * lib/stdint.in.h: Likewise.
2341         * lib/stdio.in.h: Likewise.
2342         * lib/stdlib.in.h: Likewise.
2343         * lib/string.in.h: Likewise.
2344         * lib/strings.in.h: Likewise.
2345         * lib/sys_file.in.h: Likewise.
2346         * lib/sys_ioctl.in.h: Likewise.
2347         * lib/sys_select.in.h: Likewise.
2348         * lib/sys_socket.in.h: Likewise.
2349         * lib/sys_stat.in.h: Likewise.
2350         * lib/sys_time.in.h: Likewise.
2351         * lib/sys_times.in.h: Likewise.
2352         * lib/sys_utsname.in.h: Likewise.
2353         * lib/sys_wait.in.h: Likewise.
2354         * lib/sysexits.in.h: Likewise.
2355         * lib/termios.in.h: Likewise.
2356         * lib/time.in.h: Likewise.
2357         * lib/unistd.in.h: Likewise.
2358         * lib/wchar.in.h: Likewise.
2359         * lib/wctype.in.h: Likewise.
2360         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2361         * modules/ctype (Makefile.am): Likewise.
2362         * modules/dirent (Makefile.am): Likewise.
2363         * modules/errno (Makefile.am): Likewise.
2364         * modules/fcntl-h (Makefile.am): Likewise.
2365         * modules/float (Makefile.am): Likewise.
2366         * modules/getopt-posix (Makefile.am): Likewise.
2367         * modules/iconv-h (Makefile.am): Likewise.
2368         * modules/inttypes (Makefile.am): Likewise.
2369         * modules/langinfo (Makefile.am): Likewise.
2370         * modules/locale (Makefile.am): Likewise.
2371         * modules/math (Makefile.am): Likewise.
2372         * modules/netdb (Makefile.am): Likewise.
2373         * modules/netinet_in (Makefile.am): Likewise.
2374         * modules/poll-h (Makefile.am): Likewise.
2375         * modules/pthread (Makefile.am): Likewise.
2376         * modules/pty (Makefile.am): Likewise.
2377         * modules/sched (Makefile.am): Likewise.
2378         * modules/search (Makefile.am): Likewise.
2379         * modules/selinux-h (Makefile.am): Likewise.
2380         * modules/signal (Makefile.am): Likewise.
2381         * modules/spawn (Makefile.am): Likewise.
2382         * modules/stdarg (Makefile.am): Likewise.
2383         * modules/stddef (Makefile.am): Likewise.
2384         * modules/stdint (Makefile.am): Likewise.
2385         * modules/stdio (Makefile.am): Likewise.
2386         * modules/stdlib (Makefile.am): Likewise.
2387         * modules/string (Makefile.am): Likewise.
2388         * modules/strings (Makefile.am): Likewise.
2389         * modules/sys_file (Makefile.am): Likewise.
2390         * modules/sys_ioctl (Makefile.am): Likewise.
2391         * modules/sys_select (Makefile.am): Likewise.
2392         * modules/sys_socket (Makefile.am): Likewise.
2393         * modules/sys_stat (Makefile.am): Likewise.
2394         * modules/sys_time (Makefile.am): Likewise.
2395         * modules/sys_times (Makefile.am): Likewise.
2396         * modules/sys_utsname (Makefile.am): Likewise.
2397         * modules/sys_wait (Makefile.am): Likewise.
2398         * modules/sysexits (Makefile.am): Likewise.
2399         * modules/termios (Makefile.am): Likewise.
2400         * modules/time (Makefile.am): Likewise.
2401         * modules/unistd (Makefile.am): Likewise.
2402         * modules/wchar (Makefile.am): Likewise.
2403         * modules/wctype (Makefile.am): Likewise.
2404
2405 2010-10-04  Bruno Haible  <bruno@clisp.org>
2406
2407         read-file tests: Avoid a test failure on NonStop Kernel.
2408         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2409         a regular file.
2410         Reported by Joachim Schmitz <schmitz@hp.com>.
2411
2412 2010-10-03  Bruno Haible  <bruno@clisp.org>
2413
2414         gnulib-tool: Fixes for --create-testdir with --libtool.
2415         * gnulib-tool (func_get_automake_snippet): Don't augment
2416         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2417         an executable.
2418         (func_create_testdir): Handle module 'alloca' like func_import.
2419         Reported by Bruce Korb <bruce.korb@gmail.com>.
2420
2421 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2422
2423         Avoid some lines longer than 80 characters.
2424         * lib/stdint.in.h: Break long comment lines.
2425         * lib/math.in.h: Likewise.
2426         (_GL_NUM_UINT_WORDS): New macro, for readability.
2427         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2428         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2429         * lib/stdlib.in.h: Likewise.
2430         * lib/spawn.in.h: Likewise.
2431         * lib/sys_socket.in.h: Update an URL.
2432         * lib/sys_stat.in.h: Break long line.
2433
2434 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2435
2436         Improve pmccabe2html.
2437         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2438         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2439         when the sources change. Remove the line in the HTML about "Used
2440         ranges" (which implied that there might be other unused ranges),
2441         rename "Resume" to "Summary" (easier to understand for more users).
2442         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2443         styles, and some unnecessary blank lines.
2444
2445 2010-10-03  Bruno Haible  <bruno@clisp.org>
2446             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2447
2448         acl: Add support for ACLs on NonStop Kernel.
2449         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2450         Check whether the function aclsort() exists.
2451         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2452         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2453         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2454         (acl_nontrivial [HAVE_ACLSORT]: New function.
2455         (file_has_acl): Implement for NonStop Kernel.
2456         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2457         (qset_acl): Implement for NonStop Kernel.
2458         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2459         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2460         (main): Implement for NonStop Kernel.
2461         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2462         Kernel. Handle this flavor.
2463         * tests/test-set-mode-acl.sh: Likewise.
2464         * tests/test-copy-acl.sh: Likewise.
2465         * tests/test-copy-file.sh: Likewise.
2466
2467 2010-10-03  Bruno Haible  <bruno@clisp.org>
2468
2469         Info about ACLs on NonStop Kernel.
2470         * doc/acl-resources.txt: Add info about NonStop Kernel.
2471         References by Joachim Schmitz <schmitz@hp.com>.
2472
2473 2010-10-02  Bruno Haible  <bruno@clisp.org>
2474
2475         Define missing EDQUOT on NonStop Kernel.
2476         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2477         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2478         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2479         missing.
2480         * doc/posix-headers/errno.texi: Mention the NSK bug.
2481         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2482         Reported by Joachim Schmitz <schmitz@hp.com>.
2483
2484 2010-10-02  Bruno Haible  <bruno@clisp.org>
2485
2486         Update doc for POSIX:2008.
2487         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2488         Update URL of POSIX specification.
2489
2490 2010-10-02  Bruno Haible  <bruno@clisp.org>
2491
2492         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2493         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2494         from gnulib, not from Automake.
2495
2496 2010-10-02  Bruno Haible  <bruno@clisp.org>
2497
2498         New module 'system-posix'.
2499         * modules/system-posix: New file.
2500         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2501         module is present.
2502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2503         GNULIB_SYSTEM_POSIX.
2504         * modules/stdlib (Depends-on): Remove sys_wait.
2505         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2506         * doc/posix-functions/system.texi: Mention the new module.
2507         * doc/posix-headers/stdlib.texi: Likewise.
2508         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2509         define test_sys_wait_macros to a no-op.
2510         Reported by Sam Steingold <sds@gnu.org>.
2511
2512 2010-09-30  Bruno Haible  <bruno@clisp.org>
2513
2514         More renaming from 'getdate' to 'get_date'.
2515         * doc/get_date.texi: Renamed from doc/getdate.texi.
2516         * modules/get_date (Files): Update.
2517         * MODULES.html.sh (Date and time <time.h>): Update.
2518         * DEPENDENCIES: Update.
2519         * gnulib-tool: Update comment.
2520         * m4/bison.m4 (gl_BISON): Likewise.
2521         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2522
2523 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2524
2525         bootstrap: support ACLOCAL_FLAGS during aclocal
2526         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2527         can add additional -I dir for third-party .m4 files.
2528
2529 2010-09-30  Eric Blake  <eblake@redhat.com>
2530
2531         bootstrap: use glibtoolize on MacOS
2532         * build-aux/bootstrap (check_versions): Convert libtool into
2533         libtoolize.
2534         (tool search): Move libtool check earlier, and look for
2535         glibtoolize for MacOS.
2536         (gnulib_tool_options): Auto-add --libtool when appropriate.
2537         Reported by Justin Clift.
2538
2539         poll: fix typo that broke test on MacOS
2540         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2541         Reported by Justin Clift.
2542
2543         getdate: rename to get_date
2544         Note: getdate.h is not renamed, to minimize client impact.
2545         * modules/getdate: Mark obsolete.  Move old contents...
2546         * modules/get_date: ...to new module name.
2547         * modules/getdate-tests: Move...
2548         * modules/get_date-tests: ...here.
2549         * m4/getdate.m4: Move...
2550         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2551         * lib/getdate.y: Move...
2552         * lib/get_date.y: ...here.
2553         * tests/test-getdate.c: Move...
2554         * tests/test-get_date.c: ...here.
2555         * doc/posix-functions/getdate.texi (getdate): Update name.
2556         * NEWS: Mention the change.
2557
2558 2010-09-29  Bruno Haible  <bruno@clisp.org>
2559
2560         Separate the module 'waitpid' from the module 'sys_wait'.
2561         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2562         present.
2563         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2564         gl_MODULE_INDICATOR_FOR_TESTS.
2565         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2566         * modules/sys_wait (Depends-on): Remove waitpid.
2567         (Makefile.am): Substitute GNULIB_WAITPID.
2568         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2569         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2570         signature only if the 'waitpid' module is present.
2571         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2572         * NEWS: Mention the change.
2573         * modules/grantpt (Depends-on): Add waitpid.
2574         * modules/wait-process (Depends-on): Likewise.
2575
2576 2010-09-29  Bruno Haible  <bruno@clisp.org>
2577
2578         More tests for module 'sys_wait'.
2579         * modules/sys_wait-c++-tests: New file.
2580         * tests/test-sys_wait-c++.cc: New file.
2581         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2582         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2583
2584 2010-09-29  Bruno Haible  <bruno@clisp.org>
2585
2586         New module 'waitpid'.
2587         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2588         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2589         Don't include <process.h>.
2590         (waitpid): Declare only, using modern idiom.
2591         * m4/waitpid.m4: New file.
2592         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2593         * modules/waitpid: New file.
2594         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2595         (Makefile.am): Update.
2596         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2597
2598 2010-09-28  Bruno Haible  <bruno@clisp.org>
2599
2600         poll: Assume ANSI C.
2601         * lib/poll.c (poll): Use an ANSI C declaration.
2602
2603 2010-09-28  Bruno Haible  <bruno@clisp.org>
2604
2605         poll-h: Create poll.h on all platforms.
2606         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2607         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2608         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2609         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2610         (gl_REPLACE_POLL_H): Don't set POLL_H.
2611         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2612         * modules/poll-h (Depends-on): Add include_next.
2613         (Makefile.am): Create poll.h unconditionally. Substitute also
2614         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2615
2616 2010-09-28  Bruno Haible  <bruno@clisp.org>
2617
2618         Tests for module 'poll-h'.
2619         * modules/poll-h-c++-tests: New file.
2620         * tests/test-poll-h-c++.cc: New file.
2621
2622         Tests for module 'poll-h'.
2623         * modules/poll-h-tests: New file.
2624         * tests/test-poll-h.c: New file.
2625
2626 2010-09-28  Bruno Haible  <bruno@clisp.org>
2627
2628         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2629         * modules/poll-h (Depends-on): Add 'extensions'.
2630
2631 2010-09-28  Bruno Haible  <bruno@clisp.org>
2632
2633         New module 'poll-h'.
2634         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2635         (poll): Use modern idiom.
2636         * modules/poll-h: New file.
2637         * modules/poll (Files): Remove lib/poll.in.h.
2638         (Depends-on): Add poll-h.
2639         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2640         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2641         * m4/poll_h.m4: New file.
2642         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2643         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2644         and invoke gl_REPLACE_POLL_H.
2645         * lib/poll.c: Use common idiom.
2646         * tests/test-poll.c: Likewise.
2647         * doc/posix-headers/poll.texi: Mention the poll-h module.
2648         Suggested by Eric Blake.
2649
2650 2010-09-26  Bruno Haible  <bruno@clisp.org>
2651
2652         sys_wait: Implement WSTOPSIG.
2653         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2654         Reported by Simon Josefsson.
2655
2656 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2657
2658         stdlib, sys_wait: Avoid compilation error on mingw.
2659         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2660
2661 2010-09-26  Bruno Haible  <bruno@clisp.org>
2662
2663         stdlib tests: Avoid code duplication.
2664         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2665         * modules/sys_wait-tests (Files): Likewise.
2666         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2667         * tests/test-stdlib.c: Include test-sys_wait.h.
2668         (main): Invoke test_sys_wait_macros.
2669         * tests/test-sys_wait.c: Include test-sys_wait.h.
2670         (main): Invoke test_sys_wait_macros.
2671
2672 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2673
2674         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2675         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2676         sure Windows sockets are working before calling getaddrinfo.
2677         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2678         * doc/gnulib.texi (Windows sockets): Fix typo.
2679
2680 2010-09-25  Bruno Haible  <bruno@clisp.org>
2681
2682         Tests for module 'regex-quote'.
2683         * modules/regex-quote-tests: New file.
2684         * tests/test-regex-quote.c: New file.
2685
2686         New module 'regex-quote'.
2687         * lib/regex-quote.h: New file.
2688         * lib/regex-quote.c: New file.
2689         * modules/regex-quote: New file.
2690         Suggested by Reuben Thomas <rrt@sc3d.org>.
2691
2692 2010-09-24  Bruno Haible  <bruno@clisp.org>
2693
2694         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2695         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2696
2697 2010-09-23  Bruno Haible  <bruno@clisp.org>
2698
2699         setenv: Relax license.
2700         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2701         Blake.
2702         Requested by Eric Blake.
2703
2704 2010-09-22  Bruno Haible  <bruno@clisp.org>
2705
2706         termios: Relax license.
2707         * modules/termios (License): Change to LGPLv2+.
2708         Requested by Eric Blake.
2709
2710 2010-09-22  Bruno Haible  <bruno@clisp.org>
2711
2712         threadlib: Allow the package to change the default to 'no'.
2713         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2714         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2715         Reported by Paul Eggert.
2716
2717 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2718             Bruno Haible  <bruno@clisp.org>
2719
2720         Fix endless loop in mbmemcasecoll.
2721         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2722         byte.
2723         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2724
2725 2010-09-22  Bruno Haible  <bruno@clisp.org>
2726
2727         Tests for module 'memcoll'.
2728         * modules/memcoll-tests: New file.
2729         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2730
2731         memcoll, xmemcoll: Clarify size vs. length.
2732         * modules/memcoll.c (memcoll0): Clarify specification.
2733         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2734         passed to collate_error.
2735
2736 2010-09-22  Bruno Haible  <bruno@clisp.org>
2737
2738         Tests for module 'memcasecmp'.
2739         * modules/memcasecmp-tests: New file.
2740         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2741
2742 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2743
2744         * lib/pthread.in.h: Add split double-inclusion guard, and include
2745         system <pthread.h> if there is one.  Use @@-style as in other
2746         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2747         pthread.h doesn't.
2748         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2749         (pthread_mutexattr_settype, pthread_mutex_trylock):
2750         New static inline functions, if there's no system <pthread.h>.
2751         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2752         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2753         Approximate with mutexes if the system lacks spinlocks, as in
2754         MacOS.
2755         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2756         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2757         @@-style.  Check for spinlocks separately.
2758         (gl_PTHREAD_DEFAULTS): New macro.
2759         * modules/pthread: Redo to use a more typical style for in.h files.
2760
2761 2010-09-21  Eric Blake  <eblake@redhat.com>
2762
2763         net_if: enhance tests
2764         * tests/test-net_if.c (main): Move signature checks earlier.
2765         Print failures to stderr.
2766         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2767         Document the bug that we do not yet fix.
2768
2769 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2770
2771         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2772         about gnulib, not GSS.
2773
2774 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2775
2776         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2777         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2778         for Emacs.
2779         * build-aux/pmccabe2html: Make Makefile.am example code more
2780         cut-and-paste friendly.
2781
2782 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2783
2784         * tests/test-net_if.c: New file.
2785         * modules/net_if-tests: New file.
2786
2787 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2788
2789         pthread: add pthread_spin_destroy
2790         * lib/pthread.in.h (pthread_spin_destroy): New function.
2791
2792 2010-09-19  Bruno Haible  <bruno@clisp.org>
2793
2794         gnulib-tool: Fix --help output.
2795         * gnulib-tool (func_usage): Fix help message.
2796         Reported by Reuben Thomas <rrt@sc3d.org>.
2797
2798 2010-09-18  Jim Meyering  <meyering@redhat.com>
2799
2800         maint.mk: avoid unexpanded \n in two diagnostics
2801         * top/maint.mk (sc_prohibit_always_true_header_tests):
2802         Don't use a literal \n in a halt=... assignment.  It would not be
2803         expanded, and the two \n bytes would appear in the diagnostic output
2804         rather than the desired newline.  Use halt=$$(printf ... instead.
2805         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2806
2807 2010-09-18  Bruno Haible  <bruno@clisp.org>
2808
2809         netinet_in: Doc tweak.
2810         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2811         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2812
2813 2010-09-18  Jim Meyering  <meyering@redhat.com>
2814
2815         init.sh: correct an outdated comment
2816         * tests/init.sh (create_exe_shims_):  s/function/alias/
2817
2818         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2819         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2820         a file named "*.exe" is removed between the glob expansion and the
2821         processing of that oddly named file.
2822
2823 2010-09-17  Eric Blake  <eblake@redhat.com>
2824
2825         mirbsd: add some more support
2826         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2827         in BSD family.
2828         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2829         devices as OpenBSD.
2830         * m4/host-os.m4 (mirbsd): Add MirBSD.
2831
2832         tests: fix unportable assumption on sys/wait.h
2833         * tests/test-sys_wait.c (main): Relax test.
2834         * tests/test-stdlib.c (main): Likewise.
2835
2836         init.sh: accomodate directory with no .exes
2837         * tests/init.sh: Accomodate directory containing only scripts.
2838
2839         tests: avoid compiler warning
2840         * tests/test-stdlib.c (main): Use the variable.
2841
2842         fdutimens, fdutimensat: update signature, again
2843         * lib/utimens.h (gl_futimens): Delete, and move signature...
2844         (fdutimens): ...here.
2845         (fdutimensat): Rearrange signature.
2846         (lutimensat): Rename variable for clarity.
2847         * lib/fdutimensat.c (fdutimensat): Update signature.
2848         * lib/utimens.c (fdutimens): Likewise.
2849         (gl_futimens): Delete.
2850         (utimens, lutimens): Update callers.
2851         * lib/futimens.c (futimens): Likewise.
2852         * tests/test-fdutimensat.c: Likewise.
2853         * tests/test-utimens.c: Likewise.
2854         * tests/test-futimens.h: Update comment.
2855         * NEWS: Mention this.
2856         Suggested by Paul Eggert.
2857
2858 2010-09-17  Bruno Haible  <bruno@clisp.org>
2859
2860         Take over the maintenance of some older macros from Autoconf.
2861         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2862         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2863         GNU Autoconf.
2864         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2865         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2866
2867 2010-09-17  Eric Blake  <eblake@redhat.com>
2868
2869         fdutimensat: drop atflag validation
2870         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2871         with valid fd, to close a race scenario where futimens is
2872         unsupported and FILE was replaced by a symlink.
2873         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2874         accordingly.
2875         Suggested by Paul Eggert.
2876
2877 2010-09-16  Bruno Haible  <bruno@clisp.org>
2878
2879         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2880         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2881
2882 2010-09-16  Bruno Haible  <bruno@clisp.org>
2883
2884         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2885         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2886         login_tty exists.
2887         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2888
2889 2010-09-16  Bruno Haible  <bruno@clisp.org>
2890
2891         login_tty: Make the replacement code work on BSD systems.
2892         * lib/login_tty.c: Include <sys/ioctl.h>.
2893         (login_tty): Use ioctl TIOCSCTTY when available.
2894         * modules/login_tty (Depends-on): Add sys_ioctl.
2895         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2896
2897 2010-09-16  Bruno Haible  <bruno@clisp.org>
2898
2899         login_tty: Stricter unit test.
2900         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2901         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2902         and tcgetsid() after login_tty.
2903         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2904
2905 2010-09-16  Bruno Haible  <bruno@clisp.org>
2906
2907         New module 'tcgetsid'.
2908         * lib/tcgetsid.c: New file.
2909         * m4/tcgetsid.m4: New file.
2910         * modules/tcgetsid: New file.
2911         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2912         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2913         GNULIB_TCGETSID, HAVE_TCGETSID.
2914         * lib/termios.in.h: Include <sys/types.h>.
2915         (tcgetsid): New declaration.
2916         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2917         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2918         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2919         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2920
2921 2010-09-16  Bruno Haible  <bruno@clisp.org>
2922
2923         Tests for module 'termios'.
2924         * modules/termios-c++-tests: New file.
2925         * modules/termios-tests: New file.
2926         * tests/test-termios-c++.cc: New file.
2927         * tests/test-termios.c: New file.
2928
2929         New module 'termios'.
2930         * modules/termios: New file.
2931         * lib/termios.in.h: New file.
2932         * m4/termios_h.m4: New file.
2933         * doc/posix-headers/termios.texi: Mention the new module.
2934
2935 2010-09-16  Eric Blake  <eblake@redhat.com>
2936
2937         fdutimensat: add an atflag parameter
2938         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2939         * lib/utimens.h (fdutimensat): Update prototype.
2940         * tests/test-fdutimensat.c: Adjust test to match.
2941         * NEWS: Document the change.
2942         Suggested by Paul Eggert.
2943
2944 2010-09-16  Bruno Haible  <bruno@clisp.org>
2945
2946         Fix typos in comments.
2947         * lib/striconveh.h: Fix typo in comment.
2948         * lib/login_tty.c (login_tty): Likewise.
2949
2950 2010-09-15  Bruno Haible  <bruno@clisp.org>
2951
2952         stdlib: clarify MirBSD WEXITSTATUS bug
2953         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2954         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2955
2956 2010-09-15  Eric Blake  <eblake@redhat.com>
2957
2958         stdlib: work around MirBSD WEXITSTATUS bug
2959         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2960         * modules/stdlib (Depends-on): Add sys_wait.
2961         * tests/test-sys_wait.c (main): Enhance test.
2962         * tests/test-stdlib.c (main): Likewise.
2963         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2964
2965         docs: mention MacOS issue with WEXITSTATUS(constant)
2966         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2967         issue.
2968         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2969
2970         strnlen: add tests
2971         * modules/strnlen-tests: New file.
2972         * tests/test-strnlen.c: Likewise.
2973
2974 2010-09-14  Bruno Haible  <bruno@clisp.org>
2975
2976         unistr/base: Avoid link errors when module 'libunistring' is also used.
2977         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
2978         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
2979         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
2980         Declare also when HAVE_LIBUNISTRING is set.
2981         Reported by Pádraig Brady <P@draigbrady.com>.
2982
2983 2010-09-14  Eric Blake  <eblake@redhat.com>
2984
2985         test-rawmemchr: make more robust
2986         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2987         (Depends-on, configure.ac): Add needed prerequisites to use it.
2988         * modules/memchr-tests (Files, Depends-on, configure.ac):
2989         Likewise, to avoid implicit reliance on memchr module prereqs.
2990         * tests/test-memchr.c (main): Ensure proper masking.
2991         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2992         reads.
2993
2994         memchr: detect glibc Alpha bug
2995         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2996         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2997         Alpha.
2998         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2999         * tests/test-memchr.c (main): Enhance test.
3000         Reported by Nelson H. F. Beebe.
3001
3002 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3003
3004         fts, getcwd, glob: audit for dirfd returning -1
3005         * lib/fts.c (opendir): Remove #define; no longer used.
3006         (opendirat): New arg PDIR_FD.  All callers changed.
3007         (fts_build, _opendir2): Use new opendirat to avoid the need for
3008         dirfd, or for checking whether dirfd returns a negative value.
3009         Don't use opendir; always use openat followed by fdopendir.
3010         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
3011         it.
3012         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
3013         returns -1 here.
3014         * modules/fts (Depends-on): Remove dirfd.
3015         * modules/getcwd (Depends-on): Likewise.
3016
3017 2010-09-13  Eric Blake  <eblake@redhat.com>
3018
3019         float: fix broken MirBSD header
3020         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
3021         * doc/posix-headers/float.texi (float.h): Document it.
3022
3023 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3024
3025         fts: use O_NOFOLLOW to avoid race condition when opening a directory
3026         * lib/fts.c (opendirat): New arg extra_flags.
3027         (__opendir2): Use it to avoid following symlinks when opening
3028         a directory, if symlinks are not supposed to be followed.  See
3029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
3030
3031         fdopendir: preserve argument fd before returning
3032         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
3033         (fdopendir_with_dup, fd_clone_opendir): New static functions.
3034         (fdopendir): Use them, arranging for FD to be open to the same
3035         directory that it was when it started.  (It might be temporarily
3036         closed while fdopendir is running, so this not thread- or
3037         signal-safe.)  Be careful to do the right thing even when file
3038         descriptors are scarce and dup fails with errno == EMFILE.  See
3039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
3040
3041 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
3042
3043         regex: Pass the system regex if its only problem is 32-bit regoff_t.
3044         * NEWS: Document change.
3045         * m4/regex.m4: Disable test for regoff_t size.
3046
3047 2010-09-13  Jim Meyering  <meyering@redhat.com>
3048
3049         fts: don't operate on an invalid file descriptor after failed dup
3050         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
3051         negative file descriptor.
3052
3053 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3054
3055         savedir: add streamsavedir, deprecate fdsavedir
3056         * NEWS: Mention deprecation of fdsavedir.
3057         * lib/savedir.c (streamsavedir): New extern function, whose name
3058         ends in "savedir" to be consistent with the others.  This differs
3059         from savedirstream in that it doesn't close its argument.  The
3060         next version of GNU tar will use this instead of fdsavedir, to
3061         avoid some race conditions and conserve file descriptors.
3062         (savedirstream): Reimplement as a wrapper around streamsavedir.
3063         (fdsavedir): Add a comment deprecating this function.  As far as
3064         I know, only GNU tar used it, and GNU tar doesn't need it any more.
3065         * lib/savedir.h (streamsavedir): New decl.
3066         (fdsavedir): Add a comment deprecating this.
3067
3068 2010-09-10  Bruno Haible  <bruno@clisp.org>
3069
3070         langinfo: Fix last commit.
3071         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
3072         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
3073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3074
3075 2010-09-10  Bruno Haible  <bruno@clisp.org>
3076
3077         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3078         * lib/progreloc.c (O_EXEC): Define fallback.
3079
3080 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3081
3082         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3083         * NEWS: Document recent changes to fcntl-h.
3084         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3085         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3086         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3087         Similarly for O_SEARCH; this last was already true, but not documented.
3088         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3089         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3090         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3091         Likewise.
3092         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3093         is zero, not whether it is defined.
3094         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3095         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3096         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3097
3098 2010-09-10  Bruno Haible  <bruno@clisp.org>
3099
3100         langinfo, nl_langinfo: Fix for IRIX 5.3.
3101         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3102         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3103         HAVE_LANGINFO_YESEXPR.
3104         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3105         HAVE_LANGINFO_YESEXPR.
3106         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3107         HAVE_LANGINFO_T_FMT_AMPM is 0.
3108         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3109         HAVE_LANGINFO_YESEXPR is 0.
3110         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3111         NOEXPR.
3112         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3113         * doc/posix-functions/nl_langinfo.texi: Likewise.
3114         Reported by Eric Blake.
3115
3116 2010-09-10  Bruno Haible  <bruno@clisp.org>
3117
3118         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3119         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3120         on FreeBSD 8.0 and OpenBSD 4.6.
3121         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3122         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3123         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3124         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3125         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3126         ac_includes_default.
3127         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3128
3129 2010-09-09  Eric Blake  <eblake@redhat.com>
3130
3131         strsignal: work around NetBSD bug
3132         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3133         * lib/string.in.h (includes): Likewise.
3134         * doc/posix-functions/strsignal.texi (strsignal): Document the
3135         bug.
3136         Reported by Nelson H. F. Beebe.
3137
3138         gnulib-tool: work with NetBSD /bin/sh
3139         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3140         (func_get_description, func_get_comment, func_get_status)
3141         (func_get_notice, func_get_applicability, func_get_filelist)
3142         (func_get_dependencies, func_get_autoconf_early_snippet)
3143         (func_get_autoconf_snippet, func_get_automake_snippet)
3144         (func_get_include_directive, func_get_link_directive)
3145         (func_get_license, func_get_maintainer, func_import): Avoid
3146         shell syntax errors from parsing syntax extensions.
3147
3148 2010-09-09  Bruno Haible  <bruno@clisp.org>
3149
3150         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3151         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3152         a reliable way to determine whether the 'alias' command works.
3153
3154 2010-09-08  Jim Meyering  <meyering@redhat.com>
3155
3156         init.sh: penalize a set-x-impaired shell; don't disqualify it
3157         * tests/init.sh: Too many shells corrupt application stderr when
3158         you set -x, so we can't afford to disqualify them, since at least
3159         on Irix-6.5, that would disqualify all bourne shells.
3160         Instead, use a two-pass approach.
3161         On the first pass, try to find a shell that meets the stricter
3162         condition that set -x does not corrupt stderr.
3163         If no shell meets the stricter condition, retest each candidate
3164         shell, but without that extra condition.  Finally, when
3165         VERBOSE=yes is requested and set -x might cause trouble, simply
3166         issue a warning and refrain from enabling debug output.
3167
3168 2010-09-08  Eric Blake  <eblake@redhat.com>
3169
3170         unsetenv: fix OpenBSD bug
3171         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3172         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3173         documentation.
3174         Reported by Jim Meyering.
3175
3176         strtod: work around IRIX 6.5 bug
3177         * lib/strtod.c (strtod): Reparse number on shorter string if
3178         exponent parse was invalid.
3179         * tests/test-strtod.c (main): Add check for "0x1p 2".
3180         Reported by Tom G. Christensen.
3181
3182         getopt: optimize previous patch
3183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3184         empty variable.  Speed up awk script.
3185         Reported by Paolo Bonzini.
3186
3187 2010-09-08  Jim Meyering  <meyering@redhat.com>
3188
3189         test.sh: disqualify shells for which set -x corrupts stderr
3190         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3191         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3192         appear in stderr output.  For example, this command:
3193             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3194         prints "P=1" on those two systems:
3195
3196 2010-09-08  Bruno Haible  <bruno@clisp.org>
3197
3198         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3199         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3200         commands, because some shells ignore redirections when there is an
3201         error in the command lookup.
3202         Reported by Eric Blake.
3203
3204 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3205
3206         * lib/regex.h: Fix a mention of `regex_compile' (should be
3207         `re_compile_pattern').
3208         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3209         (re_set_registers): Correct name of parameter in comment.
3210
3211         * doc/regex.texi: Add documentation for missing syntax flags.
3212         Remove commented-out documentation of defunct syntax option
3213         RE_NO_EMPTY_ALTS.
3214         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3215         Add documentation of re_set_registers.
3216         Document trick to re-use a pattern buffer by setting fastmap manually.
3217         Update documentation of struct re_pattern_buffer per public members.
3218         Uncomment documentation of equivalence class operators and
3219         collating symbol operators, since they are now implemented,
3220         Explain leftmost-longest matching in relation to alternatives.
3221         Tidy documentation of substring matching.
3222         Remove POSIX documentation, which is done better in
3223         glibc, and refer the reader there. Keep BSD API documentation, as
3224         that is not readily available elsewhere.
3225
3226 2010-09-07  Eric Blake  <eblake@redhat.com>
3227
3228         getopt: handle POSIXLY_CORRECT set but not exported
3229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3230         export state of POSIXLY_CORRECT, due to bash set -o posix.
3231         Reported by Dustin J. Mitchell.
3232
3233 2010-09-05  Bruno Haible  <bruno@clisp.org>
3234
3235         gnulib-tool: Highlight the changed options.
3236         * gnulib-tool (func_usage): Display the --import, --add-import,
3237         --remove-import explanations in bold font.
3238
3239 2010-09-06  Karl Berry  <karl@gnu.org>
3240
3241         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3242
3243 2010-09-05  Bruno Haible  <bruno@clisp.org>
3244
3245         uniwidth/width: Update comment.
3246         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3247         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3248
3249 2010-09-05  Bruno Haible  <bruno@clisp.org>
3250
3251         isinf, isnan: Relax license.
3252         * modules/isinf (License): Change from GPL to LGPL, with consent from
3253         Ben Pfaff.
3254         * modules/isnan (License): Likewise.
3255         Requested by Ludovic Courtès.
3256
3257 2010-09-04  Bruno Haible  <bruno@clisp.org>
3258
3259         gnulib-tool: Help migration from --import to --add-import or --update.
3260         * gnulib-tool: Emit a verbose error message when --import is used
3261         without any module name.
3262
3263 2010-09-04  Bruno Haible  <bruno@clisp.org>
3264
3265         Update doc about gnulib-tool.
3266         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3267         'gnulib-tool --update' in more detail.
3268         Reported by Eric Blake.
3269
3270 2010-09-04  Bruno Haible  <bruno@clisp.org>
3271
3272         gnulib-tool: Change --import. New options --add/remove-import.
3273         * gnulib-tool: New options --add-import, --remove-import.
3274         (func_usage): Document them.
3275         (have_associative): Define always.
3276         (func_import): In import mode, don't merge the specified settings with
3277         the cached settings. Implement remove-import mode.
3278         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3279         Explain when to use them versus --import.
3280         (Simple update): Use --add-import instead of --import.
3281         * NEWS: Mention the change.
3282
3283 2010-09-04  Bruno Haible  <bruno@clisp.org>
3284
3285         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3286         separate gnulib.mk.
3287
3288 2010-09-04  Bruno Haible  <bruno@clisp.org>
3289
3290         gnulib-tool: Don't talk about CVS any more.
3291         * gnulib-tool (func_usage, func_import): Write "version control"
3292         instead of CVS.
3293
3294 2010-09-04  Jim Meyering  <meyering@redhat.com>
3295
3296         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3297         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3298         false positives (whose names may be ill-chosen) when searching
3299         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3300         would cause a false-positive.
3301
3302         avoid coreutils "make distcheck" failure
3303         Coreutils tests with an absolute build directory name that contains
3304         a space.  Not quoting this directory name caused a failure.
3305         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3306         * tests/test-vc-list-files-cvs.sh: Likewise.
3307
3308 2010-09-04  Bruno Haible  <bruno@clisp.org>
3309
3310         gnulib-tool: Avoid error when run in a package without Makefile.am.
3311         * gnulib-tool: When collecting the m4dirs in a package that does not
3312         have a Makefile.am, eliminate those directories that contain no
3313         gnulib-cache.m4. Fix expression that counts these directories.
3314
3315 2010-09-04  Bruno Haible  <bruno@clisp.org>
3316
3317         update-copyright test: Improve output when perl is missing or too old.
3318         * tests/test-update-copyright.sh: Move test of Perl version down after
3319         the test whether Perl exists. Provide an explanation relating Perl's
3320         error message to Automake's SKIP: message.
3321
3322 2010-09-04  Bruno Haible  <bruno@clisp.org>
3323
3324         Don't augment PATH in TESTS_ENVIRONMENT.
3325         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3326         set abs_aux_dir instead of augmenting PATH.
3327         * modules/vc-list-files-tests (Makefile.am): Likewise.
3328         * tests/test-update-copyright.sh: Augment PATH here.
3329         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3330         path_prepend_.
3331         * tests/test-vc-list-files-git.sh: Likewise.
3332
3333 2010-09-04  Jim Meyering  <meyering@redhat.com>
3334
3335         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3336         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3337
3338 2010-09-04  Bruno Haible  <bruno@clisp.org>
3339
3340         strdup: Fix compilation error in C++ mode.
3341         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3342         the macro.
3343
3344 2010-09-04  Bruno Haible  <bruno@clisp.org>
3345
3346         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3347         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3348         macro into a function.
3349         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3350
3351 2010-09-04  Bruno Haible  <bruno@clisp.org>
3352
3353         Set PATH_SEPARATOR the same way autoconf does.
3354         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3355         the value of PATH_SEPARATOR the same way autoconf-generated configure
3356         scripts do.
3357         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3358         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3359
3360 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3361
3362         Set PATH_SEPARATOR the same way autoconf does.
3363         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3364         the same way autoconf-generated configure scripts do.
3365         * posix-modules: Likewise.
3366
3367 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3368
3369         hash: fix safe_hasher const typo
3370         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3371         const; otherwise, there is a type error later.
3372
3373 2010-09-02  Jim Meyering  <meyering@redhat.com>
3374
3375         test-update-copyright.sh: require perl 5.8.0
3376         * tests/test-update-copyright.sh: Require 5.8.0,
3377         which Tom G. Christensen has confirmed is adequate,
3378         while 5.6.1 is not.
3379
3380 2010-09-02  Eric Blake  <eblake@redhat.com>
3381
3382         tests: init.sh improvements for re-exec'ing with zsh
3383         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3384         -vx through shell re-exec.
3385         Reported by Tom G. Christensen.
3386
3387         wctype: fix typo in previous commit
3388         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3389         Reported by Ludovic Courtès.
3390
3391 2010-09-02  Jim Meyering  <meyering@redhat.com>
3392
3393         test-update-copyright.sh: skip test if Perl is too old
3394         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3395         Reported by Tom G. Christensen.
3396
3397 2010-09-02  Bruno Haible  <bruno@clisp.org>
3398
3399         wctype: Avoid compilation error on IRIX 6.5.30.
3400         * lib/wctype.in.h (iswblank): Declare with a replacement if
3401         REPLACE_ISWBLANK is set.
3402         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3403         declared. Set REPLACE_ISWBLANK.
3404         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3405         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3406         * doc/posix-headers/wctype.texi: Likewise.
3407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3408
3409 2010-09-01  Bruno Haible  <bruno@clisp.org>
3410
3411         New module 'socketlib'.
3412         * modules/socketlib: New file.
3413         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3414         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3415         * modules/sockets (Depends-on): Add socketlib.
3416         Suggested by Sam Steingold <sds@gnu.org>.
3417
3418 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3419
3420         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3421
3422         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3423         when one needs search access to a directory but not read access.
3424         On systems where it is available, it works in some cases where
3425         O_RDONLY does not, namely on directories that are searchable but
3426         not readable, and which need only to be searchable.  If O_SEARCH
3427         is not available, fall back to the traditional method of using
3428         O_RDONLY.
3429
3430         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3431         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3432         when opening a directory that needs only to be searchable.
3433         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3434         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3435         * lib/openat-proc.c (openat_proc_name): Likewise.
3436         * lib/openat.c (openat_needs_fchdir): Likewise.
3437         * lib/save-cwd.c (save_cwd): Likewise.
3438         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3439
3440 2010-08-28  Bruno Haible  <bruno@clisp.org>
3441
3442         New module 'host-cpu-c-abi'.
3443         * modules/host-cpu-c-abi: New file.
3444         * m4/host-cpu-c-abi.m4: New file, based on part of
3445         clisp/src/m4/general.m4.
3446         Requested by Sam Steingold <sds@gnu.org>.
3447
3448 2010-08-31  Eric Blake  <eblake@redhat.com>
3449         and Jim Meyering  <meyering@redhat.com>
3450
3451         hash: factor, and guard against misbehaving hasher function
3452         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3453         of table->hasher's return value.  Also protect against a hash value
3454         so large that adding it to table->bucket results in a NULL pointer.
3455         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3456         Use it in place of open-coded check-and-abort.
3457
3458 2010-08-30  Bruno Haible  <bruno@clisp.org>
3459
3460         hash: silence spurious clang warning
3461         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3462         Reported by Eric Blake.
3463
3464 2010-08-30  Eric Blake  <eblake@redhat.com>
3465
3466         strstr, memmem, strcasestr: avoid leaked shell message
3467         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3468         FreeBSD.
3469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3471
3472         tests: silence clang warning
3473         * tests/test-malloca.c (do_allocation): Avoid dead store.
3474
3475 2010-08-29  Bruno Haible  <bruno@clisp.org>
3476
3477         gettext: Fix recent mistake.
3478         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3479
3480 2010-08-29  Bruno Haible  <bruno@clisp.org>
3481
3482         selinux-h: Offer a --without-selinux option.
3483         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3484         --without-selinux was specified, skip all tests and define
3485         HAVE_SELINUX_SELINUX_H to 0.
3486         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3487         set LIB_SELINUX to empty.
3488         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3489         gl_LIBSELINUX. If --without-selinux was specified, replace
3490         selinux/context.h.
3491         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3492
3493 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3494             Bruno Haible  <bruno@clisp.org>
3495
3496         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3497         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3498         of HAVE_REALLOC.
3499         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3500         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3501         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3502         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3503
3504 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3505             Bruno Haible  <bruno@clisp.org>
3506
3507         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3508         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3509         HAVE_CALLOC.
3510         * lib/xmalloc.c: Update accordingly.
3511         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3512         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3513         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3514
3515 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3516             Bruno Haible  <bruno@clisp.org>
3517
3518         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3519         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3520         HAVE_MALLOC.
3521         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3522         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3523         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3524
3525 2010-08-29  Bruno Haible  <bruno@clisp.org>
3526
3527         Update modules list.
3528         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3529         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3530         (String handling <string.h>): Add astrxfrm.
3531         (File system functions): Add readlinkat.
3532
3533 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3534
3535         Tests for module 'realloc-gnu'.
3536         * modules/realloc-gnu-tests: New file.
3537         * tests/test-realloc-gnu.c: New file.
3538
3539         Tests for module 'calloc-gnu'.
3540         * modules/calloc-gnu-tests: New file.
3541         * tests/test-calloc-gnu.c: New file.
3542
3543         Tests for module 'malloc-gnu'.
3544         * modules/malloc-gnu-tests: New file.
3545         * tests/test-malloc-gnu.c: New file.
3546
3547 2010-08-28  Bruno Haible  <bruno@clisp.org>
3548
3549         Rename module 'realloc' -> 'realloc-gnu'.
3550         * modules/realloc-gnu: New file, copied from modules/realloc.
3551         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3552         obsolete.
3553         * modules/mgetgroups (Depends-on): Update.
3554         * doc/posix-functions/realloc.texi: Update.
3555         * NEWS: Mention the change.
3556
3557         Rename module 'calloc' -> 'calloc-gnu'.
3558         * modules/calloc-gnu: New file, copied from modules/calloc.
3559         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3560         obsolete.
3561         * doc/posix-functions/calloc.texi: Update.
3562         * NEWS: Mention the change.
3563
3564         Rename module 'malloc' -> 'malloc-gnu'.
3565         * modules/malloc-gnu: New file, copied from modules/malloc.
3566         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3567         obsolete.
3568         * modules/argp (Depends-on): Update.
3569         * modules/regex (Depends-on): Update.
3570         * doc/posix-functions/malloc.texi: Update.
3571         * NEWS: Mention the change.
3572
3573 2010-08-28  Eric Blake  <eblake@redhat.com>
3574
3575         pread, pwrite: add missing dependency
3576         * modules/pread (Depends-on): Add extensions.
3577         * modules/pwrite (Depends-on): Likewise.
3578
3579 2010-08-28  Bruno Haible  <bruno@clisp.org>
3580
3581         unistr/u*-strchr: Fix tests dependencies.
3582         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3583         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3584         Reported by Ian Beckwith <ianb@erislabs.net>.
3585
3586 2010-08-28  Bruno Haible  <bruno@clisp.org>
3587
3588         read-file: Don't occupy too much unused memory.
3589         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3590
3591 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3592             Eric Blake  <eblake@redhat.com>
3593             Bruno Haible  <bruno@clisp.org>
3594
3595         read-file: Avoid memory reallocations with regular files.
3596         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3597         (fread_file): With regular files, use the remaining length as the
3598         initial buffer size.  Check against overflow.
3599         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3600         sys_stat.
3601
3602 2010-08-28  Bruno Haible  <bruno@clisp.org>
3603
3604         ftello: Relax license.
3605         * modules/ftello (License): Relax to LGPLv2+.
3606         Reported by Eric Blake.
3607
3608 2010-08-28  Bruno Haible  <bruno@clisp.org>
3609
3610         Avoid relocwrapper link errors due to gnulib replacement functions.
3611         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3612         function.
3613         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3614
3615 2010-08-28  Bruno Haible  <bruno@clisp.org>
3616
3617         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3618         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3619         defined.
3620         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3621         Suggested by Eric Blake.
3622
3623 2010-08-28  Bruno Haible  <bruno@clisp.org>
3624
3625         sys_socket, netdb: Ensure socklen_t gets defined.
3626         * modules/sys_socket (Depends-on): Add socklen.
3627         * modules/netdb (Depends-on): Likewise.
3628         * modules/getaddrinfo (Depends-on): Remove socklen.
3629         * modules/getsockopt (Depends-on): Likewise.
3630         * modules/setsockopt (Depends-on): Likewise.
3631         * tests/test-sys_socket.c: Check that socklen_t is defined.
3632         * tests/test-netdb.c: Likewise.
3633         * m4/socklen.m4: Update comments.
3634         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3635
3636 2010-08-27  Eric Blake  <eblake@redhat.com>
3637
3638         login_tty: add missing dependency
3639         * modules/login_tty (Depends-on): Add pty.
3640
3641 2010-08-26  Eric Blake  <eblake@redhat.com>
3642
3643         lib-symbol-versions: fix m4 quoting
3644         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3645         format for AC_LINK_IFELSE.
3646
3647         glob: fix compile test
3648         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3649
3650         btowc: fix missing file
3651         * modules/btowc (Files): Also ship locale-fr.m4.
3652
3653         lseek: fix link test
3654         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3655         AC_LINK_IFELSE.
3656
3657         include_next: silence autoconf 2.68 warning
3658         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3659         AC_COMPILE_IFELSE as special.
3660         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3661         autoconf < 2.68.
3662
3663         acl: fix compilation test
3664         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3665         AC_COMPILE_IFELSE.
3666
3667 2010-08-26  Bruno Haible  <bruno@clisp.org>
3668
3669         Modernize AC_TRY_RUN invocations.
3670         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3671         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3672         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3673         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3674         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3675         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3676         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3678         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3679         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3680         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3681         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3682         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3683         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3685         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3686         gl_MBRLEN_NUL_RETVAL): Likewise.
3687         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3688         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3689         Likewise.
3690         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3691         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3692         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3693         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3694         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3695         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3696         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3697         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3698         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3699         Likewise.
3700         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3701         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3703         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3704         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3705         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3707         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3708         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3710
3711 2010-08-26  Bruno Haible  <bruno@clisp.org>
3712
3713         Modernize AC_TRY_LINK invocations.
3714         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3715         AC_TRY_LINK.
3716         * m4/argp.m4 (gl_ARGP): Likewise.
3717         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3718         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3719         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3720         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3721         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3722         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3723         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3724         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3725         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3726         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3727         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3728         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3729         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3730         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3731         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3732         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3733         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3734         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3735         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3736         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3737         Likewise.
3738         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3739         Likewise.
3740         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3741         Likewise.
3742         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3744         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3745         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3746         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3747         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3748         * m4/servent.m4 (gl_SERVENT): Likewise.
3749         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3750         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3751         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3752         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3753         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3754         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3755         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3756         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3757         * modules/tsearch-tests (configure.ac): Likewise.
3758
3759 2010-08-26  Bruno Haible  <bruno@clisp.org>
3760
3761         Modernize AC_TRY_COMPILE invocations.
3762         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3763         AC_TRY_COMPILE.
3764         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3765         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3766         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3767         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3768         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3769         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3770         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3771         * m4/lock.m4 (gl_LOCK): Likewise.
3772         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3773         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3774         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3775         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3776         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3777         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3778         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3780         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3781         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3782         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3783         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3784         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3785         extraneous semicolon.
3786
3787 2010-08-26  Jim Meyering  <meyering@redhat.com>
3788
3789         stat-time: relax license LGPL
3790         * modules/stat-time (License): Change from GPL to LGPL,
3791         with consent from all contributors, for use in libguile.
3792         Requested by Ludovic Courtès.
3793
3794 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3795
3796         poll: return immediately on POLLHUP.
3797         * lib/poll.c (poll): Always set timeout before wait_timeout is
3798         computed.
3799
3800 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3801
3802         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3803         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3804         rmdir ("dir/.//"), unlinkat.
3805
3806 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3807
3808         stdbool: avoid spurious failure with modern xlc
3809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3810
3811 2010-08-24  Bruno Haible  <bruno@clisp.org>
3812
3813         getloadavg: simplify code
3814         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3815         gl_have_func. Update comments.
3816
3817 2010-08-24  Eric Blake  <eblake@redhat.com>
3818
3819         getloadavg: don't define SVR4 on cygwin
3820         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3821         only define SVR4 when -lkvm is required.
3822         Reported by Yaakov Selkowitz.
3823
3824 2010-08-24  Bruno Haible  <bruno@clisp.org>
3825
3826         priv-set: fix comment
3827         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3828
3829 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3830
3831         priv-set: fix comments
3832         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3833         to match code, as suggested by David Bartley in:
3834         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3835
3836 2010-08-23  Eric Blake  <eblake@redhat.com>
3837
3838         stdbool: avoid rejecting clang
3839         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3840         * tests/test-stdbool.c: Enable more tests if using the system
3841         <stdbool.h> instead of the gnulib replacement.
3842         (main): Move xlc bug test to a runtime test for all compilers.
3843         Reported by Anders Kaseorg.
3844
3845         argz: fix shell quoting issue
3846         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3847         Reported by Charles Wilson.
3848
3849 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3850             Erik Faye-Lund <kusmabite@gmail.com>
3851
3852         poll, select: handle ERROR_BROKEN_PIPE.
3853         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3854         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3855         * lib/select.c (win32_compute_revents): Do not mark a pipe
3856         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3857
3858 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3859
3860         fts: allow compilation with C++
3861         * lib/fts_.h: Specify extern "C" linkage with C++.
3862
3863 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3864
3865         Fix gnulib-tool sed script de-commentation for AIX sed.
3866         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3867         sed.
3868
3869 2010-08-17  Eric Blake  <eblake@redhat.com>
3870
3871         test-stddef: test for (some) offsetof bugs
3872         * tests/test-stddef.c: Enhance test to ensure correct type of
3873         offsetof.
3874         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3875         that we are not fixing at this time.
3876
3877 2010-08-15  Bruno Haible  <bruno@clisp.org>
3878
3879         stpncpy: Allow stpncpy to be defined as a macro.
3880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3881         if it's already correctly declared.
3882         * lib/string.in.h (stpncpy): Undefine before redefining.
3883         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3884
3885 2010-08-14  Bruno Haible  <bruno@clisp.org>
3886
3887         Rename module 'memxfrm' to 'amemxfrm'.
3888         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3889         (amemxfrm): Renamed from memxfrm.
3890         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3891         (amemxfrm): Renamed from memxfrm.
3892         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3893         * NEWS: Mention the change.
3894         * MODULES.html.sh (String handling <string.h>): Update.
3895         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3896         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3897         * lib/unicase/u16-casexfrm.c: Likewise.
3898         * lib/unicase/u32-casexfrm.c: Likewise.
3899         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3900         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3901         * lib/uninorm/u16-normxfrm.c: Likewise.
3902         * lib/uninorm/u32-normxfrm.c: Likewise.
3903         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3904         memxfrm.
3905         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3906         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3907         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3908         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3909         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3910         Suggested by Paul Eggert.
3911
3912 2010-08-14  Bruno Haible  <bruno@clisp.org>
3913
3914         Tests for module 'astrxfrm'.
3915         * modules/astrxfrm-tests: New file.
3916         * tests/test-astrxfrm.c: New file.
3917
3918         New module 'astrxfrm'.
3919         * lib/astrxfrm.h: New file.
3920         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3921         * modules/astrxfrm: New file.
3922
3923 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3924
3925         regex: Tweak doc.
3926         * doc/regex.texi (Overview): Don't mention regex.c.
3927         (GNU Regular Expression Compiling): Likewise.
3928         (Match-end-of-line Operator): Mention 'not_eol'.
3929
3930 2010-08-14  Brian Gough  <bjg@gnu.org>
3931             Bruno Haible  <bruno@clisp.org>
3932
3933         git-merge-changelog: add doc relating to use with bzr and hg.
3934         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3935
3936 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3937
3938         pthread: fix pthread.h creation for srcdir != builddir
3939         * modules/pthread (Makefile.am): Fix the rule to work also in a
3940         non-srcdir build.
3941
3942 2010-08-13  Karl Berry  <karl@gnu.org>
3943
3944         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3945         * doc/posix-*/*: force line break before @url of POSIX
3946         specifications.
3947         Suggested by Werner Lemberg.
3948
3949 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3950
3951         strtod: fix const diagnostic
3952         * lib/strtod.c (strtod): Don't assign const char * to char *,
3953         as this elicits a warning from GCC when warnings are enabled.
3954
3955 2010-08-10  Pádraig Brady <P@draigbrady.com>
3956         and Eric Blake  <eblake@redhat.com>
3957
3958         copy-acl: ignore ENOTSUP on HP-UX
3959         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3960         so that it is available for HP-UX.
3961         * lib/copy-acl.c (qcopy_acl): Use it.
3962         Reported by Patrick M. Callahan.
3963
3964 2010-08-10  Eric Blake  <eblake@redhat.com>
3965
3966         open, chown: relax license
3967         * modules/open (License): Change to LGPLv2+, with consent by all
3968         authors, for use in augeas.
3969         * modules/chown (License): Likewise.
3970         * modules/lchown (Likewise): Likewise.
3971         Requested by Adam Stokes.
3972
3973 2010-08-09  Karl Berry  <karl@gnu.org>
3974
3975         * build-aux/ar-lib: new file, import from Automake.
3976         * config/srclist.txt: autocheck for updates.
3977
3978 2010-08-09  Eric Blake  <eblake@redhat.com>
3979
3980         readlinkat: adjust client modules
3981         * modules/areadlinkat (Depends-on): Use readlinkat, not
3982         symlinkat.
3983         * modules/areadlinkat-with-size (Depends-on): Likewise.
3984
3985         mknod: be more vocal about danger of running tests as root
3986         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3987         root, since that is just asking for problems.
3988         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3989
3990         readlinkat: split into its own module
3991         * modules/symlinkat: Split readlinkat...
3992         * modules/readlinkat: ...into separate module.
3993         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3994         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3995         * lib/symlinkat.c (readlinkat): Move...
3996         * lib/readlinkat.c: ...into new file.
3997         * modules/symlinkat-tests: Split readlinkat test...
3998         * modules/readlinkat-tests: ...into separate module.
3999         * tests/test-symlinkat.c: Split...
4000         * tests/test-readlinkat.c: ...into new file.
4001         * NEWS: Document the split.
4002         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4003         * lib/unistd.in.h (readlinkat): Likewise.
4004         Suggested by Bruno Haible.
4005
4006 2010-08-08  Bruno Haible  <bruno@clisp.org>
4007
4008         memxfrm: Speed up.
4009         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
4010         that usually only one call to strxfrm is necessary for each string
4011         part.
4012         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4013
4014 2010-08-07  Karl Berry  <karl@gnu.org>
4015
4016         * doc/posix-headers/limits.texi,
4017         * doc/posix-functions/malloc.texi,
4018         * doc/posix-functions/strsignal.texi: missing @item.
4019         * doc/ld-version-script.texi: spurious leading i.
4020         * doc/regex.texi (Interval Operators): no commas inside @var.
4021
4022 2010-08-01  Bruno Haible  <bruno@clisp.org>
4023
4024         Integrate the regex documentation.
4025         * doc/gnulib.texi: Define 'cn' index.
4026         (Regular expressions): New a chapter that includes regex.texi and
4027         regexprops-generic.texi.
4028         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
4029         syntax.
4030
4031         Whitespace cleanup.
4032         * doc/regex.texi: Remove trailing spaces.
4033
4034         Add regex documentation.
4035         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
4036         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
4037         Written by Kathy A. Hargreaves and Karl Berry.
4038
4039 2010-08-01  Bruno Haible  <bruno@clisp.org>
4040
4041         link: Update documentation.
4042         * doc/posix-functions/link.texi: Update regarding Solaris.
4043
4044 2010-07-31  Bruno Haible  <bruno@clisp.org>
4045
4046         Update modules list.
4047         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
4048         (String handling <string.h>): Add memcmp2, memxfrm.
4049         (Container data structures): Add xlist, xsublist, xoset.
4050         (Core language properties): Add alignof, unused-parameter.
4051         (Process control, Numeric conversion functions <stdlib.h>): Renamed
4052         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
4053         (Unibyte characters <ctype.h>): New section.
4054         (String handling <string.h>): New section.
4055         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
4056         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
4057         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
4058         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
4059         tan, tanh, tanl, y0, y1, yn.
4060         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
4061         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
4062         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
4063         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
4064         unlockpt, vdprintf, vdprintf-posix.
4065         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
4066         (File system functions): Add concat-filename, sys_file, sys_ioctl,
4067         xconcat-filename.
4068         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
4069         getdtablesize, pipe2, pipe2-safer.
4070         (Security): New section.
4071         (Networking functions): Add accept4.
4072         (Signal handling): Add sigpipe.
4073         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
4074         mbmemcasecoll.
4075         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
4076         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4077         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4078         pipe-filter-ii.
4079         (Misc): Add argp-version-etc, login_tty, parse-duration.
4080
4081 2010-07-31  Bruno Haible  <bruno@clisp.org>
4082
4083         Improve doc in MODULES.html.
4084         * modules/linkat (Description): Add the word "function".
4085         * modules/mkfifo (Description): Likewise.
4086         * modules/mknod (Description): Likewise.
4087         * modules/remove (Description): Likewise.
4088         * modules/renameat (Description): Likewise.
4089         * modules/stat (Description): Likewise.
4090         * modules/symlink (Description): Likewise.
4091         * modules/unlink (Description): Likewise.
4092
4093 2010-07-31  Bruno Haible  <bruno@clisp.org>
4094
4095         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4096         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4097         option --enable/disable-c++ instead of --enable/disable-cxx.
4098         * NEWS: Mention the change.
4099
4100 2010-07-31  Bruno Haible  <bruno@clisp.org>
4101
4102         readlink, areadlink: Relax test a bit.
4103         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4104         alternative to ENOTDIR.
4105         * tests/test-areadlink.h (test_areadlink): Likewise.
4106         Reported by Rainer Tammer.
4107
4108 2010-07-31  Bruno Haible  <bruno@clisp.org>
4109
4110         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4111         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4112         character, perform the search using U_STRCHR.
4113         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4114         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4115         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4116         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4117         Suggested by Paolo Bonzini.
4118
4119 2010-07-31  Bruno Haible  <bruno@clisp.org>
4120
4121         unistr/u*-strstr: Fix dependencies.
4122         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4123         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4124         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4125
4126 2010-07-31  Bruno Haible  <bruno@clisp.org>
4127
4128         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4129         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4130         the beginning of the loop.
4131         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4132         cases in 'switch' statement.
4133
4134         unistr/u8-strchr: Fix several bugs.
4135         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4136         the string. When not found, return NULL, not a pointer near the end.
4137
4138         More tests for unistr/u8-strchr.
4139         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4140         that the function does not read past the first occurrence of the byte
4141         being searched.
4142         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4143         * tests/unistr/test-u16-strchr.c (main): New function.
4144         * tests/unistr/test-u32-strchr.c (main): New function.
4145
4146 2010-07-31  Bruno Haible  <bruno@clisp.org>
4147
4148         posix-modules: Ignore backup files of documentation files.
4149         * posix-modules: grep only through files named *.texi.
4150
4151 2010-07-31  Bruno Haible  <bruno@clisp.org>
4152
4153         symlinkat: Fix documentation.
4154         * doc/posix-functions/readlinkat.texi: Fix module name.
4155
4156 2010-07-31  Bruno Haible  <bruno@clisp.org>
4157
4158         fchownat: Replace also when chown has the trailing slash bug.
4159         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4160         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4161         introduced on 2010-04-10.
4162         Reported by Rainer Tammer.
4163
4164 2010-07-31  Bruno Haible  <bruno@clisp.org>
4165
4166         linkat: Work around AIX 7.1 bug.
4167         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4168         whether linkat handles trailing slash correctly. If not, replace linkat
4169         and define LINKAT_TRAILING_SLASH_BUG.
4170         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4171         check whether (fd1,file1) points to a directory if file1 or file2 ends
4172         in a slash. Code taken from lib/link.c.
4173         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4174         Reported by Rainer Tammer.
4175
4176 2010-07-31  Bruno Haible  <bruno@clisp.org>
4177
4178         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4179         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4180         This disables an xlc optimization that was causing wrong test results.
4181         Reported by Rainer Tammer.
4182
4183 2010-07-31  Bruno Haible  <bruno@clisp.org>
4184
4185         iconv: Work around AIX 6.1..7.1 bug.
4186         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4187         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4188         cross-compiling, guess no on all versions of AIX.
4189         Reported by Rainer Tammer.
4190
4191 2010-07-31  Bruno Haible  <bruno@clisp.org>
4192
4193         readlink: Relax test a bit.
4194         * tests/test-readlink.h (test_readlink): Allow different errno value
4195         when readlink is called with a file name that ends in / and refers to
4196         a file.
4197         Suggested by Eric Blake.
4198         Reported by Rainer Tammer.
4199
4200 2010-07-31  Bruno Haible  <bruno@clisp.org>
4201
4202         copysign: Does not require -lm on glibc systems.
4203         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4204         gl_COMMON_DOUBLE_MATHFUNC.
4205         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4206
4207 2010-07-31  Bruno Haible  <bruno@clisp.org>
4208
4209         duplocale: Work around AIX 7.1 bug.
4210         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4211         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4212         * lib/duplocale.c (rpl_duplocale): Update comment.
4213         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4214         Reported by Rainer Tammer.
4215
4216 2010-07-30  Bruno Haible  <bruno@clisp.org>
4217
4218         dirfd: Avoid link error on AIX 7.1.
4219         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4220         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4221         exist, set REPLACE_DIRFD.
4222         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4223         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4224         * doc/posix-functions/dirfd.texi: Update.
4225         Reported by Rainer Tammer.
4226
4227 2010-07-30  Eric Blake  <eblake@redhat.com>
4228
4229         strtod: next round of AIX fixes
4230         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4231         exponent.
4232         * tests/test-strtod.c (main): Enhance tests.
4233         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4234         Reported by Rainer Tammer.
4235
4236         futimens: fix configure check
4237         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4238         Reported by Bruno Haible.
4239
4240 2010-07-30  Bruno Haible  <bruno@clisp.org>
4241
4242         getline: Update regarding AIX.
4243         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4244         Reported by Rainer Tammer.
4245
4246 2010-07-30  Bruno Haible  <bruno@clisp.org>
4247
4248         wcwidth: Drop replacement on AIX 7.
4249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4250         AIX 7.
4251         Reported by Rainer Tammer.
4252
4253 2010-07-30  Bruno Haible  <bruno@clisp.org>
4254
4255         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4256         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4257         a 'char *'.
4258         Reported by Rainer Tammer.
4259
4260 2010-07-30  Bruno Haible  <bruno@clisp.org>
4261
4262         unlink: Update regarding AIX.
4263         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4264         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4265         Reported by Rainer Tammer.
4266
4267 2010-07-30  Bruno Haible  <bruno@clisp.org>
4268
4269         symlink: Update regarding AIX.
4270         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4271         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4272         Reported by Rainer Tammer.
4273
4274 2010-07-30  Bruno Haible  <bruno@clisp.org>
4275
4276         strndup: Update regarding AIX.
4277         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4278         AIX 7.
4279         Reported by Rainer Tammer.
4280
4281 2010-07-30  Bruno Haible  <bruno@clisp.org>
4282
4283         stat: Update regarding AIX.
4284         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4285         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4286         Reported by Rainer Tammer.
4287
4288 2010-07-30  Bruno Haible  <bruno@clisp.org>
4289
4290         truncl: Fix autoconf test.
4291         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4292         whether truncl works.
4293         Reported by Rainer Tammer.
4294
4295 2010-07-30  Bruno Haible  <bruno@clisp.org>
4296
4297         round: Update regarding AIX.
4298         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4299         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4300         Reported by Rainer Tammer.
4301
4302 2010-07-30  Bruno Haible  <bruno@clisp.org>
4303
4304         rename: Update regarding AIX.
4305         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4306         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4307         Reported by Rainer Tammer.
4308
4309 2010-07-30  Bruno Haible  <bruno@clisp.org>
4310
4311         printf.m4: Update regarding AIX.
4312         * m4/printf.m4: Update comments regarding AIX.
4313         Reported by Rainer Tammer.
4314
4315 2010-07-30  Bruno Haible  <bruno@clisp.org>
4316
4317         iconv: Update regarding AIX.
4318         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4319         AIX 7.
4320         Reported by Rainer Tammer.
4321
4322 2010-07-30  Bruno Haible  <bruno@clisp.org>
4323
4324         getopt: Update regarding AIX.
4325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4326         no on AIX.
4327         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4328         Reported by Rainer Tammer.
4329
4330 2010-07-30  Bruno Haible  <bruno@clisp.org>
4331
4332         ldexpl; Update regarding AIX.
4333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4334         on AIX 7.
4335         Reported by Rainer Tammer.
4336
4337 2010-07-30  Bruno Haible  <bruno@clisp.org>
4338
4339         frexpl: Update regarding AIX.
4340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4341         on AIX 7.
4342         Reported by Rainer Tammer.
4343
4344 2010-07-30  Bruno Haible  <bruno@clisp.org>
4345
4346         open, fopen: Update regarding AIX.
4347         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4348         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4349         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4350         * doc/posix-functions/fopen.texi: Likewise.
4351         Reported by Rainer Tammer.
4352
4353 2010-07-30  Bruno Haible  <bruno@clisp.org>
4354
4355         chown: Update doc regarding AIX.
4356         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4357         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4358         Reported by Rainer Tammer.
4359
4360 2010-07-30  Eric Blake  <eblake@redhat.com>
4361
4362         strtod: fix bug in replacement function on AIX
4363         * lib/strtod.c (strtod): Special case broken "0x" parse in
4364         underlying strtod.
4365         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4366         * doc/posix-functions/strtod.texi (strtod): Likewise.
4367         Reported by Rainer Tammer.
4368
4369 2010-07-30  Bruno Haible  <bruno@clisp.org>
4370
4371         mbrlen: Fix cross-compilation guess for AIX.
4372         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4373         guess. Leftover from 2008-12-22.
4374
4375 2010-07-30  Bruno Haible  <bruno@clisp.org>
4376
4377         mbrtowc: Fix cross-compilation guess for AIX.
4378         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4379         guess. Leftover from 2008-12-21.
4380
4381 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4382
4383         init.sh: work around trap limitation of some shells
4384         * tests/init.sh (setup_): Move exit trap outside of shell function.
4385
4386 2010-07-29  Eric Blake  <eblake@redhat.com>
4387
4388         strtod: aid debugging
4389         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4390         understanding why strtod is rejected.
4391
4392 2010-07-28  Bruno Haible  <bruno@clisp.org>
4393
4394         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4395         * lib/unistr/u8-chr.c: Include <string.h>.
4396         * tests/unistr/test-u8-chr.c: Likewise.
4397         * tests/unistr/test-u16-chr.c: Likewise.
4398         * tests/unistr/test-u32-chr.c: Likewise.
4399         * tests/unistr/test-u8-strchr.c: Likewise.
4400         * tests/unistr/test-u16-strchr.c: Likewise.
4401         * tests/unistr/test-u32-strchr.c: Likewise.
4402         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4403         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4404         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4405         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4406
4407 2010-07-28  Bruno Haible  <bruno@clisp.org>
4408
4409         Use spaces for indentation, not tabs.
4410         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4411
4412 2010-07-27  Bruno Haible  <bruno@clisp.org>
4413
4414         mbspcasecmp: Fix function specification.
4415         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4416         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4417         Reported by Eric Blake <eblake@redhat.com>.
4418
4419 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4420
4421         timespec: use cast and not conditional, as truncation isn't possible
4422         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4423         instead of a conditional.  Comment about the situation in more detail.
4424         This undoes most of the 2009-10-29 patch.
4425
4426 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4427
4428         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4429         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4430         * lib/unistr/u8-strchr.c: Likewise.
4431         * modules/unistr/u8-chr: Depend on memchr.
4432
4433         unistr/u*-strchr: add tests
4434         * modules/unistr/u8-strchr-tests: New file.
4435         * modules/unistr/u16-strchr-tests: New file.
4436         * modules/unistr/u32-strchr-tests: New file.
4437         * tests/unistr/test-strchr.h: New file.
4438         * tests/unistr/test-u8-strchr.c: New file.
4439         * tests/unistr/test-u16-strchr.c: New file.
4440         * tests/unistr/test-u32-strchr.c: New file.
4441
4442         unistr/u*-chr: test multibyte sequences more
4443         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4444         test vector.
4445         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4446         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4447         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4448
4449         unistr/u*-chr: test multibyte sequences
4450         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4451
4452         unistr/u*-chr: prepare for multibyte tests
4453         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4454         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4455         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4456         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4457         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4458         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4459
4460 2010-07-18  Bruno Haible  <bruno@clisp.org>
4461
4462         unistr/u8-strchr: Optimize non-ASCII argument case.
4463         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4464         because the first byte often matches anyway.
4465         Reported by Pádraig Brady <P@draigbrady.com>.
4466
4467 2010-07-15  Karl Berry  <karl@gnu.org>
4468
4469         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4470
4471 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4472
4473         getcwd: on Solaris, work better if ancestors are inaccessible
4474         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4475         buffer and size, try again with a large buffer.  This works better
4476         on Solaris, since its getcwd succeeds even if the path to the root
4477         is inaccessible, and this is helpful in common cases such as .zfs
4478         hidden directories.  Problem reported by J Chapman Flack in
4479         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4480         Use system getcwd if it's declared, not merely if it's partly
4481         working; use the partly-working test only to avoid needless effort
4482         if the system getcwd fails.
4483         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4484         comment that was already obsolete and is now even more obsolete.
4485         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4486         now might call strdup.
4487
4488 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4489
4490         pthread: Add enough so that coreutils/src/sort.c compiles.
4491         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4492         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4493         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4494         Include <sys/types.h>, in case it defines pthread_t.
4495         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4496         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4497         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4498         (pthread_rwlockattr_t, pthread_spinlock_t):
4499         New typedefs, if HAVE_PTHREAD_T is not defined.
4500         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4501         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4502         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4503         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4504         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4505         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4506         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4507         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4508         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4509         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4510         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4511         New macros.
4512         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4513         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4514         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4515         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4516         (pthread_spin_unlock): New dummy functions.
4517         (pthread_create): Return EAGAIN; don't set errno.
4518         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4519         require AC_C_INLINE.
4520         * modules/pthread (Depends-on): Add sched, time.
4521         (pthread.h): Use AM_V_GEN.
4522
4523 2010-07-13  Bruno Haible  <bruno@clisp.org>
4524
4525         striconveh: Don't malloc memory if the result buffer is sufficient.
4526         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4527         buffer if its size is sufficient.
4528         Reported by Ludovic Courtès <ludo@gnu.org>.
4529
4530 2010-07-13  Bruno Haible  <bruno@clisp.org>
4531
4532         strtod: Add safety check.
4533         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4534
4535 2010-07-12  Bruno Haible  <bruno@clisp.org>
4536
4537         Unify tests that set gl_cv_func_ldexpl_no_libm.
4538         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4539         gl_FUNC_LDEXPL.
4540         (gl_FUNC_LDEXPL): Invoke it.
4541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4542
4543 2010-07-12  Bruno Haible  <bruno@clisp.org>
4544
4545         Unify tests that set gl_cv_func_ldexp_no_libm.
4546         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4547         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4548         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4549         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4550         * modules/strtod (Files): Add m4/ldexp.m4.
4551
4552 2010-07-12  Bruno Haible  <bruno@clisp.org>
4553
4554         Unify tests that set gl_cv_func_frexpl_no_libm.
4555         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4556         gl_FUNC_FREXPL_NO_LIBM.
4557         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4558         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4559
4560 2010-07-12  Bruno Haible  <bruno@clisp.org>
4561
4562         Unify tests that set gl_cv_func_frexp_no_libm.
4563         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4564         gl_FUNC_FREXP_NO_LIBM.
4565         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4566         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4567
4568 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4569
4570         memcoll: clarify sizes versus lengths, document better, and tweak perf
4571         * lib/memcoll.c (strcoll_loop, memcoll0):
4572         Improve quality of descriptive comments.  Name variables
4573         consistently as to whether they are lengths (which do not include
4574         terminating null) versus sizes (which do).
4575         * lib/xmemcoll.c (xmemcoll0): Likewise.
4576         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4577         returned when s1size == 0; this is easier to compile and saves
4578         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4579
4580 2010-07-12  Bruno Haible  <bruno@clisp.org>
4581
4582         Tests for module '_Exit'.
4583         * modules/_Exit-tests: New file.
4584         * tests/test-_Exit.sh: New file.
4585         * tests/test-_Exit.c: New file.
4586
4587         New module '_Exit'.
4588         * lib/stdlib.in.h (__attribute__): New macro.
4589         (_Exit): New declaration.
4590         * lib/_Exit.c: New file.
4591         * m4/_Exit.m4: New file.
4592         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4593         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4594         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4595         * modules/_Exit: New file.
4596         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4597         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4598
4599 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4600
4601         strtod: make it more-accurate typically, and don't require libm
4602         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4603         Include limits.h.  Don't include string.h.
4604         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4605         (locale_isspace): New function, so that no casts are needed to
4606         check whether *s is a space.
4607         (ldexp): Provide an unused dummy if not available.
4608         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4609         (strtod): Use them.  This implementation prefers to use the
4610         underlying strtod if available, falling back on our own code
4611         only to fix known bugs.  This is more likely to produce an
4612         accurate result.  Also, it avoids the use of libm functions.
4613         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4614         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4615         was absent, but it caused a test failure with coreutils.
4616         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4617         with libm.
4618         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4619         * modules/strtod-tests (Makefile.am): Likewise.
4620
4621 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4622             Bruno Haible  <bruno@clisp.org>
4623
4624         unistr/u8-strchr: Optimize ASCII argument case.
4625         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4626
4627 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4628
4629         (x)memcoll: minor tweaks
4630         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4631         is after the type that it qualifies.
4632         (memcoll0): Likewise.
4633         * lib/memcoll.h (memcoll0): Likewise.
4634         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4635         * lib/xmemcoll.h (xmemcoll0): Likewise.
4636         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4637         differs from memcoll in that the NUL byte is part of the argument.
4638         Omit the abort-checks, as performance is a real issue here.  Plus,
4639         the checks were wrong anyway (an off-by-one error).  Omit local
4640         variable 'diff', as it's a bit clearer that way.
4641         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4642         no longer needed.
4643
4644 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4645
4646         (x)memcoll: speedup when input is known to be NUL delimited
4647         * lib/memcoll.c: Include stdlib.
4648         (memcoll0) New function.
4649         (strcoll_loop) New function, refactored for use in both memcoll
4650         and memcoll0.
4651         * lib/memcoll.h: Add prototype for memcoll0.
4652         * lib/xmemcoll.c: (xmemcoll0) New function.
4653         (collate_error) New function, refactored for use in both xmemcoll
4654         and xmemcoll0.
4655         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4656         * m4/memcoll.m4: add inline invocation.
4657
4658 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4659
4660         * build-aux/bootstrap: Remove any local translations
4661         from the translation project synchronization directory,
4662         so that local only translations are not distributed.
4663
4664 2010-07-04  Bruno Haible  <bruno@clisp.org>
4665
4666         fsusage: Clarify which code applies to which platforms.
4667         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4668         platform.
4669         * lib/fsusage.c (get_fs_usage): Likewise.
4670
4671 2010-07-04  Bruno Haible  <bruno@clisp.org>
4672
4673         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4674         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4675         Reported by Martin Lambers <marlam@marlam.de>.
4676
4677 2010-07-04  Jim Meyering  <meyering@redhat.com>
4678
4679         hash: once again explicitly disallow insertion of NULL
4680         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4681         inserting a NULL pointer cannot work with these functions.
4682         Add a comment with details.
4683         This reverts part of the 2010-07-01 commit, 5bef1a35
4684         "hash: extend module to deal with non-pointer keys".
4685
4686 2010-07-01  Bruno Haible  <bruno@clisp.org>
4687
4688         stdbool: Update doc.
4689         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4690         Info from Christian Weisgerber <naddy@mips.inka.de>.
4691
4692 2010-07-01  Jim Meyering  <meyering@redhat.com>
4693
4694         hash: extend module to deal with non-pointer keys
4695         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4696         but that allows insertion of non-pointer entries.
4697         Do not disallow an ENTRY value of NULL.
4698         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4699         * lib/hash.h (hash_insert0): Declare.
4700
4701 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4702
4703         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4704         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4705         not present (i.e. with autoconf 2.59 and when using gettextize, not
4706         gnulib), require AC_GNU_SOURCE instead.
4707
4708 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4709
4710         idpriv-drop: Fix tests.
4711         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4712         not to the test-idpriv-droptemp program.
4713
4714 2010-06-29  Bruno Haible  <bruno@clisp.org>
4715
4716         string: Fix syntax error with g++ 2.96.
4717         * lib/string.in.h (__pure__): Remove definition.
4718         (_GL_ATTRIBUTE_PURE): New macro.
4719         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4720         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4721         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4722
4723 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4724
4725         unitypes: Fix bug introduced on 2010-05-18.
4726         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4727
4728 2010-06-22  Eric Blake  <eblake@redhat.com>
4729
4730         memmem: slight optimization
4731         * lib/str-two-way.h (critical_factorization): Update comments.
4732         Reduce work during factorization phase.
4733         Reported by Carlos Bueno <carlos@bueno.org>.
4734
4735 2010-06-21  Bruno Haible  <bruno@clisp.org>
4736
4737         Fix HAVE_CALLOC_POSIX misnomer.
4738         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4739         !HAVE_CALLOC_POSIX.
4740         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4741         HAVE_CALLOC_POSIX.
4742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4743         instead of HAVE_CALLOC_POSIX.
4744         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4745         HAVE_CALLOC_POSIX.
4746
4747         Use modern idiom for calloc() replacement.
4748         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4749         AC_FUNC_CALLOC.
4750         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4751         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4752         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4753         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4754         (gl_REPLACE_CALLOC): New macro.
4755
4756 2010-06-21  Bruno Haible  <bruno@clisp.org>
4757
4758         Fix HAVE_REALLOC_POSIX misnomer.
4759         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4760         !HAVE_REALLOC_POSIX.
4761         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4762         HAVE_REALLOC_POSIX.
4763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4764         instead of HAVE_REALLOC_POSIX.
4765         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4766         HAVE_REALLOC_POSIX.
4767
4768         Use modern idiom for realloc() replacement.
4769         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4770         AC_FUNC_REALLOC.
4771         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4772         Autoconf's AC_FUNC_REALLOC.
4773         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4774         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4775         (gl_REPLACE_REALLOC): New macro.
4776         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4777
4778 2010-06-21  Bruno Haible  <bruno@clisp.org>
4779
4780         Fix HAVE_MALLOC_POSIX misnomer.
4781         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4782         !HAVE_MALLOC_POSIX.
4783         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4784         HAVE_MALLOC_POSIX.
4785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4786         instead of HAVE_MALLOC_POSIX.
4787         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4788         HAVE_MALLOC_POSIX.
4789
4790         Use modern idiom for malloc() replacement.
4791         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4792         AC_FUNC_MALLOC.
4793         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4794         Autoconf's AC_FUNC_MALLOC.
4795         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4796         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4797         (gl_REPLACE_MALLOC): New macro.
4798         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4799
4800 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4801
4802         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4803         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4804         This macro takes 3 arguments, not 4.
4805
4806 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4807
4808         ipv6: fix detection under mingw
4809         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4810         in6_addr.
4811
4812 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4813
4814         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4815         that strtod() works when cross-compiling to a glibc version known
4816         to work.
4817
4818 2010-06-15  Bruno Haible  <bruno@clisp.org>
4819
4820         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4821
4822 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4823
4824         select: Correct timeout.
4825         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4826
4827 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4828
4829         git-version-gen: init shell var to avoid env var influence
4830         * build-aux/git-version-gen (v): Init shell var to empty.
4831
4832 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4833
4834         priv-set: Don't assume that priv.h exists merely because getppriv does.
4835         See Jan Andersen's bug report about AIX 5L in
4836         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4837         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4838         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4839         * lib/priv-set.h: Likewise.
4840         * tests/test-priv-set.c: Likewise.
4841
4842 2010-06-13  Bruno Haible  <bruno@clisp.org>
4843
4844         relocatable: Make it easier to test whether to install wrappers.
4845         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4846         RELOCATABLE_VIA_WRAPPER.
4847
4848 2010-06-13  Bruno Haible  <bruno@clisp.org>
4849
4850         gnulib-tool: Display specified modules and dependencies differently.
4851         * gnulib-tool (func_show_module_list): New function.
4852         (func_import, func_create_testdir): Invoke it.
4853         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4854
4855 2010-06-13  Bruno Haible  <bruno@clisp.org>
4856
4857         gnulib-tool: Align code of func_import and func_create_testdir.
4858         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4859         specified_modules.
4860
4861 2010-06-12  Jim Meyering  <meyering@redhat.com>
4862
4863         test-inttostr: avoid spurious failure on Solaris 9
4864         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4865         to accept "%ju".  Reported by Bruno Haible.
4866
4867 2010-06-11  Jim Meyering  <meyering@redhat.com>
4868
4869         test-sys_socket: mark variables as used more readably
4870         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4871         as "used" explicitly via (void) statement casts.  This is more
4872         readable than using them in an artificial return expression.
4873         Suggestion from Bruno Haible.
4874
4875 2010-06-11  Bruno Haible  <bruno@clisp.org>
4876
4877         Avoid some more warnings from "gcc -Wwrite-strings".
4878         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4879         to 'const char *'.
4880         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4881         * tests/test-c-strcasestr.c (main): Likewise.
4882         * tests/test-mbscasestr1.c (main): Likewise.
4883         * tests/test-mbscasestr2.c (main): Likewise.
4884         * tests/test-memmem.c (main): Likewise.
4885         * tests/test-strstr.c (main): Likewise.
4886         * tests/test-strcasestr.c (main): Likewise.
4887
4888 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4889
4890         init.sh: change framework_failure_ to fail with status 99, not 1
4891         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4892         automake's parallel-tests rule that this is an unexpected failure,
4893         even if the test is listed in XFAIL_TESTS.
4894
4895 2010-06-11  Jim Meyering  <meyering@redhat.com>
4896
4897         test-inttostr: avoid warnings about 4-6KB literal strings
4898         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4899         Include "macros.h", for its definition of ASSERT.
4900         (CK): s/assert/ASSERT/
4901         * modules/inttostr-tests (Files): Add macros.h.
4902
4903         init.sh: don't use $ME_ or skip_ before they are defined
4904         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4905         their first uses.  Also hoist their companions: warn_, fail_,
4906         framework_failure_, $stderr_fileno.  Prompted by a patch from
4907         Stefano Lattarini.
4908
4909         test-sys_socket: avoid set-but-not-used warnings from gcc
4910         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4911         avoid warning about set-but-not-used variables.
4912
4913         test-xvasprintf: avoid 'const' discard warnings
4914         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4915         "const" when assigning from literal strings.
4916         (test_xasprintf): Add "void" in function argument list to placate
4917         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4918
4919         tests: avoid compilation warnings in argmatch and exclude tests...
4920         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4921         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4922         Since it always exits, declare with the "noreturn" attribute.
4923         * tests/test-argmatch.c: Likewise.
4924
4925         tests: avoid 'const' discard warnings in mbsstr tests
4926         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4927         * tests/test-mbsstr2.c (main): Likewise.
4928
4929         test-verify: avoid warning from gcc's -Wmissing-declarations
4930         * tests/test-verify.c (function): Declare to be static.
4931
4932         test-inttostr.c: include <string.h> for use of strcmp
4933         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4934
4935         test-linkat: avoid failed assertion on "other" architectures
4936         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4937         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4938         sparc: https://bugs.launchpad.net/bugs/591968
4939
4940 2010-06-11  Jim Meyering  <meyering@redhat.com>
4941
4942         printf.m4: avoid autoconf's "Expanded Before Required" warning
4943         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4944         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4945         autoconf warning.
4946
4947 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4948
4949         Replacement header templates are now named with ".in", not "_".
4950         * doc/gnulib-intro.texi: Correct.
4951
4952 2010-06-10  Jim Meyering  <meyering@redhat.com>
4953
4954         inttostr-tests: depend on snprintf, not snprintf-posix
4955         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4956         snprintf-posix, to avoid this aclocal failure:
4957           missing file gnulib-tests/vasnprintf.c
4958           configure.ac:45: error: expected source file, required through \
4959           AC_LIBSOURCES, not found
4960
4961 2010-06-10  Jim Meyering  <meyering@redhat.com>
4962
4963         inttostr: add a new function, inttostr, and tests
4964         The namesake function was not available.  The existence of the
4965         template file, inttostr.c makes its addition nontrivial.
4966         * lib/anytostr.c: Rename from inttostr.c.
4967         (anytostr): Rename from inttostr.
4968         * lib/inttostr.c: New file.
4969         * modules/inttostr (Files): Add anytostr.c.
4970         (Makefile.am): Set lib_SOURCES instead of ...
4971         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4972         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4973         * lib/offtostr.c: Likewise.
4974         * lib/uinttostr.c: Likewise.
4975         * lib/umaxtostr.c: Likewise.
4976         * modules/inttostr-tests: New file.
4977         * tests/test-inttostr.c: New file.  Test these functions.
4978
4979 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
4980             Bruno Haible  <bruno@clisp.org>
4981
4982         Add "Extending Gnulib" chapter to manual.
4983         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4984         chapter.
4985         (Extending Gnulib): New chapter.
4986         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4987         chapter.
4988
4989 2010-06-09  Bruno Haible  <bruno@clisp.org>
4990
4991         Avoid relocwrapper link errors due to gnulib replacement functions.
4992         * lib/areadlink.c: Use the system's malloc, realloc functions.
4993         (areadlink): Set errno to ENOMEM explicitly.
4994         * modules/areadlink (Depends-on): Remove malloc-posix.
4995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4996
4997 2010-06-09  Bruno Haible  <bruno@clisp.org>
4998
4999         Avoid relocwrapper link errors due to gnulib replacement functions.
5000         * lib/canonicalize-lgpl.c: Use the system's malloc function.
5001         * lib/malloca.c: Likewise.
5002         * lib/relocatable.c: Likewise.
5003         * lib/progreloc.c: Use the system's malloc, sprintf functions.
5004         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
5005         * lib/setenv.c: Use the system's malloc, realloc functions.
5006         * lib/strerror.c: Use the system's sprintf function.
5007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5008
5009 2010-06-04  Bruno Haible  <bruno@clisp.org>
5010
5011         Prefer documented low-level autoconf macro names.
5012         * m4/lib-link.m4: Use m4_translit instead of translit.
5013         * m4/environ.m4: Likewise.
5014         * m4/mathfunc.m4: Likewise.
5015         * m4/onceonly.m4: Likewise.
5016         * m4/stdint.m4: Likewise.
5017         Suggested by Eric Blake.
5018
5019 2010-06-04  Martin Lambers  <marlam@marlam.de>
5020             Bruno Haible  <bruno@clisp.org>
5021
5022         havelib: Allow library names with '+' characters.
5023         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5024         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
5025
5026 2010-06-09  Bruno Haible  <bruno@clisp.org>
5027
5028         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
5029         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
5030         realloc failed.
5031
5032 2010-06-08  Peter Simons  <simons@cryp.to>
5033
5034         maint.mk: make the news-check rule more configurable
5035         * top/maint.mk (news-check-lines-spec) New variable.
5036         (news-check): Use "sed -n 1,10p" in place of "head".
5037
5038 2010-06-07  Jim Meyering  <meyering@redhat.com>
5039
5040         do-release-commit-and-tag: fix typo in --help
5041         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
5042
5043         regex: avoid new dead-code warning with gcc-4.6.0
5044         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
5045         if-block containing a while-loop.  It's been unused for at least
5046         5 years.
5047
5048 2010-06-05  Bruno Haible  <bruno@clisp.org>
5049
5050         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
5051         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
5052
5053 2010-06-04  Bruno Haible  <bruno@clisp.org>
5054
5055         Update to GNU gettext 0.18.1.
5056         * modules/gettext (configure.ac): Require gettext infrastructure from
5057         version 0.18.1.
5058
5059 2010-06-03  Bruno Haible  <bruno@clisp.org>
5060
5061         Don't use AC_LIBOBJ with file names in subdirectories.
5062         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
5063         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
5064         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
5065         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
5066         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
5067         gl_LIBUNISTRING_LIBSOURCE.
5068         (Makefile.am): Augment lib_SOURCES here, conditionally.
5069         * NEWS: Drop requirement for Automake option 'subdir-objects'.
5070
5071 2010-06-03  Bruno Haible  <bruno@clisp.org>
5072
5073         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
5074         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
5075         expansion does not end with a newline.
5076         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5077         unnecessary newline.
5078
5079 2010-06-03  Bruno Haible  <bruno@clisp.org>
5080
5081         Reduce dependencies.
5082         * tests/test-quotearg.h: New file, extracted from
5083         tests/test-quotearg.c.
5084         * tests/test-quotearg-simple.c: New file, extracted from
5085         tests/test-quotearg.c.
5086         * tests/test-quotearg.c: Don't include <ctype.h>.
5087         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5088         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5089         use_quote_double_quotes, use_quotearg_colon): Moved to
5090         tests/test-quotearg.h.
5091         (results_g, flag_results, custom_quotes, custom_results): Moved
5092         to tests/test-quotearg-simple.c.
5093         (main): Moved the part that does not depend on gettext to
5094         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5095         performed.
5096         * modules/quotearg-simple: New file.
5097         * modules/quotearg-simple-tests: New file.
5098         * modules/quotearg (Depends-on): Add quotearg-simple.
5099         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5100         (Files): Add tests/test-quotearg.h.
5101         Reported by Paolo Bonzini.
5102
5103 2010-06-03  Bruno Haible  <bruno@clisp.org>
5104
5105         Reduce dependencies.
5106         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5107
5108 2010-06-03  Bruno Haible  <bruno@clisp.org>
5109
5110         time: Undefine more broken macros.
5111         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5112         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5113         Reported by Eric Blake.
5114
5115 2010-06-03  Bruno Haible  <bruno@clisp.org>
5116
5117         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5118         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5119         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5120         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5121         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5122         Reported by Ludovic Courtès <ludo@gnu.org>.
5123
5124 2010-06-02  Eric Blake  <eblake@redhat.com>
5125
5126         time: work with mingw + pthreads-win32 library
5127         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5128         if timespec is defined only in pthread.h.
5129         * modules/time (Makefile.am): Substitute it.
5130         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5131         <pthread.h>, when needed.
5132         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5133         from the library.
5134
5135 2010-05-31  Bruno Haible  <bruno@clisp.org>
5136
5137         Avoid expanding two macros in the wrong order.
5138         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5139         gl_LIBUNISTRING if it is defined.
5140         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5141         autoconf >= 2.64.
5142         Reported by Ludovic Courtès <ludo@gnu.org>.
5143
5144 2010-05-27  Jim Meyering  <meyering@redhat.com>
5145
5146         maint.mk: also prohibit "#undef" of always-defined symbols
5147         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5148         Allow more than one space before the symbol name.
5149         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5150         the regexp uses alternation.
5151
5152 2010-05-26  Eric Blake  <eblake@redhat.com>
5153
5154         maint.mk: avoid echo -e
5155         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5156         Convert all uses of echo -* to printf.
5157         Reported by Matthias Bolte.
5158
5159 2010-05-25  Bruno Haible  <bruno@clisp.org>
5160
5161         Update to GNU gettext 0.18, part 2.
5162         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5163         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5164
5165 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5166
5167         Add missing include in test-pwrite.c.
5168         * tests/test-pwrite.c: Include string.h, for strcmp.
5169
5170 2010-05-24  Bruno Haible  <bruno@clisp.org>
5171
5172         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5173
5174 2010-05-24  Bruno Haible  <bruno@clisp.org>
5175
5176         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5177         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5178         iconveh_error argument.
5179         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5180         U_STRCONV_TO_LOCALE.
5181         * lib/unistr/u16-strcoll.c: Likewise.
5182         * lib/unistr/u32-strcoll.c: Likewise.
5183         * modules/unistr/u8-strcoll (Depends-on): Add
5184         uniconv/u8-strconv-to-enc, localcharset. Remove
5185         uniconv/u8-strconv-to-locale.
5186         (configure.ac): Bump version number.
5187         * modules/unistr/u16-strcoll (Depends-on): Add
5188         uniconv/u16-strconv-to-enc, localcharset. Remove
5189         uniconv/u16-strconv-to-locale.
5190         (configure.ac): Bump version number.
5191         * modules/unistr/u32-strcoll (Depends-on): Add
5192         uniconv/u32-strconv-to-enc, localcharset. Remove
5193         uniconv/u32-strconv-to-locale.
5194         (configure.ac): Bump version number.
5195
5196 2010-05-24  Bruno Haible  <bruno@clisp.org>
5197
5198         Avoid a test failure on NetBSD 5.0.
5199         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5200         an iconv() bug.
5201
5202 2010-05-24  Bruno Haible  <bruno@clisp.org>
5203
5204         Adjust #include directive style.
5205         * modules/regex (Includes): Recommend to write <regex.h>.
5206
5207 2010-05-24  Bruno Haible  <bruno@clisp.org>
5208
5209         regex: Don't require alloca.
5210         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5211         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5212         only inside if (0).
5213
5214 2010-05-23  Jim Meyering  <meyering@redhat.com>
5215
5216         test-renameat.c: include <sys/stat.h>
5217         * tests/test-renameat.c: Include <sys/stat.h>; required for
5218         definition of S_IS* macros.
5219
5220 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5221
5222         Update maintainer documentation for 'relocatable-prog' module.
5223         * doc/relocatable-maint.texi: Update.
5224         Comments by Bruno Haible.
5225
5226 2010-05-23  Bruno Haible  <bruno@clisp.org>
5227
5228         git-merge-changelog: Enable --split-merged-entry by default.
5229         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5230         (usage): Don't mention this option any more.
5231         Reported by Ralf Wildenhues.
5232
5233 2010-05-23  Jim Meyering  <meyering@redhat.com>
5234
5235         test-pwrite: do not leave behind a test file named "out"
5236         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5237         The trivial-looking use of init.sh is really necessary.
5238         It ensures that the temporary file, "out", is created in
5239         a temporary directory, and removed upon termination.
5240         * tests/test-pwrite.sh: Re-add file.
5241         * modules/pwrite-tests: Reference it.
5242
5243 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5244
5245         Fix output redirection buglet in init.sh.
5246         * tests/init.sh: Fix redirection of stderr.
5247
5248 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5249
5250         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5251
5252 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5253
5254         * modules/valgrind-tests: New file.
5255         * m4/valgrind-tests.m4: New file.
5256         * doc/valgrind-tests.texi: New file.
5257         * doc/gnulib.texi (Running self-tests under valgrind): New
5258         section.
5259
5260 2010-05-19  Bruno Haible  <bruno@clisp.org>
5261
5262         Clean up dead code in recent commit.
5263         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5264         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5265         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5266         Suggested by Paolo Bonzini.
5267
5268 2010-05-19  Bruno Haible  <bruno@clisp.org>
5269
5270         Avoid valgrind error reports from libunistring.
5271         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5272         * modules/libunistring (Files): Add it.
5273         * modules/libunistring-optional (Files): Likewise.
5274
5275 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5276             Bruno Haible  <bruno@clisp.org>
5277
5278         New module 'libunistring-optional'.
5279         * modules/libunistring-optional: New file.
5280         * m4/libunistring-base.m4: New file.
5281         * m4/libunistring-optional.m4: New file.
5282         * lib/unicase.in.h: Renamed from lib/unicase.h.
5283         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5284         * lib/unictype.in.h: Renamed from lib/unictype.h.
5285         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5286         * lib/uniname.in.h: Renamed from lib/uniname.h.
5287         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5288         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5289         * lib/unistr.in.h: Renamed from lib/unistr.h.
5290         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5291         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5292         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5293         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5294         gl_LIBUNISTRING. If the library was found, determine the installed
5295         version and set LIBUNISTRING_VERSION.
5296         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5297         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5298         handle a configuration option --with-included-libunistring.
5299         * modules/libunistring (Files): Add m4/absolute-header.m4.
5300         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5301         Add m4/libunistring-base.m4.
5302         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5303         (Makefile.am): Build unicase.h from unicase.in.h.
5304         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5305         Add m4/libunistring-base.m4.
5306         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5307         (Makefile.am): Build uniconv.h from uniconv.in.h.
5308         * modules/unictype/base (Files): Use unictype.in.h instead of
5309         unictype.h. Add m4/libunistring-base.m4.
5310         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5311         (Makefile.am): Build unictype.h from unictype.in.h.
5312         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5313         Add m4/libunistring-base.m4.
5314         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5315         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5316         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5317         Add m4/libunistring-base.m4.
5318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5319         (Makefile.am): Build uniname.h from uniname.in.h.
5320         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5321         Add m4/libunistring-base.m4.
5322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5323         (Makefile.am): Build uninorm.h from uninorm.in.h.
5324         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5325         unistdio.h. Add m4/libunistring-base.m4.
5326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5327         (Makefile.am): Build unistdio.h from unistdio.in.h.
5328         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5329         Add m4/libunistring-base.m4.
5330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5331         (Makefile.am): Build unistr.h from unistr.in.h.
5332         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5333         Add m4/libunistring-base.m4.
5334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5335         (Makefile.am): Build unitypes.h from unitypes.in.h.
5336         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5337         Add m4/libunistring-base.m4.
5338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5339         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5340         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5341         uniwidth.h. Add m4/libunistring-base.m4.
5342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5343         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5344         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5345         instead of augmenting lib_SOURCES.
5346         * modules/unicase/empty-suffix-context: Likewise.
5347         * modules/unicase/locale-language: Likewise.
5348         * modules/unicase/tolower: Likewise.
5349         * modules/unicase/totitle: Likewise.
5350         * modules/unicase/toupper: Likewise.
5351         * modules/unicase/u8-casecmp: Likewise.
5352         * modules/unicase/u8-casecoll: Likewise.
5353         * modules/unicase/u8-casefold: Likewise.
5354         * modules/unicase/u8-casexfrm: Likewise.
5355         * modules/unicase/u8-ct-casefold: Likewise.
5356         * modules/unicase/u8-ct-tolower: Likewise.
5357         * modules/unicase/u8-ct-totitle: Likewise.
5358         * modules/unicase/u8-ct-toupper: Likewise.
5359         * modules/unicase/u8-is-cased: Likewise.
5360         * modules/unicase/u8-is-casefolded: Likewise.
5361         * modules/unicase/u8-is-lowercase: Likewise.
5362         * modules/unicase/u8-is-titlecase: Likewise.
5363         * modules/unicase/u8-is-uppercase: Likewise.
5364         * modules/unicase/u8-prefix-context: Likewise.
5365         * modules/unicase/u8-suffix-context: Likewise.
5366         * modules/unicase/u8-tolower: Likewise.
5367         * modules/unicase/u8-totitle: Likewise.
5368         * modules/unicase/u8-toupper: Likewise.
5369         * modules/unicase/u16-casecmp: Likewise.
5370         * modules/unicase/u16-casecoll: Likewise.
5371         * modules/unicase/u16-casefold: Likewise.
5372         * modules/unicase/u16-casexfrm: Likewise.
5373         * modules/unicase/u16-ct-casefold: Likewise.
5374         * modules/unicase/u16-ct-tolower: Likewise.
5375         * modules/unicase/u16-ct-totitle: Likewise.
5376         * modules/unicase/u16-ct-toupper: Likewise.
5377         * modules/unicase/u16-is-cased: Likewise.
5378         * modules/unicase/u16-is-casefolded: Likewise.
5379         * modules/unicase/u16-is-lowercase: Likewise.
5380         * modules/unicase/u16-is-titlecase: Likewise.
5381         * modules/unicase/u16-is-uppercase: Likewise.
5382         * modules/unicase/u16-prefix-context: Likewise.
5383         * modules/unicase/u16-suffix-context: Likewise.
5384         * modules/unicase/u16-tolower: Likewise.
5385         * modules/unicase/u16-totitle: Likewise.
5386         * modules/unicase/u16-toupper: Likewise.
5387         * modules/unicase/u32-casecmp: Likewise.
5388         * modules/unicase/u32-casecoll: Likewise.
5389         * modules/unicase/u32-casefold: Likewise.
5390         * modules/unicase/u32-casexfrm: Likewise.
5391         * modules/unicase/u32-ct-casefold: Likewise.
5392         * modules/unicase/u32-ct-tolower: Likewise.
5393         * modules/unicase/u32-ct-totitle: Likewise.
5394         * modules/unicase/u32-ct-toupper: Likewise.
5395         * modules/unicase/u32-is-cased: Likewise.
5396         * modules/unicase/u32-is-casefolded: Likewise.
5397         * modules/unicase/u32-is-lowercase: Likewise.
5398         * modules/unicase/u32-is-titlecase: Likewise.
5399         * modules/unicase/u32-is-uppercase: Likewise.
5400         * modules/unicase/u32-prefix-context: Likewise.
5401         * modules/unicase/u32-suffix-context: Likewise.
5402         * modules/unicase/u32-tolower: Likewise.
5403         * modules/unicase/u32-totitle: Likewise.
5404         * modules/unicase/u32-toupper: Likewise.
5405         * modules/unicase/ulc-casecmp: Likewise.
5406         * modules/unicase/ulc-casecoll: Likewise.
5407         * modules/unicase/ulc-casexfrm: Likewise.
5408         * modules/uniconv/u8-conv-from-enc: Likewise.
5409         * modules/uniconv/u8-conv-to-enc: Likewise.
5410         * modules/uniconv/u8-strconv-from-enc: Likewise.
5411         * modules/uniconv/u8-strconv-from-locale: Likewise.
5412         * modules/uniconv/u8-strconv-to-enc: Likewise.
5413         * modules/uniconv/u8-strconv-to-locale: Likewise.
5414         * modules/uniconv/u16-conv-from-enc: Likewise.
5415         * modules/uniconv/u16-conv-to-enc: Likewise.
5416         * modules/uniconv/u16-strconv-from-enc: Likewise.
5417         * modules/uniconv/u16-strconv-from-locale: Likewise.
5418         * modules/uniconv/u16-strconv-to-enc: Likewise.
5419         * modules/uniconv/u16-strconv-to-locale: Likewise.
5420         * modules/uniconv/u32-conv-from-enc: Likewise.
5421         * modules/uniconv/u32-conv-to-enc: Likewise.
5422         * modules/uniconv/u32-strconv-from-enc: Likewise.
5423         * modules/uniconv/u32-strconv-from-locale: Likewise.
5424         * modules/uniconv/u32-strconv-to-enc: Likewise.
5425         * modules/uniconv/u32-strconv-to-locale: Likewise.
5426         * modules/unictype/bidicategory-byname: Likewise.
5427         * modules/unictype/bidicategory-name: Likewise.
5428         * modules/unictype/bidicategory-of: Likewise.
5429         * modules/unictype/bidicategory-test: Likewise.
5430         * modules/unictype/block-list: Likewise.
5431         * modules/unictype/block-test: Likewise.
5432         * modules/unictype/category-C: Likewise.
5433         * modules/unictype/category-Cc: Likewise.
5434         * modules/unictype/category-Cf: Likewise.
5435         * modules/unictype/category-Cn: Likewise.
5436         * modules/unictype/category-Co: Likewise.
5437         * modules/unictype/category-Cs: Likewise.
5438         * modules/unictype/category-L: Likewise.
5439         * modules/unictype/category-Ll: Likewise.
5440         * modules/unictype/category-Lm: Likewise.
5441         * modules/unictype/category-Lo: Likewise.
5442         * modules/unictype/category-Lt: Likewise.
5443         * modules/unictype/category-Lu: Likewise.
5444         * modules/unictype/category-M: Likewise.
5445         * modules/unictype/category-Mc: Likewise.
5446         * modules/unictype/category-Me: Likewise.
5447         * modules/unictype/category-Mn: Likewise.
5448         * modules/unictype/category-N: Likewise.
5449         * modules/unictype/category-Nd: Likewise.
5450         * modules/unictype/category-Nl: Likewise.
5451         * modules/unictype/category-No: Likewise.
5452         * modules/unictype/category-P: Likewise.
5453         * modules/unictype/category-Pc: Likewise.
5454         * modules/unictype/category-Pd: Likewise.
5455         * modules/unictype/category-Pe: Likewise.
5456         * modules/unictype/category-Pf: Likewise.
5457         * modules/unictype/category-Pi: Likewise.
5458         * modules/unictype/category-Po: Likewise.
5459         * modules/unictype/category-Ps: Likewise.
5460         * modules/unictype/category-S: Likewise.
5461         * modules/unictype/category-Sc: Likewise.
5462         * modules/unictype/category-Sk: Likewise.
5463         * modules/unictype/category-Sm: Likewise.
5464         * modules/unictype/category-So: Likewise.
5465         * modules/unictype/category-Z: Likewise.
5466         * modules/unictype/category-Zl: Likewise.
5467         * modules/unictype/category-Zp: Likewise.
5468         * modules/unictype/category-Zs: Likewise.
5469         * modules/unictype/category-and: Likewise.
5470         * modules/unictype/category-and-not: Likewise.
5471         * modules/unictype/category-byname: Likewise.
5472         * modules/unictype/category-name: Likewise.
5473         * modules/unictype/category-none: Likewise.
5474         * modules/unictype/category-of: Likewise.
5475         * modules/unictype/category-or: Likewise.
5476         * modules/unictype/category-test: Likewise.
5477         * modules/unictype/combining-class: Likewise.
5478         * modules/unictype/ctype-alnum: Likewise.
5479         * modules/unictype/ctype-alpha: Likewise.
5480         * modules/unictype/ctype-blank: Likewise.
5481         * modules/unictype/ctype-cntrl: Likewise.
5482         * modules/unictype/ctype-digit: Likewise.
5483         * modules/unictype/ctype-graph: Likewise.
5484         * modules/unictype/ctype-lower: Likewise.
5485         * modules/unictype/ctype-print: Likewise.
5486         * modules/unictype/ctype-punct: Likewise.
5487         * modules/unictype/ctype-space: Likewise.
5488         * modules/unictype/ctype-upper: Likewise.
5489         * modules/unictype/ctype-xdigit: Likewise.
5490         * modules/unictype/decimal-digit: Likewise.
5491         * modules/unictype/digit: Likewise.
5492         * modules/unictype/mirror: Likewise.
5493         * modules/unictype/numeric: Likewise.
5494         * modules/unictype/property-alphabetic: Likewise.
5495         * modules/unictype/property-ascii-hex-digit: Likewise.
5496         * modules/unictype/property-bidi-arabic-digit: Likewise.
5497         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5498         * modules/unictype/property-bidi-block-separator: Likewise.
5499         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5500         * modules/unictype/property-bidi-common-separator: Likewise.
5501         * modules/unictype/property-bidi-control: Likewise.
5502         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5503         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5504         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5505         * modules/unictype/property-bidi-european-digit: Likewise.
5506         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5507         * modules/unictype/property-bidi-left-to-right: Likewise.
5508         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5509         * modules/unictype/property-bidi-other-neutral: Likewise.
5510         * modules/unictype/property-bidi-pdf: Likewise.
5511         * modules/unictype/property-bidi-segment-separator: Likewise.
5512         * modules/unictype/property-bidi-whitespace: Likewise.
5513         * modules/unictype/property-byname: Likewise.
5514         * modules/unictype/property-combining: Likewise.
5515         * modules/unictype/property-composite: Likewise.
5516         * modules/unictype/property-currency-symbol: Likewise.
5517         * modules/unictype/property-dash: Likewise.
5518         * modules/unictype/property-decimal-digit: Likewise.
5519         * modules/unictype/property-default-ignorable-code-point: Likewise.
5520         * modules/unictype/property-deprecated: Likewise.
5521         * modules/unictype/property-diacritic: Likewise.
5522         * modules/unictype/property-extender: Likewise.
5523         * modules/unictype/property-format-control: Likewise.
5524         * modules/unictype/property-grapheme-base: Likewise.
5525         * modules/unictype/property-grapheme-extend: Likewise.
5526         * modules/unictype/property-grapheme-link: Likewise.
5527         * modules/unictype/property-hex-digit: Likewise.
5528         * modules/unictype/property-hyphen: Likewise.
5529         * modules/unictype/property-id-continue: Likewise.
5530         * modules/unictype/property-id-start: Likewise.
5531         * modules/unictype/property-ideographic: Likewise.
5532         * modules/unictype/property-ids-binary-operator: Likewise.
5533         * modules/unictype/property-ids-trinary-operator: Likewise.
5534         * modules/unictype/property-ignorable-control: Likewise.
5535         * modules/unictype/property-iso-control: Likewise.
5536         * modules/unictype/property-join-control: Likewise.
5537         * modules/unictype/property-left-of-pair: Likewise.
5538         * modules/unictype/property-line-separator: Likewise.
5539         * modules/unictype/property-logical-order-exception: Likewise.
5540         * modules/unictype/property-lowercase: Likewise.
5541         * modules/unictype/property-math: Likewise.
5542         * modules/unictype/property-non-break: Likewise.
5543         * modules/unictype/property-not-a-character: Likewise.
5544         * modules/unictype/property-numeric: Likewise.
5545         * modules/unictype/property-other-alphabetic: Likewise.
5546         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5547         * modules/unictype/property-other-grapheme-extend: Likewise.
5548         * modules/unictype/property-other-id-continue: Likewise.
5549         * modules/unictype/property-other-id-start: Likewise.
5550         * modules/unictype/property-other-lowercase: Likewise.
5551         * modules/unictype/property-other-math: Likewise.
5552         * modules/unictype/property-other-uppercase: Likewise.
5553         * modules/unictype/property-paired-punctuation: Likewise.
5554         * modules/unictype/property-paragraph-separator: Likewise.
5555         * modules/unictype/property-pattern-syntax: Likewise.
5556         * modules/unictype/property-pattern-white-space: Likewise.
5557         * modules/unictype/property-private-use: Likewise.
5558         * modules/unictype/property-punctuation: Likewise.
5559         * modules/unictype/property-quotation-mark: Likewise.
5560         * modules/unictype/property-radical: Likewise.
5561         * modules/unictype/property-sentence-terminal: Likewise.
5562         * modules/unictype/property-soft-dotted: Likewise.
5563         * modules/unictype/property-space: Likewise.
5564         * modules/unictype/property-terminal-punctuation: Likewise.
5565         * modules/unictype/property-test: Likewise.
5566         * modules/unictype/property-titlecase: Likewise.
5567         * modules/unictype/property-unassigned-code-value: Likewise.
5568         * modules/unictype/property-unified-ideograph: Likewise.
5569         * modules/unictype/property-uppercase: Likewise.
5570         * modules/unictype/property-variation-selector: Likewise.
5571         * modules/unictype/property-white-space: Likewise.
5572         * modules/unictype/property-xid-continue: Likewise.
5573         * modules/unictype/property-xid-start: Likewise.
5574         * modules/unictype/property-zero-width: Likewise.
5575         * modules/unictype/scripts: Likewise.
5576         * modules/unictype/syntax-c-ident: Likewise.
5577         * modules/unictype/syntax-c-whitespace: Likewise.
5578         * modules/unictype/syntax-java-ident: Likewise.
5579         * modules/unictype/syntax-java-whitespace: Likewise.
5580         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5581         * modules/unilbrk/u8-width-linebreaks: Likewise.
5582         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5583         * modules/unilbrk/u16-width-linebreaks: Likewise.
5584         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5585         * modules/unilbrk/u32-width-linebreaks: Likewise.
5586         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5587         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5588         * modules/uniname/uniname: Likewise.
5589         * modules/uninorm/canonical-decomposition: Likewise.
5590         * modules/uninorm/composition: Likewise.
5591         * modules/uninorm/decomposing-form: Likewise.
5592         * modules/uninorm/decomposition: Likewise.
5593         * modules/uninorm/filter: Likewise.
5594         * modules/uninorm/nfc: Likewise.
5595         * modules/uninorm/nfd: Likewise.
5596         * modules/uninorm/nfkc: Likewise.
5597         * modules/uninorm/nfkd: Likewise.
5598         * modules/uninorm/u8-normalize: Likewise.
5599         * modules/uninorm/u8-normcmp: Likewise.
5600         * modules/uninorm/u8-normcoll: Likewise.
5601         * modules/uninorm/u8-normxfrm: Likewise.
5602         * modules/uninorm/u16-normalize: Likewise.
5603         * modules/uninorm/u16-normcmp: Likewise.
5604         * modules/uninorm/u16-normcoll: Likewise.
5605         * modules/uninorm/u16-normxfrm: Likewise.
5606         * modules/uninorm/u32-normalize: Likewise.
5607         * modules/uninorm/u32-normcmp: Likewise.
5608         * modules/uninorm/u32-normcoll: Likewise.
5609         * modules/uninorm/u32-normxfrm: Likewise.
5610         * modules/unistdio/u8-asnprintf: Likewise.
5611         * modules/unistdio/u8-asprintf: Likewise.
5612         * modules/unistdio/u8-snprintf: Likewise.
5613         * modules/unistdio/u8-sprintf: Likewise.
5614         * modules/unistdio/u8-u8-asnprintf: Likewise.
5615         * modules/unistdio/u8-u8-asprintf: Likewise.
5616         * modules/unistdio/u8-u8-snprintf: Likewise.
5617         * modules/unistdio/u8-u8-sprintf: Likewise.
5618         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5619         * modules/unistdio/u8-u8-vasprintf: Likewise.
5620         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5621         * modules/unistdio/u8-u8-vsprintf: Likewise.
5622         * modules/unistdio/u8-vasnprintf: Likewise.
5623         * modules/unistdio/u8-vasprintf: Likewise.
5624         * modules/unistdio/u8-vsnprintf: Likewise.
5625         * modules/unistdio/u8-vsprintf: Likewise.
5626         * modules/unistdio/u16-asnprintf: Likewise.
5627         * modules/unistdio/u16-asprintf: Likewise.
5628         * modules/unistdio/u16-snprintf: Likewise.
5629         * modules/unistdio/u16-sprintf: Likewise.
5630         * modules/unistdio/u16-u16-asnprintf: Likewise.
5631         * modules/unistdio/u16-u16-asprintf: Likewise.
5632         * modules/unistdio/u16-u16-snprintf: Likewise.
5633         * modules/unistdio/u16-u16-sprintf: Likewise.
5634         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5635         * modules/unistdio/u16-u16-vasprintf: Likewise.
5636         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5637         * modules/unistdio/u16-u16-vsprintf: Likewise.
5638         * modules/unistdio/u16-vasnprintf: Likewise.
5639         * modules/unistdio/u16-vasprintf: Likewise.
5640         * modules/unistdio/u16-vsnprintf: Likewise.
5641         * modules/unistdio/u16-vsprintf: Likewise.
5642         * modules/unistdio/u32-asnprintf: Likewise.
5643         * modules/unistdio/u32-asprintf: Likewise.
5644         * modules/unistdio/u32-snprintf: Likewise.
5645         * modules/unistdio/u32-sprintf: Likewise.
5646         * modules/unistdio/u32-u32-asnprintf: Likewise.
5647         * modules/unistdio/u32-u32-asprintf: Likewise.
5648         * modules/unistdio/u32-u32-snprintf: Likewise.
5649         * modules/unistdio/u32-u32-sprintf: Likewise.
5650         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5651         * modules/unistdio/u32-u32-vasprintf: Likewise.
5652         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5653         * modules/unistdio/u32-u32-vsprintf: Likewise.
5654         * modules/unistdio/u32-vasnprintf: Likewise.
5655         * modules/unistdio/u32-vasprintf: Likewise.
5656         * modules/unistdio/u32-vsnprintf: Likewise.
5657         * modules/unistdio/u32-vsprintf: Likewise.
5658         * modules/unistdio/ulc-asnprintf: Likewise.
5659         * modules/unistdio/ulc-asprintf: Likewise.
5660         * modules/unistdio/ulc-fprintf: Likewise.
5661         * modules/unistdio/ulc-snprintf: Likewise.
5662         * modules/unistdio/ulc-sprintf: Likewise.
5663         * modules/unistdio/ulc-vasnprintf: Likewise.
5664         * modules/unistdio/ulc-vasprintf: Likewise.
5665         * modules/unistdio/ulc-vfprintf: Likewise.
5666         * modules/unistdio/ulc-vsnprintf: Likewise.
5667         * modules/unistdio/ulc-vsprintf: Likewise.
5668         * modules/unistr/u8-check: Likewise.
5669         * modules/unistr/u8-chr: Likewise.
5670         * modules/unistr/u8-cmp: Likewise.
5671         * modules/unistr/u8-cmp2: Likewise.
5672         * modules/unistr/u8-cpy: Likewise.
5673         * modules/unistr/u8-cpy-alloc: Likewise.
5674         * modules/unistr/u8-endswith: Likewise.
5675         * modules/unistr/u8-mblen: Likewise.
5676         * modules/unistr/u8-mbsnlen: Likewise.
5677         * modules/unistr/u8-mbtouc: Likewise.
5678         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5679         * modules/unistr/u8-mbtoucr: Likewise.
5680         * modules/unistr/u8-move: Likewise.
5681         * modules/unistr/u8-next: Likewise.
5682         * modules/unistr/u8-prev: Likewise.
5683         * modules/unistr/u8-set: Likewise.
5684         * modules/unistr/u8-startswith: Likewise.
5685         * modules/unistr/u8-stpcpy: Likewise.
5686         * modules/unistr/u8-stpncpy: Likewise.
5687         * modules/unistr/u8-strcat: Likewise.
5688         * modules/unistr/u8-strchr: Likewise.
5689         * modules/unistr/u8-strcmp: Likewise.
5690         * modules/unistr/u8-strcoll: Likewise.
5691         * modules/unistr/u8-strcpy: Likewise.
5692         * modules/unistr/u8-strcspn: Likewise.
5693         * modules/unistr/u8-strdup: Likewise.
5694         * modules/unistr/u8-strlen: Likewise.
5695         * modules/unistr/u8-strmblen: Likewise.
5696         * modules/unistr/u8-strmbtouc: Likewise.
5697         * modules/unistr/u8-strncat: Likewise.
5698         * modules/unistr/u8-strncmp: Likewise.
5699         * modules/unistr/u8-strncpy: Likewise.
5700         * modules/unistr/u8-strnlen: Likewise.
5701         * modules/unistr/u8-strpbrk: Likewise.
5702         * modules/unistr/u8-strrchr: Likewise.
5703         * modules/unistr/u8-strspn: Likewise.
5704         * modules/unistr/u8-strstr: Likewise.
5705         * modules/unistr/u8-strtok: Likewise.
5706         * modules/unistr/u8-to-u16: Likewise.
5707         * modules/unistr/u8-to-u32: Likewise.
5708         * modules/unistr/u8-uctomb: Likewise.
5709         * modules/unistr/u16-check: Likewise.
5710         * modules/unistr/u16-chr: Likewise.
5711         * modules/unistr/u16-cmp: Likewise.
5712         * modules/unistr/u16-cmp2: Likewise.
5713         * modules/unistr/u16-cpy: Likewise.
5714         * modules/unistr/u16-cpy-alloc: Likewise.
5715         * modules/unistr/u16-endswith: Likewise.
5716         * modules/unistr/u16-mblen: Likewise.
5717         * modules/unistr/u16-mbsnlen: Likewise.
5718         * modules/unistr/u16-mbtouc: Likewise.
5719         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5720         * modules/unistr/u16-mbtoucr: Likewise.
5721         * modules/unistr/u16-move: Likewise.
5722         * modules/unistr/u16-next: Likewise.
5723         * modules/unistr/u16-prev: Likewise.
5724         * modules/unistr/u16-set: Likewise.
5725         * modules/unistr/u16-startswith: Likewise.
5726         * modules/unistr/u16-stpcpy: Likewise.
5727         * modules/unistr/u16-stpncpy: Likewise.
5728         * modules/unistr/u16-strcat: Likewise.
5729         * modules/unistr/u16-strchr: Likewise.
5730         * modules/unistr/u16-strcmp: Likewise.
5731         * modules/unistr/u16-strcoll: Likewise.
5732         * modules/unistr/u16-strcpy: Likewise.
5733         * modules/unistr/u16-strcspn: Likewise.
5734         * modules/unistr/u16-strdup: Likewise.
5735         * modules/unistr/u16-strlen: Likewise.
5736         * modules/unistr/u16-strmblen: Likewise.
5737         * modules/unistr/u16-strmbtouc: Likewise.
5738         * modules/unistr/u16-strncat: Likewise.
5739         * modules/unistr/u16-strncmp: Likewise.
5740         * modules/unistr/u16-strncpy: Likewise.
5741         * modules/unistr/u16-strnlen: Likewise.
5742         * modules/unistr/u16-strpbrk: Likewise.
5743         * modules/unistr/u16-strrchr: Likewise.
5744         * modules/unistr/u16-strspn: Likewise.
5745         * modules/unistr/u16-strstr: Likewise.
5746         * modules/unistr/u16-strtok: Likewise.
5747         * modules/unistr/u16-to-u32: Likewise.
5748         * modules/unistr/u16-to-u8: Likewise.
5749         * modules/unistr/u16-uctomb: Likewise.
5750         * modules/unistr/u32-check: Likewise.
5751         * modules/unistr/u32-chr: Likewise.
5752         * modules/unistr/u32-cmp: Likewise.
5753         * modules/unistr/u32-cmp2: Likewise.
5754         * modules/unistr/u32-cpy: Likewise.
5755         * modules/unistr/u32-cpy-alloc: Likewise.
5756         * modules/unistr/u32-endswith: Likewise.
5757         * modules/unistr/u32-mblen: Likewise.
5758         * modules/unistr/u32-mbsnlen: Likewise.
5759         * modules/unistr/u32-mbtouc: Likewise.
5760         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5761         * modules/unistr/u32-mbtoucr: Likewise.
5762         * modules/unistr/u32-move: Likewise.
5763         * modules/unistr/u32-next: Likewise.
5764         * modules/unistr/u32-prev: Likewise.
5765         * modules/unistr/u32-set: Likewise.
5766         * modules/unistr/u32-startswith: Likewise.
5767         * modules/unistr/u32-stpcpy: Likewise.
5768         * modules/unistr/u32-stpncpy: Likewise.
5769         * modules/unistr/u32-strcat: Likewise.
5770         * modules/unistr/u32-strchr: Likewise.
5771         * modules/unistr/u32-strcmp: Likewise.
5772         * modules/unistr/u32-strcoll: Likewise.
5773         * modules/unistr/u32-strcpy: Likewise.
5774         * modules/unistr/u32-strcspn: Likewise.
5775         * modules/unistr/u32-strdup: Likewise.
5776         * modules/unistr/u32-strlen: Likewise.
5777         * modules/unistr/u32-strmblen: Likewise.
5778         * modules/unistr/u32-strmbtouc: Likewise.
5779         * modules/unistr/u32-strncat: Likewise.
5780         * modules/unistr/u32-strncmp: Likewise.
5781         * modules/unistr/u32-strncpy: Likewise.
5782         * modules/unistr/u32-strnlen: Likewise.
5783         * modules/unistr/u32-strpbrk: Likewise.
5784         * modules/unistr/u32-strrchr: Likewise.
5785         * modules/unistr/u32-strspn: Likewise.
5786         * modules/unistr/u32-strstr: Likewise.
5787         * modules/unistr/u32-strtok: Likewise.
5788         * modules/unistr/u32-to-u16: Likewise.
5789         * modules/unistr/u32-to-u8: Likewise.
5790         * modules/unistr/u32-uctomb: Likewise.
5791         * modules/uniwbrk/u8-wordbreaks: Likewise.
5792         * modules/uniwbrk/u16-wordbreaks: Likewise.
5793         * modules/uniwbrk/u32-wordbreaks: Likewise.
5794         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5795         * modules/uniwbrk/wordbreak-property: Likewise.
5796         * modules/uniwidth/u8-strwidth: Likewise.
5797         * modules/uniwidth/u8-width: Likewise.
5798         * modules/uniwidth/u16-strwidth: Likewise.
5799         * modules/uniwidth/u16-width: Likewise.
5800         * modules/uniwidth/u32-strwidth: Likewise.
5801         * modules/uniwidth/u32-width: Likewise.
5802         * modules/uniwidth/width: Likewise.
5803         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5804         with $(LIBUNISTRING).
5805         * modules/unicase/ignorable-tests: Likewise.
5806         * modules/unicase/locale-language-tests: Likewise.
5807         * modules/unicase/tolower-tests: Likewise.
5808         * modules/unicase/totitle-tests: Likewise.
5809         * modules/unicase/toupper-tests: Likewise.
5810         * modules/unicase/u8-casecmp-tests: Likewise.
5811         * modules/unicase/u8-casecoll-tests: Likewise.
5812         * modules/unicase/u8-casefold-tests: Likewise.
5813         * modules/unicase/u8-is-cased-tests: Likewise.
5814         * modules/unicase/u8-is-casefolded-tests: Likewise.
5815         * modules/unicase/u8-is-lowercase-tests: Likewise.
5816         * modules/unicase/u8-is-titlecase-tests: Likewise.
5817         * modules/unicase/u8-is-uppercase-tests: Likewise.
5818         * modules/unicase/u8-tolower-tests: Likewise.
5819         * modules/unicase/u8-totitle-tests: Likewise.
5820         * modules/unicase/u8-toupper-tests: Likewise.
5821         * modules/unicase/u16-casecmp-tests: Likewise.
5822         * modules/unicase/u16-casecoll-tests: Likewise.
5823         * modules/unicase/u16-casefold-tests: Likewise.
5824         * modules/unicase/u16-is-cased-tests: Likewise.
5825         * modules/unicase/u16-is-casefolded-tests: Likewise.
5826         * modules/unicase/u16-is-lowercase-tests: Likewise.
5827         * modules/unicase/u16-is-titlecase-tests: Likewise.
5828         * modules/unicase/u16-is-uppercase-tests: Likewise.
5829         * modules/unicase/u16-tolower-tests: Likewise.
5830         * modules/unicase/u16-totitle-tests: Likewise.
5831         * modules/unicase/u16-toupper-tests: Likewise.
5832         * modules/unicase/u32-casecmp-tests: Likewise.
5833         * modules/unicase/u32-casecoll-tests: Likewise.
5834         * modules/unicase/u32-casefold-tests: Likewise.
5835         * modules/unicase/u32-is-cased-tests: Likewise.
5836         * modules/unicase/u32-is-casefolded-tests: Likewise.
5837         * modules/unicase/u32-is-lowercase-tests: Likewise.
5838         * modules/unicase/u32-is-titlecase-tests: Likewise.
5839         * modules/unicase/u32-is-uppercase-tests: Likewise.
5840         * modules/unicase/u32-tolower-tests: Likewise.
5841         * modules/unicase/u32-totitle-tests: Likewise.
5842         * modules/unicase/u32-toupper-tests: Likewise.
5843         * modules/unicase/ulc-casecmp-tests: Likewise.
5844         * modules/unicase/ulc-casecoll-tests: Likewise.
5845         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5846         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5847         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5848         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5849         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5850         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5851         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5852         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5853         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5854         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5855         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5856         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5857         * modules/unictype/bidicategory-byname-tests: Likewise.
5858         * modules/unictype/bidicategory-name-tests: Likewise.
5859         * modules/unictype/bidicategory-of-tests: Likewise.
5860         * modules/unictype/bidicategory-test-tests: Likewise.
5861         * modules/unictype/block-list-tests: Likewise.
5862         * modules/unictype/block-of-tests: Likewise.
5863         * modules/unictype/block-test-tests: Likewise.
5864         * modules/unictype/category-C-tests: Likewise.
5865         * modules/unictype/category-Cc-tests: Likewise.
5866         * modules/unictype/category-Cf-tests: Likewise.
5867         * modules/unictype/category-Cn-tests: Likewise.
5868         * modules/unictype/category-Co-tests: Likewise.
5869         * modules/unictype/category-Cs-tests: Likewise.
5870         * modules/unictype/category-L-tests: Likewise.
5871         * modules/unictype/category-Ll-tests: Likewise.
5872         * modules/unictype/category-Lm-tests: Likewise.
5873         * modules/unictype/category-Lo-tests: Likewise.
5874         * modules/unictype/category-Lt-tests: Likewise.
5875         * modules/unictype/category-Lu-tests: Likewise.
5876         * modules/unictype/category-M-tests: Likewise.
5877         * modules/unictype/category-Mc-tests: Likewise.
5878         * modules/unictype/category-Me-tests: Likewise.
5879         * modules/unictype/category-Mn-tests: Likewise.
5880         * modules/unictype/category-N-tests: Likewise.
5881         * modules/unictype/category-Nd-tests: Likewise.
5882         * modules/unictype/category-Nl-tests: Likewise.
5883         * modules/unictype/category-No-tests: Likewise.
5884         * modules/unictype/category-P-tests: Likewise.
5885         * modules/unictype/category-Pc-tests: Likewise.
5886         * modules/unictype/category-Pd-tests: Likewise.
5887         * modules/unictype/category-Pe-tests: Likewise.
5888         * modules/unictype/category-Pf-tests: Likewise.
5889         * modules/unictype/category-Pi-tests: Likewise.
5890         * modules/unictype/category-Po-tests: Likewise.
5891         * modules/unictype/category-Ps-tests: Likewise.
5892         * modules/unictype/category-S-tests: Likewise.
5893         * modules/unictype/category-Sc-tests: Likewise.
5894         * modules/unictype/category-Sk-tests: Likewise.
5895         * modules/unictype/category-Sm-tests: Likewise.
5896         * modules/unictype/category-So-tests: Likewise.
5897         * modules/unictype/category-Z-tests: Likewise.
5898         * modules/unictype/category-Zl-tests: Likewise.
5899         * modules/unictype/category-Zp-tests: Likewise.
5900         * modules/unictype/category-Zs-tests: Likewise.
5901         * modules/unictype/category-and-not-tests: Likewise.
5902         * modules/unictype/category-and-tests: Likewise.
5903         * modules/unictype/category-byname-tests: Likewise.
5904         * modules/unictype/category-name-tests: Likewise.
5905         * modules/unictype/category-none-tests: Likewise.
5906         * modules/unictype/category-of-tests: Likewise.
5907         * modules/unictype/category-or-tests: Likewise.
5908         * modules/unictype/category-test-withtable-tests: Likewise.
5909         * modules/unictype/combining-class-tests: Likewise.
5910         * modules/unictype/ctype-alnum-tests: Likewise.
5911         * modules/unictype/ctype-alpha-tests: Likewise.
5912         * modules/unictype/ctype-blank-tests: Likewise.
5913         * modules/unictype/ctype-cntrl-tests: Likewise.
5914         * modules/unictype/ctype-digit-tests: Likewise.
5915         * modules/unictype/ctype-graph-tests: Likewise.
5916         * modules/unictype/ctype-lower-tests: Likewise.
5917         * modules/unictype/ctype-print-tests: Likewise.
5918         * modules/unictype/ctype-punct-tests: Likewise.
5919         * modules/unictype/ctype-space-tests: Likewise.
5920         * modules/unictype/ctype-upper-tests: Likewise.
5921         * modules/unictype/ctype-xdigit-tests: Likewise.
5922         * modules/unictype/decimal-digit-tests: Likewise.
5923         * modules/unictype/digit-tests: Likewise.
5924         * modules/unictype/mirror-tests: Likewise.
5925         * modules/unictype/numeric-tests: Likewise.
5926         * modules/unictype/property-alphabetic-tests: Likewise.
5927         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5928         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5929         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5930         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5931         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5932         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5933         * modules/unictype/property-bidi-control-tests: Likewise.
5934         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5935         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5936         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5937         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5938         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5939         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5940         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5941         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5942         * modules/unictype/property-bidi-pdf-tests: Likewise.
5943         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5944         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5945         * modules/unictype/property-byname-tests: Likewise.
5946         * modules/unictype/property-combining-tests: Likewise.
5947         * modules/unictype/property-composite-tests: Likewise.
5948         * modules/unictype/property-currency-symbol-tests: Likewise.
5949         * modules/unictype/property-dash-tests: Likewise.
5950         * modules/unictype/property-decimal-digit-tests: Likewise.
5951         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5952         * modules/unictype/property-deprecated-tests: Likewise.
5953         * modules/unictype/property-diacritic-tests: Likewise.
5954         * modules/unictype/property-extender-tests: Likewise.
5955         * modules/unictype/property-format-control-tests: Likewise.
5956         * modules/unictype/property-grapheme-base-tests: Likewise.
5957         * modules/unictype/property-grapheme-extend-tests: Likewise.
5958         * modules/unictype/property-grapheme-link-tests: Likewise.
5959         * modules/unictype/property-hex-digit-tests: Likewise.
5960         * modules/unictype/property-hyphen-tests: Likewise.
5961         * modules/unictype/property-id-continue-tests: Likewise.
5962         * modules/unictype/property-id-start-tests: Likewise.
5963         * modules/unictype/property-ideographic-tests: Likewise.
5964         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5965         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5966         * modules/unictype/property-ignorable-control-tests: Likewise.
5967         * modules/unictype/property-iso-control-tests: Likewise.
5968         * modules/unictype/property-join-control-tests: Likewise.
5969         * modules/unictype/property-left-of-pair-tests: Likewise.
5970         * modules/unictype/property-line-separator-tests: Likewise.
5971         * modules/unictype/property-logical-order-exception-tests: Likewise.
5972         * modules/unictype/property-lowercase-tests: Likewise.
5973         * modules/unictype/property-math-tests: Likewise.
5974         * modules/unictype/property-non-break-tests: Likewise.
5975         * modules/unictype/property-not-a-character-tests: Likewise.
5976         * modules/unictype/property-numeric-tests: Likewise.
5977         * modules/unictype/property-other-alphabetic-tests: Likewise.
5978         * modules/unictype/property-other-default-ignorable-code-point-tests:
5979         Likewise.
5980         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
5981         * modules/unictype/property-other-id-continue-tests: Likewise.
5982         * modules/unictype/property-other-id-start-tests: Likewise.
5983         * modules/unictype/property-other-lowercase-tests: Likewise.
5984         * modules/unictype/property-other-math-tests: Likewise.
5985         * modules/unictype/property-other-uppercase-tests: Likewise.
5986         * modules/unictype/property-paired-punctuation-tests: Likewise.
5987         * modules/unictype/property-paragraph-separator-tests: Likewise.
5988         * modules/unictype/property-pattern-syntax-tests: Likewise.
5989         * modules/unictype/property-pattern-white-space-tests: Likewise.
5990         * modules/unictype/property-private-use-tests: Likewise.
5991         * modules/unictype/property-punctuation-tests: Likewise.
5992         * modules/unictype/property-quotation-mark-tests: Likewise.
5993         * modules/unictype/property-radical-tests: Likewise.
5994         * modules/unictype/property-sentence-terminal-tests: Likewise.
5995         * modules/unictype/property-soft-dotted-tests: Likewise.
5996         * modules/unictype/property-space-tests: Likewise.
5997         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5998         * modules/unictype/property-test-tests: Likewise.
5999         * modules/unictype/property-titlecase-tests: Likewise.
6000         * modules/unictype/property-unassigned-code-value-tests: Likewise.
6001         * modules/unictype/property-unified-ideograph-tests: Likewise.
6002         * modules/unictype/property-uppercase-tests: Likewise.
6003         * modules/unictype/property-variation-selector-tests: Likewise.
6004         * modules/unictype/property-white-space-tests: Likewise.
6005         * modules/unictype/property-xid-continue-tests: Likewise.
6006         * modules/unictype/property-xid-start-tests: Likewise.
6007         * modules/unictype/property-zero-width-tests: Likewise.
6008         * modules/unictype/scripts-tests: Likewise.
6009         * modules/unictype/syntax-c-ident-tests: Likewise.
6010         * modules/unictype/syntax-c-whitespace-tests: Likewise.
6011         * modules/unictype/syntax-java-ident-tests: Likewise.
6012         * modules/unictype/syntax-java-whitespace-tests: Likewise.
6013         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
6014         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
6015         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
6016         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
6017         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
6018         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
6019         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
6020         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
6021         * modules/uniname/uniname-tests: Likewise.
6022         * modules/uninorm/canonical-decomposition-tests: Likewise.
6023         * modules/uninorm/compat-decomposition-tests: Likewise.
6024         * modules/uninorm/composition-tests: Likewise.
6025         * modules/uninorm/decomposing-form-tests: Likewise.
6026         * modules/uninorm/decomposition-tests: Likewise.
6027         * modules/uninorm/filter-tests: Likewise.
6028         * modules/uninorm/nfc-tests: Likewise.
6029         * modules/uninorm/nfd-tests: Likewise.
6030         * modules/uninorm/nfkc-tests: Likewise.
6031         * modules/uninorm/nfkd-tests: Likewise.
6032         * modules/uninorm/u8-normcmp-tests: Likewise.
6033         * modules/uninorm/u8-normcoll-tests: Likewise.
6034         * modules/uninorm/u16-normcmp-tests: Likewise.
6035         * modules/uninorm/u16-normcoll-tests: Likewise.
6036         * modules/uninorm/u32-normcmp-tests: Likewise.
6037         * modules/uninorm/u32-normcoll-tests: Likewise.
6038         * modules/unistdio/u8-asnprintf-tests: Likewise.
6039         * modules/unistdio/u8-vasnprintf-tests: Likewise.
6040         * modules/unistdio/u8-vasprintf-tests: Likewise.
6041         * modules/unistdio/u8-vsnprintf-tests: Likewise.
6042         * modules/unistdio/u8-vsprintf-tests: Likewise.
6043         * modules/unistdio/u16-asnprintf-tests: Likewise.
6044         * modules/unistdio/u16-vasnprintf-tests: Likewise.
6045         * modules/unistdio/u16-vasprintf-tests: Likewise.
6046         * modules/unistdio/u16-vsnprintf-tests: Likewise.
6047         * modules/unistdio/u16-vsprintf-tests: Likewise.
6048         * modules/unistdio/u32-asnprintf-tests: Likewise.
6049         * modules/unistdio/u32-vasnprintf-tests: Likewise.
6050         * modules/unistdio/u32-vasprintf-tests: Likewise.
6051         * modules/unistdio/u32-vsnprintf-tests: Likewise.
6052         * modules/unistdio/u32-vsprintf-tests: Likewise.
6053         * modules/unistdio/ulc-asnprintf-tests: Likewise.
6054         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
6055         * modules/unistdio/ulc-vasprintf-tests: Likewise.
6056         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
6057         * modules/unistdio/ulc-vsprintf-tests: Likewise.
6058         * modules/unistr/u8-check-tests: Likewise.
6059         * modules/unistr/u8-chr-tests: Likewise.
6060         * modules/unistr/u8-cmp-tests: Likewise.
6061         * modules/unistr/u8-cmp2-tests: Likewise.
6062         * modules/unistr/u8-cpy-alloc-tests: Likewise.
6063         * modules/unistr/u8-cpy-tests: Likewise.
6064         * modules/unistr/u8-mblen-tests: Likewise.
6065         * modules/unistr/u8-mbsnlen-tests: Likewise.
6066         * modules/unistr/u8-mbtouc-tests: Likewise.
6067         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
6068         * modules/unistr/u8-mbtoucr-tests: Likewise.
6069         * modules/unistr/u8-move-tests: Likewise.
6070         * modules/unistr/u8-next-tests: Likewise.
6071         * modules/unistr/u8-prev-tests: Likewise.
6072         * modules/unistr/u8-set-tests: Likewise.
6073         * modules/unistr/u8-stpcpy-tests: Likewise.
6074         * modules/unistr/u8-stpncpy-tests: Likewise.
6075         * modules/unistr/u8-strcat-tests: Likewise.
6076         * modules/unistr/u8-strcmp-tests: Likewise.
6077         * modules/unistr/u8-strcoll-tests: Likewise.
6078         * modules/unistr/u8-strcpy-tests: Likewise.
6079         * modules/unistr/u8-strdup-tests: Likewise.
6080         * modules/unistr/u8-strlen-tests: Likewise.
6081         * modules/unistr/u8-strmblen-tests: Likewise.
6082         * modules/unistr/u8-strmbtouc-tests: Likewise.
6083         * modules/unistr/u8-strncat-tests: Likewise.
6084         * modules/unistr/u8-strncmp-tests: Likewise.
6085         * modules/unistr/u8-strncpy-tests: Likewise.
6086         * modules/unistr/u8-strnlen-tests: Likewise.
6087         * modules/unistr/u8-to-u16-tests: Likewise.
6088         * modules/unistr/u8-to-u32-tests: Likewise.
6089         * modules/unistr/u8-uctomb-tests: Likewise.
6090         * modules/unistr/u16-check-tests: Likewise.
6091         * modules/unistr/u16-chr-tests: Likewise.
6092         * modules/unistr/u16-cmp-tests: Likewise.
6093         * modules/unistr/u16-cmp2-tests: Likewise.
6094         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6095         * modules/unistr/u16-cpy-tests: Likewise.
6096         * modules/unistr/u16-mblen-tests: Likewise.
6097         * modules/unistr/u16-mbsnlen-tests: Likewise.
6098         * modules/unistr/u16-mbtouc-tests: Likewise.
6099         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6100         * modules/unistr/u16-mbtoucr-tests: Likewise.
6101         * modules/unistr/u16-move-tests: Likewise.
6102         * modules/unistr/u16-next-tests: Likewise.
6103         * modules/unistr/u16-prev-tests: Likewise.
6104         * modules/unistr/u16-set-tests: Likewise.
6105         * modules/unistr/u16-stpcpy-tests: Likewise.
6106         * modules/unistr/u16-stpncpy-tests: Likewise.
6107         * modules/unistr/u16-strcat-tests: Likewise.
6108         * modules/unistr/u16-strcmp-tests: Likewise.
6109         * modules/unistr/u16-strcoll-tests: Likewise.
6110         * modules/unistr/u16-strcpy-tests: Likewise.
6111         * modules/unistr/u16-strdup-tests: Likewise.
6112         * modules/unistr/u16-strlen-tests: Likewise.
6113         * modules/unistr/u16-strmblen-tests: Likewise.
6114         * modules/unistr/u16-strmbtouc-tests: Likewise.
6115         * modules/unistr/u16-strncat-tests: Likewise.
6116         * modules/unistr/u16-strncmp-tests: Likewise.
6117         * modules/unistr/u16-strncpy-tests: Likewise.
6118         * modules/unistr/u16-strnlen-tests: Likewise.
6119         * modules/unistr/u16-to-u32-tests: Likewise.
6120         * modules/unistr/u16-to-u8-tests: Likewise.
6121         * modules/unistr/u16-uctomb-tests: Likewise.
6122         * modules/unistr/u32-check-tests: Likewise.
6123         * modules/unistr/u32-chr-tests: Likewise.
6124         * modules/unistr/u32-cmp-tests: Likewise.
6125         * modules/unistr/u32-cmp2-tests: Likewise.
6126         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6127         * modules/unistr/u32-cpy-tests: Likewise.
6128         * modules/unistr/u32-mblen-tests: Likewise.
6129         * modules/unistr/u32-mbsnlen-tests: Likewise.
6130         * modules/unistr/u32-mbtouc-tests: Likewise.
6131         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6132         * modules/unistr/u32-mbtoucr-tests: Likewise.
6133         * modules/unistr/u32-move-tests: Likewise.
6134         * modules/unistr/u32-next-tests: Likewise.
6135         * modules/unistr/u32-prev-tests: Likewise.
6136         * modules/unistr/u32-set-tests: Likewise.
6137         * modules/unistr/u32-stpcpy-tests: Likewise.
6138         * modules/unistr/u32-stpncpy-tests: Likewise.
6139         * modules/unistr/u32-strcat-tests: Likewise.
6140         * modules/unistr/u32-strcmp-tests: Likewise.
6141         * modules/unistr/u32-strcoll-tests: Likewise.
6142         * modules/unistr/u32-strcpy-tests: Likewise.
6143         * modules/unistr/u32-strdup-tests: Likewise.
6144         * modules/unistr/u32-strlen-tests: Likewise.
6145         * modules/unistr/u32-strmblen-tests: Likewise.
6146         * modules/unistr/u32-strmbtouc-tests: Likewise.
6147         * modules/unistr/u32-strncat-tests: Likewise.
6148         * modules/unistr/u32-strncmp-tests: Likewise.
6149         * modules/unistr/u32-strncpy-tests: Likewise.
6150         * modules/unistr/u32-strnlen-tests: Likewise.
6151         * modules/unistr/u32-to-u16-tests: Likewise.
6152         * modules/unistr/u32-to-u8-tests: Likewise.
6153         * modules/unistr/u32-uctomb-tests: Likewise.
6154         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6155         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6156         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6157         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6158         * modules/uniwidth/u8-strwidth-tests: Likewise.
6159         * modules/uniwidth/u8-width-tests: Likewise.
6160         * modules/uniwidth/u16-strwidth-tests: Likewise.
6161         * modules/uniwidth/u16-width-tests: Likewise.
6162         * modules/uniwidth/u32-strwidth-tests: Likewise.
6163         * modules/uniwidth/u32-width-tests: Likewise.
6164         * modules/uniwidth/width-tests: Likewise.
6165
6166 2010-05-18  Richard Jones  <rjones@redhat.com>
6167
6168         doc: users.txt: list hivex
6169         * users.txt: Add hivex.
6170
6171 2010-05-18  Richard Jones  <rjones@redhat.com>
6172
6173         doc: users.txt: list febootstrap
6174         * users.txt: Add febootstrap.
6175
6176 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6177
6178         bootstrap: fix an error when gnulib is not used as a git submodule
6179         * build-aux/bootstrap (gnulib_path): If its length is zero then
6180         assign "gnulib" to it.
6181         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6182
6183 2010-05-16  Bruno Haible  <bruno@clisp.org>
6184
6185         Avoid autoconf warnings about AM_ICONV.
6186         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6187         2.64.
6188
6189 2010-05-16  Bruno Haible  <bruno@clisp.org>
6190
6191         absolute-header: Make the macro usable in more situations.
6192         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6193         from gl_ABSOLUTE_HEADER.
6194         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6195
6196 2010-05-16  James Youngman  <jay@gnu.org>
6197
6198         doc: update users.txt
6199         * users.txt: Add CSSC.
6200
6201 2010-05-16  Jim Meyering  <meyering@redhat.com>
6202
6203         init.sh: fix an error in the previous change; add more comments
6204         * tests/init.sh: Compare exit code in loop against 9, not 2.
6205         Patch by Bruno Haible.
6206         Make the two tests more similar by adding an empty "then" clause.
6207         Add comments.
6208
6209         init.sh: avoid unnecessary shell re-exec
6210         * tests/init.sh: Improve the re-exec-required check to first test the
6211         current shell.  If it passes the test, do not search for a shell that
6212         does pass, and do not re-exec.  This test is particularly contorted to
6213         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6214         of $(...) evokes a syntax error and causes immediate shell exit with
6215         status 2.  Bruno Haible reported that the re-exec made it impossible
6216         to single-step through any init.sh-using script.
6217
6218 2010-05-16  Bruno Haible  <bruno@clisp.org>
6219
6220         Fix collision between gnulib's and libintl's printf replacements.
6221         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6222         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6223         (printf): When using GNU C, map the __printf__ function to rpl_printf
6224         via __asm__. When not using GNU C, define rpl_printf instead of
6225         __printf__.
6226         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6227         commit.
6228         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6229         commit.
6230         * m4/asm-underscore.m4: New file.
6231         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6232         * modules/stdio (Files): Add m4/asm-underscore.m4.
6233         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6234         Reported by Ben Pfaff.
6235
6236 2010-05-16  Bruno Haible  <bruno@clisp.org>
6237
6238         verify: Avoid skipping the test on openSUSE 11.0.
6239         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6240
6241 2010-05-13  Bruno Haible  <bruno@clisp.org>
6242
6243         Avoid useless warnings from G++.
6244         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6245         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6247
6248 2010-05-11  Jim Meyering  <meyering@redhat.com>
6249
6250         maint.mk: tweak preceding change
6251         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6252         regexps tighter by anchoring at EOL, and make the new group "shy"
6253         for slightly decreased overhead.
6254
6255 2010-05-11  Eric Blake  <eblake@redhat.com>
6256
6257         maint.mk: gnulib doesn't guarantee NSIG
6258         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6259
6260 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6261
6262         test-pwrite.c: Remove unused variable declaration.
6263         * tests/test-pwrite.c (main): Remove read_buf declaration.
6264
6265         Remove useless test-pwrite.sh file.
6266         * tests/test-pwrite.sh: Delete file.
6267         * modules/pwrite-tests: Remove references.
6268         Reported by Bruno Haible.
6269
6270 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6271
6272         init.sh: fix a typo
6273         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6274
6275 2010-05-10  Jim Meyering  <meyering@redhat.com>
6276
6277         maint.mk: avoid using a temporary file in the always-defined-macros check
6278         * top/maint.mk (.re-defmac): Remove rule.
6279         (gl_trap_): Remove definition.
6280         (sc_prohibit_always-defined_macros): Rewrite not to create and
6281         depend on a temporary file.  Instead, depend on GNU grep's ability
6282         to read a list of regular expressions from stdin when given "-f -".
6283
6284 2010-05-09  Bruno Haible  <bruno@clisp.org>
6285
6286         Update to GNU gettext 0.18, part 1.
6287         * m4/gettext.m4: Update to GNU gettext 0.18.
6288         * m4/intl.m4: Likewise.
6289         * m4/po.m4: Likewise.
6290         * modules/gettext (Files): Add m4/fcntl-o.m4.
6291         (configure.ac): Require gettext infrastructure from version 0.18.
6292
6293 2010-05-09  Jim Meyering  <meyering@redhat.com>
6294
6295         init.sh: enable MALLOC_PERTURB_
6296         * tests/init.sh: Enable glibc's malloc-perturbing option.
6297
6298         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6299         With my recent change in init.sh from the two-line form:
6300             -#   : ${srcdir=.}
6301             -#   . "$srcdir/init.sh"; path_prepend_ .
6302             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6303         I noticed that using the one-line form would cause this test
6304         to fail with a false-positive, or to stop working altogether,
6305         depending on whether help-version changed or all the tests did.
6306         * top/maint.mk (_hv_regex): Remove this definition.
6307         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6308         (_hv_regex_strong): Use a stronger regex to check for conformance.
6309         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6310         Give a separate diagnostic for lack of conforming use.
6311
6312         maint.mk: prohibit definition of symbols defined by gnulib
6313         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6314         definition of symbols defined by gnulib.
6315
6316 2010-05-09  Bruno Haible  <bruno@clisp.org>
6317
6318         acl: Avoid test failure on Cygwin-hosted mingw.
6319         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6320
6321 2010-05-09  Bruno Haible  <bruno@clisp.org>
6322
6323         error: Use system's fcntl function.
6324         * lib/error.c (fcntl): Undefine.
6325
6326 2010-05-09  Jim Meyering  <meyering@redhat.com>
6327
6328         verify: adjust formatting to be more consistent
6329         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6330         argument-list '('s, and after one comma.
6331
6332 2010-05-09  Bruno Haible  <bruno@clisp.org>
6333
6334         error: More reliable output on mingw.
6335         * lib/error.c: Include <windows.h>.
6336         (is_open): New function.
6337         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6338         defined.
6339
6340 2010-05-09  Bruno Haible  <bruno@clisp.org>
6341
6342         vasnprintf: Fix syntax errors in libintl build on mingw.
6343         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6344         pad_ourselves and prec_ourselves after use.
6345
6346 2010-05-08  Bruno Haible  <bruno@clisp.org>
6347
6348         * lib/config.charset: Update comments for Cygwin 1.7.
6349         * lib/localcharset.c: Likewise.
6350
6351 2010-05-07  Jim Meyering  <meyering@redhat.com>
6352
6353         init.sh: improve comments
6354         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6355         . "${srcdir=.}/init.sh"; path_prepend_ .
6356         Add a note about path_prepend_ and the alternative of using
6357         TESTS_ENVIRONMENT.
6358
6359 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6360
6361         exclude: Unescape hashed patterns in wildcard mode.
6362         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6363         to the hash list.
6364         * tests/test-exclude8.sh: New test case.
6365         * modules/exclude-tests: Add new test.
6366
6367 2010-05-05  Eric Blake  <eblake@redhat.com>
6368
6369         verify: automate tests
6370         * modules/verify-tests: New module.
6371         * tests/test-verify.sh: New file.
6372         * tests/test-verify.c: Guard each negative test with a unique id.
6373         Also avoid warning about unused left hand of comma expressions.
6374
6375 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6376
6377         Further improvements to verify.h, suggested by Eric Blake.
6378         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6379         the GL_* versions, to avoid collision with OpenGL.
6380         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6381         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6382         than testing merely whether it's defined.
6383
6384         Modify verify.h to pacify gcc -Wredundant_decls.
6385         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6386         These use the prefix "GL_" since they're likely to be useful elsewhere.
6387         We may need to break them out into a different .h file.
6388         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6389         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6390         of verify_function__.
6391
6392 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6393
6394         Tests for module pwrite.
6395         * modules/pwrite-tests: New file.
6396         * tests/test-pwrite.sh: New file.
6397         * tests/test-pwrite.c: New file.
6398
6399         New module pwrite.
6400         * lib/unistd.in.h (pwrite): New declaration.
6401         * lib/pwrite.c: New file, from glibc with modifications.
6402         * m4/pwrite.m4: New file.
6403         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6404         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6405         REPLACE_PWRITE.
6406         * modules/pwrite: New file.
6407         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6408         REPLACE_PWRITE.
6409         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6410         * doc/posix-functions/pwrite.texi: Mention the new module.
6411
6412 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6413
6414         pread: Update documentation.
6415         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6416
6417 2010-05-04  Eric Blake  <eblake@redhat.com>
6418
6419         docs: update cygwin progress
6420         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6421         this bug.
6422         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6423         Added in cygwin 1.7.2.
6424         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6425         Likewise.
6426         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6427         Likewise.
6428         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6429         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6430         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6431         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6432         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6433         Mention nproc module.
6434         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6435         bug in cygwin 1.7.5 addition.
6436         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6437         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6438         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6439         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6440         1.7.5.
6441         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6442         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6443         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6444         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6445         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6446         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6447         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6448         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6449         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6450         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6451         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6452         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6453         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6454         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6455         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6456         Likewise.
6457         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6458         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6459         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6460         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6461         Likewise.
6462         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6463         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6464         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6465         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6466         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6467         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6468         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6469         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6470         Likewise.
6471         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6472         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6473         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6474         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6475         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6476         Likewise.
6477         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6478         Likewise.
6479         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6480         Likewise.
6481         * doc/glibc-functions/xdrrec_endofrecord.texi
6482         (xdrrec_endofrecord): Likewise.
6483         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6484         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6485         Likewise.
6486         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6487         Likewise.
6488
6489 2010-05-04  Jim Meyering  <meyering@redhat.com>
6490
6491         gendocs.sh: make its "-s FILE" option more useful
6492         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6493         $PACKAGE to reflect the probably-different basename of "FILE".
6494
6495 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6496
6497         bootstrap: don't ignore download_po_files failure
6498         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6499         failure.
6500
6501 2010-05-03  Jim Meyering  <meyering@redhat.com>
6502
6503         maint.mk: allow to pass options to gendocs.sh
6504         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6505         (gendocs_options_): New overridable variable.
6506
6507         gnu-web-doc-update: don't ignore configure or build failure
6508         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6509
6510         announce-gen: backslash-escape '@'s in --help output
6511         * build-aux/announce-gen: Fix syntax errors.
6512
6513         maint.mk, announce-gen: allow project-specific announcement mail headers
6514         * top/maint.mk (translation_project_): Define default.
6515         (announcement_Cc_, announcement_mail_headers_): Likewise.
6516         (announcement): Invoke announce-gen with new --mail-headers option.
6517         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6518
6519         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6520         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6521         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6522         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6523         line in the "err2" output file when running "make check" in verbose
6524         mode (i.e., with set -x enabled).
6525
6526 2010-05-03  Bruno Haible  <bruno@clisp.org>
6527
6528         wctob: Fix for weird platforms.
6529         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6530         argument value.
6531
6532 2010-05-03  Jim Meyering  <meyering@redhat.com>
6533
6534         maint.mk: prohibit unwarranted use of <strings.h>
6535         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6536         strings.h in a file that does not also use strcasecmp, strncasecmp,
6537         ffs or ffsll.
6538
6539         maint.mk: remove obsolete comments
6540         * top/maint.mk: Remove stale, commented-out rules.
6541
6542 2010-05-02  Bruno Haible  <bruno@clisp.org>
6543
6544         wcwidth: Declare also when it's aliased.
6545         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6546         macro.
6547
6548 2010-05-02  Bruno Haible  <bruno@clisp.org>
6549
6550         Fix regression from 2010-04-25.
6551         * gnulib-tool (func_modules_transitive_closure): Check the status of
6552         all modules, not only of the tests that are of the form foo-tests where
6553         foo is a module.
6554
6555 2010-05-02  Bruno Haible  <bruno@clisp.org>
6556
6557         wctob: Work around nasty Cygwin 1.7.2 bug.
6558         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6559         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6560
6561 2010-05-01  Bruno Haible  <bruno@clisp.org>
6562
6563         fpurge: Sharper test.
6564         * tests/test-fpurge.c (main): Add one more ftell check.
6565         * modules/fpurge-tests (Depends-on): Add ftell.
6566         Suggested by Eric Blake.
6567
6568 2010-05-01  Bruno Haible  <bruno@clisp.org>
6569
6570         ftello: Another test.
6571         * tests/test-ftello3.c: New file.
6572         * modules/ftello-tests (Files): Add it.
6573         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6574         MOSTLYCLEANFILES.
6575
6576         ftell: Another test.
6577         * tests/test-ftell3.c: New file.
6578         * modules/ftell-tests (Files): Add it.
6579         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6580         MOSTLYCLEANFILES.
6581
6582 2010-05-01  Bruno Haible  <bruno@clisp.org>
6583
6584         ftell, ftello: Work around Solaris bug.
6585         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6586         * lib/ftello.c: Include stdio-impl.h.
6587         (ftello): On Solaris, when _IOWRT is set, compute the result without
6588         looking at _IOREAD.
6589         * modules/ftello (Files): Add lib/stdio-impl.h.
6590         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6591         * doc/posix-functions/ftello.texi: Likewise.
6592         Reported by Eric Blake.
6593
6594 2010-05-01  Bruno Haible  <bruno@clisp.org>
6595
6596         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6597         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6598         the _IOWRT flag is also set.
6599
6600 2010-05-01  Bruno Haible  <bruno@clisp.org>
6601
6602         Fix doc about a HP-UX stdio bug.
6603         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6604         * doc/posix-functions/ftello.texi: Likewise.
6605
6606 2010-05-01  Bruno Haible  <bruno@clisp.org>
6607
6608         lseek test: Fix failure on Solaris.
6609         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6610         output.
6611
6612 2010-04-30  Jim Meyering  <meyering@redhat.com>
6613
6614         bootstrap: don't ignore failure to generate po*/Makevars
6615         * build-aux/bootstrap (with_gettext): Don't ignore failure
6616         to create po/Makevars or runtime-po/Makevars.
6617
6618 2010-04-29  Eric Blake  <eblake@redhat.com>
6619
6620         headers: relax license to LGPLv2+
6621         * modules/fcntl-h (License): Relax license.
6622         * modules/getopt-posix (License): Likewise.
6623         * modules/locale (License): Likewise.
6624         * modules/math (License): Likewise.
6625         * modules/pty (License): Likewise.
6626         * modules/sched (License): Likewise.
6627         * modules/search (License): Likewise.
6628         * modules/spawn (License): Likewise.
6629         * modules/stdarg (License): Likewise.
6630         * modules/sysexits (License): Likewise.
6631
6632 2010-04-29  Jim Meyering  <meyering@redhat.com>
6633
6634         inttypes: relax license to LGPLv2+
6635         * modules/inttypes (License): Relax license.
6636
6637 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6638
6639         * top/maint.mk (indent): Run twice to produce idempotent results.
6640
6641 2010-04-28  Bruno Haible  <bruno@clisp.org>
6642
6643         getdate: Generate getdate.c in the source directory.
6644         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6645         MOSTLYCLEANFILES.
6646         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6647
6648 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6649
6650         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6651         is not declared as a const *; avoid warnings in that case.
6652
6653 2010-04-28  Eric Blake  <eblake@redhat.com>
6654
6655         canonicalize-lgpl: avoid compiler warning
6656         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6657         declaration' / 'extraneous semicolon' warning with some compilers.
6658         Reported by Andreas Gruenbacher.
6659
6660 2010-04-28  Jim Meyering  <meyering@redhat.com>
6661
6662         init.sh: ensure a more reliable exit status when exiting via trap
6663         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6664         Inspired by patches from Dmitry V. Levin.
6665         Also trap on signal 3 (SIGQUIT).
6666
6667 2010-04-27  Bruno Haible  <bruno@clisp.org>
6668
6669         Update doc about utimes().
6670         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6671         'utimens' module.
6672         Reported by Andreas Gruenbacher <agruen@suse.de>.
6673
6674 2010-04-27  Eric Blake  <eblake@redhat.com>
6675
6676         full-read, full-write: relax license
6677         * modules/full-read (License): Drop to LGPLv2+.
6678         * modules/full-write (License): Likewise.
6679         * modules/safe-read (License): Likewise.
6680         * modules/safe-write (License): Likewise.
6681
6682         pthread: mention library for linking
6683         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6684
6685 2010-04-27  Jim Meyering  <meyering@redhat.com>
6686
6687         maint.mk: fix a bug introduced in last change
6688         * top/maint.mk (gl_assured_headers_): Now that all names are on
6689         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6690         is not anchored to end of word, it should be adequate.
6691
6692         maint.mk: avoid side-effect in latest syntax-check
6693         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6694         to run commands via $(shell...), and hence to incur cost only when
6695         the new rule is actually run.
6696
6697         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6698         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6699         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6700         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6701         (gl_assured_headers_, az_, AZ_): Define.
6702         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6703
6704 2010-04-26  Jim Meyering  <jim@meyering.net>
6705             Bruno Haible  <bruno@clisp.org>
6706
6707         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6708         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6709         Prompted by an exchange with Gilles Espinasse.
6710
6711 2010-04-26  Jim Meyering  <meyering@redhat.com>
6712
6713         git-version-gen: aesthetic tweak
6714         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6715         so that the command remains on a single line.
6716
6717 2010-04-26  Eric Blake  <eblake@redhat.com>
6718
6719         git-version-gen: allow use on EBCDIC hosts
6720         * build-aux/git-version-gen (dirty): Use literal rather than tying
6721         ourselves to ascii.
6722         Reported by Steve Goetze.
6723
6724 2010-04-25  Bruno Haible  <bruno@clisp.org>
6725
6726         netdb: Add support for GNULIB_POSIXCHECK.
6727         * lib/netdb.in.h: Include warn-on-use.h.
6728         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6729         functions are used when GNULIB_POSIXCHECK is defined and the
6730         getaddrinfo module is not in use.
6731         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6732         freeaddrinfo, gai_strerror, getnameinfo are declared.
6733         * modules/netdb (Depends-on): Add warn-on-use.
6734         (Makefile.am): Include warn-on-use.h in netdb.h.
6735
6736 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6737
6738         build: avoid "make check" failure without .git/ directory
6739         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6740         there is no .git/ directory.
6741
6742 2010-04-25  Bruno Haible  <bruno@clisp.org>
6743
6744         ptsname: Fix misuse of ttyname_r.
6745         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6746         of errno.
6747
6748 2010-04-25  Bruno Haible  <bruno@clisp.org>
6749
6750         ttyname_r: Make it work on Solaris 10.
6751         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6752         if the system function has the POSIX declaration. Test whether the
6753         function fails if the buffer is less than 128 bytes large.
6754         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6755         system's ttyname_r function. Provide a reasonably large buffer.
6756         * modules/ttyname_r (Depends-on): Add extensions.
6757         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6758
6759 2010-04-25  Bruno Haible  <bruno@clisp.org>
6760
6761         Use the 'extensions' module for some more functions on Solaris.
6762         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6763         module.
6764         * doc/posix-functions/ctime_r.texi: Likewise.
6765         * doc/posix-functions/getgrgid_r.texi: Likewise.
6766         * doc/posix-functions/getgrnam_r.texi: Likewise.
6767         * doc/posix-functions/getpwnam_r.texi: Likewise.
6768         * doc/posix-functions/getpwuid_r.texi: Likewise.
6769         * doc/posix-functions/readdir_r.texi: Likewise.
6770         * doc/posix-functions/sigwait.texi: Likewise.
6771         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6772         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6773
6774 2010-04-25  Bruno Haible  <bruno@clisp.org>
6775
6776         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6777         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6778         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6779         * lib/ttyname_r.c: Include <limits.h>.
6780         (ttyname_r): Define using the system's ttyname_r function, if it exists
6781         and not on Solaris.
6782         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6783         set.
6784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6785         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6786         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6787         Reported by Simon Josefsson.
6788
6789 2010-04-25  Bruno Haible  <bruno@clisp.org>
6790
6791         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6792         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6793         * doc/posix-functions/ctime_r.texi: Likewise.
6794         * doc/posix-functions/getgrgid_r.texi: Likewise.
6795         * doc/posix-functions/getgrnam_r.texi: Likewise.
6796         * doc/posix-functions/getlogin_r.texi: Likewise.
6797         * doc/posix-functions/getpwnam_r.texi: Likewise.
6798         * doc/posix-functions/getpwuid_r.texi: Likewise.
6799         * doc/posix-functions/readdir_r.texi: Likewise.
6800         * doc/posix-functions/sigwait.texi: Likewise.
6801         * doc/posix-functions/ttyname_r.texi: Likewise.
6802         Reported by Simon Josefsson.
6803
6804 2010-04-25  Bruno Haible  <bruno@clisp.org>
6805
6806         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6807         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6808         also to --create-testdir.
6809         (func_acceptable): Don't consider the status of *-tests modules here.
6810         (func_modules_transitive_closure): Consider it here, before including a
6811         test module.
6812         (func_import, func_create_testdir): Set inc_all_direct_tests,
6813         inc_all_indirect_tests.
6814         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6815         --create-testdir and --create-megatestdir.
6816
6817 2010-04-25  Bruno Haible  <bruno@clisp.org>
6818
6819         gnulib-tool: Add --without-*-tests options.
6820         * gnulib-tool (func_usage): Document the --without-*-tests options.
6821         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6822         excl_unportable_tests): New variables.
6823         Fail if they are specified with --import or --update.
6824         (func_acceptable): Respect the excl_*_tests variables.
6825         (func_import): Set the excl_*_tests variables to empty.
6826
6827 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6828             Bruno Haible  <bruno@clisp.org>
6829
6830         Work around a MacOS X 10.4 bug with openpty.
6831         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6832         * tests/test-openpty.c (main): Close the master side explicitly.
6833
6834 2010-04-25  Bruno Haible  <bruno@clisp.org>
6835
6836         strnlen: Fix a C++ test error on MacOS X and Solaris.
6837         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6838         the function is not declared.
6839         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6840         Simon Josefsson.
6841
6842 2010-04-24  Bruno Haible  <bruno@clisp.org>
6843
6844         Avoid a gcc warning.
6845         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6846         of correct type for %08lx directive.
6847         Reported by Eric Blake.
6848
6849 2010-04-24  Bruno Haible  <bruno@clisp.org>
6850
6851         vasnprintf: Correct errno value in case of out-of-memory.
6852         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6853         or sprintf. Use the errno value from SNPRINTF or sprintf.
6854         Reported by Ian Beckwith <ianb@erislabs.net>.
6855
6856 2010-04-24  Bruno Haible  <bruno@clisp.org>
6857
6858         ansi-c++-opt: Find correct compiler when cross-compiling.
6859         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6860         AC_CHECK_PROGS.
6861         Reported by Simon Josefsson.
6862
6863 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6864
6865         vc-list-files: Add support for subversion
6866         * build-aux/vc-list-files: Use "svn list" to generate the list of
6867         files controlled by subversion.
6868
6869 2010-04-23  Jim Meyering  <meyering@redhat.com>
6870
6871         vc-list-files tests: convert to use init.sh
6872         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6873         path_prepend_.
6874         Use Exit, not exit.
6875         Use skip_ rather than open coding it.
6876         Remove trap set-up and compare definitions.
6877         * tests/test-vc-list-files-git.sh: Likewise.
6878         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6879
6880 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6881
6882         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6883         backup files.
6884
6885 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6886
6887         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6888
6889 2010-04-20  Eric Blake  <eblake@redhat.com>
6890
6891         tests: be robust to ignored SIGPIPE
6892         * tests/test-select-in.sh: Consume all output.
6893         * tests/test-lseek.sh: Check correct exit status, while avoiding
6894         EPIPE.
6895
6896 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6897             Bruno Haible  <bruno@clisp.org>
6898
6899         visibility: Don't use -fvisibility if it leads to a warning.
6900         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6901         yes, don't pretend that visibility works if it leads to a warning.
6902         Reported by Mike Gran <spk121@yahoo.com>.
6903
6904 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6905
6906         * build-aux/bootstrap: Use "git -h" for testing for supported options
6907         instead of "git --help".  The short-form option only shows a summary,
6908         and doesn't layout the full man page.  Grep for the full option name
6909         in the summary, too.
6910
6911 2010-04-19  Bruno Haible  <bruno@clisp.org>
6912
6913         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6914         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6915         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6916         mention of RELOCATABLE_STRIP.
6917         Reported by Sylvain Beucler <beuc@beuc.net>.
6918
6919 2010-04-19  Bruno Haible  <bruno@clisp.org>
6920
6921         * lib/diffseq.h: Fix typo in comment.
6922         Reported by Eric Blake.
6923
6924 2010-04-19  Bruno Haible  <bruno@clisp.org>
6925
6926         ioctl: Move autoconf macro to a .m4 file.
6927         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6928         * modules/ioctl (Files): Add it.
6929         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6930         Reported by Ian Beckwith <ianb@erislabs.net>.
6931
6932 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6933             Bruno Haible  <bruno@clisp.org>
6934
6935         diffseq: Accommodate use-case with abstract arrays.
6936         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6937         is not defined.
6938         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6939         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6940
6941 2010-04-18  Bruno Haible  <bruno@clisp.org>
6942
6943         * doc/posix-headers/stdbool.texi: More precise wording.
6944
6945 2010-04-17  Jim Meyering  <meyering@redhat.com>
6946
6947         maint.mk: use gnu-style indentation in an embedded perl script
6948         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6949         Rename variable: s/two/last_two_bytes/
6950
6951 2010-04-16  Eric Blake  <eblake@redhat.com>
6952
6953         test-stdbool: skip test that fails with Solaris CC
6954         * tests/test-stdbool.c (f): Skip test that causes compilation
6955         error under buggy C++ compiler.
6956         * lib/stdbool.in.h: Document the limitation.
6957         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6958
6959         setenv: allow compilation with C++
6960         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6961         register keyword.
6962
6963         stdint: allow test to pass with C++
6964         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6965
6966         getopt: allow compilation with C++
6967         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6968         struct.
6969         * lib/getopt.c (_getopt_internal_r): Use correct type.
6970         Reported by Dagobert Michelson, via Joel E. Denny.
6971
6972 2010-04-16  Bruno Haible  <bruno@clisp.org>
6973
6974         Override netdb.h always.
6975         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6976         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6977         Reported by Ludovic Courtès <ludo@gnu.org>.
6978
6979 2010-04-15  Bruno Haible  <bruno@clisp.org>
6980
6981         openpty: Fix mistake from 2010-03-21.
6982         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6983         Reported by Simon Josefsson.
6984
6985 2010-04-15  Eric Blake  <eblake@redhat.com>
6986
6987         test-forkpty: fix expected signature
6988         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6989         Reported by Simon Josefsson.
6990
6991 2010-04-15  Jim Meyering  <meyering@redhat.com>
6992
6993         maint.mk: texinfo_suffix_re_: correct the default regexp
6994         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6995
6996         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6997         make it configurable via texinfo_suffix_re_.
6998
6999 2010-04-14  Eric Blake  <eblake@redhat.com>
7000
7001         strtok_r: relax license to LGPLv2+
7002         * modules/strtok_r (License): Relax license.
7003         Reported by Matthias Bolte.
7004
7005 2010-04-14  Simon Josefsson  <simon@josefsson.org>
7006
7007         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
7008         version 1.4.4 by default instead of requiring the libgcrypt
7009         version used during build.  This makes it possible to use the
7010         application with older but still binary compatible libgcrypt
7011         versions.
7012
7013 2010-04-13  Eric Blake  <eblake@redhat.com>
7014
7015         getopt-gnu: match recent glibc fixes and posix ruling
7016         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
7017         '+' handling, when requesting extensions.
7018         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
7019         'W;' handling.
7020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
7021         * doc/posix-functions/getopt.texi (getopt): Document this.
7022         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7023         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7024         Likewise.
7025
7026         getopt: merge bug fixes from glibc
7027         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
7028         diagnostics.  Honor '+:' correctly.  Reject ';'.
7029
7030         getopt-posix: detect MacOS bug
7031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
7032         optind when missing a required argument.
7033         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7034         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7035         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7036         Likewise.
7037
7038         getopt-posix: avoid spurious failure on Solaris
7039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
7040         an indicator that setting optind=1 is sufficient for reset.
7041
7042         getopt-posix: avoid spurious failure on FreeBSD
7043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
7044         in POSIX mode, since the m4 test uses it.
7045
7046         gnulib-tool: silence warning on BSD sh
7047         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
7048
7049 2010-04-13  Jim Meyering  <meyering@redhat.com>
7050
7051         doc: users.txt: GNU patch now uses gnulib
7052         * users.txt: Add patch.
7053
7054 2010-04-12  Jim Meyering  <meyering@redhat.com>
7055
7056         maint.mk: generate more concise timing data for syntax-check rules
7057         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
7058         " done" from each line that reports a syntax-check test duration.
7059
7060 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
7061
7062         git-version-gen: use "git update-index..." rather than "git status"
7063         * build-aux/git-version-gen: Use git update-index --refresh, not
7064         "git status".  With some versions of git, "git status" would fail
7065         to update the index and result in an unwarranted "-dirty" suffix.
7066
7067 2010-04-11  Jim Meyering  <meyering@redhat.com>
7068
7069         openat: correct formatting (no semantic change)
7070         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
7071         Suggested by Bruno Haible.
7072
7073 2010-04-11  Bruno Haible  <bruno@clisp.org>
7074
7075         Stricter declaration checking in testdirs.
7076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7077         If for_tests is true, augment AM_CPPFLAGS to define
7078         GNULIB_STRICT_CHECKING.
7079         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7080         GNULIB_STRICT_CHECKING is defined, verify that the function is
7081         declared.
7082
7083 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7084             Bruno Haible  <bruno@clisp.org>
7085
7086         libunistring: Improve configure output.
7087         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7088         Don't say "consider installing GNU libunistring" when checking again
7089         with libiconv.
7090
7091 2010-04-11  Bruno Haible  <bruno@clisp.org>
7092
7093         libunistring: Correct value of $LTLIBUNISTRING.
7094         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7095         correct the value of $LTLIBUNISTRING.
7096
7097 2010-04-11  Bruno Haible  <bruno@clisp.org>
7098
7099         havelib: Add static libraries to LIBS in the right order.
7100         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7101         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7102
7103 2010-04-11  Bruno Haible  <bruno@clisp.org>
7104
7105         libunistring: Detect libunistring also when it depends on libiconv.
7106         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7107         the second AC_LIB_HAVE_LINKFLAGS invocation.
7108
7109 2010-04-11  James Youngman  <jay@gnu.org>
7110
7111         close-stream: declare local scalars to be "const"
7112         * lib/close-stream.c (close_stream): Make boolean variables const
7113         to document the fact that we set but do not change them.
7114
7115 2010-04-11  Bruno Haible  <bruno@clisp.org>
7116
7117         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7118
7119 2010-04-11  Jim Meyering  <meyering@redhat.com>
7120
7121         maint.mk: don't include dist-check.mk
7122         * top/maint.mk: Remove bogus include directive.
7123
7124         maint.mk: improve empty-line-at-EOF check
7125         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7126         solution, rather than tail+Perl-based one.  The latter would read
7127         a few kilobytes from the end of each file, and did not handle empty
7128         files properly.
7129
7130         maint.mk: print the elapsed time for each syntax-check rule
7131         * top/maint.mk (sc_m_rules_): Save start time in a file.
7132         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7133         (local-check): Interpose the .z rules
7134
7135 2010-04-11  Jim Meyering  <meyering@redhat.com>
7136
7137         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7138         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7139         empty file with one that ends in an empty line.
7140
7141 2010-04-10  Bruno Haible  <bruno@clisp.org>
7142
7143         mkdir: Make it work on mingw64.
7144         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7145         * lib/mkdir.c: Update comment.
7146         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7147
7148 2010-04-10  Bruno Haible  <bruno@clisp.org>
7149
7150         Don't override improved macro from newer autoconf.
7151         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7152         autoconf >= 2.62.
7153         Reported by Joel E. Denny <jdenny@clemson.edu>.
7154
7155 2010-04-10  Jim Meyering  <meyering@redhat.com>
7156
7157         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7158         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7159
7160         maint.mk: correct a diagnostic
7161         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7162         in diagnostic; now use $prohibit.
7163
7164 2010-04-10  Bruno Haible  <address@hidden>
7165
7166         fchownat: Fix a C++ test error on Solaris 8.
7167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7168         the function does not exist.
7169
7170 2010-04-10  Bruno Haible  <bruno@clisp.org>
7171
7172         vasnprintf: Add more tests.
7173         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7174         (test_function): Test converting an invalid wide string.
7175
7176         vasnprintf: Correct handling of unconvertible wide string arguments.
7177         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7178         VASNPRINTF.
7179         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7180         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7181         smaller than the expected maximum need for the directive. Set errno to
7182         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7183         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7185         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7186         * modules/vasnprintf (Files): Add m4/printf.m4.
7187         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7188
7189 2010-04-10  Bruno Haible  <bruno@clisp.org>
7190
7191         vasnprintf: Fix crash in %ls directive.
7192         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7193         string is passed as argument to %ls, with no precision and no width.
7194         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7195
7196 2010-04-10  Bruno Haible  <bruno@clisp.org>
7197
7198         vasnprintf: Fix multiple test failures on mingw.
7199         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7200         _snprintf, or snwprintf, not _snwprintf.
7201
7202 2010-04-10  Bruno Haible  <bruno@clisp.org>
7203
7204         write: Fix a C++ test error on mingw.
7205         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7206
7207 2010-04-10  Bruno Haible  <bruno@clisp.org>
7208
7209         vasnprintf test: Reduce code duplication.
7210         * tests/test-vasnprintf.c (test_function): New function, extracted from
7211         test_vasnprintf.
7212         (test_vasnprintf, test_asnprintf): Invoke it.
7213
7214 2010-04-10  Bruno Haible  <bruno@clisp.org>
7215
7216         strnlen: Fix warning in C++ mode on MacOS X.
7217         * lib/string.in.h (strnlen): Use the modern idiom.
7218         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7219         defining strnlen as a macro already in <config.h>.
7220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7221         REPLACE_STRNLEN.
7222         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7223         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7224
7225 2010-04-08  James Youngman  <jay@gnu.org>
7226
7227         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7228         the example.
7229
7230 2010-04-09  Jim Meyering  <meyering@redhat.com>
7231
7232         maint.mk: print better diagnostic when there is no $(_hv_file)
7233         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7234         announce that when $(_hv_file) (aka help-version) does not exist.
7235
7236         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7237         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7238         not try to interpret its random input bytes.  Jarno Rajahalme reported
7239         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7240         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7241         (mktempd_): Likewise, just in case.
7242
7243         ftruncate: add two years to projected module removal date: 2012
7244         * m4/ftruncate.m4: Adjust comments.
7245
7246         ftruncate: mark module as obsolete; even MinGW provides it, now
7247         * modules/ftruncate (Status): Obsolete.
7248         (Notice): Say that.
7249         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7251
7252 2010-04-08  Bruno Haible  <bruno@clisp.org>
7253
7254         Fix side effects from tests-related modules.
7255         * modules/dprintf-posix (Comment): New section.
7256         * modules/fprintf-posix (Comment): Likewise.
7257         * modules/obstack-printf-posix (Comment): Likewise.
7258         * modules/printf-posix (Comment): Likewise.
7259         * modules/snprintf-posix (Comment): Likewise.
7260         * modules/sprintf-posix (Comment): Likewise.
7261         * modules/vasnprintf-posix (Comment): Likewise.
7262         * modules/vasprintf-posix (Comment): Likewise.
7263         * modules/vdprintf-posix (Comment): Likewise.
7264         * modules/vfprintf-posix (Comment): Likewise.
7265         * modules/vprintf-posix (Comment): Likewise.
7266         * modules/vsnprintf-posix (Comment): Likewise.
7267         * modules/vsprintf-posix (Comment): Likewise.
7268         * modules/xprintf-posix (Comment): Likewise.
7269         * modules/xvasprintf-posix (Comment): Likewise.
7270         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7271         * modules/floorf-tests (Depends-on): Likewise.
7272         * modules/round-tests (Depends-on): Likewise.
7273         * modules/roundf-tests (Depends-on): Likewise.
7274         * modules/trunc-tests (Depends-on): Likewise.
7275         * modules/truncf-tests (Depends-on): Likewise.
7276         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7277         'fprintf-posix' module is not present.
7278         * tests/test-floorf2.c (check): Likewise.
7279         * tests/test-trunc2.c (check): Likewise.
7280         * tests/test-truncf2.c (check): Likewise.
7281         * tests/test-round2.c (equal): Likewise.
7282         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7283
7284 2010-04-07  Karl Berry  <karl@gnu.org>
7285
7286         * config/srclist.txt,
7287         * config/srclistvars.sh,
7288         * config/srclist-update: doc fixes.
7289
7290 2010-04-07  Jim Meyering  <meyering@redhat.com>
7291
7292         maint.mk: add a PATH crosschecking syntax-check rule
7293         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7294         Useful if you use a test like the one in help-version (coreutils,
7295         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7296         printed by prog --version.
7297
7298 2010-04-06  Bruno Haible  <bruno@clisp.org>
7299
7300         Fix link error on mingw.
7301         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7302         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7303
7304 2010-04-06  Bruno Haible  <bruno@clisp.org>
7305
7306         Assume rmdir exists.
7307         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7308
7309 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7310
7311         doc: update users.txt
7312         * users.txt: Add gcal.
7313
7314 2010-04-06  Jim Meyering  <meyering@redhat.com>
7315
7316         init.sh: simply unset TMPDIR rather than risking env -i
7317         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7318         although it probably works fine on all Unix-based systems, some
7319         systems (Cygwin?) cannot tolerate a totally cleared environment.
7320         Suggestion from Eric Blake.
7321
7322 2010-04-06  Jim Meyering  <meyering@redhat.com>
7323
7324         init.sh: portability fix: use env's POSIX-specified -i option not -u
7325         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7326         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7327
7328 2010-04-05  Bruno Haible  <bruno@clisp.org>
7329
7330         btowc: Work around Cygwin 1.7.2 bug.
7331         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7332         does not map NUL to 0.
7333         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7334
7335 2010-04-05  Bruno Haible  <bruno@clisp.org>
7336
7337         Make the multithread modules work on Cygwin 1.7.2.
7338         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7339         imported symbols can be declared weak, so that it returns "no" on
7340         Cygwin 1.7.2.
7341
7342 2010-04-05  Bruno Haible  <bruno@clisp.org>
7343
7344         Use the module 'strncat'.
7345         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7346
7347         Tests for module 'strncat'.
7348         * modules/strncat-tests: New file.
7349         * tests/test-strncat.c: New file.
7350
7351         New module 'strncat'.
7352         * lib/string.in.h (strncat): New declaration.
7353         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7354         * m4/strncat.m4: New file, based on m4/memchr.m4.
7355         * modules/strncat: New file.
7356         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7357         is declared.
7358         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7359         REPLACE_STRNCAT.
7360         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7361         REPLACE_STRNCAT.
7362         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7363         module.
7364         * tests/test-string-c++.cc: Check signature of strncat.
7365
7366 2010-04-05  Jim Meyering  <meyering@redhat.com>
7367
7368         xstrtoumax-tests: convert to use init.sh
7369         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7370         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7371         Use Exit, not exit.
7372         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7373
7374         xstrtoimax-tests: convert to use init.sh
7375         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7376         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7377         Use Exit, not exit.
7378         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7379
7380 2010-04-05  Bruno Haible  <bruno@clisp.org>
7381
7382         sys_socket: Avoid #define replacements in C++ mode.
7383         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7384         warning to the function if possible, rather than #defining the symbol
7385         to a dysfunctional alias.
7386
7387 2010-04-05  Bruno Haible  <bruno@clisp.org>
7388
7389         fseeko: Fix C++ test error on mingw.
7390         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7391         gl_FUNC_FSEEKO.
7392         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7393         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7394         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7395         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7396
7397 2010-04-05  Bruno Haible  <bruno@clisp.org>
7398
7399         duplocale: Improve test output.
7400         * tests/test-duplocale.c (main): Print reason for skipped test.
7401
7402 2010-04-05  Bruno Haible  <bruno@clisp.org>
7403
7404         Assume rmdir exists.
7405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7406         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7407
7408 2010-04-05  Bruno Haible  <bruno@clisp.org>
7409
7410         Fix link error on Solaris 8 with cc.
7411         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7412
7413 2010-04-05  Bruno Haible  <bruno@clisp.org>
7414
7415         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7416         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7417
7418 2010-04-05  Bruno Haible  <bruno@clisp.org>
7419
7420         vasprintf: Update documentation.
7421         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7422
7423 2010-04-05  Bruno Haible  <bruno@clisp.org>
7424
7425         ptsname: Improve test.
7426         * tests/test-ptsname.c (main): Also try the various master names of BSD
7427         systems.
7428
7429 2010-04-05  Bruno Haible  <bruno@clisp.org>
7430
7431         memchr: Avoid a possible C++ test error.
7432         * lib/string.in.h (memchr): Provide declaration if function is missing.
7433         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7434         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7436         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7437
7438 2010-04-05  Bruno Haible  <bruno@clisp.org>
7439
7440         strtok_r: Improve idiom.
7441         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7442         AC_LIBOBJ is used.
7443
7444 2010-04-05  Bruno Haible  <bruno@clisp.org>
7445
7446         strdup: Improve idiom.
7447         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7448         AC_LIBOBJ is used.
7449         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7450         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7451         when AC_LIBOBJ is used.
7452
7453 2010-04-05  Bruno Haible  <bruno@clisp.org>
7454
7455         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7456         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7457         don't set REPLACE_MBSINIT to 1.
7458         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7459         don't set REPLACE_MBRTOWC to 1.
7460         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7461         exist, don't set REPLACE_MBSRTOWCS to 1.
7462         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7463         exist, don't set REPLACE_MBSNRTOWCS to 1.
7464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7465         don't set REPLACE_WCRTOMB to 1.
7466         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7467         exist, don't set REPLACE_WCSRTOMBS to 1.
7468         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7469         exist, don't set REPLACE_WCSNRTOMBS to 1.
7470
7471 2010-04-05  Bruno Haible  <bruno@clisp.org>
7472
7473         ldexpl: Improve idiom.
7474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7475         make sure to set HAVE_DECL_LDEXPL to 0.
7476
7477 2010-04-05  Jim Meyering  <meyering@redhat.com>
7478
7479         xstrtol-tests: convert to use init.sh
7480         * modules/xstrtol-tests (Files): Add tests/init.sh.
7481         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7482         Use Exit, not exit.
7483         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7484
7485         atexit-tests: convert to use init.sh
7486         * modules/atexit-tests (Files): Add tests/init.sh.
7487         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7488         Use Exit, not exit.
7489         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7490
7491         init.sh: fix typo
7492         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7493
7494         init.sh: make it easier for a test script to write to the tty, ...
7495         when using automake's parallel-tests mode.
7496         * tests/init.sh (stderr_fileno_): Define overridable variable.
7497         (warn_): New function, to use it.
7498         (fail_, skip_, framework_failure_): Use warn_.
7499
7500 2010-04-04  Bruno Haible  <bruno@clisp.org>
7501
7502         btowc: Avoid warning.
7503         * lib/btowc.c: Include <stdlib.h>.
7504         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7505
7506 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7507             Bruno Haible  <bruno@clisp.org>
7508
7509         wchar: Port to NetBSD 1.5.
7510         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7511         * lib/wctype.in.h (WEOF): Likewise.
7512
7513 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7514             Bruno Haible  <bruno@clisp.org>
7515
7516         Port extended stdio to NetBSD 1.5.
7517         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7518         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7519         older.
7520
7521 2010-04-04  Bruno Haible  <bruno@clisp.org>
7522
7523         string: Remove unused substitution.
7524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7525         HAVE_DECL_STRERROR.
7526         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7527
7528 2010-04-04  Bruno Haible  <bruno@clisp.org>
7529
7530         strtod: Avoid a possible C++ test error.
7531         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7532         set REPLACE_STRTOD.
7533
7534 2010-04-04  Bruno Haible  <bruno@clisp.org>
7535
7536         strerror: Update documentation.
7537         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7538
7539 2010-04-04  Bruno Haible  <bruno@clisp.org>
7540
7541         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7542         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7543         _GL_CXXALIAS_SYS_CAST.
7544
7545 2010-04-04  Bruno Haible  <bruno@clisp.org>
7546
7547         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7548         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7549         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7550         REPLACE_FREXPL to 1.
7551         * doc/posix-functions/frexpl.texi: Update documentation.
7552
7553 2010-04-04  Bruno Haible  <bruno@clisp.org>
7554
7555         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7556         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7557
7558 2010-04-04  Bruno Haible  <bruno@clisp.org>
7559
7560         Implement nanosleep for native Windows.
7561         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7562
7563 2010-04-04  Bruno Haible  <bruno@clisp.org>
7564
7565         math: Fix some C++ test errors on Solaris 8.
7566         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7567
7568 2010-04-04  Bruno Haible  <bruno@clisp.org>
7569
7570         math: Fix some C++ test errors on Cygwin.
7571         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7572         truncl): Provide declaration if the system does not have it.
7573         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7574         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7575         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7576         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7577         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7578         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7579         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7580         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7581         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7582         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7583         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7584         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7585         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7586         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7587         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7588         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7590         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7591         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7592         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7593         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7594         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7595
7596 2010-04-04  Bruno Haible  <bruno@clisp.org>
7597
7598         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7599         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7600         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7601         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7602         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7603         * m4/isinf.m4 (gl_ISINF): Likewise.
7604         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7605
7606 2010-04-04  Bruno Haible  <bruno@clisp.org>
7607
7608         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7609         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7610
7611 2010-04-04  Bruno Haible  <bruno@clisp.org>
7612
7613         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7614         * modules/tmpfile (configure.ac): Update.
7615
7616         tmpfile: Fix C++ test error on mingw.
7617         * lib/stdio.in.h (tmpfile): New declaration.
7618         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7619         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7620         * modules/tmpfile (Depends-on): Add stdio.
7621         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7622         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7623         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7624         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7625         REPLACE_TMPFILE.
7626         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7627
7628 2010-04-04  Bruno Haible  <bruno@clisp.org>
7629
7630         ioctl: Fix C++ test error on mingw.
7631         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7632         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7633         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7634
7635 2010-04-03  Bruno Haible  <bruno@clisp.org>
7636
7637         wcwidth: Fix C++ test error on mingw.
7638         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7640         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7641
7642 2010-04-03  Bruno Haible  <bruno@clisp.org>
7643
7644         nanosleep: Fix C++ test error on mingw.
7645         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7646         * lib/time.in.h (nanosleep): Use modern idiom.
7647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7648         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7649         REPLACE_NANOSLEEP to 1.
7650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7651         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7652
7653 2010-04-03  Bruno Haible  <bruno@clisp.org>
7654
7655         strptime: Fix C++ test error on mingw.
7656         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7657         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7658         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7659         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7661         not REPLACE_STRPTIME.
7662         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7663         REPLACE_STRPTIME.
7664
7665 2010-04-03  Bruno Haible  <bruno@clisp.org>
7666
7667         timegm: Fix C++ test error on mingw.
7668         * lib/time.in.h (timegm): Use modern idiom.
7669         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7670         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7672         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7673
7674 2010-04-03  Bruno Haible  <bruno@clisp.org>
7675
7676         timegm: Assume declaration if function exists.
7677         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7678         if it exists. Don't clobber ac_cv_func_timegm.
7679
7680 2010-04-03  Bruno Haible  <bruno@clisp.org>
7681
7682         time_r: Fix C++ test error on mingw.
7683         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7684         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7685         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7686         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7687         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7688
7689 2010-04-03  Bruno Haible  <bruno@clisp.org>
7690
7691         time_r: Minor updates.
7692         * modules/time_r (Description): Mention the provided functions.
7693         * lib/time_r.c: Don't include <string.h>.
7694         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7695         * doc/posix-functions/localtime_r.texi: Likewise.
7696
7697 2010-04-03  Bruno Haible  <bruno@clisp.org>
7698
7699         time: Fix regression introduced on 2010-03-08.
7700         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7701         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7702
7703 2010-04-03  Jim Meyering  <meyering@redhat.com>
7704
7705         maint.mk: don't silently disable project-specific syntax-check rules
7706         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7707         that they need to convert their project-specific syntax-check rules
7708         to use the new _sc_search_regexp.
7709
7710 2010-04-03  Bruno Haible  <bruno@clisp.org>
7711
7712         fchdir: Fix regression introduced on 2010-03-08.
7713         * lib/unistd.in.h (fchdir): Fix declaration.
7714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7716         REPLACE_FCHDIR.
7717         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7718         REPLACE_FCHDIR.
7719
7720 2010-04-03  Bruno Haible  <bruno@clisp.org>
7721
7722         getpagesize: Fix C++ test error on mingw.
7723         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7724         system does not declare the function.
7725         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7726         declared.
7727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7728         HAVE_DECL_GETPAGESIZE.
7729         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7730
7731 2010-04-03  Bruno Haible  <bruno@clisp.org>
7732
7733         stdio: Make C++ tests work on mingw.
7734         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7735         does not declare the function.
7736
7737 2010-04-03  Bruno Haible  <bruno@clisp.org>
7738
7739         ftello: Fix C++ test error on mingw.
7740         * lib/stdio.in.h (ftello): Use modern idiom.
7741         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7742         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7743         is missing and that it needs to be replaced.
7744         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7746         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7747
7748 2010-04-03  Bruno Haible  <bruno@clisp.org>
7749
7750         fseeko: Fix C++ test error on mingw.
7751         * lib/stdio.in.h (fseeko): Use modern idiom.
7752         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7753         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7754         is missing and that it needs to be replaced.
7755         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7757         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7758
7759 2010-04-03  Bruno Haible  <bruno@clisp.org>
7760
7761         mkstemp: Fix C++ test error on mingw.
7762         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7764         function is missing and that it needs to be replaced.
7765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7766         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7767
7768 2010-04-03  Bruno Haible  <bruno@clisp.org>
7769
7770         stpncpy: Fix C++ test error on mingw.
7771         * lib/string.in.h (stpncpy): Use modern idiom.
7772         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7773         function is missing and that it needs to be replaced.
7774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7775         REPLACE_STPNCPY.
7776         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7777
7778 2010-04-03  Bruno Haible  <bruno@clisp.org>
7779
7780         sys_stat: Fix C++ test error on mingw.
7781         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7782         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7783
7784 2010-04-03  Bruno Haible  <bruno@clisp.org>
7785
7786         pty: Update doc.
7787         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7788
7789 2010-04-03  Bruno Haible  <bruno@clisp.org>
7790
7791         unistd: Fix C++ test error on mingw.
7792         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7793
7794 2010-04-03  Bruno Haible  <bruno@clisp.org>
7795
7796         Update doc regarding mingw.
7797         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7798         * doc/glibc-functions/login_tty.texi: Likewise.
7799         * doc/glibc-functions/forkpty.texi: Likewise.
7800
7801 2010-04-03  Bruno Haible  <bruno@clisp.org>
7802
7803         stdlib: Avoid compilation failure of c-strtold on mingw.
7804         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7805
7806 2010-04-03  Bruno Haible  <bruno@clisp.org>
7807
7808         locale: Make C++ tests work on Cygwin and mingw.
7809         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7810         cannot provide the function.
7811         Reported by Simon Josefsson.
7812
7813 2010-04-03  Bruno Haible  <bruno@clisp.org>
7814
7815         localename: Port to MacOS X 10.6.
7816         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7817         memory layout of the locales in MacOS X 10.6 as well.
7818         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7819
7820 2010-04-02  Bruno Haible  <bruno@clisp.org>
7821
7822         gnulib-tool: Ensure that long-running tests are executed last.
7823         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7824         running tests after the one for the other tests.
7825
7826 2010-04-02  Bruno Haible  <bruno@clisp.org>
7827
7828         gnulib-tool: Ensure the tests in the main directory are executed first.
7829         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7830         start with the current directory.
7831
7832 2010-04-02  Bruno Haible  <bruno@clisp.org>
7833
7834         Tests for module 'havelib', moved here from GNU gettext.
7835         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7836         modifications.
7837         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7838         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7839         with modifications.
7840         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7841         modifications.
7842         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7843         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7844         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7845         with modifications.
7846         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7847         with modifications.
7848         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7849         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7850         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7851         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7852         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7853         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7854         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7855         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7856         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7857         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7858         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7859         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7860         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7861         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7862         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7863         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7864         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7865         with modifications.
7866         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7867         with modifications.
7868         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7869         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7870         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7871         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7872         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7873         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7874         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7875         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7876         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7877         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7878         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7879         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7880         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7881         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7882         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7883         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7884         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7885         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7886         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7887         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7888         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7889         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7890         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7891         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7892         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7893         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7894         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7895         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7896         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7897         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7898         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7899         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7900         * tests/havelib/rpathx/rpathx.c: New file, from
7901         gettext/autoconf-lib-link.
7902         * tests/havelib/rpathx/Makefile.am: New file, from
7903         gettext/autoconf-lib-link.
7904         * tests/havelib/rpathx/configure.ac: New file, from
7905         gettext/autoconf-lib-link with modifications.
7906         * tests/havelib/rpathy/rpathy.c: New file, from
7907         gettext/autoconf-lib-link.
7908         * tests/havelib/rpathy/Makefile.am: New file, from
7909         gettext/autoconf-lib-link.
7910         * tests/havelib/rpathy/configure.ac: New file, from
7911         gettext/autoconf-lib-link with modifications.
7912         * tests/havelib/rpathz/rpathz.c: New file, from
7913         gettext/autoconf-lib-link.
7914         * tests/havelib/rpathz/Makefile.am: New file, from
7915         gettext/autoconf-lib-link.
7916         * tests/havelib/rpathz/configure.ac: New file, from
7917         gettext/autoconf-lib-link with modifications.
7918         * tests/havelib/rpathlx/usex.c: New file, from
7919         gettext/autoconf-lib-link.
7920         * tests/havelib/rpathlx/Makefile.am: New file, from
7921         gettext/autoconf-lib-link.
7922         * tests/havelib/rpathlx/configure.ac: New file, from
7923         gettext/autoconf-lib-link with modifications.
7924         * tests/havelib/rpathly/usey.c: New file, from
7925         gettext/autoconf-lib-link.
7926         * tests/havelib/rpathly/Makefile.am: New file, from
7927         gettext/autoconf-lib-link.
7928         * tests/havelib/rpathly/configure.ac: New file, from
7929         gettext/autoconf-lib-link with modifications.
7930         * tests/havelib/rpathlz/usez.c: New file, from
7931         gettext/autoconf-lib-link.
7932         * tests/havelib/rpathlz/Makefile.am: New file, from
7933         gettext/autoconf-lib-link.
7934         * tests/havelib/rpathlz/configure.ac: New file, from
7935         gettext/autoconf-lib-link with modifications.
7936         * tests/havelib/rpathlyx/usey.c: New file, from
7937         gettext/autoconf-lib-link.
7938         * tests/havelib/rpathlyx/Makefile.am: New file, from
7939         gettext/autoconf-lib-link.
7940         * tests/havelib/rpathlyx/configure.ac: New file, from
7941         gettext/autoconf-lib-link with modifications.
7942         * tests/havelib/rpathlzyx/usez.c: New file, from
7943         gettext/autoconf-lib-link.
7944         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7945         gettext/autoconf-lib-link.
7946         * tests/havelib/rpathlzyx/configure.ac: New file, from
7947         gettext/autoconf-lib-link with modifications.
7948         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7949         with modifications.
7950
7951 2010-04-02  Bruno Haible  <bruno@clisp.org>
7952
7953         gnulib-tool: Create distributed built sources also for the tests.
7954         * gnulib-tool (func_create_testdir): Also generate distributed built
7955         sources in the tests directory.
7956
7957 2010-04-02  Bruno Haible  <bruno@clisp.org>
7958
7959         gnulib-tool: Obey user's environment variables.
7960         * gnulib-tool (func_create_testdir): When creating built sources,
7961         respect the environment variables for autoconf, automake, etc. given by
7962         the user.
7963
7964 2010-04-02  Bruno Haible  <bruno@clisp.org>
7965
7966         gnulib-tool: Provide the value of --m4-base to modules.
7967         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7968         of gl_m4_base.
7969
7970 2010-04-02  Eric Blake  <eblake@redhat.com>
7971
7972         maint.mk: fix some fallout
7973         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7974         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7975
7976 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7977
7978         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
7979         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
7980         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
7981         (sc_cast_of_x_alloc_return_value): Likewise.
7982         (sc_cast_of_alloca_return_value): Likewise.
7983         (sc_space_tab): Likewise.
7984         (sc_prohibit_atoi_atof): Likewise.
7985         (sc_prohibit_magic_number_exit): Likewise.
7986         (sc_error_exit_success): Likewise.
7987         (sc_file_system): Likewise.
7988         (sc_prohibit_have_config_h): Likewise.
7989         (sc_require_config_h): Likewise.
7990         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7991         (sc_obsolete_symbols): Likewise.
7992         (sc_changelog): Likewise.
7993         (sc_program_name): Likewise.
7994         (sc_the_the): Likewise.
7995         (sc_trailing_blank): Likewise.
7996         (sc_two_space_separator_in_usage): Likewise.
7997         (sc_useless_cpp_parens): Likewise.
7998         (sc_GPL_version): Likewise.
7999         (sc_GFDL_version): Likewise.
8000         (sc_texinfo_acronym): Likewise.
8001         (sc_prohibit_cvs_keyword): Likewise.
8002         (sc_prohibit_stat_st_blocks): Likewise.
8003         (sc_prohibit_S_IS_definition): Likewise.
8004         (sc_redundant_const): Likewise.
8005         (sc_makefile_TAB_only_indentation): Likewise.
8006         (sc_m4_quote_check): Likewise.
8007         (sc_makefile_path_separator_check): Likewise.
8008         (sc_copyright_check): Likewise.
8009         (sc_Wundef_boolean): Likewise.
8010         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8011
8012         maint.mk: match 0 or more whitespace-before-function-call '('
8013         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
8014         that have zero or two-and-more spaces between the function name
8015         and the open parenthesis.
8016         (sc_error_message_warn_fatal): Likewise.
8017         (sc_error_message_uppercase): Likewise.
8018         (sc_error_message_period): Likewise.
8019
8020 2010-03-31  Eric Blake  <eblake@redhat.com>
8021
8022         maint.mk: check for [ as well as test
8023         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
8024         Based on a libvirt report by Matthias Bolte.
8025
8026         gnumakefile: don't squelch _version output
8027         * top/GNUmakefile (_version): Create one-shot dependency rather
8028         than using $(shell) when version must be regenerated.
8029         (_autoreconf): Run verbosely, by default.
8030
8031         sys_time: avoid compiler warnings
8032         * lib/sys_time.in.h (includes): Ensure gcc pragma is
8033         unconditional, fixing regression from 2010-03-29.
8034         Reported by Simon Josefsson.
8035
8036 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8037
8038         maint.mk: s/_header_without_use/_sc_header_without_use/
8039         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
8040         (sc_prohibit_assert_without_use): Use the new name.
8041         (sc_prohibit_close_stream_without_use): Likewise.
8042         (sc_prohibit_getopt_without_use): Likewise.
8043         (sc_prohibit_quotearg_without_use): Likewise.
8044         (sc_prohibit_quote_without_use): Likewise.
8045         (sc_prohibit_long_options_without_use): Likewise.
8046         (sc_prohibit_inttostr_without_use): Likewise.
8047         (sc_prohibit_ignore_value_without_use): Likewise.
8048         (sc_prohibit_error_without_use): Likewise.
8049         (sc_prohibit_xalloc_without_use): Likewise.
8050         (sc_prohibit_hash_without_use): Likewise.
8051         (sc_prohibit_hash_pjw_without_use): Likewise.
8052         (sc_prohibit_safe_read_without_use): Likewise.
8053         (sc_prohibit_argmatch_without_use): Likewise.
8054         (sc_prohibit_canonicalize_without_use): Likewise.
8055         (sc_prohibit_root_dev_ino_without_use): Likewise.
8056         (sc_prohibit_openat_without_use): Likewise.
8057         (sc_prohibit_c_ctype_without_use): Likewise.
8058         (sc_prohibit_signal_without_use): Likewise.
8059         (sc_prohibit_intprops_without_use): Likewise.
8060
8061 2010-03-30  Eric Blake  <eblake@redhat.com>
8062
8063         maint: improve module indicators
8064         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
8065         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
8066         columns, and avoid extra macro expansion.
8067
8068         fdopendir: work around FreeBSD bug
8069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8070         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
8071         * modules/dirent (Makefile.am): Substitute it.
8072         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8073         declaration.
8074         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
8075         fix.
8076         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8077
8078 2010-03-29  Bruno Haible  <bruno@clisp.org>
8079
8080         Emit #pragma system_header after the inclusion guard, not before.
8081         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8082         guard that spans the entire file, not before. This enables an
8083         optimization in GCC's preprocessor.
8084         * lib/ctype.in.h: Likewise.
8085         * lib/dirent.in.h: Likewise.
8086         * lib/errno.in.h: Likewise.
8087         * lib/float.in.h: Likewise.
8088         * lib/getopt.in.h: Likewise.
8089         * lib/iconv.in.h: Likewise.
8090         * lib/langinfo.in.h: Likewise.
8091         * lib/locale.in.h: Likewise.
8092         * lib/math.in.h: Likewise.
8093         * lib/netdb.in.h: Likewise.
8094         * lib/netinet_in.in.h: Likewise.
8095         * lib/pty.in.h: Likewise.
8096         * lib/sched.in.h: Likewise.
8097         * lib/se-selinux.in.h: Likewise.
8098         * lib/search.in.h: Likewise.
8099         * lib/spawn.in.h: Likewise.
8100         * lib/stdarg.in.h: Likewise.
8101         * lib/stdint.in.h: Likewise.
8102         * lib/string.in.h: Likewise.
8103         * lib/strings.in.h: Likewise.
8104         * lib/sys_file.in.h: Likewise.
8105         * lib/sys_ioctl.in.h: Likewise.
8106         * lib/sys_time.in.h: Likewise.
8107         * lib/sys_times.in.h: Likewise.
8108         * lib/sys_utsname.in.h: Likewise.
8109         * lib/sys_wait.in.h: Likewise.
8110         * lib/sysexits.in.h: Likewise.
8111         * lib/wctype.in.h: Likewise.
8112
8113 2010-03-28  James Youngman  <jay@gnu.org>
8114
8115         save-cwd: don't leak a file descriptor when the caller execs.
8116         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8117         saved file descriptor.
8118         * modules/save-cwd (Depends-on): Depend on cloexec.
8119
8120 2010-03-29  Bruno Haible  <bruno@clisp.org>
8121
8122         Remove vestiges of fts-lgpl module.
8123         * lib/fts_.h: Assume GNULIB_FTS is 1.
8124         * lib/fts.c: Likewise.
8125         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8126
8127 2010-03-28  Bruno Haible  <bruno@clisp.org>
8128
8129         Fix definition of tests witness macro.
8130         * gnulib-tool (func_import): Fix definition of witness macro.
8131
8132 2010-03-28  Bruno Haible  <bruno@clisp.org>
8133
8134         Fix ioctl's protoype on glibc systems.
8135         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8136         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8137         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8138         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8139         signature. If not, arrange to replace the ioctl function.
8140         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8141         REPLACE_IOCTL.
8142         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8143         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8144         Reported by Ludovic Courtès <ludo@gnu.org>.
8145
8146 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8147
8148         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8149         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8150         made it so grep -r --include=GLOB* ... did not work.
8151
8152 2010-03-26  Jim Meyering  <meyering@redhat.com>
8153             Eric Blake  <eblake@redhat.com>
8154
8155         maint.mk: prohibit use of test's -o and -a operators
8156         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8157
8158 2010-03-28  Bruno Haible  <bruno@clisp.org>
8159
8160         Remove unused GNULIB_XYZ macro definitions.
8161         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8162         invocation.
8163
8164 2010-03-28  Bruno Haible  <bruno@clisp.org>
8165
8166         Mark privileged tests modules.
8167         * modules/idpriv-drop-tests (Status): New section.
8168         * modules/idpriv-droptemp-tests (Status): New section.
8169
8170 2010-03-28  Bruno Haible  <bruno@clisp.org>
8171
8172         Split C++ tests into separate tests modules.
8173         * modules/dirent-c++-tests: New file, extracted from
8174         modules/dirent-tests.
8175         * modules/dirent-tests: Depend on it.
8176         * modules/fcntl-h-c++-tests: New file, extracted from
8177         modules/fcntl-h-tests.
8178         * modules/fcntl-h-tests: Depend on it.
8179         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8180         * modules/glob-tests: Depend on it.
8181         * modules/iconv-h-c++-tests: New file, extracted from
8182         modules/iconv-h-tests.
8183         * modules/iconv-h-tests: Depend on it.
8184         * modules/langinfo-c++-tests: New file, extracted from
8185         modules/langinfo-tests.
8186         * modules/langinfo-tests: Depend on it.
8187         * modules/locale-c++-tests: New file, extracted from
8188         modules/locale-tests.
8189         * modules/locale-tests: Depend on it.
8190         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8191         * modules/math-tests: Depend on it.
8192         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8193         * modules/pty-tests: Depend on it.
8194         * modules/search-c++-tests: New file, extracted from
8195         modules/search-tests.
8196         * modules/search-tests: Depend on it.
8197         * modules/signal-c++-tests: New file, extracted from
8198         modules/signal-tests.
8199         * modules/signal-tests: Depend on it.
8200         * modules/spawn-c++-tests: New file, extracted from
8201         modules/spawn-tests.
8202         * modules/spawn-tests: Depend on it.
8203         * modules/stdio-c++-tests: New file, extracted from
8204         modules/stdio-tests.
8205         * modules/stdio-tests: Depend on it.
8206         * modules/stdlib-c++-tests: New file, extracted from
8207         modules/stdlib-tests.
8208         * modules/stdlib-tests: Depend on it.
8209         * modules/string-c++-tests: New file, extracted from
8210         modules/string-tests.
8211         * modules/string-tests: Depend on it.
8212         * modules/sys_ioctl-c++-tests: New file, extracted from
8213         modules/sys_ioctl-tests.
8214         * modules/sys_ioctl-tests: Depend on it.
8215         * modules/sys_select-c++-tests: New file, extracted from
8216         modules/sys_select-tests.
8217         * modules/sys_select-tests: Depend on it.
8218         * modules/sys_socket-c++-tests: New file, extracted from
8219         modules/sys_socket-tests.
8220         * modules/sys_socket-tests: Depend on it.
8221         * modules/sys_stat-c++-tests: New file, extracted from
8222         modules/sys_stat-tests.
8223         * modules/sys_stat-tests: Depend on it.
8224         * modules/sys_time-c++-tests: New file, extracted from
8225         modules/sys_time-tests.
8226         * modules/sys_time-tests: Depend on it.
8227         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8228         * modules/time-tests: Depend on it.
8229         * modules/unistd-c++-tests: New file, extracted from
8230         modules/unistd-tests.
8231         * modules/unistd-tests: Depend on it.
8232         * modules/wchar-c++-tests: New file, extracted from
8233         modules/wchar-tests.
8234         * modules/wchar-tests: Depend on it.
8235         * modules/wctype-c++-tests: New file, extracted from
8236         modules/wctype-tests.
8237         * modules/wctype-tests: Depend on it.
8238         Reported by Simon Josefsson.
8239
8240 2010-03-28  Bruno Haible  <bruno@clisp.org>
8241
8242         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8243         * gnulib-tool (func_exists_module): New function, extracted from
8244         func_verify_module.
8245         (func_verify_module): Use it.
8246         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8247         'foo' only if 'foo' exists.
8248         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8249         module.
8250
8251 2010-03-28  Bruno Haible  <bruno@clisp.org>
8252
8253         gnulib-tool: Add support for special categories of tests.
8254         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8255         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8256         (func_usage): Document them.
8257         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8258         inc_unportable_tests, inc_all_tests): New variables.
8259         (func_acceptable): Consider these variables.
8260         (func_modules_transitive_closure): Make it work when the 'Status' field
8261         consists of multiple words.
8262         (func_import): Store and restore the values of inc_cxx_tests,
8263         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8264         inc_all_tests in gnulib-comp.m4.
8265         (func_create_testdir): Set inc_all_tests to true.
8266         * doc/gnulib.texi (Extra tests modules): New section.
8267         Suggested by Jim Meyering.
8268
8269 2010-03-28  Bruno Haible  <bruno@clisp.org>
8270
8271         ansi-c++-opt: Allow turning off the C++ build by default.
8272         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8273         gl_CXX_CHOICE_DEFAULT_NO is defined.
8274         Requested by Eric Blake.
8275
8276 2010-03-28  Bruno Haible  <bruno@clisp.org>
8277
8278         unistd: Avoid #define replacements in C++ mode.
8279         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8280         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8281         setsockopt, shutdown, select): In C++, attach a warning to the function
8282         if possible, rather than #defining the symbol to a dysfunctional alias.
8283         Reported by John W. Eaton <jwe@gnu.org>.
8284
8285 2010-03-28  Bruno Haible  <bruno@clisp.org>
8286
8287         Fix link errors on mingw.
8288         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8289         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8290         $(LIBSOCKET).
8291         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8292         $(LIBSOCKET).
8293
8294 2010-03-28  Bruno Haible  <bruno@clisp.org>
8295             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8296
8297         lib-ignore: Determine different options for different compilers.
8298         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8299         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8300         Add comments.
8301         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8302         * NEWS: Mention the change.
8303
8304 2010-03-27  Bruno Haible  <bruno@clisp.org>
8305
8306         Remove unused GNULIB_XYZ macro definitions.
8307         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8308         * modules/fseek (configure.ac): Likewise.
8309         * modules/ioctl (configure.ac): Likewise.
8310         * modules/open (configure.ac): Likewise.
8311         * modules/stdlib-safer (configure.ac): Likewise.
8312
8313 2010-03-27  Bruno Haible  <bruno@clisp.org>
8314
8315         Add a remark about certain modules.
8316         * modules/malloc (Comment): New section.
8317         * modules/realloc (Comment): Likewise.
8318         * modules/sigpipe (Comment): Likewise.
8319
8320 2010-03-27  Bruno Haible  <bruno@clisp.org>
8321
8322         Resolve conflict between the two kinds of module indicators.
8323         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8324         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8325         * modules/canonicalize (configure.ac): Invoke
8326         gl_MODULE_INDICATOR_FOR_TESTS.
8327         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8328         GNULIB_XYZ.
8329         * tests/test-dirent-c++.cc: Likewise.
8330         * tests/test-dirent-safer.c: Likewise.
8331         * tests/test-dup2.c: Likewise.
8332         * tests/test-fchdir.c: Likewise.
8333         * tests/test-fcntl-h-c++.cc: Likewise.
8334         * tests/test-getopt.c: Likewise.
8335         * tests/test-getopt.h: Likewise.
8336         * tests/test-langinfo-c++.cc: Likewise.
8337         * tests/test-locale-c++.cc: Likewise.
8338         * tests/test-math-c++.cc: Likewise.
8339         * tests/test-pty-c++.cc: Likewise.
8340         * tests/test-search-c++.cc: Likewise.
8341         * tests/test-signal-c++.cc: Likewise.
8342         * tests/test-spawn-c++.cc: Likewise.
8343         * tests/test-stdio-c++.cc: Likewise.
8344         * tests/test-stdlib-c++.cc: Likewise.
8345         * tests/test-string-c++.cc: Likewise.
8346         * tests/test-sys_ioctl-c++.cc: Likewise.
8347         * tests/test-sys_select-c++.cc: Likewise.
8348         * tests/test-sys_socket-c++.cc: Likewise.
8349         * tests/test-sys_stat-c++.cc: Likewise.
8350         * tests/test-sys_time-c++.cc: Likewise.
8351         * tests/test-time-c++.cc: Likewise.
8352         * tests/test-unistd-c++.cc: Likewise.
8353         * tests/test-wchar-c++.cc: Likewise.
8354         * tests/uninorm/test-u8-nfc.c: Likewise.
8355         * tests/uninorm/test-u8-nfd.c: Likewise.
8356         * tests/uninorm/test-u8-nfkc.c: Likewise.
8357         * tests/uninorm/test-u8-nfkd.c: Likewise.
8358         * tests/uninorm/test-u16-nfc.c: Likewise.
8359         * tests/uninorm/test-u16-nfd.c: Likewise.
8360         * tests/uninorm/test-u16-nfkc.c: Likewise.
8361         * tests/uninorm/test-u16-nfkd.c: Likewise.
8362         * tests/uninorm/test-u32-nfc.c: Likewise.
8363         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8364         * tests/uninorm/test-u32-nfd.c: Likewise.
8365         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8366         * tests/uninorm/test-u32-nfkc.c: Likewise.
8367         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8368         * tests/uninorm/test-u32-nfkd.c: Likewise.
8369         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8370         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8371
8372 2010-03-27  Bruno Haible  <bruno@clisp.org>
8373
8374         Distinguish two kinds of module indicators.
8375         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8376         gl_MODULE_INDICATOR.
8377         (gl_MODULE_INDICATOR): New macro.
8378         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8379         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8380         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8381         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8382         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8383         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8384         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8385         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8386         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8387         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8388         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8389         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8391         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8392         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8393         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8394         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8395         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8396         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8397         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8398         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8399         * modules/cloexec (configure.ac): Likewise.
8400         * modules/getopt-gnu (configure.ac): Likewise.
8401         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8402         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8403         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8404         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8405
8406 2010-03-27  Bruno Haible  <bruno@clisp.org>
8407
8408         New module description field 'Comment'.
8409         * gnulib-tool: New option --extract-comment.
8410         (func_usage): Document it.
8411         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8412         (func_get_comment): New function.
8413         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8414
8415 2010-03-27  Bruno Haible  <bruno@clisp.org>
8416
8417         Addendum to 2010-02-07 commit.
8418         * gnulib-tool (func_usage): Document --extract-applicability option.
8419
8420 2010-03-27  Bruno Haible  <bruno@clisp.org>
8421
8422         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8423         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8424         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8425         rather than link errors.
8426
8427 2010-03-27  Bruno Haible  <bruno@clisp.org>
8428
8429         Avoid side effects from tests-related modules on the compilation of lib.
8430         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8431         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8432         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8433         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8434         macro.
8435         (func_import): Define a witness macro. Assign it a value that depends
8436         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8437         tests-related modules.
8438         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8439         Reported by Jim Meyering.
8440
8441 2010-03-27  Bruno Haible  <bruno@clisp.org>
8442
8443         Factorize common .m4 code.
8444         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8445         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8446         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8447         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8448         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8449         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8450         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8451         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8452         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8453         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8454         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8455         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8456         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8457         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8458         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8459         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8460         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8461         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8462         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8463         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8464         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8466         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8467         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8468         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8469         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8470         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8471         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8472         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8473         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8474         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8475         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8476
8477 2010-03-27  Bruno Haible  <bruno@clisp.org>
8478
8479         Fix a compilation error on Cygwin with g++ >= 4.3.
8480         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8481         if it is undefined or if we alias it to chmod.
8482         (lstat): Don't warn about the use of this function if it is undefined
8483         or if we alias it to stat.
8484         Reported by Simon Josefsson.
8485
8486 2010-03-27  Bruno Haible  <bruno@clisp.org>
8487
8488         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8489         * modules/getlogin (configure.ac): Update.
8490
8491         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8492         * modules/getlogin_r (configure.ac): Update.
8493
8494         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8496         * modules/inet_ntop (configure.ac): Update.
8497
8498         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8499         * modules/inet_pton (configure.ac): Update.
8500
8501         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8502         * modules/mbslen (configure.ac): Update.
8503
8504         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8505         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8506         * modules/forkpty (configure.ac): Update.
8507         * modules/openpty (configure.ac): Update.
8508
8509 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8510
8511         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8512         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8513
8514 2010-03-25  Eric Blake  <eblake@redhat.com>
8515
8516         maint: use pragma consistently across replacement headers
8517         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8518         * lib/dirent.in.h (system_header): Likewise.
8519         * lib/errno.in.h (system_header): Likewise.
8520         * lib/float.in.h (system_header): Likewise.
8521         * lib/getopt.in.h (system_header): Likewise.
8522         * lib/iconv.in.h (system_header): Likewise.
8523         * lib/inttypes.in.h (system_header): Likewise.
8524         * lib/langinfo.in.h (system_header): Likewise.
8525         * lib/locale.in.h (system_header): Likewise.
8526         * lib/math.in.h (system_header): Likewise.
8527         * lib/netdb.in.h (system_header): Likewise.
8528         * lib/netinet_in.in.h (system_header): Likewise.
8529         * lib/pty.in.h (system_header): Likewise.
8530         * lib/sched.in.h (system_header): Likewise.
8531         * lib/se-selinux.in.h (system_header): Likewise.
8532         * lib/search.in.h (system_header): Likewise.
8533         * lib/spawn.in.h (system_header): Likewise.
8534         * lib/stdarg.in.h (system_header): Likewise.
8535         * lib/stdint.in.h (system_header): Likewise.
8536         * lib/string.in.h (system_header): Likewise.
8537         * lib/strings.in.h (system_header): Likewise.
8538         * lib/sys_file.in.h (system_header): Likewise.
8539         * lib/sys_ioctl.in.h (system_header): Likewise.
8540         * lib/sys_socket.in.h (system_header): Likewise.
8541         * lib/sys_times.in.h (system_header): Likewise.
8542         * lib/sys_utsname.in.h (system_header): Likewise.
8543         * lib/sys_wait.in.h (system_header): Likewise.
8544         * lib/sysexits.in.h (system_header): Likewise.
8545         * lib/unistd.in.h (system_header): Likewise.
8546         * lib/wctype.in.h (system_header): Likewise.
8547
8548         arpa/inet: fix mingw compilation warning
8549         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8550         Reported by Matthew Bolte.
8551
8552 2010-03-25  Bruno Haible  <bruno@clisp.org>
8553
8554         Avoid collision between gnulib wrapper and libintl wrapper.
8555         * lib/printf.c (printf): Don't define if a printf wrapper is already
8556         defined in intl/printf.c.
8557         Reported by Michel Boaventura <michel@michelboaventura.com>.
8558
8559 2010-03-25  Bruno Haible  <bruno@clisp.org>
8560
8561         Use ANSI C.
8562         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8563
8564 2010-03-25  Bruno Haible  <bruno@clisp.org>
8565
8566         Minor formatting changes.
8567         * lib/acosl.c: Insert space before function argument list.
8568         * lib/argz.c: Likewise.
8569         * lib/asinl.c: Likewise.
8570         * lib/expl.c: Likewise.
8571         * lib/gen-uni-tables.c: Likewise.
8572         * lib/gettext.h: Likewise.
8573         * lib/glthread/lock.h: Likewise.
8574         * lib/tanl.c: Likewise.
8575         * lib/uniname/uniname.c: Likewise.
8576         * tests/test-idpriv-drop.c: Likewise.
8577         * tests/test-idpriv-droptemp.c: Likewise.
8578         * tests/test-lock.c: Likewise.
8579         * tests/test-tls.c: Likewise.
8580         * lib/argp-help.c: Insert space before function-like macro argument
8581         list.
8582         * lib/memcmp.c: Likewise.
8583         * tests/test-base64.c: Likewise.
8584         * lib/localename.c: Insert space before sizeof's argument list.
8585         * lib/safe-alloc.h: Likewise.
8586         * lib/file-set.h: Insert space before macro argument list.
8587         * tests/test-argp.c: Likewise.
8588         * lib/argp-namefrob.h: Insert space before function parameter list.
8589         * lib/getaddrinfo.c: Likewise.
8590         * lib/netdb.in.h: Likewise.
8591         * lib/parse-duration.h: Likewise.
8592         * lib/parse-duration.c: Likewise.
8593         * lib/poll.c: Likewise.
8594         * lib/select.c: Likewise.
8595         * lib/trim.h: Likewise.
8596         * tests/test-usleep.c: Likewise.
8597         * lib/ldexpl.c: Insert space before function parameter list and before
8598         function argument list.
8599         * lib/logl.c: Likewise.
8600         * lib/sqrtl.c: Likewise.
8601         * lib/trim.c: Likewise.
8602         * lib/cosl.c: Use GNU style indentation. Insert space before function
8603         argument list.
8604         * lib/sinl.c: Likewise.
8605         * lib/tsearch.c: Insert space after 'for'.
8606         Reported by Jim Meyering.
8607
8608 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8609
8610         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8611         config header before grepping, as it's not present before
8612         autoreconf/configure are run.  Reported by Simon Josefsson.
8613
8614 2010-03-23  Bruno Haible  <bruno@clisp.org>
8615
8616         pt_chown: Make it work with automake < 1.11.
8617         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8618         Reported by Simon Josefsson.
8619
8620 2010-03-23  Bruno Haible  <bruno@clisp.org>
8621
8622         pt_chown: Don't depend on GPLed modules.
8623         * lib/pt_chown.c: Don't include idpriv.h.
8624         (main): Don't drop privileges.
8625         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8626         Reported by Simon Josefsson.
8627
8628 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8629
8630         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8631         suggestions from karl@freefriends.org (Karl Berry).
8632
8633 2010-03-22  Eric Blake  <eblake@redhat.com>
8634
8635         gethostname: further tweaks
8636         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8637         are overriding gethostname.
8638         Suggested by Bruno Haible.
8639
8640 2010-03-21  Bruno Haible  <bruno@clisp.org>
8641
8642         Fix comments.
8643         * lib/forkpty.c (rpl_forkpty): Fix comment.
8644         * lib/openpty.c (rpl_openpty): Likewise.
8645         Reported by Eric Blake.
8646
8647 2010-03-22  Eric Blake  <eblake@redhat.com>
8648
8649         gethostname: fix build on mingw
8650         * lib/unistd.in.h (includes): Work around fact that mingw
8651         <winsock2.h> re-includes <unistd.h>, by avoiding any
8652         redeclarations if we are being included by <winsock2.h>.
8653         Reported by Matthias Bolte.
8654
8655 2010-03-21  Bruno Haible  <bruno@clisp.org>
8656
8657         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8658         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8659         modifications.
8660         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8661         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8662         provide the replacement.
8663         * modules/forkpty (Depends-on): Add openpty, login_tty.
8664         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8665         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8666         * doc/glibc-functions/forkpty.texi: More supported platforms.
8667         * config/srclist.txt: Add forkpty.c (commented).
8668
8669 2010-03-21  Bruno Haible  <bruno@clisp.org>
8670
8671         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8672         (Makefile.am): Verify that PTY_LIB is defined.
8673
8674         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8675
8676 2010-03-21  Bruno Haible  <bruno@clisp.org>
8677
8678         Tests for module 'login_tty'.
8679         * modules/login_tty-tests: New file.
8680         * tests/test-login_tty.c: New file.
8681
8682         New module 'login_tty'.
8683         * lib/login_tty.c: New file.
8684         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8685         * modules/login_tty: New file.
8686         * doc/glibc-functions/login_tty.texi: Mention the new module.
8687
8688 2010-03-21  Bruno Haible  <bruno@clisp.org>
8689
8690         login_tty: Documentation.
8691         * doc/glibc-functions/login_tty.texi: New file.
8692         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8693
8694 2010-03-21  Bruno Haible  <bruno@clisp.org>
8695
8696         pty: Consistent macro naming.
8697         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8698         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8699         * modules/pty (configure.ac): Update.
8700
8701 2010-03-21  Bruno Haible  <bruno@clisp.org>
8702
8703         Tests for openpty: Make stricter.
8704         * tests/test-openpty.c (main): Add test of canonical processing and
8705         erase.
8706         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8707
8708         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8709         * lib/openpty.c (openpty): New replacement function.
8710         * lib/pty.in.h: Include <termios.h>.
8711         (openpty): Update declaration. Add comments.
8712         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8713         is not declared, arrange to provide the replacement. Check for _getpty
8714         and posix_openpt.
8715         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8716         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8717         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8718         * modules/pty-tests (test_pty_c___LDADD): New variable.
8719         * doc/glibc-functions/openpty.texi: More supported platforms.
8720
8721 2010-03-21  Bruno Haible  <bruno@clisp.org>
8722
8723         setenv: Tweaks.
8724         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8725         the test program.
8726         * doc/posix-functions/setenv.texi: Update platforms list.
8727
8728 2010-03-21  Bruno Haible  <bruno@clisp.org>
8729
8730         New module 'unlockpt'.
8731         * lib/unlockpt.c: New file, from glibc with modifications.
8732         * m4/unlockpt.m4: New file.
8733         * modules/unlockpt: New file.
8734         * lib/stdlib.in.h (unlockpt): New declaration.
8735         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8736         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8737         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8738         HAVE_UNLOCKPT.
8739         * doc/posix-functions/unlockpt.texi: Mention the new module.
8740         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8741         * config/srclist.txt: Add unlockpt.c (commented).
8742
8743 2010-03-21  Jim Meyering  <meyering@redhat.com>
8744
8745         maint.mk: prohibit inclusion of "intprops.h" without use
8746         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8747
8748 2010-03-21  Bruno Haible  <bruno@clisp.org>
8749
8750         New module 'grantpt'.
8751         * lib/grantpt.c: New file, from glibc with modifications.
8752         * m4/grantpt.m4: New file.
8753         * modules/grantpt: New file.
8754         * lib/stdlib.in.h (grantpt): New declaration.
8755         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8756         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8757         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8758         HAVE_GRANTPT.
8759         * doc/posix-functions/grantpt.texi: Mention the new module.
8760         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8761         * config/srclist.txt: Add grantpt.c (commented).
8762
8763 2010-03-21  Bruno Haible  <bruno@clisp.org>
8764
8765         New module 'pt_chown'.
8766         * lib/pt_chown.c: New file, from glibc with modifications.
8767         * lib/pty-private.h: New file, from glibc with modifications.
8768         * modules/pt_chown: New file.
8769         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8770
8771 2010-03-21  Bruno Haible  <bruno@clisp.org>
8772
8773         Tests for module 'ptsname'.
8774         * modules/ptsname-tests: New file.
8775         * tests/test-ptsname.c: New file.
8776
8777         New module 'ptsname'.
8778         * lib/ptsname.c: New file, from glibc with modifications.
8779         * m4/ptsname.m4: New file.
8780         * modules/ptsname: New file.
8781         * lib/stdlib.in.h (ptsname): New declaration.
8782         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8783         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8784         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8785         HAVE_PTSNAME.
8786         * doc/posix-functions/ptsname.texi: Mention the new module.
8787         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8788         * config/srclist.txt: Add ptsname.c (commented).
8789
8790 2010-03-21  Bruno Haible  <bruno@clisp.org>
8791
8792         Tests for module 'ttyname_r'.
8793         * modules/ttyname_r-tests: New file.
8794         * tests/test-ttyname_r.c: New file.
8795
8796         New module 'ttyname_r'.
8797         * lib/ttyname_r.c: New file.
8798         * m4/ttyname_r.m4: New file.
8799         * modules/ttyname_r: New file.
8800         * lib/unistd.in.h (ttyname_r): New declaration.
8801         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8802         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8803         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8804         HAVE_TTYNAME_R.
8805         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8806         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8807
8808 2010-03-20  Bruno Haible  <bruno@clisp.org>
8809
8810         signal: Undefine macro definitions in C++ mode.
8811         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8812         sigfillset): Undefine macro definitions from the system header in C++
8813         mode.
8814         Reported by John W. Eaton <jwe@gnu.org>.
8815
8816 2010-03-20  Bruno Haible  <bruno@clisp.org>
8817
8818         Ensure no #include statements inside extern "C" { ... }.
8819         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8820         contain #include statements.
8821         * lib/time.in.h: Likewise.
8822
8823 2010-03-20  Bruno Haible  <bruno@clisp.org>
8824
8825         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8826         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8827         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8828         Reported by John W. Eaton <jwe@gnu.org>.
8829
8830 2010-03-20  Bruno Haible  <bruno@clisp.org>
8831
8832         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8833         Reported by Jim Meyering.
8834
8835 2010-03-20  Bruno Haible  <bruno@clisp.org>
8836
8837         pipe: Set errno upon failure.
8838         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8839         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8840         errno value in error message.
8841
8842 2010-03-20  Bruno Haible  <bruno@clisp.org>
8843             Jim Meyering  <meyering@redhat.com>
8844
8845         lchown: Avoid "unused variable" warning.
8846         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8847
8848 2010-03-20  Bruno Haible  <bruno@clisp.org>
8849
8850         Work around unlink() bug on MacOS X 10.5.6.
8851         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8852         attempting to unlink a parent directory.
8853         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8854         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8855         activate for the replacement function.
8856         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8857
8858 2010-03-20  Bruno Haible  <bruno@clisp.org>
8859
8860         Fix link errors on Solaris 8.
8861         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8862         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8863
8864 2010-03-19  Jim Meyering  <meyering@redhat.com>
8865
8866         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8867         The _LIBC implementation of build_range_exp correctly honors the
8868         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8869         However, the non-_LIBC implementation would ignore that syntax-bit
8870         flag and return REG_ERANGE unconditionally.
8871         This change makes it honor that flag.
8872         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8873         Make two pointer parameters "const".
8874         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8875         (parse_bracket_exp): Update caller.
8876
8877         regex.m4: correct the reversed range endpoint ([b-a]) test
8878         * m4/regex.m4: When requiring that [b-a] evoke failure,
8879         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8880         test pass once again for x86-based systems.
8881
8882 2010-03-19  Bruno Haible  <bruno@clisp.org>
8883
8884         scandir: Fix link error on Solaris 8.
8885         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8886         macros.
8887
8888 2010-03-19  Bruno Haible  <bruno@clisp.org>
8889
8890         getusershell: Fix documentation.
8891         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8892         module.
8893         * doc/glibc-functions/setusershell.texi: Likewise.
8894
8895         getusershell: Provide declaration, missing on Solaris 9.
8896         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8897         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8898         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8899         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8901         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8902         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8903         HAVE_GETUSERSHELL.
8904         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8905
8906 2010-03-19  Bruno Haible  <bruno@clisp.org>
8907
8908         wctype: Provide iswblank function.
8909         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8910         exists and is fine.
8911         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8912         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8913         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8914         * doc/posix-functions/iswblank.texi: Update.
8915
8916 2010-03-19  Bruno Haible  <bruno@clisp.org>
8917
8918         Tests of module 'pty' in C++ mode.
8919         * modules/pty-tests: New file.
8920         * tests/test-pty-c++.cc: New file.
8921         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8922
8923 2010-03-19  Eric Blake  <eblake@redhat.com>
8924
8925         logb: fix documentation
8926         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8927         1.5 declaration bug.
8928
8929         forkpty, openpty: prefer glibc's const-safe prototype
8930         * lib/forkpty.c (rpl_forkpty): New file.
8931         * lib/openpty.c (rpl_openpty): Likewise.
8932         * modules/forkpty (Files): Distribute it.
8933         * modules/openpty (Files): Likewise.
8934         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8935         check...
8936         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8937         replacement for for non-const BSD signature.
8938         * modules/pty (Makefile.am): Substitute witnesses.
8939         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8940         * tests/test-forkpty.c: Update signature check.
8941         * tests/test-openpty.c: Likewise.
8942         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8943         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8944
8945         forkpty, openpty: split functions into new modules
8946         * modules/pty (Makefile.am): Substitute new witnesses.
8947         (Libraries): Move library detection...
8948         * modules/forkpty: ...into new module.
8949         * modules/openpty: Another new module.
8950         * modules/pty-tests: Rename and split...
8951         * modules/forkpty-tests: ...to this...
8952         * modules/openpty-tests: ...and this.
8953         * tests/test-pty.c: Rename and split...
8954         * tests/test-forkpty.c: ...to this...
8955         * tests/test-openpty.c: ...and this.
8956         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8957         (gl_PTY): Split library searching...
8958         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8959         (gl_FORKPTY, gl_OPENPTY): New macros.
8960         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8961         * NEWS: Mention the split.
8962         * MODULES.html.sh (Misc): Document the modules.
8963         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8964         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8965
8966         pty: improve replacement header
8967         * lib/pty.in.h: New file.
8968         * modules/pty (Files): Ship it.
8969         (Makefile.am): Always build replacement.
8970         * m4/pty.m4: Rename...
8971         * m4/pty_h.m4: ...to this.
8972         (gl_PTY): Modernize setting of witness macros; update check of
8973         forkpty to take proper advantage of cache.
8974         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8975
8976         getopt: avoid compiler warning
8977         * lib/getopt.c (attribute_hidden): Remove unused macro.
8978
8979 2010-03-18  Bruno Haible  <bruno@clisp.org>
8980
8981         Fix link errors on Solaris 8.
8982         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8983         * modules/search-tests (test_search_c___LDADD): Likewise.
8984         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8985         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8986         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8987         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8988         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8989         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8990         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8991
8992 2010-03-18  Bruno Haible  <bruno@clisp.org>
8993
8994         Fix bug introduced on 2010-03-14.
8995         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8996         (gl_SPAWN_H): Require it.
8997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8998         Reported by Simon Josefsson.
8999
9000 2010-03-18  Bruno Haible  <bruno@clisp.org>
9001
9002         Fix typo introduced on 2009-12-31.
9003         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
9004         posix_spawn_file_actions_adddup2.
9005
9006 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
9007         and Eric Blake  <eblake@redhat.com>
9008
9009         test-vc-list-files-git: make more robust
9010         * tests/test-vc-list-files-git.sh: Unset problematic environment
9011         variables.  Chain commands together.
9012
9013 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
9014
9015         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
9016         `AC_CHECK_DECL' invocation.
9017
9018 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
9019
9020         * lib/inttostr.c (inttostr): Make sure the invocation of verify
9021         appears before executable statements. Suggested by Petr Sumbera
9022         <Petr.Sumbera@Sun.COM>.
9023
9024 2010-03-14  Bruno Haible  <bruno@clisp.org>
9025
9026         * tests/test-flock.c (test_exclusive): Comment out a test that causes
9027         portability problems. Instead use a simpler test.
9028         (main): Check that invalid arguments are rejected only on Linux.
9029
9030 2010-03-14  Bruno Haible  <bruno@clisp.org>
9031
9032         Fix bug introduced on 2009-12-31.
9033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9034         gl_PREREQ_SYS_H_WINSOCK2 always.
9035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
9036         SYS_SOCKET_H variable.
9037         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
9038         Update comments.
9039         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
9040         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9041         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9042         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9043         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9044
9045 2010-03-14  Bruno Haible  <bruno@clisp.org>
9046
9047         Fix values returned by sinl, cosl.
9048         * lib/trigl.h: Add specification comments.
9049         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
9050         that combines the values from the precomputed table with the values of
9051         the Chebyshev polynomials.
9052
9053 2010-03-14  Bruno Haible  <bruno@clisp.org>
9054
9055         Fix compilation error when modules 'posix_spawn[p]' are not used.
9056         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
9057         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
9058
9059 2010-03-14  Bruno Haible  <bruno@clisp.org>
9060
9061         Fix compilation error on mingw when module 'time_r' is not used.
9062         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
9063         is 1.
9064         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
9065         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9066         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
9067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
9068
9069 2010-03-14  Bruno Haible  <bruno@clisp.org>
9070
9071         Fix compilation error with Sun C.
9072         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
9073         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
9074         instead of GCC specific ULONG_LONG_MAX.
9075         * lib/xstrtoll.c: Likewise.
9076         * lib/xstrtoull.c: Likewise.
9077
9078 2010-03-13  Bruno Haible  <bruno@clisp.org>
9079
9080         Allow the user to disable C++ code and tests.
9081         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9082         (gl_PROG_ANSI_CXX): Require it.
9083
9084 2010-03-13  Bruno Haible  <bruno@clisp.org>
9085
9086         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9087         cases.
9088
9089 2010-03-13  Bruno Haible  <bruno@clisp.org>
9090
9091         Test that gnulib does not break the standard C++ headers.
9092         * tests/test-locale-c++2.cc: New file.
9093         * modules/locale-tests (Files): Add it.
9094         (Makefile.am): Compile it for test-locale-c++.
9095         * tests/test-math-c++2.cc: New file.
9096         * modules/math-tests (Files): Add it.
9097         (Makefile.am): Compile it for test-math-c++.
9098         * tests/test-signal-c++2.cc: New file.
9099         * modules/signal-tests (Files): Add it.
9100         (Makefile.am): Compile it for test-signal-c++.
9101         * tests/test-stdio-c++2.cc: New file.
9102         * modules/stdio-tests (Files): Add it.
9103         (Makefile.am): Compile it for test-stdio-c++.
9104         * tests/test-stdlib-c++2.cc: New file.
9105         * modules/stdlib-tests (Files): Add it.
9106         (Makefile.am): Compile it for test-stdlib-c++.
9107         * tests/test-string-c++2.cc: New file.
9108         * modules/string-tests (Files): Add it.
9109         (Makefile.am): Compile it for test-string-c++.
9110         * tests/test-time-c++2.cc: New file.
9111         * modules/time-tests (Files): Add it.
9112         (Makefile.am): Compile it for test-time-c++.
9113         Reported by John W. Eaton <jwe@gnu.org>.
9114
9115 2010-03-13  Bruno Haible  <bruno@clisp.org>
9116
9117         * gnulib-tool (func_usage): Clarify which options are available for
9118         --create-testdir and --create-megatestdir.
9119
9120 2010-03-13  Bruno Haible  <bruno@clisp.org>
9121
9122         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9123         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9124         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9125         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9126         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9127         when appropriate.
9128         Reported by Jim Meyering.
9129
9130 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9131
9132         * gnulib-tool (func_import): Explain origin of code.
9133
9134 2010-03-12  Bruno Haible  <bruno@clisp.org>
9135
9136         Fix problem with automake's definition of CXXLINK.
9137         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9138         Reported by Simon Josefsson and Ludovic Courtès.
9139
9140 2010-03-12  Bruno Haible  <bruno@clisp.org>
9141
9142         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9143         stable releases.
9144
9145 2010-03-11  Bruno Haible  <bruno@clisp.org>
9146
9147         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9148         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9149         whether the system provides one variant or multiple variants of the
9150         function.
9151         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9152         C++ compilers.
9153         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9154         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9155         Reported by Jim Meyering.
9156
9157 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9158
9159         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9160
9161 2010-03-08  Bruno Haible  <bruno@clisp.org>
9162
9163         gnulib-tool: Add support for --libtool in --create-testdir.
9164         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9165         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9166
9167 2010-03-08  Eric Blake  <eblake@redhat.com>
9168
9169         gnulib-tool.texi: mention possibility of git submodule
9170         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9171         submodules.
9172         * doc/.gitignore: Ignore another generated file.
9173
9174 2010-03-08  Karl Berry  <karl@gnu.org>
9175
9176         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9177         of committing gnulib files while skipping others.
9178
9179 2010-03-07  Bruno Haible  <bruno@clisp.org>
9180
9181         Tests of module 'wctype' in C++ mode.
9182         * tests/test-wctype-c++.cc: New file.
9183         * modules/wctype-tests (Files): Add it and tests/signature.h.
9184         (Depends-on): Add ansi-c++-opt.
9185         (Makefile.am): Arrange to compile and run test-wctype-c++.
9186
9187         Tests of module 'wchar' in C++ mode.
9188         * tests/test-wchar-c++.cc: New file.
9189         * modules/wchar-tests (Files): Add it and tests/signature.h.
9190         (Depends-on): Add ansi-c++-opt.
9191         (Makefile.am): Arrange to compile and run test-wchar-c++.
9192         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9193         gl_MODULE_INDICATOR.
9194
9195         Tests of module 'unistd' in C++ mode.
9196         * tests/test-unistd-c++.cc: New file.
9197         * modules/unistd-tests (Files): Add it and tests/signature.h.
9198         (Depends-on): Add ansi-c++-opt.
9199         (Makefile.am): Arrange to compile and run test-unistd-c++.
9200         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9201         gl_MODULE_INDICATOR.
9202
9203         Tests of module 'time' in C++ mode.
9204         * tests/test-time-c++.cc: New file.
9205         * modules/time-tests (Files): Add it and tests/signature.h.
9206         (Depends-on): Add ansi-c++-opt.
9207         (Makefile.am): Arrange to compile and run test-time-c++.
9208         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9209
9210         Tests of module 'sys_time' in C++ mode.
9211         * tests/test-sys_time-c++.cc: New file.
9212         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9213         (Depends-on): Add ansi-c++-opt.
9214         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9215         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9216         gl_MODULE_INDICATOR.
9217
9218         Tests of module 'sys_stat' in C++ mode.
9219         * tests/test-sys_stat-c++.cc: New file.
9220         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9221         (Depends-on): Add ansi-c++-opt.
9222         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9223         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9224         gl_MODULE_INDICATOR.
9225
9226         Tests of module 'sys_socket' in C++ mode.
9227         * tests/test-sys_socket-c++.cc: New file.
9228         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9229         (Depends-on): Add ansi-c++-opt.
9230         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9231         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9232         gl_MODULE_INDICATOR.
9233
9234         Tests of module 'sys_select' in C++ mode.
9235         * tests/test-sys_select-c++.cc: New file.
9236         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9237         (Depends-on): Add ansi-c++-opt.
9238         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9239         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9240         gl_MODULE_INDICATOR.
9241
9242         Tests of module 'sys_ioctl' in C++ mode.
9243         * tests/test-sys_ioctl-c++.cc: New file.
9244         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9245         (Depends-on): Add ansi-c++-opt.
9246         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9247         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9248         gl_MODULE_INDICATOR.
9249
9250         Tests of module 'string' in C++ mode.
9251         * tests/test-string-c++.cc: New file.
9252         * modules/string-tests (Files): Add it and tests/signature.h.
9253         (Depends-on): Add ansi-c++-opt.
9254         (Makefile.am): Arrange to compile and run test-string-c++.
9255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9256         gl_MODULE_INDICATOR.
9257
9258         Tests of module 'stdlib' in C++ mode.
9259         * tests/test-stdlib-c++.cc: New file.
9260         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9261         (Depends-on): Add ansi-c++-opt.
9262         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9263         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9264         gl_MODULE_INDICATOR.
9265
9266         Tests of module 'stdio' in C++ mode.
9267         * tests/test-stdio-c++.cc: New file.
9268         * modules/stdio-tests (Files): Add it and tests/signature.h.
9269         (Depends-on): Add ansi-c++-opt.
9270         (Makefile.am): Arrange to compile and run test-stdio-c++.
9271         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9272         gl_MODULE_INDICATOR.
9273
9274         Tests of module 'spawn' in C++ mode.
9275         * tests/test-spawn-c++.cc: New file.
9276         * modules/spawn-tests (Files): Add it and tests/signature.h.
9277         (Depends-on): Add ansi-c++-opt.
9278         (Makefile.am): Arrange to compile and run test-spawn-c++.
9279         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9280         gl_MODULE_INDICATOR.
9281
9282         Tests of module 'signal' in C++ mode.
9283         * tests/test-signal-c++.cc: New file.
9284         * modules/signal-tests (Files): Add it and tests/signature.h.
9285         (Depends-on): Add ansi-c++-opt.
9286         (Makefile.am): Arrange to compile and run test-signal-c++.
9287         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9288         gl_MODULE_INDICATOR.
9289
9290         Tests of module 'search' in C++ mode.
9291         * tests/test-search-c++.cc: New file.
9292         * modules/search-tests (Files): Add it and tests/signature.h.
9293         (Depends-on): Add ansi-c++-opt.
9294         (Makefile.am): Arrange to compile and run test-search-c++.
9295         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9296         gl_MODULE_INDICATOR.
9297
9298         Tests of module 'math' in C++ mode.
9299         * tests/test-math-c++.cc: New file.
9300         * modules/math-tests (Files): Add it and tests/signature.h.
9301         (Depends-on): Add ansi-c++-opt.
9302         (Makefile.am): Arrange to compile and run test-math-c++.
9303         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9304
9305         Tests of module 'locale' in C++ mode.
9306         * tests/test-locale-c++.cc: New file.
9307         * modules/locale-tests (Files): Add it and tests/signature.h.
9308         (Depends-on): Add ansi-c++-opt.
9309         (Makefile.am): Arrange to compile and run test-locale-c++.
9310         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9311         gl_MODULE_INDICATOR.
9312
9313         Tests of module 'langinfo' in C++ mode.
9314         * tests/test-langinfo-c++.cc: New file.
9315         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9316         (Depends-on): Add ansi-c++-opt.
9317         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9318         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9319         gl_MODULE_INDICATOR.
9320
9321         Tests of module 'iconv-h' in C++ mode.
9322         * tests/test-iconv-h-c++.cc: New file.
9323         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9324         (Depends-on): Add ansi-c++-opt.
9325         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9326
9327         Tests of module 'glob' in C++ mode.
9328         * tests/test-glob-c++.cc: New file.
9329         * modules/glob-tests (Files): Add it.
9330         (Depends-on): Add ansi-c++-opt.
9331         (Makefile.am): Arrange to compile and run test-glob-c++.
9332
9333         Tests of module 'fcntl-h' in C++ mode.
9334         * tests/test-fcntl-h-c++.cc: New file.
9335         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9336         (Depends-on): Add ansi-c++-opt.
9337         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9338         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9339         gl_MODULE_INDICATOR.
9340
9341         Tests of module 'dirent' in C++ mode.
9342         * tests/test-dirent-c++.cc: New file.
9343         * modules/dirent-tests (Files): Add it and tests/signature.h.
9344         (Depends-on): Add ansi-c++-opt.
9345         (Makefile.am): Arrange to compile and run test-dirent-c++.
9346         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9347         gl_MODULE_INDICATOR.
9348
9349         New module 'ansi-c++-opt'.
9350         * modules/ansi-c++-opt: New file.
9351         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9352
9353         Document C++ namespace mode.
9354         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9355
9356         wctype: Avoid #define replacements in C++ mode.
9357         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9358         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9359         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9360         In C++, define a namespaced alias symbol.
9361         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9362         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9363         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9364         rule.
9365
9366         wchar: Avoid #define replacements in C++ mode.
9367         * lib/wchar.in.h: Include c++defs.h.
9368         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9369         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9370         symbol.
9371         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9372         * modules/wchar (Depends-on): Add c++defs.
9373         (Makefile.am): Update wchar.h rule.
9374
9375         unistd: Avoid #define replacements in C++ mode.
9376         * lib/unistd.in.h: Include c++defs.h.
9377         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9378         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9379         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9380         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9381         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9382         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9383         symbol.
9384         (environ): Update.
9385         * modules/unistd (Depends-on): Add c++defs.
9386         (Makefile.am): Update unistd.h rule.
9387
9388         time: Avoid #define replacements in C++ mode.
9389         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9390         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9391         define a namespaced alias symbol.
9392         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9393         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9394         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9395         * modules/time (Depends-on): Add c++defs, warn-on-use.
9396         (Makefile.am): Update time.h rule.
9397         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9398         * modules/nanosleep (configure.ac): Likewise.
9399         * modules/strptime (configure.ac): Likewise.
9400         * modules/timegm (configure.ac): Likewise.
9401
9402         sys_time: Avoid #define replacements in C++ mode.
9403         * lib/sys_time.in.h: Include c++defs.h.
9404         (gettimeofday): In C++, define a namespaced alias symbol.
9405         * modules/sys_time (Depends-on): Add c++defs.
9406         (Makefile.am): Update sys/time.h rule.
9407
9408         sys_stat: Avoid #define replacements in C++ mode.
9409         * lib/sys_stat.in.h: Include c++defs.h.
9410         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9411         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9412         namespaced alias symbol.
9413         In C++, define a namespaced alias symbol.
9414         * modules/sys_stat (Depends-on): Add c++defs.
9415         (Makefile.am): Update sys/stat.h rule.
9416
9417         sys_socket: Avoid #define replacements in C++ mode.
9418         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9419         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9420         definitions also when the system has a <sys/socket.h>.
9421         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9422         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9423         In C++, define a namespaced alias symbol.
9424         * modules/sys_socket (Depends-on): Add c++defs.
9425         (Makefile.am): Update sys/socket.h rule.
9426
9427         sys_select: Avoid #define replacements in C++ mode.
9428         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9429         definitions also when the system has a <sys/select.h>.
9430         (select): In C++, define a namespaced alias symbol.
9431         * modules/sys_select (Depends-on): Add c++defs.
9432         (Makefile.am): Update sys/select.h rule.
9433
9434         sys_ioctl: Avoid #define replacements in C++ mode.
9435         * lib/sys_ioctl.in.h: Include c++defs.h.
9436         (ioctl): In C++, define a namespaced alias symbol.
9437         * modules/sys_ioctl (Depends-on): Add c++defs.
9438         (Makefile.am): Update sys/ioctl.h rule.
9439
9440         string: Avoid #define replacements in C++ mode.
9441         * lib/string.in.h: Include c++defs.h.
9442         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9443         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9444         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9445         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9446         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9447         * modules/string (Depends-on): Add c++defs.
9448         (Makefile.am): Update string.h rule.
9449
9450         stdlib: Avoid #define replacements in C++ mode.
9451         * lib/stdlib.in.h: Include c++defs.h.
9452         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9453         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9454         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9455         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9456         symbol.
9457         * modules/stdlib (Depends-on): Add c++defs.
9458         (Makefile.am): Update stdlib.h rule.
9459
9460         stdio: Avoid #define replacements in C++ mode.
9461         * lib/stdio.in.h: Include c++defs.h.
9462         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9463         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9464         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9465         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9466         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9467         namespaced alias symbol.
9468         * modules/stdio (Depends-on): Add c++defs.
9469         (Makefile.am): Update stdio.h rule.
9470
9471         spawn: Avoid #define replacements in C++ mode.
9472         * lib/spawn.in.h: Include c++defs.h.
9473         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9474         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9475         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9476         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9477         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9478         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9479         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9480         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9481         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9482         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9483         In C++, define a namespaced alias symbol.
9484         * modules/spawn (Depends-on): Add c++defs.
9485         (Makefile.am): Update spawn.h rule.
9486
9487         signal: Avoid #define replacements in C++ mode.
9488         * lib/signal.in.h: Include c++defs.h.
9489         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9490         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9491         namespaced alias symbol.
9492         * modules/signal (Depends-on): Add c++defs.
9493         (Makefile.am): Update signal.h rule.
9494
9495         search: Avoid #define replacements in C++ mode.
9496         * lib/search.in.h: Include c++defs.h.
9497         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9498         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9499         symbol.
9500         * modules/search (Depends-on): Add c++defs.
9501         (Makefile.am): Update search.h rule.
9502
9503         math: Avoid #define replacements in C++ mode.
9504         * lib/math.in.h: Include c++defs.h.
9505         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9506         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9507         trunc, truncl): In C++, define a namespaced alias symbol.
9508         * modules/math (Depends-on): Add c++defs.
9509         (Makefile.am): Update math.h rule.
9510
9511         locale: Avoid #define replacements in C++ mode.
9512         * lib/locale.in.h: Include c++defs.h.
9513         (duplocale): In C++, define a namespaced alias symbol.
9514         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9515         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9516         * modules/locale (Depends-on): Add c++defs.
9517         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9518
9519         langinfo: Avoid #define replacements in C++ mode.
9520         * lib/langinfo.in.h: Include c++defs.h.
9521         (nl_langinfo): In C++, define a namespaced alias symbol.
9522         * modules/langinfo (Depends-on): Add c++defs.
9523         (Makefile.am): Update langinfo.h rule.
9524
9525         iconv-h: Avoid #define replacements in C++ mode.
9526         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9527         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9528         symbol.
9529         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9530         whenever iconv is present.
9531         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9532         (Makefile.am): Update iconv.h rule.
9533
9534         glob: Avoid #define replacements in C++ mode.
9535         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9536         (_gl_glob_errfunc_fn): New type.
9537         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9538         symbol.
9539         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9540         (Makefile.am): Update glob.h rule.
9541
9542         fcntl-h: Avoid #define replacements in C++ mode.
9543         * lib/fcntl.in.h: Include c++defs.h.
9544         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9545         * modules/fcntl-h (Depends-on): Add c++defs.
9546         (Makefile.am): Update fcntl.h rule.
9547
9548         dirent: Avoid #define replacements in C++ mode.
9549         * lib/dirent.in.h: Include c++defs.h.
9550         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9551         namespaced alias symbol.
9552         (dirfd): Update declaration.
9553         * modules/dirent (Depends-on): Add c++defs.
9554         (Makefile.am): Update dirent.h rule.
9555
9556         ctype: Make it usable in C++ code.
9557         * lib/ctype.in.h: Include c++defs.h.
9558         (isblank): Declare as extern "C".
9559         * modules/ctype (Depends-on): Add c++defs.
9560         (Makefile.am): Update ctype.h rule.
9561
9562         New module 'c++defs'.
9563         * modules/c++defs: New file.
9564         * build-aux/c++defs.h: New file.
9565         Reported by John W. Eaton <jwe@gnu.org>.
9566
9567 2010-03-07  Bruno Haible  <bruno@clisp.org>
9568
9569         logb: Provide missing declaration for Cygwin.
9570         * lib/math.in.h (logb): New declaration.
9571         * m4/logb.m4: New file.
9572         * modules/logb (Files): Add m4/logb.m4.
9573         (Depends-on): Add math.
9574         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9575         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9577         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9578         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9579
9580 2010-03-07  Bruno Haible  <bruno@clisp.org>
9581
9582         Fix test-cond link error.
9583         * tests/test-cond.c: Include <stdio.h>.
9584
9585 2010-03-07  Bruno Haible  <bruno@clisp.org>
9586
9587         Fix test-dirent-safer link error.
9588         * modules/dirent-safer-tests (Makefile.am): Define
9589         test_dirent_safer_LDADD.
9590
9591 2010-03-07  Bruno Haible  <bruno@clisp.org>
9592
9593         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9594         among default module list.
9595
9596 2010-03-07  Bruno Haible  <bruno@clisp.org>
9597
9598         Fix link error on platforms with GNU libiconv.
9599         * modules/unistr/u8-strcoll-tests (Makefile): Define
9600         test_u8_strcoll_LDADD.
9601         * modules/unistr/u16-strcoll-tests (Makefile): Define
9602         test_u16_strcoll_LDADD.
9603         * modules/unistr/u32-strcoll-tests (Makefile): Define
9604         test_u32_strcoll_LDADD.
9605
9606 2010-03-07  Bruno Haible  <bruno@clisp.org>
9607
9608         Use POSIX declarations for socket functions.
9609         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9610         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9611         rpl_sendto): Change declaration to match POSIX.
9612         * lib/connect.c (rpl_connect): Likewise.
9613         * lib/accept.c (rpl_accept): Likewise.
9614         * lib/bind.c (rpl_bind): Likewise.
9615         * lib/getpeername.c (rpl_getpeername): Likewise.
9616         * lib/getsockname.c (rpl_getsockname): Likewise.
9617         * lib/recv.c (rpl_recv): Likewise.
9618         * lib/send.c (rpl_send): Likewise.
9619         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9620         * lib/sendto.c (rpl_sendto): Likewise.
9621
9622 2010-03-06  Bruno Haible  <bruno@clisp.org>
9623
9624         Clarify access, euidaccess, faccessat.
9625         * doc/posix-functions/faccessat.texi: Mention security problem under
9626         "Other problems", not "Portability problems".
9627         * doc/posix-functions/access.texi: Likewise. Mention a related security
9628         problem.
9629         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9630         * lib/euidaccess.c: Add comments about platforms.
9631         * lib/unistd.in.h (access, euidaccess): Add warnings.
9632
9633 2010-03-07  Bruno Haible  <bruno@clisp.org>
9634
9635         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9636         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9637         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9638         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9639         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9640         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9641         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9642         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9643         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9644         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9645         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9646         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9647         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9648         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9649         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9650         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9651         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9652         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9653         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9654         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9655         Likewise.
9656         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9657         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9658         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9659         Likewise.
9660         * tests/test-spawn.c (main): Make it work when
9661         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9662
9663 2010-03-07  Bruno Haible  <bruno@clisp.org>
9664
9665         Fix incorrect Makefile.am generation in German locale.
9666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9667         Execute sed command with character range in C locale.
9668
9669 2010-03-06  Bruno Haible  <bruno@clisp.org>
9670
9671         Tests for module 'iconv-h'.
9672         * modules/iconv-h-tests: New file.
9673         * tests/test-iconv-h.c: New file.
9674
9675         New module 'iconv-h'.
9676         * modules/iconv-h: New file.
9677         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9678         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9679         (configure.ac): Remove gl_ICONV_H.
9680         (Makefile.am): Remove rule for iconv.h.
9681
9682 2010-03-06  Bruno Haible  <bruno@clisp.org>
9683
9684         More consistent naming of *.m4 files.
9685         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9686         * modules/wctype (Files): Update.
9687
9688         More consistent naming of *.m4 files.
9689         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9690         * modules/wchar (Files): Update.
9691
9692 2010-03-06  Jim Meyering  <meyering@redhat.com>
9693
9694         euidaccess: relax license to LGPLv2+
9695         * modules/euidaccess (License): Relax to LGPLv2+.
9696
9697 2010-03-06  Bruno Haible  <bruno@clisp.org>
9698
9699         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9700         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9701         (Makefile.am): Augment lib_SOURCES instead.
9702
9703 2010-03-04  Jim Meyering  <meyering@redhat.com>
9704
9705         utime: remove obsolete module
9706         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9707         unnecessary for years, and has been marked as obsolete for 10 months.
9708         * modules/utime: Remove file.
9709         * lib/utime.c: Remove file.
9710         * m4/utime.m4: Remove file.
9711         * m4/utimes-null.m4: Remove file.
9712         * doc/posix-functions/utime.texi (utime): Remove reference to
9713         the module.  Move the sole "fixed by gnulib" item into the
9714         "problems not fixed by Gnulib" list.
9715         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9716
9717 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9718
9719         * modules/exit (License): Relax license to LGPLv2+.
9720         (Status): Mark as obsolete.
9721         * NEWS: Mention deprecated 'exit' module.
9722         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9723         of now obsolete 'exit'.
9724
9725 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9726
9727         fts-lgpl: remove unused module
9728         * modules/fts-lgpl: Remove.
9729         * MODULES.html.sh (func_all_modules): Adjust.
9730         * check-module (find_included_lib_files): Adjust.
9731         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9732
9733 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9734
9735         copy-acl: enhance Solaris ACL error handling
9736         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9737         * lib/set-mode-acl.c (qset_acl): Likewise.
9738
9739 2010-03-02  Bruno Haible  <bruno@clisp.org>
9740
9741         spawn: Don't override the system defined values on FreeBSD 8.
9742         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9743         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9744         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9745         if HAVE_POSIX_SPAWN is 1.
9746         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9747
9748 2010-03-01  Bruno Haible  <bruno@clisp.org>
9749
9750         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9751         regarding Automake.
9752
9753 2010-02-25  Bruno Haible  <bruno@clisp.org>
9754
9755         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9756         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9757         setting, not afterwards.
9758         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9759
9760 2010-02-24  Eric Blake  <eblake@redhat.com>
9761
9762         bootstrap, git-version-gen: use timestamp
9763         * build-aux/git-version-gen (scriptversion): Force UTC.
9764         * build-aux/bootstrap (scriptversion): New variable.
9765
9766         bootstrap: allow older git
9767         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9768         older than 1.6.4.  Requested by the libvirt project.
9769
9770 2010-02-23  Eric Blake  <eblake@redhat.com>
9771
9772         warn-on-use: work with old autoconf
9773         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9774         AS_VAR semantics of autoconf 2.60.
9775         Reported by Bruno Haible.
9776
9777         bootstrap: improve some comments
9778         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9779         clarification comments.
9780
9781         gettimeofday: provide correct function
9782         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9783         when replacement is declared, otherwise provide gettimeofday.
9784         Reported by Michael Goffioul.
9785
9786 2010-02-23  Jim Meyering  <meyering@redhat.com>
9787
9788         lib-ignore: relax license to "unlimited", not LGPLv2+
9789         * modules/lib-ignore (License): Relax to "unlimited".
9790
9791 2010-02-23  Jim Meyering  <meyering@redhat.com>
9792
9793         lib-ignore: relax license to LGPLv2+
9794         * modules/lib-ignore (License): Relax to LGPLv2+.
9795
9796 2010-02-22  Eric Blake  <eblake@redhat.com>
9797
9798         lseek: avoid bash 3.2 broken pipe bug
9799         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9800         warning from bash 3.2.
9801         Reported by Ben Pfaff, with analysis from Bruno Haible.
9802
9803         bootstrap: support non-FSF copyright holder
9804         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9805         bootstrap.conf override of COPYRIGHT_HOLDER.
9806         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9807
9808         bootstrap: interoperate with gettext 0.14.1
9809         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9810
9811         bootstrap: allow for alternate submodule location
9812         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9813         hardcoding submodule location.
9814         (gnulib_mk): Allow direct use of Makefile.am.
9815
9816         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9817         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9818         rather than reconfiguring where the submodule points.
9819
9820         gettimeofday: restore support for platforms that lack function
9821         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9822         replacement if function is missing.
9823         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9824         * modules/sys_time (Makefile.am): Substitute it.
9825         * lib/sys_time.in.h (gettimeofday): Check it.
9826         Reported by Michael Goffioul.
9827
9828 2010-02-21  Bruno Haible  <bruno@clisp.org>
9829
9830         * lib/stdio.in.h (obstack_printf): Fix typo.
9831
9832 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9833
9834         vc-list-files: use bzr ls's -R option
9835         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9836         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9837
9838 2010-02-21  Jim Meyering  <meyering@redhat.com>
9839
9840         init.sh: fix EXEEXT shims to work also for names like test-prog
9841         * tests/init.sh: Re-exec a better shell, when needed.
9842         If the current shell lacks support for posix $(...), an init.sh-using
9843         test will now try to find a shell that supports that.  If EXEEXT is
9844         nonempty, we also require support for hyphen-in-alias-name and shell
9845         substitutions like ${var#glob}.  Failure to find such a shell results
9846         in a skipped test.
9847
9848 2010-02-21  Bruno Haible  <bruno@clisp.org>
9849
9850         Really work around around "broken pipe" error message from bash 3.2.
9851         * gnulib-tool (func_reset_sigpipe): Remove function.
9852         (echo): In bash 3.2, define to a function that uses printf.
9853         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9854
9855 2010-02-20  Bruno Haible  <bruno@clisp.org>
9856
9857         Restore support for automake 1.9.6 with autoconf 2.61.
9858         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9859         Reported by James Youngman <jay@gnu.org>.
9860
9861 2010-02-20  Bruno Haible  <bruno@clisp.org>
9862
9863         Improve *printf warning condition.
9864         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9865         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9866         and the function is overridden due to SIGPIPE emulation.
9867
9868 2010-02-20  Bruno Haible  <bruno@clisp.org>
9869
9870         * lib/stdio.in.h: Tweak comments.
9871
9872 2010-02-19  Bruno Haible  <bruno@clisp.org>
9873
9874         Make it easier to find modules. New gnulib-tool option '--find'.
9875         * gnulib-tool: New option --find.
9876         (func_usage): Document it.
9877         (func_sanitize_modulelist): New function, extracted from
9878         func_all_modules.
9879         (func_all_modules): Invoke it.
9880         * doc/gnulib-tool.texi (Which modules?): New node.
9881
9882 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9883
9884         * lib/sys_select.in.h: Provide select replacement even if
9885         sys/select.h exists on a system, for Interix.
9886
9887 2010-02-18  Jim Meyering  <meyering@redhat.com>
9888
9889         init.sh: don't use $(...) just yet
9890         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9891         to accommodate e.g., Solaris' /bin/sh.
9892
9893 2010-02-17  Bruno Haible  <bruno@clisp.org>
9894
9895         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9896         Reported by Ludovic Courtès <ludo@gnu.org>.
9897
9898 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9899
9900         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9901         linking with -lintl.
9902
9903 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9904
9905         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9906         if not provided by the system's netdb.h.  Reported by
9907         ludo@gnu.org (Ludovic Courtès).
9908
9909 2010-02-15  Jim Meyering  <meyering@redhat.com>
9910
9911         init.sh: improve portability and efficiency
9912         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9913         "dummy" in a for loop.
9914         Use '!', not '^' to select the complement of a character set used
9915         in a "case" statement.
9916         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9917         Suggestions from Eric Blake.
9918
9919         init.sh: automatically accommodate programs with the .exe suffix
9920         Automatically arrange for an invocation of "prog" to execute the
9921         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9922         may use the simpler "prog", yet still work when built on a system
9923         that requires specifying the added suffix.
9924         Do this by constructing a function named "prog" that invokes
9925         "prog.exe" for each .exe file in selected directories.
9926         * tests/init.sh (find_exe_basenames_): New function.
9927         (create_exe_shim_functions_): New function.
9928         (path_prepend_): Use it.
9929
9930         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9931         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9932         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9933
9934 2010-02-14  Jim Meyering  <meyering@redhat.com>
9935
9936         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9937         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9938         (sc_prohibit_hash_pjw_without_use): New rule.
9939
9940         maint.mk: allow the default upload destination dir to be overridden
9941         * top/maint.mk (upload_dest_dir_): Define with a default that
9942         preserves the status quo.
9943         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9944         Reported by Peter Simons.
9945
9946         maint.mk: prohibit inclusion of "hash.h" without_use
9947         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9948
9949 2010-02-10  Jim Meyering  <meyering@redhat.com>
9950
9951         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9952         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9953
9954 2010-02-09  Eric Blake  <ebb9@byu.net>
9955         and Bruno Haible  <bruno@clisp.org>
9956
9957         obstack-printf-posix: ensure declaration
9958         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9959         extracted from gl_FUNC_OBSTACK_PRINTF.
9960         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9961         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9962         Likewise.
9963         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9964         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9965         0.
9966
9967 2010-02-08  Bruno Haible  <bruno@clisp.org>
9968
9969         gnulib-tool: Fix typo in 2010-02-07 commit.
9970         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9971         Reported by Eric Blake.
9972
9973 2010-02-07  Bruno Haible  <bruno@clisp.org>
9974
9975         gnulib-tool: Fix up caching patches.
9976         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
9977         option --no-cache. Use associative arrays when supported by the shell.
9978         (sed_comments): New variable.
9979         (modcache): Renamed from do_cache.
9980         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
9981         abbreviate unnecessarily.
9982         (have_associative): New variable.
9983         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9984         way also for ksh and zsh.
9985         (func_init_sed_convert_to_cache_statements): New function, extracted
9986         from func_cache_lookup_module. Add support for associative arrays.
9987         Don't set the c_MODULE_cached variable here. Ignore all lines before
9988         the first field header. Remove only the final newline, not all trailing
9989         newlines. Support empty fields correctly. Limit the use of 'eval' to
9990         assignments.
9991         (func_get_description, func_get_status, func_get_notice,
9992         func_get_applicability, func_get_filelist, func_get_dependencies,
9993         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9994         func_get_automake_snippet, func_get_include_directive,
9995         func_get_link_directive, func_get_license, func_get_maintainer):
9996         Update documentation. List the unoptimized code first. Add support for
9997         associative arrays. Limit the use of 'eval' to assignments.
9998         (func_get_applicability): Undo stylistic pessimisations.
9999         (func_get_automake_snippet, func_get_include_directive): Reduce code
10000         duplication.
10001         (func_modules_transitive_closure, func_modules_add_dummy,
10002         func_modules_notice, func_modules_to_filelist, func_add_file,
10003         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
10004         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
10005         func_create_testdir, func_create_megatestdir): Update documentation.
10006
10007 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10008
10009         * gnulib-tool (func_cache_lookup_module): Store the module name
10010         belonging to the cache variable; error out if two different
10011         module names map to the same cache variable name.
10012
10013 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10014
10015         gnulib-tool: Make caching optional.
10016         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
10017         Update matching short versions of --no-changelog.
10018         (func_usage): Update.
10019         (sed_extract_cache_prog): Renamed from ...
10020         (sed_extract_prog): ... this; revert to old extraction script.
10021         (func_get_description, func_get_status)
10022         (func_get_notice, func_get_applicability, func_get_filelist)
10023         (func_get_dependencies, func_get_autoconf_early_snippet)
10024         (func_get_autoconf_snippet, func_get_automake_snippet)
10025         (func_get_include_directive, func_get_link_directive)
10026         (func_get_license, func_get_maintainer): If $do_cache is false,
10027         use old, non-caching extraction scripts.
10028         Suggestion by Bruno Haible.
10029
10030 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10031
10032         gnulib-tool: cache module metainformation.
10033         * gnulib-tool (sed_extract_prog): Match newline before each
10034         header, and rewrite header to a shell variable suffix.
10035         (func_cache_var, func_cache_lookup_module): New functions,
10036         to turn a module name into a cache variable prefix, and to
10037         look up and cache module metainformation.
10038         (func_get_description, func_get_status)
10039         (func_get_notice, func_get_applicability, func_get_filelist)
10040         (func_get_dependencies, func_get_autoconf_early_snippet)
10041         (func_get_autoconf_snippet, func_get_automake_snippet)
10042         (func_get_include_directive, func_get_link_directive)
10043         (func_get_license, func_get_maintainer): Use
10044         func_cache_lookup_module.
10045
10046 2010-02-07  Bruno Haible  <bruno@clisp.org>
10047
10048         fnctl: Fix missing dependency.
10049         * modules/fcntl (Depends-on): Add getdtablesize.
10050         Reported by John W. Eaton <jwe@gnu.org>.
10051
10052 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10053
10054         Argp: fix recognition of short alias options.
10055
10056         * lib/argp-parse.c (convert_options): Fix improper use of
10057         `|' between character values.
10058         * tests/test-argp.c (group1_option): New alias option
10059         --read (-r).
10060         (group1_parser): Special handling for 'r'.
10061         (test15): New test case.
10062         (test_fun): Add test15.
10063         * tests/test-argp-2.sh: Update expected --help and --usage
10064         outputs.
10065
10066 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10067
10068         * tests/test-argp.c: Fix indentation.
10069
10070 2010-02-04  Eric Blake  <ebb9@byu.net>
10071
10072         gettimeofday: expose type of second argument
10073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
10074         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
10075         * tests/test-gettimeofday.c: Use it to silence warning.
10076         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10077         the issue.
10078
10079 2010-02-03  Jim Meyering  <meyering@redhat.com>
10080
10081         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10082         * lib/regcomp.c (TYPE_SIGNED): Define.
10083         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10084
10085         regcomp.c: avoid a new -Wshadow warning
10086         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10087
10088 2010-02-01  Jim Meyering  <meyering@redhat.com>
10089
10090         removing useless parentheses in cpp #define directives
10091         For motivation, see commit c0221df4, "define STREQ(a,b)
10092         consistently, removing useless parentheses"
10093         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10094         * lib/mountlist.c (MNT_IGNORE): Likewise.
10095         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10096
10097 2010-02-01  Eric Blake  <ebb9@byu.net>
10098
10099         sys_time: use link-warning
10100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10101         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10102         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10103         * modules/sys_time (Depends-on): Add warn-on-use.
10104         (Makefile.am): Always build replacement.
10105         (configure.ac): Update substitutions.
10106         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10107         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10108         bother with SYS_TIME_H.
10109         * modules/gettimeofday (configure.ac): Declare indicator.
10110         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10111         in use.
10112
10113         closein-tests: silence compiler warning
10114         * tests/test-closein.c (main): Ignore fread result.
10115         * modules/closein-tests (Depends-on): Add ignore-value.
10116
10117         tests: silence warning about system return
10118         * tests/test-areadlink-with-size.c (main): Ignore system result.
10119         * tests/test-areadlink.c (main): Likewise.
10120         * tests/test-areadlinkat-with-size.c (main): Likewise.
10121         * tests/test-areadlinkat.c (main): Likewise.
10122         * tests/test-canonicalize-lgpl.c (main): Likewise.
10123         * tests/test-canonicalize.c (main): Likewise.
10124         * tests/test-chown.c (main): Likewise.
10125         * tests/test-fchownat.c (main): Likewise.
10126         * tests/test-fdutimensat.c (main): Likewise.
10127         * tests/test-fstatat.c (main): Likewise.
10128         * tests/test-futimens.c (main): Likewise.
10129         * tests/test-lchown.c (main): Likewise.
10130         * tests/test-link.c (main): Likewise.
10131         * tests/test-linkat.c (main): Likewise.
10132         * tests/test-lstat.c (main): Likewise.
10133         * tests/test-mkdir.c (main): Likewise.
10134         * tests/test-mkdirat.c (main): Likewise.
10135         * tests/test-mkfifo.c (main): Likewise.
10136         * tests/test-mkfifoat.c (main): Likewise.
10137         * tests/test-mknod.c (main): Likewise.
10138         * tests/test-readlink.c (main): Likewise.
10139         * tests/test-remove.c (main): Likewise.
10140         * tests/test-rename.c (main): Likewise.
10141         * tests/test-renameat.c (main): Likewise.
10142         * tests/test-rmdir.c (main): Likewise.
10143         * tests/test-symlink.c (main): Likewise.
10144         * tests/test-symlinkat.c (main): Likewise.
10145         * tests/test-unlink.c (main): Likewise.
10146         * tests/test-unlinkat.c (main): Likewise.
10147         * tests/test-utimens.c (main): Likewise.
10148         * tests/test-utimensat.c (main): Likewise.
10149         * modules/areadlink-tests (Depends-on): Add ignore-value.
10150         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10151         * modules/areadlinkat-tests (Depends-on): Likewise.
10152         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10153         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10154         * modules/canonicalize-tests (Depends-on): Likewise.
10155         * modules/chown-tests (Depends-on): Likewise.
10156         * modules/fdutimensat-tests (Depends-on): Likewise.
10157         * modules/futimens-tests (Depends-on): Likewise.
10158         * modules/lchown-tests (Depends-on): Likewise.
10159         * modules/link-tests (Depends-on): Likewise.
10160         * modules/linkat-tests (Depends-on): Likewise.
10161         * modules/lstat-tests (Depends-on): Likewise.
10162         * modules/mkdir-tests (Depends-on): Likewise.
10163         * modules/mkfifo-tests (Depends-on): Likewise.
10164         * modules/mkfifoat-tests (Depends-on): Likewise.
10165         * modules/mknod-tests (Depends-on): Likewise.
10166         * modules/openat-tests (Depends-on): Likewise.
10167         * modules/readlink-tests (Depends-on): Likewise.
10168         * modules/remove-tests (Depends-on): Likewise.
10169         * modules/rename-tests (Depends-on): Likewise.
10170         * modules/renameat-tests (Depends-on): Likewise.
10171         * modules/rmdir-tests (Depends-on): Likewise.
10172         * modules/symlink-tests (Depends-on): Likewise.
10173         * modules/symlinkat-tests (Depends-on): Likewise.
10174         * modules/unlink-tests (Depends-on): Likewise.
10175         * modules/utimens-tests (Depends-on): Likewise.
10176         * modules/utimensat-tests (Depends-on): Likewise.
10177
10178 2010-01-31  Bruno Haible  <bruno@clisp.org>
10179
10180         Perform the same test for many <math.h> functions.
10181         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10182         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10183         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10184         of gl_MATHFUNC.
10185         * modules/acos (configure.ac): Likewise.
10186         * modules/asin (configure.ac): Likewise.
10187         * modules/atan (configure.ac): Likewise.
10188         * modules/atan2 (configure.ac): Likewise.
10189         * modules/cbrt (configure.ac): Likewise.
10190         * modules/copysign (configure.ac): Likewise.
10191         * modules/cos (configure.ac): Likewise.
10192         * modules/cosh (configure.ac): Likewise.
10193         * modules/erf (configure.ac): Likewise.
10194         * modules/erfc (configure.ac): Likewise.
10195         * modules/exp (configure.ac): Likewise.
10196         * modules/fmod (configure.ac): Likewise.
10197         * modules/hypot (configure.ac): Likewise.
10198         * modules/j0 (configure.ac): Likewise.
10199         * modules/j1 (configure.ac): Likewise.
10200         * modules/jn (configure.ac): Likewise.
10201         * modules/lgamma (configure.ac): Likewise.
10202         * modules/log (configure.ac): Likewise.
10203         * modules/log10 (configure.ac): Likewise.
10204         * modules/log1p (configure.ac): Likewise.
10205         * modules/pow (configure.ac): Likewise.
10206         * modules/remainder (configure.ac): Likewise.
10207         * modules/sin (configure.ac): Likewise.
10208         * modules/sinh (configure.ac): Likewise.
10209         * modules/tan (configure.ac): Likewise.
10210         * modules/tanh (configure.ac): Likewise.
10211         * modules/y0 (configure.ac): Likewise.
10212         * modules/y1 (configure.ac): Likewise.
10213         * modules/yn (configure.ac): Likewise.
10214         Suggested by Paolo Bonzini.
10215
10216 2010-01-31  Bruno Haible  <bruno@clisp.org>
10217
10218         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10219
10220 2010-01-31  Bruno Haible  <bruno@clisp.org>
10221
10222         Work around getdelim() bug on FreeBSD 8.0.
10223         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10224         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10225         not work.
10226         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10227         is 1.
10228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10229         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10230         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10231         a non-zero size.
10232         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10233
10234 2010-01-31  Bruno Haible  <bruno@clisp.org>
10235
10236         Work around getline() bug on FreeBSD 8.0.
10237         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10238         and a non-zero size.
10239         * tests/test-getline.c (main): Likewise.
10240         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10241         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10242
10243 2010-01-28  Eric Blake  <ebb9@byu.net>
10244
10245         regex: fix build failure
10246         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10247         platforms.
10248
10249 2010-01-28  Jim Meyering  <meyering@redhat.com>
10250
10251         regex: do not ignore memory allocation failure
10252         * lib/regex_internal.c (create_cd_newstate): Detect
10253         re_node_set_init_copy failure.   Extracted from glibc commit
10254         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10255
10256         regex: sync more white-space changes from libc
10257         * lib/regex_internal.c: White-space only changes.
10258         * lib/regexec.c: Likewise.
10259
10260         regex: add many uses of __attribute_warn_unused_result__
10261         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10262         * lib/regexec.c: Likewise.
10263         Extracted from a messy glibc commit.
10264
10265         regcomp.c: spelling and merge-artifact from glibc
10266         * lib/regcomp.c: Merge remainder of glibc's
10267         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10268
10269         regcomp.c: sync white-space changes from glibc
10270         * lib/regcomp.c: Merge to accommodate white space
10271         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10272
10273         regcomp.c: do not ignore internal return values
10274         * lib/regcomp.c: Do not ignore internal return values.
10275         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10276         but without its white-space changes and spelling fixes.
10277
10278         regex_internal.h: define __attribute_warn_unused_result__
10279         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10280
10281         maint: add a syntax-check rule to check for vulnerable Makefile.in
10282         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10283
10284 2010-01-27  Jim Meyering  <meyering@redhat.com>
10285
10286         ncftpput-ftp: clean up spaces
10287         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10288         Remove trailing blanks.
10289
10290 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10291
10292         * build-aux/git-version-gen: Fix copyright statement.
10293         * build-aux/gnupload: Likewise.
10294         * tests/test-arcfour.c: Likewise.
10295         * tests/test-arctwo.c: Likewise.
10296         * tests/test-count-one-bits.c: Likewise.
10297         * tests/test-crc.c: Likewise.
10298         * tests/test-des.c: Likewise.
10299         * tests/test-gc-arcfour.c: Likewise.
10300         * tests/test-gc-arctwo.c: Likewise.
10301         * tests/test-gc-des.c: Likewise.
10302         * tests/test-gc-hmac-md5.c: Likewise.
10303         * tests/test-gc-hmac-sha1.c: Likewise.
10304         * tests/test-gc-md2.c: Likewise.
10305         * tests/test-gc-md4.c: Likewise.
10306         * tests/test-gc-md5.c: Likewise.
10307         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10308         * tests/test-gc-rijndael.c: Likewise.
10309         * tests/test-gc-sha1.c: Likewise.
10310         * tests/test-gc.c: Likewise.
10311         * tests/test-gethostname.c: Likewise.
10312         * tests/test-gettimeofday.c: Likewise.
10313         * tests/test-hash.c: Likewise.
10314         * tests/test-hmac-md5.c: Likewise.
10315         * tests/test-hmac-sha1.c: Likewise.
10316         * tests/test-md2.c: Likewise.
10317         * tests/test-md4.c: Likewise.
10318         * tests/test-md5.c: Likewise.
10319         * tests/test-memchr.c: Likewise.
10320         * tests/test-memchr2.c: Likewise.
10321         * tests/test-memcmp.c: Likewise.
10322         * tests/test-memmem.c: Likewise.
10323         * tests/test-memrchr.c: Likewise.
10324         * tests/test-rawmemchr.c: Likewise.
10325         * tests/test-read-file.c: Likewise.
10326         * tests/test-rijndael.c: Likewise.
10327         * tests/test-sockets.c: Likewise.
10328         * tests/test-strchrnul.c: Likewise.
10329         * tests/test-strstr.c: Likewise.
10330         * tests/test-strtod.c: Likewise.
10331         * build-aux/ncftpput-ftp: Likewise.
10332
10333 2010-01-26  Eric Blake  <ebb9@byu.net>
10334
10335         ignore-value: update recommended header name
10336         * modules/ignore-value (Include): Only use <> for headers that
10337         exist in glibc.
10338
10339 2010-01-26  Jim Meyering  <meyering@redhat.com>
10340
10341         test-userspec.c: avoid compiler warnings
10342         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10343         and "initialization discards qualifiers..." warnings.
10344         Put the first "uid" in its own scope, and make char* members "const".
10345
10346 2010-01-25  Bruno Haible  <bruno@clisp.org>
10347
10348         gnulib-tool: Make warning diagnostics consistent.
10349         * gnulib-tool (func_warning): New function.
10350         Use it everywhere where gnulib-tool produces output to stderr and it is
10351         not a fatal error.
10352
10353 2010-01-25  Bruno Haible  <bruno@clisp.org>
10354
10355         Fix test dependencies.
10356         * modules/xstrtol-tests (Depends-on): Add inttypes.
10357         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10358
10359 2010-01-25 Pádraig Brady <P@draigBrady.com>
10360
10361         syntax-check: detect incorrect boolean macro values in config.h
10362         * modules/maintainer-makefile (configure.ac): Parameterize the location
10363         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10364         The logic is from Eric Blake and the location indicated by Jim Meyering.
10365         Note the more natural CONFIG_HEADER name is prohibited by automake
10366         for backwards compatibility reasons.
10367         * top/maint.mk (sc_Wundef_boolean): New rule.
10368
10369 2010-01-25  Jim Meyering  <meyering@redhat.com>
10370
10371         bootstrap: detect MacOS 10.6's shasum, too
10372         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10373         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10374
10375 2010-01-23  Jim Meyering  <meyering@redhat.com>
10376
10377         xstrtoll: new module
10378         * modules/xstrtoll: New file.
10379         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10380         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10381         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10382         ./configure fails if you use this module and lack "long long".
10383         * modules/xstrtoll-tests: New module.
10384         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10385         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10386         new init.sh-based test framework.
10387
10388 2010-01-24  Bruno Haible  <bruno@clisp.org>
10389
10390         Tests for module 'yn'.
10391         * modules/yn-tests: New file.
10392         * tests/test-yn.c: New file.
10393
10394         Tests for module 'y1'.
10395         * modules/y1-tests: New file.
10396         * tests/test-y1.c: New file.
10397
10398         Tests for module 'y0'.
10399         * modules/y0-tests: New file.
10400         * tests/test-y0.c: New file.
10401
10402         Tests for module 'tanh'.
10403         * modules/tanh-tests: New file.
10404         * tests/test-tanh.c: New file.
10405
10406         Tests for module 'tan'.
10407         * modules/tan-tests: New file.
10408         * tests/test-tan.c: New file.
10409
10410         Tests for module 'sqrt'.
10411         * modules/sqrt-tests: New file.
10412         * tests/test-sqrt.c: New file.
10413
10414         Tests for module 'sinh'.
10415         * modules/sinh-tests: New file.
10416         * tests/test-sinh.c: New file.
10417
10418         Tests for module 'sin'.
10419         * modules/sin-tests: New file.
10420         * tests/test-sin.c: New file.
10421
10422         Tests for module 'rint'.
10423         * modules/rint-tests: New file.
10424         * tests/test-rint.c: New file.
10425
10426         Tests for module 'remainder'.
10427         * modules/remainder-tests: New file.
10428         * tests/test-remainder.c: New file.
10429
10430         Tests for module 'pow'.
10431         * modules/pow-tests: New file.
10432         * tests/test-pow.c: New file.
10433
10434         Tests for module 'nextafter'.
10435         * modules/nextafter-tests: New file.
10436         * tests/test-nextafter.c: New file.
10437
10438         Tests for module 'modf'.
10439         * modules/modf-tests: New file.
10440         * tests/test-modf.c: New file.
10441
10442         Tests for module 'logb'.
10443         * modules/logb-tests: New file.
10444         * tests/test-logb.c: New file.
10445
10446         Tests for module 'log1p'.
10447         * modules/log1p-tests: New file.
10448         * tests/test-log1p.c: New file.
10449
10450         Tests for module 'log10'.
10451         * modules/log10-tests: New file.
10452         * tests/test-log10.c: New file.
10453
10454         Tests for module 'log'.
10455         * modules/log-tests: New file.
10456         * tests/test-log.c: New file.
10457
10458         Tests for module 'lgamma'.
10459         * modules/lgamma-tests: New file.
10460         * tests/test-lgamma.c: New file.
10461
10462         Tests for module 'ldexp'.
10463         * modules/ldexp-tests: New file.
10464         * tests/test-ldexp.c: New file.
10465
10466         Tests for module 'jn'.
10467         * modules/jn-tests: New file.
10468         * tests/test-jn.c: New file.
10469
10470         Tests for module 'j1'.
10471         * modules/j1-tests: New file.
10472         * tests/test-j1.c: New file.
10473
10474         Tests for module 'j0'.
10475         * modules/j0-tests: New file.
10476         * tests/test-j0.c: New file.
10477
10478         Tests for module 'hypot'.
10479         * modules/hypot-tests: New file.
10480         * tests/test-hypot.c: New file.
10481
10482         Tests for module 'fmod'.
10483         * modules/fmod-tests: New file.
10484         * tests/test-fmod.c: New file.
10485
10486         Tests for module 'fabs'.
10487         * modules/fabs-tests: New file.
10488         * tests/test-fabs.c: New file.
10489
10490         Tests for module 'exp'.
10491         * modules/exp-tests: New file.
10492         * tests/test-exp.c: New file.
10493
10494         Tests for module 'erfc'.
10495         * modules/erfc-tests: New file.
10496         * tests/test-erfc.c: New file.
10497
10498         Tests for module 'erf'.
10499         * modules/erf-tests: New file.
10500         * tests/test-erf.c: New file.
10501
10502         Tests for module 'cosh'.
10503         * modules/cosh-tests: New file.
10504         * tests/test-cosh.c: New file.
10505
10506         Tests for module 'cos'.
10507         * modules/cos-tests: New file.
10508         * tests/test-cos.c: New file.
10509
10510         Tests for module 'copysign'.
10511         * modules/copysign-tests: New file.
10512         * tests/test-copysign.c: New file.
10513
10514         Tests for module 'cbrt'.
10515         * modules/cbrt-tests: New file.
10516         * tests/test-cbrt.c: New file.
10517
10518         Tests for module 'atan2'.
10519         * modules/atan2-tests: New file.
10520         * tests/test-atan2.c: New file.
10521
10522         Tests for module 'atan'.
10523         * modules/atan-tests: New file.
10524         * tests/test-atan.c: New file.
10525
10526         Tests for module 'asin'.
10527         * modules/asin-tests: New file.
10528         * tests/test-asin.c: New file.
10529
10530         Tests for module 'acos'.
10531         * modules/acos-tests: New file.
10532         * tests/test-acos.c: New file.
10533
10534 2010-01-24  Bruno Haible  <bruno@clisp.org>
10535
10536         Fix tests for common <math.h> functions.
10537         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10538         code snippet that references the function pointer, rather than merely
10539         calling the function. Substitute the FUNC_LIBM variable.
10540         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10541         * modules/acos (configure.ac): Likewise.
10542         * modules/asin (configure.ac): Likewise.
10543         * modules/atan (configure.ac): Likewise.
10544         * modules/atan2 (configure.ac): Likewise.
10545         * modules/cbrt (configure.ac): Likewise.
10546         * modules/copysign (configure.ac): Likewise.
10547         * modules/cos (configure.ac): Likewise.
10548         * modules/cosh (configure.ac): Likewise.
10549         * modules/erf (configure.ac): Likewise.
10550         * modules/erfc (configure.ac): Likewise.
10551         * modules/exp (configure.ac): Likewise.
10552         * modules/fabs (configure.ac): Likewise.
10553         * modules/fmod (configure.ac): Likewise.
10554         * modules/hypot (configure.ac): Likewise.
10555         * modules/j0 (configure.ac): Likewise.
10556         * modules/j1 (configure.ac): Likewise.
10557         * modules/jn (configure.ac): Likewise.
10558         * modules/ldexp (configure.ac): Likewise.
10559         * modules/lgamma (configure.ac): Likewise.
10560         * modules/log (configure.ac): Likewise.
10561         * modules/log10 (configure.ac): Likewise.
10562         * modules/log1p (configure.ac): Likewise.
10563         * modules/logb (configure.ac): Likewise.
10564         * modules/modf (configure.ac): Likewise.
10565         * modules/nextafter (configure.ac): Likewise.
10566         * modules/pow (configure.ac): Likewise.
10567         * modules/remainder (configure.ac): Likewise.
10568         * modules/rint (configure.ac): Likewise.
10569         * modules/sin (configure.ac): Likewise.
10570         * modules/sinh (configure.ac): Likewise.
10571         * modules/tan (configure.ac): Likewise.
10572         * modules/tanh (configure.ac): Likewise.
10573         * modules/y0 (configure.ac): Likewise.
10574         * modules/y1 (configure.ac): Likewise.
10575         * modules/yn (configure.ac): Likewise.
10576
10577 2010-01-24  Bruno Haible  <bruno@clisp.org>
10578
10579         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10580         * tests/test-acosl.c (x): New variable.
10581         (main): Store argument in x and fetch it from x.
10582         * tests/test-asinl.c (x): New variable.
10583         (main): Store argument in x and fetch it from x.
10584         * tests/test-atanl.c (x): New variable.
10585         (main): Store argument in x and fetch it from x.
10586         * tests/test-cosl.c (x): New variable.
10587         (main): Store argument in x and fetch it from x.
10588         * tests/test-expl.c (x): New variable.
10589         (main): Store argument in x and fetch it from x.
10590         * tests/test-logl.c (x): New variable.
10591         (main): Store argument in x and fetch it from x.
10592         * tests/test-sinl.c (x): New variable.
10593         (main): Store argument in x and fetch it from x.
10594         * tests/test-sqrtl.c (x): New variable.
10595         (main): Store argument in x and fetch it from x.
10596         * tests/test-tanl.c (x): New variable.
10597         (main): Store argument in x and fetch it from x.
10598
10599 2010-01-24  Bruno Haible  <bruno@clisp.org>
10600
10601         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10602         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10603         assignments to the initial TESTS_ENVIRONMENT.
10604         * doc/gnulib.texi (Unit test modules): Document it.
10605         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10606         TESTS_ENVIRONMENT.
10607         * modules/btowc-tests (Makefile.am): Likewise.
10608         * modules/c-stack-tests (Makefile.am): Likewise.
10609         * modules/c-strcase-tests (Makefile.am): Likewise.
10610         * modules/copy-file-tests (Makefile.am): Likewise.
10611         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10612         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10613         * modules/mbrtowc-tests (Makefile.am): Likewise.
10614         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10615         * modules/mbscasestr-tests (Makefile.am): Likewise.
10616         * modules/mbschr-tests (Makefile.am): Likewise.
10617         * modules/mbscspn-tests (Makefile.am): Likewise.
10618         * modules/mbsinit-tests (Makefile.am): Likewise.
10619         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10620         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10621         * modules/mbspbrk-tests (Makefile.am): Likewise.
10622         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10623         * modules/mbsrchr-tests (Makefile.am): Likewise.
10624         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10625         * modules/mbsspn-tests (Makefile.am): Likewise.
10626         * modules/mbsstr-tests (Makefile.am): Likewise.
10627         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10628         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10629         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10630         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10631         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10632         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10633         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10634         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10635         * modules/wcrtomb-tests (Makefile.am): Likewise.
10636         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10637         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10638         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10639         assignments from TESTS_ENVIRONMENT.
10640         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10641         augmentation.
10642         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10643         * modules/atexit-tests (Makefile.am): Likewise.
10644         * modules/binary-io-tests (Makefile.am): Likewise.
10645         * modules/closein-tests (Makefile.am): Likewise.
10646         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10647         * modules/exclude-tests (Makefile.am): Likewise.
10648         * modules/fflush-tests (Makefile.am): Likewise.
10649         * modules/fpending-tests (Makefile.am): Likewise.
10650         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10651         * modules/freadahead-tests (Makefile.am): Likewise.
10652         * modules/freadptr-tests (Makefile.am): Likewise.
10653         * modules/freadseek-tests (Makefile.am): Likewise.
10654         * modules/fseek-tests (Makefile.am): Likewise.
10655         * modules/fseeko-tests (Makefile.am): Likewise.
10656         * modules/ftell-tests (Makefile.am): Likewise.
10657         * modules/ftello-tests (Makefile.am): Likewise.
10658         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10659         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10660         * modules/lseek-tests (Makefile.am): Likewise.
10661         * modules/parse-duration-tests (Makefile.am): Likewise.
10662         * modules/perror-tests (Makefile.am): Likewise.
10663         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10664         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10665         * modules/pipe-tests (Makefile.am): Likewise.
10666         * modules/pread-tests (Makefile.am): Likewise.
10667         * modules/printf-posix-tests (Makefile.am): Likewise.
10668         * modules/select-tests (Makefile.am): Likewise.
10669         * modules/sigpipe-tests (Makefile.am): Likewise.
10670         * modules/tsearch-tests (Makefile.am): Likewise.
10671         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10672         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10673         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10674         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10675         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10676         * modules/version-etc-tests (Makefile.am): Likewise.
10677         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10678         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10679         * modules/xalloc-die-tests (Makefile.am): Likewise.
10680         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10681         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10682         * modules/xstrtol-tests (Makefile.am): Likewise.
10683         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10684         * modules/yesno-tests (Makefile.am): Likewise.
10685         Suggested by Jim Meyering.
10686
10687 2010-01-24  Bruno Haible  <bruno@clisp.org>
10688
10689         More documentation.
10690         * doc/gnulib.texi (Writing modules): New chapter.
10691         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10692         the new chapter.
10693
10694 2010-01-24  Jim Meyering  <meyering@redhat.com>
10695
10696         maint.mk: do not prepend "./" after filtering
10697         * top/maint.mk (_prepend_srcdir_prefix): New variable
10698         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10699         "./" when $(srcdir) is ".".
10700
10701         define STREQ(a,b) consistently, removing useless parentheses
10702         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10703         since the only risk is that "a" or "b" contains an unparenthesized
10704         comma, but if either did that, STREQ would have 3 or more arguments.
10705         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10706         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10707         * lib/hash-triple.c (STREQ): Likewise.
10708         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10709         * lib/getugroups.c (STREQ): Likewise.
10710
10711 2010-01-23  Jim Meyering  <meyering@redhat.com>
10712
10713         maint.mk: fix syntax-check in a non-srcdir build directory
10714         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10715         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10716
10717 2010-01-22  Jim Meyering  <meyering@redhat.com>
10718
10719         userspec: add unit tests
10720         * tests/test-userspec.c: New file.
10721         * modules/userspec-tests: Likewise.
10722
10723 2010-01-21  Jim Meyering  <meyering@redhat.com>
10724
10725         maint.mk: handle source file names containing "." robustly
10726         * top/maint.mk (_dot_escaped_srcdir): Define.
10727         (VC_LIST): Use it in LHS of sed substitution.
10728
10729 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10730
10731         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10732         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10733         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10734         from a non-srcdir build.
10735
10736 2010-01-20  Eric Blake  <ebb9@byu.net>
10737
10738         warn-on-use: use instead of link-warning
10739         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10740         * modules/unistd (Depends-on, Makefile.am): Likewise.
10741         * modules/arpa_inet (Depends-on): Replace link-warning with
10742         warn-on-use.
10743         (Makefile.am): Update rules accordingly.
10744         * modules/ctype (Depends-on, Makefile.am): Likewise.
10745         * modules/dirent (Depends-on, Makefile.am): Likewise.
10746         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10747         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10748         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10749         * modules/locale (Depends-on, Makefile.am): Likewise.
10750         * modules/math (Depends-on, Makefile.am): Likewise.
10751         * modules/search (Depends-on, Makefile.am): Likewise.
10752         * modules/signal (Depends-on, Makefile.am): Likewise.
10753         * modules/spawn (Depends-on, Makefile.am): Likewise.
10754         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10755         * modules/string (Depends-on, Makefile.am): Likewise.
10756         * modules/strings (Depends-on, Makefile.am): Likewise.
10757         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10758         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10759         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10760         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10761         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10762         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10763         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10764         * modules/wchar (Depends-on, Makefile.am): Likewise.
10765         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10766         should be poisoned.
10767         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10768         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10769         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10770         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10771         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10772         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10773         * m4/math_h.m4 (gl_MATH_H): Likewise.
10774         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10775         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10776         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10777         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10778         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10779         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10780         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10781         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10782         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10786         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10787         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10788         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10789         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10790         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10791         GL_LINK_WARNING.
10792         * lib/ctype.in.h: Likewise.
10793         * lib/dirent.in.h: Likewise.
10794         * lib/fcntl.in.h: Likewise.
10795         * lib/inttypes.in.h: Likewise.
10796         * lib/langinfo.in.h: Likewise.
10797         * lib/locale.in.h: Likewise.
10798         * lib/math.in.h: Likewise.
10799         * lib/search.in.h: Likewise.
10800         * lib/signal.in.h: Likewise.
10801         * lib/spawn.in.h: Likewise.
10802         * lib/stdio.in.h: Likewise.
10803         * lib/stdlib.in.h: Likewise.
10804         * lib/string.in.h: Likewise.
10805         * lib/strings.in.h: Likewise.
10806         * lib/sys_file.in.h: Likewise.
10807         * lib/sys_ioctl.in.h: Likewise.
10808         * lib/sys_select.in.h: Likewise.
10809         * lib/sys_socket.in.h: Likewise.
10810         * lib/sys_stat.in.h: Likewise.
10811         * lib/sys_times.in.h: Likewise.
10812         * lib/sys_utsname.in.h: Likewise.
10813         * lib/unistd.in.h: Likewise.
10814         * lib/wchar.in.h: Likewise.
10815
10816 2010-01-20  Bruno Haible  <bruno@clisp.org>
10817
10818         Avoid duplicate -lm.
10819         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10820         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10822         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10823         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10824         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10825         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10826         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10827         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10828         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10829         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10830         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10831         Reported by Paolo Bonzini.
10832
10833 2010-01-19  Bruno Haible  <bruno@clisp.org>
10834
10835         langinfo, nl_langinfo: Relicense under LGPLv2+.
10836         * modules/langinfo (License): Change to LGPLv2+.
10837         * modules/nl_langinfo (License): Likewise.
10838         Patch by David Lutterkort <lutter@redhat.com>.
10839
10840 2010-01-19  Bruno Haible  <bruno@clisp.org>
10841
10842         Avoid compilation error with cc on OSF/1 5.1.
10843         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10844         statement, not before.
10845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10846
10847 2010-01-18  Bruno Haible  <bruno@clisp.org>
10848
10849         Avoid a link error due to the __printf__ symbol.
10850         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10851         and 2.6.x.
10852         (__format__, __printf__): Remove definitions.
10853         * lib/argp-fmtstream.h: Likewise.
10854         * lib/argp.h: Likewise.
10855         * lib/error.h: Likewise.
10856         * lib/vasnprintf.h: Likewise.
10857         * lib/xprintf.h: Likewise.
10858         * lib/xvasprintf.h: Likewise.
10859         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10860
10861 2010-01-18  Bruno Haible  <bruno@clisp.org>
10862
10863         Tests for module 'tanl'.
10864         * modules/tanl-tests: New file.
10865         * tests/test-tanl.c: New file.
10866
10867         Tests for module 'sqrtl'.
10868         * modules/sqrtl-tests: New file.
10869         * tests/test-sqrtl.c: New file.
10870
10871         Tests for module 'sinl'.
10872         * modules/sinl-tests: New file.
10873         * tests/test-sinl.c: New file.
10874
10875         Tests for module 'logl'.
10876         * modules/logl-tests: New file.
10877         * tests/test-logl.c: New file.
10878
10879         Tests for module 'expl'.
10880         * modules/expl-tests: New file.
10881         * tests/test-expl.c: New file.
10882
10883         Tests for module 'cosl'.
10884         * modules/cosl-tests: New file.
10885         * tests/test-cosl.c: New file.
10886
10887         Tests for module 'atanl'.
10888         * modules/atanl-tests: New file.
10889         * tests/test-atanl.c: New file.
10890
10891         Tests for module 'asinl'.
10892         * modules/asinl-tests: New file.
10893         * tests/test-asinl.c: New file.
10894
10895         Tests for module 'acosl'.
10896         * modules/acosl-tests: New file.
10897         * tests/test-acosl.c: New file.
10898
10899         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10900         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10901         tanl): Use the standard gnulib idiom.
10902         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10903         * lib/sinl.c: Likewise.
10904         * lib/tanl.c: Don't include trigl.c.
10905         (kernel_tanl): Make static.
10906         * lib/sincosl.c: Include trigl.h first.
10907         * lib/trigl.c: Likewise.
10908         * m4/acosl.m4: New file.
10909         * m4/asinl.m4: New file.
10910         * m4/atanl.m4: New file.
10911         * m4/cosl.m4: New file.
10912         * m4/expl.m4: New file.
10913         * m4/logl.m4: New file.
10914         * m4/sinl.m4: New file.
10915         * m4/sqrtl.m4: New file.
10916         * m4/tanl.m4: New file.
10917         * m4/mathl.m4: Remove file.
10918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10919         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10920         Don't initialize GNULIB_MATHL.
10921         * modules/acosl: New file.
10922         * modules/asinl: New file.
10923         * modules/atanl: New file.
10924         * modules/cosl: New file.
10925         * modules/expl: New file.
10926         * modules/logl: New file.
10927         * modules/sinl: New file.
10928         * modules/sqrtl: New file.
10929         * modules/tanl: New file.
10930         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10931         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10932         substitute GNULIB_MATHL.
10933         * modules/mathl: Rewritten.
10934         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10935         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10936         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10937         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10938         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10939         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10940         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10941         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10942         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10943
10944 2010-01-18  Bruno Haible  <bruno@clisp.org>
10945
10946         sqrt: Make gl_FUNC_SQRT requirable.
10947         * m4/sqrt.m4: New file.
10948         * modules/sqrt (Files): Add it.
10949         (configure.ac): Invoke gl_FUNC_SQRT.
10950
10951 2010-01-18  Bruno Haible  <bruno@clisp.org>
10952
10953         New modules for common <math.h> functions.
10954         * m4/mathfunc.m4: New file.
10955         * modules/acos: New file.
10956         * modules/asin: New file.
10957         * modules/atan: New file.
10958         * modules/atan2: New file.
10959         * modules/cbrt: New file.
10960         * modules/copysign: New file.
10961         * modules/cos: New file.
10962         * modules/cosh: New file.
10963         * modules/erf: New file.
10964         * modules/erfc: New file.
10965         * modules/exp: New file.
10966         * modules/fabs: New file.
10967         * modules/fmod: New file.
10968         * modules/hypot: New file.
10969         * modules/j0: New file.
10970         * modules/j1: New file.
10971         * modules/jn: New file.
10972         * modules/ldexp: New file.
10973         * modules/lgamma: New file.
10974         * modules/log: New file.
10975         * modules/log10: New file.
10976         * modules/log1p: New file.
10977         * modules/logb: New file.
10978         * modules/modf: New file.
10979         * modules/nextafter: New file.
10980         * modules/pow: New file.
10981         * modules/remainder: New file.
10982         * modules/rint: New file.
10983         * modules/sin: New file.
10984         * modules/sinh: New file.
10985         * modules/sqrt: New file.
10986         * modules/tan: New file.
10987         * modules/tanh: New file.
10988         * modules/y0: New file.
10989         * modules/y1: New file.
10990         * modules/yn: New file.
10991         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10992         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10993         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10994         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10995         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10996         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10997         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10998         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10999         * doc/posix-functions/erf.texi: Mention the 'erf' module.
11000         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
11001         * doc/posix-functions/exp.texi: Mention the 'exp' module.
11002         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
11003         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
11004         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
11005         * doc/posix-functions/j0.texi: Mention the 'j0' module.
11006         * doc/posix-functions/j1.texi: Mention the 'j1' module.
11007         * doc/posix-functions/jn.texi: Mention the 'jn' module.
11008         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
11009         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
11010         * doc/posix-functions/log.texi: Mention the 'log' module.
11011         * doc/posix-functions/log10.texi: Mention the 'log10' module.
11012         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
11013         * doc/posix-functions/logb.texi: Mention the 'logb' module.
11014         * doc/posix-functions/modf.texi: Mention the 'modf' module.
11015         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
11016         * doc/posix-functions/pow.texi: Mention the 'pow' module.
11017         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
11018         * doc/posix-functions/rint.texi: Mention the 'rint' module.
11019         * doc/posix-functions/sin.texi: Mention the 'sin' module.
11020         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
11021         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
11022         * doc/posix-functions/tan.texi: Mention the 'tan' module.
11023         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
11024         * doc/posix-functions/y0.texi: Mention the 'y0' module.
11025         * doc/posix-functions/y1.texi: Mention the 'y1' module.
11026         * doc/posix-functions/yn.texi: Mention the 'yn' module.
11027
11028 2010-01-18  Jim Meyering  <meyering@redhat.com>
11029
11030         ignore-value: relax license to LGPLv2+
11031         * modules/ignore-value (License): Relax to LGPLv2+.
11032
11033         getdate: don't leak when TZ contains two or more '"'s
11034         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
11035         double quote in TZ after the first one.
11036
11037         readtokens: do not leak internal token_lengths buffer
11038         * lib/readtokens.c (readtokens): Free the local, lengths,
11039         when the supplied "token_lengths" parameter is NULL.
11040
11041 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11042
11043         Fix a couple of missing LIBTHREAD link failures on AIX.
11044         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
11045         $(LIBTHREAD).
11046         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
11047
11048         Link test-poll against INET_PTON_LIB.
11049         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
11050         for inet_pton on Solaris 10.
11051
11052 2010-01-17  Bruno Haible  <bruno@clisp.org>
11053
11054         unistdio/*-sprintf: Fix typo in module description.
11055         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
11056         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
11057         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
11058         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
11059         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
11060         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
11061         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
11062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11063
11064 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11065
11066         gnulib-tool: fix filelist for AIX, HP-UX ksh.
11067         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
11068         variables in shell case patterns, for AIX and HP-UX ksh.
11069
11070         Split large sed scripts, for HP-UX sed.
11071         * modules/stdio: Split sed scripts around 50 sed commands,
11072         to avoid HP-UX limit of 99 commands, in the near future.
11073         * modules/string: Likewise.
11074         * modules/unistd: Likewise.
11075
11076         gnulib-tool: avoid writing in the current directory.
11077         * gnulib-tool (func_emit_lib_Makefile_am)
11078         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11079         not in the current directory, so concurrent gnulib-tool
11080         instances do not interfere.
11081
11082 2010-01-16  Jim Meyering  <meyering@redhat.com>
11083
11084         doc: update users.txt
11085         * users.txt: Add grep.
11086         (diffutils, gzip): Update URLs.
11087
11088 2010-01-12  Bruno Haible  <bruno@clisp.org>
11089
11090         posix_spawn: Avoid test failure on Cygwin.
11091         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11092         characters.
11093         Reported by Simon Josefsson.
11094
11095 2010-01-12  Bruno Haible  <bruno@clisp.org>
11096
11097         * tests/test-cond.c (main): When skipping the test, show the reason.
11098
11099 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11100
11101         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11102
11103 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11104
11105         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11106         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11107
11108 2010-01-12  Eric Blake  <ebb9@byu.net>
11109
11110         build: guarantee AS_VAR_IF
11111         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11112         (gl_AS_VAR_IF): Move...
11113         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11114         Reported by Simon Josefsson.
11115
11116 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11117
11118         * lib/stdio.in.h: Fix typo.
11119
11120 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11121
11122         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11123         libgpg-error.
11124
11125 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11126
11127         * tests/test-xalloc-die.sh: Use $EXEEXT.
11128
11129 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11130             Bruno Haible  <bruno@clisp.org>
11131
11132         getlogin, getlogin_r: Avoid test failure.
11133         * tests/test-getlogin.c: Include <stdio.h>.
11134         (main): Skip the test when the function fails because stdin is not a
11135         tty.
11136         * tests/test-getlogin_r.c: Include <stdio.h>.
11137         (main): Skip the test when the function fails because stdin is not a
11138         tty.
11139
11140 2010-01-11  Eric Blake  <ebb9@byu.net>
11141
11142         tests: avoid more large file warnings
11143         * tests/test-fflush.c: Avoid warning about ftell use.
11144         * tests/test-fseek.c: Avoid warning about fseek use.
11145
11146 2010-01-10  Bruno Haible  <bruno@clisp.org>
11147
11148         nproc: Work better on Linux when /proc and /sys are not mounted.
11149         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11150         as lower bound when, on glibc/Linux systems,
11151         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11152         Suggested by Pádraig Brady <P@draigbrady.com>.
11153         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11154
11155         nproc: Refactor.
11156         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11157         extracted from num_processors.
11158         (num_processors): Call it.
11159
11160 2010-01-11  Jim Meyering  <meyering@redhat.com>
11161
11162         utimecmp: avoid new warning from upcoming gcc-4.5.0
11163         * lib/utimecmp.c (BILLION): Define using #define rather than an
11164         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11165
11166 2010-01-11  Eric Blake  <ebb9@byu.net>
11167
11168         math: add portability warnings for classification macros
11169         * modules/math (Depends-on): Add warn-on-use.
11170         (Makefile.am): Provide new substitutions.
11171         * m4/math_h.m4 (gl_MATH_H): Require inline.
11172         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11173         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11174         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11175         implement warnings.
11176
11177         unistd: warn on use of environ without module
11178         * modules/unistd (Depends-on): Add warn-on-use.
11179         (Makefile.am): Provide new substitutions.
11180         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11181         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11182
11183         stdio: warn on suspicious uses
11184         * modules/stdio (Depends-on): Add warn-on-use.
11185         (Makefile.am): Provide new substitutions.
11186         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11187         fseeko.
11188         * lib/stdio.in.h (gets): Always warn on use.
11189         (fseek, ftell): Adjust when warnings are issued, and honor
11190         _GL_NO_LARGE_FILES as a way to silence the warning.
11191         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11192         any warning about large file offsets.
11193         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11194         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11195         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11196         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11197         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11198         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11199         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11200         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11201
11202         warn-on-use: new module
11203         * modules/warn-on-use: New file.
11204         * build-aux/warn-on-use.h: Likewise.
11205         * m4/warn-on-use.m4: Likewise.
11206         * MODULES.html.sh (Support for building): Mention it.
11207
11208 2010-01-10  Bruno Haible  <bruno@clisp.org>
11209
11210         Tests for module 'unistr/u32-strdup'.
11211         * modules/unistr/u32-strdup-tests: New file.
11212         * tests/unistr/test-u32-strdup.c: New file.
11213
11214         Tests for module 'unistr/u16-strdup'.
11215         * modules/unistr/u16-strdup-tests: New file.
11216         * tests/unistr/test-u16-strdup.c: New file.
11217
11218         Tests for module 'unistr/u8-strdup'.
11219         * modules/unistr/u8-strdup-tests: New file.
11220         * tests/unistr/test-u8-strdup.c: New file.
11221         * tests/unistr/test-strdup.h: New file.
11222
11223         Tests for module 'unistr/u32-strncmp'.
11224         * modules/unistr/u32-strncmp-tests: New file.
11225         * tests/unistr/test-u32-strncmp.c: New file.
11226
11227         Tests for module 'unistr/u16-strncmp'.
11228         * modules/unistr/u16-strncmp-tests: New file.
11229         * tests/unistr/test-u16-strncmp.c: New file.
11230
11231         Tests for module 'unistr/u8-strncmp'.
11232         * modules/unistr/u8-strncmp-tests: New file.
11233         * tests/unistr/test-u8-strncmp.c: New file.
11234         * tests/unistr/test-strncmp.h: New file.
11235
11236         Tests for module 'unistr/u32-strcoll'.
11237         * modules/unistr/u32-strcoll-tests: New file.
11238         * tests/unistr/test-u32-strcoll.c: New file.
11239
11240         Tests for module 'unistr/u16-strcoll'.
11241         * modules/unistr/u16-strcoll-tests: New file.
11242         * tests/unistr/test-u16-strcoll.c: New file.
11243
11244         Tests for module 'unistr/u8-strcoll'.
11245         * modules/unistr/u8-strcoll-tests: New file.
11246         * tests/unistr/test-u8-strcoll.c: New file.
11247
11248         Tests for module 'unistr/u32-strcmp'.
11249         * modules/unistr/u32-strcmp-tests: New file.
11250         * tests/unistr/test-u32-strcmp.c: New file.
11251         * tests/unistr/test-u32-strcmp.h: New file.
11252
11253         Tests for module 'unistr/u16-strcmp'.
11254         * modules/unistr/u16-strcmp-tests: New file.
11255         * tests/unistr/test-u16-strcmp.c: New file.
11256         * tests/unistr/test-u16-strcmp.h: New file.
11257
11258         Tests for module 'unistr/u8-strcmp'.
11259         * modules/unistr/u8-strcmp-tests: New file.
11260         * tests/unistr/test-u8-strcmp.c: New file.
11261         * tests/unistr/test-u8-strcmp.h: New file.
11262         * tests/unistr/test-strcmp.h: New file.
11263
11264         Tests for module 'unistr/u32-strncat'.
11265         * modules/unistr/u32-strncat-tests: New file.
11266         * tests/unistr/test-u32-strncat.c: New file.
11267
11268         Tests for module 'unistr/u16-strncat'.
11269         * modules/unistr/u16-strncat-tests: New file.
11270         * tests/unistr/test-u16-strncat.c: New file.
11271
11272         Tests for module 'unistr/u8-strncat'.
11273         * modules/unistr/u8-strncat-tests: New file.
11274         * tests/unistr/test-u8-strncat.c: New file.
11275         * tests/unistr/test-strncat.h: New file.
11276
11277         Tests for module 'unistr/u32-strcat'.
11278         * modules/unistr/u32-strcat-tests: New file.
11279         * tests/unistr/test-u32-strcat.c: New file.
11280
11281         Tests for module 'unistr/u16-strcat'.
11282         * modules/unistr/u16-strcat-tests: New file.
11283         * tests/unistr/test-u16-strcat.c: New file.
11284
11285         Tests for module 'unistr/u8-strcat'.
11286         * modules/unistr/u8-strcat-tests: New file.
11287         * tests/unistr/test-u8-strcat.c: New file.
11288         * tests/unistr/test-strcat.h: New file.
11289
11290         Tests for module 'unistr/u32-stpncpy'.
11291         * modules/unistr/u32-stpncpy-tests: New file.
11292         * tests/unistr/test-u32-stpncpy.c: New file.
11293
11294         Tests for module 'unistr/u16-stpncpy'.
11295         * modules/unistr/u16-stpncpy-tests: New file.
11296         * tests/unistr/test-u16-stpncpy.c: New file.
11297
11298         Tests for module 'unistr/u8-stpncpy'.
11299         * modules/unistr/u8-stpncpy-tests: New file.
11300         * tests/unistr/test-u8-stpncpy.c: New file.
11301         * tests/unistr/test-stpncpy.h: New file.
11302
11303         Tests for module 'unistr/u32-strncpy'.
11304         * modules/unistr/u32-strncpy-tests: New file.
11305         * tests/unistr/test-u32-strncpy.c: New file.
11306
11307         Tests for module 'unistr/u16-strncpy'.
11308         * modules/unistr/u16-strncpy-tests: New file.
11309         * tests/unistr/test-u16-strncpy.c: New file.
11310
11311         Tests for module 'unistr/u8-strncpy'.
11312         * modules/unistr/u8-strncpy-tests: New file.
11313         * tests/unistr/test-u8-strncpy.c: New file.
11314         * tests/unistr/test-strncpy.h: New file.
11315
11316         Tests for module 'unistr/u32-stpcpy'.
11317         * modules/unistr/u32-stpcpy-tests: New file.
11318         * tests/unistr/test-u32-stpcpy.c: New file.
11319
11320         Tests for module 'unistr/u16-stpcpy'.
11321         * modules/unistr/u16-stpcpy-tests: New file.
11322         * tests/unistr/test-u16-stpcpy.c: New file.
11323
11324         Tests for module 'unistr/u8-stpcpy'.
11325         * modules/unistr/u8-stpcpy-tests: New file.
11326         * tests/unistr/test-u8-stpcpy.c: New file.
11327         * tests/unistr/test-stpcpy.h: New file.
11328
11329         Tests for module 'unistr/u32-strcpy'.
11330         * modules/unistr/u32-strcpy-tests: New file.
11331         * tests/unistr/test-u32-strcpy.c: New file.
11332
11333         Tests for module 'unistr/u16-strcpy'.
11334         * modules/unistr/u16-strcpy-tests: New file.
11335         * tests/unistr/test-u16-strcpy.c: New file.
11336
11337         Tests for module 'unistr/u8-strcpy'.
11338         * modules/unistr/u8-strcpy-tests: New file.
11339         * tests/unistr/test-u8-strcpy.c: New file.
11340         * tests/unistr/test-strcpy.h: New file.
11341
11342         Tests for module 'unistr/u32-strnlen'.
11343         * modules/unistr/u32-strnlen-tests: New file.
11344         * tests/unistr/test-u32-strnlen.c: New file.
11345
11346         Tests for module 'unistr/u16-strnlen'.
11347         * modules/unistr/u16-strnlen-tests: New file.
11348         * tests/unistr/test-u16-strnlen.c: New file.
11349
11350         Tests for module 'unistr/u8-strnlen'.
11351         * modules/unistr/u8-strnlen-tests: New file.
11352         * tests/unistr/test-u8-strnlen.c: New file.
11353         * tests/unistr/test-strnlen.h: New file.
11354
11355         Tests for module 'unistr/u32-strlen'.
11356         * modules/unistr/u32-strlen-tests: New file.
11357         * tests/unistr/test-u32-strlen.c: New file.
11358
11359         Tests for module 'unistr/u16-strlen'.
11360         * modules/unistr/u16-strlen-tests: New file.
11361         * tests/unistr/test-u16-strlen.c: New file.
11362
11363         Tests for module 'unistr/u8-strlen'.
11364         * modules/unistr/u8-strlen-tests: New file.
11365         * tests/unistr/test-u8-strlen.c: New file.
11366
11367         Tests for module 'unistr/u32-prev'.
11368         * modules/unistr/u32-prev-tests: New file.
11369         * tests/unistr/test-u32-prev.c: New file.
11370
11371         Tests for module 'unistr/u16-prev'.
11372         * modules/unistr/u16-prev-tests: New file.
11373         * tests/unistr/test-u16-prev.c: New file.
11374
11375         Tests for module 'unistr/u8-prev'.
11376         * modules/unistr/u8-prev-tests: New file.
11377         * tests/unistr/test-u8-prev.c: New file.
11378
11379         Tests for module 'unistr/u32-next'.
11380         * modules/unistr/u32-next-tests: New file.
11381         * tests/unistr/test-u32-next.c: New file.
11382
11383         Tests for module 'unistr/u16-next'.
11384         * modules/unistr/u16-next-tests: New file.
11385         * tests/unistr/test-u16-next.c: New file.
11386
11387         Tests for module 'unistr/u8-next'.
11388         * modules/unistr/u8-next-tests: New file.
11389         * tests/unistr/test-u8-next.c: New file.
11390
11391         Tests for module 'unistr/u32-strmbtouc'.
11392         * modules/unistr/u32-strmbtouc-tests: New file.
11393         * tests/unistr/test-u32-strmbtouc.c: New file.
11394
11395         Tests for module 'unistr/u16-strmbtouc'.
11396         * modules/unistr/u16-strmbtouc-tests: New file.
11397         * tests/unistr/test-u16-strmbtouc.c: New file.
11398
11399         Tests for module 'unistr/u8-strmbtouc'.
11400         * modules/unistr/u8-strmbtouc-tests: New file.
11401         * tests/unistr/test-u8-strmbtouc.c: New file.
11402
11403         Tests for module 'unistr/u32-strmblen'.
11404         * modules/unistr/u32-strmblen-tests: New file.
11405         * tests/unistr/test-u32-strmblen.c: New file.
11406
11407         Tests for module 'unistr/u16-strmblen'.
11408         * modules/unistr/u16-strmblen-tests: New file.
11409         * tests/unistr/test-u16-strmblen.c: New file.
11410
11411         Tests for module 'unistr/u8-strmblen'.
11412         * modules/unistr/u8-strmblen-tests: New file.
11413         * tests/unistr/test-u8-strmblen.c: New file.
11414
11415         Tests for module 'unistr/u32-cpy-alloc'.
11416         * modules/unistr/u32-cpy-alloc-tests: New file.
11417         * tests/unistr/test-u32-cpy-alloc.c: New file.
11418
11419         Tests for module 'unistr/u16-cpy-alloc'.
11420         * modules/unistr/u16-cpy-alloc-tests: New file.
11421         * tests/unistr/test-u16-cpy-alloc.c: New file.
11422
11423         Tests for module 'unistr/u8-cpy-alloc'.
11424         * modules/unistr/u8-cpy-alloc-tests: New file.
11425         * tests/unistr/test-u8-cpy-alloc.c: New file.
11426         * tests/unistr/test-cpy-alloc.h: New file.
11427
11428         Tests for module 'unistr/u32-mbsnlen'.
11429         * modules/unistr/u32-mbsnlen-tests: New file.
11430         * tests/unistr/test-u32-mbsnlen.c: New file.
11431
11432         Tests for module 'unistr/u16-mbsnlen'.
11433         * modules/unistr/u16-mbsnlen-tests: New file.
11434         * tests/unistr/test-u16-mbsnlen.c: New file.
11435
11436         Tests for module 'unistr/u8-mbsnlen'.
11437         * modules/unistr/u8-mbsnlen-tests: New file.
11438         * tests/unistr/test-u8-mbsnlen.c: New file.
11439
11440         Tests for module 'unistr/u32-chr'.
11441         * modules/unistr/u32-chr-tests: New file.
11442         * tests/unistr/test-u32-chr.c: New file.
11443
11444         Tests for module 'unistr/u16-chr'.
11445         * modules/unistr/u16-chr-tests: New file.
11446         * tests/unistr/test-u16-chr.c: New file.
11447
11448         Tests for module 'unistr/u8-chr'.
11449         * modules/unistr/u8-chr-tests: New file.
11450         * tests/unistr/test-u8-chr.c: New file.
11451         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11452
11453         Tests for module 'unistr/u32-cmp2'.
11454         * modules/unistr/u32-cmp2-tests: New file.
11455         * tests/unistr/test-u32-cmp2.c: New file.
11456
11457         Tests for module 'unistr/u16-cmp2'.
11458         * modules/unistr/u16-cmp2-tests: New file.
11459         * tests/unistr/test-u16-cmp2.c: New file.
11460
11461         Tests for module 'unistr/u8-cmp2'.
11462         * modules/unistr/u8-cmp2-tests: New file.
11463         * tests/unistr/test-u8-cmp2.c: New file.
11464         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11465
11466         Tests for module 'unistr/u32-cmp'.
11467         * modules/unistr/u32-cmp-tests: New file.
11468         * tests/unistr/test-u32-cmp.c: New file.
11469
11470         Tests for module 'unistr/u16-cmp'.
11471         * modules/unistr/u16-cmp-tests: New file.
11472         * tests/unistr/test-u16-cmp.c: New file.
11473
11474         Tests for module 'unistr/u8-cmp'.
11475         * modules/unistr/u8-cmp-tests: New file.
11476         * tests/unistr/test-u8-cmp.c: New file.
11477         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11478
11479         Tests for module 'unistr/u32-set'.
11480         * modules/unistr/u32-set-tests: New file.
11481         * tests/unistr/test-u32-set.c: New file.
11482
11483         Tests for module 'unistr/u16-set'.
11484         * modules/unistr/u16-set-tests: New file.
11485         * tests/unistr/test-u16-set.c: New file.
11486
11487         Tests for module 'unistr/u8-set'.
11488         * modules/unistr/u8-set-tests: New file.
11489         * tests/unistr/test-u8-set.c: New file.
11490         * tests/unistr/test-set.h: New file.
11491
11492         Tests for module 'unistr/u32-move'.
11493         * modules/unistr/u32-move-tests: New file.
11494         * tests/unistr/test-u32-move.c: New file.
11495
11496         Tests for module 'unistr/u16-move'.
11497         * modules/unistr/u16-move-tests: New file.
11498         * tests/unistr/test-u16-move.c: New file.
11499
11500         Tests for module 'unistr/u8-move'.
11501         * modules/unistr/u8-move-tests: New file.
11502         * tests/unistr/test-u8-move.c: New file.
11503         * tests/unistr/test-move.h: New file.
11504
11505         Tests for module 'unistr/u32-cpy'.
11506         * modules/unistr/u32-cpy-tests: New file.
11507         * tests/unistr/test-u32-cpy.c: New file.
11508
11509         Tests for module 'unistr/u16-cpy'.
11510         * modules/unistr/u16-cpy-tests: New file.
11511         * tests/unistr/test-u16-cpy.c: New file.
11512
11513         Tests for module 'unistr/u8-cpy'.
11514         * modules/unistr/u8-cpy-tests: New file.
11515         * tests/unistr/test-u8-cpy.c: New file.
11516         * tests/unistr/test-cpy.h: New file.
11517
11518 2010-01-09  Bruno Haible  <bruno@clisp.org>
11519
11520         Tests for module 'unistr/u32-uctomb'.
11521         * modules/unistr/u32-uctomb-tests: New file.
11522         * tests/unistr/test-u32-uctomb.c: New file.
11523
11524         Tests for module 'unistr/u16-uctomb'.
11525         * modules/unistr/u16-uctomb-tests: New file.
11526         * tests/unistr/test-u16-uctomb.c: New file.
11527
11528         Tests for module 'unistr/u8-uctomb'.
11529         * modules/unistr/u8-uctomb-tests: New file.
11530         * tests/unistr/test-u8-uctomb.c: New file.
11531
11532         Tests for module 'unistr/u32-mbtoucr'.
11533         * modules/unistr/u32-mbtoucr-tests: New file.
11534         * tests/unistr/test-u32-mbtoucr.c: New file.
11535
11536         Tests for module 'unistr/u16-mbtoucr'.
11537         * modules/unistr/u16-mbtoucr-tests: New file.
11538         * tests/unistr/test-u16-mbtoucr.c: New file.
11539
11540         Tests for module 'unistr/u8-mbtoucr'.
11541         * modules/unistr/u8-mbtoucr-tests: New file.
11542         * tests/unistr/test-u8-mbtoucr.c: New file.
11543
11544         Tests for module 'unistr/u32-mbtouc'.
11545         * modules/unistr/u32-mbtouc-tests: New file.
11546         * tests/unistr/test-u32-mbtouc.c: New file.
11547
11548         Tests for module 'unistr/u16-mbtouc'.
11549         * modules/unistr/u16-mbtouc-tests: New file.
11550         * tests/unistr/test-u16-mbtouc.c: New file.
11551
11552         Tests for module 'unistr/u8-mbtouc'.
11553         * modules/unistr/u8-mbtouc-tests: New file.
11554         * tests/unistr/test-u8-mbtouc.c: New file.
11555
11556         Tests for module 'unistr/u32-mbtouc-unsafe'.
11557         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11558         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11559         * tests/unistr/test-u32-mbtouc.h: New file.
11560
11561         Tests for module 'unistr/u16-mbtouc-unsafe'.
11562         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11563         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11564         * tests/unistr/test-u16-mbtouc.h: New file.
11565
11566         Tests for module 'unistr/u8-mbtouc-unsafe'.
11567         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11568         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11569         * tests/unistr/test-u8-mbtouc.h: New file.
11570
11571         Tests for module 'unistr/u32-mblen'.
11572         * modules/unistr/u32-mblen-tests: New file.
11573         * tests/unistr/test-u32-mblen.c: New file.
11574
11575         Tests for module 'unistr/u16-mblen'.
11576         * modules/unistr/u16-mblen-tests: New file.
11577         * tests/unistr/test-u16-mblen.c: New file.
11578
11579         Tests for module 'unistr/u8-mblen'.
11580         * modules/unistr/u8-mblen-tests: New file.
11581         * tests/unistr/test-u8-mblen.c: New file.
11582
11583         Tests for module 'unistr/u32-to-u16'.
11584         * modules/unistr/u32-to-u16-tests: New file.
11585         * tests/unistr/test-u32-to-u16.c: New file.
11586
11587         Tests for module 'unistr/u32-to-u8'.
11588         * modules/unistr/u32-to-u8-tests: New file.
11589         * tests/unistr/test-u32-to-u8.c: New file.
11590
11591         Tests for module 'unistr/u16-to-u32'.
11592         * modules/unistr/u16-to-u32-tests: New file.
11593         * tests/unistr/test-u16-to-u32.c: New file.
11594
11595         Tests for module 'unistr/u16-to-u8'.
11596         * modules/unistr/u16-to-u8-tests: New file.
11597         * tests/unistr/test-u16-to-u8.c: New file.
11598
11599         Tests for module 'unistr/u8-to-u32'.
11600         * modules/unistr/u8-to-u32-tests: New file.
11601         * tests/unistr/test-u8-to-u32.c: New file.
11602
11603         Tests for module 'unistr/u8-to-u16'.
11604         * modules/unistr/u8-to-u16-tests: New file.
11605         * tests/unistr/test-u8-to-u16.c: New file.
11606
11607         Tests for module 'unistr/u32-check'.
11608         * modules/unistr/u32-check-tests: New file.
11609         * tests/unistr/test-u32-check.c: New file.
11610
11611         Tests for module 'unistr/u16-check'.
11612         * modules/unistr/u16-check-tests: New file.
11613         * tests/unistr/test-u16-check.c: New file.
11614
11615         Tests for module 'unistr/u8-check'.
11616         * modules/unistr/u8-check-tests: New file.
11617         * tests/unistr/test-u8-check.c: New file.
11618
11619         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11620         (category_equals): New function.
11621         (main): Add more tests.
11622         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11623
11624         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11625
11626 2010-01-10  Bruno Haible  <bruno@clisp.org>
11627
11628         unistr/u*-strcoll: Try harder to distinguish different strings.
11629         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11630         compare s1 and s2 to see if they are different.
11631
11632 2010-01-10  Bruno Haible  <bruno@clisp.org>
11633
11634         unistr/u*-stpncpy: Fix the return value.
11635         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11636         description of the return value consistent with stpncpy in glibc.
11637         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11638         written non-NUL unit.
11639
11640 2010-01-10  Bruno Haible  <bruno@clisp.org>
11641
11642         unistr/u*-next: Add missing dependencies.
11643         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11644         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11645         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11646
11647 2010-01-10  Bruno Haible  <bruno@clisp.org>
11648
11649         unistr/u8-mbsnlen: Fix return value for incomplete character.
11650         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11651         u8_mblen.
11652         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11653         Remove unistr/u8-mblen.
11654         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11655         u16_mblen.
11656         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11657         Remove unistr/u16-mblen.
11658
11659 2010-01-10  Bruno Haible  <bruno@clisp.org>
11660
11661         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11662         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11663         Reported by Brian Gough <bjg@gnu.org> and
11664         Chris Clayton <chris2553@googlemail.com> via
11665         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11666
11667 2010-01-09  Bruno Haible  <bruno@clisp.org>
11668
11669         unistr/u16-to-u32: Reject invalid input.
11670         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11671         u16_mbtouc.
11672         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11673         Remove unistr/u16-mbtouc.
11674
11675         unistr/u16-to-u8: Reject invalid input.
11676         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11677         u16_mbtouc.
11678         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11679         Remove unistr/u16-mbtouc.
11680
11681         unistr/u8-to-u32: Reject invalid input.
11682         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11683         u8_mbtouc.
11684         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11685         Remove unistr/u8-mbtouc.
11686
11687         unistr/u8-to-u16: Reject invalid input.
11688         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11689         u8_mbtouc.
11690         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11691         Remove unistr/u8-mbtouc.
11692
11693 2010-01-09  Bruno Haible  <bruno@clisp.org>
11694
11695         Tests for module 'getlogin'.
11696         * modules/getlogin-tests: New file.
11697         * tests/test-getlogin.c: New file.
11698
11699         New module 'getlogin'.
11700         * lib/unistd.in.h (getlogin): New declaration.
11701         * lib/getlogin.c: New file.
11702         * m4/getlogin.m4: New file.
11703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11704         HAVE_GETLOGIN.
11705         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11706         HAVE_GETLOGIN.
11707         * modules/getlogin: New file.
11708         * doc/posix-functions/getlogin.texi: Mention the new module.
11709         Reported by John W. Eaton <jwe@gnu.org>.
11710
11711 2010-01-09  Bruno Haible  <bruno@clisp.org>
11712
11713         getlogin_r: Support for native Windows.
11714         * lib/getlogin_r.c: Include <windows.h>
11715         (getlogin_r): Implement for native Windows.
11716         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11717         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11718         via John W. Eaton <jwe@gnu.org>.
11719
11720 2010-01-09  Bruno Haible  <bruno@clisp.org>
11721
11722         getlogin_r: Small fixes.
11723         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11724         succeeds.
11725         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11726         before testing whether getlogin_r is declared. No need to set
11727         HAVE_DECL_GETLOGIN_R to 1.
11728         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11729
11730 2010-01-09  Bruno Haible  <bruno@clisp.org>
11731
11732         * lib/unistd.in.h (getlogin_r): Add comment.
11733
11734 2010-01-09  Bruno Haible  <bruno@clisp.org>
11735
11736         Tests for module 'getlogin_r'.
11737         * modules/getlogin_r-tests: New file.
11738         * tests/test-getlogin_r.c: New file.
11739
11740 2010-01-09  Jim Meyering  <meyering@redhat.com>
11741
11742         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11743         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11744         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11745
11746 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11747
11748         * lib/dup2.c (rpl_dup2): Improve comment.
11749
11750 2010-01-08  Eric Blake  <ebb9@byu.net>
11751
11752         maint.mk: allow packages to add makefile @@ exceptions
11753         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11754         (sc_makefile_check): Rename...
11755         (sc_makefile_at_at_check): ...to this, and use hook.
11756
11757         dup2: work around mingw bug
11758         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11759         Reported by Simon Josefsson.
11760
11761 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11762
11763         glob: Fix C++ compilation.
11764         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11765         C++.
11766
11767 2010-01-07  Bruno Haible  <bruno@clisp.org>
11768
11769         Fix indentation of wctype.in.h, broken since 2007-01-06.
11770         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11771
11772 2010-01-07  Bruno Haible  <bruno@clisp.org>
11773
11774         mbslen: Avoid collision with system function.
11775         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11776         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11777         * m4/mbslen.m4: New file.
11778         * modules/mbslen (Files): Add it.
11779         (configure.ac): Invoke gl_MBSLEN.
11780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11781         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11782         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11783         via Ian Beckwith <ianb@erislabs.net>.
11784
11785 2010-01-07  Bruno Haible  <bruno@clisp.org>
11786
11787         dirent: Document the last fix.
11788         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11789
11790 2010-01-07  Bruno Haible  <bruno@clisp.org>
11791
11792         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11793         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11794         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11795         va_list are defined.
11796         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11797         Reported by Eric Blake.
11798
11799 2010-01-07  Bruno Haible  <bruno@clisp.org>
11800
11801         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11802         * modules/xlist (Depends-on): Add 'list',
11803         * modules/xoset (Depends-on): Add 'oset'.
11804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11805
11806 2010-01-07  Bruno Haible  <bruno@clisp.org>
11807
11808         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11809         * doc/posix-functions/strncasecmp.texi: Likewise.
11810
11811 2010-01-07  Bruno Haible  <bruno@clisp.org>
11812
11813         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11814
11815 2010-01-07  John W. Eaton  <jwe@octave.org>
11816
11817         wctype: allow C++ use
11818         * lib/wctype.in.h: Add extern "C" block for C++.
11819
11820 2010-01-06  Eric Blake  <ebb9@byu.net>
11821
11822         maint.mk: detect incorrect GFDL usage
11823         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11824
11825 2010-01-06  Jim Meyering  <meyering@redhat.com>
11826         and Eric Blake  <ebb9@byu.net>
11827
11828         maint.mk: ignore multi-line copyright in NEWS
11829         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11830
11831 2010-01-06  Eric Blake  <ebb9@byu.net>
11832
11833         select: add missing dependency
11834         * modules/select-tests (Depends-on): Move sockets dependency...
11835         * modules/select (Depends-on): ...here.
11836         Reported by Ian Beckwith.
11837
11838         doc: regenerate INSTALL
11839         * doc/INSTALL: Reflect recent autoconf update.
11840         * doc/INSTALL.ISO: Likewise.
11841         * doc/INSTALL.UTF-8: Likewise.
11842
11843         pread: fix compilation on glibc
11844         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11845         Reported by Ralf Wildenhues.
11846
11847         dirent: fix test failure
11848         * lib/dirent.in.h (includes): Guarantee ino_t.
11849         Reported by Ralf Wildenhues.
11850
11851 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11852
11853         linkat, renameat: avoid bad free
11854         * lib/at-func2.c (at_func2): Fix typo.
11855         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11856
11857 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11858
11859         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11860         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11861         to avoid failure of symlink test later.
11862
11863 2010-01-06  Eric Blake  <ebb9@byu.net>
11864
11865         stdio, unistd: guarantee ssize_t
11866         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11867         2008 are exposed when needed.
11868         * lib/stdio.in.h (includes): Likewise.
11869         Reported by Ralf Wildenhues.
11870
11871 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11872
11873         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11874         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11875         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11876
11877 2010-01-06  Jim Meyering  <meyering@redhat.com>
11878
11879         readtokens: this module *does* require xalloc.h
11880         It uses only functions that were omitted by the old syntax-check rule.
11881         * lib/readtokens.c: Include "xalloc.h" once again.
11882         * modules/readtokens (Depends-on): Add xalloc.
11883         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11884
11885 2010-01-05  Eric Blake  <ebb9@byu.net>
11886
11887         maint: support 'make announcement' from a VPATH build
11888         * top/maint.mk (announcement): Look for correct NEWS file.
11889
11890 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11891
11892         utimens (fdutimens): ignore a negative FD, per contract
11893         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11894         when we have a valid file descriptor.  Otherwise, using a brand
11895         new glibc (with just-patched futimens that now fails with EBADF)
11896         would cause this function to fail with ENOSYS.
11897         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11898         See also http://bugzilla.redhat.com/552320.
11899
11900 2010-01-05  Eric Blake  <ebb9@byu.net>
11901
11902         strcase: document what it provides
11903         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11904         gnulib module.
11905         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11906         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11907
11908 2010-01-05  Jim Meyering  <meyering@redhat.com>
11909
11910         maint: remove useless inclusions of "xalloc.h"
11911         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11912         * lib/readtokens.c: Likewise.
11913         * lib/same.c: Likewise.
11914         * modules/getloadavg (Depends-on): Remove xalloc.
11915         * modules/readtokens: Likewise.
11916         * modules/same: Likewise.
11917
11918         maint.mk: include 4 more function names in alloca.h-checking regexp
11919         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11920         regexp.  Before, we would give a false-positive (saying alloca.h
11921         is included unnecessarily) when the only uses involved omitted symbols.
11922
11923         xalloc.h: use consistent formatting
11924         * lib/xalloc.h: Move declarations to start in the first column.
11925
11926 2010-01-05  Eric Blake  <ebb9@byu.net>
11927
11928         mkdir: avoid xalloc
11929         * lib/mkdir.c (includes): Drop unused header.
11930         Reported by John W. Eaton.
11931
11932 2010-01-04  Jim Meyering  <meyering@redhat.com>
11933
11934         nl_langinfo: avoid configure-time syntax error
11935         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11936         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11937         the empty string.  Don't let that provoke a shell syntax error.
11938
11939         regcomp, regexec, fnmatch: avoid array bounds read error
11940         * lib/regcomp.c (build_equiv_class): From glibc:
11941         Use only the low 24 bits of a findidx return value as an index
11942         into the weights array.  Patch by Ulrich Drepper:
11943         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11944         * lib/regexec.c (check_node_accept_bytes): Likewise.
11945         * lib/fnmatch_loop.c (FCT): Likewise.
11946
11947         regcomp: skip collseq lookup when there are no rules
11948         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11949         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11950
11951         regcomp: recognize ill-formed { } expressions
11952         * lib/regcomp.c (parse_dup_op): From glibc:
11953         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11954
11955         regcomp: fix typo in comment
11956         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11957         s/satisfy/satisfies/.
11958
11959         regcomp: sync from glibc: remove dead store
11960         * lib/regcomp.c (duplicate_node_closure): Remove useless
11961         search_duplicated_node call and dead store.
11962
11963         regcomp: sync from glibc; always use nl_langinfo
11964         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11965         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11966         * modules/regex (Depends-on): Add nl_langinfo.
11967
11968 2010-01-04  Eric Blake  <ebb9@byu.net>
11969
11970         fdopendir: fix configure test
11971         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11972
11973 2010-01-01  Bruno Haible  <bruno@clisp.org>
11974
11975         wchar: Remove unused configure check.
11976         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
11977
11978 2010-01-01  Eric Blake  <ebb9@byu.net>
11979
11980         headers: make check of system header explicit
11981         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11982         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11983         ourselves.
11984         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11986         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11987         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11988         internals.
11989         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11990         missing.
11991         Suggested by Bruno Haible.
11992
11993 2010-01-01  Jim Meyering  <meyering@redhat.com>
11994
11995         ChangeLog: tweak to eliminate unnecessary copyright line
11996         * ChangeLog: Remove a copyright line that was mistakenly updated
11997         by today's update-copyright run.  Reported by Eric Blake.
11998
11999         test-update-copyright: don't let envvar setting cause test failure
12000         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12001
12002 2010-01-01  Bruno Haible  <bruno@clisp.org>
12003
12004         localename: Avoid gcc warning.
12005         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
12006         function if it is not used.
12007
12008 2010-01-01  Jim Meyering  <meyering@redhat.com>
12009
12010         update nearly all FSF copyright year lists to include 2010
12011         Use the same procedure as for 2009, outlined in
12012         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
12013
12014         version-etc: set COPYRIGHT_YEAR to 2010
12015         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
12016
12017 2009-12-31  Eric Blake  <ebb9@byu.net>
12018
12019         doc: correct availability of cygwin 1.5.x getopt
12020         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
12021         variables.
12022         * doc/posix-functions/opterr.texi (opterr): Likewise.
12023         * doc/posix-functions/optind.texi (optind): Likewise.
12024         * doc/posix-functions/optopt.texi (optopt): Likewise.
12025         * doc/posix-functions/tzname.texi (tzname): Likewise.
12026
12027         openat: update maintainer
12028         * modules/openat (Maintainer): Add myself.
12029
12030         utimens: avoid shadowing warning
12031         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
12032         buffers into one, to avoid shadowing, as well as avoiding a
12033         redundant stat.
12034         Reported by Jim Meyering.
12035
12036         test-dup2: avoid compiler warning
12037         * tests/test-dup2.c (is_inheritable): Only define if used.
12038
12039 2010-01-01  Bruno Haible  <bruno@clisp.org>
12040
12041         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
12042         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
12043         defined, use wctomb instead of wcrtomb.
12044
12045 2010-01-01  Bruno Haible  <bruno@clisp.org>
12046
12047         iconv: Reject native Solaris iconv.
12048         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
12049         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
12050
12051 2009-12-31  Bruno Haible  <bruno@clisp.org>
12052
12053         * tests/test-signal.c (main): Remove test of 'SIG'.
12054
12055 2009-12-31  Bruno Haible  <bruno@clisp.org>
12056
12057         spawn: Fix incomplete fix.
12058         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12059         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12060         warnings for GNULIB_POSIXCHECK again.
12061         Reported by Eric Blake.
12062
12063 2009-12-31  Bruno Haible  <bruno@clisp.org>
12064
12065         Avoid namespace pollution on glibc systems.
12066         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
12067         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
12068         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
12069         glibc systems.
12070
12071 2009-12-31  Bruno Haible  <bruno@clisp.org>
12072
12073         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
12074         (gl_REPLACE_WCHAR_H): Turn into a no-op.
12075         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
12076         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12077         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12078         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12079         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12080
12081 2009-12-31  Bruno Haible  <bruno@clisp.org>
12082
12083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12084         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12085         afterwards.
12086
12087 2009-12-31  Bruno Haible  <bruno@clisp.org>
12088
12089         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12090         SYS_UTSNAME_H.
12091
12092 2009-12-31  Bruno Haible  <bruno@clisp.org>
12093
12094         spawn: Fix misapplied patch.
12095         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12096         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12097         warnings for GNULIB_POSIXCHECK.
12098
12099 2009-12-31  Bruno Haible  <bruno@clisp.org>
12100
12101         times: Update after sys_times changed.
12102         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12103         * modules/times (Files): Add it.
12104         (configure.ac): Invoke gl_FUNC_TIMES.
12105
12106 2009-12-31  Bruno Haible  <bruno@clisp.org>
12107
12108         Use AC_C_INLINE where necessary.
12109         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12110         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12111         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12112         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12113         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12114         * m4/mbiter.m4 (gl_MBITER): Likewise.
12115         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12116         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12117         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12118         * modules/u64 (configure.ac): Likewise.
12119
12120 2009-12-31  Bruno Haible  <bruno@clisp.org>
12121
12122         Use AC_C_INLINE instead of module 'inline' where possible.
12123         * modules/inline (Description): Clarify purpose.
12124         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12125         * modules/count-one-bits (Depends-on): Remove inline.
12126         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12127         * modules/openat (Depends-on): Remove inline.
12128         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12129         instead of depending on module 'inline'.
12130         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12131         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12132         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12133         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12134         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12135         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12136         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12137         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12138         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12139         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12140         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12141         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12142         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12143         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12144         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12145         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12146         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12147         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12148         Likewise.
12149         * modules/unictype/property-ascii-hex-digit (Depends-on,
12150         configure.ac): Likewise.
12151         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12152         configure.ac): Likewise.
12153         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12154         configure.ac): Likewise.
12155         * modules/unictype/property-bidi-block-separator (Depends-on,
12156         configure.ac): Likewise.
12157         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12158         configure.ac): Likewise.
12159         * modules/unictype/property-bidi-common-separator (Depends-on,
12160         configure.ac): Likewise.
12161         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12162         Likewise.
12163         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12164         configure.ac): Likewise.
12165         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12166         configure.ac): Likewise.
12167         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12168         configure.ac): Likewise.
12169         * modules/unictype/property-bidi-european-digit (Depends-on,
12170         configure.ac): Likewise.
12171         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12172         configure.ac): Likewise.
12173         * modules/unictype/property-bidi-left-to-right (Depends-on,
12174         configure.ac): Likewise.
12175         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12176         configure.ac): Likewise.
12177         * modules/unictype/property-bidi-other-neutral (Depends-on,
12178         configure.ac): Likewise.
12179         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12180         Likewise.
12181         * modules/unictype/property-bidi-segment-separator (Depends-on,
12182         configure.ac): Likewise.
12183         * modules/unictype/property-bidi-whitespace (Depends-on,
12184         configure.ac): Likewise.
12185         * modules/unictype/property-combining (Depends-on, configure.ac):
12186         Likewise.
12187         * modules/unictype/property-composite (Depends-on, configure.ac):
12188         Likewise.
12189         * modules/unictype/property-currency-symbol (Depends-on,
12190         configure.ac): Likewise.
12191         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12192         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12193         Likewise.
12194         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12195         configure.ac): Likewise.
12196         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12197         Likewise.
12198         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12199         Likewise.
12200         * modules/unictype/property-extender (Depends-on, configure.ac):
12201         Likewise.
12202         * modules/unictype/property-format-control (Depends-on, configure.ac):
12203         Likewise.
12204         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12205         Likewise.
12206         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12207         Likewise.
12208         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12209         Likewise.
12210         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12211         Likewise.
12212         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12213         Likewise.
12214         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12215         Likewise.
12216         * modules/unictype/property-id-start (Depends-on, configure.ac):
12217         Likewise.
12218         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12219         Likewise.
12220         * modules/unictype/property-ids-binary-operator (Depends-on,
12221         configure.ac): Likewise.
12222         * modules/unictype/property-ids-trinary-operator (Depends-on,
12223         configure.ac): Likewise.
12224         * modules/unictype/property-ignorable-control (Depends-on,
12225         configure.ac): Likewise.
12226         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12227         Likewise.
12228         * modules/unictype/property-join-control (Depends-on, configure.ac):
12229         Likewise.
12230         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12231         Likewise.
12232         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12233         Likewise.
12234         * modules/unictype/property-logical-order-exception (Depends-on,
12235         configure.ac): Likewise.
12236         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12237         Likewise.
12238         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12239         * modules/unictype/property-non-break (Depends-on, configure.ac):
12240         Likewise.
12241         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12242         Likewise.
12243         * modules/unictype/property-numeric (Depends-on, configure.ac):
12244         Likewise.
12245         * modules/unictype/property-other-alphabetic (Depends-on,
12246         configure.ac): Likewise.
12247         * modules/unictype/property-other-default-ignorable-code-point
12248         (Depends-on, configure.ac): Likewise.
12249         * modules/unictype/property-other-grapheme-extend (Depends-on,
12250         configure.ac): Likewise.
12251         * modules/unictype/property-other-id-continue (Depends-on,
12252         configure.ac): Likewise.
12253         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12254         Likewise.
12255         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12256         Likewise.
12257         * modules/unictype/property-other-math (Depends-on, configure.ac):
12258         Likewise.
12259         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12260         Likewise.
12261         * modules/unictype/property-paired-punctuation (Depends-on,
12262         configure.ac): Likewise.
12263         * modules/unictype/property-paragraph-separator (Depends-on,
12264         configure.ac): Likewise.
12265         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12266         Likewise.
12267         * modules/unictype/property-pattern-white-space (Depends-on,
12268         configure.ac): Likewise.
12269         * modules/unictype/property-private-use (Depends-on, configure.ac):
12270         Likewise.
12271         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12272         Likewise.
12273         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12274         Likewise.
12275         * modules/unictype/property-radical (Depends-on, configure.ac):
12276         Likewise.
12277         * modules/unictype/property-sentence-terminal (Depends-on,
12278         configure.ac): Likewise.
12279         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12280         Likewise.
12281         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12282         * modules/unictype/property-terminal-punctuation (Depends-on,
12283         configure.ac): Likewise.
12284         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12285         Likewise.
12286         * modules/unictype/property-unassigned-code-value (Depends-on,
12287         configure.ac): Likewise.
12288         * modules/unictype/property-unified-ideograph (Depends-on,
12289         configure.ac): Likewise.
12290         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12291         Likewise.
12292         * modules/unictype/property-variation-selector (Depends-on,
12293         configure.ac): Likewise.
12294         * modules/unictype/property-white-space (Depends-on, configure.ac):
12295         Likewise.
12296         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12297         Likewise.
12298         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12299         Likewise.
12300         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12301         Likewise.
12302         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12303         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12304         Likewise.
12305
12306 2009-12-31  Bruno Haible  <bruno@clisp.org>
12307
12308         Remove unnecessary AC_C_INLINE invocation.
12309         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12310         since 2009-08-21.
12311
12312 2009-12-31  Jim Meyering  <meyering@redhat.com>
12313
12314         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12315         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12316         With this change, we can all remove the gpg_key_ID = ... definition
12317         from our respective cfg.mk files.
12318
12319         maint.mk: create announcement template in ~/, not in /tmp
12320         * top/maint.mk (emit_upload_commands): Adjust.
12321         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12322         Remove temporary file, .ci-msg.
12323
12324 2009-12-31  Eric Blake  <ebb9@byu.net>
12325
12326         link-warning: always build headers with link warnings
12327         * modules/arpa_inet (Makefile.am): Always build replacement
12328         header.
12329         * modules/ctype (Makefile.am): Likewise.
12330         * modules/dirent (Makefile.am): Likewise.
12331         * modules/inttypes (Makefile.am): Likewise.
12332         * modules/langinfo (Makefile.am): Likewise.
12333         * modules/locale (Makefile.am): Likewise.
12334         * modules/spawn (Makefile.am): Likewise.
12335         * modules/sys_file (Makefile.am): Likewise.
12336         * modules/sys_ioctl (Makefile.am): Likewise.
12337         * modules/sys_select (Makefile.am): Likewise.
12338         * modules/sys_socket (Makefile.am): Likewise.
12339         * modules/sys_times (Makefile.am): Likewise.
12340         * modules/sys_utsname (Makefile.am): Likewise.
12341         * modules/sys_wait (Makefile.am): Likewise.
12342         * modules/wchar (Makefile.am): Likewise.
12343         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12344         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12345         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12346         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12347         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12348         Likewise.
12349         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12350         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12351         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12352         Likewise.
12353         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12354         Likewise.
12355         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12356         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12357         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12358         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12359         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12360         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12361         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12362         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12363         (gl_WCHAR_H_DEFAULTS): Likewise.
12364
12365 2009-12-31  Eric Blake  <ebb9@byu.net>
12366
12367         signal, spawn: use link warnings
12368         * lib/signal.in.h (sigset_t): Make unconditional.
12369         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12370         (sigpending, sigprocmask, sigaction): Add link warnings.
12371         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12372         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12373         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12374         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12375         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12376         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12377         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12378         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12379         (posix_spawn_file_actions_destroy)
12380         (posix_spawn_file_actions_addopen)
12381         (posix_spawn_file_actions_addclose)
12382         (posix_spawn_file_actions_adddup2): Likewise.
12383         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12384         * tests/test-signal.c (main): Enhance test.
12385
12386         spawn: improve wrapper support
12387         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12388         (gl_SPAWN_H_DEFAULTS): New defaults.
12389         * modules/spawn (Makefile.am): Substitute them.
12390         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12391         Only declare if missing or broken.
12392
12393         sys_times, sys_utsname: use include_next
12394         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12395         header.
12396         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12397         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12398         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12399         * modules/sys_times (Depends-on): Add include_next.
12400         (Makefile.am): Substitute additional values.
12401         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12402         * lib/sys_times.in.h (includes): Include native header, if
12403         available.
12404         * lib/sys_utsname.in.h (includes): Likewise.
12405         * tests/test-sys_times.c (main): Enhance test.
12406
12407         fdutimensat: revert prior patch
12408         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12409         utimens.h.
12410         Reported by Bruno Haible.
12411
12412 2009-12-30  Eric Blake  <ebb9@byu.net>
12413
12414         sys_wait: drop link-warning dependency
12415         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12416         link-warning efforts.
12417         * lib/sys_wait.in.h: Likewise.
12418
12419         fdutimensat: remove bogus dependency
12420         * modules/fdutimensat (Depends-on): Drop inline.
12421
12422         unistd: fix typo
12423         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12424
12425 2009-12-30  Bruno Haible  <bruno@clisp.org>
12426
12427         Fix compilation error with Solaris cc.
12428         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12429         * lib/unicase/u16-is-invariant.c: Likewise.
12430         * lib/unicase/u32-is-invariant.c: Likewise.
12431         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12432
12433 2009-12-30  Bruno Haible  <bruno@clisp.org>
12434
12435         Fix test crash.
12436         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12437         locales.
12438         Reported by Simon Josefsson <simon@josefsson.org>.
12439
12440 2009-12-30  Bruno Haible  <bruno@clisp.org>
12441
12442         Fix compilation error on most platforms.
12443         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12444         Reported by Simon Josefsson <simon@josefsson.org>
12445         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12446
12447 2009-12-30  Eric Blake  <ebb9@byu.net>
12448
12449         futimens, utimensat: work around ntfs-3g bug
12450         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12451         a ctime bug is present, and expand workaround to cover ntfs-3g.
12452         * lib/utimens.c (fdutimens, lutimens): Likewise.
12453         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12454         (validate_timespec): Adjust return value.
12455         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12456         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12457         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12458
12459 2009-12-29  Eric Blake  <ebb9@byu.net>
12460
12461         link-warning: make usage consistent
12462         * modules/ctype (Depends-on): Add link-warning.
12463         (Makefile.am): Update rules accordingly.
12464         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12465         * modules/locale (Depends-on, Makefile.am): Likewise.
12466         * modules/sys_file (Makefile.am): Likewise.
12467         * modules/getopt-posix (Makefile.am): Delete unused link warning
12468         efforts.
12469         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12470         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12471         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12472         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12473
12474         stdio: remove unused variables
12475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12476         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12477         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12478
12479         tests: test more substitute headers
12480         * modules/ctype-tests: New file.
12481         * modules/dirent-tests: Likewise.
12482         * modules/spawn-tests: Likewise.
12483         * modules/sys_file-tests: Likewise.
12484         * modules/sys_ioctl-tests: Likewise.
12485         * modules/sys_wait-tests: Likewise.
12486         * tests/test-ctype.c: Likewise.
12487         * tests/test-dirent.c: Likewise.
12488         * tests/test-spawn.c: Likewise.
12489         * tests/test-sys_file.c: Likewise.
12490         * tests/test-sys_ioctl.c: Likewise.
12491         * tests/test-sys_wait.c: Likewise.
12492         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12493         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12494         whether or not flock is in use.
12495
12496         tests: remove License section from module
12497         * modules/arpa_inet-tests: Remove unneeded section.
12498         * modules/byteswap-tests: Likewise.
12499         * modules/ceilf-tests: Likewise.
12500         * modules/ceill-tests: Likewise.
12501         * modules/crypto/des-tests: Likewise.
12502         * modules/crypto/gc-arcfour-tests: Likewise.
12503         * modules/crypto/gc-arctwo-tests: Likewise.
12504         * modules/crypto/gc-des-tests: Likewise.
12505         * modules/crypto/gc-hmac-md5-tests: Likewise.
12506         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12507         * modules/crypto/gc-md2-tests: Likewise.
12508         * modules/crypto/gc-md4-tests: Likewise.
12509         * modules/crypto/gc-md5-tests: Likewise.
12510         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12511         * modules/crypto/gc-rijndael-tests: Likewise.
12512         * modules/crypto/gc-sha1-tests: Likewise.
12513         * modules/crypto/gc-tests: Likewise.
12514         * modules/crypto/md2-tests: Likewise.
12515         * modules/crypto/md4-tests: Likewise.
12516         * modules/fcntl-h-tests: Likewise.
12517         * modules/floorf-tests: Likewise.
12518         * modules/floorl-tests: Likewise.
12519         * modules/frexp-nolibm-tests: Likewise.
12520         * modules/frexp-tests: Likewise.
12521         * modules/frexpl-nolibm-tests: Likewise.
12522         * modules/frexpl-tests: Likewise.
12523         * modules/getaddrinfo-tests: Likewise.
12524         * modules/inttypes-tests: Likewise.
12525         * modules/isfinite-tests: Likewise.
12526         * modules/isinf-tests: Likewise.
12527         * modules/ldexpl-tests: Likewise.
12528         * modules/locale-tests: Likewise.
12529         * modules/math-tests: Likewise.
12530         * modules/netdb-tests: Likewise.
12531         * modules/netinet_in-tests: Likewise.
12532         * modules/printf-frexp-tests: Likewise.
12533         * modules/printf-frexpl-tests: Likewise.
12534         * modules/priv-set-tests: Likewise.
12535         * modules/random_r-tests: Likewise.
12536         * modules/round-tests: Likewise.
12537         * modules/roundf-tests: Likewise.
12538         * modules/roundl-tests: Likewise.
12539         * modules/search-tests: Likewise.
12540         * modules/select-tests: Likewise.
12541         * modules/signal-tests: Likewise.
12542         * modules/stdbool-tests: Likewise.
12543         * modules/stddef-tests: Likewise.
12544         * modules/stdint-tests: Likewise.
12545         * modules/stdio-tests: Likewise.
12546         * modules/stdlib-tests: Likewise.
12547         * modules/string-tests: Likewise.
12548         * modules/strings-tests: Likewise.
12549         * modules/sys_select-tests: Likewise.
12550         * modules/sys_socket-tests: Likewise.
12551         * modules/sys_stat-tests: Likewise.
12552         * modules/sys_time-tests: Likewise.
12553         * modules/sys_utsname-tests: Likewise.
12554         * modules/sysexits-tests: Likewise.
12555         * modules/time-tests: Likewise.
12556         * modules/trunc-tests: Likewise.
12557         * modules/truncf-tests: Likewise.
12558         * modules/truncl-tests: Likewise.
12559         * modules/tsearch-tests: Likewise.
12560         * modules/unistd-tests: Likewise.
12561         * modules/wchar-tests: Likewise.
12562         * modules/wctype-tests: Likewise.
12563
12564         tests: fix license on several tests
12565         * tests/test-des.c: Update to GPLv3+.
12566         * tests/test-flock.c: Likewise.
12567         * tests/test-fsync.c: Likewise.
12568         * tests/test-futimens.h: Likewise.
12569         * tests/test-gc-arcfour.c: Likewise.
12570         * tests/test-gc-arctwo.c: Likewise.
12571         * tests/test-gc-des.c: Likewise.
12572         * tests/test-gc-hmac-md5.c: Likewise.
12573         * tests/test-gc-hmac-sha1.c: Likewise.
12574         * tests/test-gc-md2.c: Likewise.
12575         * tests/test-gc-md4.c: Likewise.
12576         * tests/test-gc-md5.c: Likewise.
12577         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12578         * tests/test-gc-rijndael.c: Likewise.
12579         * tests/test-gc-sha1.c: Likewise.
12580         * tests/test-gc.c: Likewise.
12581         * tests/test-getcwd.c: Likewise.
12582         * tests/test-link.c: Likewise.
12583         * tests/test-link.h: Likewise.
12584         * tests/test-lutimens.h: Likewise.
12585         * tests/test-md2.c: Likewise.
12586         * tests/test-md4.c: Likewise.
12587         * tests/test-mkdir.h: Likewise.
12588         * tests/test-rename.c: Likewise.
12589         * tests/test-rename.h: Likewise.
12590         * tests/test-safe-alloc.c: Likewise.
12591         * tests/test-utimens-common.h: Likewise.
12592         * tests/test-utimens.h: Likewise.
12593
12594         maint: sync license texts
12595         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12596         * doc/gpl-3.0.texi: Revert copyright year update.
12597         * doc/lgpl-3.0.texi: Likewise.
12598
12599 2009-12-29  Jim Meyering  <meyering@redhat.com>
12600
12601         update nearly all FSF copyright year lists to include 2009
12602         The files named by the following are exempted:
12603             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12604               test -f "$dst" && { echo "$dst"; continue; }
12605               test -d "$dst" || continue
12606               echo "$dst"/$(basename "$src")
12607             done > exempt
12608             git ls-files tests/unictype >> exempt
12609         In the remaining files, convert to all-interval notation if
12610         - there is already at least one year interval like 2000-2003
12611         - the file is maintained by me
12612         - the file is in lib/uni*/, where that style already prevails
12613         Otherwise, use update-copyright's default.
12614
12615 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12616         and Eric Blake  <ebb9@byu.net>
12617
12618         tests: don't require debug system() to pass
12619         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12620         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12621         * tests/test-unlink.h (test_unlink_func): Likewise.
12622         * tests/test-fstatat.c (main): ...into callers.
12623         * tests/test-lstat.c (main): Likewise.
12624         * tests/test-rmdir.c (main): Likewise.
12625         * tests/test-unlink.c (main): Likewise.
12626         * tests/test-unlinkat.c (main): Likewise.
12627         * tests/test-areadlink-with-size.c (main): Don't require a
12628         debug-only system call to pass, aiding cross-testing to mingw.
12629         * tests/test-areadlink.c (main): Likewise.
12630         * tests/test-areadlinkat-with-size.c (main): Likewise.
12631         * tests/test-areadlinkat.c (main): Likewise.
12632         * tests/test-canonicalize-lgpl.c (main): Likewise.
12633         * tests/test-canonicalize.c (main): Likewise.
12634         * tests/test-chown.c (main): Likewise.
12635         * tests/test-fchownat.c (main): Likewise.
12636         * tests/test-lchown.c (main): Likewise.
12637         * tests/test-fdutimensat.c (main): Likewise.
12638         * tests/test-futimens.c (main): Likewise.
12639         * tests/test-link.c (main): Likewise.
12640         * tests/test-linkat.c (main): Likewise.
12641         * tests/test-mkdir.c (main): Likewise.
12642         * tests/test-mkdirat.c (main): Likewise.
12643         * tests/test-mkfifo.c (main): Likewise.
12644         * tests/test-mkfifoat.c (main): Likewise.
12645         * tests/test-mknod.c (main): Likewise.
12646         * tests/test-readlink.c (main): Likewise.
12647         * tests/test-remove.c (main): Likewise.
12648         * tests/test-rename.c (main): Likewise.
12649         * tests/test-renameat.c (main): Likewise.
12650         * tests/test-symlink.c (main): Likewise.
12651         * tests/test-symlinkat.c (main): Likewise.
12652         * tests/test-utimens.c (main): Likewise.
12653         * tests/test-utimensat.c (main): Likewise.
12654
12655 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12656
12657         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12658         on $(UNUSED_PARAMETER_H) to avoid build failure.
12659
12660 2009-12-28  Jim Meyering  <meyering@redhat.com>
12661
12662         update-copyright: you may specify a max. line length other than 72
12663         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12664
12665         maint: use consistent FSF copyright line syntax
12666         * lib/posixtm.c: Add missing comma in FSF copyright line.
12667         * lib/posixtm.h: Likewise.
12668         * lib/getugroups.c: Add missing ", Inc.".
12669
12670         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12671         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12672         FSF copyright line.  Remove trailing blanks.
12673
12674 2009-12-28  Eric Blake  <ebb9@byu.net>
12675
12676         test-dup2: reduce dependencies
12677         * modules/cloexec (Configure.ac): Set witness.
12678         * modules/dup2-tests (Depends-on): Drop cloexec.
12679         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12680         not present.
12681         Suggested by Bruno Haible.
12682
12683 2009-12-26  Bruno Haible  <bruno@clisp.org>
12684
12685         Remove an unneeded dependency.
12686         * modules/fseterr (Depends-on): Remove dup2.
12687
12688 2009-12-26  Eric Blake  <ebb9@byu.net>
12689
12690         tests: use macros.h in more places
12691         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12692         (ASSERT_STREAM): Provide default of stderr.
12693         * tests/test-dirent-safer.c: Include macros.h, using alternate
12694         stream for assertions.
12695         * tests/test-dup-safer.c: Likewise.
12696         * tests/test-freopen-safer.c: Likewise.
12697         * tests/test-getopt.c: Likewise.
12698         * tests/test-openat-safer.c: Likewise.
12699         * tests/test-pipe.c: Likewise.
12700         * tests/test-popen-safer.c: Likewise.
12701         * modules/dirent-safer-tests (Files): Include macros.h.
12702         * modules/unistd-safer-tests (Files): Likewise.
12703         * modules/freopen-safer-tests (Files): Likewise.
12704         * modules/getopt-posix-tests (Files): Likewise.
12705         * modules/openat-safer-tests (Files): Likewise.
12706         * modules/pipe-tests (Files): Likewise.
12707
12708 2009-12-26  Bruno Haible  <bruno@clisp.org>
12709
12710         javacomp: Portability fix.
12711         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12712         that it also works on Solaris.
12713
12714 2009-12-26  Bruno Haible  <bruno@clisp.org>
12715
12716         localename: Fix storage allocation of gl_locale_name_thread's result.
12717         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12718         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12719         all platforms that have 'uselocale'.
12720         (gl_locale_name_thread_unsafe): New function, extracted from
12721         gl_locale_name_thread.
12722         (gl_locale_name_thread): Call struniq on all platforms that have
12723         'uselocale'.
12724         * tests/test-localename.c (test_locale_name_thread): Check that the
12725         resulting strings are permanently allocated.
12726         * modules/localename-tests (Depends-on): Add strdup.
12727
12728 2009-12-26  Bruno Haible  <bruno@clisp.org>
12729
12730         * tests/test-localename.c (categories): Fill in the strings.
12731
12732 2009-12-26  Jim Meyering  <meyering@redhat.com>
12733
12734         isdir: complete the removal of m4/isdir.m4
12735         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12736
12737         isdir: clean up, since at least grep still uses it
12738         * lib/isdir.c: Include "isdir.h".
12739         (S_ISDIR): Remove now-unneeded definition.
12740         * modules/isdir (Files): Add lib/isdir.h.
12741         * lib/isdir.h: New file, with declaration.
12742         * m4/isdir.m4: Remove file -- unneeded.
12743
12744 2009-12-25  Bruno Haible  <bruno@clisp.org>
12745
12746         selinux-h: Make generated .h files standalone.
12747         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12748         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12749         * lib/se-selinux.in.h: Likewise.
12750         * modules/selinux-h (Depends-on): Add unused-parameter.
12751         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12752         selinux/selinux.h and selinux/context.h.
12753         Suggested by Eric Blake.
12754
12755 2009-12-25  Bruno Haible  <bruno@clisp.org>
12756
12757         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12758         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12759         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12760         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12761         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12762
12763 2009-12-24  Bruno Haible  <bruno@clisp.org>
12764
12765         openat: Fix warning.
12766         * lib/openat-proc.c: Include <unistd.h>.
12767
12768 2009-12-24  Bruno Haible  <bruno@clisp.org>
12769
12770         New module 'unused-parameter'.
12771         * build-aux/unused-parameter.h: New file, extracted from earlier
12772         gnulib-common.m4.
12773         * modules/unused-parameter: New file.
12774         * lib/unistr.h: Include unused-parameter.h.
12775         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12776         _GL_UNUSED.
12777         * modules/unistr/base (Depends-on): Add unused-parameter.
12778
12779 2009-12-24  Bruno Haible  <bruno@clisp.org>
12780
12781         Add missing dependencies to 'extensions' module.
12782         * m4/extensions.m4: Add comment.
12783         * modules/accept4 (Depends-on): Add extensions.
12784         * modules/dup3 (Depends-on): Likewise.
12785         * modules/fcntl (Depends-on): Likewise.
12786         * modules/futimens (Depends-on): Likewise.
12787         * modules/mknod (Depends-on): Likewise.
12788         * modules/pipe2 (Depends-on): Likewise.
12789         * modules/stat-time (Depends-on): Likewise.
12790         * modules/strcasestr-simple (Depends-on): Likewise.
12791         * modules/strsignal (Depends-on): Likewise.
12792         * modules/utimensat (Depends-on): Likewise.
12793         * modules/localcharset (Depends-on): Likewise. Needed because of
12794         gl_FCNTL_O_FLAGS.
12795         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12796         AC_TYPE_MBSTATE_T.
12797         * modules/wcsnrtombs (Depends-on): Likewise.
12798         * modules/wcsrtombs (Depends-on): Likewise.
12799
12800 2009-12-24  Bruno Haible  <bruno@clisp.org>
12801
12802         binary-io: Avoid gcc warning due to SET_BINARY.
12803         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12804         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12805
12806 2009-12-24  Bruno Haible  <bruno@clisp.org>
12807
12808         Avoid future namespace pollution on glibc systems.
12809         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12810         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12811         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12812         glibc systems.
12813
12814 2009-12-24  Bruno Haible  <bruno@clisp.org>
12815
12816         Refactor common macros used in tests.
12817         * tests/macros.h: New file.
12818         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12819         and/or <stdlib.h>, if appropriate.
12820         (ASSERT, SIZEOF): Remove macros.
12821         * tests/test-areadlink-with-size.c: Likewise.
12822         * tests/test-areadlinkat.c: Likewise.
12823         * tests/test-areadlinkat-with-size.c: Likewise.
12824         * tests/test-argmatch.c: Likewise.
12825         * tests/test-argv-iter.c: Likewise.
12826         * tests/test-array-mergesort.c: Likewise.
12827         * tests/test-array_list.c: Likewise.
12828         * tests/test-array_oset.c: Likewise.
12829         * tests/test-avltree_list.c: Likewise.
12830         * tests/test-avltree_oset.c: Likewise.
12831         * tests/test-avltreehash_list.c: Likewise.
12832         * tests/test-base64.c: Likewise.
12833         * tests/test-binary-io.c: Likewise.
12834         * tests/test-bitrotate.c: Likewise.
12835         * tests/test-btowc.c: Likewise.
12836         * tests/test-byteswap.c: Likewise.
12837         * tests/test-c-ctype.c: Likewise.
12838         * tests/test-c-stack.c: Likewise.
12839         * tests/test-c-strcasecmp.c: Likewise.
12840         * tests/test-c-strcasestr.c: Likewise.
12841         * tests/test-c-strncasecmp.c: Likewise.
12842         * tests/test-c-strstr.c: Likewise.
12843         * tests/test-canonicalize-lgpl.c: Likewise.
12844         * tests/test-canonicalize.c: Likewise.
12845         * tests/test-carray_list.c: Likewise.
12846         * tests/test-ceilf1.c: Likewise.
12847         * tests/test-ceilf2.c: Likewise.
12848         * tests/test-ceill.c: Likewise.
12849         * tests/test-chown.c: Likewise.
12850         * tests/test-cloexec.c: Likewise.
12851         * tests/test-copy-acl.c: Likewise.
12852         * tests/test-copy-file.c: Likewise.
12853         * tests/test-count-one-bits.c: Likewise.
12854         * tests/test-dprintf-posix.c: Likewise.
12855         * tests/test-dup2.c: Likewise.
12856         * tests/test-dup3.c: Likewise.
12857         * tests/test-duplocale.c: Likewise.
12858         * tests/test-fbufmode.c: Likewise.
12859         * tests/test-fchdir.c: Likewise.
12860         * tests/test-fchownat.c: Likewise.
12861         * tests/test-fcntl-safer.c: Likewise.
12862         * tests/test-fcntl.c: Likewise.
12863         * tests/test-fdopendir.c: Likewise.
12864         * tests/test-fdutimensat.c: Likewise.
12865         * tests/test-fflush2.c: Likewise.
12866         * tests/test-file-has-acl.c: Likewise.
12867         * tests/test-filevercmp.c: Likewise.
12868         * tests/test-flock.c: Likewise.
12869         * tests/test-floorf1.c: Likewise.
12870         * tests/test-floorf2.c: Likewise.
12871         * tests/test-floorl.c: Likewise.
12872         * tests/test-fnmatch.c: Likewise.
12873         * tests/test-fopen.h: Likewise.
12874         * tests/test-fpending.c: Likewise.
12875         * tests/test-fprintf-posix.c: Likewise.
12876         * tests/test-fpurge.c: Likewise.
12877         * tests/test-freadable.c: Likewise.
12878         * tests/test-freadahead.c: Likewise.
12879         * tests/test-freading.c: Likewise.
12880         * tests/test-freadptr.c: Likewise.
12881         * tests/test-freadptr2.c: Likewise.
12882         * tests/test-freadseek.c: Likewise.
12883         * tests/test-freopen.c: Likewise.
12884         * tests/test-frexp.c: Likewise.
12885         * tests/test-frexpl.c: Likewise.
12886         * tests/test-fseek.c: Likewise.
12887         * tests/test-fseeko.c: Likewise.
12888         * tests/test-fstatat.c: Likewise.
12889         * tests/test-fstrcmp.c: Likewise.
12890         * tests/test-fsync.c: Likewise.
12891         * tests/test-ftell.c: Likewise.
12892         * tests/test-ftello.c: Likewise.
12893         * tests/test-func.c: Likewise.
12894         * tests/test-futimens.c: Likewise.
12895         * tests/test-fwritable.c: Likewise.
12896         * tests/test-fwriting.c: Likewise.
12897         * tests/test-getcwd.c: Likewise.
12898         * tests/test-getdate.c: Likewise.
12899         * tests/test-getdelim.c: Likewise.
12900         * tests/test-getdtablesize.c: Likewise.
12901         * tests/test-getgroups.c: Likewise.
12902         * tests/test-getline.c: Likewise.
12903         * tests/test-getndelim2.c: Likewise.
12904         * tests/test-glob.c: Likewise.
12905         * tests/test-hash.c: Likewise.
12906         * tests/test-i-ring.c: Likewise.
12907         * tests/test-iconv-utf.c: Likewise.
12908         * tests/test-iconv.c: Likewise.
12909         * tests/test-idpriv-drop.c: Likewise.
12910         * tests/test-idpriv-droptemp.c: Likewise.
12911         * tests/test-inet_ntop.c: Likewise.
12912         * tests/test-inet_pton.c: Likewise.
12913         * tests/test-isblank.c: Likewise.
12914         * tests/test-isfinite.c: Likewise.
12915         * tests/test-isinf.c: Likewise.
12916         * tests/test-isnan.c: Likewise.
12917         * tests/test-isnand.h: Likewise.
12918         * tests/test-isnanf.h: Likewise.
12919         * tests/test-isnanl.h: Likewise.
12920         * tests/test-lchown.c: Likewise.
12921         * tests/test-ldexpl.c: Likewise.
12922         * tests/test-link.c: Likewise.
12923         * tests/test-linkat.c: Likewise.
12924         * tests/test-linked_list.c: Likewise.
12925         * tests/test-linkedhash_list.c: Likewise.
12926         * tests/test-localename.c: Likewise.
12927         * tests/test-lseek.c: Likewise.
12928         * tests/test-lstat.c: Likewise.
12929         * tests/test-mbmemcasecmp.c: Likewise.
12930         * tests/test-mbmemcasecoll.c: Likewise.
12931         * tests/test-mbrtowc.c: Likewise.
12932         * tests/test-mbscasecmp.c: Likewise.
12933         * tests/test-mbscasestr1.c: Likewise.
12934         * tests/test-mbscasestr2.c: Likewise.
12935         * tests/test-mbscasestr3.c: Likewise.
12936         * tests/test-mbscasestr4.c: Likewise.
12937         * tests/test-mbschr.c: Likewise.
12938         * tests/test-mbscspn.c: Likewise.
12939         * tests/test-mbsinit.c: Likewise.
12940         * tests/test-mbsncasecmp.c: Likewise.
12941         * tests/test-mbsnrtowcs.c: Likewise.
12942         * tests/test-mbspbrk.c: Likewise.
12943         * tests/test-mbspcasecmp.c: Likewise.
12944         * tests/test-mbsrchr.c: Likewise.
12945         * tests/test-mbsrtowcs.c: Likewise.
12946         * tests/test-mbsspn.c: Likewise.
12947         * tests/test-mbsstr1.c: Likewise.
12948         * tests/test-mbsstr2.c: Likewise.
12949         * tests/test-mbsstr3.c: Likewise.
12950         * tests/test-memchr.c: Likewise.
12951         * tests/test-memchr2.c: Likewise.
12952         * tests/test-memcmp.c: Likewise.
12953         * tests/test-memmem.c: Likewise.
12954         * tests/test-memrchr.c: Likewise.
12955         * tests/test-mkdir.c: Likewise.
12956         * tests/test-mkdirat.c: Likewise.
12957         * tests/test-mkfifo.c: Likewise.
12958         * tests/test-mkfifoat.c: Likewise.
12959         * tests/test-mknod.c: Likewise.
12960         * tests/test-nanosleep.c: Likewise.
12961         * tests/test-nl_langinfo.c: Likewise.
12962         * tests/test-obstack-printf.c: Likewise.
12963         * tests/test-open.c: Likewise.
12964         * tests/test-openat.c: Likewise.
12965         * tests/test-pipe-filter-gi1.c: Likewise.
12966         * tests/test-pipe-filter-gi2-main.c: Likewise.
12967         * tests/test-pipe-filter-ii1.c: Likewise.
12968         * tests/test-pipe-filter-ii2-main.c: Likewise.
12969         * tests/test-pipe2.c: Likewise.
12970         * tests/test-popen.h: Likewise.
12971         * tests/test-posixtm.c: Likewise.
12972         * tests/test-pread.c: Likewise.
12973         * tests/test-printf-frexp.c: Likewise.
12974         * tests/test-printf-frexpl.c: Likewise.
12975         * tests/test-printf-posix.c: Likewise.
12976         * tests/test-priv-set.c: Likewise.
12977         * tests/test-quotearg.c: Likewise.
12978         * tests/test-random_r.c: Likewise.
12979         * tests/test-rawmemchr.c: Likewise.
12980         * tests/test-rbtree_list.c: Likewise.
12981         * tests/test-rbtree_oset.c: Likewise.
12982         * tests/test-rbtreehash_list.c: Likewise.
12983         * tests/test-readlink.c: Likewise.
12984         * tests/test-remove.c: Likewise.
12985         * tests/test-rename.c: Likewise.
12986         * tests/test-renameat.c: Likewise.
12987         * tests/test-rmdir.c: Likewise.
12988         * tests/test-round1.c: Likewise.
12989         * tests/test-roundf1.c: Likewise.
12990         * tests/test-roundl.c: Likewise.
12991         * tests/test-safe-alloc.c: Likewise.
12992         * tests/test-sameacls.c: Likewise.
12993         * tests/test-set-mode-acl.c: Likewise.
12994         * tests/test-setenv.c: Likewise.
12995         * tests/test-sigaction.c: Likewise.
12996         * tests/test-signbit.c: Likewise.
12997         * tests/test-sleep.c: Likewise.
12998         * tests/test-snprintf-posix.c: Likewise.
12999         * tests/test-snprintf.c: Likewise.
13000         * tests/test-sprintf-posix.c: Likewise.
13001         * tests/test-stat-time.c: Likewise.
13002         * tests/test-stat.c: Likewise.
13003         * tests/test-strcasestr.c: Likewise.
13004         * tests/test-strchrnul.c: Likewise.
13005         * tests/test-strerror.c: Likewise.
13006         * tests/test-striconv.c: Likewise.
13007         * tests/test-striconveh.c: Likewise.
13008         * tests/test-striconveha.c: Likewise.
13009         * tests/test-strsignal.c: Likewise.
13010         * tests/test-strstr.c: Likewise.
13011         * tests/test-strtod.c: Likewise.
13012         * tests/test-strverscmp.c: Likewise.
13013         * tests/test-symlink.c: Likewise.
13014         * tests/test-symlinkat.c: Likewise.
13015         * tests/test-trunc1.c: Likewise.
13016         * tests/test-trunc2.c: Likewise.
13017         * tests/test-truncf1.c: Likewise.
13018         * tests/test-truncf2.c: Likewise.
13019         * tests/test-truncl.c: Likewise.
13020         * tests/test-uname.c: Likewise.
13021         * tests/test-unlink.c: Likewise.
13022         * tests/test-unlinkat.c: Likewise.
13023         * tests/test-unsetenv.c: Likewise.
13024         * tests/test-usleep.c: Likewise.
13025         * tests/test-utimens.c: Likewise.
13026         * tests/test-utimensat.c: Likewise.
13027         * tests/test-vasnprintf-posix.c: Likewise.
13028         * tests/test-vasnprintf-posix2.c: Likewise.
13029         * tests/test-vasnprintf.c: Likewise.
13030         * tests/test-vasprintf-posix.c: Likewise.
13031         * tests/test-vasprintf.c: Likewise.
13032         * tests/test-vdprintf-posix.c: Likewise.
13033         * tests/test-vfprintf-posix.c: Likewise.
13034         * tests/test-vprintf-posix.c: Likewise.
13035         * tests/test-vsnprintf-posix.c: Likewise.
13036         * tests/test-vsnprintf.c: Likewise.
13037         * tests/test-vsprintf-posix.c: Likewise.
13038         * tests/test-wcrtomb.c: Likewise.
13039         * tests/test-wcsnrtombs.c: Likewise.
13040         * tests/test-wcsrtombs.c: Likewise.
13041         * tests/test-wctype.c: Likewise.
13042         * tests/test-wcwidth.c: Likewise.
13043         * tests/test-xfprintf-posix.c: Likewise.
13044         * tests/test-xmemdup0.c: Likewise.
13045         * tests/test-xprintf-posix.c: Likewise.
13046         * tests/test-xvasprintf.c: Likewise.
13047         * tests/unicase/test-locale-language.c: Likewise.
13048         * tests/unicase/test-mapping-part1.h: Likewise.
13049         * tests/unicase/test-predicate-part1.h: Likewise.
13050         * tests/unicase/test-u8-casecmp.c: Likewise.
13051         * tests/unicase/test-u8-casecoll.c: Likewise.
13052         * tests/unicase/test-u8-casefold.c: Likewise.
13053         * tests/unicase/test-u8-is-cased.c: Likewise.
13054         * tests/unicase/test-u8-is-casefolded.c: Likewise.
13055         * tests/unicase/test-u8-is-lowercase.c: Likewise.
13056         * tests/unicase/test-u8-is-titlecase.c: Likewise.
13057         * tests/unicase/test-u8-is-uppercase.c: Likewise.
13058         * tests/unicase/test-u8-tolower.c: Likewise.
13059         * tests/unicase/test-u8-totitle.c: Likewise.
13060         * tests/unicase/test-u8-toupper.c: Likewise.
13061         * tests/unicase/test-u16-casecmp.c: Likewise.
13062         * tests/unicase/test-u16-casecoll.c: Likewise.
13063         * tests/unicase/test-u16-casefold.c: Likewise.
13064         * tests/unicase/test-u16-is-cased.c: Likewise.
13065         * tests/unicase/test-u16-is-casefolded.c: Likewise.
13066         * tests/unicase/test-u16-is-lowercase.c: Likewise.
13067         * tests/unicase/test-u16-is-titlecase.c: Likewise.
13068         * tests/unicase/test-u16-is-uppercase.c: Likewise.
13069         * tests/unicase/test-u16-tolower.c: Likewise.
13070         * tests/unicase/test-u16-totitle.c: Likewise.
13071         * tests/unicase/test-u16-toupper.c: Likewise.
13072         * tests/unicase/test-u32-casecmp.c: Likewise.
13073         * tests/unicase/test-u32-casecoll.c: Likewise.
13074         * tests/unicase/test-u32-casefold.c: Likewise.
13075         * tests/unicase/test-u32-is-cased.c: Likewise.
13076         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13077         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13078         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13079         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13080         * tests/unicase/test-u32-tolower.c: Likewise.
13081         * tests/unicase/test-u32-totitle.c: Likewise.
13082         * tests/unicase/test-u32-toupper.c: Likewise.
13083         * tests/unicase/test-ulc-casecmp.c: Likewise.
13084         * tests/unicase/test-ulc-casecoll.c: Likewise.
13085         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13086         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13087         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13088         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13089         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13090         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13091         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13092         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13093         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13094         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13095         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13096         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13097         * tests/unictype/test-bidi_byname.c: Likewise.
13098         * tests/unictype/test-bidi_name.c: Likewise.
13099         * tests/unictype/test-bidi_of.c: Likewise.
13100         * tests/unictype/test-bidi_test.c: Likewise.
13101         * tests/unictype/test-block_list.c: Likewise.
13102         * tests/unictype/test-block_of.c: Likewise.
13103         * tests/unictype/test-block_test.c: Likewise.
13104         * tests/unictype/test-categ_and.c: Likewise.
13105         * tests/unictype/test-categ_and_not.c: Likewise.
13106         * tests/unictype/test-categ_byname.c: Likewise.
13107         * tests/unictype/test-categ_name.c: Likewise.
13108         * tests/unictype/test-categ_none.c: Likewise.
13109         * tests/unictype/test-categ_of.c: Likewise.
13110         * tests/unictype/test-categ_or.c: Likewise.
13111         * tests/unictype/test-categ_test_withtable.c: Likewise.
13112         * tests/unictype/test-combining.c: Likewise.
13113         * tests/unictype/test-decdigit.c: Likewise.
13114         * tests/unictype/test-digit.c: Likewise.
13115         * tests/unictype/test-mirror.c: Likewise.
13116         * tests/unictype/test-numeric.c: Likewise.
13117         * tests/unictype/test-pr_byname.c: Likewise.
13118         * tests/unictype/test-pr_test.c: Likewise.
13119         * tests/unictype/test-predicate-part1.h: Likewise.
13120         * tests/unictype/test-scripts.c: Likewise.
13121         * tests/unictype/test-sy_c_ident.c: Likewise.
13122         * tests/unictype/test-sy_java_ident.c: Likewise.
13123         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13124         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13125         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13126         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13127         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13128         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13129         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13130         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13131         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13132         * tests/uninorm/test-compat-decomposition.c: Likewise.
13133         * tests/uninorm/test-composition.c: Likewise.
13134         * tests/uninorm/test-decomposing-form.c: Likewise.
13135         * tests/uninorm/test-decomposition.c: Likewise.
13136         * tests/uninorm/test-u8-nfc.c: Likewise.
13137         * tests/uninorm/test-u8-nfd.c: Likewise.
13138         * tests/uninorm/test-u8-nfkc.c: Likewise.
13139         * tests/uninorm/test-u8-nfkd.c: Likewise.
13140         * tests/uninorm/test-u8-normcmp.c: Likewise.
13141         * tests/uninorm/test-u8-normcoll.c: Likewise.
13142         * tests/uninorm/test-u16-nfc.c: Likewise.
13143         * tests/uninorm/test-u16-nfd.c: Likewise.
13144         * tests/uninorm/test-u16-nfkc.c: Likewise.
13145         * tests/uninorm/test-u16-nfkd.c: Likewise.
13146         * tests/uninorm/test-u16-normcmp.c: Likewise.
13147         * tests/uninorm/test-u16-normcoll.c: Likewise.
13148         * tests/uninorm/test-u32-nfc.c: Likewise.
13149         * tests/uninorm/test-u32-nfd.c: Likewise.
13150         * tests/uninorm/test-u32-nfkc.c: Likewise.
13151         * tests/uninorm/test-u32-nfkd.c: Likewise.
13152         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13153         * tests/uninorm/test-u32-normcmp.c: Likewise.
13154         * tests/uninorm/test-u32-normcoll.c: Likewise.
13155         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13156         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13157         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13158         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13159         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13160         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13161         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13162         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13163         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13164         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13165         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13166         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13167         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13168         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13169         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13170         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13171         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13172         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13173         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13174         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13175         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13176         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13177         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13178         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13179         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13180         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13181         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13182         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13183         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13184         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13185         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13186         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13187         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13188         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13189         * tests/uniwidth/test-u8-width.c: Likewise.
13190         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13191         * tests/uniwidth/test-u16-width.c: Likewise.
13192         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13193         * tests/uniwidth/test-u32-width.c: Likewise.
13194         * tests/uniwidth/test-uc_width.c: Likewise.
13195         * tests/uniwidth/test-uc_width2.c: Likewise.
13196         * modules/acl-tests (Files): Add tests/macros.h.
13197         * modules/areadlink-tests (Files): Likewise.
13198         * modules/areadlink-with-size-tests (Files): Likewise.
13199         * modules/areadlinkat-tests (Files): Likewise.
13200         * modules/areadlinkat-with-size-tests (Files): Likewise.
13201         * modules/argmatch-tests (Files): Likewise.
13202         * modules/argv-iter-tests (Files): Likewise.
13203         * modules/array-list-tests (Files): Likewise.
13204         * modules/array-mergesort-tests (Files): Likewise.
13205         * modules/array-oset-tests (Files): Likewise.
13206         * modules/avltree-list-tests (Files): Likewise.
13207         * modules/avltree-oset-tests (Files): Likewise.
13208         * modules/avltreehash-list-tests (Files): Likewise.
13209         * modules/base64-tests (Files): Likewise.
13210         * modules/binary-io-tests (Files): Likewise.
13211         * modules/bitrotate-tests (Files): Likewise.
13212         * modules/btowc-tests (Files): Likewise.
13213         * modules/byteswap-tests (Files): Likewise.
13214         * modules/c-ctype-tests (Files): Likewise.
13215         * modules/c-stack-tests (Files): Likewise.
13216         * modules/c-strcase-tests (Files): Likewise.
13217         * modules/c-strcasestr-tests (Files): Likewise.
13218         * modules/c-strstr-tests (Files): Likewise.
13219         * modules/canonicalize-lgpl-tests (Files): Likewise.
13220         * modules/canonicalize-tests (Files): Likewise.
13221         * modules/carray-list-tests (Files): Likewise.
13222         * modules/ceilf-tests (Files): Likewise.
13223         * modules/ceill-tests (Files): Likewise.
13224         * modules/chown-tests (Files): Likewise.
13225         * modules/cloexec-tests (Files): Likewise.
13226         * modules/copy-file-tests (Files): Likewise.
13227         * modules/count-one-bits-tests (Files): Likewise.
13228         * modules/dprintf-posix-tests (Files): Likewise.
13229         * modules/dup2-tests (Files): Likewise.
13230         * modules/dup3-tests (Files): Likewise.
13231         * modules/duplocale-tests (Files): Likewise.
13232         * modules/fbufmode-tests (Files): Likewise.
13233         * modules/fchdir-tests (Files): Likewise.
13234         * modules/fcntl-safer-tests (Files): Likewise.
13235         * modules/fcntl-tests (Files): Likewise.
13236         * modules/fdopendir-tests (Files): Likewise.
13237         * modules/fdutimensat-tests (Files): Likewise.
13238         * modules/fflush-tests (Files): Likewise.
13239         * modules/filevercmp-tests (Files): Likewise.
13240         * modules/flock-tests (Files): Likewise.
13241         * modules/floorf-tests (Files): Likewise.
13242         * modules/floorl-tests (Files): Likewise.
13243         * modules/fnmatch-tests (Files): Likewise.
13244         * modules/fopen-safer-tests (Files): Likewise.
13245         * modules/fopen-tests (Files): Likewise.
13246         * modules/fpending-tests (Files): Likewise.
13247         * modules/fprintf-posix-tests (Files): Likewise.
13248         * modules/fpurge-tests (Files): Likewise.
13249         * modules/freadable-tests (Files): Likewise.
13250         * modules/freadahead-tests (Files): Likewise.
13251         * modules/freading-tests (Files): Likewise.
13252         * modules/freadptr-tests (Files): Likewise.
13253         * modules/freadseek-tests (Files): Likewise.
13254         * modules/freopen-tests (Files): Likewise.
13255         * modules/frexp-nolibm-tests (Files): Likewise.
13256         * modules/frexp-tests (Files): Likewise.
13257         * modules/frexpl-nolibm-tests (Files): Likewise.
13258         * modules/frexpl-tests (Files): Likewise.
13259         * modules/fseek-tests (Files): Likewise.
13260         * modules/fseeko-tests (Files): Likewise.
13261         * modules/fstrcmp-tests (Files): Likewise.
13262         * modules/fsync-tests (Files): Likewise.
13263         * modules/ftell-tests (Files): Likewise.
13264         * modules/ftello-tests (Files): Likewise.
13265         * modules/func-tests (Files): Likewise.
13266         * modules/futimens-tests (Files): Likewise.
13267         * modules/fwritable-tests (Files): Likewise.
13268         * modules/fwriting-tests (Files): Likewise.
13269         * modules/getcwd-tests (Files): Likewise.
13270         * modules/getdate-tests (Files): Likewise.
13271         * modules/getdelim-tests (Files): Likewise.
13272         * modules/getdtablesize-tests (Files): Likewise.
13273         * modules/getgroups-tests (Files): Likewise.
13274         * modules/getline-tests (Files): Likewise.
13275         * modules/getndelim2-tests (Files): Likewise.
13276         * modules/glob-tests (Files): Likewise.
13277         * modules/hash-tests (Files): Likewise.
13278         * modules/i-ring-tests (Files): Likewise.
13279         * modules/iconv-tests (Files): Likewise.
13280         * modules/iconv_open-utf-tests (Files): Likewise.
13281         * modules/idpriv-drop-tests (Files): Likewise.
13282         * modules/idpriv-droptemp-tests (Files): Likewise.
13283         * modules/inet_ntop-tests (Files): Likewise.
13284         * modules/inet_pton-tests (Files): Likewise.
13285         * modules/isblank-tests (Files): Likewise.
13286         * modules/isfinite-tests (Files): Likewise.
13287         * modules/isinf-tests (Files): Likewise.
13288         * modules/isnan-tests (Files): Likewise.
13289         * modules/isnand-nolibm-tests (Files): Likewise.
13290         * modules/isnand-tests (Files): Likewise.
13291         * modules/isnanf-nolibm-tests (Files): Likewise.
13292         * modules/isnanf-tests (Files): Likewise.
13293         * modules/isnanl-nolibm-tests (Files): Likewise.
13294         * modules/isnanl-tests (Files): Likewise.
13295         * modules/lchown-tests (Files): Likewise.
13296         * modules/ldexpl-tests (Files): Likewise.
13297         * modules/link-tests (Files): Likewise.
13298         * modules/linkat-tests (Files): Likewise.
13299         * modules/linked-list-tests (Files): Likewise.
13300         * modules/linkedhash-list-tests (Files): Likewise.
13301         * modules/localename-tests (Files): Likewise.
13302         * modules/lseek-tests (Files): Likewise.
13303         * modules/lstat-tests (Files): Likewise.
13304         * modules/mbmemcasecmp-tests (Files): Likewise.
13305         * modules/mbmemcasecoll-tests (Files): Likewise.
13306         * modules/mbrtowc-tests (Files): Likewise.
13307         * modules/mbscasecmp-tests (Files): Likewise.
13308         * modules/mbscasestr-tests (Files): Likewise.
13309         * modules/mbschr-tests (Files): Likewise.
13310         * modules/mbscspn-tests (Files): Likewise.
13311         * modules/mbsinit-tests (Files): Likewise.
13312         * modules/mbsncasecmp-tests (Files): Likewise.
13313         * modules/mbsnrtowcs-tests (Files): Likewise.
13314         * modules/mbspbrk-tests (Files): Likewise.
13315         * modules/mbspcasecmp-tests (Files): Likewise.
13316         * modules/mbsrchr-tests (Files): Likewise.
13317         * modules/mbsrtowcs-tests (Files): Likewise.
13318         * modules/mbsspn-tests (Files): Likewise.
13319         * modules/mbsstr-tests (Files): Likewise.
13320         * modules/memchr-tests (Files): Likewise.
13321         * modules/memchr2-tests (Files): Likewise.
13322         * modules/memcmp-tests (Files): Likewise.
13323         * modules/memmem-tests (Files): Likewise.
13324         * modules/memrchr-tests (Files): Likewise.
13325         * modules/mkdir-tests (Files): Likewise.
13326         * modules/mkfifo-tests (Files): Likewise.
13327         * modules/mkfifoat-tests (Files): Likewise.
13328         * modules/mknod-tests (Files): Likewise.
13329         * modules/nanosleep-tests (Files): Likewise.
13330         * modules/nl_langinfo-tests (Files): Likewise.
13331         * modules/obstack-printf-tests (Files): Likewise.
13332         * modules/open-tests (Files): Likewise.
13333         * modules/openat-tests (Files): Likewise.
13334         * modules/pipe-filter-gi-tests (Files): Likewise.
13335         * modules/pipe-filter-ii-tests (Files): Likewise.
13336         * modules/pipe2-tests (Files): Likewise.
13337         * modules/popen-safer-tests (Files): Likewise.
13338         * modules/popen-tests (Files): Likewise.
13339         * modules/posixtm-tests (Files): Likewise.
13340         * modules/pread-tests (Files): Likewise.
13341         * modules/printf-frexp-tests (Files): Likewise.
13342         * modules/printf-frexpl-tests (Files): Likewise.
13343         * modules/printf-posix-tests (Files): Likewise.
13344         * modules/priv-set-tests (Files): Likewise.
13345         * modules/quotearg-tests (Files): Likewise.
13346         * modules/random_r-tests (Files): Likewise.
13347         * modules/rawmemchr-tests (Files): Likewise.
13348         * modules/rbtree-list-tests (Files): Likewise.
13349         * modules/rbtree-oset-tests (Files): Likewise.
13350         * modules/rbtreehash-list-tests (Files): Likewise.
13351         * modules/readlink-tests (Files): Likewise.
13352         * modules/remove-tests (Files): Likewise.
13353         * modules/rename-tests (Files): Likewise.
13354         * modules/renameat-tests (Files): Likewise.
13355         * modules/rmdir-tests (Files): Likewise.
13356         * modules/round-tests (Files): Likewise.
13357         * modules/roundf-tests (Files): Likewise.
13358         * modules/roundl-tests (Files): Likewise.
13359         * modules/safe-alloc-tests (Files): Likewise.
13360         * modules/setenv-tests (Files): Likewise.
13361         * modules/sigaction-tests (Files): Likewise.
13362         * modules/signbit-tests (Files): Likewise.
13363         * modules/sleep-tests (Files): Likewise.
13364         * modules/snprintf-posix-tests (Files): Likewise.
13365         * modules/snprintf-tests (Files): Likewise.
13366         * modules/sprintf-posix-tests (Files): Likewise.
13367         * modules/stat-tests (Files): Likewise.
13368         * modules/stat-time-tests (Files): Likewise.
13369         * modules/strcasestr-tests (Files): Likewise.
13370         * modules/strchrnul-tests (Files): Likewise.
13371         * modules/strerror-tests (Files): Likewise.
13372         * modules/striconv-tests (Files): Likewise.
13373         * modules/striconveh-tests (Files): Likewise.
13374         * modules/striconveha-tests (Files): Likewise.
13375         * modules/strsignal-tests (Files): Likewise.
13376         * modules/strstr-tests (Files): Likewise.
13377         * modules/strtod-tests (Files): Likewise.
13378         * modules/strverscmp-tests (Files): Likewise.
13379         * modules/symlink-tests (Files): Likewise.
13380         * modules/symlinkat-tests (Files): Likewise.
13381         * modules/trunc-tests (Files): Likewise.
13382         * modules/truncf-tests (Files): Likewise.
13383         * modules/truncl-tests (Files): Likewise.
13384         * modules/uname-tests (Files): Likewise.
13385         * modules/unicase/cased-tests (Files): Likewise.
13386         * modules/unicase/ignorable-tests (Files): Likewise.
13387         * modules/unicase/locale-language-tests (Files): Likewise.
13388         * modules/unicase/tolower-tests (Files): Likewise.
13389         * modules/unicase/totitle-tests (Files): Likewise.
13390         * modules/unicase/toupper-tests (Files): Likewise.
13391         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13392         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13393         * modules/unicase/u8-casefold-tests (Files): Likewise.
13394         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13395         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13396         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13397         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13398         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13399         * modules/unicase/u8-tolower-tests (Files): Likewise.
13400         * modules/unicase/u8-totitle-tests (Files): Likewise.
13401         * modules/unicase/u8-toupper-tests (Files): Likewise.
13402         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13403         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13404         * modules/unicase/u16-casefold-tests (Files): Likewise.
13405         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13406         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13407         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13408         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13409         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13410         * modules/unicase/u16-tolower-tests (Files): Likewise.
13411         * modules/unicase/u16-totitle-tests (Files): Likewise.
13412         * modules/unicase/u16-toupper-tests (Files): Likewise.
13413         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13414         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13415         * modules/unicase/u32-casefold-tests (Files): Likewise.
13416         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13417         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13418         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13419         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13420         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13421         * modules/unicase/u32-tolower-tests (Files): Likewise.
13422         * modules/unicase/u32-totitle-tests (Files): Likewise.
13423         * modules/unicase/u32-toupper-tests (Files): Likewise.
13424         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13425         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13426         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13427         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13428         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13429         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13430         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13431         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13432         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13433         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13434         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13435         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13436         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13437         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13438         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13439         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13440         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13441         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13442         * modules/unictype/block-list-tests (Files): Likewise.
13443         * modules/unictype/block-of-tests (Files): Likewise.
13444         * modules/unictype/block-test-tests (Files): Likewise.
13445         * modules/unictype/category-C-tests (Files): Likewise.
13446         * modules/unictype/category-Cc-tests (Files): Likewise.
13447         * modules/unictype/category-Cf-tests (Files): Likewise.
13448         * modules/unictype/category-Cn-tests (Files): Likewise.
13449         * modules/unictype/category-Co-tests (Files): Likewise.
13450         * modules/unictype/category-Cs-tests (Files): Likewise.
13451         * modules/unictype/category-L-tests (Files): Likewise.
13452         * modules/unictype/category-Ll-tests (Files): Likewise.
13453         * modules/unictype/category-Lm-tests (Files): Likewise.
13454         * modules/unictype/category-Lo-tests (Files): Likewise.
13455         * modules/unictype/category-Lt-tests (Files): Likewise.
13456         * modules/unictype/category-Lu-tests (Files): Likewise.
13457         * modules/unictype/category-M-tests (Files): Likewise.
13458         * modules/unictype/category-Mc-tests (Files): Likewise.
13459         * modules/unictype/category-Me-tests (Files): Likewise.
13460         * modules/unictype/category-Mn-tests (Files): Likewise.
13461         * modules/unictype/category-N-tests (Files): Likewise.
13462         * modules/unictype/category-Nd-tests (Files): Likewise.
13463         * modules/unictype/category-Nl-tests (Files): Likewise.
13464         * modules/unictype/category-No-tests (Files): Likewise.
13465         * modules/unictype/category-P-tests (Files): Likewise.
13466         * modules/unictype/category-Pc-tests (Files): Likewise.
13467         * modules/unictype/category-Pd-tests (Files): Likewise.
13468         * modules/unictype/category-Pe-tests (Files): Likewise.
13469         * modules/unictype/category-Pf-tests (Files): Likewise.
13470         * modules/unictype/category-Pi-tests (Files): Likewise.
13471         * modules/unictype/category-Po-tests (Files): Likewise.
13472         * modules/unictype/category-Ps-tests (Files): Likewise.
13473         * modules/unictype/category-S-tests (Files): Likewise.
13474         * modules/unictype/category-Sc-tests (Files): Likewise.
13475         * modules/unictype/category-Sk-tests (Files): Likewise.
13476         * modules/unictype/category-Sm-tests (Files): Likewise.
13477         * modules/unictype/category-So-tests (Files): Likewise.
13478         * modules/unictype/category-Z-tests (Files): Likewise.
13479         * modules/unictype/category-Zl-tests (Files): Likewise.
13480         * modules/unictype/category-Zp-tests (Files): Likewise.
13481         * modules/unictype/category-Zs-tests (Files): Likewise.
13482         * modules/unictype/category-and-not-tests (Files): Likewise.
13483         * modules/unictype/category-and-tests (Files): Likewise.
13484         * modules/unictype/category-byname-tests (Files): Likewise.
13485         * modules/unictype/category-name-tests (Files): Likewise.
13486         * modules/unictype/category-none-tests (Files): Likewise.
13487         * modules/unictype/category-of-tests (Files): Likewise.
13488         * modules/unictype/category-or-tests (Files): Likewise.
13489         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13490         * modules/unictype/combining-class-tests (Files): Likewise.
13491         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13492         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13493         * modules/unictype/ctype-blank-tests (Files): Likewise.
13494         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13495         * modules/unictype/ctype-digit-tests (Files): Likewise.
13496         * modules/unictype/ctype-graph-tests (Files): Likewise.
13497         * modules/unictype/ctype-lower-tests (Files): Likewise.
13498         * modules/unictype/ctype-print-tests (Files): Likewise.
13499         * modules/unictype/ctype-punct-tests (Files): Likewise.
13500         * modules/unictype/ctype-space-tests (Files): Likewise.
13501         * modules/unictype/ctype-upper-tests (Files): Likewise.
13502         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13503         * modules/unictype/decimal-digit-tests (Files): Likewise.
13504         * modules/unictype/digit-tests (Files): Likewise.
13505         * modules/unictype/mirror-tests (Files): Likewise.
13506         * modules/unictype/numeric-tests (Files): Likewise.
13507         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13508         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13509         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13510         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13511         Likewise.
13512         * modules/unictype/property-bidi-block-separator-tests (Files):
13513         Likewise.
13514         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13515         Likewise.
13516         * modules/unictype/property-bidi-common-separator-tests (Files):
13517         Likewise.
13518         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13519         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13520         Likewise.
13521         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13522         Likewise.
13523         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13524         Likewise.
13525         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13526         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13527         Likewise.
13528         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13529         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13530         Likewise.
13531         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13532         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13533         * modules/unictype/property-bidi-segment-separator-tests (Files):
13534         Likewise.
13535         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13536         * modules/unictype/property-byname-tests (Files): Likewise.
13537         * modules/unictype/property-combining-tests (Files): Likewise.
13538         * modules/unictype/property-composite-tests (Files): Likewise.
13539         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13540         * modules/unictype/property-dash-tests (Files): Likewise.
13541         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13542         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13543         Likewise.
13544         * modules/unictype/property-deprecated-tests (Files): Likewise.
13545         * modules/unictype/property-diacritic-tests (Files): Likewise.
13546         * modules/unictype/property-extender-tests (Files): Likewise.
13547         * modules/unictype/property-format-control-tests (Files): Likewise.
13548         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13549         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13550         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13551         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13552         * modules/unictype/property-hyphen-tests (Files): Likewise.
13553         * modules/unictype/property-id-continue-tests (Files): Likewise.
13554         * modules/unictype/property-id-start-tests (Files): Likewise.
13555         * modules/unictype/property-ideographic-tests (Files): Likewise.
13556         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13557         * modules/unictype/property-ids-trinary-operator-tests (Files):
13558         Likewise.
13559         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13560         * modules/unictype/property-iso-control-tests (Files): Likewise.
13561         * modules/unictype/property-join-control-tests (Files): Likewise.
13562         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13563         * modules/unictype/property-line-separator-tests (Files): Likewise.
13564         * modules/unictype/property-logical-order-exception-tests (Files):
13565         Likewise.
13566         * modules/unictype/property-lowercase-tests (Files): Likewise.
13567         * modules/unictype/property-math-tests (Files): Likewise.
13568         * modules/unictype/property-non-break-tests (Files): Likewise.
13569         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13570         * modules/unictype/property-numeric-tests (Files): Likewise.
13571         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13572         * modules/unictype/property-other-default-ignorable-code-point-tests
13573         (Files): Likewise.
13574         * modules/unictype/property-other-grapheme-extend-tests (Files):
13575         Likewise.
13576         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13577         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13578         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13579         * modules/unictype/property-other-math-tests (Files): Likewise.
13580         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13581         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13582         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13583         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13584         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13585         * modules/unictype/property-private-use-tests (Files): Likewise.
13586         * modules/unictype/property-punctuation-tests (Files): Likewise.
13587         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13588         * modules/unictype/property-radical-tests (Files): Likewise.
13589         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13590         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13591         * modules/unictype/property-space-tests (Files): Likewise.
13592         * modules/unictype/property-terminal-punctuation-tests (Files):
13593         Likewise.
13594         * modules/unictype/property-test-tests (Files): Likewise.
13595         * modules/unictype/property-titlecase-tests (Files): Likewise.
13596         * modules/unictype/property-unassigned-code-value-tests (Files):
13597         Likewise.
13598         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13599         * modules/unictype/property-uppercase-tests (Files): Likewise.
13600         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13601         * modules/unictype/property-white-space-tests (Files): Likewise.
13602         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13603         * modules/unictype/property-xid-start-tests (Files): Likewise.
13604         * modules/unictype/property-zero-width-tests (Files): Likewise.
13605         * modules/unictype/scripts-tests (Files): Likewise.
13606         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13607         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13608         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13609         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13610         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13611         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13612         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13613         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13614         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13615         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13616         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13617         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13618         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13619         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13620         * modules/uninorm/composition-tests (Files): Likewise.
13621         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13622         * modules/uninorm/decomposition-tests (Files): Likewise.
13623         * modules/uninorm/filter-tests (Files): Likewise.
13624         * modules/uninorm/nfc-tests (Files): Likewise.
13625         * modules/uninorm/nfd-tests (Files): Likewise.
13626         * modules/uninorm/nfkc-tests (Files): Likewise.
13627         * modules/uninorm/nfkd-tests (Files): Likewise.
13628         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13629         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13630         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13631         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13632         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13633         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13634         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13635         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13636         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13637         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13638         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13639         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13640         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13641         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13642         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13643         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13644         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13645         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13646         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13647         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13648         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13649         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13650         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13651         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13652         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13653         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13654         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13655         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13656         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13657         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13658         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13659         * modules/uniwidth/u8-width-tests (Files): Likewise.
13660         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13661         * modules/uniwidth/u16-width-tests (Files): Likewise.
13662         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13663         * modules/uniwidth/u32-width-tests (Files): Likewise.
13664         * modules/uniwidth/width-tests (Files): Likewise.
13665         * modules/unlink-tests (Files): Likewise.
13666         * modules/unsetenv-tests (Files): Likewise.
13667         * modules/usleep-tests (Files): Likewise.
13668         * modules/utimens-tests (Files): Likewise.
13669         * modules/utimensat-tests (Files): Likewise.
13670         * modules/vasnprintf-posix-tests (Files): Likewise.
13671         * modules/vasnprintf-tests (Files): Likewise.
13672         * modules/vasprintf-posix-tests (Files): Likewise.
13673         * modules/vasprintf-tests (Files): Likewise.
13674         * modules/vdprintf-posix-tests (Files): Likewise.
13675         * modules/vfprintf-posix-tests (Files): Likewise.
13676         * modules/vprintf-posix-tests (Files): Likewise.
13677         * modules/vsnprintf-posix-tests (Files): Likewise.
13678         * modules/vsnprintf-tests (Files): Likewise.
13679         * modules/vsprintf-posix-tests (Files): Likewise.
13680         * modules/wcrtomb-tests (Files): Likewise.
13681         * modules/wcsnrtombs-tests (Files): Likewise.
13682         * modules/wcsrtombs-tests (Files): Likewise.
13683         * modules/wctype-tests (Files): Likewise.
13684         * modules/wcwidth-tests (Files): Likewise.
13685         * modules/xmemdup0-tests (Files): Likewise.
13686         * modules/xprintf-posix-tests (Files): Likewise.
13687         * modules/xvasprintf-tests (Files): Likewise.
13688
13689 2009-12-24  Eric Blake  <ebb9@byu.net>
13690
13691         test-nanosleep: fix typo
13692         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13693         patch.
13694         Reported by Bruno Haible.
13695
13696 2009-12-24  Bruno Haible  <bruno@clisp.org>
13697
13698         Reduce namespace pollution on glibc systems.
13699         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13700         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13701         systems.
13702         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13703         <getopt.h> on glibc systems.
13704         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13705         systems.
13706         * lib/fcntl.c: Include <unistd.h> here instead.
13707
13708 2009-12-24  Bruno Haible  <bruno@clisp.org>
13709
13710         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13711
13712 2009-12-24  Eric Blake  <ebb9@byu.net>
13713
13714         tests: add signature checks
13715         * tests/signature.h (SIGNATURE_CHECK): New file.
13716         * modules/atexit-tests (Files): Use it.
13717         * modules/btowc-tests (Files): Likewise.
13718         * modules/canonicalize-lgpl-tests (Files): Likewise.
13719         * modules/ceilf-tests (Files): Likewise.
13720         * modules/ceill-tests (Files): Likewise.
13721         * modules/chown-tests (Files): Likewise.
13722         * modules/dprintf-posix-tests (Files): Likewise.
13723         * modules/dup2-tests (Files): Likewise.
13724         * modules/dup3-tests (Files): Likewise.
13725         * modules/duplocale-tests (Files): Likewise.
13726         * modules/fchdir-tests (Files): Likewise.
13727         * modules/fcntl-tests (Files): Likewise.
13728         * modules/fdopendir-tests (Files): Likewise.
13729         * modules/fflush-tests (Files): Likewise.
13730         * modules/flock-tests (Files): Likewise.
13731         * modules/floorf-tests (Files): Likewise.
13732         * modules/floorl-tests (Files): Likewise.
13733         * modules/fnmatch-tests (Files): Likewise.
13734         * modules/fopen-tests (Files): Likewise.
13735         * modules/fprintf-posix-tests (Files): Likewise.
13736         * modules/freopen-tests (Files): Likewise.
13737         * modules/frexp-nolibm-tests (Files): Likewise.
13738         * modules/frexp-tests (Files): Likewise.
13739         * modules/frexpl-nolibm-tests (Files): Likewise.
13740         * modules/frexpl-tests (Files): Likewise.
13741         * modules/fseek-tests (Files): Likewise.
13742         * modules/fseeko-tests (Files): Likewise.
13743         * modules/fsync-tests (Files): Likewise.
13744         * modules/ftell-tests (Files): Likewise.
13745         * modules/ftello-tests (Files): Likewise.
13746         * modules/futimens-tests (Files): Likewise.
13747         * modules/getaddrinfo-tests (Files): Likewise.
13748         * modules/getcwd-tests (Files): Likewise.
13749         * modules/getdelim-tests (Files): Likewise.
13750         * modules/getdtablesize-tests (Files): Likewise.
13751         * modules/getgroups-tests (Files): Likewise.
13752         * modules/gethostname-tests (Files): Likewise.
13753         * modules/getline-tests (Files): Likewise.
13754         * modules/getopt-posix-tests (Files): Likewise.
13755         * modules/gettimeofday-tests (Files): Likewise.
13756         * modules/glob-tests (Files): Likewise.
13757         * modules/iconv-tests (Files): Likewise.
13758         * modules/inet_ntop-tests (Files): Likewise.
13759         * modules/inet_pton-tests (Files): Likewise.
13760         * modules/isblank-tests (Files): Likewise.
13761         * modules/lchown-tests (Files): Likewise.
13762         * modules/ldexpl-tests (Files): Likewise.
13763         * modules/link-tests (Files): Likewise.
13764         * modules/linkat-tests (Files): Likewise.
13765         * modules/lseek-tests (Files): Likewise.
13766         * modules/lstat-tests (Files): Likewise.
13767         * modules/mbrtowc-tests (Files): Likewise.
13768         * modules/mbsinit-tests (Files): Likewise.
13769         * modules/mbsnrtowcs-tests (Files): Likewise.
13770         * modules/mbsrtowcs-tests (Files): Likewise.
13771         * modules/memchr-tests (Files): Likewise.
13772         * modules/memcmp-tests (Files): Likewise.
13773         * modules/memmem-tests (Files): Likewise.
13774         * modules/memrchr-tests (Files): Likewise.
13775         * modules/mkdir-tests (Files): Likewise.
13776         * modules/mkfifo-tests (Files): Likewise.
13777         * modules/mkfifoat-tests (Files): Likewise.
13778         * modules/mknod-tests (Files): Likewise.
13779         * modules/nanosleep-tests (Files): Likewise.
13780         * modules/nl_langinfo-tests (Files): Likewise.
13781         * modules/obstack-printf-tests (Files): Likewise.
13782         * modules/open-tests (Files): Likewise.
13783         * modules/openat-tests (Files): Likewise.
13784         * modules/perror-tests (Files): Likewise.
13785         * modules/pipe2-tests (Files): Likewise.
13786         * modules/poll-tests (Files): Likewise.
13787         * modules/popen-tests (Files): Likewise.
13788         * modules/posix_spawn-tests (Files): Likewise.
13789         * modules/posix_spawnp-tests (Files): Likewise.
13790         * modules/pread-tests (Files): Likewise.
13791         * modules/printf-posix-tests (Files): Likewise.
13792         * modules/pty-tests (Files): Likewise.
13793         * modules/random_r-tests (Files): Likewise.
13794         * modules/rawmemchr-tests (Files): Likewise.
13795         * modules/readlink-tests (Files): Likewise.
13796         * modules/remove-tests (Files): Likewise.
13797         * modules/rename-tests (Files): Likewise.
13798         * modules/renameat-tests (Files): Likewise.
13799         * modules/rmdir-tests (Files): Likewise.
13800         * modules/round-tests (Files): Likewise.
13801         * modules/roundf-tests (Files): Likewise.
13802         * modules/roundl-tests (Files): Likewise.
13803         * modules/select-tests (Files): Likewise.
13804         * modules/setenv-tests (Files): Likewise.
13805         * modules/sigaction-tests (Files): Likewise.
13806         * modules/sleep-tests (Files): Likewise.
13807         * modules/snprintf-posix-tests (Files): Likewise.
13808         * modules/snprintf-tests (Files): Likewise.
13809         * modules/sprintf-posix-tests (Files): Likewise.
13810         * modules/stat-tests (Files): Likewise.
13811         * modules/strcasestr-tests (Files): Likewise.
13812         * modules/strchrnul-tests (Files): Likewise.
13813         * modules/strerror-tests (Files): Likewise.
13814         * modules/strsignal-tests (Files): Likewise.
13815         * modules/strstr-tests (Files): Likewise.
13816         * modules/strtod-tests (Files): Likewise.
13817         * modules/strverscmp-tests (Files): Likewise.
13818         * modules/symlink-tests (Files): Likewise.
13819         * modules/symlinkat-tests (Files): Likewise.
13820         * modules/times-tests (Files): Likewise.
13821         * modules/trunc-tests (Files): Likewise.
13822         * modules/truncf-tests (Files): Likewise.
13823         * modules/truncl-tests (Files): Likewise.
13824         * modules/tsearch-tests (Files): Likewise.
13825         * modules/uname-tests (Files): Likewise.
13826         * modules/unlink-tests (Files): Likewise.
13827         * modules/unsetenv-tests (Files): Likewise.
13828         * modules/usleep-tests (Files): Likewise.
13829         * modules/utimensat-tests (Files): Likewise.
13830         * modules/vasprintf-tests (Files): Likewise.
13831         * modules/vdprintf-posix-tests (Files): Likewise.
13832         * modules/vfprintf-posix-tests (Files): Likewise.
13833         * modules/vprintf-posix-tests (Files): Likewise.
13834         * modules/vsnprintf-posix-tests (Files): Likewise.
13835         * modules/vsnprintf-tests (Files): Likewise.
13836         * modules/vsprintf-posix-tests (Files): Likewise.
13837         * modules/wcrtomb-tests (Files): Likewise.
13838         * modules/wcsnrtombs-tests (Files): Likewise.
13839         * modules/wcsrtombs-tests (Files): Likewise.
13840         * modules/wcwidth-tests (Files): Likewise.
13841         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13842         * tests/test-isinf.c (isinf): Likewise.
13843         * tests/test-isnan.c (isnan): Likewise.
13844         * tests/test-signbit.c (signbit): Likewise.
13845         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13846         declaration, either as macro or with correct signature.
13847         (select): Ensure function under test is declared with correct
13848         signature in correct header.
13849         * tests/test-atexit.c (atexit): Likewise.
13850         * tests/test-btowc.c (btowc): Likewise.
13851         * tests/test-canonicalize-lgpl.c (realpath)
13852         (canonicalize_file_name): Likewise.
13853         * tests/test-ceilf1.c (ceilf): Likewise.
13854         * tests/test-ceill.c (ceill): Likewise.
13855         * tests/test-chown.c (chown): Likewise.
13856         * tests/test-dprintf-posix.c (dprintf): Likewise.
13857         * tests/test-dup2.c (dup2): Likewise.
13858         * tests/test-dup3.c (dup3): Likewise.
13859         * tests/test-duplocale.c (duplocale): Likewise.
13860         * tests/test-fchdir.c (fchdir): Likewise.
13861         * tests/test-fchownat.c (fchownat): Likewise.
13862         * tests/test-fcntl.c (fcntl): Likewise.
13863         * tests/test-fdopendir.c (fdopendir): Likewise.
13864         * tests/test-fflush.c (fflush): Likewise.
13865         * tests/test-flock.c (flock): Likewise.
13866         * tests/test-floorf1.c (floorf): Likewise.
13867         * tests/test-floorl.c (floorl): Likewise.
13868         * tests/test-fnmatch.c (fnmatch): Likewise.
13869         * tests/test-fopen.c (fopen): Likewise.
13870         * tests/test-fprintf-posix.c (fprintf): Likewise.
13871         * tests/test-freopen.c (freopen): Likewise.
13872         * tests/test-frexp.c (frexp): Likewise.
13873         * tests/test-frexpl.c (frexpl): Likewise.
13874         * tests/test-fseek.c (fseek): Likewise.
13875         * tests/test-fseeko.c (fseeko): Likewise.
13876         * tests/test-fstatat.c (fstatat): Likewise.
13877         * tests/test-fsync.c (fsync): Likewise.
13878         * tests/test-ftell.c (ftell): Likewise.
13879         * tests/test-ftello.c (ftello): Likewise.
13880         * tests/test-futimens.c (futimens): Likewise.
13881         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13882         (gai_strerror): Likewise.
13883         * tests/test-getcwd.c (getcwd): Likewise.
13884         * tests/test-getdelim.c (getdelim): Likewise.
13885         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13886         * tests/test-getgroups.c (getgroups): Likewise.
13887         * tests/test-gethostname.c (gethostname): Likewise.
13888         * tests/test-getline.c (getline): Likewise.
13889         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13890         Likewise.
13891         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13892         * tests/test-glob.c (glob, globfree): Likewise.
13893         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13894         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13895         * tests/test-inet_pton.c (inet_pton): Likewise.
13896         * tests/test-isblank.c (isblank): Likewise.
13897         * tests/test-lchown.c (lchown): Likewise.
13898         * tests/test-ldexpl.c (ldexpl): Likewise.
13899         * tests/test-link.c (link): Likewise.
13900         * tests/test-linkat.c (linkat): Likewise.
13901         * tests/test-lseek.c (lseek): Likewise.
13902         * tests/test-lstat.c (lstat): Likewise.
13903         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13904         * tests/test-mbsinit.c (mbsinit): Likewise.
13905         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13906         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13907         * tests/test-memchr.c (memchr): Likewise.
13908         * tests/test-memcmp.c (memcmp): Likewise.
13909         * tests/test-memmem.c (memmem): Likewise.
13910         * tests/test-memrchr.c (memrchr): Likewise.
13911         * tests/test-mkdir.c (mkdir): Likewise.
13912         * tests/test-mkdirat.c (mkdirat): Likewise.
13913         * tests/test-mkfifo.c (mkfifo): Likewise.
13914         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13915         * tests/test-mknod.c (mknod): Likewise.
13916         * tests/test-nanosleep.c (nanosleep): Likewise.
13917         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13918         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13919         Likewise.
13920         * tests/test-open.c (open): Likewise.
13921         * tests/test-openat.c (openat): Likewise.
13922         * tests/test-perror.c (perror): Likewise.
13923         * tests/test-pipe2.c (pipe2): Likewise.
13924         * tests/test-poll.c (poll): Likewise.
13925         * tests/test-popen.c (popen, pclose): Likewise.
13926         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13927         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13928         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13929         (posix_spawn_file_actions_destroy)
13930         (posix_spawn_file_actions_addclose)
13931         (posix_spawn_file_actions_addopen)
13932         (posix_spawn_file_actions_adddup2): Likewise.
13933         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13934         * tests/test-pread.c (pread): Likewise.
13935         * tests/test-printf-posix.c (printf): Likewise.
13936         * tests/test-pty.c (openpty, forkpty): Likewise.
13937         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13938         (random_r): Likewise.
13939         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13940         * tests/test-readlink.c (readlink): Likewise.
13941         * tests/test-remove.c (remove): Likewise.
13942         * tests/test-rename.c (rename): Likewise.
13943         * tests/test-renameat.c (renameat): Likewise.
13944         * tests/test-rmdir.c (rmdir): Likewise.
13945         * tests/test-round1.c (round): Likewise.
13946         * tests/test-roundf1.c (roundf): Likewise.
13947         * tests/test-roundl.c (roundl): Likewise.
13948         * tests/test-setenv.c (setenv): Likewise.
13949         * tests/test-sigaction.c (sigaction): Likewise.
13950         * tests/test-sleep.c (sleep): Likewise.
13951         * tests/test-snprintf.c (snprintf): Likewise.
13952         * tests/test-sprintf-posix.c (sprintf): Likewise.
13953         * tests/test-stat.c (stat): Likewise.
13954         * tests/test-stpncpy.c (stpncpy): Likewise.
13955         * tests/test-strcasestr.c (strcasestr): Likewise.
13956         * tests/test-strchrnul.c (strchrnul): Likewise.
13957         * tests/test-strerror.c (strerror): Likewise.
13958         * tests/test-strsignal.c (strsignal): Likewise.
13959         * tests/test-strstr.c (strstr): Likewise.
13960         * tests/test-strtod.c (strtod): Likewise.
13961         * tests/test-strverscmp.c (strverscmp): Likewise.
13962         * tests/test-symlink.c (symlink): Likewise.
13963         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13964         * tests/test-times.c (times): Likewise.
13965         * tests/test-trunc1.c (trunc): Likewise.
13966         * tests/test-truncf1.c (truncf): Likewise.
13967         * tests/test-truncl.c (truncl): Likewise.
13968         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13969         Likewise.
13970         * tests/test-uname.c (uname): Likewise.
13971         * tests/test-unlink.c (unlink): Likewise.
13972         * tests/test-unlinkat.c (unlinkat): Likewise.
13973         * tests/test-unsetenv.c (unsetenv): Likewise.
13974         * tests/test-usleep.c (usleep): Likewise.
13975         * tests/test-utimensat.c (utimensat): Likewise.
13976         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
13977         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
13978         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
13979         * tests/test-vprintf-posix.c (vprintf): Likewise.
13980         * tests/test-vsnprintf.c (vsnprintf): Likewise.
13981         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13982         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13983         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13984         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13985         * tests/test-wcwidth.c (wcwidth): Likewise.
13986
13987         build: pull in conditional headers during GNULIB_POSIXCHECK
13988         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13989         definitions from any conditionally-included headers.
13990         * lib/stdlib.in.h (includes): Likewise.
13991         * lib/unistd.in.h (includes): Likewise.
13992
13993 2009-12-24  Bruno Haible  <bruno@clisp.org>
13994
13995         * tests/test-argv-iter.c: Include header file being tested immediately
13996         after config.h.
13997         * tests/test-base64.c: Likewise.
13998         * tests/test-flock.c: Likewise.
13999         * tests/test-fsync.c: Likewise.
14000         * tests/test-getdate.c: Likewise.
14001         * tests/test-getndelim2.c: Likewise.
14002         * tests/test-isfinite.c: Likewise.
14003         * tests/test-isinf.c: Likewise.
14004         * tests/test-strerror.c: Likewise.
14005         * tests/test-strsignal.c: Likewise.
14006
14007 2009-12-23  Eric Blake  <ebb9@byu.net>
14008
14009         unistd: work around cygwin bug
14010         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
14011         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
14012         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14013
14014 2009-12-23  Bruno Haible  <bruno@clisp.org>
14015
14016         localename: More tests.
14017         * tests/test-localename.c (SIZEOF): New macro.
14018         (categories): New variable.
14019         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
14020         test_locale_name_default): Add test w.r.t. thread locale.
14021         (test_locale_name_thread): New function.
14022         (main): Invoke it.
14023
14024         localename: Make aware of thread locale.
14025         * lib/localename.h (gl_locale_name_thread): New declaration.
14026         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
14027         behaviour with respect to thread locale.
14028         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
14029         <langinfo.h>, glthread/lock.h.
14030         (SIZE_BITS): New macro.
14031         (string_hash): New function.
14032         (struct hash_node): New type.
14033         (HASH_TABLE_SIZE): New macro.
14034         (struniq_hash_table, struniq_lock): New variables.
14035         (struniq): New function.
14036         (gl_locale_name_thread): New function.
14037         (gl_locale_name): Invoke it.
14038         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
14039         * modules/localename (Depends-on): Add lock.
14040         Reported by Mike Gran <spk121@yahoo.com>.
14041
14042 2009-12-23  Eric Blake  <ebb9@byu.net>
14043
14044         va-args: new module
14045         * modules/va-args: New file.
14046         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
14047         * MODULES.html.sh (Core language properties): Mention it.
14048
14049         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
14050         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
14051         named alias for __attribute__((__unused__)).
14052         * lib/chown.c: Update client.
14053         * lib/fchmodat.c: Likewise.
14054         * lib/fts.c: Likewise.
14055         * lib/getdate.y: Likewise.
14056         * lib/getgroups.c: Likewise.
14057         * lib/getopt.c: Likewise.
14058         * lib/getugroups.c: Likewise.
14059         * lib/mkdir.c: Likewise.
14060         * lib/mkfifo.c: Likewise.
14061         * lib/mkfifoat.c: Likewise.
14062         * lib/mknod.c: Likewise.
14063         * lib/mknodat.c: Likewise.
14064         * lib/readlink.c: Likewise.
14065         * lib/se-context.in.h: Likewise.
14066         * lib/se-selinux.in.h: Likewise.
14067         * lib/sockets.c: Likewise.
14068         * lib/symlink.c: Likewise.
14069         * lib/symlinkat.c: Likewise.
14070         * lib/unicodeio.c: Likewise.
14071         * lib/unistr.h: Likewise.
14072         * tests/test-areadlink.c: Likewise.
14073         * tests/test-areadlinkat.c: Likewise.
14074         * tests/test-filenamecat.c: Likewise.
14075         * tests/test-fseeko.c: Likewise.
14076         * tests/test-ftello.c: Likewise.
14077         * tests/test-getdate.c: Likewise.
14078         * tests/test-getgroups.c: Likewise.
14079         * tests/test-gethostname.c: Likewise.
14080         * tests/test-quotearg.c: Likewise.
14081         * tests/test-version-etc.c: Likewise.
14082         * tests/test-xalloc-die.c: Likewise.
14083         * tests/test-xfprintf-posix.c: Likewise.
14084         * tests/test-xprintf-posix.c: Likewise.
14085         * tests/test-xvasprintf.c: Likewise.
14086
14087         tests: avoid compiler warnings
14088         * tests/test-fcntl.c (main): Delete unused parameters.
14089         * tests/test-freopen-safer.c (main): Likewise.
14090         * tests/test-xalloc-die.c (main): Mark unused parameters.
14091         * tests/test-fseeko.c (main): Likewise.
14092         * tests/test-ftello.c (main): Likewise.
14093         * tests/test-nanosleep.c (main): Avoid declaration warning.
14094         * tests/test-sleep.c (main): Likewise.
14095         * tests/test-unsetenv.c (main): Silence warning about string
14096         literal.
14097         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14098
14099 2009-12-23  Bruno Haible  <bruno@clisp.org>
14100
14101         * tests/test-localename.c (test_locale_name): New function, extracted
14102         from main. Also test mixed situations.
14103         (test_locale_name_posix, test_locale_name_environ,
14104         test_locale_name_default): New functions.
14105         (main): Invoke them all.
14106         * modules/localename-tests (configure.ac): Test for newlocale.
14107
14108 2009-12-23  Bruno Haible  <bruno@clisp.org>
14109
14110         unistd: Ensure getcwd gets declared before being overridden.
14111         * lib/unistd.in.h: Conditionally include <io.h>.
14112
14113 2009-12-22  Bruno Haible  <bruno@clisp.org>
14114
14115         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14116         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14117         (gl_WCHAR_H): Invoke it.
14118         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14119         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14120         Reported by Karl Berry <karl@freefriends.org>.
14121
14122 2009-12-22  Eric Blake  <ebb9@byu.net>
14123
14124         math, unistd: avoid redundant includes
14125         * lib/math.in.h (isnan): No need to re-include <math.h>.
14126         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14127
14128         getsubopt: work around cygwin bug
14129         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14130         avoid conflicting with system getsubopt.
14131         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14132         bug.
14133
14134         getopt: synchronize from glibc
14135         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14136         parameter order.  Adjust all callers.
14137         (_getopt_internal_r, main): Adjust quoting in error messages.
14138         Drop considerations for outdated POSIX 1003.2 error message.
14139         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14140         callers.
14141         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14142
14143         test-getopt: test stderr behavior
14144         * modules/getopt-posix-tests (Depends-on): Add dup2.
14145         * tests/test-getopt.c (ASSERT): Avoid stderr.
14146         (main): Move stderr to a temporary file.
14147         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14148         Instead, add parameter to inform caller if output occurred.
14149         (test_getopt): Adjust all existing tests to expect silence, and
14150         add new tests of leading ":".
14151         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14152         glibc shortcomings with leading "-:" or "+:" in optstring.
14153         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14154         Likewise.
14155         * doc/posix-functions/getopt.texi (getopt): Likewise.
14156
14157         test-getopt: enhance test
14158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14159         supports optind=0.
14160         * tests/test-getopt.c (OPTIND_MIN): Move...
14161         * tests/test-getopt.h (OPTIND_MIN): ...here.
14162         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14163         Require that optind=0 works, since modern BSD supports it in
14164         addition to optreset, and since coreutils expects it.
14165         (test_getopt_long_only): New test.
14166         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14167         glibc shortcomings with 'W;', and enforcement of optind=0.
14168         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14169         Likewise.
14170
14171 2009-12-21  Bruno Haible  <bruno@clisp.org>
14172
14173         localename: Improvements for MacOS X and Cygwin.
14174         * lib/localename.h (gl_locale_name_environ): New declaration.
14175         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14176         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14177         (gl_locale_name_posix): Invoke it.
14178         (gl_locale_name_default): Add comments. Use Windows native API also on
14179         Cygwin.
14180
14181 2009-12-21  Bruno Haible  <bruno@clisp.org>
14182
14183         Update list of Win32 locale ids.
14184         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14185         (LANG_SAMI): Renamed from LANG_SAAMI.
14186         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14187         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14188         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14189         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14190         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14191         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14192         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14193         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14194         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14195         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14196         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14197         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14198         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14199         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14200         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14201         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14202         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14203         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14204         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14205         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14206         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14207         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14208         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14209         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14210         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14211         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14212         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14213         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14214         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14215         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14216         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14217         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14218         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14219         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14220         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14221         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14222         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14223         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14224         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14225         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14226         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14227         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14228         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14229         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14230         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14231         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14232         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14233         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14234         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14235         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14236         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14237         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14238         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14239         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14240         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14241         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14242         Add more languages and countries for Sami, Sorbian. Add more countries
14243         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14244         for Pashto. Change country for Syriac, Tswana.
14245
14246 2009-12-21  Eric Blake  <ebb9@byu.net>
14247
14248         test-utimens: avoid spurious failure
14249         * tests/test-chown.h (nap): Factor...
14250         * tests/nap.h: ...into new file.
14251         * tests/test-lchown.h (nap): Avoid duplication.
14252         * tests/test-utimens-common.h (nap): Use shared implementation,
14253         necessary on file systems with 1-second resolution.
14254         * modules/chown-tests (Files): Include new file.
14255         * modules/fdutimensat-tests (Files): Likewise.
14256         * modules/futimens-tests (Files): Likewise.
14257         * modules/lchown-tests (Files): Likewise.
14258         * modules/openat-tests (Files): Likewise.
14259         * modules/utimens-tests (Files): Likewise.
14260         * modules/utimensat-tests (Files): Likewise.
14261
14262 2009-12-19  Eric Blake  <ebb9@byu.net>
14263
14264         futimens, utimensat: work around Linux bug
14265         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14266         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14267         * lib/utimensat.c (rpl_utimensat): Work around it.
14268         * lib/futimens.c (rpl_futimens): Adjust comment.
14269
14270         utimens: work around Linux ctime bug
14271         * lib/utimens.c (detect_ctime_bug): New helper function.
14272         (update_timespec): Differentiate between workaround needed for
14273         this bug vs. what is needed for systems that lack utimensat.
14274         (fdutimens, lutimens): Work around bug.
14275
14276         utimens: check for ctime update
14277         * tests/test-utimens-common.h (check_ctime): Define.
14278         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14279         * tests/test-futimens.h (test_futimens): Likewise.
14280         * tests/test-lutimens.h (test_lutimens): Likewise.
14281         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14282         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14283
14284 2009-12-19  Bruno Haible  <bruno@clisp.org>
14285
14286         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14287         * tests/test-dprintf-posix2.sh: New file.
14288         * tests/test-dprintf-posix2.c: New file.
14289         * modules/dprintf-posix-tests (Files): Add them.
14290         (configure.ac): Check for getrlimit and setrlimit.
14291         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14292
14293 2009-12-19  Bruno Haible  <bruno@clisp.org>
14294
14295         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14296         * tests/test-fprintf-posix3.sh: New file.
14297         * tests/test-fprintf-posix3.c: New file.
14298         * modules/fprintf-posix-tests (Files): Add them.
14299         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14300
14301 2009-12-19  Eric Blake  <ebb9@byu.net>
14302
14303         dirfd: fix prototype
14304         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14305         * lib/dirfd.c (dirfd): Likewise.
14306
14307         canonicalize: reduce memory usage
14308         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14309         allocation to size.
14310         Reported by Solar Designer <solar@openwall.com>.
14311
14312 2009-12-19  Bruno Haible  <bruno@clisp.org>
14313
14314         New module attribute 'Applicability'.
14315         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14316         * gnulib-tool: New option --extract-applicability.
14317         (func_usage): Document it.
14318         (sed_extract_prog): Recognize it.
14319         (func_get_applicability): New function.
14320         (func_import): Generalize handling of 'link-warning' module.
14321         * modules/link-warning (Applicability): New section.
14322         * modules/arg-nonnull (Applicability): New section.
14323         Repoted by Simon Josefsson <simon@josefsson.org>.
14324
14325 2009-12-19  Bruno Haible  <bruno@clisp.org>
14326
14327         fflush: tweak
14328         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14329         * lib/fseeko.c (rpl_fseeko): Likewise.
14330
14331 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14332
14333         * lib/gl_list.h: Fix typo in comment.
14334
14335 2009-12-16  Eric Blake  <ebb9@byu.net>
14336
14337         fcntl: use to simplify other modules
14338         * modules/cloexec (Depends-on): Add fcntl.
14339         * modules/fchdir (Depends-on): Likewise.
14340         * modules/fd-safer-flag (Depends-on): Likewise.
14341         * modules/unistd-safer (Depends-on): Likewise.
14342         * modules/dup3 (configure.ac): Set module indicator.
14343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14344         missing.
14345         * lib/fchdir.c (_gl_register_dup): Fix comment.
14346         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14347         * lib/dup-safer.c (dup_safer): Likewise.
14348         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14349         * lib/dup3.c (dup3): Likewise.
14350         * tests/test-fchdir.c (main): Enhance test.
14351         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14352
14353         fcntl: port portions of fcntl to mingw
14354         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14355         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14356         replacement for mingw.
14357         * modules/fcntl (Description): Update.
14358         (Depends-on): Add dup2.
14359         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14360         * modules/fcntl-h (Makefile.am): Substitute it.
14361         * lib/fcntl.in.h (fcntl): Update declaration.
14362         (F_DUPFD, F_GETFD): New macros, when needed.
14363         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14364         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14365         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14366         we now guarantee.
14367
14368         fcntl: work around cygwin bug in F_DUPFD
14369         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14370         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14371         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14372         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14373         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14374
14375         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14376         * modules/fcntl (Files): List new files.
14377         (configure.ac): Run a test.
14378         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14379         * lib/fcntl.c (rpl_fcntl): Likewise.
14380         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14381         (gl_FCNTL_H): Always replace fcntl.h.
14382         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14383         * lib/fcntl.in.h (fcntl): Declare replacement.
14384         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14385         needed, plus a witness.
14386         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14387         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14388         * tests/test-fcntl.c: New file.
14389         * modules/fcntl-tests: Likewise.
14390
14391         binary-io: avoid potential compilation warning
14392         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14393         directives.
14394
14395         fflush: avoid compilation error on NetBSD
14396         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14397         between off_t and fpos_t, since the latter is sometimes a struct.
14398         * lib/fseeko.c (rpl_fseeko): Likewise.
14399         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14400
14401 2009-12-15  Eric Blake  <ebb9@byu.net>
14402
14403         fcntl-h, stdio, sys_ioctl: fix declarations
14404         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14405         function must not take arguments.
14406         * lib/sys_ioctl.in.h (ioctl): Likewise.
14407         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14408         (open): Add a link warning.
14409
14410 2009-12-15  Jim Meyering  <meyering@redhat.com>
14411
14412         areadlink, areadlink-with-size: relax license to LGPLv2+
14413         * modules/areadlink (License): Relax to LGPLv2+.
14414         * modules/areadlink-with-size (License): Likewise.
14415
14416 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14417             Bruno Haible  <bruno@clisp.org>
14418
14419         *printf: Fix memory leak.
14420         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14421         * lib/vfprintf.c (vfprintf): Likewise.
14422         * lib/dprintf.c (dprintf): Likewise.
14423         * lib/vdprintf.c (vdprintf): Likewise.
14424
14425 2009-12-14  Eric Blake  <ebb9@byu.net>
14426
14427         accept4: adjust module dependencies
14428         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14429
14430         utimens: one more try at avoiding compiler warning
14431         * lib/utimens.c (lutimens): Lower scope of result.
14432
14433 2009-12-13  Bruno Haible  <bruno@clisp.org>
14434
14435         Move the malloc checking from module 'list' to new module 'xlist'.
14436         * modules/xlist: New file.
14437         * lib/gl_xlist.h: New file.
14438         * lib/gl_xlist.c: New file.
14439         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14440         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14441         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14442         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14443         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14444         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14445         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14446         gl_sortedlist_nx_add): New declarations.
14447         (struct gl_list_implementation): Rename and change methods accordingly.
14448         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14449         (gl_list_nx_create): Renamed from gl_list_create.
14450         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14451         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14452         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14453         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14454         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14455         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14456         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14457         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14458         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14459         gl_list_create_empty.
14460         (gl_list_nx_create): Renamed from gl_list_create.
14461         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14462         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14463         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14464         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14465         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14466         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14467         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14468         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14469         * lib/gl_array_list.c: Don't include xalloc.h.
14470         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14471         NULL upon out-of-memory.
14472         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14473         out-of-memory.
14474         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14475         Change return type to 'int'.
14476         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14477         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14478         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14479         upon out-of-memory.
14480         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14481         upon out-of-memory.
14482         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14483         upon out-of-memory.
14484         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14485         upon out-of-memory.
14486         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14487         out-of-memory.
14488         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14489         Update.
14490         (gl_array_list_implementation): Update.
14491         * lib/gl_carray_list.c: Don't include xalloc.h.
14492         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14493         Return NULL upon out-of-memory.
14494         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14495         out-of-memory.
14496         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14497         Change return type to 'int'.
14498         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14499         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14500         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14501         upon out-of-memory.
14502         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14503         upon out-of-memory.
14504         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14505         out-of-memory.
14506         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14507         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14508         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14509         Update.
14510         (gl_carray_list_implementation): Update.
14511         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14512         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14513         gl_linked_create_empty. Return NULL upon out-of-memory.
14514         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14515         out-of-memory.
14516         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14517         Change return type to 'int'. Return -1 upon out-of-memory.
14518         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14519         out-of-memory.
14520         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14521         upon out-of-memory.
14522         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14523         upon out-of-memory.
14524         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14525         NULL upon out-of-memory.
14526         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14527         upon out-of-memory.
14528         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14529         out-of-memory.
14530         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14531         Update.
14532         * lib/gl_linked_list.c: Don't include xalloc.h.
14533         (gl_linked_list_implementation): Update.
14534         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14535         (add_to_bucket): Change return type to 'int'.
14536         (gl_linkedhash_list_implementation): Update.
14537         * lib/gl_anytree_list1.h (free_subtree): New function.
14538         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14539         gl_tree_create_empty. Return NULL upon out-of-memory.
14540         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14541         Change return type to 'int'. Return -1 upon out-of-memory.
14542         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14543         out-of-memory.
14544         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14545         (gl_tree_remove_node): New function, moved here from
14546         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14547         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14548         Update.
14549         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14550         malloc, not xmalloc. Return NULL upon out-of-memory.
14551         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14552         out-of-memory.
14553         (gl_tree_remove_node_from_tree): New function, extracted from
14554         gl_tree_remove_node.
14555         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14556         upon out-of-memory.
14557         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14558         out-of-memory.
14559         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14560         upon out-of-memory.
14561         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14562         upon out-of-memory.
14563         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14564         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14565         not xmalloc. Return NULL upon out-of-memory.
14566         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14567         out-of-memory.
14568         (gl_tree_remove_node_from_tree): New function, extracted from
14569         gl_tree_remove_node.
14570         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14571         upon out-of-memory.
14572         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14573         out-of-memory.
14574         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14575         upon out-of-memory.
14576         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14577         upon out-of-memory.
14578         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14579         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14580         gl_anytree_list1.h before gl_anyavltree_list2.h.
14581         (gl_avltree_list_implementation): Update.
14582         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14583         gl_anytree_list1.h before gl_anyavltree_list2.h.
14584         (gl_rbtree_list_implementation): Update.
14585         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14586         Change return type to 'int'. Return -1 upon out-of-memory. Use
14587         __builtin_expect.
14588         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14589         (gl_avltreehash_list_implementation): Update.
14590         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14591         (gl_rbtreehash_list_implementation): Update.
14592         * modules/array-list (Depends-on): Remove xalloc.
14593         * modules/carray-list (Depends-on): Likewise.
14594         * modules/linked-list (Depends-on): Likewise.
14595         * modules/linkedhash-list (Depends-on): Likewise.
14596         * modules/avltree-list (Depends-on): Likewise.
14597         * modules/rbtree-list (Depends-on): Likewise.
14598         * modules/avltreehash-list (Depends-on): Likewise.
14599         * modules/rbtreehash-list (Depends-on): Likewise.
14600
14601         * modules/xsublist: New file.
14602         * lib/gl_xsublist.h: New file.
14603         * lib/gl_xsublist.c: New file.
14604         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14605         (gl_sublist_nx_create): New declaration.
14606         * lib/gl_sublist.c: Don't include xalloc.h.
14607         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14608         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14609         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14610         Change return type to 'int'. Return -1 upon out-of-memory.
14611         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14612         upon out-of-memory.
14613         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14614         NULL upon out-of-memory.
14615         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14616         upon out-of-memory.
14617         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14618         NULL upon out-of-memory.
14619         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14620         NULL upon out-of-memory.
14621         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14622         upon out-of-memory.
14623         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14624         (gl_sublist_list_implementation): Update.
14625         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14626         upon out-of-memory.
14627         * modules/sublist (Depends-on): Remove xalloc.
14628
14629         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14630         * tests/test-carray_list.c: Likewise.
14631         * tests/test-linked_list.c: Likewise.
14632         * tests/test-linkedhash_list.c: Likewise.
14633         * tests/test-avltree_list.c: Likewise.
14634         * tests/test-rbtree_list.c: Likewise.
14635         * tests/test-avltreehash_list.c: Likewise.
14636         * tests/test-rbtreehash_list.c: Likewise.
14637         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14638         * modules/carray-list-tests (Makefile.am): Likewise.
14639         * modules/linked-list-tests (Makefile.am): Likewise.
14640         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14641         * modules/avltree-list-tests (Makefile.am): Likewise.
14642         * modules/rbtree-list-tests (Makefile.am): Likewise.
14643         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14644         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14645
14646         * NEWS: Mention the changes.
14647
14648         * lib/clean-temp.c: Include gl_xlist.h.
14649         * modules/clean-temp (Depends-on): Add xlist.
14650
14651         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14652         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14653
14654         * tests/test-array_oset.c: Include gl_xlist.h.
14655         * modules/array-oset-tests (Depends-on): Add xlist.
14656
14657         Reported by José E. Marchesi <jemarch@gnu.org>.
14658
14659 2009-12-13  Bruno Haible  <bruno@clisp.org>
14660
14661         Move the malloc checking from module 'oset' to new module 'xoset'.
14662         * modules/xoset: New file.
14663         * lib/gl_xoset.h: New file.
14664         * lib/gl_xoset.c: New file.
14665         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14666         declarations.
14667         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14668         (struct gl_oset_implementation): Rename and change methods accordingly.
14669         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14670         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14671         'int'. Mark as __warn_unused_result__.
14672         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14673         gl_oset_create_empty.
14674         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14675         'int'.
14676         * lib/gl_array_oset.c: Don't include xalloc.h.
14677         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14678         malloc, not xmalloc.
14679         (grow): Change return type to 'int'. Don't call xalloc_die.
14680         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14681         to 'int'.
14682         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14683         'int'.
14684         (gl_array_oset_implementation): Update.
14685         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14686         gl_tree_create_empty.
14687         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14688         'int'.
14689         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14690         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14691         xmalloc.
14692         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14693         not xmalloc.
14694         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14695         xmalloc.
14696         (gl_avltree_oset_implementation): Update.
14697         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14698         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14699         xmalloc.
14700         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14701         not xmalloc.
14702         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14703         xmalloc.
14704         (gl_rbtree_oset_implementation): Update.
14705         * modules/array-oset (Depends-on): Remove xalloc.
14706         * modules/avltree-oset (Depends-on): Likewise.
14707         * modules/rbtree-oset (Depends-on): Likewise.
14708         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14709         * tests/test-avltree_oset.c: Likewise.
14710         * tests/test-rbtree_oset.c: Likewise.
14711         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14712         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14713         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14714         * NEWS: Mention the change.
14715
14716 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14717
14718         maint.mk: allow a project to override release-prep commands
14719         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14720         commands into a new rule.
14721         (release-prep): New rule.
14722         (release-prep-hook): New overridable variable.
14723
14724 2009-12-13  Bruno Haible  <bruno@clisp.org>
14725
14726         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14727
14728 2009-12-13  Jim Meyering  <meyering@redhat.com>
14729
14730         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14731         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14732
14733 2009-12-12  Bruno Haible  <bruno@clisp.org>
14734
14735         duplocale: Tweak.
14736         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14737
14738 2009-12-12  Karl Berry  <karl@gnu.org>
14739
14740         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14741
14742 2009-12-12  Bruno Haible  <bruno@clisp.org>
14743
14744         * m4/po.m4: Undo incorrect untabification.
14745
14746 2009-12-12  Bruno Haible  <bruno@clisp.org>
14747
14748         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14749         * modules/c-strtod (Depends-on): Add locale.
14750         * modules/c-strtold (Depends-on): Likewise.
14751
14752 2009-12-12  Bruno Haible  <bruno@clisp.org>
14753
14754         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14755
14756 2009-12-11  Eric Blake  <ebb9@byu.net>
14757
14758         setenv: relax requirement in light of POSIX ruling
14759         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14760         not NULL.
14761         * tests/test-setenv.c (main): Relax test.
14762         * tests/test-unsetenv.c (main): Likewise.
14763         * doc/posix-functions/setenv.texi (setenv): Document this.
14764         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14765
14766 2009-12-11  Bruno Haible  <bruno@clisp.org>
14767
14768         New module 'fd-safer-flag'.
14769         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14770         * lib/dup-safer.c (dup_safer_flag): Remove function.
14771         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14772         * lib/fd-safer.c (fd_safer_flag): Remove function.
14773         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14774         * modules/cloexec (configure.ac): Drop indicator macro.
14775         * modules/fd-safer-flag: New file.
14776         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14777         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14778         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14779
14780 2009-12-11  Bruno Haible  <bruno@clisp.org>
14781
14782         Tests for module 'nl_langinfo'.
14783         * modules/nl_langinfo-tests: New file.
14784         * tests/test-nl_langinfo.sh: New file.
14785         * tests/test-nl_langinfo.c: New file.
14786
14787         New module 'nl_langinfo'.
14788         * lib/nl_langinfo.c: New file.
14789         * m4/nl_langinfo.m4: New file.
14790         * modules/nl_langinfo: New file.
14791         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14792
14793 2009-12-11  Bruno Haible  <bruno@clisp.org>
14794
14795         Tests for module 'langinfo'.
14796         * modules/langinfo-tests: New file.
14797         * tests/test-langinfo.c: New file.
14798
14799         New module 'langinfo'.
14800         * lib/langinfo.in.h: New file.
14801         * m4/langinfo_h.m4: New file.
14802         * modules/langinfo: New file.
14803         * doc/posix-headers/langinfo.texi: Mention the new module.
14804
14805 2009-12-11  Bruno Haible  <bruno@clisp.org>
14806
14807         * lib/config.charset: Untabify.
14808
14809 2009-12-11  Bruno Haible  <bruno@clisp.org>
14810
14811         * modules/unistd-safer (configure.ac): Drop indicator macro.
14812
14813 2009-12-11  Bruno Haible  <bruno@clisp.org>
14814
14815         Move pipe2-safer code to its own file.
14816         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14817         * lib/pipe-safer.c (pipe2_safer): Remove function.
14818         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14819         (Makefile.am): Add it to lib_SOURCES.
14820
14821 2009-12-10  Bruno Haible  <bruno@clisp.org>
14822
14823         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14824
14825 2009-12-10  Bruno Haible  <bruno@clisp.org>
14826
14827         Declare which arguments expect non-NULL values, for GCC and clang.
14828         * build-aux/arg-nonnull.h: New file.
14829         * modules/arg-nonnull: New file.
14830         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14831         (inet_ntop, inet_pton): Use it.
14832         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14833         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14834         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14835         (open, openat): Use it.
14836         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14837         (fnmatch): Use it.
14838         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14839         (getopt, getopt_long, getopt_long_only): Use it.
14840         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14841         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14842         Use it.
14843         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14844         (iconv_open): Use it.
14845         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14846         (strtoimax, strtoumax): Use it.
14847         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14848         (duplocale): Use it.
14849         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14850         (frexp, frexpl): Use it.
14851         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14852         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14853         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14854         (tsearch, tfind, tdelete, twalk): Use it.
14855         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14856         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14857         sigpending): Use it.
14858         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14859         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14860         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14861         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14862         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14863         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14864         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14865         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14866         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14867         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14868         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14869         Use it.
14870         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14871         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14872         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14873         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14874         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14875         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14876         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14877         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14878         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14879         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14880         strtoull, unsetenv): Use it.
14881         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14882         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14883         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14884         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14885         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14886         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14887         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14888         (strcasecmp, strncasecmp): Use it.
14889         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14890         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14891         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14892         rpl_setsockopt): Use it.
14893         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14894         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14895         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14896         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14897         (gettimeofday): Use it.
14898         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14899         (times): Use it.
14900         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14901         (uname): Use it.
14902         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14903         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14904         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14905         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14906         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14907         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14908         unlinkat, write): Use it.
14909         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14910         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14911         * lib/argv-iter.h: Include arg-nonnull.h.
14912         (_ATTRIBUTE_NONNULL_): Remove macro.
14913         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14914         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14915         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14916         optimization.
14917         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14918         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14919         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14920         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14921         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14922         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14923         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14924         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14925         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14926         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14927         * modules/dirent (Depends-on): Add arg-nonnull.
14928         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14929         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14930         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14931         * modules/fnmatch (Depends-on): Add arg-nonnull.
14932         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14933         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14934         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14935         * modules/glob (Depends-on): Add arg-nonnull.
14936         (Makefile.am): Insert arg-nonnull.h into glob.h.
14937         * modules/iconv_open (Depends-on): Add arg-nonnull.
14938         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14939         * modules/inttypes (Depends-on): Add arg-nonnull.
14940         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14941         * modules/locale (Depends-on): Add arg-nonnull.
14942         (Makefile.am): Insert arg-nonnull.h into locale.h.
14943         * modules/math (Depends-on): Add arg-nonnull.
14944         (Makefile.am): Insert arg-nonnull.h into math.h.
14945         * modules/netdb (Depends-on): Add arg-nonnull.
14946         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14947         * modules/search (Depends-on): Add arg-nonnull.
14948         (Makefile.am): Insert arg-nonnull.h into search.h.
14949         * modules/signal (Depends-on): Add arg-nonnull.
14950         (Makefile.am): Insert arg-nonnull.h into signal.h.
14951         * modules/spawn (Depends-on): Add arg-nonnull.
14952         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14953         * modules/stdio (Depends-on): Add arg-nonnull.
14954         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14955         * modules/stdlib (Depends-on): Add arg-nonnull.
14956         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14957         * modules/string (Depends-on): Add arg-nonnull.
14958         (Makefile.am): Insert arg-nonnull.h into string.h.
14959         * modules/strings (Depends-on): Add arg-nonnull.
14960         (Makefile.am): Insert arg-nonnull.h into strings.h.
14961         * modules/sys_socket (Depends-on): Add arg-nonnull.
14962         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14963         * modules/sys_stat (Depends-on): Add arg-nonnull.
14964         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14965         * modules/sys_time (Depends-on): Add arg-nonnull.
14966         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14967         * modules/sys_times (Depends-on): Add arg-nonnull.
14968         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14969         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14970         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14971         * modules/time (Depends-on): Add arg-nonnull.
14972         (Makefile.am): Insert arg-nonnull.h into time.h.
14973         * modules/unistd (Depends-on): Add arg-nonnull.
14974         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14975         * modules/wchar (Depends-on): Add arg-nonnull.
14976         (Makefile.am): Insert arg-nonnull.h into wchar.h.
14977         * modules/argv-iter (Depends-on): Add arg-nonnull.
14978         * tests/test-canonicalize.c (null_ptr): New function.
14979         (main): Use it.
14980         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
14981         (main): Use it.
14982         * tests/test-memmem.c (null_ptr): New function.
14983         (main): Use it.
14984         Reported by Jim Meyering.
14985
14986 2009-12-10  Bruno Haible  <bruno@clisp.org>
14987
14988         Use spaces for indentation, not tabs.
14989         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14990         * m4/*.m4: Untabify.
14991         * build-aux/*.h: Untabify.
14992         * tests/**/*.[hc]: Untabify.
14993         * README: New section "Indent with spaces, not TABs", based on
14994         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14995         * NEWS: Mention the change.
14996
14997 2009-12-10  Bruno Haible  <bruno@clisp.org>
14998
14999         pty test: Fix link error.
15000         * modules/pty-tests (Makefile.am): Add the default LDADD value to
15001         test_pty_LDADD.
15002
15003 2009-12-07  Simon Josefsson  <simon@josefsson.org>
15004
15005         * modules/pty: New file.
15006         * modules/pty-tests: New file.
15007         * m4/pty.m4: New file.
15008         * tests/test-pty.c: New file.
15009         * doc/glibc-headers/pty.texi: Modified.
15010         * doc/glibc-functions/forkpty.texi: Modified.
15011         * doc/glibc-functions/openpty.texi: Modified.
15012
15013 2009-12-10  Bruno Haible  <bruno@clisp.org>
15014
15015         Avoid syntax error in C++ mode.
15016         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
15017
15018 2009-12-10  Bruno Haible  <bruno@clisp.org>
15019
15020         Use sed with option -e.
15021         * gnulib-tool (func_version, func_emit_copyright_notice,
15022         func_emit_initmacro_end, func_import, func_create_testdir): Pass
15023         option -e to sed.
15024         * modules/link-warning (Makefile.am): Likewise.
15025
15026 2009-12-10  Jim Meyering  <meyering@redhat.com>
15027
15028         mgetgroups: do not write bytes beyond end of malloc'd buffer
15029         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
15030         username, we call getgroups with a one-element-shorter buffer,
15031         but still told it the length was original, max_n_groups.
15032
15033 2009-12-09  Eric Blake  <ebb9@byu.net>
15034
15035         cloexec: relax license
15036         * modules/cloexec (Maintainer): Add myself.
15037         (License): Use LGPL, not GPL.
15038
15039         link-warning: optimize generation
15040         * modules/link-warning (Makefile.am): Reduce process usage.
15041
15042 2009-12-09  Bruno Haible  <bruno@clisp.org>
15043
15044         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
15045         workaround was added on 2009-11-17.
15046
15047 2009-12-09  Jim Meyering  <meyering@redhat.com>
15048             Bruno Haible  <bruno@clisp.org>
15049
15050         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
15051         * modules/link-warning (Makefile.am): Make the comment-removing sed
15052         command more robust in the face of bootstrap-prepended comment lines.
15053
15054 2009-12-09  Bruno Haible  <bruno@clisp.org>
15055
15056         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
15057         most one group.
15058
15059 2009-12-09  Simon Josefsson <simon@josefsson.org>
15060             Bruno Haible  <bruno@clisp.org>
15061
15062         * build-aux/link-warning.h: Add copyright notice.
15063         * modules/link-warning (Makefile.am): Generate link-warning.h from
15064         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
15065         * NEWS: Mention change in link-warning module.
15066         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
15067         * modules/dirent (Makefile.am): Add dependency to dirent.h.
15068         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
15069         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
15070         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
15071         * modules/math (Makefile.am): Add dependency to math.h.
15072         * modules/search (Makefile.am): Add dependency to search.h.
15073         * modules/signal (Makefile.am): Add dependency to signal.h.
15074         * modules/spawn (Makefile.am): Add dependency to spawn.h.
15075         * modules/stdio (Makefile.am): Add dependency to stdio.h.
15076         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15077         * modules/string (Makefile.am): Add dependency to string.h.
15078         * modules/strings (Makefile.am): Add dependency to strings.h.
15079         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15080         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15081         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15082         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15083         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15084         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15085         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15086         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15087         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15088
15089 2009-12-09  Bruno Haible  <bruno@clisp.org>
15090
15091         fchdir: Optimize away rpl_fstat when possible.
15092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15093         REPLACE_OPEN_DIRECTORY.
15094         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15095
15096 2009-12-09  Bruno Haible  <bruno@clisp.org>
15097
15098         * lib/fchdir.c: Update comment.
15099
15100 2009-12-09  Bruno Haible  <bruno@clisp.org>
15101
15102         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15103
15104 2009-12-08  Eric Blake  <ebb9@byu.net>
15105
15106         fchdir: avoid memory leak on re-registration.
15107         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15108
15109 2009-12-08  Jim Meyering  <meyering@redhat.com>
15110
15111         init.sh: avoid Solaris 10 /bin/sh portability problem
15112         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15113         sourced script:
15114           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15115           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15116           bar
15117         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15118         and two tests used that idiom.
15119         * tests/init.sh: Update suggested usage comments.
15120         (path_prepend_): New function, to be used in place
15121         of the --src-path=DIR option.
15122         (setup_): Move PATH-prepending code into path_prepend_.
15123         * tests/test-pread.sh: Adapt to new usage.
15124         * tests/test-xalloc-die.sh: Likewise.
15125
15126 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15127
15128         * doc/gnulib.texi (Glibc pty.h): Add.
15129         * doc/glibc-functions/forkpty.texi: Add.
15130         * doc/glibc-functions/openpty.texi: Add.
15131         Suggested by Bruno Haible.
15132
15133 2009-12-08  Eric Blake  <ebb9@byu.net>
15134
15135         fchdir: fix logic bugs
15136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15137         * tests/test-fchdir.c (main): Enhance test.
15138         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15139         is in use.
15140
15141         dup2: fix logic bugs
15142         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15143         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15144         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15145         exists.
15146         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15147
15148 2009-12-07  Eric Blake  <ebb9@byu.net>
15149
15150         unlink: fix m4 detection
15151         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15152
15153         unistd-safer: add unit test
15154         * modules/unistd-safer-tests: New file.
15155         * tests/test-dup-safer.c: Likewise.
15156         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15157         * tests/test-dup2.c (setmode): Likewise.
15158         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15159
15160         cloexec: preserve text vs. binary across dup_cloexec
15161         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15162         mode.
15163         * modules/dup2-tests (Depends-on): Add binary-io.
15164         * modules/cloexec-tests (Depends-on): Likewise.
15165         * tests/test-dup2.c (setmode, is_mode): New helpers.
15166         (main): Add tests that translation mode is preserved.
15167         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15168         Reported by Bruno Haible.
15169
15170         mgetgroups: reduce duplicate listings
15171         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15172         resulting array.
15173         * tests/test-chown.h (test_chown): Simplify client.
15174         * tests/test-lchown.h (test_lchown): Likewise.
15175
15176 2009-12-06  Bruno Haible  <bruno@clisp.org>
15177
15178         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15179         value.
15180
15181 2009-12-06  Bruno Haible  <bruno@clisp.org>
15182
15183         * lib/progname.c: Include stdio.h, stdlib.h.
15184         (set_program_name): Reject a NULL argument.
15185
15186 2009-12-05  Eric Blake  <ebb9@byu.net>
15187
15188         pipe2-safer: new module
15189         * modules/pipe2-safer: New file.
15190         * lib/unistd-safer.h (pipe2_safer): New prototype.
15191         * lib/unistd--.h (pipe2): New wrapper.
15192         * lib/pipe-safer.c (pipe2_safer): New function.
15193         * modules/pipe (Depends-on): Add pipe2-safer.
15194         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15195
15196         stdlib-safer: preserve cloexec flag for mkostemp[s]
15197         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15198         fd_safer_flag.
15199
15200         unistd-safer: allow preservation of cloexec status via flag
15201         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15202         prototypes.
15203         * lib/dup-safer.c (dup_safer_flag): New function.
15204         * lib/fd-safer.c (fd_safer_flag): Likewise.
15205         * modules/cloexec (configure.ac): Set witness.
15206
15207         test-dup2: enhance test
15208         * modules/dup2-tests (Depends-on): Add cloexec.
15209         * tests/test-dup2.c (main): Enhance test.
15210
15211         cloexec: add dup_cloexec
15212         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15213         header and comments.
15214         * lib/cloexec.c (set_cloexec_flag): Add comments.
15215         (dup_cloexec): New function, with mingw implementation borrowed
15216         from...
15217         * lib/w32spawn.h (dup_noinherit): ...here.
15218         * modules/execute (Depends-on): Add cloexec.
15219         * modules/pipe (Depends-on): Likewise.
15220         * modules/cloexec (Depends-on): Add dup2.
15221         * modules/cloexec-tests (Files): New file.
15222         * tests/test-cloexec.c: Likewise.
15223
15224         test-xalloc-die: fix test for mingw
15225         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15226         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15227         directory and .exe suffix off argv[0] output.
15228
15229         test-fseeko: fix test for mingw
15230         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15231         than undefining fseek, so test will pass on mingw.
15232
15233 2009-12-05  Bruno Haible  <bruno@clisp.org>
15234
15235         * lib/progname.h (set_program_name): Clarify specification.
15236         * lib/progname.c (set_program_name): Likewise.
15237         Reported by Jim Meyering.
15238
15239 2009-12-05  Jim Meyering  <meyering@redhat.com>
15240
15241         maint.mk: backslash-escape parens in default regexp
15242         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15243         backslash-escape the literal parentheses.
15244
15245         maint.mk: news-date-check: use grep -E
15246         * top/maint.mk (today): Define a Make variable, not a...
15247         (news-date-check): ...shell variable.
15248         (news-date-regexp): Use the Make variable.
15249         Use grep's -E option.  Change the failing diagnostic to mention
15250         the variable, $(news-date-regexp).
15251
15252 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15253
15254         maintainer-makefile: allow customization of NEWS entry format
15255         * top/maint.mk (news-date-regexp): New overridable variable.
15256         (news-date-check): Use it.
15257
15258 2009-12-04  Eric Blake  <ebb9@byu.net>
15259
15260         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15261         * lib/mgetgroups.h (xgetgroups): New prototype.
15262         * lib/mgetgroups.c (xgetgroups): New wrapper.
15263         (mgetgroups): Handle ENOSYS.
15264         * modules/mgetgroups (Depends-on): Add realloc.
15265         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15266
15267         mgetgroups: avoid argument promotion issues with -1
15268         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15269         for invalid gid_t.
15270         * tests/test-chown.h (getegid, test_chown): Likewise.
15271         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15272
15273 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15274
15275         exclude: Fix header file problems.
15276         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15277
15278 2009-12-01  Jim Meyering  <meyering@redhat.com>
15279
15280         fts: fts_open: do not let an empty string cause immediate failure
15281         This is required in support of GNU rm, for which the command
15282         "rm A '' B" must process and remove both A and B, in spite of
15283         the empty string argument.
15284         * lib/fts.c (fts_open): Do not let the presence of an empty string
15285         cause fts_open to fail immediately.  Most fts-using tools must be
15286         able to process all arguments, in order, and can be expected to
15287         diagnose such arguments themselves.
15288
15289 2009-11-30  Eric Blake  <ebb9@byu.net>
15290
15291         utimens: fix compilation error
15292         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15293         Declare variable at right scope.
15294
15295 2009-11-29  Jim Meyering  <meyering@redhat.com>
15296
15297         bootstrap: handle perl-5.11's changed --version output
15298         * build-aux/bootstrap (get_version): Handle perl separately,
15299         since perl-5.11's --version output is different.
15300
15301 2009-11-28  Jim Meyering  <meyering@redhat.com>
15302
15303         userspec: depend on the inttostr module, too
15304         * modules/userspec (Depends-on): Add inttostr.
15305
15306         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15307         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15308         number of MAXUID when it evaluates to (uid_t) -1.
15309         Likewise for group ID.  Reported by Matt McCutchen in
15310         <http://savannah.gnu.org/bugs/?28113>
15311
15312         userspec: reformat to use spaces, not TABs
15313         * lib/userspec.c: Expand TABs to spaces.
15314         Add Emacs' "indent-tabs-mode: nil" hint.
15315
15316 2009-11-27  Eric Blake  <ebb9@byu.net>
15317
15318         getopt-gnu: flush out another BSD bug
15319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15320         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15321         flush out BSD bug.
15322         * tests/test-getopt.h (test_getopt): End lists with NULL.
15323         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15324         (test_getopt_long_posix): Enhance test.
15325         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15326         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15327         getopt-gnu.
15328         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15329         Likewise.
15330
15331 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15332
15333         * modules/idpriv-droptemp-tests (Notice): Fix text.
15334
15335 2009-11-27  Jim Meyering  <meyering@redhat.com>
15336
15337         test-xalloc-die: avoid spurious failure due to libtool argv difference
15338         In a libtool-enabled project, this test would fail due to a difference
15339         in the emitted program name, e.g.,
15340         -test-xalloc-die: memory exhausted
15341         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15342         Use program to avoid that.
15343         * modules/xalloc-die-tests (Depends-on): Add progname.
15344         * tests/test-xalloc-die.c: Include progname.h".
15345         (program_name): Remove decl.
15346         (main): Call set_program_name.
15347         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15348
15349 2009-11-26  Richard Jones  <rjones@redhat.com>
15350
15351         w32sock: leave win32 error in place.
15352         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15353
15354 2009-11-26  Eric Blake  <ebb9@byu.net>
15355
15356         init.sh: suggest to use skip_ and fail_ functions in comments
15357         * tests/init.sh: Add a sentence.
15358
15359 2009-11-25  Bruno Haible  <bruno@clisp.org>
15360
15361         init.sh: add documentation in comments
15362         * tests/init.sh: Add some developer and user documentation.
15363
15364 2009-11-26  Jim Meyering  <meyering@redhat.com>
15365
15366         init.sh: accommodate even those who specify bogus srcdir manually
15367         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15368         configure-time tests to be sanitized, so that there is no need to
15369         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15370         (with no double quotes) suffices.  However, since tests may be
15371         invoked manually, and since you may explicitly set srcdir to the
15372         name of a directory containing spaces, do quote its uses here.
15373         * tests/test-pread.sh: Likewise.
15374         Suggested by Bruno Haible.
15375
15376         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15377         * tests/test-pread.sh: Write no data into the pipe, because
15378         test-pread actually reads none.  This avoids a diagnostic,
15379         "bash: echo: write error: Broken pipe", that arises in the unusual
15380         event something is ignoring SIGPIPE, and might be interpreted
15381         as some sort of failure.  Reported by Bruno Haible.
15382
15383 2009-11-25  Jim Meyering  <meyering@redhat.com>
15384
15385         test-pread: cover failure with ESPIPE and EINVAL
15386         * tests/test-pread.c (main): Test for failure, too.
15387         * tests/test-pread.sh: Invoke with stdin on a pipe.
15388         Suggested by Eric Blake.
15389
15390         pread: improvement and fix
15391         * modules/pread (Depends-on): Depend on lseek, for portability to
15392         e.g., mingw.  Suggested by Eric Blake.
15393         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15394
15395         unistd.in.h: correct declaration of pread
15396         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15397         Reported by Richard W.M. Jones.
15398
15399         test-pread.sh: distribute the test script
15400         * modules/pread-tests (Files): Include test-pread.sh.
15401
15402         test-pread.sh: clean up
15403         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15404         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15405         That is unnecessary, since it's always ".".
15406         Suggestion from Eric Blake.
15407
15408         test-pread.sh: make executable
15409         * tests/test-pread.sh: Set executable bit.
15410         Reported by Eric Blake.
15411
15412         correct typo in test-pread.sh
15413         * tests/test-pread.sh: Add #! line.
15414
15415         test pread
15416         * tests/test-pread.c: New file.
15417         * tests/test-pread.sh: Likewise.
15418         * modules/pread-tests: Likewise.
15419
15420         pread: new module
15421         * modules/pread: New file.
15422         * lib/unistd.in.h (pread): Define/declare.
15423         * lib/pread.c (pread): New file.
15424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15425         * modules/unistd (Makefile.am): Substitute witnesses.
15426         * doc/posix-functions/pread.texi (pread): Update.
15427         * MODULES.html.sh: Add pread.
15428
15429 2009-11-25  Jim Meyering  <meyering@redhat.com>
15430
15431         tests/init.sh: new file to be used via most *.sh tests
15432         * tests/init.sh: New file.
15433
15434 2009-11-25  Eric Blake  <ebb9@byu.net>
15435
15436         utimens: work around older Linux failure with symlinks
15437         * lib/utimens.c (lutimensat_works_really): New variable.
15438         (fdutimens, lutimens): Use it to manage kernels that support
15439         nanosecond times on files, but not on symlinks.
15440         Reported by OndÅ™ej Vašík.
15441
15442         utimes: fix configure grammar
15443         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15444
15445 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15446
15447         regex: Fix fastmap for multibyte character ranges.
15448         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15449         characters when a multibyte character range is included.
15450
15451 2009-11-22  Andy Wingo  <wingo@pobox.com>
15452
15453         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15454         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15455
15456 2009-11-24  Bruno Haible  <bruno@clisp.org>
15457
15458         doc: Most *_l functions exist in MacOS X 10.5.
15459         * doc/posix-functions/duplocale.texi: Update platforms list.
15460         * doc/posix-functions/freelocale.texi: Likewise.
15461         * doc/posix-functions/newlocale.texi: Likewise.
15462         * doc/posix-functions/uselocale.texi: Likewise.
15463         * doc/posix-functions/isalnum_l.texi: Likewise.
15464         * doc/posix-functions/isalpha_l.texi: Likewise.
15465         * doc/posix-functions/isblank_l.texi: Likewise.
15466         * doc/posix-functions/iscntrl_l.texi: Likewise.
15467         * doc/posix-functions/isdigit_l.texi: Likewise.
15468         * doc/posix-functions/isgraph_l.texi: Likewise.
15469         * doc/posix-functions/islower_l.texi: Likewise.
15470         * doc/posix-functions/isprint_l.texi: Likewise.
15471         * doc/posix-functions/ispunct_l.texi: Likewise.
15472         * doc/posix-functions/isspace_l.texi: Likewise.
15473         * doc/posix-functions/isupper_l.texi: Likewise.
15474         * doc/posix-functions/iswalnum_l.texi: Likewise.
15475         * doc/posix-functions/iswalpha_l.texi: Likewise.
15476         * doc/posix-functions/iswblank_l.texi: Likewise.
15477         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15478         * doc/posix-functions/iswctype_l.texi: Likewise.
15479         * doc/posix-functions/iswdigit_l.texi: Likewise.
15480         * doc/posix-functions/iswgraph_l.texi: Likewise.
15481         * doc/posix-functions/iswlower_l.texi: Likewise.
15482         * doc/posix-functions/iswprint_l.texi: Likewise.
15483         * doc/posix-functions/iswpunct_l.texi: Likewise.
15484         * doc/posix-functions/iswspace_l.texi: Likewise.
15485         * doc/posix-functions/iswupper_l.texi: Likewise.
15486         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15487         * doc/posix-functions/isxdigit_l.texi: Likewise.
15488         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15489         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15490         * doc/posix-functions/strcoll_l.texi: Likewise.
15491         * doc/posix-functions/strfmon_l.texi: Likewise.
15492         * doc/posix-functions/strftime_l.texi: Likewise.
15493         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15494         * doc/posix-functions/strxfrm_l.texi: Likewise.
15495         * doc/posix-functions/tolower_l.texi: Likewise.
15496         * doc/posix-functions/toupper_l.texi: Likewise.
15497         * doc/posix-functions/towctrans_l.texi: Likewise.
15498         * doc/posix-functions/towlower_l.texi: Likewise.
15499         * doc/posix-functions/towupper_l.texi: Likewise.
15500         * doc/posix-functions/wcscoll_l.texi: Likewise.
15501         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15502         * doc/posix-functions/wctrans_l.texi: Likewise.
15503         * doc/posix-functions/wctype_l.texi: Likewise.
15504         * doc/glibc-functions/strptime_l.texi: Likewise.
15505         * doc/glibc-functions/strtod_l.texi: Likewise.
15506         * doc/glibc-functions/strtof_l.texi: Likewise.
15507         * doc/glibc-functions/strtol_l.texi: Likewise.
15508         * doc/glibc-functions/strtold_l.texi: Likewise.
15509         * doc/glibc-functions/strtoll_l.texi: Likewise.
15510         * doc/glibc-functions/strtoul_l.texi: Likewise.
15511         * doc/glibc-functions/strtoull_l.texi: Likewise.
15512         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15513         * doc/glibc-functions/wcstod_l.texi: Likewise.
15514         * doc/glibc-functions/wcstof_l.texi: Likewise.
15515         * doc/glibc-functions/wcstol_l.texi: Likewise.
15516         * doc/glibc-functions/wcstold_l.texi: Likewise.
15517         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15518         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15519         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15520
15521 2009-11-24  Bruno Haible  <bruno@clisp.org>
15522
15523         duplocale: Fix logic bug.
15524         * lib/duplocale.c: Don't include <langinfo.h>.
15525         (_NL_LOCALE_NAME): Remove macro.
15526         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15527         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15528
15529 2009-11-23  Jim Meyering  <meyering@redhat.com>
15530
15531         test-update-copyright: don't hard-code /usr/bin/perl
15532         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15533         perl to print the current year.  Gilles Espinasse reported that
15534         the replaced use of perl was hard-coded as /usr/bin/perl.
15535
15536 2009-11-23  Bruno Haible  <bruno@clisp.org>
15537
15538         duplocale: Add support for glibc 2.3.x.
15539         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15540
15541 2009-11-22  Bruno Haible  <bruno@clisp.org>
15542
15543         vasnprintf: Tiny optimization.
15544         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15545         MacOS X.
15546
15547 2009-11-22  Bruno Haible  <bruno@clisp.org>
15548
15549         Tests for module 'duplocale'.
15550         * modules/duplocale-tests: New file.
15551         * tests/test-duplocale.c: New file.
15552
15553         New module 'duplocale'.
15554         * m4/duplocale.m4: New file.
15555         * lib/locale.in.h (duplocale): New declaration.
15556         * lib/duplocale.c: New file.
15557         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15558         gl_LOCALE_H_DEFAULTS): New macros.
15559         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15560         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15561         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15562         REPLACE_DUPLOCALE.
15563         * modules/duplocale: New file.
15564         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15565
15566 2009-11-22  Bruno Haible  <bruno@clisp.org>
15567
15568         * modules/locale-tests (configure.ac): Test for newlocale function.
15569         * tests/test-locale.c: When the system has extended locale functions,
15570         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15571
15572         locale: Make locale_t available when possible.
15573         * lib/locale.in.h: Include <xlocale.h> when it exists.
15574         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15575         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15576         * modules/locale (Depends-on): Add extensions.
15577         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15578         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15579
15580 2009-11-22  Bruno Haible  <bruno@clisp.org>
15581
15582         Add comments.
15583         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15584         invocation.
15585         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15586         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15587         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15588
15589 2009-11-22  Bruno Haible  <bruno@clisp.org>
15590
15591         error: account for the possibility of freopen (stdout).
15592         * lib/error.c: Include <unistd.h>.
15593         (flush_stdout): New function, extracted from error and error_at_line.
15594         Determine stdout's fd dynamically.
15595         (error, error_at_line): Invoke flush_stdout.
15596         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15597         * modules/error (Depends-on): Add unistd.
15598
15599 2009-11-22  Bruno Haible  <bruno@clisp.org>
15600
15601         diffseq: Add comment.
15602         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15603
15604 2009-11-22  Jim Meyering  <meyering@redhat.com>
15605
15606         c-stack: avoid defining an unused static function
15607         * lib/c-stack.c (find_stack_direction): Do not define this function
15608         when it will not be used.
15609
15610         diffseq: avoid spurious gcc warnings
15611         * lib/diffseq.h (IF_LINT2): Define.
15612         (compareseq): Use it to initialize two members of "part".
15613         This avoids two used-uninitialized warnings.
15614
15615 2009-11-21  Jim Meyering  <meyering@redhat.com>
15616
15617         c-stack: avoid "ignoring return value of `write'" warning
15618         * lib/c-stack.c: Include "ignore-value.h".
15619         (die): Explicitly ignore each write return value.
15620         * modules/c-stack (Depends-on): Add ignore-value.
15621
15622 2009-11-21  Bruno Haible  <bruno@clisp.org>
15623
15624         diffseq: reduce scope of variable 'best'.
15625         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15626         variable, earlier used for two different purposes.
15627
15628 2009-11-21  Jim Meyering  <meyering@redhat.com>
15629
15630         diffseq: remove useless assignment to "best"
15631         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15632         assignment.  At that point "best" is already guaranteed to be zero.
15633
15634 2009-11-20  Eric Blake  <ebb9@byu.net>
15635
15636         build: mention ftp redirector in release announcements
15637         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15638         values that used to come from cfg.mk; mention FTP redirect URL.
15639         * build-aux/announce-gen: Mention the mirror list.
15640         Suggested by Karl Berry.
15641
15642         nanosleep: improve port to mingw
15643         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15645         LIB_NANOSLEEP, but only when needed.
15646         * modules/select (Link): Document LIBSOCKET.
15647         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15648         enough.
15649
15650         nanosleep: work around cygwin bug
15651         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15652         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15653         bug.
15654         (getnow): Delete, not needed.
15655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15656         LIB_CLOCK_GETTIME.
15657         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15658         clock-time, gettime.
15659         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15660         bug.
15661         * modules/nanosleep-tests: New test.
15662         * tests/test-nanosleep.c: New file.
15663
15664         sleep: work around cygwin bug
15665         * lib/sleep.c (rpl_sleep): Work around the bug.
15666         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15667         (gl_PREREQ_SLEEP): Delete unused macro.
15668         * modules/sleep (Depends-on): Add verify.
15669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15670         * modules/unistd (Makefile.am): Substitute witness.
15671         * lib/unistd.in.h (sleep): Update prototype.
15672         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15673         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15674         * modules/sleep-tests (Depends-on): Check for alarm.
15675
15676 2009-11-20  Jim Meyering  <meyering@redhat.com>
15677
15678         maint.mk: improve sc_prohibit_magic_number_exit
15679         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15680         so it does not match uses like System.exit(1).
15681         Add comments showing how to correct all offenders.
15682
15683 2009-11-19  Eric Blake  <ebb9@byu.net>
15684
15685         xalloc-die-tests: add missing library
15686         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15687
15688         test-xvasprintf: silence compiler warnings
15689         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15690         empty string from gcc.
15691
15692 2009-11-19  Jim Meyering  <meyering@redhat.com>
15693
15694         xfreopen: new module, from coreutils
15695         * modules/xfreopen: New module.
15696         * lib/xfreopen.c: New file.
15697         * lib/xfreopen.h: New file.
15698         * MODULES.html.sh (File stream based Input/Output"): Add it.
15699
15700 2009-11-19  Eric Blake  <ebb9@byu.net>
15701
15702         manywarnings: depend on warnings
15703         * modules/manywarnings (Depends-on): Add warnings.
15704
15705         build: avoid compiler warnings
15706         * lib/select.c (rpl_select): Delete unused variable.
15707         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15708
15709 2009-11-18  Eric Blake  <ebb9@byu.net>
15710
15711         tests: avoid false negative with --with-packager
15712         * tests/test-version-etc.sh: Discard packager information.
15713         * tests/test-argp-version-etc-1.sh: Likewise.
15714         Reported by Mike Frysinger.
15715
15716         utimens: fix regression on Solaris
15717         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15718         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15719         can only change fd timestamps via futimesat.  Instead, use an
15720         additional witness macro to avoid BSD bug.
15721         Reported by Jim Meyering.
15722
15723 2009-11-17  Eric Blake  <ebb9@byu.net>
15724
15725         usleep: use it to simplify tests
15726         * modules/stat-time-tests (Depends-on): Add usleep.
15727         (configure.ac): Drop usleep check.
15728         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15729         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15730         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15731         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15732         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15733         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15734         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15735         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15736         Likewise.
15737         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15738         * tests/test-lchown.h (nap): Likewise.
15739         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15740         * tests/test-stat-time.c (nap): Likewise.
15741         * tests/test-utimens-common.h (nap): Update comments.
15742
15743         usleep: new module
15744         * modules/usleep: New file.
15745         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15746         * lib/usleep.c (usleep): Likewise.
15747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15748         * modules/unistd (Makefile.am): Substitute witnesses.
15749         * lib/unistd.in.h (usleep): Add declaration.
15750         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15751         * MODULES.html.sh (Date and time): Likewise.
15752         * modules/usleep-tests (Depends-on): New test.
15753         * tests/test-usleep.c: New file.
15754
15755         chown: work around OpenBSD bug
15756         * lib/chown.c (rpl_chown): Work around the bug.
15757         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15758         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15759         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15760         * modules/chown (Depends-on): Add stdbool.
15761         * modules/lchown (Depends-on): Likewise.
15762         * doc/posix-functions/chown.texi (chown): Document the bug.
15763         * doc/posix-functions/lchown.texi (lchown): Likewise.
15764         * tests/test-lchown.h (test_chown): Relax test.
15765
15766         mkstemp: avoid conflict with C++ keyword template
15767         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15768         * lib/mkostemp.c (mkostemp): Likewise.
15769         * lib/mkostemps.c (mkostemps): Likewise.
15770         * lib/mkstemp.c (mkstemp): Likewise.
15771         * lib/mkstemps.c (mkstemps): Likewise.
15772
15773         xalloc-die-tests: optimize
15774         * tests/test-xalloc-die.sh: Reduce number of processes.
15775
15776 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15777
15778         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15779         patch from ludo@gnu.org (Ludovic Courtès).
15780
15781 2009-11-17  Jim Meyering  <meyering@redhat.com>
15782
15783         version-etc: use proper license string
15784         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15785         * modules/version-etc-fsf: Likewise.
15786
15787 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15788
15789         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15790         printed to stdout.  Deal with EOL differences.
15791
15792 2009-11-17  Eric Blake  <ebb9@byu.net>
15793
15794         unsetenv: work around Solaris bug
15795         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15796         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15797         Reported by Jim Meyering.
15798
15799         vasnprintf: avoid compiler warnings
15800         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15801         variables.
15802         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15803
15804 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15805
15806         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15807         settings since xalloc-die is no longer the self test,
15808         xalloc-die.sh is.
15809
15810 2009-11-17  Jim Meyering  <meyering@redhat.com>
15811
15812         test-xalloc-die.sh: make the code agree with the commit log
15813         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15814         at the end, just in case you happen to have a test-xalloc-die
15815         program in some other PATH directory.
15816
15817         test-xalloc-die.sh: fix a portability bug
15818         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15819         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15820         Otherwise, argv[0] (as often seen in diagnostics) would be too
15821         system-dependent, sometimes with, and sometimes without the leading "./".
15822
15823         version-etc-fsf: relax license to LGPLv3+
15824         * modules/version-etc-fsf (License): Relax license.
15825
15826 2009-11-16  Eric Blake  <ebb9@byu.net>
15827
15828         xalloc-die-tests: avoid printing null pointer
15829         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15830         shell script.
15831         * tests/test-xalloc-die.c (program_name): Declare.
15832         * tests/test-xalloc-die.sh (tmpfiles): New file.
15833
15834         setenv, unsetenv: work around various bugs
15835         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15836         (setenv) [HAVE_SETENV]: Work around bugs.
15837         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15838         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15839         for bugs.
15840         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15841         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15843         * modules/stdlib (Makefile.am): Update substitutions.
15844         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15845         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15846         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15847         * modules/setenv-tests: New test.
15848         * modules/unsetenv-tests: Likewise.
15849         * tests/test-setenv.c: New file.
15850         * tests/test-unsetenv.c: Likewise.
15851
15852 2009-11-16  Jim Meyering  <meyering@redhat.com>
15853
15854         version-etc: relax license to LGPLv3+
15855         * modules/version-etc (License): Relax license.
15856
15857         better AC_REQUIRE expanded-before-required-warning avoidance
15858         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15859         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15860         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15861         which is no longer needed.
15862
15863 2009-11-16  Eric Blake  <ebb9@byu.net>
15864
15865         test-freading: clean up temporary file
15866         * tests/test-freading.c (main): Remove file on success, and use
15867         ASSERT more liberally.
15868         Reported by Jim Meyering.
15869
15870 2009-11-16  Jim Meyering  <meyering@redhat.com>
15871
15872         avoid new AC_REQUIRE expanded-before-required warnings
15873         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15874         merely using it.
15875         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15876         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15877
15878 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15879
15880         * tests/test-xalloc-die.c: New file.
15881         * modules/xalloc-die-tests: New file.
15882         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15883         XFAIL_TESTS so it can be appended by modules.
15884
15885 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15886
15887         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15888         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15889
15890 2009-11-14  Eric Blake  <ebb9@byu.net>
15891
15892         fnmatch: avoid compiler warning
15893         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15894         to silence compiler warning about mismatch signedness in ?:.
15895         Reported by Robert Millan.
15896
15897         intprops: add double-inclusion guard
15898         * lib/intprops.h: Allow idempotent includes.
15899         Suggested by Bruce Korb.
15900
15901         openat: detect Solaris fchownat bug
15902         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15903         penalizing glibc chownat when only lchownat is broken.
15904         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15905         trailing slash bugs.
15906         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15907         * modules/openat-tests (Files): Include more files.
15908         (Depends-on): Add mgetgroups, sleep, stat-time.
15909         (configure.ac): Add additional checks.
15910         (Makefile.am): Build new test.
15911         * tests/test-fchownat.c: New file.
15912
15913         lchown: detect Solaris and FreeBSD bug
15914         * lib/lchown.c (rpl_lchown): Work around bug.
15915         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15917         * modules/unistd (Makefile.am): Populate it.
15918         * lib/unistd.in.h (lchown): Update declaration.
15919         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15920         * modules/lchown-tests: New file.
15921         * tests/test-lchown.h (test_lchown): Likewise.
15922         * tests/test-lchown.c (main): Likewise.
15923
15924         chown: detect Solaris and FreeBSD bug
15925         * lib/chown.c (rpl_chown): Work around bug.
15926         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15927         (gl_PREREQ_CHOWN): Delete.
15928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15929         * modules/unistd (Makefile.am): Populate it.
15930         * lib/unistd.in.h (chown): Update declaration.
15931         * lib/lchown.c (chown): Update client.
15932         * modules/lchown (Depends-on): Add lstat.
15933         * doc/posix-functions/chown.texi (chown): Document the bug.
15934         * doc/posix-functions/getgroups.texi (getgroups): Document
15935         getgroups pitfall.
15936         * modules/chown-tests: New file.
15937         * tests/test-chown.h (test_chown): Likewise.
15938         * tests/test-chown.c (main): Likewise.
15939
15940 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15941
15942         gnulib-tool: correctly detect absence of m4 directories
15943         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15944
15945 2009-11-14  Jim Meyering  <meyering@redhat.com>
15946
15947         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15948         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15949
15950 2009-11-14  John W. Eaton  <jwe@gnu.org>
15951
15952         strftime.h: wrap funtion declaration in extern "C" block
15953         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15954
15955 2009-11-13  Eric Blake  <ebb9@byu.net>
15956
15957         getgroups: avoid compiler warning
15958         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15959
15960         getgroups: work around FreeBSD bug
15961         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15962         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15963         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15964         * tests/test-getgroups.c (main): Fix buffer overrun.
15965
15966         getgroups: avoid compilation failure
15967         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15968         * modules/getgroups (Depends-on): Add stdint.
15969
15970 2009-11-13  Jim Meyering  <meyering@redhat.com>
15971
15972         test-getgroups: avoid compilation failure
15973         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15974
15975 2009-11-13  Eric Blake  <ebb9@byu.net>
15976
15977         mgetgroups: new module, taken from coreutils
15978         * modules/mgetgroups: New file.
15979         * lib/mgetgroups.h: Likewise.
15980         * lib/mgetgroups.c (mgetgroups): Likewise.
15981         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15982         * MODULES.html.sh (Users and groups): Mention it.
15983
15984         getgroups: don't expose GETGROUPS_T to user
15985         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15986         an element at a time if GETGROUPS_T is wrong size.
15987         * lib/getugroups.h (getugroups): Change signature.
15988         * lib/unistd.in.h (getgroups): Likewise.
15989         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15990         signature needs fixing.
15991         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15992         AC_TYPE_GETGROUPS.
15993         * modules/group-member (Depends-on): Add getgroups.
15994         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15995         (group_member): Rely on getgroups replacement.
15996         * lib/getugroups.c (getugroups): Use gid_t.
15997         * tests/test-getgroups.c (main): Likewise.
15998         * NEWS: Mention the signature change.
15999         * doc/posix-functions/getgroups.texi (getgroups): Mention the
16000         problem with signature.
16001         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
16002         GETGROUPS_T is still useful for setgroups.
16003
16004         getgroups, getugroups: provide stubs for mingw
16005         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
16006         * lib/getugroups.c (getugroups): Likewise.
16007         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
16008         function.  Modernize replacement scheme.
16009         (gl_PREREQ_GETGROUPS): Delete.
16010         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
16011         * modules/getgroups (configure.ac): Declare witness.
16012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16013         * modules/unistd (Depends-on): Substitute witness.
16014         * lib/unistd.in.h (getgroups): Declare replacement.
16015
16016         getgroups: avoid calling exit
16017         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
16018         drop xalloc.
16019         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
16020         dependencies.
16021         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
16022         exiting, in the rare case of malloc failure.
16023
16024         getgroups: fix logic error
16025         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
16026         has more than 20 groups.
16027         * modules/getgroups-tests: New test.
16028         * tests/test-getgroups.c: New file.
16029
16030 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16031
16032         * tests/test-base64.c: Improve.
16033
16034 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16035
16036         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
16037         Blake <ebb9@byu.net>.
16038
16039 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16040
16041         * tests/test-xvasprintf.c: Add %s%s related checks.
16042
16043 2009-11-12  Eric Blake  <ebb9@byu.net>
16044
16045         version-etc: match standards.texi style
16046         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
16047         and use <> only for URLs.
16048
16049 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
16050
16051         fts: do not fail on a submount during traversal
16052         * lib/fts.c (fts_build): Read the stat info again after opening
16053         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
16054         Original report at http://bugzilla.redhat.com/501848.
16055
16056 2009-11-12  Jim Meyering  <meyering@redhat.com>
16057
16058         bootstrap: sync from coreutils
16059         * build-aux/bootstrap (bootstrap_epilogue): New function.
16060         Use git_modules_config in one more place.  This make bootstrap's
16061         --gnulib-srcdir option more useful for testing.
16062
16063         bootstrap: generalize autoheader check
16064         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
16065         AC_CONFIG_HEADERS.
16066
16067 2009-11-11  Eric Blake  <ebb9@byu.net>
16068
16069         mkfifoat: use new modules for Solaris and BSD bugs
16070         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
16071         * lib/mkfifoat.c (mknodat): Split...
16072         * lib/mknodat.c (mknodat): ...into new file.
16073         * modules/mkfifoat (Files): Ship new file.
16074         (Depends-on): Add mkfifo, mknod.
16075         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
16076         (Depends-on): Add symlink.
16077         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16078         redundant with test_mkfifo.h.
16079         (do_mkfifoat, do_mknodat): New helpers.
16080
16081         mknod: new module
16082         * modules/mknod: New file.
16083         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16084         * lib/mknod.c (mknod): Likewise.
16085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16086         defaults.
16087         * modules/sys_stat (Makefile.am): Substitute them.
16088         * lib/sys_stat.in.h (mknod): Declare replacement.
16089         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16090         Document it.
16091         * doc/posix-functions/mknod.texi (mknod): Likewise.
16092         * modules/mknod-tests: New test.
16093         * tests/test-mknod.c: Likewise.
16094
16095         mkfifo: new module
16096         * modules/mkfifo: New file.
16097         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16098         * lib/mkfifo.c (mkfifo): Likewise.
16099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16100         defaults.
16101         * modules/sys_stat (Makefile.am): Substitute them.
16102         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16103         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16104         Document it.
16105         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16106         * modules/mkfifo-tests: New test.
16107         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16108         from test-mkfifoat.c.
16109         * tests/test-mkfifo.c: New file.
16110
16111         readlink: detect FreeBSD bug
16112         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16113         slash on symlink.
16114         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16115         * tests/test-readlink.h (test_readlink): Enhance test.
16116
16117         symlink: detect FreeBSD bug
16118         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16119         slash on symlink.
16120         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16121         * tests/test-symlink.h (test_symlink): Enhance test.
16122
16123 2009-11-10  Eric Blake  <ebb9@byu.net>
16124
16125         link: detect FreeBSD bug
16126         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16127         symlink.
16128         * doc/posix-functions/link.texi (link): Document the bug.
16129         * tests/test-link.h (test_link): Enhance test.
16130         * tests/test-linkat.c (main): Update caller.
16131
16132         unlink, remove: detect FreeBSD bug
16133         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16134         slash on symlink.
16135         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16136         * doc/posix-functions/remove.texi (remove): Likewise.
16137         * tests/test-unlink.h (test_unlink): Enhance test.
16138         * tests/test-remove.c (main): Likewise.
16139
16140 2009-11-09  Eric Blake  <ebb9@byu.net>
16141
16142         rename: detect FreeBSD bug
16143         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16144         slash on symlink.
16145         * modules/renameat-tests (Depends-on): Add filenamecat.
16146         * tests/test-rename.h (test_rename): Allow one more errno.
16147         * tests/test-renameat.c (main): Likewise.
16148         * doc/posix-functions/rename.texi (rename): Document the bug.
16149
16150         open: detect FreeBSD bug
16151         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16152         symlink.
16153         * doc/posix-functions/open.texi (open): Document the bug.
16154         * doc/posix-functions/utimes.texi (utimes): Likewise.
16155         * tests/test-open.h (test_open): Add parameters, and test symlink
16156         handling.
16157         * tests/test-open.c (main): Adjust caller.
16158         * tests/test-fcntl-safer.c (main): Likewise.
16159         * modules/open-tests (Depends-on): Add stdbool, symlink.
16160         * modules/fcntl-safer-tests (Depends-on): Likewise.
16161         * tests/test-openat.c (main): Add test-open tests.
16162
16163         stat: detect FreeBSD bug
16164         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16165         symlink.
16166         * doc/posix-functions/stat.texi (stat): Document the bug.
16167         * tests/test-stat.h (test_stat_func): Add argument.
16168         * tests/test-stat.c (main): Adjust caller.
16169         * tests/test-fstatat.c (main): Likewise.
16170         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16171         Reported by Jim Meyering.
16172
16173 2009-11-09  James Youngman  <jay@gnu.org>
16174
16175         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16176         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16177
16178 2009-11-08  Jim Meyering  <meyering@redhat.com>
16179
16180         utimens: remove invalid futimesat call
16181         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16182         It used the file descriptor of the target file as the DIR_FD
16183         parameter and NULL as the file name.  That caused failure with
16184         errno == EFAULT on FreeBSD-8.0-rc2
16185
16186 2009-11-07  Eric Blake  <ebb9@byu.net>
16187
16188         fflush, freadseek: use fseeko, not fseek
16189         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16190         (clear_ungetc_buffer): Avoid potential problems on large files.
16191         * lib/freadseek.c (freadseek): Likewise.
16192         * modules/freadseek (Depends-on): Add fseeko.
16193         * modules/fseek (configure.ac): Set a witness.
16194         * tests/test-fflush.c (main): Use fseeko.
16195         * tests/test-fpurge.c (fseek): Disable link warning.
16196         * tests/test-freadable.c (fseek): Likewise.
16197         * tests/test-freading.c (fseek): Likewise.
16198         * tests/test-fseeko.c (fseek): Likewise.
16199         * tests/test-ftell.c (fseek): Likewise.
16200         * tests/test-ftello.c (fseek): Likewise.
16201         * tests/test-fwritable.c (fseek): Likewise.
16202         * tests/test-fwriting.c (fseek): Likewise.
16203
16204 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16205
16206         * modules/memchr (Depends-on): Drop getpagesize dependency.
16207
16208 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16209
16210         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16211         Reported by Ludovic Courtès.
16212         * build-aux/pmccabe2html: Improve example usage.
16213         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16214
16215 2009-11-06  Jim Meyering  <meyering@redhat.com>
16216
16217         do-release-commit-and-tag: New module.
16218         Automate the release-commit and tag process.
16219         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16220         * modules/do-release-commit-and-tag: New file.
16221         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16222
16223 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16224
16225         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16226         because test-select.c uses inet_pton.
16227
16228 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16229
16230         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16231         GETADDRINFO_LIB.  Bump serial number.
16232         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16233         Suggested by Eric Blake <ebb9@byu.net>.
16234
16235 2009-11-05  Eric Blake  <ebb9@byu.net>
16236
16237         strtod: detect darwin bug
16238         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16239         Reported by Leo Davis.
16240
16241         freopen-safer: new module
16242         * modules/freopen-safer: New module.
16243         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16244         * lib/freopen-safer.c (freopen_safer): New file.
16245         * lib/stdio-safer.h (freopen_safer): New declaration.
16246         * lib/stdio--.h (freopen): New override.
16247         * MODULES.html.sh (File stream based Input/Output): Mention it.
16248         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16249         freopen-safer module.
16250         * doc/posix-functions/stderr.texi (stderr): Likewise.
16251         * doc/posix-functions/stdin.texi (stdin): Likewise.
16252         * doc/posix-functions/stdout.texi (stdout): Likewise.
16253         * modules/freopen-safer-tests: New test.
16254         * tests/test-reopen-safer.c: New file.
16255
16256 2009-11-05  Jim Meyering  <meyering@redhat.com>
16257
16258         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16259         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16260
16261 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16262
16263         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16264
16265 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16266
16267         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16268
16269 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16270
16271         Fix link error.
16272         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16273         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16274
16275 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16276
16277         * tests/test-func.c: Also test value of __func__.
16278
16279 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16280
16281         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16282         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16283
16284 2009-11-05  Bruno Haible  <bruno@clisp.org>
16285
16286         Fix link error.
16287         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16288         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16289         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16290
16291 2009-11-05  Bruno Haible  <bruno@clisp.org>
16292
16293         Tests for module 'inet_pton'.
16294         * modules/inet_pton-tests: New file.
16295         * tests/test-inet_pton.c: New file.
16296
16297 2009-11-05  Bruno Haible  <bruno@clisp.org>
16298
16299         Tests for module 'inet_ntop'.
16300         * modules/inet_ntop-tests: New file.
16301         * tests/test-inet_ntop.c: New file.
16302
16303 2009-11-04  Eric Blake  <ebb9@byu.net>
16304
16305         stdlib-safer: wrap all mkstemp variants
16306         * modules/mkostemp (configure.ac): Set witness.
16307         * modules/mkostemps (configure.ac): Likewise.
16308         * modules/mkstemps (configure.ac): Likewise.
16309         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16310         (mkstemps_safer): Wrap more functions.
16311         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16312         wrapping.
16313         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16314         (mkstemps_safer): Implement the wrappers.
16315
16316         mkstemps, mkostemps: new modules
16317         * modules/mkostemps: New module.
16318         * modules/mkstemps: Likewise.
16319         * lib/mkostemps.c (mkostemps): New file.
16320         * lib/mkstemps.c (mkstemps): Likewise.
16321         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16322         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16324         * modules/stdlib (Makefile.am): Substitute them.
16325         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16326         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16327         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16328         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16329         * MODULES.html.sh (File system functions): Mention them.
16330
16331         tempname: resync from glibc
16332         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16333         same values for __GT_FILE as glibc.  Abort even when assertions
16334         are disabled.
16335         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16336         match its value otherwise.  Allow idempotent inclusion.
16337         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16338         * lib/mkostemp.c (mkostemp): Likewise.
16339         * lib/mkstemp.c (mkstemp): Likewise.
16340         * lib/tmpfile.c (tmpfile): Likewise.
16341         * NEWS: Document this.
16342
16343         utimens: fix use of futimens on older Linux
16344         * lib/utimens.c (fdutimens): Use updated, rather than original,
16345         timespec to avoid bug in older Linux kernel.
16346         Reported by Simon Josefsson.
16347
16348 2009-11-04  Bruno Haible  <bruno@clisp.org>
16349
16350         Make num_processors more flexible and consistent.
16351         * lib/nproc.h (enum nproc_query): New type.
16352         (num_processors): Add a 'query' argument.
16353         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16354         (num_processors): Add a 'query' argument. Test the value of the
16355         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16356         mingw, count the number of CPUs available for the current process.
16357         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16358         Check for sched_getaffinity and sched_getaffinity_np.
16359         * modules/nproc (Depends-on): Add c-ctype, extensions.
16360         * NEWS: Mention the change.
16361
16362 2009-11-03  Bruno Haible  <bruno@clisp.org>
16363
16364         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16365
16366 2009-11-03  Jim Meyering  <meyering@redhat.com>
16367
16368         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16369         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16370         if it is defined.
16371
16372 2009-11-02  Eric Blake  <ebb9@byu.net>
16373
16374         mktime, timegm: share common declaration
16375         * lib/mktime-internal.h: New file.
16376         * lib/mktime.c: Use it rather than open-coding a declaration.
16377         * lib/timegm.c: Likewise.
16378         * modules/mktime (Files): Ship it.
16379         * modules/timegm (Files): Likewise.
16380         Suggested by Bruno Haible.
16381
16382         test-update-copyright: update test to match script changes
16383         * tests/test-update-copyright.sh: Avoid hard-coding perl
16384         location.  Don't update *.bak created by earlier runs.
16385
16386 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16387             Simon Josefsson  <simon@josefsson.org>
16388             Bruno Haible  <bruno@clisp.org>
16389
16390         Fix link error on Solaris 8.
16391         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16392         also in libnsl. Define also INET_PTON_LIB.
16393         * modules/inet_pton (Link): New section.
16394
16395 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16396             Bruno Haible  <bruno@clisp.org>
16397
16398         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16399         * modules/inet_ntop (Link): New section.
16400         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16401
16402 2009-11-02  Eric Blake  <ebb9@byu.net>
16403
16404         maint: avoid compiler warnings in m4 macros
16405         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16406         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16407
16408 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16409
16410         * m4/pmccabe2html.m4: Remove file.
16411         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16412         function.  Change maintainer.
16413         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16414         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16415         Courtès).
16416
16417 2009-10-31  Eric Blake  <ebb9@byu.net>
16418
16419         fseeko: fix m4 regression
16420         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16421         regression from 2009-10-27.
16422         Reported by Ralf Wildenhues.
16423
16424 2009-10-31  Jim Meyering  <meyering@redhat.com>
16425
16426         inttostr: aesthetics and improved (compile-time) safety
16427         Define inttype_is_signed rather than inttype_is_unsigned,
16428         since the sole use is via "#if inttype_is_signed".
16429         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16430         inttype_is_unsigned.
16431         * lib/offtostr.c (inttype_is_signed): Likewise.
16432         * lib/uinttostr.c (inttype_is_signed): Likewise.
16433         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16434         * lib/inttostr.c (inttostr): Use verify to cross-check the
16435         inttype_is_signed value and the signedness of the actual type.
16436         * modules/inttostr (Depends-on): Add verify.
16437
16438 2009-10-30  Eric Blake  <ebb9@byu.net>
16439
16440         build: avoid compiler warnings
16441         * lib/fchmodat.c (lchmod): Mark unused variables.
16442         * lib/getopt.c (_getopt_initialize): Likewise.
16443         * lib/mktime.c (__mktime_internal): Provide prototype.
16444         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16445         older gcc that do not understand #pragma GCC diagnostic.
16446         * lib/uinttostr.c (inttype_is_unsigned): Define.
16447         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16448
16449 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16450
16451         stat: fix compilation on AIX
16452         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16453         only see struct stat64.
16454
16455 2009-10-30  Eric Blake  <ebb9@byu.net>
16456
16457         exclude: make more robust
16458         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16459         rather than masking a coding bug.
16460         Suggested by Bruno Haible.
16461
16462 2009-10-30  Jim Meyering  <meyering@redhat.com>
16463
16464         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16465         Rather than putting #!/usr/bin/perl on the first line,
16466         start with a variant of what's recommended by "man perlrun" that
16467         invokes the first "perl" program from your shell's search path.
16468         * build-aux/gitlog-to-changelog: Replace #!... as above.
16469         Add a "Local Variables" perl mode setting.
16470         Prompted by a patch from Ludovic Courtès.
16471         Improved by Eric Blake.
16472         * build-aux/useless-if-before-free: Likewise.
16473         * build-aux/announce-gen: Likewise.
16474         * build-aux/update-copyright: Likewise.
16475
16476 2009-10-29  Eric Blake  <ebb9@byu.net>
16477
16478         filenamecat-lgpl: adjust clients
16479         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16480         filenamecat.
16481         * modules/renameat (Depends-on): Likewise.
16482
16483         filenamecat: split into filenamecat-lgpl
16484         * modules/filenamecat-lgpl: New module.
16485         * modules/filenamecat (Files): Move library-safe files into
16486         filenamecat-lgpl.
16487         (Depends-on): Add filenamecat-lgpl.
16488         (configure.ac): Declare witness.
16489         * lib/filenamecat.h (file_name_concat): Only declare when using
16490         GPL module.
16491         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16492         Move...
16493         * lib/filenamecat-lgpl.c: ...into new file.
16494         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16495         (gl_FILE_NAME_CONCAT): Use it.
16496         * MODULES.html.sh (File system functions): Mention new module.
16497
16498         argp: avoid memory leak
16499         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16500         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16501         base_name, since the latter malloc()s and can call exit().
16502         Leak introduced 2006-07-03.
16503
16504         dirname-lgpl: adjust clients that don't need full dirname
16505         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16506         * modules/filenamecat (Depends-on): Likewise.
16507         * modules/linkat (Depends-on): Likewise.
16508         * modules/mkancesdirs (Depends-on): Likewise.
16509         * modules/mkdir (Depends-on): Likewise.
16510         * modules/openat (Depends-on): Likewise.
16511         * modules/savewd (Depends-on): Likewise.
16512         * modules/rename (Depends-on): Likewise.
16513         (License): Relax license.
16514         * modules/mkdir-tests (Depends-on): Drop progname.
16515         (Makefile.am): Delete unneeded LDADD.
16516         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16517
16518         dirname: split into dirname-lgpl
16519         * modules/dirname-lgpl: New module.
16520         * modules/dirname (Files): Move library-safe files into
16521         dirname-lgpl.
16522         (Depends-on): Add dirname-lgpl.
16523         (configure.ac): Declare witness.
16524         * modules/double-slash-root (License): Relax license.
16525         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16526         module.
16527         * lib/dirname.c (dir_len, mdir_name): Move...
16528         * lib/dirname-lgpl.c: ...into new file.
16529         * lib/basename.c (last_component, base_len): Move...
16530         * lib/basename-lgpl.c: ...into new file.
16531         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16532         (gl_DIRNAME): Use it.
16533         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16534         Mention new module.
16535         * modules/dirname-tests (Depends-on): Add progname.
16536         * tests/test-dirname.c (program_name): Delete.
16537
16538         mkdir: make safe for libraries
16539         * modules/mkdir (Depends-on): Drop xalloc.
16540         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16541         exit.
16542
16543         tests: avoid some compiler warnings
16544         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16545         literals.
16546         * tests/test-memchr.c (main): Avoid type mismatch.
16547         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16548         * tests/test-base64.c (main): Likewise.
16549         * tests/test-getdelim.c (main): Likewise.
16550         * tests/test-gethostname.c (main): Likewise.
16551         * tests/test-getline.c (main): Likewise.
16552         * tests/test-netinet_in.c (main): Likewise.
16553         * tests/test-select.c (open_server_socket, main): Likewise.
16554         * tests/test-select-stdin.c (main): Likewise.
16555         * tests/test-sockets.c (main): Likewise.
16556         * tests/test-strsignal.c (main): Likewise.
16557         * tests/test-sys_select.c (main): Likewise.
16558         * tests/test-sys_socket.c (main): Likewise.
16559         * tests/test-u64.c (main): Likewise.
16560         * tests/test-xfprintf-posix.c (main): Likewise.
16561         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16562
16563         sockets: avoid compiler warning
16564         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16565
16566         maint: detect usage(1) and other suspicious exits
16567         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16568
16569 2009-10-29  Jim Meyering  <meyering@redhat.com>
16570
16571         timespec: long-to-int truncation could make timespec_cmp malfunction
16572         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16573         a multiple of 2^32 nanoseconds as no difference.
16574
16575 2009-10-28  Jim Meyering  <meyering@redhat.com>
16576
16577         fprintftime: wrap macro code argument in "do {...} while(0)"
16578         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16579         cpy macro must be a statement that can be followed by a semicolon.
16580         Now that the else clause contains a comment and is hence longer
16581         than one line, I require curly braces.  That in turn requires
16582         that we wrap this code block in the standard do...while(0).
16583
16584         fprintftime: remove stray semicolon from previous change
16585         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16586
16587         fprintftime: avoid a warning about ignored fwrite return value
16588         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16589         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16590         that is unsafe.
16591         * modules/fprintftime (Depends-on): Add ignore-value.
16592
16593         exclude: avoid an unwarranted warning
16594         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16595
16596 2009-10-27  Eric Blake  <ebb9@byu.net>
16597
16598         fseek: avoid compilation failure when fflush is replaced
16599         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16600         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16601         module is in use.
16602         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16603         module is not in use; since REPLACE_FSEEK worked otherwise.
16604         (GNULIB_FTELLO): Likewise for ftell.
16605         Reported by Ian Beckwith and others.
16606
16607 2009-10-27  Bruno Haible  <bruno@clisp.org>
16608
16609         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16610         Reported by Jim Meyering.
16611
16612 2009-10-27  Jim Meyering  <jim@meyering.net>
16613             Bruno Haible  <bruno@clisp.org>
16614
16615         Avoid warning despite dropping the return value of fwrite.
16616         * lib/unicodeio.c: Include ignore-value.h.
16617         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16618         * modules/unicodeio (Depends-on): Add ignore-value.
16619
16620 2009-10-26  Eric Blake  <ebb9@byu.net>
16621
16622         areadlinkat: fix fallback path
16623         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16624         pointer and zero.
16625
16626 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16627
16628         Use a better IO block size for modern systems
16629         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16630         * lib/md2.c: Likewise.
16631         * lib/md4.c: Likewise.
16632         * lib/md5.c: Likewise.
16633         * lib/sha1.c: Likewise.
16634         * lib/sha256.c: Likewise.
16635         * lib/sha512.c: Likewise.
16636
16637 2009-10-22  Eric Blake  <ebb9@byu.net>
16638
16639         tests: avoid several compiler warnings
16640         * tests/test-getcwd.c (main): Avoid buffer underflow.
16641         * tests/test-getdate.c (main): String literals are not safe with
16642         putenv, so use setenv.  Declare unused argument.
16643         * modules/getdate-tests (Depends-on): Add setenv.
16644         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16645         problems with string literals in char *.
16646         * tests/test-hash.c (main): Avoid shadowing declaration.
16647         (insert_new): Treat string literals as char const *.
16648         * tests/test-getopt.h (test_getopt): Likewise.
16649         (getopt_loop): Alter types to minimize casting elsewhere.
16650         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16651         (test_getopt_long_posix): Likewise.
16652         (do_getopt_long): Add wrapper to minimize casting.
16653         * tests/test-atexit.c (clear_temp_file): Use void.
16654         * tests/test-areadlink-with-size.c (main): Declare unused
16655         arguments.
16656         * tests/test-areadlink.c (main): Likewise.
16657         * tests/test-areadlinkat-with-size.c (main): Likewise.
16658         * tests/test-areadlinkat.c (main): Likewise.
16659         * tests/test-canonicalize-lgpl.c (main): Likewise.
16660         * tests/test-canonicalize.c (main): Likewise.
16661         * tests/test-dirent-safer.c (main): Likewise.
16662         * tests/test-dirname.c (main): Likewise.
16663         * tests/test-dup2.c (main): Likewise.
16664         * tests/test-fchdir.c (main): Likewise.
16665         * tests/test-fcntl-h.c (main): Likewise.
16666         * tests/test-fcntl-safer.c (main): Likewise.
16667         * tests/test-fdopendir.c (main): Likewise.
16668         * tests/test-fdutimensat.c (main): Likewise.
16669         * tests/test-fflush.c (main): Likewise.
16670         * tests/test-filenamecat.c (main): Likewise.
16671         * tests/test-filevercmp.c (main): Likewise.
16672         * tests/test-fopen-safer.c (main): Likewise.
16673         * tests/test-fopen.c (main): Likewise.
16674         * tests/test-fpending.c (main): Likewise.
16675         * tests/test-fpurge.c (main): Likewise.
16676         * tests/test-freading.c (main): Likewise.
16677         * tests/test-fstatat.c (main): Likewise.
16678         * tests/test-fsync.c (main): Likewise.
16679         * tests/test-futimens.c (main): Likewise.
16680         * tests/test-getndelim2.c (main): Likewise.
16681         * tests/test-gettimeofday.c (main): Likewise.
16682         * tests/test-getopt.c (main): Likewise.
16683         * tests/test-i-ring.c (main): Likewise.
16684         * tests/test-inttypes.c (main): Likewise.
16685         * tests/test-link.c (main): Likewise.
16686         * tests/test-lstat.c (main): Likewise.
16687         * tests/test-math.c (main): Likewise.
16688         * tests/test-md5.c (main): Likewise.
16689         * tests/test-memchr2.c (main): Likewise.
16690         * tests/test-memrchr.c (main): Likewise.
16691         * tests/test-mkdir.c (main): Likewise.
16692         * tests/test-mkdirat.c (main): Likewise.
16693         * tests/test-mkfifoat.c (main): Likewise.
16694         * tests/test-open.c (main): Likewise.
16695         * tests/test-openat-safer.c (main): Likewise.
16696         * tests/test-openat.c (main): Likewise.
16697         * tests/test-quotearg.c (main): Likewise.
16698         * tests/test-rawmemchr.c (main): Likewise.
16699         * tests/test-readlink.c (main): Likewise.
16700         * tests/test-remove.c (main): Likewise.
16701         * tests/test-rename.c (main): Likewise.
16702         * tests/test-renameat.c (main): Likewise.
16703         * tests/test-rmdir.c (main): Likewise.
16704         * tests/test-sha1.c (main): Likewise.
16705         * tests/test-signal.c (main): Likewise.
16706         * tests/test-sigaction.c (main): Likewise.
16707         * tests/test-stat.c (main): Likewise.
16708         * tests/test-stat-time.c (main): Likewise.
16709         * tests/test-stddef.c (main): Likewise.
16710         * tests/test-stdint.c (main): Likewise.
16711         * tests/test-stdio.c (main): Likewise.
16712         * tests/test-stdlib.c (main): Likewise.
16713         * tests/test-strchrnul.c (main): Likewise.
16714         * tests/test-strerror.c (main): Likewise.
16715         * tests/test-string.c (main): Likewise.
16716         * tests/test-strtod.c (main): Likewise.
16717         * tests/test-strverscmp.c (main): Likewise.
16718         * tests/test-symlink.c (main): Likewise.
16719         * tests/test-symlinkat.c (main): Likewise.
16720         * tests/test-sys_stat.c (main): Likewise.
16721         * tests/test-sys_time.c (main): Likewise.
16722         * tests/test-time.c (main): Likewise.
16723         * tests/test-unistd.c (main): Likewise.
16724         * tests/test-unlink.c (main): Likewise.
16725         * tests/test-unlinkat.c (main): Likewise.
16726         * tests/test-utimens.c (main): Likewise.
16727         * tests/test-utimensat.c (main): Likewise.
16728         * tests/test-version-etc.c (main): Likewise.
16729         * tests/test-wchar.c (main): Likewise.
16730         * tests/test-wctype.c (main): Likewise.
16731         * tests/test-xprintf-posix.c (main): Likewise.
16732         * tests/test-posixtm.c (main): Likewise.
16733         (STREQ): Delete unused macro.
16734         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16735         shadowed variables.
16736         * tests/test-memchr.c (main): Likewise.
16737
16738 2009-10-21  Eric Blake  <ebb9@byu.net>
16739
16740         areadlinkat: avoid failure on older glibc
16741         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16742         rather than mis-comparing 0 against FUNC_RESULT of char*.
16743
16744 2009-10-21  Bruno Haible  <bruno@clisp.org>
16745
16746         * modules/stpncpy (License): Relicense under LGPLv2+.
16747         Reported by David Lutterkort <lutter@redhat.com>.
16748
16749 2009-10-20  Eric Blake  <ebb9@byu.net>
16750
16751         utimensat: work around Solaris 9 bug
16752         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16753         has trailing slash bugs.
16754         * tests/test-lutimens.h (test_lutimens): Enhance test.
16755         * tests/test-utimens.h (test_utimens): Likewise.
16756         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16757         * doc/posix-functions/utimes.texi (utimes): Likewise.
16758         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16759         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16760         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16761         * doc/posix-functions/futimens.texi (futimens): Likewise.
16762
16763         fdutimensat: new module
16764         * modules/fdutimensat: New file.
16765         * lib/fdutimensat.c (fdutimensat): Likewise.
16766         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16767         * MODULES.html.sh (File system functions): Mention module.
16768         * modules/fdutimensat-tests: New test.
16769         * tests/test-fdutimensat.c: Likewise.
16770
16771         doc: regenerate INSTALL
16772         * doc/INSTALL: Reflect recent autoconf update.
16773         * doc/INSTALL.ISO: Likewise.
16774         * doc/INSTALL.UTF-8: Likewise.
16775
16776 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16777
16778         acl: warn if ACL support is not detected
16779         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16780
16781 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16782
16783         * lib/nproc.h: Add extern "C" block for C++.
16784
16785 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16786             Bruno Haible  <bruno@clisp.org>
16787
16788         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16789         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16790         * doc/posix-functions/isalpha.texi: Likewise.
16791         * doc/posix-functions/isblank.texi: Likewise.
16792         * doc/posix-functions/iscntrl.texi: Likewise.
16793         * doc/posix-functions/isdigit.texi: Likewise.
16794         * doc/posix-functions/isgraph.texi: Likewise.
16795         * doc/posix-functions/islower.texi: Likewise.
16796         * doc/posix-functions/isprint.texi: Likewise.
16797         * doc/posix-functions/ispunct.texi: Likewise.
16798         * doc/posix-functions/isspace.texi: Likewise.
16799         * doc/posix-functions/isupper.texi: Likewise.
16800         * doc/posix-functions/isxdigit.texi: Likewise.
16801
16802 2009-10-18  Bruno Haible  <bruno@clisp.org>
16803
16804         Tests for module 'isblank'.
16805         * modules/isblank-tests: New file.
16806         * tests/test-isblank.c: New file.
16807
16808         New module 'isblank'.
16809         * lib/isblank.c: New file.
16810         * m4/isblank.m4: New file.
16811         * modules/isblank: New file.
16812         * doc/posix-functions/isblank.texi: Mention the new module.
16813
16814 2009-10-18  Bruno Haible  <bruno@clisp.org>
16815
16816         New module 'ctype'.
16817         * lib/ctype.in.h: New file.
16818         * m4/ctype.m4: New file.
16819         * modules/ctype: New file.
16820         * doc/posix-headers/ctype.texi: Mention the new module.
16821
16822 2009-10-18  Jim Meyering  <meyering@redhat.com>
16823
16824         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16825         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16826         right after its initialization, rather than farther down.
16827         Keeping these in close proximity makes it easier to ensure
16828         that each such variable is initialized.  E.g.,
16829
16830             LIB_CLOCK_GETTIME=
16831             AC_SUBST([LIB_CLOCK_GETTIME])
16832
16833         This change also increments these serial numbers.
16834         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16837
16838 2009-10-18  Bruno Haible  <bruno@clisp.org>
16839
16840         Don't let environment variables perturb build.
16841         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16842         (gl_PREREQ_GETHRXTIME): ... not here.
16843
16844 2009-10-18  Bruno Haible  <bruno@clisp.org>
16845
16846         Avoid symlink attack in localcharset module.
16847         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16848         (O_NOFOLLOW): Define fallback.
16849         (get_charset_aliases): Don't open the file if it is a symbolic link.
16850         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16851         gl_FCNTL_H.
16852         (gl_FCNTL_H): Require it.
16853         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16854         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16855         Reported by Fergal Glynn <fglynn@veracode.com>.
16856
16857 2009-10-18  Bruno Haible  <bruno@clisp.org>
16858
16859         Implement nproc for mingw.
16860         * lib/nproc.c: Include <windows.h>
16861         (num_processors): On native Windows platforms, try GetSystemInfo.
16862
16863 2009-10-18  Bruno Haible  <bruno@clisp.org>
16864
16865         Implement nproc for IRIX.
16866         * lib/nproc.c: Include <sys/sysmp.h>.
16867         (num_processors): On IRIX systems, try sysmp.
16868         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16869
16870 2009-10-18  Bruno Haible  <bruno@clisp.org>
16871
16872         Implement nproc for HP-UX.
16873         * lib/nproc.c: Include <sys/pstat.h>
16874         (num_processors): On HP-UX systems, try pstat_getdynamic.
16875         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16876         pstat_getdynamic.
16877
16878 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16879             Bruno Haible  <bruno@clisp.org>
16880
16881         Implement nproc for NetBSD, OpenBSD.
16882         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16883         (ARRAY_SIZE): New macro.
16884         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16885         * m4/nproc.m4: New file.
16886         * modules/nproc (Files): Add m4/nproc.m4.
16887         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16888         (Makefile.am): Instead, augment lib_SOURCES.
16889
16890 2009-10-18  Bruno Haible  <bruno@clisp.org>
16891
16892         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16893         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16894         sys/param.h.
16895
16896 2009-10-16  Eric Blake  <ebb9@byu.net>
16897
16898         utimensat: new module
16899         * modules/utimensat: New file.
16900         * lib/utimensat.c (utimensat): Likewise.
16901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16902         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16903         so we can work around Linux bugs.
16904         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16905         * modules/sys_stat (Makefile.am): Substitute them.
16906         * lib/sys_stat.in.h (utimensat): Declare it.
16907         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16908         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16909         * modules/utimensat-tests: New test.
16910         * tests/test-utimensat.c: Likewise.
16911
16912         utimens: let lutimens work on non-symlinks
16913         * lib/utimens.c (lutimens): Fall back to utimens rather than
16914         failing with ENOSYS, when file is not a symlink.
16915         (utimens): Reduce redirection.
16916         * tests/test-lutimens.h (test_lutimens): Update test to cover
16917         non-symlinks.
16918         * tests/test-utimens.h (test_utimens): Update test to cover
16919         symlinks.
16920         * tests/test-utimens.c (main): Update caller.
16921
16922         utimens: cache whether utimensat syscall works
16923         * lib/utimens.c (utimensat_works_really): New cache variable.
16924         (fdutimens, lutimens): Use it to avoid failing syscall.
16925
16926         test-stat-time, test-utimens: improve portability
16927         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16928         ext4 on alpha, and for cygwin.
16929         * tests/test-utimens-common.h: New file.
16930         (nap): Factor delays into single function.
16931         * tests/test-lutimens.h (test_lutimens): Use new header.
16932         * tests/test-futimens.h (test_futimens): Likewise.
16933         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16934         timestamps to occur from same machine, as was done previously for
16935         test_utimens.
16936         * modules/utimens-tests (Files): Ship new file.
16937         * modules/futimens-tests (Files): Likewise.
16938         Reported in part by Jim Meyering.
16939
16940         sys_stat: sort replacement declarations
16941         * lib/sys_stat.in.h: Sort declarations.
16942         * lib/futimens.c (futimens): Fix typo.
16943
16944 2009-10-15  Jim Meyering  <meyering@redhat.com>
16945
16946         don't let environment settings perturb build
16947         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16948         could cause a configure-time and/or build-time malfunction.
16949         Typically, a configure-time function-in-library test is performed
16950         via code like this:
16951
16952           LIB_VAR=
16953           AC_SUBST([LIB_VAR])
16954           prefix_saved_LIBS=$LIBS
16955             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16956                        [test "$ac_cv_search_FUNC" = "none required" ||
16957                         LIB_VAR=$ac_cv_search_FUNC])
16958           LIBS=$prefix_saved_LIBS
16959
16960         However, in each of the files affected by this change, the LIB_VAR=
16961         initialization was omitted.  Thus, when set in the environment, its
16962         value would propagate into generated Makefiles when FUNC is not found
16963         in LIB_NAME.
16964         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16965         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16967
16968 2009-10-14  Eric Blake  <ebb9@byu.net>
16969
16970         fchdir: avoid infinite recursion in mingw
16971         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16972         recursing.
16973
16974         test-stat-time: port to mingw
16975         * tests/test-stat-time.c (force_unlink): Return a value.
16976         (test_ctime) [W32]: Fix compilation error.
16977         (nap): Don't call usleep with too large an argument.  Use
16978         force_unlink.
16979         * doc/pastposix-functions/usleep.texi (usleep): Document the
16980         portability issue.
16981
16982 2009-10-13  Jim Meyering  <meyering@redhat.com>
16983
16984         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16985         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16986         * modules/pipe-filter-ii: Likewise.
16987         * modules/sys_socket-tests: Likewise.
16988         * modules/tsearch-tests: Likewise.
16989         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16990         (check): Depend on it.
16991
16992 2009-10-12  Eric Blake  <ebb9@byu.net>
16993
16994         utimens-tests: port to NFS file systems
16995         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16996         comparisons to avoid spurious failures from timestamp drift
16997         between NFS machines.
16998
16999 2009-10-12  Eric Blake  <ebb9@byu.net>
17000
17001         stat-time-tests: minor cleanups
17002         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
17003         * tests/test-stat-time.c (nap): Separate assignment from call.
17004         Suggested by Paolo Bonzini and Bruno Haible.
17005
17006         sys_stat: guarantee struct timespec
17007         * lib/sys_stat.in.h (includes): Always include <time.h>
17008         * modules/sys_stat (Depends-on): Add time.
17009         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
17010         mode_t permission values.
17011         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
17012         get at subsecond timestamps.
17013
17014 2009-10-10  Eric Blake  <ebb9@byu.net>
17015
17016         futimens: new module
17017         * modules/futimens: New file.
17018         * lib/futimens.c (futimens): Likewise.
17019         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
17020         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
17021         we can work around Linux bugs.
17022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17023         * modules/sys_stat (Makefile.am): Substitute them.
17024         * lib/sys_stat.in.h (futimens): Declare it.
17025         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17026         * doc/posix-functions/futimens.texi (futimens): Likewise.
17027         * modules/futimens-tests: New test.
17028         * tests/test-futimens.c: Likewise.
17029
17030         utimens: introduce fdutimens
17031         * lib/utimens.h (fdutimens): New prototype.
17032         * lib/utimens.c (gl_futimens): Move guts...
17033         (fdutimens): ...to new interface.
17034         * tests/test-utimens.c (do_fdutimens): Use it.
17035
17036         utimens: add UTIME_NOW and UTIME_OMIT support
17037         * lib/utimens.c (validate_timespec, update_timespec): New helper
17038         functions.
17039         (gl_futimens, lutimens): Use them.
17040         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
17041         stdbool, sys_stat.
17042         (Link): Mention resulting library dependency.
17043         * modules/utimecmp (Link): Likewise.
17044         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
17045         (Makefile.am): Pick up library dependency.
17046         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
17047         definition.
17048         * tests/test-sys_stat.c: Test the definitions.
17049         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
17050         * NEWS: Document library dependency.
17051
17052         utimecmp: support symlink timestamps
17053         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
17054         hashing when possible.  Use pathconf when available.
17055         (SYSCALL_RESOLUTION): Recognize tighter resolution.
17056         * modules/utimecmp (Depends-on): Add lstat.
17057
17058         utimens: add lutimens interface
17059         * lib/utimens.c (lutimens): New function.
17060         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
17061         * lib/utimens.h (lutimens): Declare new interface.
17062         * tests/test-utimens.c (main): Enhance test.
17063         * tests/test-lutimens.h (test_lutimens): New file.
17064         * modules/utimens-tests (Files): Distribute it.
17065         (Depends-on): Add symlink.
17066         (configure.ac): Check for usleep.
17067
17068         utimens: validate futimens usage
17069         * lib/utimens.c (gl_futimens): Require valid fd up front, using
17070         fewer syscalls on failure later on.  Avoid compiler warning on
17071         mingw.
17072         * modules/utimens (Depends-on): Add dup2.
17073
17074         utimens: add test
17075         * modules/utimens-tests: New test.
17076         * tests/test-utimens.h: New file.
17077         * tests/test-futimens.h: Likewise.
17078         * tests/test-utimens.c: Likewise.
17079
17080         doc: mention timestamp portability issues
17081         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17082         instead.
17083         * doc/posix-functions/utime.texi (utime): Likewise.
17084         * doc/posix-functions/utimes.texi (utimes): Likewise.
17085         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17086         instead.
17087         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17088         module.
17089         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17090         Mention weakness with symlink timestamps.
17091         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17092         to utimensat/futimens instead.
17093         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17094
17095         test-dup2: enhance test
17096         * tests/test-dup2.c (main): Also check AT_FDCWD.
17097
17098         test-stat-time: avoid more spurious failures
17099         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17100         xfs; and avoid race if the two timestamps cross quantization edge.
17101
17102         relocatable: prefer 'file system' over 'filesystem'
17103         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17104         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17105         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17106         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17107         * lib/relocatable.c (compute_curr_prefix): Likewise.
17108
17109 2009-10-10  Jim Meyering  <meyering@redhat.com>
17110
17111         stat-time-tests: check for the usleep function
17112         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17113
17114 2009-10-10  Bruno Haible  <bruno@clisp.org>
17115
17116         * modules/xnanosleep: Put the Link section after the Include section.
17117
17118 2009-10-09  Eric Blake  <ebb9@byu.net>
17119
17120         dup2: work around FreeBSD 6.1 bug
17121         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17122         * doc/posix-functions/dup2.texi (dup2): Document it.
17123         Reported by Nelson H. F. Beebe and Jim Meyering.
17124
17125         test-stat-time: port to buggy NFS clients
17126         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17127         (test_ctime): Also skip test if mtime and ctime are skewed.
17128
17129         maint: prefer 'file system' over 'filesystem'
17130         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17131         * doc/posix-functions/lstat.texi (lstat): Likewise.
17132         * lib/file-has-acl.c (file_has_acl): Likewise.
17133         * lib/fwriteerror.c [TEST]: Likewise.
17134         * tests/test-areadlink.h (test_areadlink): Likewise.
17135         * tests/test-areadlinkat-with-size.c (main): Likewise.
17136         * tests/test-areadlinkat.c (main): Likewise.
17137         * tests/test-canonicalize-lgpl.c (main): Likewise.
17138         * tests/test-canonicalize.c (main): Likewise.
17139         * tests/test-fstatat.c (main): Likewise.
17140         * tests/test-linkat.c (main): Likewise.
17141         * tests/test-lstat.h (test_lstat_func): Likewise.
17142         * tests/test-mkdir.h (test_mkdir): Likewise.
17143         * tests/test-readlink.h (test_readlink): Likewise.
17144         * tests/test-remove.c (main): Likewise.
17145         * tests/test-rename.h (test_rename): Likewise.
17146         * tests/test-renameat.c (main): Likewise.
17147         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17148         * tests/test-symlink.h (test_symlink): Likewise.
17149         * tests/test-symlinkat.c (main): Likewise.
17150         * tests/test-unlink.h (test_unlink_func): Likewise.
17151         * tests/test-unlinkat.c (main): Likewise.
17152
17153         maint: make realtime library usage explicit
17154         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17155         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17156         * modules/settime (Link): Likewise.
17157         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17158
17159         test-stat-time: speed up execution
17160         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17161         warning on mingw.
17162         (nap): New helper function.
17163         (prepare_test): Use it to reduce sleep time.
17164         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17165         execution.
17166         * modules/stat-time-tests (configure.ac): Check for usleep.
17167
17168 2009-10-09  Jim Meyering  <meyering@redhat.com>
17169
17170         selinux-h: always use getfilecon wrappers
17171         * lib/getfilecon.c: New file.
17172         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17173         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17174         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17175         (fgetfilecon): Provide a stub.
17176         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17177         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17178         file unconditionally.
17179         When <selinux/selinux.h> is found, arrange to use wrappers.
17180         * modules/selinux-h (Files): Add getfilecon.c.
17181         (Makefile.am): Substitute include-next-related bits
17182         into the now-always-generated selinux/selinux.h file.
17183         * doc/glibc-functions/lgetfilecon.texi: New file.
17184         * doc/glibc-functions/fgetfilecon.texi: New file.
17185         * doc/glibc-functions/getfilecon.texi: New file.
17186         * doc/glibc-functions/getfilecon-desc.texi: New file.
17187         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17188         which to pull in the new files.
17189         * MODULES.html.sh (Misc): Add selinux-h.
17190
17191 2009-10-08  Jim Meyering  <meyering@redhat.com>
17192
17193         unistd: fix comment typo
17194         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17195
17196 2009-10-08  Eric Blake  <ebb9@byu.net>
17197
17198         areadlink: use SIZE_MAX consistently
17199         * modules/areadlink (Depends-on): Add stdint.
17200         * modules/areadlink-with-size (Depends-on): Likewise.
17201         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17202         gives NULL; drop sys/types, since unistd gives size_t; and add
17203         stdint for SIZE_MAX.
17204         (SIZE_MAX): Rely on headers.
17205         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17206         and add stdint.
17207         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17208         (SIZE_MAX): Likewise.
17209         (INITIAL_BUF_SIZE): Turn into enum.
17210         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17211
17212 2009-10-08  Jim Meyering  <meyering@redhat.com>
17213
17214         areadlinkat: avoid compilation failure
17215         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17216         Fix typo in comment.
17217
17218 2009-10-07  Eric Blake  <ebb9@byu.net>
17219
17220         areadlinkat-with-size: new module
17221         * modules/areadlinkat-with-size: New module.
17222         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17223         * lib/areadlink.h (areadlinkat): Declare it.
17224         * MODULES.html.sh (File system functions): Mention it.
17225         * modules/areadlinkat-with-size-tests: New test.
17226         * tests/test-areadlinkat-with-size.c: New file.
17227
17228         xreadlinkat: new module
17229         * modules/xreadlinkat: New module.
17230         * lib/xreadlinkat.c (xreadlinkat): New file.
17231         * lib/xreadlink.h (xreadlinkat): Declare it.
17232         * MODULES.html.sh (File system functions): Mention it.
17233
17234         areadlinkat: new module
17235         * lib/at-func.c (FUNC_FAIL): New define.
17236         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17237         * modules/areadlinkat: New module.
17238         * lib/linkat.c (areadlinkat): Move...
17239         * lib/areadlinkat.c (areadlinkat): ...to new file.
17240         * lib/areadlink.h (areadlinkat): Declare it.
17241         * modules/linkat (Depends-on): Add areadlinkat.
17242         * MODULES.html.sh (File system functions): Mention it.
17243         * modules/areadlinkat-tests: New test.
17244         * tests/test-areadlinkat.c: New file.
17245
17246         areadlink, areadlink-with-size: add tests
17247         * modules/areadlink-tests: New test.
17248         * modules/areadlink-with-size-tests: Likewise.
17249         * tests/test-areadlink.h: New file.
17250         * tests/test-areadlink.c: Likewise.
17251         * tests/test-areadlink-with-size.c: Likewise.
17252
17253         maint: minor cleanups
17254         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17255         _UNUSED_PARAMETER_ instead.
17256         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17257         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17258         * modules/linkat-tests (Files): Distribute test-link.h.
17259
17260         openat, utimens: whitespace cleanup
17261         * lib/openat.c: Prefer space throughout, rather than mix of 8
17262         spaces vs. tabs.
17263         * lib/at-func.c: Likewise.
17264         * lib/utimens.c: Likewise.
17265
17266         openat: avoid using wrong fd
17267         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17268         working directory chooses same fd.
17269         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17270
17271         mkdir, mkdirat: fix cygwin 1.5.x bug
17272         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17273         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17274         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17275         bug.
17276         (gl_PREREQ_MKDIR): Delete unused macro.
17277         * modules/mkdir (Files): Track file rename.
17278         (configure.ac): Update macro name.
17279         * modules/openat (Depends-on): Add mkdir.
17280         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17281
17282         mkdir, mkdirat: add tests
17283         * modules/mkdir-tests: New test.
17284         * tests/test-mkdir.h: New file.
17285         * tests/test-mkdir.c: Likewise.
17286         * tests/test-mkdirat.c: Likewise.
17287         * modules/openat-tests (Files): Add new files.
17288         (Makefile.am): Run new test.
17289
17290 2009-10-06  Eric Blake  <ebb9@byu.net>
17291
17292         doc: tweak *at function documentation
17293         * doc/posix-functions/faccessat.texi (faccessat): Mention
17294         known issue with replacement.
17295         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17296         * doc/posix-functions/linkat.texi (linkat): Likewise.
17297         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17298         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17299         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17300         * doc/posix-functions/renameat.texi (renameat): Likewise.
17301         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17302
17303         openat: fix GNU/Hurd bug in unlinkat
17304         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17305         broken.
17306         * doc/posix-functions/unlink.texi (unlink): Document this.
17307         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17308
17309         fdopendir: fix GNU/Hurd bug
17310         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17311         allowing non-directory fds.
17312         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17313         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17314         * modules/dirent (Makefile.am): Substitute it.
17315         * lib/dirent.in.h (fdopendir): Declare replacement.
17316         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17317         * tests/test-fdopendir.c (main): Test something other than
17318         /dev/null, since on Hurd that behaves like a directory.
17319
17320         test-symlink: port to GNU/Hurd
17321         * tests/test-symlink.h (test_symlink): Relax expected errno.
17322
17323         doc: tweak more cygwin information
17324         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17325         now compatible with glibc.
17326         * doc/posix-functions/getopt.texi (getopt): Likewise.
17327
17328         getopt-gnu: add another test
17329         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17330         guarantee behavior relied on by m4.
17331         * tests/test-getopt.c (main): Use it.
17332         * modules/getopt-posix-tests (Depends-on): Add setenv.
17333         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17334
17335         getopt: fix compilation on darwin
17336         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17337         include.
17338         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17339         Reported by Ludovic Courtès.
17340
17341 2009-10-06  Bruno Haible  <bruno@clisp.org>
17342
17343         * modules/size_max (Description): Discourage its use.
17344         Reported by Simon Josefsson.
17345
17346 2009-10-06  Jim Meyering  <meyering@redhat.com>
17347
17348         linkat: avoid compilation failure
17349         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17350
17351 2009-10-05  Eric Blake  <ebb9@byu.net>
17352
17353         linkat: support Linux 2.6.17
17354         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17355         linkat on Linux, but allow cache variable override.
17356         * lib/linkat.c (rpl_linkat): Define override.
17357         * modules/linkat (Depends-on): Add symlinkat.
17358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17359         * modules/unistd (Makefile.am): Substitute it.
17360         * lib/unistd.in.h (linkat): Declare replacement.
17361         Reported by Pádraig Brady.
17362
17363         quotearg: port test to systems with C.UTF-8 locale
17364         * tests/test-quotearg.c (struct result_strings): Add another
17365         member, differentiating between C.ASCII and C.UTF-8 handling.
17366         (compare_strings): Add parameter.
17367         (main): Adjust all callers.
17368
17369         getopt: avoid clash with FreeBSD _getopt_internal
17370         * lib/getopt.in.h (_getopt_internal): Override the name.
17371         * lib/getopt_int.h (includes): Pick up any overrides.
17372         Reported by Reuben Thomas.
17373
17374         hash: allow C89 compilation
17375         * lib/hash.c (check_tuning): Move declaration before statement.
17376         Reported by Reuben Thomas.
17377
17378 2009-10-05  Karl Berry  <karl@gnu.org>
17379
17380         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17381
17382 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17383             Bruno Haible  <bruno@clisp.org>
17384
17385         * lib/uname.c (uname): Use a table-driven algorithm to compute
17386         Windows NT versions.
17387
17388 2009-10-04  Bruno Haible  <bruno@clisp.org>
17389
17390         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17391         program_invocation_short_name.
17392         * modules/progname (configure.ac): Test for presence of
17393         program_invocation_short_name.
17394         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17395
17396 2009-10-04  Bruno Haible  <bruno@clisp.org>
17397
17398         * lib/progname.c (set_program_name): Fix comment.
17399         Reported by Jim Meyering.
17400
17401 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17402             Bruno Haible  <bruno@clisp.org>
17403
17404         * lib/uname.c: Include <string.h>.
17405         (uname): Do only one call to GetVersionEx in the common case.
17406
17407 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17408             Bruno Haible  <bruno@clisp.org>
17409
17410         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17411         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17412         (uname): Add support for Windows CE and various non-x86 CPU types.
17413
17414 2009-10-03  Bruno Haible  <bruno@clisp.org>
17415
17416         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17417         invocation to tests/configure.ac.
17418         Reported by Ian Beckwith <ianb@erislabs.net>.
17419
17420 2009-10-02  Eric Blake  <ebb9@byu.net>
17421
17422         fchdir: avoid compiler warning
17423         * lib/fchdir.c (canonicalize_file_name)
17424         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17425
17426         test-open: support mingw errno values
17427         * tests/test-open.h (test_open): Relax test.
17428         * tests/test-fopen.h (test_fopen): Likewise.
17429         * tests/test-openat-safer.c (main): Likewise.
17430
17431         open: fix opening directory on mingw
17432         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17433
17434         test-open: on GNU/Hurd, /dev/null is a directory
17435         * tests/test-fopen.h (main): Rename...
17436         (test_fopen): ...to this.  Use a guaranteed non-directory when
17437         confirming open behavior on trailing slash.
17438         * tests/test-openat-safer.c (main): Likewise.
17439         * tests/test-open.h (main): Likewise....
17440         (test_open): ...to this.
17441         * tests/test-fopen.c (main): Adjust caller.
17442         * tests/test-fopen-safer.c (main): Likewise.
17443         * tests/test-open.c (main): Likewise.
17444         * tests/test-fcntl-safer.c (main): Likewise.
17445         Reported by Samuel Thibault.
17446
17447         rename, fchdir: don't ignore chdir failure
17448         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17449         * lib/rename.c (rpl_rename) [W32]: Likewise.
17450         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17451         an empty destination directory if source cannot be renamed,
17452         although there is still possibility for failure.
17453         * doc/posix-functions/rename.texi (rename): Document the race.
17454         Reported by Jim Meyering.
17455
17456         maint: cleanup whitespace in recent commits
17457         * lib/rename.c (rpl_rename): Remove tabs.
17458         * tests/test-link.h (test_link): Likewise.
17459         * lib/fchdir.c (get_name): Likewise.
17460         Reported by Jim Meyering.
17461
17462 2009-10-02  Ben Pfaff  <blp@gnu.org>
17463
17464         relocatable-prog-wrapper: Add missing dependency on
17465         double-slash-root.
17466         * modules/relocatable-prog-wrapper: Add dependency.
17467         Reported by Ian Beckwith <ianb@erislabs.net>.
17468
17469 2009-10-02  Eric Blake  <ebb9@byu.net>
17470
17471         renameat: fix Solaris bugs
17472         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17473         needed fixing.
17474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17475         * modules/stdio (Makefile.am): Substitute it.
17476         * lib/stdio.in.h (renameat): Declare replacement.
17477         * lib/renameat.c (rpl_renameat): Implement fix.
17478
17479         renameat: new module
17480         * modules/renameat: New file.
17481         * lib/renameat.c (renameat): Likewise.
17482         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17484         * modules/stdio (Makefile.am): Substitute them.
17485         * lib/stdio.in.h (renameat): Declare it.
17486         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17487         * doc/posix-functions/renameat.texi (renameat): Likewise.
17488         * modules/renameat-tests: New test.
17489         * tests/test-renameat.c: Likewise.
17490
17491         rename: fix mingw bugs
17492         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17493         directory overwrite bugs.
17494
17495         rename: fix another cygwin 1.5 bug
17496         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17497         checks.
17498         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17499         unnecessary cygwin workarounds.  Also work around bug with moving
17500         full directory onto an empty one.
17501         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17502
17503         rename-dest-slash: merge into rename module
17504         * modules/rename-dest-slash (Status): Mark obsolete.
17505         (Depends-on): Add rename.
17506         (Files): Let rename do it all.
17507         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17508         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17509         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17510         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17511         * lib/rename.c (rpl_rename): Update comments.
17512
17513         rename: fix cygwin 1.5.x bugs
17514         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17515         * lib/rename.c (rpl_rename): Work around them.
17516         * modules/rename (Depends-on): Add same-inode.
17517
17518         rename: fix Solaris 10 bug
17519         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17520         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17521         was the only bug.
17522
17523         rename: fix Solaris 9 bug
17524         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17525         on non-directory.  Avoid calling exit.
17526         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17527         strdup.
17528         * modules/rename-tests (Depends-on): Drop lstat.
17529         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17530         (gl_PREREQ_RENAME): Delete unused macro.
17531
17532         rename-dest-slash: fix NetBSD bug
17533         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17534         links.
17535         * modules/rename-dest-slash (Depends-on): Add same-inode.
17536
17537         rename-tests: new test, exposes several platform bugs
17538         * modules/rename-tests: New file.
17539         * tests/test-rename.h: Likewise.
17540         * tests/test-rename.c: Likewise.
17541         * doc/posix-functions/rename.texi (rename): Improve documentation,
17542         including bugs that will eventually be fixed in gnulib.
17543
17544 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17545
17546         * lib/uname.c: Include <stdlib.h>
17547         (uname): Assume version info is available.
17548
17549 2009-10-02  Jim Meyering  <meyering@redhat.com>
17550
17551         gnu-web-doc-update: correct --help output
17552         * build-aux/gnu-web-doc-update: Make --help output relevant.
17553
17554         gnu-web-doc-update: add standard options
17555         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17556
17557         gnu-web-doc-update: New module.
17558         Use this script to automatically update the on-line web documentation
17559         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17560         * modules/gnu-web-doc-update: New file, from coreutils.
17561         * build-aux/gnu-web-doc-update: New script.
17562
17563 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17564
17565         link: LoadLibrary is not needed.
17566         * lib/link.c: Use GetModuleHandle.
17567
17568 2009-10-01  Eric Blake  <ebb9@byu.net>
17569
17570         getopt: bump serial number
17571         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17572         change.
17573
17574         tests: tighten link, rmdir, and remove tests
17575         * tests/test-link.h (includes): No need to use <config.h> here.
17576         Clean up if directory hard link was created, otherwise test for
17577         trailing '.'.
17578         * tests/test-linkat.c (main): Simplify.
17579         * tests/test-remove.c (main): Enhance test for trailing '.'.
17580         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17581
17582 2009-10-01  Jim Meyering  <meyering@redhat.com>
17583
17584         maint.mk: requiring "make major" was annoying, for a "minor" release.
17585         What is intended is "stable", to contrast with alpha and beta,
17586         so require "make stable", not "make major".
17587         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17588         (get_tool_versions): Likewise.
17589         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17590
17591 2009-09-30  Ben Pfaff  <blp@gnu.org>
17592
17593         Fix broken build of replacement for Windows tmpfile().
17594         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17595         flags argument added along with the 'mkostemp' module.
17596
17597 2009-09-28  Bruno Haible  <bruno@clisp.org>
17598
17599         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17600         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17601         to 'remove_elt'.
17602         (gl_list_remove): Update.
17603         * lib/gl_list.c (gl_list_remove): Update.
17604         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17605         to 'remove_elt'.
17606         (gl_oset_remove): Update.
17607         * lib/gl_list.c (gl_oset_remove): Update.
17608         Reported by Eric Blake.
17609
17610 2009-09-28  Eric Blake  <ebb9@byu.net>
17611
17612         doc: mention yet more cygwin 1.7 status
17613         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17614         cygwin.
17615         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17616         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17617
17618         argp: fix test failure
17619         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17620         that are not upper-case.  Pass correct range to tolower.
17621
17622 2009-09-27  Jim Meyering  <meyering@redhat.com>
17623
17624         test-yesno: work around sparc-dash here-document infelicity
17625         Without this change, the literal \177 byte in a here document
17626         would make dash 0.5.5.1-3 access uninitialized memory.
17627         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17628         Instead, use a marker, "@", and filter through tr to create the desired
17629         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17630
17631 2009-09-27  Bruno Haible  <bruno@clisp.org>
17632
17633         Disable untested support for new flavours of ACLs on AIX.
17634         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17635         progress.
17636         * lib/set-mode-acl.c (qset_acl): Likewise.
17637
17638 2008-12-07  Bruno Haible  <bruno@clisp.org>
17639
17640         Add support for new flavours of ACLs on AIX. (Untested.)
17641         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17642         (file_has_acl): Add support for newer AIX.
17643         * lib/set-mode-acl.c (qset_acl): Likewise.
17644         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17645         Rainer Tammer <tammer@tammer.net>.
17646
17647 2009-09-26  Eric Blake  <ebb9@byu.net>
17648
17649         argp: fix compilation of getopt
17650         * lib/getopt.in.h (includes): Use different guard than glibc.
17651         Reported by Sergey Poznyakoff.
17652
17653         doc: mention more cygwin 1.7 status
17654         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17655         bug.
17656         * doc/posix-functions/execl.texi (execl): Likewise.
17657         * doc/posix-functions/execle.texi (execle): Likewise.
17658         * doc/posix-functions/execlp.texi (execlp): Likewise.
17659         * doc/posix-functions/execv.texi (execv): Likewise.
17660         * doc/posix-functions/execve.texi (execve): Likewise.
17661         * doc/posix-functions/execvp.texi (execvp): Likewise.
17662         * doc/glibc-functions/canonicalize_file_name.texi
17663         (canonicalize_file_name): Cygwin 1.7 now provides this.
17664         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17665         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17666         on AT_SYMLINK_NOFOLLOW.
17667
17668 2009-09-24  Eric Blake  <ebb9@byu.net>
17669
17670         test-linkat: make test more robust
17671         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17672
17673         getopt: fix inclusion guards for cygwin
17674         * modules/getopt-posix (Depends-on): Add include-next.
17675         (Makefile.am): Substitute more items in replacement header.
17676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17677         <getopt.h>.
17678         * lib/getopt.in.h (includes): Use split inclusion guard, and
17679         prefer <getopt.h> over include <unistd.h> when one is present.
17680         (option): Also override name of 'struct option'.
17681
17682         same-inode: revert prior change; it is not yet ready
17683         * NEWS: Undo mention of this change.
17684         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17685         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17686         * lib/cycle-check.c (cycle_check): Likewise.
17687         * lib/same.c (same_name): Likewise.
17688         * lib/at-func2.c (at_func2): Likewise.
17689
17690 2009-09-23  Eric Blake  <ebb9@byu.net>
17691
17692         linkat: new module
17693         * modules/linkat: New file.
17694         * lib/at-func2.c (at_func2): Likewise.
17695         * lib/linkat.c (linkat): Likewise.
17696         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17697         * lib/openat-priv.h (at_func2): Add declaration.
17698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17699         * modules/unistd (Makefile.am): Substitute them.
17700         * lib/unistd.in.h (linkat): Declare it.
17701         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17702         * doc/posix-functions/linkat.texi (linkat): Likewise.
17703         * doc/posix-functions/link.texi (link): Tweak wording.
17704         * tests/test-link.c (main): Move guts...
17705         * tests/test-link.h (test_link): ...into new file.
17706         * modules/linkat-tests: New test.
17707         * tests/test-linkat.c: Likewise.
17708         * modules/link-tests (Files): Ship new file.
17709         (Depends-on): Add stdbool.
17710
17711         dirname: add library-safe mdir_name
17712         * lib/dirname.h (mdir_name): New prototype.
17713         * lib/dirname.c (dir_name): Move guts...
17714         (mdir_name): ...to new function that avoids xalloc_die.
17715
17716         fchdir: another mingw fix
17717         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17718         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17719         on mingw (where it has not yet been ported), and make it optional
17720         elsewhere.
17721         (_gl_register_fd): Use it.
17722
17723         same-inode: make SAME_INODE tri-state, to port to mingw
17724         * NEWS: Mention this change.
17725         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17726         st_ino always being 0.
17727         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17728         * lib/cycle-check.c (cycle_check): Likewise.
17729         * lib/same.c (same_name): Likewise.
17730
17731         lstat: avoid mingw compilation error
17732         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17733         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17734         lstat ourselves.
17735         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17736         was adequate.
17737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17738         the checks for lstat.
17739         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17740
17741         link: fix test failure on Solaris 9
17742         * lib/link.c (rpl_link): Don't assume link will catch bogus
17743         trailing slash on source.
17744
17745         test-symlinkat: enhance test
17746         * tests/test-readlink.c (main): Move guts...
17747         * tests/test-readlink.h (test_readlink): ...into new file.
17748         * tests/test-symlink.c (main): Move guts...
17749         * tests/test-symlink.h (test_symlink): ...into new file.
17750         * tests/test-symlinkat.c (main): Use new files for further
17751         coverage.
17752         (do_symlink, do_readlink): New helper functions.
17753         * modules/symlink-tests (Files): Ship new file.
17754         (Depends-on): Add stdbool.
17755         * modules/readlink-tests (Files): Ship new file.
17756         (Depends-on): Add stdbool.
17757         * modules/symlinkat-tests (Files): Use new files.
17758
17759 2009-09-23  Eric Blake  <ebb9@byu.net>
17760
17761         readlink: document portability issue with symlink length
17762         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17763         systems have bogus st_size on symlinks, and mention the
17764         areadlink-with-size module.
17765         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17766         * doc/posix-functions/readlink.texi (readlink): Mention the
17767         areadlink module, and ERANGE failure.
17768         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17769         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17770
17771         readlink: fix Solaris 9 bug with trailing slash
17772         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17773         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17774         * doc/posix-functions/readlink.texi (readlink): Document this.
17775         * modules/readlink-tests: New test.
17776         * tests/test-readlink.c: Likewise.
17777
17778         readlink: fix cygwin 1.5.x bug with return type
17779         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17780         * lib/unistd.in.h (readlink): Use ssize_t.
17781         * lib/readlink.c (readlink): Likewise.
17782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17783         * modules/unistd (Makefile.am): Substitute it.
17784         * lib/unistd.in.h (readlink): Declare replacement.
17785         * doc/posix-functions/readlink.texi (readlink): Document this.
17786
17787         symlink: use throughout gnulib
17788         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17789         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17790         symlink is not used.
17791         * modules/symlinkat (Depends-on): Add symlink.
17792         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17793         * modules/canonicalize-tests (Depends-on): Likewise.
17794         * modules/lstat-tests (Depends-on): Likewise.
17795         * modules/openat-tests (Depends-on): Likewise.
17796         * modules/remove-tests (Depends-on): Likewise.
17797         * modules/rmdir-tests (Depends-on): Likewise.
17798         * modules/unlink-tests (Depends-on): Likewise.
17799         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17800         * tests/test-canonicalize.c (symlink): Likewise.
17801         * tests/test-fstatat.c (symlink): Likewise.
17802         * tests/test-lstat.c (symlink): Likewise.
17803         * tests/test-remove.c (symlink): Likewise.
17804         * tests/test-rmdir.c (symlink): Likewise.
17805         * tests/test-unlink.c (symlink): Likewise.
17806         * tests/test-unlinkat.c (symlink): Likewise.
17807
17808         symlink: new module, for Solaris 9 bug
17809         * modules/symlink: New file.
17810         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17811         * lib/symlink.c: Likewise.
17812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17813         * modules/unistd (Makefile.am): Substitute them.
17814         * lib/unistd.in.h (symlink): Declare replacement.
17815         * MODULES.html.sh (File system functions): Mention it.
17816         * doc/posix-functions/symlink.texi (symlink): Likewise.
17817         * modules/symlink-tests: New test.
17818         * tests/test-symlink.c: Likewise.
17819
17820 2009-09-23  Bruno Haible  <bruno@clisp.org>
17821
17822         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17823         when needed.
17824         Test case: gnulib-tool --import --with-tests atexit inttypes.
17825         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17826
17827 2009-09-23  Bruno Haible  <bruno@clisp.org>
17828
17829         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17830         subcommand, not in a subshell.
17831
17832 2009-09-22  Eric Blake  <ebb9@byu.net>
17833
17834         unistd: sort replacement declarations
17835         * lib/unistd.in.h: Sort declarations.
17836
17837         open, openat: minor optimization
17838         * lib/open.c (open): If open succeeded, len is non-zero.
17839         * lib/openat.c (rpl_openat): Likewise.
17840
17841         link-follow: ensure correct result
17842         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17843         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17844         distinguish between possible failures.
17845
17846 2009-09-21  Eric Blake  <ebb9@byu.net>
17847
17848         fts: avoid compiler warning
17849         * lib/fts.c (dirent_inode_sort_may_be_useful)
17850         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17851
17852 2009-09-19  Bruno Haible  <bruno@clisp.org>
17853
17854         * lib/progreloc.c (canonicalize_file_name): New declaration.
17855
17856 2009-09-19  Eric Blake  <ebb9@byu.net>
17857
17858         link: fix quoting
17859         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17860
17861         openat: fix openat bugs on Solaris 9
17862         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17863         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17864         * modules/openat (Depends-on): Add open.
17865         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17866         * modules/fcntl-h (Makefile.am): Substitute it.
17867         * lib/fcntl.in.h (openat): Declare replacement.
17868         * doc/posix-functions/openat.texi (openat): Document this.
17869
17870         openat: move fstatat and unlinkat into correct files
17871         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17872         compiled.
17873         * lib/openat.c (fstatat, unlinkat): Move...
17874         * lib/fstatat.c (fstatat): ...into correct files.
17875         * lib/unlinkat.c (unlinkat): Likewise.
17876
17877         openat: fix unlinkat bugs on Solaris 9
17878         * lib/unlinkat.c (unlinkat): New file.
17879         * modules/openat (Depends-on): Add unlink.
17880         (Files): Distribute it.
17881         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17882         trailing slash behavior is broken.
17883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17884         * modules/unistd (Makefile.am): Substitute it.
17885         * lib/unistd.in.h (unlinkat): Declare replacement.
17886         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17887
17888         openat: fix fstatat bugs on Solaris 9
17889         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17890         stat.
17891         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17892
17893         test-unlinkat: enhance test, to expose Solaris 9 bug
17894         * tests/test-unlink.c (main): Factor guts...
17895         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17896         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17897         * tests/test-rmdir.c (main): Adjust caller.
17898         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17899         (unlinker): New helper function.
17900         (rmdirat): Enhance check.
17901         * modules/rmdir-tests (Depends-on): Add stdbool.
17902         * modules/unlink-tests (Depends-on): Likewise.
17903         (Files): Add test-unlink.h.
17904         * modules/openat-tests (Files): Likewise.
17905         (Depends-on): Add unlinkdir.
17906
17907         test-fstatat: new test, to expose Solaris 9 bugs
17908         * tests/test-stat.c (main): Factor guts...
17909         * tests/test-stat.h (test_stat_func): ...into new file.
17910         * tests/test-lstat.c (main): Factor guts...
17911         * tests/test-lstat.h (test_lstat_func): ...into new file.
17912         * tests/test-fstatat.c: New file.
17913         * modules/stat-tests (Files): Add test-stat.h.
17914         * modules/lstat-tests (Files): Add test-lstat.h.
17915         (Depends-on): Add stdbool.
17916         * modules/openat-tests (Depends-on): Add pathmax.
17917         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17918         (Makefile.am): Run new test.
17919
17920         remove: new module, for mingw and Solaris 9 bugs
17921         * modules/remove: New file.
17922         * lib/remove.c: Likewise.
17923         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17925         * modules/stdio (Makefile.am): Use them.
17926         * lib/stdio.in.h (remove): Declare replacement.
17927         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17928         * doc/posix-functions/remove.texi (remove): Likewise.
17929         * modules/remove-tests: New test.
17930         * tests/test-remove.c: Likewise.
17931
17932         unlink: new module, for Solaris 9 bug
17933         * modules/unlink: New file.
17934         * lib/unlink.c: Likewise.
17935         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17937         * modules/unistd (Makefile.am): Use them.
17938         * lib/unistd.in.h (stat): Declare replacement.
17939         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17940         * doc/posix-functions/unlink.texi (unlink): Likewise.
17941         * modules/unlink-tests: New test.
17942         * tests/test-unlink.c: Likewise.
17943
17944         lstat: fix Solaris 9 bug
17945         * lib/lstat.c (lstat): Also check for trailing slash on
17946         non-symlink, non-directories.  Use stat module to simplify logic.
17947         * doc/posix-functions/lstat.texi (lstat): Document it.
17948         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17949         (configure.ac): Check for symlink.
17950         * tests/test-lstat.c (main): Add more tests.
17951
17952         stat: add as dependency to other modules
17953         * modules/chown (Depends-on): Add stat.
17954         * modules/euidaccess (Depends-on): Likewise.
17955         * modules/fchdir (Depends-on): Likewise.
17956         * modules/isdir (Depends-on): Likewise.
17957         * modules/link (Depends-on): Likewise.
17958         * modules/lstat (Depends-on): Likewise.
17959         * modules/mkdir-p (Depends-on): Likewise.
17960         * modules/modechange (Depends-on): Likewise.
17961         * modules/open (Depends-on): Likewise.
17962         * modules/readlink (Depends-on): Likewise.
17963         * modules/same (Depends-on): Likewise.
17964
17965         stat: fix Solaris 9 bug
17966         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17967         slash.
17968         * lib/stat.c (rpl_stat): Work around it.
17969         * doc/posix-functions/stat.texi (stat): Update documentation.
17970
17971         stat: new module, for mingw bug
17972         * modules/stat: New file.
17973         * lib/stat.c: Likewise.
17974         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17976         * modules/sys_stat (Makefile.am): Use them.
17977         * lib/sys_stat.in.h (stat): Declare replacement.
17978         * lib/openat.c (fstatat): Deal with lstat and stat being function
17979         macros.
17980         * modules/openat (Depends-on): Add inline.
17981         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17982         * doc/posix-functions/stat.texi (stat): Likewise.
17983         * modules/stat-tests: New test.
17984         * tests/test-stat.c: Likewise.
17985
17986 2009-09-19  Jim Meyering  <meyering@redhat.com>
17987
17988         syntax-check: detect unnecessary inclusion of canonicalize.h
17989         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17990
17991 2009-09-19  Eric Blake  <ebb9@byu.net>
17992
17993         canonicalize-lgpl: adjust clients to use correct header
17994         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17995         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17996         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17997         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17998         * lib/progreloc.c (includes): Likewise.
17999
18000 2009-09-19  Jim Meyering  <meyering@redhat.com>
18001
18002         test-posixtm.c: correct a comment
18003         * tests/test-posixtm.c: Correct first-line comment.
18004         Spotted by Eric Blake.
18005
18006 2009-09-16  Jim Meyering  <meyering@redhat.com>
18007
18008         posixtm-tests: make T const-correct; add a test case
18009         * tests/test-posixtm.c (T): Declare const.
18010         Add a test for -(2^31+1).
18011         Remove useless can-succeed-only-in-2002 test.
18012
18013         posixtm-tests: adjust the sole failing test
18014         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
18015         expected output matches what mktime now produces.  Cross-checked via
18016         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
18017
18018         posixtm: move #ifdef'd tests into a new module
18019         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
18020         * tests/test-posixtm.c: ... this new file.
18021         * modules/posixtm-tests: New module.
18022
18023 2009-09-19  Eric Blake  <ebb9@byu.net>
18024
18025         openat: simplify use of at-func.c
18026         * lib/at-func.c (includes): Include prerequisites here, to
18027         simplify requirements on client files.
18028         * lib/openat-priv.h: Add double-inclusion guard.
18029         * lib/faccessat.c (includes): Simplify.
18030         * lib/fchmodat.c (includes): Likewise.
18031         * lib/fchownat.c (includes): Likewise.
18032         * lib/mkdirat.c (includes): Likewise.
18033         * lib/mkfifoat.c (includes): Likewise.
18034         * lib/symlinkat.c (includes): Likewise.
18035
18036         openat: allow return of fd 0
18037         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
18038         * modules/save-cwd (Depends-on): Replace fcntl-safer with
18039         unistd-safer.
18040         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
18041         <fcntl.h>; this module does not leak fds.
18042         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
18043         must be allowed to return 0, leaving openat_safer to add the
18044         safety.
18045         (openat_permissive): Avoid writing to just-opened fd 2 if
18046         restoring the current directory fails.
18047         * lib/openat-die.c (openat_restore_fail): Add comment.
18048         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
18049         (save_cwd): Guarantee safe fd, but without use of open_safer.
18050         * tests/test-openat.c: New test.
18051         * modules/openat-tests (Files, Makefile.am): Distribute and build
18052         new file.
18053
18054         relocatable-prog-wrapper: fix build
18055         * modules/relocatable-prog-wrapper (Files): Update name of
18056         canonicalize m4 file, broken on 2009-09-17.
18057         Reported by emad hajjar <aleppos@hotmail.com>.
18058
18059 2009-09-19  Bruno Haible  <bruno@clisp.org>
18060
18061         * lib/safe-alloc.h: Use the standard header with GPL copyright.
18062         * lib/safe-alloc.c: Likewise.
18063         Reported by Ian Beckwith <ianb@erislabs.net>.
18064
18065 2009-09-18  Bruno Haible  <bruno@clisp.org>
18066
18067         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
18068         Reported by <erobles@sensacd.com.mx>.
18069
18070 2009-09-17  Eric Blake  <ebb9@byu.net>
18071
18072         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
18073         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
18074         slashes when checking if last component is missing.
18075         * tests/test-canonicalize.c (main): Test this.
18076
18077         canonicalize, canonicalize-lgpl: honor // if distinct from /
18078         * modules/canonicalize (Files): Add double-slash-root.m4.
18079         * modules/canonicalize-lgpl (Files): Likewise.
18080         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18081         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18082         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18083         fallback definition.
18084         (canonicalize_filename_mode): Use it to protect //.
18085         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18086         (__realpath): Likewise.
18087         * tests/test-canonicalize.c (main): Test this.
18088         * tests/test-canonicalize-lgpl.c (main): Likewise.
18089         * modules/canonicalize-tests (Depends-on): Add same-inode.
18090         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18091
18092         canonicalize-lgpl: fix glibc bug with trailing slash
18093         * m4/canonicalize-lgpl.m4: Move contents...
18094         * m4/canonicalize.m4: ...here.
18095         (gl_CANONICALIZE_LGPL): Factor realpath check...
18096         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18097         glibc 2.3.5 bug, fixed 2005-04-27.
18098         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18099         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18100         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18101         * modules/canonicalize-lgpl (Files): Manage file rename.
18102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18103         * modules/stdlib (Makefile.am): Substitute witness.
18104         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18105         is needed.
18106         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18107         replacement is required.
18108         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18109         * doc/glibc-functions/canonicalize_file_name.texi
18110         (canonicalize_file_name): Document this.
18111         * doc/posix-functions/realpath.texi (realpath): Likewise.
18112
18113         canonicalize-lgpl: reject non-directory with trailing slash
18114         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18115         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18116         catches failures in glibc 2.3.5.
18117         * tests/test-canonicalize.c (main): Likewise.
18118
18119         canonicalize-lgpl: use native realpath if it works
18120         * lib/canonicalize-lgpl.c (realpath): Guard with
18121         FUNC_REALPATH_WORKS.
18122         * lib/stdlib.in.h (realpath): Make declaration optional based on
18123         HAVE_REALPATH.
18124         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18125         native realpath works.
18126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18127         * modules/stdlib (Makefile.am): Substitute witness.
18128
18129         canonicalize, canonicalize-lgpl: use <stdlib.h>
18130         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18131         (Include): Mention <stdlib.h>.
18132         (configure.ac): Mention functions we provide.
18133         * modules/canonicalize (configure.ac): Likewise.
18134         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18135         realpath if canonicalize_file_name is missing.
18136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18137         * modules/stdlib (Makefile.am): Substitute witnesses.
18138         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18139         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18140         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18141         * NEWS: Document this.
18142         * doc/glibc-functions/canonicalize_file_name.texi
18143         (canonicalize_file_name): Likewise.
18144         * doc/posix-functions/realpath.texi (realpath): Likewise.
18145         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18146
18147         test-canonicalize: consolidate into single C program
18148         * tests/test-canonicalize.sh: Delete; move setup into...
18149         * tests/test-canonicalize.c (main): ...the program, making it
18150         easier to run in debugger.  Add some tests.
18151         * modules/canonicalize-tests (Files): Remove unused file.
18152         (Depends-on): Add progname.
18153         (configure.ac, Makefile.am): Simplify.
18154
18155         test-canonicalize-lgpl: consolidate into single C program
18156         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18157         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18158         easier to run in debugger.  Add some tests.
18159         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18160         (configure.ac, Makefile.am): Simplify.
18161
18162         canonicalize: avoid resolvepath
18163         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18164         unnecessary checks.
18165         * lib/canonicalize.c (includes): Simplify.
18166         (canonicalize_file_name): Drop resolvepath implementation.
18167         * modules/canonicalize (Depends-on): Drop filenamecat.
18168
18169         canonicalize: don't lose errno
18170         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18171         over calls to free.
18172
18173         canonicalize: simplify errno handling
18174         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18175         assignment.
18176
18177         canonicalize, canonicalize-lgpl: update module dependencies
18178         * modules/canonicalize (Depends-on): Add extensions, lstat,
18179         pathmax, stdlib.
18180         (Files): Drop pathmax.h.
18181         (configure.ac): Adjust macro name.
18182         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18183         lstat, stdlib, sys_stat.
18184         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18185         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18186         extensions.
18187         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18188         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18189         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18190         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18191         declaration, if available.
18192         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18193         we can rely on the readlink module.
18194         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18195         (includes): Use <unistd.h> unconditionally.
18196
18197 2009-09-17  Eric Blake  <ebb9@byu.net>
18198
18199         maint: make Include sections of modules consistent
18200         * modules/alloca: Use only header name; no need to list #include.
18201         * modules/alloca-opt: Likewise.
18202         * modules/arpa_inet: Likewise.
18203         * modules/canon-host: Likewise.
18204         * modules/configmake: Likewise.
18205         * modules/dirent: Likewise.
18206         * modules/eealloc: Likewise.
18207         * modules/environ: Likewise.
18208         * modules/fchdir: Likewise.
18209         * modules/fcntl: Likewise.
18210         * modules/fcntl-h: Likewise.
18211         * modules/gethrxtime: Likewise.
18212         * modules/gettime: Likewise.
18213         * modules/ignore-value: Likewise.
18214         * modules/inet_ntop: Likewise.
18215         * modules/inet_pton: Likewise.
18216         * modules/inttypes: Likewise.
18217         * modules/isnand-nolibm: Likewise.
18218         * modules/isnanf-nolibm: Likewise.
18219         * modules/mbchar: Likewise.
18220         * modules/mbfile: Likewise.
18221         * modules/mbiter: Likewise.
18222         * modules/mbuiter: Likewise.
18223         * modules/netdb: Likewise.
18224         * modules/netinet_in: Likewise.
18225         * modules/nproc: Likewise.
18226         * modules/pagealign_alloc: Likewise.
18227         * modules/poll: Likewise.
18228         * modules/printf-frexp: Likewise.
18229         * modules/pthread: Likewise.
18230         * modules/putenv: Likewise.
18231         * modules/random_r: Likewise.
18232         * modules/relocatable-prog: Likewise.
18233         * modules/search: Likewise.
18234         * modules/select: Likewise.
18235         * modules/selinux-h: Likewise.
18236         * modules/settime: Likewise.
18237         * modules/signal: Likewise.
18238         * modules/size_max: Likewise.
18239         * modules/socklen: Likewise.
18240         * modules/ssize_t: Likewise.
18241         * modules/stdarg: Likewise.
18242         * modules/stdbool: Likewise.
18243         * modules/stddef: Likewise.
18244         * modules/stdint: Likewise.
18245         * modules/stdio: Likewise.
18246         * modules/stdlib: Likewise.
18247         * modules/string: Likewise.
18248         * modules/strings: Likewise.
18249         * modules/sys_file: Likewise.
18250         * modules/sys_ioctl: Likewise.
18251         * modules/sys_select: Likewise.
18252         * modules/sys_socket: Likewise.
18253         * modules/sys_stat: Likewise.
18254         * modules/sys_time: Likewise.
18255         * modules/sys_times: Likewise.
18256         * modules/sys_utsname: Likewise.
18257         * modules/sys_wait: Likewise.
18258         * modules/sysexits: Likewise.
18259         * modules/time: Likewise.
18260         * modules/times: Likewise.
18261         * modules/tmpfile: Likewise.
18262         * modules/trim: Likewise.
18263         * modules/unistd: Likewise.
18264         * modules/wchar: Likewise.
18265         * modules/wctype: Likewise.
18266
18267 2009-09-17  Bruno Haible  <bruno@clisp.org>
18268
18269         Make getdate.y compile on QNX and NetBSD 5 / i386.
18270         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18271         TIME_T_FITS_IN_LONG_INT.
18272         * lib/getdate.y (long_time_t): New type.
18273         (relative_time): Change type of 'seconds' field to long_time_t.
18274         (get_date): Update types of local variables. Check against overflow
18275         during conversion from long_time_t to time_t.
18276         Reported by Matt Kraai <kraai@ftbfs.org>
18277         and Hasso Tepper <hasso@netbsd.org>.
18278
18279 2009-09-17  Bruno Haible  <bruno@clisp.org>
18280
18281         * modules/COPYING: Update copyright years.
18282         * modules/README: Likeiwse.
18283         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18284         Reported by Ian Beckwith <ianb@erislabs.net>.
18285
18286 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18287
18288         * users.txt: Update references for gnuit package.
18289
18290 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18291
18292         * m4/getdelim.m4: Fix typo in copyright line.
18293
18294 2009-09-17  Bruno Haible  <bruno@clisp.org>
18295
18296         * lib/atoll.c: Use the standard header with GPL copyright.
18297         * lib/argz.in.h: Likewise.
18298         * lib/glob.c: Likewise.
18299         * lib/glob-libc.h: Likewise.
18300         * lib/random_r.c: Likewise.
18301         * lib/siglist.h: Likewise.
18302         * lib/strsignal.c: Likewise.
18303         Reported by Ian Beckwith <ianb@erislabs.net>.
18304
18305 2009-09-17  Eric Blake  <ebb9@byu.net>
18306
18307         rmdir: ensure correct dependency order
18308         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18309
18310 2009-09-17  Bruno Haible  <bruno@clisp.org>
18311
18312         Disable assertion that fails on NetBSD 5 / i386.
18313         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18314         Reported by Sam Steingold <sds@gnu.org>
18315         and Hasso Tepper <hasso@netbsd.org>.
18316
18317 2009-09-16  Eric Blake  <ebb9@byu.net>
18318
18319         unlinkdir: port to mingw
18320         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18321         on which no one can unlink a directory.
18322
18323         stdlib: sort witness names
18324         * modules/stdlib (Makefile.am): Sort replacements.
18325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18326         * lib/stdlib.in.h: Likewise.
18327
18328         parse-duration-tests: avoid link failure
18329         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18330         LIBINTL.
18331         Reported by Tom G. Christensen.
18332
18333         openat-tests: ensure unlinkat behaves like rmdir
18334         * tests/test-rmdir.c (main): Factor guts...
18335         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18336         * modules/rmdir-tests (Files): Ship new file.
18337         * modules/openat-tests: New test.
18338         * tests/test-unlinkat.c: Likewise.
18339
18340         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18341         * modules/rmdir-errno (Status, Notice): Now obsolete.
18342
18343         rmdir: work around cygwin 1.5.x and mingw bugs
18344         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18345         * lib/rmdir.c (rmdir): Work around it.
18346         * modules/rmdir (Status, Notice): No longer obsolete.
18347         (Files): Add dos.m4.
18348         (Depends-on): Add unistd.
18349         (configure.ac): Set witnesses.
18350         (License): Relax to LGPLv2+.
18351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18352         * modules/unistd (Makefile.am): Substitute witnesses.
18353         * lib/unistd.in.h (rmdir): Declare replacement.
18354         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18355         * modules/rmdir-tests: New tests.
18356         * tests/test-rmdir.c: Likewise.
18357
18358 2009-09-15  Eric Blake  <ebb9@byu.net>
18359
18360         fchdir: improve use of replacement functions
18361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18363         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18364         REPLACE_CLOSEDIR.
18365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18366         * modules/sys_stat (Makefile.am): Substitute correct witness.
18367         * modules/dirent (Makefile.am): Likewise.
18368         * modules/unistd (Makefile.am): Likewise.
18369         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18370         * lib/unistd.in.h (dup): Likewise.
18371         * lib/sys_stat.in.h (fstat): Likewise.
18372
18373         maint: ignore gnulib-tool temp files
18374         * .gitignore: Ignore files created during gnulib-tool --test.
18375
18376 2009-09-13  Jim Meyering  <meyering@redhat.com>
18377
18378         posixtm: don't reject a time that specify "60" as the number of seconds
18379         * lib/posixtm.c (posixtime): The code to reject invalid dates
18380         would also reject a time specified with the .60 suffix.
18381         But POSIX allows that, in order to accommodate leap seconds.
18382         So don't reject it.
18383         (main): Adjust tests accordingly.
18384         * modules/posixtm (Depends-on): Add stpcpy.
18385
18386 2009-09-11  Jim Meyering  <meyering@redhat.com>
18387
18388         announce-gen: include [$release_type] in emitted Subject:
18389         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18390         e.g., [stable] in the emitted Subject: line.
18391
18392 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18393
18394         Remove obsolete macros from several modules.
18395         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18396         obsolete Autoconf macros with their modern counterparts.
18397         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18398         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18400         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18401         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18402         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18404         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18405         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18406         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18407         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18409         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18410         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18411         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18412         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18413         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18414         * m4/time_r.m4 (gl_TIME_R): Likewise.
18415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18416         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18417         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18418
18419         Fix copyright header in build-aux scripts.
18420         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18421         recommendation.
18422         * build-aux/ncftpput-ftp: Likewise.
18423         * build-aux/update-copyright: Likewise.
18424
18425 2009-09-09  Eric Blake  <ebb9@byu.net>
18426
18427         test-link: allow Linux choice of errno
18428         * tests/test-link.c (main): Relax test for alternate error.
18429
18430         strndup: fix improper m4 caching
18431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18432         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18433         (gl_PREREQ_STRNDUP): Delete.
18434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18435         * modules/string (Makefile.am): Substitute it.
18436         * lib/string.in.h (strndup): Modernize prototype.
18437
18438         getcwd: port to mingw
18439         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18440         different from the POSIX assumptions made throughout the getcwd
18441         module; fortunately, the mingw getcwd does not need replacement.
18442         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18443         * modules/getcwd-tests: New test.
18444         * tests/test-getcwd.c: Likewise.
18445
18446         link: fix platform bugs
18447         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18448         * lib/link.c (link): Work around them.  Fix related mingw bug.
18449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18450         * modules/unistd (Makefile.am): Substitute it.
18451         * lib/unistd.in.h (link): Declare replacement.
18452         * doc/posix-functions/link.texi (link): Document this.
18453         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18454
18455         test-link: consolidate into single C program, test more cases
18456         * tests/test-link.sh: Delete.
18457         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18458         at least Cygwin and Solaris.
18459         * modules/link-tests (Files): Remove unused file.
18460         (Depends-on): Add errno, sys_stat.
18461         (Makefile.am): Simplify.
18462
18463 2009-09-08  Bruno Haible  <bruno@clisp.org>
18464
18465         Work around towlower, towupper bug on mingw.
18466         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18467         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18468         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18469         * doc/posix-functions/towupper.texi: Likewise.
18470         Reported by Eric Blake.
18471
18472 2009-09-08  Jim Meyering  <meyering@redhat.com>
18473
18474         build: don't try to run autoheader if we don't use it
18475         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18476         is not used in configure.ac.
18477
18478 2009-09-08  Eric Blake  <ebb9@byu.net>
18479
18480         euidaccess: fix compilation error
18481         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18482
18483         rawmemchr: relax license
18484         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18485         okay.
18486         Reported by Jim Meyering.
18487
18488         mkfifoat: new module
18489         * modules/mkfifoat: New file.
18490         * lib/mkfifoat.c: Likewise.
18491         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18492         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18493         * modules/sys_stat (Makefile.am): Use them.
18494         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18495         * MODULES.html.sh (File system functions): Mention module.
18496         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18497         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18498         * modules/mkfifoat-tests: New test.
18499         * tests/test-mkfifoat.c: Likewise.
18500
18501         strchrnul: relax license
18502         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18503         okay.
18504         Reported by Jim Meyering.
18505
18506 2009-09-08  Eric Blake  <ebb9@byu.net>
18507
18508         fstatat: fix compilation on Solaris
18509         * lib/fstatat.c (includes): Add fcntl.h.
18510         Reported by Pádraig Brady.
18511
18512 2009-09-07  Eric Blake  <ebb9@byu.net>
18513
18514         rename: modernize replacement
18515         * modules/rename (Depends-on): Add stdio.
18516         (configure.ac): Declare witness.
18517         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18518         stdio take care of replacement.
18519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18520         * modules/stdio (Makefile.am): Substitute them.
18521         * lib/stdio.in.h (rename): Declare replacement.
18522         * lib/rename.c (includes): Allow cross-compilation to non-windows
18523         machines.
18524         * doc/posix-functions/rename.texi (rename): Improve
18525         documentation.
18526
18527         stdio: sort witness names
18528         * modules/stdio (Makefile.am): Sort replacements.
18529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18530         * lib/stdio.in.h: Likewise.
18531
18532         getcwd: minor cleanups
18533         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18534         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18535
18536         openat: provide more convenience names
18537         * modules/faccessat (configure.ac): Add C witness.
18538         * lib/unistd.in.h (readlinkat): Fix typo.
18539         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18540         convenience wrappers.
18541         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18542         wrappers in syntax checks.
18543
18544 2009-09-06  Eric Blake  <ebb9@byu.net>
18545
18546         doc: fix comments in recent patches
18547         * lib/faccessat.c: Mention correct function.
18548         * lib/fchmodat.c: Likewise.
18549         * lib/fchownat.c: Likewise.
18550         * lib/symlinkat.c: Likewise.
18551         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18552         constants.
18553
18554         faccessat, symlinkat: continue cleanup of previous patch
18555         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18556         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18557         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18559         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18560         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18561         set.
18562
18563 2009-09-06  Bruno Haible  <bruno@clisp.org>
18564
18565         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18566         (fstatat): Declare if GNULIB_FSTATAT is set.
18567         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18568         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18569         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18570         * modules/fcntl-h (Files): Remove m4/openat.m4.
18571         * modules/sys_stat (Files): Remove m4/openat.m4.
18572         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18573         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18574         * modules/unistd (Files): Remove m4/openat.m4.
18575         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18576         GNULIB_OPENAT.
18577         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18578         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18580         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18581         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18582         gl_OPENAT_DEFAULTS.
18583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18584         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18585         Don't require gl_OPENAT_DEFAULTS.
18586         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18587         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18588         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18589         (gl_OPENAT_DEFAULTS): Remove macro.
18590
18591 2009-09-06  Bruno Haible  <bruno@clisp.org>
18592
18593         * modules/openat (configure.ac): Remove unneeded witness.
18594
18595 2009-09-06  Bruno Haible  <bruno@clisp.org>
18596
18597         Set errno to ENOSYS when a function is entirely unsupported.
18598         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18599         EOPNOTSUPP.
18600         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18601         * modules/chown (Depends-on): Remove errno.
18602
18603 2009-09-06  Bruno Haible  <bruno@clisp.org>
18604
18605         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18606
18607 2009-09-06  Bruno Haible  <bruno@clisp.org>
18608
18609         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18610
18611 2009-09-06  Ben Pfaff  <blp@gnu.org>
18612             Bruno Haible  <bruno@clisp.org>
18613
18614         Work around a glibc bug in strtok_r.
18615         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18616         Undefine if UNDEFINE_STRTOK_R is set.
18617         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18619         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18620         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18621         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18622         UNDEFINE_STRTOK_R.
18623         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18624
18625 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18626
18627         exclude: minor fix
18628         * lib/exclude.c: Include wctype.h
18629
18630 2009-09-06  Akim Demaille  <demaille@gostai.com>
18631
18632         bootstrap: improve error message
18633         * build-aux/bootstrap (find_tool): Upon failure, report the list
18634         of candidates.
18635         Honor the initial value of the envvar.
18636
18637 2009-09-05  Eric Blake  <ebb9@byu.net>
18638
18639         symlinkat: new module
18640         * modules/symlinkat: New file.
18641         * lib/symlinkat.c: Likewise.
18642         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18644         * modules/unistd (Makefile.am): Use them.
18645         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18646         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18647         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18648         * MODULES.html.sh (File system functions): Mention module.
18649         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18650         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18651         * modules/symlinkat-tests: New test.
18652         * tests/test-symlinkat.c: Likewise.
18653
18654         test-openat-safer: add more checks
18655         * tests/test-openat-safer.c (main): Check more code paths.
18656
18657 2009-09-05  Jim Meyering  <meyering@redhat.com>
18658
18659         syntax-check: detect unnecessary inclusion of openat.h
18660         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18661
18662 2009-09-05  Bruno Haible  <bruno@clisp.org>
18663
18664         Support towlower, towupper.
18665         * doc/posix-functions/towlower.texi: Mention module wctype.
18666         * doc/posix-functions/towupper.texi: Likewise.
18667         * lib/wctype.in.h (towlower, towupper): New functions.
18668         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18669         (ASSERT): New macro.
18670         (e): New variable.
18671         (main): Test also towlower, towupper. Test WEOF argument.
18672         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18673
18674 2009-09-05  Bruno Haible  <bruno@clisp.org>
18675
18676         Fix conversion behaviour when the input is invalid.
18677         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18678         mark occurring in first pass of indirect conversion.
18679         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18680         input.
18681         Found by clang's static analyzer.
18682
18683 2009-09-05  Bruno Haible  <bruno@clisp.org>
18684
18685         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18686         where direct conversion is possible.
18687
18688 2009-09-04  Eric Blake  <ebb9@byu.net>
18689
18690         openat: fail with ENOENT on empty name
18691         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18692         buffer.
18693
18694         link-follow: fix logic bug in prior patch
18695         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18696         reversed sense of yes and no in prior patch.  Avoid confusing
18697         compilation failure with desired semantics.
18698
18699         link-follow: accomodate mingw and cross-compilation
18700         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18701         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18702         cross-compilation results to -1, to make linkat easier to
18703         implement when cross-compiling.  Trivially support mingw.
18704         * modules/link-follow (configure.ac): Call new name.
18705         * NEWS: Mention this.
18706
18707 2009-09-03  Eric Blake  <ebb9@byu.net>
18708
18709         faccessat: compile replacement
18710         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18711         needed.
18712
18713         fts: fix compilation error
18714         * lib/fts.c (includes): Re-add "openat.h", for
18715         openat_needs_fchdir.
18716
18717         faccessat: new module
18718         * modules/faccessat: New file.
18719         * lib/faccessat.c: Likewise.
18720         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18722         * modules/unistd (Makefile.am): Use it.
18723         * lib/unistd.in.h (faccessat): Declare it.
18724         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18725         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18726         * MODULES.html.sh (File system functions): Mention it.
18727         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18728         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18729
18730         euidaccess: prefer POSIX over non-standard implementation
18731         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18732         * lib/euidaccess.c (euidaccess): Use it if available.
18733
18734         openat: make template easier to use
18735         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18736         AT_FUNC_F2 to be undefined.
18737         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18738         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18739         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18740         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18741         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18742         Likewise.
18743         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18744         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18745         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18746         Likewise.
18747
18748         openat: declare in POSIX headers
18749         * NEWS: Mention this.
18750         * modules/openat (configure.ac): Declare witnesses.
18751         (Depends-on): Add fcntl-h, sys_stat, unistd.
18752         (Include): Mention correct headers.
18753         * modules/fcntl-h (Depends-on): Add link-warning.
18754         (Files): Add openat.m4.
18755         (Makefile.am): Substitute witnesses.
18756         * modules/sys_stat (Files, Makefile.am): Likewise.
18757         * modules/unistd (Files, Makefile.am): Likewise.
18758         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18759         (gl_OPENAT_DEFAULTS): New macro.
18760         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18762         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18763         (SYS_STAT_H): Remove unused variable.
18764         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18765         * lib/fcntl--.h (includes): Remove unneeded header.
18766         * lib/openat-safer.c (includes): Likewise.
18767         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18768         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18769         appropriate headers.
18770         (__OPENAT_PREFIX): Delete.
18771         * lib/fcntl.in.h (openat): Provide declaration.
18772         (AT_FDCWD): Fix Solaris bug.
18773         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18774         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18775         * lib/fchmodat.c (includes):  Adjust to find declaration.
18776         * lib/fchownat.c (includes): Likewise.
18777         * lib/mkdirat.c (includes): Likewise.
18778         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18779         still visible.
18780
18781 2009-09-02  Eric Blake  <ebb9@byu.net>
18782
18783         errno: use consistently
18784         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18785         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18786         * lib/canonicalize.c (ELOOP): Likewise.
18787         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18788         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18789         * lib/lchown.c (EOPNOTSUPP): Likewise.
18790         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18791         * lib/savewd.c (ESTALE): Likewise.
18792         * lib/settime.c (ENOSYS): Likewise.
18793         * lib/utimens.c (ENOSYS): Likewise.
18794         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18795         * lib/chdir-safer.c (ELOOP): Likewise.
18796         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18797         * modules/c-stack (Depends-on): Add errno.
18798         * modules/canonicalize (Depends-on): Likewise.
18799         * modules/chdir-safer (Depends-on): Likewise.
18800         * modules/fdopendir (Depends-on): Likewise.
18801         * modules/inet_ntop (Depends-on): Likewise.
18802         * modules/inet_pton (Depends-on): Likewise.
18803         * modules/lchown (Depends-on): Likewise.
18804         * modules/openat (Depends-on): Likewise.
18805         * modules/savewd (Depends-on): Likewise.
18806         * modules/settime (Depends-on): Likewise.
18807         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18808
18809         fts: avoid leaking fds
18810         * modules/fts (Depends-on): Add cloexec.
18811         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18812         flag.
18813
18814         fts: make directory fds more robust
18815         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18816         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18817
18818         backupfile, chdir-long, fts, savedir: make safer
18819         * lib/backupfile.c (includes): Use "dirent--.h", since
18820         numbered_backup can write to stderr during readdir.
18821         * lib/savedir.c (includes): Likewise.
18822         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18823         emulation can write to stderr on failure.
18824         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18825         * lib/getcwd.c: Document why opendir_safer is unused.
18826         * lib/glob.c: Likewise.
18827         * lib/scandir.c: Likewise.
18828         * lib/openat-proc.c: Likewise, for open_safer.
18829         * modules/backupfile (Depends-on): Add dirent-safer.
18830         * modules/savedir (Depends-on): Likewise.
18831         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18832         * modules/chdir-long (Depends-on): Add openat-safer.
18833
18834         openat-safer: new module
18835         * modules/openat-safer: New file.
18836         * lib/openat-safer.c: Likewise.
18837         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18838         * lib/fcntl-safer.h (openat_safer): Declare.
18839         * lib/fcntl--.h (openat): Override.
18840         * MODULES.html.sh (File descriptor based I/O): Mention it.
18841         * lib/openat.h: Add double-inclusion guards.
18842         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18843         "fcntl--.h", so we can implement openat.
18844         * modules/openat-safer-tests: New test.
18845         * tests/test-openat-safer.c: New file.
18846
18847         dirent-safer: new module
18848         * modules/dirent-safer: New file.
18849         * lib/dirent--.h: Likewise.
18850         * lib/dirent-safer.h: Likewise.
18851         * lib/opendir-safer.c: Likewise.
18852         * m4/dirent-safer.m4: Likewise.
18853         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18854         * modules/dirent-safer-tests: New test.
18855         * tests/test-dirent-safer.c: New file.
18856         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18857
18858         fdopendir: optimize on mingw
18859         * lib/unistd.in.h (_gl_directory_name): New prototype.
18860         * lib/fchdir.c (_gl_directory_name): Implement it.
18861         (fchdir): Use it to simplify implementation.
18862         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18863         fchdir, when available, to avoid calling [f]chdir().
18864
18865         fdopendir: split into its own module
18866         * lib/openat.c (fdopendir): Move...
18867         * lib/fdopendir.c: ...into new file.
18868         * modules/fdopendir: New module.
18869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18870         * modules/openat (Depends-on): Add fdopendir.
18871         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18872         fdopendir here.
18873         * modules/savedir (Depends-on): Only need fdopendir, not full
18874         openat.
18875         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18876         * lib/openat.h (fdopendir): Drop prototype.
18877         * lib/dirent.in.h (fdopendir): Provide prototype.
18878         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18879         * modules/dirent (Makefile.am): Substitute them.
18880         * MODULES.html.sh (File system functions): Mention it.
18881         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18882         * modules/fdopendir-tests: New file.
18883         * tests/test-fdopendir.c: Likewise.
18884
18885         fchdir: use more consistent macro convention
18886         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18887         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18888         REPLACE_FCHDIR, rather than relying on config.h macros.
18889         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18890         inside a single make-time REPLACE_FCHDIR block, rather than using
18891         the config.h FCHDIR_REPLACEMENT.
18892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18893         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18894         Manage fstat replacement.
18895         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18896         REPLACE_FCHDIR.
18897         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18898         (Makefile.am): Substitute REPLACE_FCHDIR.
18899         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18900         FCHDIR_REPLACEMENT.
18901         * lib/dup-safer.c (dup_safer): Likewise.
18902         * lib/dup2.c (rpl_dup2): Likewise.
18903         * lib/dup3.c (rpl_dup3): Likewise.
18904         * lib/open.c (rpl_open): Likewise.
18905
18906         fchdir: simplify error handling, and support dup3
18907         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18908         stdbool, malloc-posix, realloc-posix.
18909         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18910         (ensure_dirs_slot): Return false on allocation failure.
18911         (rpl_dup2): Delete.
18912         (_gl_register_dup): New function.
18913         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18914         (_gl_register_fd): Close fd on allocation failure.
18915         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18916         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18917         prototype.
18918         (rpl_dup2_fchdir): Delete prototype.
18919         * lib/open.c (open): Update caller.
18920         * lib/dup2.c (dup2): Track fchdir metadata.
18921         * lib/dup3.c (dup3): Likewise.
18922         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18924
18925 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18926
18927         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18928         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18929         don't pass arguments to AC_OUTPUT.
18930
18931 2009-09-02  Bruno Haible  <bruno@clisp.org>
18932
18933         * modules/mkdtemp (License): Relicense under LGPLv2+.
18934         Reported by Paolo Bonzini.
18935
18936 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18937
18938         Replace uses of obsolete autoconf macros in Jim's modules.
18939         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18940         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18941         can evoke a warning from autoconf when run with -Wobsolete
18942         enabled.  They were declared obsolete for good reasons (see
18943         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18944         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18945         should not continue using the deprecated macros.
18946         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18947         obsolete Autoconf macros with modern counterparts.
18948         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18949         * m4/dos.m4 (gl_AC_DOS): Likewise.
18950         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18951         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18952         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18953         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18954         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18955         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18956         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18957         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18958         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18959         Likewise.
18960         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18961         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18962         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18963         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18964         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18965         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18966
18967 2009-09-01  Eric Blake  <ebb9@byu.net>
18968
18969         fchdir: fix off-by-one bug in previous patch
18970         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18971         (_gl_unregister_fd): Delete useless if.
18972
18973 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18974
18975         maint.mk: sort the list of syntax-check rules
18976         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
18977         easier to get a sense of progress when the rules are run sequentially
18978         and take a long time.
18979
18980 2009-09-01  Simon Josefsson  <simon@josefsson.org>
18981
18982         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18983         * modules/netinet_in: Likewise.
18984         * modules/sys_file: Likewise.
18985         * modules/sys_ioctl: Likewise.
18986         * modules/sys_select: Likewise.
18987         * modules/sys_socket: Likewise.
18988         * modules/sys_stat: Likewise.
18989         * modules/sys_time: Likewise.
18990         * modules/sys_times: Likewise.
18991         * modules/sys_utsname: Likewise.
18992         * modules/sys_wait: Likewise.
18993
18994 2009-09-01  Jim Meyering  <meyering@redhat.com>
18995
18996         fts: help ensure that return values are not ignored
18997         * lib/fts_.h (__GNUC_PREREQ): Define.
18998         (__attribute_warn_unused_result__): Define.
18999         (fts_children, fts_close, fts_open, fts_read): Declare with
19000         __attribute_warn_unused_result__.
19001
19002         fts: fts_close now fails also when closing a dir file descriptor fails
19003         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
19004         and propagate to caller, along with errno.
19005
19006         announce-gen: correct formatting in --help output
19007         * build-aux/announce-gen (usage): Move the one-line description in
19008         --help output "up", to where it belongs, just after Usage:.
19009
19010 2009-08-31  Eric Blake  <ebb9@byu.net>
19011
19012         fchdir: port to mingw
19013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
19014         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
19015         opened, then use a substitute.
19016         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
19017         replacement.
19018         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
19019         (_gl_register_fd): No need to check stat if open already filters
19020         all directories.
19021         (fchdir): Fix error condition to match POSIX.
19022         * modules/fchdir (Depends-on): Add sys_stat.
19023         * doc/posix-functions/open.texi (open): Document the limitation.
19024         * modules/fchdir-tests: New file.
19025         * tests/test-fchdir.c: Likewise.
19026
19027         canonicalize: allow cross-testing from cygwin to mingw
19028         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
19029         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
19030         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
19031         Likewise.
19032         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
19033         target does not support symlinks.
19034         * tests/test-canonicalize-lgpl.sh: Likewise.
19035
19036         chown: avoid compilation warning on mingw
19037         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
19038         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
19039         mingw.
19040         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19041         * modules/chown (Depends-on): Add errno.
19042
19043 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19044
19045         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
19046         command.
19047
19048 2009-08-31  Jim Meyering  <meyering@redhat.com>
19049
19050         canonicalize: remove useless initialization
19051         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
19052         initialization of local, "end".
19053
19054 2009-08-30  Bruno Haible  <bruno@clisp.org>
19055
19056         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
19057         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
19058         ENOSYS.
19059
19060 2009-08-30  Bruno Haible  <bruno@clisp.org>
19061
19062         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
19063         /usr/xpg4/bin/tr when it exists.
19064         * tests/test-pipe-filter-gi1.sh: Likewise.
19065
19066 2009-08-30  Bruno Haible  <bruno@clisp.org>
19067
19068         Work around deficient /usr/bin/id program on Solaris.
19069         * tests/test-file-has-acl.sh (ID): New variable.
19070         * tests/test-set-mode-acl.sh (ID): Likewise.
19071         * tests/test-copy-acl.sh (ID): Likewise.
19072         * tests/test-copy-file.sh (ID): Likewise.
19073
19074 2009-08-30  Bruno Haible  <bruno@clisp.org>
19075
19076         New module 'xstriconveh'.
19077         * lib/xstriconveh.h: New file.
19078         * lib/xstriconveh.c: New file.
19079         * modules/xstriconveh: New file.
19080
19081 2009-08-30  Bruno Haible  <bruno@clisp.org>
19082
19083         Make it easier to use mem_cd_iconveh.
19084         * lib/striconveh.h (iconveh_t): New type.
19085         (iconveh_open, iconveh_close): New declarations.
19086         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19087         with a single 'const iconveh_t *' argument.
19088         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19089         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19090         with a single 'const iconveh_t *' argument.
19091         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19092         * tests/test-striconveh.c (main): Update.
19093         * NEWS: Mention the change.
19094
19095 2009-08-30  Bruno Haible  <bruno@clisp.org>
19096
19097         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19098         problem.
19099
19100 2009-08-30  Bruno Haible  <bruno@clisp.org>
19101
19102         Work around iconv_open problem on Solaris.
19103         * lib/iconv_open-solaris.gperf: New file.
19104         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19105         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19106         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19107         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19108         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19109         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19110
19111 2009-08-29  Jim Meyering  <meyering@redhat.com>
19112
19113         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19114         * top/maint.mk (cvs-check): Remove target; it was just an alias
19115         to the better-named vc-diff-check.
19116         (maintainer-distcheck): Remove rule.  It was used only from
19117         the (alpha/beta/major) target, and all of its commands but one
19118         were coreutils-specific.
19119         (vc-dist): Remove rule.
19120         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19121         Run vc-diff-check, not vc-dist.
19122         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19123
19124 2009-08-27  Bruno Haible  <bruno@clisp.org>
19125
19126         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19127         of 0.
19128
19129 2009-08-27  Bruno Haible  <bruno@clisp.org>
19130
19131         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19132         compilers.
19133         * doc/func.texi: Document the SunPRO C bug.
19134
19135 2009-08-27  Bruno Haible  <bruno@clisp.org>
19136
19137         Fix link error on Solaris.
19138         * tests/test-parse-duration.c (xstrdup): Remove function.
19139
19140 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19141
19142         ignore-value: handle pointer types, too
19143         * lib/ignore-value.h (__attribute__): Remove definition.
19144         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19145         of a more concise and more-often effective "(void) i" statement.
19146         (ignore_ptr): New function to suppress warnings from functions that
19147         return pointers, and to make it explicit that one function doesn't
19148         handle all cases.
19149
19150 2009-08-25  Bruno Haible  <bruno@clisp.org>
19151
19152         dup2: work around a Linux bug.
19153         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19154         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19155         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19156         Reported by Simon Josefsson.
19157
19158 2009-08-25  Jim Meyering  <meyering@redhat.com>
19159
19160         libguestfs uses gnulib
19161         * users.txt: Add libguestfs.
19162
19163 2009-08-24  Eric Blake  <ebb9@byu.net>
19164
19165         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19166         * lib/pipe2.c (includes): Add binary-io.h.
19167         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19168
19169 2009-08-24  Bruno Haible  <bruno@clisp.org>
19170
19171         Tolerate declared but missing accept4 syscall.
19172         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19173         available.
19174         * lib/sys_socket.in.h (accept4): If the function is already present,
19175         override it.
19176         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19177         * modules/accept4 (Makefile.am): Compile accept4.c always.
19178         Reported by Paolo Bonzini and Eric Blake.
19179
19180 2009-08-23  Bruno Haible  <bruno@clisp.org>
19181
19182         New module 'accept4'.
19183         * lib/sys_socket.in.h (accept4): New declaration.
19184         * lib/accept4.c: New file.
19185         * m4/accept4.m4: New file.
19186         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19187         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19188         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19189         HAVE_ACCEPT4.
19190         * modules/accept4: New file.
19191         * doc/glibc-functions/accept4.texi: Mention the new module.
19192
19193 2009-08-24  Jim Meyering  <meyering@redhat.com>
19194
19195         progname: also set global program_invocation_name, when possible
19196         Before this change, a libtool-enabled program that calls glibc's
19197         error function would report the program name as
19198         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19199         * modules/progname (configure.ac): Check for a declaration of
19200         program_invocation_name.
19201         * lib/progname.c:  Include <errno.h>.
19202         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19203         Set program_invocation_name.
19204
19205 2009-08-23  Bruno Haible  <bruno@clisp.org>
19206
19207         * lib/dup3.c: Include <string.h>.
19208
19209 2009-08-23  Bruno Haible  <bruno@clisp.org>
19210
19211         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19212         * lib/pipe2.c (pipe2): Likewise.
19213         Suggested by Eric Blake.
19214
19215 2009-08-23  Bruno Haible  <bruno@clisp.org>
19216
19217         Tolerate declared but missing dup3 syscall.
19218         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19219         * lib/unistd.in.h (dup3): If the function is already present,
19220         override it.
19221         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19222         * modules/dup3 (Makefile.am): Compile dup3.c always.
19223         Reported by Paolo Bonzini.
19224
19225 2009-08-23  Bruno Haible  <bruno@clisp.org>
19226
19227         Tolerate declared but missing pipe2 syscall.
19228         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19229         available.
19230         * lib/unistd.in.h (pipe2): If the function is already present,
19231         override it.
19232         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19233         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19234         Reported by Paolo Bonzini.
19235
19236 2009-08-23  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/pipe2.c (pipe2): Move #ifs inside function.
19239
19240 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19241
19242         quotearg: document limitations of quote_these_too
19243         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19244         those limitations are created.
19245         * lib/quotearg.h (set_char_quoting): Document that digits and
19246         letters that are special after backslash are not permitted.
19247         (quotearg_char): Cross-reference set_char_quoting documentation.
19248
19249 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19250
19251         quotearg: implement custom_quoting_style
19252         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19253         right_quote fields.
19254         (set_custom_quoting): New public function.
19255         (quotearg_buffer_restyled): Add left_quote and right_quote
19256         arguments, handle them very much like locale quoting, and update
19257         all uses.
19258         (quotearg_n_custom): New public function.
19259         (quotearg_n_custom_mem): New public function.
19260         (quotearg_custom): New public function.
19261         (quotearg_custom_mem): New public function.
19262         * lib/quotearg.h: Prototype and document new public functions.
19263         (enum quoting_style): For escape_quoting_style and
19264         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19265         ignored even though they're otherwise like c_quoting_style.
19266         Add custom_quoting_style member and document with comparison to
19267         clocale_quoting_style.
19268         * tests/test-quotearg.c (custom_quotes): New array.
19269         (custom_results): New array.
19270         (main): Extend to test custom quoting.
19271
19272 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19273
19274         quotearg: fix right quote escaping when it's in quote_these_too
19275         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19276         quote, be sure to prepend only one backslash.
19277         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19278         (main): Test it.
19279
19280 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19281
19282         quotearg-tests: test escaping of embedded locale quotes
19283         * tests/test-quotearg.c (struct result_strings): Add member for
19284         new input.
19285         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19286         (inputs): Add new input.
19287         (results_g): Add expected results.
19288         (flag_results): Likewise.
19289         (locale_results): Likewise.
19290         (compare_strings): Check those.
19291
19292 2009-08-23  Bruno Haible  <bruno@clisp.org>
19293
19294         Tests for module 'dup3'.
19295         * modules/dup3-tests: New file.
19296         * tests/test-dup3.c: New file.
19297
19298         New module 'dup3'.
19299         * lib/unistd.in.h (dup3): New declaration.
19300         * lib/dup3.c: New file.
19301         * m4/dup3.m4: New file.
19302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19303         HAVE_DUP3.
19304         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19305         * modules/dup3: New file.
19306         * doc/glibc-functions/dup3.texi: Mention the new module.
19307
19308 2009-08-23  Bruno Haible  <bruno@clisp.org>
19309
19310         Tweak the dup2 test.
19311         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19312         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19313         the test file is still empty. Fix argument order of lseek.
19314
19315 2009-08-23  Bruno Haible  <bruno@clisp.org>
19316
19317         Avoid test link errors when the modules getopt-gnu, gettext are used.
19318         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19320
19321 2009-08-23  Bruno Haible  <bruno@clisp.org>
19322
19323         Fix getdtablesize() on mingw.
19324         * lib/getdtablesize.c (getdtablesize): Implement differently.
19325         * lib/unistd.in.h (getdtablesize): Improve comment.
19326
19327 2009-08-23  Bruno Haible  <bruno@clisp.org>
19328
19329         New module 'mkostemp'.
19330         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19331         * lib/stdlib.in.h (mksotemp): New declaration.
19332         * lib/mkostemp.c: New file, from glibc with modifications.
19333         * lib/tempname.h (GT_FILE): Remove outdated comment.
19334         (gen_tempname): Add flags argument.
19335         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19336         (__GT_FILE): Map to 1.
19337         (small_open, large_open): Remove macros.
19338         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19339         * lib/mkstemp.c (mkstemp): Update.
19340         * lib/mkdtemp.c (mkdtemp): Likewise.
19341         * m4/mkostemp.m4: New file.
19342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19343         HAVE_MKOSTEMP.
19344         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19345         HAVE_MKOSTEMP.
19346         * modules/mkostemp: New file, based on modules/mkstemp.
19347         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19348         * NEWS: Mention the change.
19349
19350 2009-08-23  Bruno Haible  <bruno@clisp.org>
19351
19352         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19353         Reported by Eric Blake.
19354
19355 2009-08-23  Bruno Haible  <bruno@clisp.org>
19356
19357         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19358         Reported by Eric Blake.
19359
19360 2009-08-23  Bruno Haible  <bruno@clisp.org>
19361
19362         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19363         * modules/pipe2 (Depends-on): Likewise.
19364
19365 2009-08-23  Eric Blake  <ebb9@byu.net>
19366
19367         fcntl-h: add O_TTY_INIT support
19368         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19369         * tests/test-fcntl-h.c (o): Test it.
19370         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19371
19372         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19373         * modules/fcntl: Move <fcntl.h> header replacement...
19374         * modules/fcntl-h: ...to new name, so as not to collide with
19375         like-named function.
19376         * tests/test-fcntl.c: Rename...
19377         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19378         * modules/fcntl-tests: Rename...
19379         * modules/fcntl-h-tests: ...to this.  Update test file name.
19380         * modules/chdir-long (Depends-on): Update clients.
19381         * modules/chdir-safer (Depends-on): Likewise.
19382         * modules/fcntl-safer (Depends-on): Likewise.
19383         * modules/fts (Depends-on): Likewise.
19384         * modules/mkancesdirs (Depends-on): Likewise.
19385         * modules/mkdir-p (Depends-on): Likewise.
19386         * modules/open (Depends-on): Likewise.
19387         * modules/savewd (Depends-on): Likewise.
19388         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19389         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19390
19391 2009-08-22  Bruno Haible  <bruno@clisp.org>
19392
19393         * modules/binary-io (License): Relicense under LGPL.
19394         * modules/pipe2 (License): Likewise.
19395
19396 2009-08-22  Bruno Haible  <bruno@clisp.org>
19397
19398         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19399         return value.
19400         * lib/pipe-filter-gi.c (filter_init): Likewise.
19401         Reported by Eric Blake.
19402
19403 2009-08-22  Bruno Haible  <bruno@clisp.org>
19404
19405         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19406         * modules/pipe (Depends-on): Add pipe2.
19407
19408 2009-08-22  Bruno Haible  <bruno@clisp.org>
19409
19410         Tests for module 'pipe2'.
19411         * modules/pipe2-tests: New file.
19412         * tests/test-pipe2.c: New file.
19413
19414         New module 'pipe2'.
19415         * lib/unistd.in.h (pipe2): New declaration.
19416         * lib/pipe2.c: New file.
19417         * m4/pipe2.m4: New file.
19418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19419         HAVE_PIPE2.
19420         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19421         * modules/pipe2: New file.
19422         * doc/glibc-functions/pipe2.texi: Mention the new module.
19423
19424 2009-08-22  Bruno Haible  <bruno@clisp.org>
19425
19426         Reference some new glibc functions.
19427         * doc/glibc-functions/accept4.texi: New file.
19428         * doc/glibc-functions/dup3.texi: New file.
19429         * doc/glibc-functions/mkostemp.texi: New file.
19430         * doc/glibc-functions/pipe2.texi: New file.
19431         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19432         (Glibc sys/socket.h): Refer to accept4.
19433         (Glibc unistd.h): Refer to dup3, pipe2.
19434         Reported by Eric Blake.
19435
19436 2009-08-22  Jim Meyering  <meyering@redhat.com>
19437             Bruno Haible  <bruno@clisp.org>
19438
19439         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19440         This makes it so packages using automake-1.11's silent-rules option
19441         can print e.g., a single "GEN    configmake.h" line, rather than
19442         the 30+ statements that perform the job.  If you want to see the
19443         actual commands, you can still run "make V=1".
19444         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19445         so that make output is abbreviated when those variables are defined
19446         appropriately.
19447         * modules/argz: Likewise.
19448         * modules/arpa_inet: Likewise.
19449         * modules/byteswap: Likewise.
19450         * modules/configmake: Likewise.
19451         * modules/dirent: Likewise.
19452         * modules/errno: Likewise.
19453         * modules/fcntl: Likewise.
19454         * modules/float: Likewise.
19455         * modules/fnmatch: Likewise.
19456         * modules/getopt-posix: Likewise.
19457         * modules/glob: Likewise.
19458         * modules/iconv_open: Likewise.
19459         * modules/inttypes: Likewise.
19460         * modules/localcharset: Likewise.
19461         * modules/locale: Likewise.
19462         * modules/math: Likewise.
19463         * modules/netdb: Likewise.
19464         * modules/netinet_in: Likewise.
19465         * modules/poll: Likewise.
19466         * modules/posix_spawnp-tests: Likewise.
19467         * modules/sched: Likewise.
19468         * modules/search: Likewise.
19469         * modules/selinux-h: Likewise.
19470         * modules/signal: Likewise.
19471         * modules/spawn: Likewise.
19472         * modules/stdarg: Likewise.
19473         * modules/stdbool: Likewise.
19474         * modules/stddef: Likewise.
19475         * modules/stdint: Likewise.
19476         * modules/stdio: Likewise.
19477         * modules/stdlib: Likewise.
19478         * modules/string: Likewise.
19479         * modules/strings: Likewise.
19480         * modules/sys_file: Likewise.
19481         * modules/sys_ioctl: Likewise.
19482         * modules/sys_select: Likewise.
19483         * modules/sys_socket: Likewise.
19484         * modules/sys_stat: Likewise.
19485         * modules/sys_time: Likewise.
19486         * modules/sys_times: Likewise.
19487         * modules/sys_utsname: Likewise.
19488         * modules/sys_wait: Likewise.
19489         * modules/sysexits: Likewise.
19490         * modules/time: Likewise.
19491         * modules/unistd: Likewise.
19492         * modules/wchar: Likewise.
19493         * modules/wctype: Likewise.
19494
19495 2009-08-22  Jim Meyering  <meyering@redhat.com>
19496
19497         announce-gen: detect write failure
19498         * build-aux/announce-gen: Add Coda at end.
19499         Remove equivalent-but-more-verbose block at top.
19500
19501 2009-08-19  Akim Demaille  <demaille@gostai.com>
19502
19503         bootstrap: --help to stdout.
19504         * bootstrap (usage): Don't send --help to stderr.
19505         Use a here doc instead of a long string.
19506
19507 2009-08-21  Eric Blake  <ebb9@byu.net>
19508
19509         test-popen-safer: split from test-popen
19510         * tests/test-popen.c (main): Move...
19511         * tests/test-popen.h: ...into new file.
19512         * tests/test-popen-safer2.c: New file.
19513         * modules/popen-tests (Files): Add test-popen.h.
19514         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19515         Suggested by Bruno Haible.
19516
19517         test-fcntl-safer: split from test-open
19518         * tests/test-open.c (main): Move...
19519         * tests/test-open.h: ...into new file.
19520         * tests/test-fcntl-safer.c: New file.
19521         * modules/open-tests (Files): Add test-open.h.
19522         * modules/fcntl-safer-tests: New file.
19523         Suggested by Bruno Haible.
19524
19525         test-fopen-safer: split from test-fopen
19526         * tests/test-fopen.c (main): Move...
19527         * tests/test-fopen.h: ...into new file.
19528         * tests/test-fopen-safer.c: New file.
19529         * modules/fopen-tests (Files): Add test-fopen.h.
19530         * modules/fopen-safer-tests: New file.
19531         Suggested by Bruno Haible.
19532
19533 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19534
19535         popen-safer: test O_CLOEXEC at run-time.
19536         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19537
19538 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19539
19540         fcntl: move more flags to the header
19541         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19542         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19543         * lib/fcntl.in.h: Do both things here.
19544
19545 2009-08-21  Jim Meyering  <meyering@redhat.com>
19546
19547         consistently remove $@-t before redirecting to it
19548         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19549         * modules/alloca-opt: Likewise.
19550         * modules/byteswap: Likewise.
19551         * modules/fnmatch: Likewise.
19552         * modules/getopt-posix: Likewise.
19553         * modules/glob: Likewise.
19554         * modules/poll: Likewise.
19555         * modules/posix_spawnp-tests: Likewise.
19556         * modules/sys_socket: Likewise.
19557         * modules/sysexits: Likewise.
19558
19559 2009-08-21  Eric Blake  <ebb9@byu.net>
19560
19561         popen: simplify access to original popen
19562         * lib/popen.c (rpl_popen): No need to worry about popen being a
19563         macro.
19564         Reported by Bruno Haible.
19565
19566 2009-08-20  Eric Blake  <ebb9@byu.net>
19567
19568         build: avoid some compiler warnings
19569         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19570         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19571         type.
19572         (new_exclude_segment, excluded_file_pattern_p)
19573         (excluded_file_name_p): Reduce scope.
19574         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19575         old-style declaration.
19576
19577 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19578
19579         * tests/test-exclude1.sh: Handle Windows EOL.
19580         * tests/test-exclude2.sh: Likewise.
19581         * tests/test-exclude3.sh: Likewise.
19582         * tests/test-exclude4.sh: Likewise.
19583         * tests/test-exclude5.sh: Likewise.
19584         * tests/test-exclude6.sh: Likewise.
19585         * tests/test-exclude7.sh: Likewise.
19586
19587 2009-08-19  Akim Demaille  <demaille@gostai.com>
19588
19589         bootstrap: find sha1sum when named gsha1sum.
19590         * bootstrap (find_tool): New.
19591         ($SHA1SUM): New.
19592         Use it.
19593
19594 2009-08-20  Jim Meyering  <meyering@redhat.com>
19595
19596         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19597         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19598         expression that converts "." in a file name to "\." in the resulting
19599         regexp.  Start with a dummy statement, so that prior shell variable
19600         definitions are expanded portably.  Reported by Simon Josefsson.
19601
19602 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19603
19604         Fix polling for writeability of a screen buffer.
19605         * lib/poll.c: Distinguish input and screen buffers for the
19606         Win32 implementation.
19607         * lib/select.c: Likewise.
19608
19609 2009-08-19  Eric Blake  <ebb9@byu.net>
19610
19611         popen-safer: prevent popen from clobbering std descriptors
19612         * modules/popen-safer: New file.
19613         * lib/popen-safer.c: Likewise.
19614         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19615         * lib/stdio--.h (popen): Provide override.
19616         * lib/stdio-safer.h (popen_safer): Provide declaration.
19617         * tests/test-popen.c (includes): Partially test this.
19618         * modules/popen-safer-tests: New file, for more tests.
19619         * tests/test-popen-safer.c: Likewise.
19620         * MODULES.html.sh (file stream based Input/Output): Mention it.
19621
19622         tests: test some of the *-safer modules
19623         * modules/fopen-safer (Depends-on): Add fopen.
19624         * modules/fcntl-safer (Depends-on): Add fcntl.
19625         * modules/stdlib-safer (Depends-on): Add stdlib.
19626         (configure.ac): Set indicator.
19627         * modules/unistd-safer (configure.ac): Likewise.
19628         * modules/tmpfile-safer (configure.ac): Likewise.
19629         (Depends-on): Add tmpfile.
19630         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19631         active.
19632         * tests/test-fopen.c (includes): Test safer versions when they are
19633         in use.
19634         * tests/test-open.c (includes): Likewise.
19635
19636         popen: fix cygwin 1.5 bug when stdin closed
19637         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19638         * modules/popen: New file.
19639         * modules/popen-tests: Likewise.
19640         * tests/test-popen.c: Likewise.
19641         * m4/popen.m4: Likewise.
19642         * lib/popen.c: Likewise.
19643         * lib/stdio.in.h (popen): New declaration.
19644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19645         * modules/stdio (Makefile.am): Likewise.
19646         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19647
19648 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19649
19650         maint.mk: give full control over update-copyright exclusions
19651         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19652         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19653         (update-copyright): Don't force inclusion of top-level
19654         ChangeLog.  Don't force exclusion of all COPYING files, but make
19655         them the default exclusion instead.
19656
19657 2009-08-16  Bruno Haible  <bruno@clisp.org>
19658
19659         Fix test failures on Solaris 10.
19660         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19661         tests when Solaris iconv() is used.
19662         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19663         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19664         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19665         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19666         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19667
19668 2009-08-16  Bruno Haible  <bruno@clisp.org>
19669
19670         Fix test failures on Solaris 10.
19671         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19672         'tr' program and pass it as first argument.
19673         * tests/test-pipe-filter-gi1.sh: Likewise.
19674         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19675         program as first argument.
19676         * tests/test-pipe-filter-gi1.c (main): Likewise.
19677
19678 2009-08-16  Eric Blake  <ebb9@byu.net>
19679
19680         fpurge: fix previous commits
19681         * modules/fpurge (Makefile.am): Make replacement conditional,
19682         partially reverting 2007-04-29 change; missed in previous
19683         attempt.
19684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19685         is missing.
19686
19687 2009-08-16  Bruno Haible  <bruno@clisp.org>
19688
19689         Clarify fpurge's effect on the file position.
19690         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19691         * tests/test-fpurge.c (main): Make a second pass for checking the file
19692         position.
19693
19694 2009-08-16  Bruno Haible  <bruno@clisp.org>
19695
19696         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19697         declaration of fpurge is missing.
19698         * tests/test-fpurge.c (main): Check that the file has not more contents
19699         than expected. Close the file before removing it.
19700
19701 2009-08-15  Eric Blake  <ebb9@byu.net>
19702
19703         fpurge: don't wrap working cygwin implementation
19704         * lib/fpurge.c (fpurge): Fix comment typo.
19705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19706         1.7 to avoid replacement.
19707         * tests/test-fpurge.c (main): Enhance test.
19708
19709 2009-08-15  Eric Blake  <ebb9@byu.net>
19710         and Jim Meyering  <meyering@redhat.com>
19711
19712         test-update-copyright: skip if perl is insufficient
19713         * tests/test-update-copyright.sh: Failure to run maintainer tool
19714         should not cause testsuite failure on cygwin 1.5.
19715
19716 2009-08-14  Eric Blake  <ebb9@byu.net>
19717
19718         doc: mention more functions added in cygwin 1.7.0
19719         * doc/posix-headers/limits.texi (limits.h): Update for recent
19720         cygwin additions.
19721         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19722         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19723         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19724         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19725         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19726
19727 2009-08-14  Eric Blake  <ebb9@byu.net>
19728
19729         maint.mk: simplify update-copyright rule
19730         * top/maint.mk (update-copyright-local): Delete, and document how
19731         to do it in cfg.mk instead.
19732         (update-copyright-exclude-regexp): Delete, and document how to do
19733         it in .x-update-copyright instead.
19734         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19735         exclude ChangeLog.
19736
19737 2009-08-14  Bruno Haible  <bruno@clisp.org>
19738
19739         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19740
19741 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19742
19743         maint.mk: support update-copyright-env
19744         * top/maint.mk (update-copyright-env): Define place-holder.
19745         (update-copyright): Expand $(update-copyright-env) before
19746         invoking update-copyright.
19747
19748 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19749
19750         update-copyright: implement forced reformatting
19751         * build-aux/update-copyright: Implement and document
19752         UPDATE_COPYRIGHT_FORCE.
19753         * tests/test-update-copyright.sh: Test it.
19754
19755 2009-08-14  Eric Blake  <ebb9@byu.net>
19756         and Bruno Haible  <bruno@clisp.org>
19757
19758         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19759         * tests/test-locale.c: Revert previous patch related to NULL.
19760         * tests/test-stdio.c: Likewise.
19761         * tests/test-stdlib.c: Likewise.
19762         * tests/test-string.c: Likewise.
19763         * tests/test-unistd.c: Likewise.
19764         * modules/time-tests (Depends-on): Add verify.
19765         * modules/wchar-tests (Depends-on): Likewise.
19766         * tests/test-time.c: Test for NULL compliance.
19767         * tests/test-wchar.c: Likewise.
19768         * modules/locale (Depends-on): Add stddef.
19769         * modules/stdio (Depends-on): Likewise.
19770         * modules/stdlib (Depends-on): Likewise.
19771         * modules/string (Depends-on): Likewise.
19772         * modules/time (Depends-on): Likewise.
19773         * modules/unistd (Depends-on): Likewise.
19774         * modules/wchar (Depends-on): Likewise.
19775         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19776         * lib/stdlib.in.h (includes): Likewise.
19777         * lib/string.in.h (includes): Likewise.
19778         * lib/time.in.h (includes): Likewise.
19779         * lib/unistd.in.h (includes): Likewise.
19780         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19781         replaced.
19782         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19783         * m4/stddef_h.m4: New file.
19784         * modules/stddef: Likewise.
19785         * lib/stddef.in.h: Likewise.
19786         * modules/stddef-tests: Likewise.
19787         * tests/test-stddef.c: Likewise.
19788         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19789         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19790         * doc/posix-headers/locale.texi (locale.h): Likewise.
19791         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19792         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19793         * doc/posix-headers/string.texi (string.h): Likewise.
19794         * doc/posix-headers/time.texi (time.h): Likewise.
19795         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19796         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19797
19798 2009-08-14  Eric Blake  <ebb9@byu.net>
19799
19800         doc: improve git diff of texinfo files
19801         * .gitattributes: Add rule for *.texi files, with hint on how to
19802         use it.
19803         Copied from m4, and based on a report by Bruno Haible.
19804
19805 2009-08-14  Bruno Haible  <bruno@clisp.org>
19806
19807         Disable multithread support by default on Cygwin 1.5.x for real.
19808         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19809
19810 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19811
19812         update-copyright: much ado about intervals
19813         * build-aux/update-copyright: Implement and document
19814         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19815         of copyright year intervals.
19816         Also, document UPDATE_COPYRIGHT_YEAR.
19817         * tests/test-update-copyright.sh: Test it.
19818
19819         update-copyright: convert 2-digit to 4-digit years
19820         * build-aux/update-copyright: Implement and document.
19821         * tests/test-update-copyright.sh: Update.
19822
19823 2009-08-14  Jim Meyering  <meyering@redhat.com>
19824
19825         test-exclude: avoid coreutils "make check" failure
19826         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19827         just as in test-argmatch.c.
19828
19829 2009-08-13  Eric Blake  <ebb9@byu.net>
19830
19831         test-dup2: fix bad assumption
19832         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19833         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19834
19835         test-version-etc: fix CRLF portability issue
19836         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19837         recognize \r.
19838         * tests/test-argp-version-etc-1.sh: Likewise.
19839
19840         getopt: update client modules
19841         * modules/argp (Depends-on): Use getopt-gnu.
19842         * modules/git-merge-changelog (Depends-on): Likewise.
19843         * modules/long-options (Depends-on): Likewise.
19844         * modules/xstrtol (Depends-on): Likewise.
19845
19846 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19847
19848         * tests/test-version-etc.sh: Don't fail on different
19849         project/version.  Don't fail on CRLF differences.  Rewrite to use
19850         multiple -e instead of multiple sed forks, suggested by Eric Blake
19851         <ebb9@byu.net>.
19852         * tests/test-argp-version-etc-1.sh: Likewise.
19853
19854 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19855
19856         * tests/test-version-etc.sh: Don't fail on different
19857         project/version.
19858
19859 2009-08-12  Bruno Haible  <bruno@clisp.org>
19860
19861         Tests for modules 'getopt-posix', 'getopt-gnu'.
19862         * modules/getopt-posix-tests: New file.
19863         * tests/test-getopt.c: New file.
19864         * tests/test-getopt.h: New file.
19865         * tests/test-getopt_long.h: New file.
19866
19867         New modules 'getopt-posix', 'getopt-gnu'.
19868         * modules/getopt-gnu: New file, renamed from modules/getopt.
19869         * modules/getopt-posix: New file.
19870         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19871         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19872         (gl_GETOPT): Remove macro.
19873         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19874         Disable the test against BSD systems that declare optreset. Test
19875         against mingw bug. Test against lack of support of optional arguments
19876         on many platforms.
19877         * doc/glibc-headers/getopt.texi: Update module name and list of
19878         relevant platforms.
19879         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19880         'getopt-gnu' and more portability problems.
19881         * NEWS: Mention the changes.
19882
19883 2009-08-12  Bruno Haible  <bruno@clisp.org>
19884
19885         Ensure that optarg etc. get declared by <unistd.h>.
19886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19887         AC_USE_SYSTEM_EXTENSIONS.
19888         * modules/getopt (Depends-on): Add 'extensions'.
19889
19890 2009-08-12  Bruno Haible  <bruno@clisp.org>
19891
19892         Avoid test link errors.
19893         * modules/pipe-filter-ii-tests (Makefile.am): Define
19894         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19895         * modules/pipe-filter-gi-tests (Makefile.am): Define
19896         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19898
19899 2009-08-12  Bruno Haible  <bruno@clisp.org>
19900
19901         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19902         gl_GETOPT_SUBSTITUTE before.
19903         (gl_GETOPT): Use it.
19904         * m4/argp.m4 (gl_ARGP): Update.
19905         Reported by Sergey Poznyakoff.
19906
19907         * m4/getopt.m4: Reorder macros.
19908         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19909         (gl_GETOPT_SUBSTITUTE): Remove macro.
19910
19911 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19912
19913         Minor improvement in gitlog-to-changelog
19914
19915         * build-aux/gitlog-to-changelog: New option `--format' makes
19916         output format string configurable.
19917
19918 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19919
19920         Optimize exclude: use hash tables for non-wildcard patterns.
19921
19922         * lib/exclude.c: Include hash.h and mbuiter.h
19923         (struct exclude_pattern, exclude_segment): New data types.
19924         (struct exclude): Rewrite.
19925         (fnmatch_pattern_has_wildcards): New function.
19926         (new_exclude_segment, free_exclude_segment): New functions.
19927         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19928         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19929         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19930         * modules/exclude: Depend on hash and mbuiter.
19931
19932         * modules/exclude-tests: New file.
19933         * tests/test-exclude.c: New file.
19934         * tests/test-exclude1.sh: New file.
19935         * tests/test-exclude2.sh: New file.
19936         * tests/test-exclude3.sh: New file.
19937         * tests/test-exclude4.sh: New file.
19938         * tests/test-exclude5.sh: New file.
19939         * tests/test-exclude6.sh: New file.
19940         * tests/test-exclude7.sh: New file.
19941
19942 2009-08-12  Bruno Haible  <bruno@clisp.org>
19943
19944         Ensure that getopt() gets declared by <unistd.h>.
19945         * lib/unistd.in.h: Conditionally include getopt.h.
19946         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19947         Set GNULIB_UNISTD_H_GETOPT.
19948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19949         GNULIB_UNISTD_H_GETOPT.
19950         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19951
19952 2009-08-12  Bruno Haible  <bruno@clisp.org>
19953
19954         Clarify logic.
19955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19956         gl_replace_getopt instead of GETOPT_H.
19957
19958 2009-08-12  Bruno Haible  <bruno@clisp.org>
19959
19960         * m4/getopt.m4: Add comments.
19961
19962 2009-08-12  Bruno Haible  <bruno@clisp.org>
19963
19964         Disable multithread support by default on Cygwin 1.5.x.
19965         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19966         set gl_use_threads=no if not specified otherwise.
19967
19968 2009-08-11  Bruno Haible  <bruno@clisp.org>
19969
19970         Avoid compilation error on NetBSD 5.0.
19971         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19972         * tests/test-stdio.c: Likewise.
19973         * tests/test-stdlib.c: Likewise.
19974         * tests/test-string.c: Likewise.
19975         * tests/test-unistd.c: Likewise.
19976         Reported by Greg Troxel <gdt@ir.bbn.com>
19977         at <https://savannah.gnu.org/support/?106973>.
19978
19979 2009-08-11  Bruno Haible  <bruno@clisp.org>
19980
19981         * modules/dup2-tests (Depends-on): Remove close.
19982
19983         Undo 2009-07-19 commit.
19984         * modules/acl-tests (Depends-on): Remove close.
19985         * modules/binary-io-tests (Depends-on): Likewise.
19986         * modules/closein-tests (Depends-on): Likewise.
19987         * modules/flock-tests (Depends-on): Likewise.
19988         * modules/fsync-tests (Depends-on): Likewise.
19989         * modules/lseek-tests (Depends-on): Likewise.
19990         * modules/pipe-tests (Depends-on): Likewise.
19991         * modules/posix_spawn-tests (Depends-on): Likewise.
19992         * modules/posix_spawnp-tests (Depends-on): Likewise.
19993         * modules/stat-time-tests (Depends-on): Likewise.
19994         * modules/yesno-tests (Depends-on): Likewise.
19995
19996 2009-08-10  Bruno Haible  <bruno@clisp.org>
19997
19998         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19999
20000 2009-08-10  Bruno Haible  <bruno@clisp.org>
20001
20002         Fix a gcc warning.
20003         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
20004
20005 2009-08-10  Bruno Haible  <bruno@clisp.org>
20006
20007         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
20008         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
20009         not only the first time.
20010         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
20011         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
20012         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
20013         is 1, not only the the first time.
20014
20015 2009-08-10  Bruno Haible  <bruno@clisp.org>
20016
20017         Make it possible to use module 'gethostname' without module 'close'.
20018         * lib/unistd.in.h (close): Evoke a link error only if
20019         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20021         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20022         * modules/unistd (Makefile.am): Substitute
20023         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20024         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
20025         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20026         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20027         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20028         * modules/sys_ioctl (Makefile.am): Substitute
20029         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20030         * modules/socket (configure.ac): On native Windows, set
20031         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
20032         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20033         Reported by Sam Steingold <sds@gnu.org>.
20034
20035 2009-08-10  Bruno Haible  <bruno@clisp.org>
20036
20037         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
20038         * modules/ioctl (configure.ac): Likewise.
20039
20040 2009-08-10  Bruno Haible  <bruno@clisp.org>
20041
20042         Avoid collision between gnulib wrapper and libintl wrapper.
20043         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
20044         already defined in intl/printf.c.
20045         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
20046         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
20047
20048 2009-08-09  Bruno Haible  <bruno@clisp.org>
20049
20050         Make <sys/select.h> really self-contained, also on Solaris 10.
20051         * lib/sys_select.in.h: Include <string.h>.
20052         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
20053         Solaris 10 problem.
20054         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
20055         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
20056         Reported by Jim Meyering.
20057
20058 2009-08-09  Bruno Haible  <bruno@clisp.org>
20059
20060         Avoid warnings from 'aclocal' that are due to a use of macro name
20061         AM_XGETTEXT_OPTION that is not defined in automake.
20062         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
20063         automake.
20064         * modules/error (configure.ac): Likewise.
20065         * modules/propername (configure.ac): Likewise.
20066         * modules/vasprintf (configure.ac): Likewise.
20067         * modules/verror (configure.ac): Likewise.
20068         * modules/xprintf (configure.ac): Likewise.
20069         * modules/xvasprintf (configure.ac): Likewise.
20070
20071 2009-08-08  Bruno Haible  <bruno@clisp.org>
20072
20073         Avoid compilation error in C++ mode.
20074         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
20075         Reported by Sam Steingold <sds@gnu.org>.
20076
20077 2009-08-08  Bruno Haible  <bruno@clisp.org>
20078
20079         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20080         for the various Unix platforms.
20081         * doc/posix-headers/limits.texi: Update platforms list regarding
20082         HOST_NAME_MAX.
20083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20084
20085 2009-08-07  Jim Meyering  <meyering@redhat.com>
20086
20087         selinux-at: fix typo in a comment
20088         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20089         Spotted by Paolo Bonzini.
20090
20091         selinux-at: remove redundant m4 code, add documentation
20092         * modules/selinux-at (configure.ac): Remove redundant code.
20093         LIB_SELINUX is already set via the dependent module, selinux-h.
20094         (Include): Add quotes around selinux-at.h.
20095         * lib/selinux-at.h: Add documentation.
20096         Reported by Bruno Haible in
20097         http://marc.info/?l=gnulib-bug&m=124958988300749
20098
20099 2009-08-07  Bruno Haible  <bruno@clisp.org>
20100
20101         Avoid link error on MacOS X 10.3 and 10.4.
20102         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20103         on non-ELF systems.
20104         * lib/argp-pv.c (argp_program_version): Likewise.
20105         Reported by Simon Josefsson.
20106
20107 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20108
20109         * tests/test-version-etc.sh: Use $EXEEXT.
20110
20111 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20112
20113         update-copyright: update documentation to point to maint.mk
20114         * build-aux/update-copyright: Here.
20115
20116 2009-08-06  Jim Meyering  <meyering@redhat.com>
20117
20118         maint.mk: support update-copyright-local
20119         * top/maint.mk (update-copyright-local): Define place-holder.
20120         (update-copyright): Depend on $(update-copyright-local).
20121
20122 2009-08-06  Jim Meyering  <meyering@redhat.com>
20123
20124         selinux-at: new module
20125         Initially written for coreutils, this module will soon be
20126         used by findutils, too.
20127         * MODULES.html.sh [Misc]: Add selinux-at.
20128         * lib/selinux-at.h: New file, from coreutils.
20129         * lib/selinux-at.c: Likewise.
20130         * modules/selinux-at: Likewise.
20131         (License): Change from LGPL to GPL, since it depends
20132         on the GPL'd openat module.
20133
20134         doc: update README
20135         * README: Remove references to cogito.
20136         Remove cvs-repo-updating instructions from 2007.
20137         Don't imply that CVS is better if you have limited disk space.
20138
20139 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20140
20141         update-copyright: support C-style comments
20142         * build-aux/update-copyright: Implement and document.
20143         * tests/test-update-copyright.sh: Test.
20144
20145 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20146
20147         update-copyright: support omitted "(C)"
20148         * build-aux/update-copyright: Implement and document.  Also,
20149         allow variable whitespace before "(C)".
20150         * tests/test-update-copyright.sh: Test.
20151
20152 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20153
20154         update-copyright: don't trip on non-FSF copyright statements
20155         * build-aux/update-copyright: Fix so that the first correctly
20156         formatted FSF copyright statement is recognized no matter what
20157         appears before it.  Update documentation.
20158         * tests/test-update-copyright.sh: Test that.
20159
20160 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20161
20162         update-copyright: clean up code a little
20163         * build-aux/update-copyright: Append "_re" to the name of any
20164         variable holding a regular expression.
20165         Replace "old" and "new" with "stmt" in variable names.
20166         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20167         handled correctly.
20168         Format code more consistently.
20169
20170 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20171
20172         update-copyright-tests: improve portability
20173         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20174         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20175
20176 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20177
20178         update-copyright: support @copyright{} and &copy;
20179         * build-aux/update-copyright: Implement and document.
20180         * tests/test-update-copyright.sh: Test.
20181
20182 2009-08-04  Jim Meyering  <meyering@redhat.com>
20183
20184         update-copyright-tests: correctly test EOL=\r\n handling
20185         * tests/test-update-copyright.sh: Put \r at the end of some lines
20186         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20187
20188         maint.mk: make update-copyright exclusion list more configurable
20189         * top/maint.mk (update-copyright): Default to excluding COPYING,
20190         but allow an override, in case someone does want to update that file.
20191
20192         maint.mk: don't update copyright date in COPYING
20193         * top/maint.mk (update-copyright): Exclude COPYING.
20194
20195         maint.mk: add a copyright-updating rule
20196         * top/maint.mk (update-copyright): New rule.
20197         Derived from coreutils/Makefile.am.
20198
20199         update-copyright: rename some variables
20200         * build-aux/update-copyright: Rename a few variables for clarity.
20201         Tweak syntax.  List Joel E. Denny as coauthor.
20202
20203 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20204
20205         update-copyright: fix bug for 2-digit last year and add tests
20206         * build-aux/update-copyright: Fix bug.
20207         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20208         specified.
20209         * modules/update-copyright-tests: New
20210         * tests/test-update-copyright.sh: New.
20211
20212 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20213
20214         update-copyright: handle leading tabs in line prefix
20215         * build-aux/update-copyright: Count leading tabs as 8 spaces
20216         when computing margin.  This helps with the formatting of
20217         ChangeLogs, for example.
20218         Fix documentation a little.
20219
20220 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20221
20222         update-copyright: support EOL=\r\n
20223         * build-aux/update-copyright: Implement that.
20224
20225 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20226
20227         update-copyright: automatically format copyright statements
20228         * build-aux/update-copyright: Implement that.
20229         Also, be a little more predictable and safer by always failing
20230         when the full copyright format is not perfectly recognized as an
20231         unbroken whole.  Discussed at
20232         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20233         Rewrite documentation.
20234
20235 2009-08-03  Bruno Haible  <bruno@clisp.org>
20236
20237         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20238
20239 2009-08-02  Bruno Haible  <bruno@clisp.org>
20240
20241         Tests for module 'uname'.
20242         * modules/uname-tests: New file.
20243         * tests/test-uname.c: New file.
20244
20245         New module 'uname'.
20246         * lib/uname.c: New file.
20247         * m4/uname.m4: New file.
20248         * modules/uname: New file.
20249         * doc/posix-functions/uname.texi: Mention the new module.
20250
20251 2009-08-02  Bruno Haible  <bruno@clisp.org>
20252
20253         Tests for module 'sys_utsname'.
20254         * modules/sys_utsname-tests: New file.
20255         * tests/test-sys_utsname.c: New file.
20256
20257         New module 'sys_utsname'.
20258         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20259         * m4/sys_utsname_h.m4: New file.
20260         * modules/sys_utsname: New file.
20261         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20262
20263 2009-08-02  Bruno Haible  <bruno@clisp.org>
20264
20265         Implicitly initialize the sockets library.
20266         * lib/gethostname.c: Include sockets.h.
20267         (rpl_gethostname): Invoke gl_sockets_startup.
20268         * lib/socket.c: Include sockets.h.
20269         (rpl_socket): Invoke gl_sockets_startup.
20270         * modules/gethostname (Depends-on): Add sockets.
20271         * modules/socket (Depends-on): Likewise.
20272         * tests/test-poll.c: Don't include sockets.h.
20273         (main): Don't invoke gl_sockets_startup.
20274         * tests/test-select.c: Don't include sockets.h.
20275         (main): Don't invoke gl_sockets_startup.
20276
20277 2009-08-02  Bruno Haible  <bruno@clisp.org>
20278
20279         Allow multiple calls to gl_sockets_startup.
20280         * lib/sockets.c (initialized_sockets_version): New variable.
20281         (gl_sockets_startup): Do nothing if already called for this or a higher
20282         version.
20283         (gl_sockets_cleanup): Reset initialized_sockets_version.
20284
20285 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20286
20287         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20288         different project/version.
20289
20290 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20291             Bruno Haible  <bruno@clisp.org>
20292
20293         Tests for module 'pipe-filter-gi'.
20294         * modules/pipe-filter-gi-tests: New file.
20295         * tests/test-pipe-filter-gi1.sh: New file.
20296         * tests/test-pipe-filter-gi1.c: New file.
20297         * tests/test-pipe-filter-gi2.sh: New file.
20298         * tests/test-pipe-filter-gi2-main.c: New file.
20299         * tests/test-pipe-filter-gi2-child.c: New file.
20300
20301         New module 'pipe-filter-gi'.
20302         * lib/pipe-filter-gi.c: New file.
20303         * modules/pipe-filter-gi: New file.
20304
20305 2009-08-02  Bruno Haible  <bruno@clisp.org>
20306             Paolo Bonzini  <bonzini@gnu.org>
20307
20308         Tests for module 'pipe-filter-ii'.
20309         * modules/pipe-filter-ii-tests: New file.
20310         * tests/test-pipe-filter-ii1.sh: New file.
20311         * tests/test-pipe-filter-ii1.c: New file.
20312         * tests/test-pipe-filter-ii2.sh: New file.
20313         * tests/test-pipe-filter-ii2-main.c: New file.
20314         * tests/test-pipe-filter-ii2-child.c: New file.
20315
20316         New module 'pipe-filter-ii'.
20317         * lib/pipe-filter.h: New file.
20318         * lib/pipe-filter-ii.c: New file.
20319         * lib/pipe-filter-aux.h: New file.
20320         * modules/pipe-filter-ii: New file.
20321
20322 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20323
20324         * lib/gc-libgcrypt.c: Change copyright to FSF.
20325         * lib/gc-gnulib.c: Likewise.
20326
20327 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20328
20329         * lib/gethostname.c: Include limits.h.
20330
20331 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20332             Bruno Haible  <bruno@clisp.org>
20333
20334         Ensure HOST_NAME_MAX as part of the gethostname module.
20335         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20336         define also HOST_NAME_MAX.
20337         * tests/test-gethostname.c: Include <limits.h>.
20338         (main): Check also HOST_NAME_MAX.
20339         * doc/posix-headers/limits.texi: Document the mingw problem.
20340
20341 2009-08-02  Bruno Haible  <bruno@clisp.org>
20342
20343         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20344         Add comments.
20345
20346 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20347
20348         * lib/gethostname.c: Add Windows wrapper.
20349         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20350         * modules/gethostname: Depend on sys_socket & errno, for also
20351         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20352         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20353
20354 2009-07-31  Jim Meyering  <meyering@redhat.com>
20355
20356         getloadavg: fix symbol name in comment
20357         * lib/getloadavg.c: Correct a typo I introduced when adding
20358         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20359         Matt Kraai spotted the problem.
20360
20361 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20362
20363         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20364         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20365         code also if ! defined N_NAME_POINTER.
20366         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20367         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20368         but the n_name member is a 12-byte array.
20369
20370 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20371
20372         update-copyright: generalize comment handling
20373         * build-aux/update-copyright: Handle copyright statements
20374         within more comment styles.
20375         Document usage.
20376         Report any file with an external copyright holder or parse failure.
20377
20378 2009-07-29  Jim Meyering  <meyering@redhat.com>
20379
20380         mktime: correct setting of REPLACE_MKTIME
20381         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20382
20383         update-copyright: new module
20384         * modules/update-copyright: New file.
20385         * build-aux/update-copyright: New file.
20386         * MODULES.html.sh (maint+release support): Add update-copyright.
20387
20388 2009-07-27  Bruno Haible  <bruno@clisp.org>
20389
20390         Fix compilation error when <ctime> is used and mktime is replaced.
20391         * lib/time.in.h (mktime): New declaration.
20392         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20393         REPLACE_MKTIME instead of defining mktime in config.h.
20394         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20395         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20396         Reported by Ross McFarland <rwmcfa1@neces.com>.
20397
20398 2009-07-27  Bruno Haible  <bruno@clisp.org>
20399
20400         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20401         Reported by Matt Kraai <mkraai@beckman.com>.
20402
20403 2009-07-25  Jim Meyering  <meyering@redhat.com>
20404
20405         maint.mk: avoid warnings about missing files
20406         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20407         diagnostic when .prev-version does not exist.
20408         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20409         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20410         nonexistent cfg.mk.
20411         Suggestions from Simon Josefsson.
20412
20413 2009-07-25  Bruno Haible  <bruno@clisp.org>
20414
20415         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20416         defined as macros. Needed on QNX 6.4.1.
20417         Reported by Matt Kraai <mkraai@beckman.com>.
20418
20419 2009-07-23  Jim Meyering  <meyering@redhat.com>
20420
20421         maint.mk: invoke "make dist" with a working value of XZ_OPT
20422         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20423
20424 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20425
20426         Make fseeko.c compile on QNX.
20427         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20428
20429 2009-07-22  Peter Simons  <simons@cryp.to>
20430
20431         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20432         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20433         * lib/md4.h: Likewise.
20434         * lib/md5.h: Likewise.
20435         * lib/sha1.h: Likewise.
20436         * lib/sha256.h: Likewise.
20437         * lib/sha512.h: Likewise.
20438
20439         tests-sha1: don't assign literal string to 'char *' variable
20440         * tests/test-sha1.c (main): Declare locals with "const" to match
20441         attributes of the right hand side.
20442
20443 2009-07-21  Eric Blake  <ebb9@byu.net>
20444
20445         dup2: fix more mingw problems
20446         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20447         fd to itself.
20448         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20449         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20450         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20451         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20452         care of mingw bugs.
20453
20454 2009-07-21  Jim Meyering  <meyering@redhat.com>
20455
20456         vc-list-files: avoid failure when /bin/sh is dash
20457         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20458         On some Debian based systems, /bin/sh is a symlink to dash, and running
20459         this command would omit the "/" following each 'tests' prefix:
20460           dash -x build-aux/vc-list-files -C . tests
20461         That is because bash and dash work differently:
20462           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20463           bash ok
20464           dash odd
20465
20466 2009-07-21  Eric Blake  <ebb9@byu.net>
20467
20468         dup2-tests: test previous patch
20469         * modules/dup2-tests: New file.
20470         * tests/test-dup2.c: Likewise.
20471         * tests/test-open.c (main): Avoid unspecified behavior.
20472         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20473         test.
20474
20475         dup2: work around mingw and cygwin 1.5 bug
20476         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20478         * modules/unistd (Makefile.am): Substitute it.
20479         * lib/unistd.in.h (dup2): Declare the replacement.
20480         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20481         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20482         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20483         * modules/execute (Depends-on): Add dup2.
20484         * modules/fseterr (Depends-on): Likewise.
20485         * modules/pipe (Depends-on): Likewise.
20486         * modules/posix_spawn-internal (Depends-on): Likewise.
20487
20488 2009-07-21  Bruno Haible  <bruno@clisp.org>
20489
20490         * modules/.gitattributes: New file.
20491
20492 2009-07-20  Bruno Haible  <bruno@clisp.org>
20493
20494         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20495         (main): Use it.
20496
20497 2009-07-20  Eric Blake  <ebb9@byu.net>
20498
20499         test-pipe: make a bit more robust.
20500         * tests/test-pipe.c (myerr): Allow error messages regardless of
20501         what we do to stderr.
20502         (test_pipe): Rearrange to avoid deadlock.
20503         (child_main): Try a larger read, to ensure we avoided deadlock.
20504         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20505         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20506         if misused.
20507
20508 2009-07-19  Jim Meyering  <meyering@redhat.com>
20509
20510         fts: avoid false-positive cycle-detection
20511         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20512         for each new command line argument.
20513
20514 2009-07-19  Bruno Haible  <bruno@clisp.org>
20515
20516         Fix build error on mingw with the modules sys_select and unistd.
20517         * modules/acl-tests (Depends-on): Add close.
20518         * modules/binary-io-tests (Depends-on): Likewise.
20519         * modules/closein-tests (Depends-on): Likewise.
20520         * modules/flock-tests (Depends-on): Likewise.
20521         * modules/fsync-tests (Depends-on): Likewise.
20522         * modules/lseek-tests (Depends-on): Likewise.
20523         * modules/pipe-tests (Depends-on): Likewise.
20524         * modules/posix_spawn-tests (Depends-on): Likewise.
20525         * modules/posix_spawnp-tests (Depends-on): Likewise.
20526         * modules/stat-time-tests (Depends-on): Likewise.
20527         * modules/yesno-tests (Depends-on): Likewise.
20528
20529 2009-07-19  Bruno Haible  <bruno@clisp.org>
20530
20531         Unify conditionals.
20532         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20533         macros, not at the compiler macros.
20534         * lib/pipe.c: Likewise.
20535         * lib/execute.c: Likewise.
20536         * lib/spawni.c: Likewise.
20537
20538 2009-07-19  Bruno Haible  <bruno@clisp.org>
20539
20540         Fix handling of closed stdin/stdout/stderr on mingw.
20541         * lib/w32spawn.h: Include unistd.h.
20542         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20543         file descriptor with O_NOINHERIT flag.
20544         (fd_safer_noinherit): New function, based on fd-safer.c.
20545         (dup_safer_noinherit): New function, based on dup-safer.c.
20546         (undup_safer_noinherit): New function.
20547         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20548         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20549         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20550         instead of fd_safer.
20551         * tests/test-pipe.c: Include <windows.h>.
20552         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20553
20554         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20555         from main.
20556         (test_pipe): Pass an extra argument for disambiguation.
20557         (main): Invoke parent_main or child_main.
20558
20559         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20560         consistently.
20561
20562 2009-07-18  Eric Blake  <ebb9@byu.net>
20563
20564         test-pipe: fix mingw build
20565         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20566
20567 2009-07-18  Bruno Haible  <bruno@clisp.org>
20568
20569         * modules/pipe-tests (Makefile.am): Fix typo.
20570
20571 2009-07-18  Eric Blake  <ebb9@byu.net>
20572
20573         error: fix mingw build
20574         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20575         Reported by Bruno Haible.
20576
20577         error: avoid undefined use of stdout
20578         * lib/error.c (error, error_at_line): Check that fd 1 is open
20579         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20580         is handling faults and the close_stdout module wants to report the
20581         detection of closed stdout as an error.
20582
20583 2009-07-17  Eric Blake  <ebb9@byu.net>
20584
20585         pipe: be robust in face of closed fds
20586         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20587         should cause child to misbehave.
20588         * modules/pipe-tests: New module.
20589         * tests/test-pipe.c: New file.
20590         * tests/test-pipe.sh: New file.
20591         Reported by Akim Demaille.
20592
20593 2009-07-14  Bruno Haible  <bruno@clisp.org>
20594
20595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20596         Reported by anonymous kc.
20597
20598 2009-07-07  Jim Meyering  <meyering@redhat.com>
20599
20600         maint.mk: don't look for translatable strings in *.m4 or *.mk
20601         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20602         when searching for translatable strings.
20603
20604 2009-07-05  Jim Meyering  <meyering@redhat.com>
20605
20606         remove superfluous parentheses in STREQ definition
20607         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20608         * lib/getugroups.c (STREQ): Likewise.
20609         * lib/fnmatch.c (STREQ): Likewise.
20610         Spotted by Bruno Haible.
20611
20612 2009-07-04  Jim Meyering  <meyering@redhat.com>
20613
20614         argv-iter: new module
20615         * MODULES.html.sh: Add argv-iter.
20616         * lib/argv-iter.c, lib/argv-iter.h: New files.
20617         * modules/argv-iter: New file.
20618         * modules/argv-iter-tests: New file.
20619         * tests/test-argv-iter.c: Test it.
20620
20621 2009-07-04  Bruno Haible  <bruno@clisp.org>
20622
20623         Fix assertion.
20624         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20625         contains more exact copies of a given entry than file2, leave the extra
20626         copies unpaired rather than aborting.
20627         Reported by Eric Blake.
20628
20629 2009-07-02  Bruno Haible  <bruno@clisp.org>
20630
20631         Speedup git-merge-changelog for git cherry-pick.
20632         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20633         (entries_mapping_get): New function, extracted from compute_mapping.
20634         (entries_mapping_reverse_get): New function.
20635         (compute_mapping): Add a 'full' argument. Return the result in a
20636         'struct entries_mapping'.
20637         (main): Update. Access the mappings through entries_mapping_get.
20638         Reported by Eric Blake.
20639
20640 2009-07-02  Bruno Haible  <bruno@clisp.org>
20641
20642         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20643         best_i.
20644
20645 2009-07-02  Bruno Haible  <bruno@clisp.org>
20646
20647         Speed up approximate search for matching ChangeLog entries.
20648         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20649         argument. Call fstrcmp_bounded instead of fstrcmp.
20650         (compute_mapping, try_split_merged_entry, main): Update callers.
20651
20652 2009-07-02  Bruno Haible  <bruno@clisp.org>
20653
20654         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20655
20656 2009-06-30  Bruno Haible  <bruno@clisp.org>
20657
20658         Reduce the number of uc_is_cased calls.
20659         * lib/unicase.h (casing_suffix_context_t): Add
20660         'first_char_except_ignorable' field.
20661         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20662         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20663         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20664         Update initializer.
20665         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20666         case-ignorable characters.
20667         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20668         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20669         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20670         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20671         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20672
20673 2009-06-30  Bruno Haible  <bruno@clisp.org>
20674
20675         Tests for module 'unicase/ignorable'.
20676         * modules/unicase/ignorable-tests: New file.
20677         * tests/unicase/test-ignorable.c: New file, generated by
20678         gen-uni-tables.
20679
20680         Tests for module 'unicase/cased'.
20681         * modules/unicase/cased-tests: New file.
20682         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20683         * tests/unicase/test-predicate-part1.h: New file, derived from
20684         tests/unictype/test-predicate-part1.h.
20685         * tests/unicase/test-predicate-part2.h: New file, same as
20686         tests/unictype/test-predicate-part2.h.
20687
20688         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20689         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20690         (output_casing_properties): New function.
20691         (main): Call it.
20692         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20693         * lib/unicase/cased.c: Include unictype/bitmap.h.
20694         (uc_is_cased): Define through a bitmap lookup.
20695         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20696         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20697         (uc_is_case_ignorable): Define through a bitmap lookup.
20698         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20699         lib/unictype/bitmap.h.
20700         (Depends-on): Add inline. Clean up.
20701         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20702         lib/unictype/bitmap.h.
20703         (Depends-on): Add inline. Clean up.
20704         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20705         recognition.
20706         * tests/unicase/test-u16-tolower.c (main): Likewise.
20707         * tests/unicase/test-u32-tolower.c (main): Likewise.
20708
20709 2009-06-30  Bruno Haible  <bruno@clisp.org>
20710
20711         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20712         * lib/unicase/u16-casemap.c: Likewise.
20713         * lib/unicase/u32-casemap.c: Likewise.
20714
20715 2009-06-29  Bruno Haible  <bruno@clisp.org>
20716
20717         Define u32_casefold as a wrapper around u32_ct_casefold.
20718         * lib/unicase/u32-casefold.c: Update.
20719         * modules/unicase/u32-casefold (Depends-on): Add
20720         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20721         unicase/empty-suffix-context. Clean up.
20722
20723         Define u16_casefold as a wrapper around u16_ct_casefold.
20724         * lib/unicase/u16-casefold.c: Update.
20725         * modules/unicase/u16-casefold (Depends-on): Add
20726         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20727         unicase/empty-suffix-context. Clean up.
20728
20729         Define u8_casefold as a wrapper around u8_ct_casefold.
20730         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20731         * lib/unicase/u8-casefold.c: Update.
20732         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20733         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20734
20735         Define u32_totitle as a wrapper around u32_ct_totitle.
20736         * lib/unicase/u32-totitle.c: Update.
20737         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20738         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20739
20740         Define u16_totitle as a wrapper around u16_ct_totitle.
20741         * lib/unicase/u16-totitle.c: Update.
20742         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20743         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20744
20745         Define u8_totitle as a wrapper around u8_ct_totitle.
20746         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20747         functions.
20748         (FUNC): Delegate to U_CT_TOTITLE.
20749         * lib/unicase/u8-totitle.c: Update.
20750         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20751         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20752
20753         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20754         invocation.
20755         * modules/unicase/u32-tolower (Depends-on): Add
20756         unicase/empty-prefix-context, unicase/empty-suffix-context.
20757
20758         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20759         invocation.
20760         * modules/unicase/u16-tolower (Depends-on): Add
20761         unicase/empty-prefix-context, unicase/empty-suffix-context.
20762
20763         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20764         * modules/unicase/u8-tolower (Depends-on): Add
20765         unicase/empty-prefix-context, unicase/empty-suffix-context.
20766
20767         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20768         invocation.
20769         * modules/unicase/u32-toupper (Depends-on): Add
20770         unicase/empty-prefix-context, unicase/empty-suffix-context.
20771
20772         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20773         invocation.
20774         * modules/unicase/u16-toupper (Depends-on): Add
20775         unicase/empty-prefix-context, unicase/empty-suffix-context.
20776
20777         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20778         * modules/unicase/u8-toupper (Depends-on): Add
20779         unicase/empty-prefix-context, unicase/empty-suffix-context.
20780
20781         New module 'unicase/u32-ct-casefold'.
20782         * lib/unicase/u32-ct-casefold.c: New file.
20783         * modules/unicase/u32-ct-casefold: New file.
20784
20785         New module 'unicase/u16-ct-casefold'.
20786         * lib/unicase/u16-ct-casefold.c: New file.
20787         * modules/unicase/u16-ct-casefold: New file.
20788
20789         New module 'unicase/u8-ct-casefold'.
20790         * lib/unicase/u8-ct-casefold.c: New file.
20791         * lib/unicase/u-ct-casefold.h: New file, derived from
20792         lib/unicase/u-casefold.h.
20793         * modules/unicase/u8-ct-casefold: New file.
20794
20795         New module 'unicase/u32-ct-totitle'.
20796         * lib/unicase/u32-ct-totitle.c: New file.
20797         * modules/unicase/u32-ct-totitle: New file.
20798
20799         New module 'unicase/u16-ct-totitle'.
20800         * lib/unicase/u16-ct-totitle.c: New file.
20801         * modules/unicase/u16-ct-totitle: New file.
20802
20803         New module 'unicase/u8-ct-totitle'.
20804         * lib/unicase/u8-ct-totitle.c: New file.
20805         * lib/unicase/u-ct-totitle.h: New file, derived from
20806         lib/unicase/u-totitle.h.
20807         * modules/unicase/u8-ct-totitle: New file.
20808
20809         New module 'unicase/u32-ct-tolower'.
20810         * lib/unicase/u32-ct-tolower.c: New file.
20811         * modules/unicase/u32-ct-tolower: New file.
20812
20813         New module 'unicase/u16-ct-tolower'.
20814         * lib/unicase/u16-ct-tolower.c: New file.
20815         * modules/unicase/u16-ct-tolower: New file.
20816
20817         New module 'unicase/u8-ct-tolower'.
20818         * lib/unicase/u8-ct-tolower.c: New file.
20819         * modules/unicase/u8-ct-tolower: New file.
20820
20821         New module 'unicase/u32-ct-toupper'.
20822         * lib/unicase/u32-ct-toupper.c: New file.
20823         * modules/unicase/u32-ct-toupper: New file.
20824
20825         New module 'unicase/u16-ct-toupper'.
20826         * lib/unicase/u16-ct-toupper.c: New file.
20827         * modules/unicase/u16-ct-toupper: New file.
20828
20829         New module 'unicase/u8-ct-toupper'.
20830         * lib/unicase/u8-ct-toupper.c: New file.
20831         * modules/unicase/u8-ct-toupper: New file.
20832
20833         Add context arguments to u*_casemap functions.
20834         * lib/unicase/unicasemap.h: Include unicase.h.
20835         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20836         suffix_context arguments.
20837         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20838         functions.
20839         (FUNC): Add prefix_context and suffix_context arguments. Use
20840         uc_is_cased and uc_is_case_ignorable.
20841         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20842         * lib/unicase/u16-casemap.c: Likewise.
20843         * lib/unicase/u32-casemap.c: Likewise.
20844         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20845         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20846         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20847         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20848         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20849         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20850
20851         New module 'unicase/u32-suffix-context'.
20852         * lib/unicase/u32-suffix-context.c: New file.
20853         * modules/unicase/u32-suffix-context: New file.
20854
20855         New module 'unicase/u16-suffix-context'.
20856         * lib/unicase/u16-suffix-context.c: New file.
20857         * modules/unicase/u16-suffix-context: New file.
20858
20859         New module 'unicase/u8-suffix-context'.
20860         * lib/unicase/u8-suffix-context.c: New file.
20861         * lib/unicase/u-suffix-context.h: New file.
20862         * modules/unicase/u8-suffix-context: New file.
20863
20864         New module 'unicase/empty-suffix-context'.
20865         * lib/unicase/empty-suffix-context.c: New file.
20866         * modules/unicase/empty-suffix-context: New file.
20867
20868         New module 'unicase/u32-prefix-context'.
20869         * lib/unicase/u32-prefix-context.c: New file.
20870         * modules/unicase/u32-prefix-context: New file.
20871
20872         New module 'unicase/u16-prefix-context'.
20873         * lib/unicase/u16-prefix-context.c: New file.
20874         * modules/unicase/u16-prefix-context: New file.
20875
20876         New module 'unicase/u8-prefix-context'.
20877         * lib/unicase/u8-prefix-context.c: New file.
20878         * lib/unicase/u-prefix-context.h: New file.
20879         * lib/unicase/context.h: New file.
20880         * modules/unicase/u8-prefix-context: New file.
20881
20882         New module 'unicase/empty-prefix-context'.
20883         * lib/unicase/empty-prefix-context.c: New file.
20884         * modules/unicase/empty-prefix-context: New file.
20885
20886         New module 'unicase/ignorable'.
20887         * lib/unicase/ignorable.c: New file.
20888         * modules/unicase/ignorable: New file.
20889
20890         New module 'unicase/cased'.
20891         * lib/unicase/caseprop.h: New file.
20892         * lib/unicase/cased.c: New file.
20893         * modules/unicase/cased: New file.
20894
20895         New functions for case mapping of substrings.
20896         * lib/unicase.h (casing_prefix_context_t): New type.
20897         (unicase_empty_prefix_context): New variable.
20898         (u8_casing_prefix_context, u16_casing_prefix_context,
20899         u32_casing_prefix_context, u8_casing_prefixes_context,
20900         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20901         declarations.
20902         (casing_suffix_context_t): New type.
20903         (unicase_empty_suffix_context): New variable.
20904         (u8_casing_suffix_context, u16_casing_suffix_context,
20905         u32_casing_suffix_context, u8_casing_suffixes_context,
20906         u16_casing_suffixes_context, u32_casing_suffixes_context,
20907         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20908         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20909         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20910         declarations.
20911
20912 2009-06-28  Jim Meyering  <meyering@redhat.com>
20913
20914         boostrap: indent only with spaces
20915         * build-aux/bootstrap: Indent only with spaces, never TABs.
20916
20917         bootstrap: split long lines
20918         * build-aux/bootstrap: Keep line length < 80.
20919
20920         bootstrap: sync from coreutils
20921         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20922         just as autoreconf does.  Verify a list of prerequisite
20923         package-name,version-number pairs if defined in bootstrap.conf.
20924         Refer to README-prereq, if prerequisites are not satisfied.
20925
20926 2009-06-27  Eric Blake  <ebb9@byu.net>
20927
20928         tests: add test for bogus NULL definition
20929         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20930         * tests/test-stdlib.c: Likewise.
20931         * tests/test-string.c: Likewise.
20932         * tests/test-locale.c: Likewise.
20933         * tests/test-unistd.c: Likewise.
20934         * modules/stdio-tests (Depends-on): Add verify.
20935         * modules/stdlib-tests (Depends-on): Likewise.
20936         * modules/string-tests (Depends-on): Likewise.
20937         * modules/locale-tests (Depends-on): Likewise.
20938         * modules/unistd-tests (Depends-on): Likewise.
20939
20940 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20941
20942         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20943         self-explaining comment.
20944         * m4/selinux-selinux-h: Update serial.
20945         (gl_LIBSELINUX): New macro, adding a warning for missing development
20946         packages to code extracted from...
20947         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20948         Add warning for missing development packages here, too.
20949
20950 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20951
20952         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20953
20954 2009-06-25  Eric Blake  <ebb9@byu.net>
20955
20956         version-etc: fix regression
20957         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20958         gcc.
20959         (version_etc): Use it, to catch bugs with trailing NULL.
20960         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20961         (version_etc_va): Fix logic bug.
20962         * modules/version-etc-tests: Add test.
20963         * tests/test-version-etc.c: New file.
20964         * tests/test-version-etc.sh: Likewise.
20965
20966 2009-06-25  Sam Steingold  <sds@gnu.org>
20967
20968         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20969         mbtowc declaration.
20970
20971 2009-06-25  Eric Blake  <ebb9@byu.net>
20972
20973         fpurge: migrate into <stdio.h>
20974         * lib/fpurge.h: Delete...
20975         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20976         * lib/fpurge.c (fpurge): Change declaring header.
20977         * modules/fpurge (Files): Drop deleted file.
20978         (Depends-on): Add stdio.
20979         (configure.ac): Set witness.
20980         * modules/stdio (Makefile.am): Support fpurge macros.
20981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20982         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20983         * lib/fflush.c: Update client.
20984         * tests/test-fpurge.c: Likewise.
20985         * NEWS: Mention the change.
20986
20987 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20988
20989         * lib/argp-version-etc.c (program_authors): Add const
20990         qualifier.
20991         * lib/version-etc.c: Fix typos in the comments.
20992         * modules/argp-version-etc: Depends on version-etc.
20993
20994 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20995
20996         argp-version-etc: new module.
20997
20998         * lib/argp-version-etc.c: New file.
20999         * lib/argp-version-etc.h: New file.
21000         * modules/argp-version-etc: New file.
21001         * modules/argp-version-etc-tests: New file.
21002         * tests/test-argp-version-etc.c: New test.
21003         * tests/test-argp-version-etc-1.sh: New test.
21004
21005 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21006
21007         Provide additional interfaces and documentation for version-etc
21008         module.
21009
21010         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
21011         interfaces.
21012         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
21013         prototypes.
21014
21015 2009-06-24  Bruno Haible  <bruno@clisp.org>
21016
21017         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
21018         HAVE_LIB${NAME} macro.
21019         Reported by Sam Steingold <sds@gnu.org>.
21020
21021 2009-06-23  Simon Josefsson  <simon@josefsson.org>
21022
21023         * modules/hash-tests (test_hash_LDADD): Link to libintl when
21024         needed.
21025
21026 2009-06-21  Bruno Haible  <bruno@clisp.org>
21027
21028         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
21029         work.
21030         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
21031         together with LIB${NAME}, LTLIB${NAME}.
21032         Reported by Sam Steingold <sds@gnu.org>.
21033
21034 2009-06-20  Jim Meyering  <meyering@redhat.com>
21035
21036         tests: make sc_require_test_exit_idiom more generic
21037         * top/maint.mk (Exit_witness_file): New overridable variable.
21038         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
21039         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
21040
21041 2009-06-19  Jim Meyering  <meyering@redhat.com>
21042
21043         hash: reverse order of src/dst parameters in an internal interface
21044         * lib/hash.c (transfer_entries): Reverse order of parameters to
21045         put DST before SRC.  Adjust callers.
21046
21047         tests: test-hash: avoid wholesale duplication
21048         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
21049         Instead, use a loop and add a single conditional.
21050
21051         tests: test-hash: allow seed selection via a command line argument
21052         * tests/test-hash.c (get_seed): New function.
21053         (main): Use it.
21054
21055 2009-06-19  Eric Blake  <ebb9@byu.net>
21056
21057         hash: avoid memory leak on allocation failure
21058         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
21059         failure.  Factor repeated algorithm...
21060         (transfer_entries): ...into new helper routine.
21061         (hash_delete): React to hash_rehash return value.
21062
21063         hash: reduce memory pressure in hash_rehash no-op case
21064         * lib/hash.c (next_prime): Avoid overflow.
21065         (hash_initialize): Factor bucket size computation...
21066         (compute_bucket_size): ...into new helper function.
21067         (hash_rehash): Use new function and open coding to reduce memory
21068         pressure, and avoid a memory leak in USE_OBSTACK code.
21069         Reported by Jim Meyering.
21070
21071 2009-06-18  Eric Blake  <ebb9@byu.net>
21072
21073         hash: make rotation more obvious
21074         * modules/hash (Depends-on): Add bitrotate and stdint.
21075         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
21076         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21077         (SIZE_MAX): Rely on headers for definition.
21078         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21079         (raw_hasher): Use rotr_sz.
21080         Suggested by Jim Meyering.
21081
21082         hash: fix memory leak in last patch
21083         * lib/hash.c (hash_rehash): Avoid memory leak.
21084
21085         hash: avoid no-op rehashing
21086         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21087
21088         hash: provide default callback functions
21089         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21090         (hash_initialize): Use them as defaults.
21091         * tests/test-hash.c (main): Test this.
21092
21093         hash: minor optimization
21094         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21095         when possible.
21096         (hash_initialize): Document this promise.
21097         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21098         * tests/test-hash.c (hash_compare_strings): Test this.
21099
21100 2009-06-18  Bruno Haible  <bruno@clisp.org>
21101
21102         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21103         going to be replaced anyway.
21104
21105 2009-06-18  Bruno Haible  <bruno@clisp.org>
21106
21107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21108         in one place.
21109         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21110         be replaced anyway.
21111
21112 2009-06-18  Eric Blake  <ebb9@byu.net>
21113
21114         hash: check for resize before insertion
21115         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21116         threshold before insertion, so that a pathological hash_rehash
21117         that fills every bucket can still trigger another rehash.
21118
21119 2009-06-18  Jim Meyering  <meyering@redhat.com>
21120
21121         hash-tests: add a loop around the small tests
21122         * tests/test-hash.c (main): Repeat small tests with selected
21123         small initial table sizes.
21124
21125 2009-06-17  Eric Blake  <ebb9@byu.net>
21126
21127         hash: minor cleanups
21128         * lib/hash.h (hash_entry): Make opaque, by moving...
21129         * lib/hash.c (hash_entry): ...here.
21130         (hash_insert): Clarify restrictions on what can be inserted.
21131         (hash_get_next): Clarify when it is safe to remove an element
21132         during traversal.
21133         (check_tuning): Skip verification when tuning is known safe.
21134         (hash_initialize): Clarify restrictions on tuning.
21135
21136 2009-06-17  Jim Meyering  <jim@meyering.net>
21137         and Eric Blake  <ebb9@byu.net>
21138
21139         hash-tests: new module
21140         * modules/hash-tests: New file.
21141         * tests/test-hash.c: New file.
21142
21143 2009-06-17  Eric Blake  <ebb9@byu.net>
21144
21145         strstr-simple: document new module
21146         * MODULES.html.sh: Document new module.
21147
21148         strstr, strcasestr: replace on platforms with broken memchr
21149         * modules/strstr: Split into...
21150         * modules/strstr-simple: ...new module that does not care about
21151         performance, but does care about glibc bug.
21152         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21153         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21154         if platform memchr is broken, per Debian bug 521737.
21155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21156         memchr.
21157         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21158         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21159         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21160         * modules/mountlist (Depends-on): Add strstr-simple.
21161         * modules/gen-uni-tables (Depends-on): Likewise.
21162         * modules/argz (Depends-on): Add strstr.
21163
21164 2009-06-17  Bruno Haible  <bruno@clisp.org>
21165
21166         * modules/posix_spawn-internal (Depends-on): Add errno.
21167
21168 2009-06-17  Bruno Haible  <bruno@clisp.org>
21169
21170         Define missing ESTALE on Interix 3.5.
21171         * lib/errno.in.h (ESTALE): Assign a value if missing.
21172         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21174         missing.
21175         * doc/posix-headers/errno.texi: Mention the Interix bug.
21176         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21177
21178 2009-06-15  Eric Blake  <ebb9@byu.net>
21179
21180         memchr, memchr2: add valgrind exception
21181         * lib/memchr.valgrind: New file.
21182         * lib/memchr2.valgrind: New file.
21183         * modules/memchr (Files): Distribute valgrind file.
21184         * modules/memchr2 (Files): Likewise.
21185
21186         docs: memchr is no longer obsolete
21187         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21188         * lib/string.in.h (memchr): Simplify logic.
21189
21190 2009-06-14  Jim Meyering  <meyering@redhat.com>
21191
21192         link-follow: fix the "checking..." message to not mention trailing slash
21193         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21194         never considered trailing slashes.
21195
21196 2009-06-14  Bruno Haible  <bruno@clisp.org>
21197
21198         * m4/memchr.m4: Mention also the bug on IA-64.
21199         * doc/posix-functions/memchr.texi: Likewise.
21200
21201 2009-06-12  Eric Blake  <ebb9@byu.net>
21202
21203         memchr: detect broken x86_64 and alpha implementations
21204         * modules/memchr-tests (Depends-on): Move mmap detection...
21205         * modules/memchr (Depends-on): ...here.
21206         (configure.ac): Set indicator.
21207         * lib/string.in.h (memchr): Declare replacement.
21208         * modules/string (Makefile.am): Trigger replacement.
21209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21210         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21211         bugs.
21212         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21213         * modules/getpagesize (License): Relax license.
21214
21215 2009-06-11  Bruno Haible  <bruno@clisp.org>
21216
21217         * lib/idpriv.h: Add more references.
21218
21219 2009-06-08  Bruno Haible  <bruno@clisp.org>
21220
21221         Tests for module 'idpriv-droptemp'.
21222         * modules/idpriv-droptemp-tests: New file.
21223         * tests/test-idpriv-droptemp.sh: New file.
21224         * tests/test-idpriv-droptemp.su.sh: New file.
21225         * tests/test-idpriv-droptemp.c: New file.
21226
21227         New module 'idpriv-droptemp'.
21228         * lib/idpriv-droptemp.c: New file.
21229         * modules/idpriv-droptemp: New file.
21230
21231 2009-06-08  Bruno Haible  <bruno@clisp.org>
21232
21233         Tests for module 'idpriv-drop'.
21234         * modules/idpriv-drop-tests: New file.
21235         * tests/test-idpriv-drop.sh: New file.
21236         * tests/test-idpriv-drop.su.sh: New file.
21237         * tests/test-idpriv-drop.c: New file.
21238
21239         New module 'idpriv-drop'.
21240         * lib/idpriv.h: New file.
21241         * lib-idpriv-drop.c: New file.
21242         * m4/idpriv.m4: New file.
21243         * modules/idpriv-drop: New file.
21244
21245 2009-06-08  Bruno Haible  <bruno@clisp.org>
21246
21247         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21248         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21249         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21250         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21251         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21252         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21253         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21254
21255 2009-06-08  Eric Blake  <ebb9@byu.net>
21256
21257         test-strstr: use memory fence, when possible
21258         * tests/test-strstr.c (main): Use memory fence, in order to be
21259         more likely to trigger Debian bug 521737.
21260         * modules/strstr-tests (Files): Pull in additional files.
21261
21262         memchr: no longer obsolete, for wider field testing
21263         * modules/memchr (Status, Notice): Delete, this module is no
21264         longer obsolete.
21265         * modules/vasnprintf (Depends-on): Add memchr.
21266
21267 2009-06-07  Jim Meyering  <meyering@redhat.com>
21268
21269         hash: declare some functions with the warn_unused_result attribute
21270         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21271
21272 2009-06-07  Bruno Haible  <bruno@clisp.org>
21273
21274         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21275         Reported by Eric Blake.
21276
21277 2009-06-06  Eric Blake  <ebb9@byu.net>
21278
21279         test-alignof: fix typo with long double
21280         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21281         compiler error.
21282
21283 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21284
21285         Escape non-texinfo { and }s.
21286         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21287         markup error.
21288
21289 2009-06-04  Jim Meyering  <meyering@redhat.com>
21290
21291         gitlog-to-changelog: don't infloop on an empty commit log
21292         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21293         Reported by Boris Petersen <transacid@centerim.org>.
21294
21295 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21296
21297         version-etc: extend for packagers
21298         Add three new configure options, intended for packagers:
21299           --with-packager="packager name"
21300           --with-packager-version="packager-specific version"
21301           --with-packager-bug-reports="packager bug reporting"
21302         An example with coreutils:
21303           $ ./configure \
21304             --with-packager=Gentoo \
21305             --with-packager-bug-report=http://bugs.gentoo.org/ \
21306             --with-packager-version="patchset 1.6"
21307           $ ./src/ls --version | head -n2
21308           ls (GNU coreutils) 7.1-dirty
21309           Packaged by Gentoo (patchset 1.6)
21310         Note that the bug reporting info via --help doesn't show up because
21311         coreutils uses its own custom emit_bug_reporting_address() implementation
21312         in src/system.h.  If it didn't, it'd look like:
21313           $ ./src/ls --help | tail -n4
21314           Report bugs to <bug-coreutils@gnu.org>.
21315           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21316           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21317           General help using GNU software: <http://www.gnu.org/gethelp/>.
21318         * lib/version-etc.c: Print new information, if provided.
21319         * m4/version-etc.m4: New file.
21320         * modules/version-etc (Files): Add m4/version-etc.m4.
21321         (configure.ac): Add gl_VERSION_ETC.
21322
21323 2009-05-31  Bruno Haible  <bruno@clisp.org>
21324
21325         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21326         and 'int64_t'.
21327         * modules/alignof-tests (Dependencies): Add stdint.
21328         Reported by Eric Blake.
21329
21330 2009-05-31  Bruno Haible  <bruno@clisp.org>
21331
21332         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21333         restriction due to compiler bugs.
21334         Reported by Eric Blake.
21335
21336 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21337             Bruno Haible  <bruno@clisp.org>
21338
21339         Fix test-alignof failure.
21340         * lib/alignof.h (alignof_slot): New macro.
21341         (alignof_type): New macro, with the same semantics as the previous
21342         'alignof'.
21343         (alignof): Alias to alignof_slot.
21344         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21345         check that the results are usable as constant expressions.
21346
21347 2009-05-31  Bruno Haible  <bruno@clisp.org>
21348
21349         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21350         * tests/test-memchr.c (main): Check that memchr does not read past the
21351         first occurrence of the byte.
21352         * tests/test-strstr.c (main): Update comment.
21353         Suggested by Eric Blake.
21354
21355 2009-05-30  Bruno Haible  <bruno@clisp.org>
21356
21357         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21358         detail how to use dumpbin.
21359         Reported by David Byron <dbyron@dbyron.com>.
21360
21361 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21362
21363         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21364
21365 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21366
21367         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21368
21369 2009-05-28  Bruno Haible  <bruno@clisp.org>
21370
21371         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21372         build-aux/ files.
21373
21374 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21375
21376         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21377
21378 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21379
21380         * gnulib-tool (sed_transform_main_lib_file)
21381         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21382         regexps.
21383
21384 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21385
21386         * tests/test-strstr.c: Add another self-test.
21387         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21388         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21389
21390 2009-05-23  Bruno Haible  <bruno@clisp.org>
21391
21392         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21393         change.
21394
21395 2009-05-21  Bruno Haible  <bruno@clisp.org>
21396
21397         Simplify use of mode_t varargs.
21398         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21399         uses 'mode_t' or 'int'.
21400         * lib/openat.c (openat): Likewise.
21401         * lib/open-safer.c (open_safer): Likewise.
21402         * m4/mode_t.m4: New file.
21403         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21404         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21405         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21406         * modules/open (Files): Add m4/mode_t.m4.
21407         * modules/openat (Files): Likewise.
21408         * modules/fcntl-safer (Files): Likewise.
21409         Suggested by Eric Blake.
21410
21411 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21412
21413         * doc/glibc-functions/fallocate.texi: New file.
21414         * doc/gnulib.texi: Include it.
21415
21416 2009-05-21  Eric Blake  <ebb9@byu.net>
21417             Bruno Haible  <bruno@clisp.org>
21418
21419         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21420         invocations.
21421         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21422
21423 2009-05-21  Eric Blake  <ebb9@byu.net>
21424             Bruno Haible  <bruno@clisp.org>
21425
21426         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21427         include_next. Fix of 2008-11-20 commit.
21428         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21429         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21430         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21431         NEXT_MATH_H.
21432         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21433         instead of NEXT_MATH_H.
21434
21435 2009-05-21  Bruno Haible  <bruno@clisp.org>
21436
21437         Avoid redefinition warnings for SIZE_MAX.
21438         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21439         Reported by Simon Josefsson.
21440
21441 2009-05-21  Bruno Haible  <bruno@clisp.org>
21442
21443         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21444         AC_CACHE_VAL.
21445
21446 2009-05-20  Bruno Haible  <bruno@clisp.org>
21447
21448         Make zeroptr.h work on mingw.
21449         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21450         mprotect.
21451         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21452         * modules/memchr2-tests (configure.ac): Likewise.
21453         * modules/memcmp-tests (configure.ac): Likewise.
21454         * modules/memmem-tests (configure.ac): Likewise.
21455         * modules/memrchr-tests (configure.ac): Likewise.
21456         Reported by Simon Josefsson.
21457
21458 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21459
21460         * tests/test-glob.c: Include string.h for strcmp prototype.
21461
21462 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21463
21464         * modules/getdelim (Depends-on): Add explicit stdint, although it
21465         was implicitly already pulled in via realloc-posix.
21466         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21467
21468 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21469
21470         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21471         G. Christensen" <tgc@jupiterrise.com>.
21472         * m4/sys_socket_h.m4: Check for sa_family_t.
21473         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21474         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21475         * tests/test-sys_socket.c: Check that sa_family_t works.
21476
21477 2009-05-18  Eric Blake  <ebb9@byu.net>
21478
21479         maint.mk: allow gnulib_dir in VPATH build
21480         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21481
21482 2009-05-15  Jim Meyering  <meyering@redhat.com>
21483
21484         maint.mk: Give gnulib_dir a default definition.
21485         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21486         Thus, most packages no longer need to specify this variable in cfg.mk
21487
21488 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21489
21490         rename.m4: fix typos that would make non-mingw cross-configure fail
21491         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21492
21493 2009-05-13  Eric Blake  <ebb9@byu.net>
21494
21495         mmap-anon: avoid out-of-order autoconf expansion
21496         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21497         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21498         * modules/memchr-tests (Depends-on): Add extensions.
21499         * modules/memchr2-tests (Depends-on): Add extensions.
21500         * modules/memcmp-tests (Depends-on): Add extensions.
21501         * modules/memmem-tests (Depends-on): Add extensions.
21502         * modules/memrchr-tests (Depends-on): Add extensions.
21503
21504 2009-05-13  Bruno Haible  <bruno@clisp.org>
21505
21506         Make some tests ISO C 99 compliant.
21507         * tests/zerosize-ptr.h: New file.
21508         * tests/test-memchr.c: Include zerosize-ptr.h.
21509         (main): Use a zero-size object pointer instead of NULL.
21510         * tests/test-memchr2.c: Include zerosize-ptr.h.
21511         (main): Use a zero-size object pointer instead of NULL.
21512         * tests/test-memcmp.c: Include zerosize-ptr.h.
21513         (main): Use a zero-size object pointer instead of NULL.
21514         * tests/test-memmem.c: Include zerosize-ptr.h.
21515         (main): Use a zero-size object pointer instead of NULL.
21516         * tests/test-memrchr.c: Include zerosize-ptr.h.
21517         (main): Use a zero-size object pointer instead of NULL.
21518         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21519         m4/mmap-anon.m4.
21520         (Depends-on): Add getpagesize.
21521         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21522         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21523         m4/mmap-anon.m4.
21524         (Depends-on): Add getpagesize.
21525         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21526         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21527         m4/mmap-anon.m4.
21528         (Depends-on): Add getpagesize.
21529         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21530         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21531         m4/mmap-anon.m4.
21532         (Depends-on): Add getpagesize.
21533         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21534         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21535         m4/mmap-anon.m4.
21536         (Depends-on): Add getpagesize.
21537         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21538
21539 2009-05-12  Bruno Haible  <bruno@clisp.org>
21540
21541         Tests for module 'alignof'.
21542         * modules/alignof-tests: New file.
21543         * tests/test-alignof.c: New file.
21544
21545 2009-05-12  Bruno Haible  <bruno@clisp.org>
21546
21547         Fix alignof macro.
21548         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21549         vendor compilers that are always correct.
21550
21551 2009-05-12  Bruno Haible  <bruno@clisp.org>
21552
21553         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21554         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21555         not whether its fully works.
21556
21557 2009-05-12  Bruno Haible  <bruno@clisp.org>
21558
21559         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21560
21561 2009-05-12  Jim Meyering  <meyering@redhat.com>
21562
21563         * top/maint.mk: Adjust backslash alignment.
21564
21565 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21566
21567         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21568
21569 2009-05-11  Eric Blake  <ebb9@byu.net>
21570
21571         argp: avoid undefined behavior
21572         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21573         macros.
21574
21575 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21576
21577         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21578         user.name to prevent git commit from complaining.
21579
21580 2009-05-10  Bruno Haible  <bruno@clisp.org>
21581
21582         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21583         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21584         it rewrites every file name only once.
21585         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21586
21587 2009-05-08  Bruno Haible  <bruno@clisp.org>
21588
21589         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21590         instead of 'max'.
21591
21592 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21593
21594         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21595         sockaddr_storage test.
21596
21597 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21598
21599         * modules/sys_socket (Makefile.am): Substitute
21600         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21601         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21602         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21603         * tests/test-sys_socket.c: Check sockaddr_storage.
21604
21605 2009-05-08  Bruno Haible  <bruno@clisp.org>
21606
21607         New module 'alignof'.
21608         * lib/alignof.h: New file.
21609         * modules/alignof: New file.
21610
21611 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21612             Bruno Haible  <bruno@clisp.org>
21613
21614         Fix test-file-has-acl on FreeBSD.
21615         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21616         mask is implicitly added.
21617         * tests/test-file-has-acl.c: Include <signal.h>.
21618         (main): Terminate the test after 5 seconds.
21619         * modules/acl-tests (configure.ac): Check for alarm function.
21620
21621 2009-05-04  Bruno Haible  <bruno@clisp.org>
21622
21623         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21624         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21625         * modules/errno (configure.ac): Drop AC_REQUIRE.
21626         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21627         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21628
21629 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21630
21631         * modules/glob-tests: New module.
21632         * tests/test-glob.c: Add.
21633
21634 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21635
21636         * modules/fnmatch-tests: New module.
21637         * tests/test-fnmatch.c: Add.
21638
21639 2009-05-04  Eric Blake  <ebb9@byu.net>
21640
21641         maint: make the new no-submodule-changes rule VPATH-safe
21642         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21643
21644 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21645             Bruno Haible  <bruno@clisp.org>
21646
21647         acl: Fix infinite loop on FreeBSD.
21648         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21649         of return value from acl_get_entry.
21650         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21651         Likewise.
21652
21653 2009-05-03  Bruno Haible  <bruno@clisp.org>
21654
21655         * lib/acl-internal.h (acl_entries): Clarify return value.
21656         * lib/acl_entries.c (acl_entries): Likewise.
21657
21658 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21659
21660         Bug fix in acl module.
21661         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21662
21663 2009-05-03  Bruno Haible  <bruno@clisp.org>
21664
21665         Create gperf-generated file in the source dir, not in the build dir.
21666         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21667         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21668         * modules/unicase/locale-language (unicase/locale-languages.h):
21669         Likewise.
21670         * modules/unicase/special-casing (unicase/special-casing-table.h):
21671         Likewise.
21672         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21673         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21674         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21675         Reported by Ralf Wildenhues.
21676
21677 2009-05-03  Bruno Haible  <bruno@clisp.org>
21678
21679         * modules/fnmatch (Description, configure.ac): Taken from
21680         fnmatch-posix.
21681         * modules/fnmatch-posix: Turn into a symbolic reference to the
21682         'fnmatch' module, and deprecate.
21683         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21684
21685 2009-05-03  Bruno Haible  <bruno@clisp.org>
21686
21687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21688         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21689         Reported by Ralf Wildenhues.
21690
21691 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21692
21693         * m4/fnmatch.m4: Fix fnmatch re-define.
21694
21695 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21696
21697         priv-set: new module and tests; adapt write-any-file
21698         * lib/priv-set.c: New file.
21699         * lib/priv-set.h: New file.
21700         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21701         * lib/write-any-file.c: Simplify by using priv-set module.
21702         * m4/priv-set.m4: New file.
21703         * modules/priv-set: New file.
21704         * modules/unlinkdir: Add dependency on priv-set module.
21705         * modules/write-any-file: Likewise.
21706
21707         Tests for module 'priv-set'.
21708         * modules/priv-set-tests: New file.
21709         * tests/test-priv-set.c: New file.
21710
21711 2009-05-03  Jim Meyering  <meyering@redhat.com>
21712             Bruno Haible  <bruno@clisp.org>
21713
21714         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21715         use the converted UTF-8 variant of the name instead.
21716
21717 2009-05-03  Jim Meyering  <meyering@redhat.com>
21718
21719         tests: tighten some getdate tests
21720         * tests/test-getdate.c (main): Tighten tests: require equality,
21721         not just greater than.  Set TZ envvar to UTC0.
21722
21723 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21724
21725         getdate: correctly interpret "next monday" when run on a Monday
21726         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21727         that e.g., "next tues" (when run on a tuesday) results in a date
21728         that is one week in the future, and not today's date.
21729         I.e., add a week when the wday is the same as the current one.
21730         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21731         and earlier by Martin Bernreuther and Jan Minář.
21732         * tests/test-getdate.c (main): Check that "next DAY" is always in
21733         the future and that "last DAY" is always in the past.
21734
21735 2009-05-02  Jim Meyering  <meyering@redhat.com>
21736
21737         build: ensure that a release build fails when a submodule is unclean
21738         * top/maint.mk (no-submodule-changes): New rule.
21739         (alpha beta major): Depend on it.
21740
21741 2009-05-02  Bruno Haible  <bruno@clisp.org>
21742
21743         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21744         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21745         shell variable gl_fnmatch_required to detect which variant is
21746         requested.
21747         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21748         gl_FUNC_FNMATCH_POSIX.
21749         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21750         exclude fnmatch-posix.
21751
21752 2009-05-02  Bruno Haible  <bruno@clisp.org>
21753
21754         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21755         * modules/mbsrtowcs (License): Change to LGPLv2+.
21756         * modules/strnlen1 (License): Likewise.
21757         Reported by Simon Josefsson.
21758
21759 2009-05-02  Bruno Haible  <bruno@clisp.org>
21760
21761         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21762         "cross".
21763         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21764         gnulib-tool was called with option --source-base=lib.
21765
21766 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21767
21768         Use automake *-local hooks without commands, for extensibility.
21769         * modules/localcharset (Makefile.am): Rename install-exec-local
21770         rule to install-exec-localcharset, and make it a prerequisite of
21771         install-exec-local.  Likewise, rename the uninstall-local rule to
21772         uninstall-localcharset, and make it a prerequisite of the former.
21773
21774 2009-05-01  Bruno Haible  <bruno@clisp.org>
21775
21776         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21777         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21778         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21780         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21781         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21782         m4/locale-zh.m4, m4/codeset.m4.
21783
21784         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21785         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21786         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21787         m4/locale-zh.m4.
21788
21789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21790         REPLACE_WCRTOMB if mbstate_t must be replaced.
21791         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21792         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21793
21794 2009-05-01  Bruno Haible  <bruno@clisp.org>
21795
21796         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21797         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21798         dngettext, dcngettext, textdomain, bindtextdomain,
21799         bind_textdomain_codeset): Undefine before redefining.
21800
21801 2009-04-30  Bruno Haible  <bruno@clisp.org>
21802
21803         Fix bug introduced on 2009-04-25.
21804         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21805         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21806         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21807         is defined.
21808         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21809         is defined.
21810         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21811         is defined.
21812         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21813
21814 2009-04-28  Bruno Haible  <bruno@clisp.org>
21815
21816         Comment tweaks.
21817         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21818         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21819         * lib/unicase.h (u*_casexfrm): Likewise.
21820         Reported by Paolo Bonzini.
21821
21822 2009-04-28  Bruno Haible  <bruno@clisp.org>
21823
21824         Fix a compilation error.
21825         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21826         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21827         Reported by Jim Meyering.
21828
21829 2009-04-27  Bruno Haible  <bruno@clisp.org>
21830
21831         New module 'libunistring'.
21832         * modules/libunistring: New file.
21833         * m4/libunistring.m4: New file.
21834         * MODULES.html.sh (Unicode string functions): Add it.
21835
21836 2009-04-27  Eric Blake  <ebb9@byu.net>
21837
21838         maint.mk: allow package-specific header to provide <config.h>
21839         * top/maint.mk (sc_require_config_h): New variable.
21840         (sc_require_config_h, sc_require_config_h_first): Use it.
21841
21842 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21843
21844         * top/maint.mk (sc_avoid_if_before_free): Except
21845         useless-if-before-free script.
21846
21847 2009-04-27  Eric Blake  <ebb9@byu.net>
21848
21849         maintainer-makefile: depend on all required helper scripts
21850         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21851         useless-if-before-free.
21852         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21853         version, rather than assuming gnulib checkout is available.
21854         Reported by Simen Josefsson.
21855
21856 2009-04-26  Bruno Haible  <bruno@clisp.org>
21857
21858         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21859         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21860         "../" or "..".
21861
21862 2009-04-26  Bruno Haible  <bruno@clisp.org>
21863
21864         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21865         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21866         AC_LIB_HAVE_LINKFLAGS.
21867
21868 2009-04-26  Bruno Haible  <bruno@clisp.org>
21869
21870         Simplify calling convention of u*_conv_from_encoding.
21871         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21872         u32_conv_from_encoding): Expect a resultbuf argument and return the
21873         result directly as a pointer.
21874         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21875         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21876         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21877         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21878         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21879         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21880         Update.
21881         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21882         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21883         * lib/vasnprintf.c (VASNPRINTF): Update.
21884         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21885         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21886         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21887         * NEWS: Mention the change.
21888
21889 2009-04-26  Bruno Haible  <bruno@clisp.org>
21890
21891         Simplify calling convention of u*_conv_to_encoding.
21892         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21893         u32_conv_to_encoding): Expect a resultbuf argument and return the
21894         result directly as a pointer.
21895         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21896         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21897         freeing scaled_offsets if mem_iconveha failed.
21898         * lib/unicase/u-casexfrm.h (FUNC): Update.
21899         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21900         * lib/vasnprintf.c (VASNPRINTF): Update.
21901         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21902         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21903         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21904         * NEWS: Mention the change.
21905
21906 2009-04-26  Bruno Haible  <bruno@clisp.org>
21907
21908         Avoid test failures on AIX and OSF/1.
21909         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21910         malloc(0).
21911         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21912         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21913         Likewise.
21914         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21915         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21916         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21917         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21918         * doc/posix-functions/malloc.texi: Document the portability problem
21919         related to malloc(0).
21920
21921 2009-04-26  Bruno Haible  <bruno@clisp.org>
21922
21923         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21924         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21925         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21926
21927 2009-04-25  Bruno Haible  <bruno@clisp.org>
21928
21929         Avoid link error when creating a namespace clean library.
21930         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21931         as macro with arguments if already defined as an alias.
21932         * lib/signbitf.c (gl_signbitf): Don't undefine.
21933         * lib/signbitd.c (gl_signbitd): Don't undefine.
21934         * lib/signbitl.c (gl_signbitl): Don't undefine.
21935
21936 2009-04-25  Jim Meyering  <meyering@redhat.com>
21937
21938         vc-list-files: fix another quoting bug
21939         * build-aux/vc-list-files: Avoid sed backslash expansion
21940         of pathological directory names.
21941
21942 2009-04-25  Eric Blake  <ebb9@byu.net>
21943
21944         vc-list-files: fix shell quoting error
21945         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21946         timestamp.
21947
21948 2009-04-25  Jim Meyering  <meyering@redhat.com>
21949
21950         vc-list-files: restore lost functionality with subdir argument
21951         * build-aux/vc-list-files: When given a non-"." sub-directory
21952         argument, substitute the $dir/ prefix back onto each resulting name.
21953         Otherwise, coreutils' root_tests check would fail.
21954
21955 2009-04-24  Eric Blake  <ebb9@byu.net>
21956
21957         vc-list-files: ignore git symlinks
21958         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21959         than ls-files, to ignore git symlinks.
21960
21961         maint.mk: import improvements from m4
21962         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21963         (move_if_change): Delete unused macro.
21964         (news-date-check, vc-diff-check): Support VPATH builds.
21965         (announcement): Likewise.  Split --bootstrap-tools list...
21966         (boostrap-tools): ...into separate list, which can be overridden
21967         in cfg.mk.
21968         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21969         requiring dependency on useless-if-before-free module.
21970         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21971         Support VPATH builds.
21972
21973 2009-04-24  Jim Meyering  <meyering@redhat.com>
21974
21975         maint.mk: remove coreutils-specific rules and variables
21976         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
21977         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
21978         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
21979
21980         maint.mk: remove obsolete rule
21981         * top/maint.mk (rel-check): Remove rule.
21982         (WGET, WGETFLAGS): Remove now-unused variables.
21983
21984 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21985
21986         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21987         consistency.
21988
21989         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21990         '$(PATH_SEPARATOR)' instead of ':'.
21991
21992 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21993
21994         * lib/getopt1.c (main): Use 'const' for static array.
21995
21996 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21997
21998         * top/maint.mk: Sync with coreutils.
21999         * NEWS: Explain incompatibilities.
22000
22001 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22002             Bruno Haible  <bruno@clisp.org>
22003
22004         Fix cross-compilation results.
22005         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
22006         statement, as third argument of AC_TRY_RUN.
22007         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22008         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22009         Likewise.
22010         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22011         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22012         Likewise.
22013         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22014         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
22015         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
22016
22017 2009-04-20  Bruno Haible  <bruno@clisp.org>
22018
22019         Avoid test failure on mingw.
22020         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
22021
22022 2009-04-20  Bruno Haible  <bruno@clisp.org>
22023
22024         Avoid compilation error on mingw.
22025         * modules/localename-tests (Depends-on): Add locale.
22026
22027 2009-04-19  Bruno Haible  <bruno@clisp.org>
22028
22029         Support for building a shared library on Windows platforms.
22030         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
22031         (main): Test the presence of UNINORM_NFC here.
22032         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
22033         (main): Test the presence of UNINORM_NFD here.
22034         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
22035         (main): Test the presence of UNINORM_NFKC here.
22036         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
22037         (main): Test the presence of UNINORM_NFKD here.
22038
22039 2009-04-19  Bruno Haible  <bruno@clisp.org>
22040
22041         Avoid a compiler warning.
22042         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
22043         Change type of variable 'sequence'.
22044
22045 2009-04-19  Bruno Haible  <bruno@clisp.org>
22046
22047         * modules/configmake (Makefile.am): When the contents of configmake.h
22048         does not change, arrange to preserve its modification time.
22049
22050 2009-04-17  Simon Josefsson  <simon@josefsson.org>
22051
22052         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
22053         gettext domain.
22054
22055 2009-04-16  Jim Meyering  <meyering@redhat.com>
22056
22057         useless-if-before-free: improve conversion code
22058         * build-aux/useless-if-before-free: Adjust code-in-comment to match
22059         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
22060
22061 2009-04-14  Bruno Haible  <bruno@clisp.org>
22062
22063         * modules/fcntl (Depends-on): Add extensions.
22064         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
22065
22066 2009-04-12  Ben Pfaff  <blp@gnu.org>
22067
22068         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
22069         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
22070
22071 2009-03-20  Ben Pfaff  <blp@gnu.org>
22072
22073         Make rename replace existing destinations on Windows.
22074         * m4/rename.m4: Add test for Mingw.
22075         * lib/rename.c: Add rename replacement that uses MoveFileEx with
22076         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22077         * doc/posix-functions/rename.texi: Document.
22078
22079 2009-04-10  Bruno Haible  <bruno@clisp.org>
22080
22081         New include file "iconveh.h".
22082         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22083         * lib/striconveh.h: Include it.
22084         (enum iconv_ilseq_handler): Remove definition.
22085         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22086         striconveh.h.
22087         * lib/striconveha.c: Include striconveh.h.
22088         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22089         * modules/striconveh (Files): Add lib/iconveh.h.
22090         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22091         lib/striconveh.h.
22092
22093 2009-04-10  Bruno Haible  <bruno@clisp.org>
22094
22095         * lib/uniconv.h: Update comment.
22096
22097 2009-04-10  Bruno Haible  <bruno@clisp.org>
22098
22099         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22100         always.
22101         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22102         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22103         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22104         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22105         "unistring-notinline.h", so that the function gets defined always.
22106         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22107         * lib/unistr/u8-uctomb.c: Likewise.
22108         * lib/unistr/u16-mbtouc.c: Likewise.
22109         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22110         * lib/unistr/u16-uctomb.c: Likewise.
22111         * lib/unistr/u32-mbtouc.c: Likewise.
22112         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22113         * lib/unistr/u32-uctomb.c: Likewise.
22114
22115 2009-04-10  Bruno Haible  <bruno@clisp.org>
22116
22117         Mark 'utime' obsolete.
22118         * modules/utime (Status, Notice): New sections.
22119         Suggested by Jim Meyering.
22120
22121         Fix cross-compile guess for utime test.
22122         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22123         autoconf.
22124         * doc/posix-functions/utime.texi: Give more precisions.
22125         Reported by Jan <ipif@ymail.com>.
22126
22127 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22128
22129         filevercmp: correct today's change
22130         * lib/filevercmp.c: Also handle coreutils' test inputs.
22131         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22132
22133         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22134         for reporting it.
22135         * lib/filevercmp.c: Special handle for "", "." and "..".
22136         * tests/test-filevercmp.c: Enlarge the set suite.
22137
22138 2009-04-07  Jim Meyering  <meyering@redhat.com>
22139
22140         useless-if-before-free: show how to remove braced useless free, too
22141         * build-aux/useless-if-before-free: still only in a comment, though.
22142
22143 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22144
22145         maint.mk: import changes to syntax-check macros from coreutils
22146         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22147         Use them in the relevant macros.
22148
22149 2009-04-06  Bruno Haible  <bruno@clisp.org>
22150
22151         Fix unportable use of bit-fields.
22152         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22153         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22154         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22155
22156 2009-04-06  Bruno Haible  <bruno@clisp.org>
22157
22158         Avoid test failures on AIX and OSF/1.
22159         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22160         that malloc(0) = NULL.
22161         * tests/unicase/test-u8-tolower.c (check): Likewise.
22162         * tests/unicase/test-u8-totitle.c (check): Likewise.
22163         * tests/unicase/test-u8-toupper.c (check): Likewise.
22164         * tests/unicase/test-u16-casefold.c (check): Likewise.
22165         * tests/unicase/test-u16-tolower.c (check): Likewise.
22166         * tests/unicase/test-u16-totitle.c (check): Likewise.
22167         * tests/unicase/test-u16-toupper.c (check): Likewise.
22168         * tests/unicase/test-u32-casefold.c (check): Likewise.
22169         * tests/unicase/test-u32-tolower.c (check): Likewise.
22170         * tests/unicase/test-u32-totitle.c (check): Likewise.
22171         * tests/unicase/test-u32-toupper.c (check): Likewise.
22172         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22173         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22174         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22175         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22176         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22177         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22178         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22179         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22180         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22181         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22182         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22183         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22184
22185 2009-04-05  Bruno Haible  <bruno@clisp.org>
22186
22187         Work around an autoconf limitation.
22188         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22189         comment line if it would be longer than 3 KB.
22190
22191 2009-04-05  Bruno Haible  <bruno@clisp.org>
22192
22193         Avoid test failure with libiconv-1.13.
22194         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22195         of the expected test results.
22196
22197 2009-04-05  Bruno Haible  <bruno@clisp.org>
22198
22199         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22200         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22201         that it should be installed.
22202
22203 2009-04-05  Bruno Haible  <bruno@clisp.org>
22204
22205         * gnulib-tool: New option --copy-file.
22206         (func_usage): Document it.
22207         (func_dest_tmpfilename): Moved out of func_import.
22208         (func_add_file, func_update_file): New functions, extracted from
22209         func_import.
22210         (func_import): Update.
22211
22212 2009-04-05  Karl Berry  <karl@gnu.org>
22213
22214         * README: prominently mention gnulib-tool.
22215         Rearrange sections so getting the code is near the top.
22216
22217 2009-04-05  Bruno Haible  <bruno@clisp.org>
22218
22219         * lib/unicase.h: Mention u*_cmp2.
22220         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22221         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22222         * lib/unicase/ulc-casecmp.c: Likewise.
22223         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22224         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22225         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22226         unistr/u8-cmp.
22227         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22228         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22229         unistr/u16-cmp.
22230         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22231         unistr/u32-cmp.
22232
22233         * lib/uninorm.h: Mention u*_cmp2.
22234         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22235         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22236         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22237         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22238         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22239         unistr/u8-cmp.
22240         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22241         unistr/u16-cmp.
22242         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22243         unistr/u32-cmp.
22244
22245         New module 'unistr/u32-cmp2'.
22246         * lib/unistr/u32-cmp2.c: New file.
22247         * modules/unistr/u32-cmp2: New file.
22248
22249         New module 'unistr/u16-cmp2'.
22250         * lib/unistr/u16-cmp2.c: New file.
22251         * modules/unistr/u16-cmp2: New file.
22252
22253         New module 'unistr/u8-cmp2'.
22254         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22255         * lib/unistr/u8-cmp2.c: New file.
22256         * lib/unistr/u-cmp2.h: New file.
22257         * modules/unistr/u8-cmp2: New file.
22258
22259 2009-04-05  Bruno Haible  <bruno@clisp.org>
22260
22261         * lib/unictype.h (uc_property_is_valid): New macro.
22262         * tests/unictype/test-pr_byname.c (main): Use it.
22263
22264         * lib/unistr.h: Doc fixes.
22265         * lib/uniconv.h: Doc fixes.
22266         * lib/unictype.h: Doc fixes.
22267
22268 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22269
22270         Port coreutils 7.2 to Solaris 8.
22271
22272         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22273         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22274         for Solaris 8.  This is a bit of a hack, as it means it's the
22275         caller's responsibility to add -lnsl if needed, but most likely it
22276         won't be needed since only getaddrinfo uses this and getaddrinfo
22277         isn't needed on Solaris 8.
22278
22279         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22280         problem to Solaris 8 encountered with coreutils 7.2, which
22281         resulted in a message "fnmatch.c:292: warning: passing argument 4
22282         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22283         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22284
22285 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22286
22287         * m4/ld-version-script.m4: Add FIXME comment.
22288
22289 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22290
22291         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22292         SOVERSION variable.
22293
22294 2009-04-02  Bruno Haible  <bruno@clisp.org>
22295
22296         * Makefile (info, html, dvi, pdf): Combine the rules.
22297         Suggested by Jim Meyering.
22298
22299 2009-04-01  Bruno Haible  <bruno@clisp.org>
22300
22301         * Makefile (info, html, dvi, pdf): New targets.
22302         Reported by Reuben Thomas <rrt@sc3d.org>.
22303
22304 2009-04-01  Bruno Haible  <bruno@clisp.org>
22305
22306         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22307         can be put into PATH.
22308         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22309
22310 2009-04-01  Bruno Haible  <bruno@clisp.org>
22311
22312         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22313
22314 2009-04-01  Bruno Haible  <bruno@clisp.org>
22315
22316         Rename module 'visibility'.
22317         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22318         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22319         * doc/gnulib.texi: Update.
22320         * MODULES.html.sh (Misc): Update.
22321         * NEWS: Mention the change.
22322
22323 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22324
22325         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22326         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22327         Eric Blake <ebb9@byu.net> for review.
22328         * MODULES.html.sh: Add lib-msvc-compat.
22329         * doc/gnulib.texi: Link to new section.
22330         * m4/ld-output-def.m4: New file.
22331         * doc/ld-output-def.texi: New file.
22332
22333 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22334
22335         Rename ld-version-script to lib-symbol-versions.  Suggested by
22336         Bruno Haible <bruno@clisp.org>.
22337         * modules/ld-version-script: Renamed to lib-symbol-versions.
22338         * doc/ld-version-script.texi: Fix module name.
22339         * MODULES.html.sh: Add lib-symbol-versions.
22340
22341 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22342
22343         * modules/u64-tests: New file.
22344         * tests/test-u64.c: New file.
22345
22346 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22347
22348         * MODULES.html.sh: Mention u64.
22349         * modules/u64: New module.
22350         * modules/crypto/sha512: Depend on u64 module instead of providing
22351         u64.h.
22352
22353 2009-03-27  Eric Blake  <ebb9@byu.net>
22354
22355         test-strerror: make debugging EAI_SYSTEM easier
22356         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22357         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22358         failure was EAI_SYSTEM.
22359
22360 2009-03-25  Bruno Haible  <bruno@clisp.org>
22361
22362         Fix a problem with --enable-relocatable on Solaris 7.
22363         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22364         since 2008-02-24.
22365
22366 2009-03-25  Eric Blake  <ebb9@byu.net>
22367
22368         test-sockets: avoid gcc warning
22369         * tests/test-sockets.c (main): Silence compiler warning.
22370
22371 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22372
22373         New modules nproc, pthread, contributed by Glen Lenker.
22374
22375         * MODULES.html.sh: Add pthread, nproc.
22376         * lib/nproc.c: New file.
22377         * lib/nproc.h: New file.
22378         * lib/pthread.in.h: New file.
22379         * m4/pthread.m4: New file.
22380         * modules/nproc: New file.
22381         * modules/pthread: New file.
22382
22383 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22384
22385         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22386         New variable.
22387
22388 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22389
22390         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22391         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22392         * tests/test-filevercmp.c: Add tests for backup suffixes.
22393
22394 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22395
22396         * modules/stdlib (Depends-on): Add stdint, needed when defining
22397         struct random_data on, for example, HP-UX 10.20.  Reported by
22398         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22399
22400 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22401
22402         * lib/readline.c (readline): Call fflush on stdout after printing
22403         prompt.
22404
22405 2009-03-20  Bruno Haible  <bruno@clisp.org>
22406
22407         Remove dependency from 'close' module to -lws2_32 on native Windows.
22408         * lib/close-hook.h: New file.
22409         * lib/close-hook.c: New file.
22410         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22411         w32sock.h.
22412         (_gl_close_fd_maybe_socket): Remove function.
22413         (rpl_close): Invoke execute_all_close_hooks instead of
22414         _gl_close_fd_maybe_socket.
22415         * lib/sockets.c: Include close-hook.h, w32sock.h.
22416         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22417         (close_sockets_hook): New variable.
22418         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22419         (gl_sockets_cleanup): Unregister it.
22420         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22421         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22422         * modules/close-hook: New file.
22423         * modules/close (Files): Remove lib/w32sock.h.
22424         (Depends-on): Add close-hook.
22425         (Link): Remove section.
22426         * modules/sockets (Files): Add lib/w32sock.h.
22427         (Depends-on): Add close-hook.
22428         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22429         invocation.
22430         * NEWS: Mention that LIB_CLOSE is gone.
22431
22432 2009-03-23  Eric Blake  <ebb9@byu.net>
22433
22434         signal-tests: test previous patch
22435         * tests/test-signal.c: New file.
22436         * modules/signal-tests: Likewise.
22437
22438         signal.h: always support 'volatile sig_atomic_t'
22439         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22440         (gl_SIGNAL_H_DEFAULTS): Add a default.
22441         * modules/signal (Makefile.am): Substitute if needed.
22442         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22443         users can blindly add volatile.
22444         * doc/posix-headers/signal.texi (signal.h): Document it.
22445         Reported by Matthew Woehlke.
22446
22447 2009-03-23  Jim Meyering  <meyering@redhat.com>
22448
22449         pathmax: PATH_MAX: use pathconf only when available
22450         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22451         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22452         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22453         This avoids a link failure in a PSP cross-compilation environment
22454         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22455
22456         * lib/vasnprintf.c (divide): Fix typo in comment.
22457
22458 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22459
22460         * gnulib-tool (func_filter_filelist): Fix comment.
22461
22462 2009-03-20  Bruno Haible  <bruno@clisp.org>
22463
22464         Make sockets.h self-contained.
22465         * lib/sockets.c: Include sockets.h first.
22466         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22467
22468 2009-03-19  Eric Blake  <ebb9@byu.net>
22469
22470         doc: mention more functions added in cygwin 1.7.0
22471         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22472         addition.
22473         * doc/posix-functions/log2f.texi: Likewise.
22474
22475 2009-03-19  Jim Meyering  <meyering@redhat.com>
22476
22477         fsusage: avoid syntax error due to statement-before-declaration
22478         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22479         after all declarations.  Reported by Matthew Woehlke in
22480         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22481
22482 2009-03-18  Eric Blake  <ebb9@byu.net>
22483
22484         build-aux/compile: sync from automake
22485         * build-aux/compile: New file, from automake.
22486         * config/srclist.txt: Mention build-aux/compile.
22487
22488 2009-03-17  Bruno Haible  <bruno@clisp.org>
22489
22490         * lib/git-merge-changelog.c: Fix typo in comment.
22491         Reported by Reuben Thomas <rrt@sc3d.org>.
22492
22493 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22494
22495         * m4/regex.m4: update and improve help for
22496         --without-included-regex.
22497
22498 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22499
22500         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22501         failure on missing include files.
22502
22503 2009-03-17  Eric Blake  <ebb9@byu.net>
22504
22505         doc: mention more functions added in cygwin 1.7.0
22506         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22507         addition.
22508         * doc/posix-functions/fwscanf.texi: Likewise.
22509         * doc/posix-functions/swprintf.texi: Likewise.
22510         * doc/posix-functions/swscanf.texi: Likewise.
22511         * doc/posix-functions/vfwprintf.texi: Likewise.
22512         * doc/posix-functions/vfwscanf.texi: Likewise.
22513         * doc/posix-functions/vswprintf.texi: Likewise.
22514         * doc/posix-functions/vswscanf.texi: Likewise.
22515         * doc/posix-functions/vwprintf.texi: Likewise.
22516         * doc/posix-functions/vwscanf.texi: Likewise.
22517         * doc/posix-functions/wcscasecmp.texi: Likewise.
22518         * doc/posix-functions/wcsdup.texi: Likewise.
22519         * doc/posix-functions/wcsftime.texi: Likewise.
22520         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22521         * doc/posix-functions/wprintf.texi: Likewise.
22522         * doc/posix-functions/wscanf.texi: Likewise.
22523         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22524
22525 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22526
22527         maint.mk: really add $(AM_MAKEFLAGS)
22528         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22529         was inadvertently omitted in the last commit.
22530         Spotted by Bruno Haible.
22531
22532         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22533         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22534         $(AM_MAKEFLAGS)' rather than plain `make'.
22535
22536         gnulib-tool: execute $MAKE not make
22537         * gnulib-tool: Default $MAKE to 'make'.
22538         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22539         than make.  Initialize $MAKE in the do-autobuild script.
22540
22541         gnulib-tool: use $MAKE not make in generated files
22542         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22543         make, in generated files.  Initialize $MAKE in the do-autobuild
22544         script.
22545
22546         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22547
22548         GNUmakefile: disable parallelism only for multiple, recursive targets
22549         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22550         additions in the Makefile.
22551         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22552         by Automake.
22553         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22554         are listed on the command line and at least one of them is
22555         listed in $(ALL_RECURSIVE_TARGETS).
22556
22557 2009-03-14  Bruno Haible  <bruno@clisp.org>
22558
22559         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22560         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22561         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22562         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22563         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22564         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22565         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22566         unistr/u8-uctomb.
22567         * modules/unistr/u8-strchr (Depends-on): Likewise.
22568         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22569         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22570         unistr/u16-uctomb.
22571         * modules/unistr/u16-strchr (Depends-on): Likewise.
22572         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22573
22574 2009-03-12  Bruno Haible  <bruno@clisp.org>
22575
22576         Work around select() bug on Interix 3.5.
22577         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22578         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22579         * m4/select.m4: New file.
22580         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22581         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22582         * modules/select (Files): Add m4/select.m4.
22583         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22584         * modules/nanosleep (Depends-on): Add select.
22585         * modules/poll (Depends-on): Likewise.
22586         * doc/posix-functions/select.texi: Mention the Interix bug.
22587         Reported by Markus Duft <mduft@gentoo.org>.
22588
22589         * lib/select.c: Renamed from lib/winsock-select.c.
22590         * modules/select (Files): Add lib/select.c, remove
22591         lib/winsock-select.c.
22592         (configure.ac): Update.
22593
22594 2009-03-12  Jim Meyering  <meyering@redhat.com>
22595
22596         avoid gcc warnings about unused macro definitions
22597         * lib/readtokens.c (STREQ): Remove unused definition.
22598         * lib/xmalloc.c (SIZE_MAX): Likewise.
22599         * lib/openat-die.c (N_): Likewise.
22600         * lib/mountlist.c (SIZE_MAX): Remove definition.
22601         Instead, include <stdint.h>.
22602         * lib/readutmp.c: Likewise.
22603         * modules/readutmp (Depends-on): Add stdint.
22604         * modules/mountlist (Depends-on): Add stdint.
22605         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22606
22607 2009-03-10  Bruno Haible  <bruno@clisp.org>
22608
22609         Tests for module 'mbmemcasecoll'.
22610         * modules/mbmemcasecoll-tests: New file.
22611         * tests/test-mbmemcasecoll1.sh: New file.
22612         * tests/test-mbmemcasecoll2.sh: New file.
22613         * tests/test-mbmemcasecoll3.sh: New file.
22614         * tests/test-mbmemcasecoll.c: New file.
22615
22616         New module 'mbmemcasecoll'.
22617         * lib/mbmemcasecoll.h: New file.
22618         * lib/mbmemcasecoll.c: New file.
22619         * modules/mbmemcasecoll: New file.
22620
22621         * tests/test-mbmemcasecmp.h: New file, extracted from
22622         tests/test-mbmemcasecmp.c.
22623         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22624         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22625         (main): Update.
22626         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22627
22628 2009-03-09  Bruno Haible  <bruno@clisp.org>
22629
22630         Tests for module 'mbmemcasecmp'.
22631         * modules/mbmemcasecmp-tests: New file.
22632         * tests/test-mbmemcasecmp1.sh: New file.
22633         * tests/test-mbmemcasecmp2.sh: New file.
22634         * tests/test-mbmemcasecmp3.sh: New file.
22635         * tests/test-mbmemcasecmp.c: New file.
22636
22637         New module 'mbmemcasecmp'.
22638         * lib/mbmemcasecmp.h: New file.
22639         * lib/mbmemcasecmp.c: New file.
22640         * modules/mbmemcasecmp: New file.
22641
22642 2009-03-09  Bruno Haible  <bruno@clisp.org>
22643
22644         Tests for module 'unicase/ulc-casecoll'.
22645         * modules/unicase/ulc-casecoll-tests: New file.
22646         * tests/unicase/test-ulc-casecoll1.sh: New file.
22647         * tests/unicase/test-ulc-casecoll2.sh: New file.
22648         * tests/unicase/test-ulc-casecoll.c: New file.
22649
22650         New module 'unicase/ulc-casecoll'.
22651         * lib/unicase.h (ulc_casecoll): New declaration.
22652         * lib/unicase/ulc-casecoll.c: New file.
22653         * modules/unicase/ulc-casecoll: New file.
22654
22655         New module 'unicase/ulc-casexfrm'.
22656         * lib/unicase.h (ulc_casexfrm): New declaration.
22657         * lib/unicase/ulc-casexfrm.c: New file.
22658         * modules/unicase/ulc-casexfrm: New file.
22659
22660 2009-03-09  Bruno Haible  <bruno@clisp.org>
22661
22662         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22663         invocations.
22664
22665         * m4/mbscasecmp.m4: Remove file.
22666         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22667         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22668
22669         * m4/mbscasestr.m4: Remove file.
22670         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22671         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22672
22673         * m4/mbschr.m4: Remove file.
22674         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22675         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22676
22677         * m4/mbscspn.m4: Remove file.
22678         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22679         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22680
22681         * m4/mbslen.m4: Remove file.
22682         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22683         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22684
22685         * m4/mbsncasecmp.m4: Remove file.
22686         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22687         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22688
22689         * m4/mbsnlen.m4: Remove file.
22690         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22691         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22692
22693         * m4/mbspbrk.m4: Remove file.
22694         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22695         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22696
22697         * m4/mbspcasecmp.m4: Remove file.
22698         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22699         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22700
22701         * m4/mbsrchr.m4: Remove file.
22702         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22703         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22704
22705         * m4/mbssep.m4: Remove file.
22706         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22707         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22708
22709         * m4/mbsspn.m4: Remove file.
22710         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22711         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22712
22713         * m4/mbsstr.m4: Remove file.
22714         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22715         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22716
22717         * m4/mbstok_r.m4: Remove file.
22718         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22719         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22720
22721         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22722
22723         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22724         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22725
22726         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22727
22728 2009-03-08  Bruno Haible  <bruno@clisp.org>
22729
22730         Tests for module 'unicase/ulc-casecmp'.
22731         * modules/unicase/ulc-casecmp-tests: New file.
22732         * tests/unicase/test-ulc-casecmp1.sh: New file.
22733         * tests/unicase/test-ulc-casecmp2.sh: New file.
22734         * tests/unicase/test-ulc-casecmp.c: New file.
22735
22736         New module 'unicase/ulc-casecmp'.
22737         * lib/unicase.h (ulc_casecmp): New declaration.
22738         * lib/unicase/ulc-casecmp.c: New file.
22739         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22740         'const SRC_UNIT *'.
22741         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22742         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22743         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22744         * modules/unicase/ulc-casecmp: New file.
22745
22746         Tests for module 'unicase/u32-is-cased'.
22747         * modules/unicase/u32-is-cased-tests: New file.
22748         * tests/unicase/test-u32-is-cased.c: New file.
22749
22750         Tests for module 'unicase/u16-is-cased'.
22751         * modules/unicase/u16-is-cased-tests: New file.
22752         * tests/unicase/test-u16-is-cased.c: New file.
22753
22754         Tests for module 'unicase/u8-is-cased'.
22755         * modules/unicase/u8-is-cased-tests: New file.
22756         * tests/unicase/test-u8-is-cased.c: New file.
22757         * tests/unicase/test-is-cased.h: New file.
22758
22759         New module 'unicase/u32-is-cased'.
22760         * lib/unicase/u32-is-cased.c: New file.
22761         * modules/unicase/u32-is-cased: New file.
22762
22763         New module 'unicase/u16-is-cased'.
22764         * lib/unicase/u16-is-cased.c: New file.
22765         * modules/unicase/u16-is-cased: New file.
22766
22767         New module 'unicase/u8-is-cased'.
22768         * lib/unicase/u8-is-cased.c: New file.
22769         * lib/unicase/u-is-cased.h: New file.
22770         * modules/unicase/u8-is-cased: New file.
22771
22772         Tests for module 'unicase/u32-is-casefolded'.
22773         * modules/unicase/u32-is-casefolded-tests: New file.
22774         * tests/unicase/test-u32-is-casefolded.c: New file.
22775
22776         Tests for module 'unicase/u16-is-casefolded'.
22777         * modules/unicase/u16-is-casefolded-tests: New file.
22778         * tests/unicase/test-u16-is-casefolded.c: New file.
22779
22780         Tests for module 'unicase/u8-is-casefolded'.
22781         * modules/unicase/u8-is-casefolded-tests: New file.
22782         * tests/unicase/test-u8-is-casefolded.c: New file.
22783         * tests/unicase/test-is-casefolded.h: New file.
22784
22785         New module 'unicase/u32-is-casefolded'.
22786         * lib/unicase/u32-is-casefolded.c: New file.
22787         * modules/unicase/u32-is-casefolded: New file.
22788
22789         New module 'unicase/u16-is-casefolded'.
22790         * lib/unicase/u16-is-casefolded.c: New file.
22791         * modules/unicase/u16-is-casefolded: New file.
22792
22793         New module 'unicase/u8-is-casefolded'.
22794         * lib/unicase/u8-is-casefolded.c: New file.
22795         * modules/unicase/u8-is-casefolded: New file.
22796
22797         Tests for module 'unicase/u32-is-titlecase'.
22798         * modules/unicase/u32-is-titlecase-tests: New file.
22799         * tests/unicase/test-u32-is-titlecase.c: New file.
22800
22801         Tests for module 'unicase/u16-is-titlecase'.
22802         * modules/unicase/u16-is-titlecase-tests: New file.
22803         * tests/unicase/test-u16-is-titlecase.c: New file.
22804
22805         Tests for module 'unicase/u8-is-titlecase'.
22806         * modules/unicase/u8-is-titlecase-tests: New file.
22807         * tests/unicase/test-u8-is-titlecase.c: New file.
22808         * tests/unicase/test-is-titlecase.h: New file.
22809
22810         New module 'unicase/u32-is-titlecase'.
22811         * lib/unicase/u32-is-titlecase.c: New file.
22812         * modules/unicase/u32-is-titlecase: New file.
22813
22814         New module 'unicase/u16-is-titlecase'.
22815         * lib/unicase/u16-is-titlecase.c: New file.
22816         * modules/unicase/u16-is-titlecase: New file.
22817
22818         New module 'unicase/u8-is-titlecase'.
22819         * lib/unicase/u8-is-titlecase.c: New file.
22820         * modules/unicase/u8-is-titlecase: New file.
22821
22822         Tests for module 'unicase/u32-is-lowercase'.
22823         * modules/unicase/u32-is-lowercase-tests: New file.
22824         * tests/unicase/test-u32-is-lowercase.c: New file.
22825
22826         Tests for module 'unicase/u16-is-lowercase'.
22827         * modules/unicase/u16-is-lowercase-tests: New file.
22828         * tests/unicase/test-u16-is-lowercase.c: New file.
22829
22830         Tests for module 'unicase/u8-is-lowercase'.
22831         * modules/unicase/u8-is-lowercase-tests: New file.
22832         * tests/unicase/test-u8-is-lowercase.c: New file.
22833         * tests/unicase/test-is-lowercase.h: New file.
22834
22835         New module 'unicase/u32-is-lowercase'.
22836         * lib/unicase/u32-is-lowercase.c: New file.
22837         * modules/unicase/u32-is-lowercase: New file.
22838
22839         New module 'unicase/u16-is-lowercase'.
22840         * lib/unicase/u16-is-lowercase.c: New file.
22841         * modules/unicase/u16-is-lowercase: New file.
22842
22843         New module 'unicase/u8-is-lowercase'.
22844         * lib/unicase/u8-is-lowercase.c: New file.
22845         * modules/unicase/u8-is-lowercase: New file.
22846
22847         Tests for module 'unicase/u32-is-uppercase'.
22848         * modules/unicase/u32-is-uppercase-tests: New file.
22849         * tests/unicase/test-u32-is-uppercase.c: New file.
22850
22851         Tests for module 'unicase/u16-is-uppercase'.
22852         * modules/unicase/u16-is-uppercase-tests: New file.
22853         * tests/unicase/test-u16-is-uppercase.c: New file.
22854
22855         Tests for module 'unicase/u8-is-uppercase'.
22856         * modules/unicase/u8-is-uppercase-tests: New file.
22857         * tests/unicase/test-u8-is-uppercase.c: New file.
22858         * tests/unicase/test-is-uppercase.h: New file.
22859
22860         New module 'unicase/u32-is-uppercase'.
22861         * lib/unicase/u32-is-uppercase.c: New file.
22862         * modules/unicase/u32-is-uppercase: New file.
22863
22864         New module 'unicase/u16-is-uppercase'.
22865         * lib/unicase/u16-is-uppercase.c: New file.
22866         * modules/unicase/u16-is-uppercase: New file.
22867
22868         New module 'unicase/u8-is-uppercase'.
22869         * lib/unicase/u8-is-uppercase.c: New file.
22870         * modules/unicase/u8-is-uppercase: New file.
22871
22872         New module 'unicase/u32-is-invariant'.
22873         * lib/unicase/u32-is-invariant.c: New file.
22874         * modules/unicase/u32-is-invariant: New file.
22875
22876         New module 'unicase/u16-is-invariant'.
22877         * lib/unicase/u16-is-invariant.c: New file.
22878         * modules/unicase/u16-is-invariant: New file.
22879
22880         New module 'unicase/u8-is-invariant'.
22881         * lib/unicase/u8-is-invariant.c: New file.
22882         * lib/unicase/invariant.h: New file.
22883         * lib/unicase/u-is-invariant.h: New file.
22884         * modules/unicase/u8-is-invariant: New file.
22885
22886         Tests for module 'unicase/u32-casecoll'.
22887         * modules/unicase/u32-casecoll-tests: New file.
22888         * tests/unicase/test-u32-casecoll.c: New file.
22889
22890         Tests for module 'unicase/u16-casecoll'.
22891         * modules/unicase/u16-casecoll-tests: New file.
22892         * tests/unicase/test-u16-casecoll.c: New file.
22893
22894         Tests for module 'unicase/u8-casecoll'.
22895         * modules/unicase/u8-casecoll-tests: New file.
22896         * tests/unicase/test-u8-casecoll.c: New file.
22897
22898         New module 'unicase/u32-casecoll'.
22899         * lib/unicase/u32-casecoll.c: New file.
22900         * modules/unicase/u32-casecoll: New file.
22901
22902         New module 'unicase/u16-casecoll'.
22903         * lib/unicase/u16-casecoll.c: New file.
22904         * modules/unicase/u16-casecoll: New file.
22905
22906         New module 'unicase/u8-casecoll'.
22907         * lib/unicase/u8-casecoll.c: New file.
22908         * lib/unicase/u-casecoll.h: New file.
22909         * modules/unicase/u8-casecoll: New file.
22910
22911         New module 'unicase/u32-casexfrm'.
22912         * lib/unicase/u32-casexfrm.c: New file.
22913         * modules/unicase/u32-casexfrm: New file.
22914
22915         New module 'unicase/u16-casexfrm'.
22916         * lib/unicase/u16-casexfrm.c: New file.
22917         * modules/unicase/u16-casexfrm: New file.
22918
22919         New module 'unicase/u8-casexfrm'.
22920         * lib/unicase/u8-casexfrm.c: New file.
22921         * lib/unicase/u-casexfrm.h: New file.
22922         * modules/unicase/u8-casexfrm: New file.
22923
22924         Tests for module 'unicase/u32-casecmp'.
22925         * modules/unicase/u32-casecmp-tests: New file.
22926         * tests/unicase/test-u32-casecmp.c: New file.
22927
22928         Tests for module 'unicase/u16-casecmp'.
22929         * modules/unicase/u16-casecmp-tests: New file.
22930         * tests/unicase/test-u16-casecmp.c: New file.
22931
22932         Tests for module 'unicase/u8-casecmp'.
22933         * modules/unicase/u8-casecmp-tests: New file.
22934         * tests/unicase/test-u8-casecmp.c: New file.
22935         * tests/unicase/test-casecmp.h: New file.
22936
22937         New module 'unicase/u32-casecmp'.
22938         * lib/unicase/u32-casecmp.c: New file.
22939         * modules/unicase/u32-casecmp: New file.
22940
22941         New module 'unicase/u16-casecmp'.
22942         * lib/unicase/u16-casecmp.c: New file.
22943         * modules/unicase/u16-casecmp: New file.
22944
22945         New module 'unicase/u8-casecmp'.
22946         * lib/unicase/u8-casecmp.c: New file.
22947         * lib/unicase/u-casecmp.h: New file.
22948         * modules/unicase/u8-casecmp: New file.
22949
22950         Tests for module 'unicase/u32-casefold'.
22951         * modules/unicase/u32-casefold-tests: New file.
22952         * tests/unicase/test-u32-casefold.c: New file.
22953
22954         Tests for module 'unicase/u16-casefold'.
22955         * modules/unicase/u16-casefold-tests: New file.
22956         * tests/unicase/test-u16-casefold.c: New file.
22957
22958         Tests for module 'unicase/u8-casefold'.
22959         * modules/unicase/u8-casefold-tests: New file.
22960         * tests/unicase/test-u8-casefold.c: New file.
22961
22962         New module 'unicase/u32-casefold'.
22963         * lib/unicase/u32-casefold.c: New file.
22964         * modules/unicase/u32-casefold: New file.
22965
22966         New module 'unicase/u16-casefold'.
22967         * lib/unicase/u16-casefold.c: New file.
22968         * modules/unicase/u16-casefold: New file.
22969
22970         New module 'unicase/u8-casefold'.
22971         * lib/unicase/u8-casefold.c: New file.
22972         * lib/unicase/u-casefold.h: New file.
22973         * modules/unicase/u8-casefold: New file.
22974
22975         New module 'unicase/tocasefold'.
22976         * lib/unicase/casefold.h: New file.
22977         * lib/unicase/tocasefold.c: New file.
22978         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
22979         * modules/unicase/tocasefold: New file.
22980
22981         Tests for module 'unicase/u32-totitle'.
22982         * modules/unicase/u32-totitle-tests: New file.
22983         * tests/unicase/test-u32-totitle.c: New file.
22984
22985         Tests for module 'unicase/u16-totitle'.
22986         * modules/unicase/u16-totitle-tests: New file.
22987         * tests/unicase/test-u16-totitle.c: New file.
22988
22989         Tests for module 'unicase/u8-totitle'.
22990         * modules/unicase/u8-totitle-tests: New file.
22991         * tests/unicase/test-u8-totitle.c: New file.
22992
22993         New module 'unicase/u32-totitle'.
22994         * lib/unicase/u32-totitle.c: New file.
22995         * modules/unicase/u32-totitle: New file.
22996
22997         New module 'unicase/u16-totitle'.
22998         * lib/unicase/u16-totitle.c: New file.
22999         * modules/unicase/u16-totitle: New file.
23000
23001         New module 'unicase/u8-totitle'.
23002         * lib/unicase/u8-totitle.c: New file.
23003         * lib/unicase/u-totitle.h: New file.
23004         * modules/unicase/u8-totitle: New file.
23005
23006         Tests for module 'unicase/u32-tolower'.
23007         * modules/unicase/u32-tolower-tests: New file.
23008         * tests/unicase/test-u32-tolower.c: New file.
23009
23010         Tests for module 'unicase/u16-tolower'.
23011         * modules/unicase/u16-tolower-tests: New file.
23012         * tests/unicase/test-u16-tolower.c: New file.
23013
23014         Tests for module 'unicase/u8-tolower'.
23015         * modules/unicase/u8-tolower-tests: New file.
23016         * tests/unicase/test-u8-tolower.c: New file.
23017
23018         New module 'unicase/u32-tolower'.
23019         * lib/unicase/u32-tolower.c: New file.
23020         * modules/unicase/u32-tolower: New file.
23021
23022         New module 'unicase/u16-tolower'.
23023         * lib/unicase/u16-tolower.c: New file.
23024         * modules/unicase/u16-tolower: New file.
23025
23026         New module 'unicase/u8-tolower'.
23027         * lib/unicase/u8-tolower.c: New file.
23028         * modules/unicase/u8-tolower: New file.
23029
23030         Tests for module 'unicase/u32-toupper'.
23031         * modules/unicase/u32-toupper-tests: New file.
23032         * tests/unicase/test-u32-toupper.c: New file.
23033
23034         Tests for module 'unicase/u16-toupper'.
23035         * modules/unicase/u16-toupper-tests: New file.
23036         * tests/unicase/test-u16-toupper.c: New file.
23037
23038         Tests for module 'unicase/u8-toupper'.
23039         * modules/unicase/u8-toupper-tests: New file.
23040         * tests/unicase/test-u8-toupper.c: New file.
23041
23042         New module 'unicase/u32-toupper'.
23043         * lib/unicase/u32-toupper.c: New file.
23044         * modules/unicase/u32-toupper: New file.
23045
23046         New module 'unicase/u16-toupper'.
23047         * lib/unicase/u16-toupper.c: New file.
23048         * modules/unicase/u16-toupper: New file.
23049
23050         New module 'unicase/u8-toupper'.
23051         * lib/unicase/u8-toupper.c: New file.
23052         * modules/unicase/u8-toupper: New file.
23053
23054         New module 'unicase/u32-casemap'.
23055         * lib/unicase/u32-casemap.c: New file.
23056         * modules/unicase/u32-casemap: New file.
23057
23058         New module 'unicase/u16-casemap'.
23059         * lib/unicase/u16-casemap.c: New file.
23060         * modules/unicase/u16-casemap: New file.
23061
23062         New module 'unicase/u8-casemap'.
23063         * lib/unicase/unicasemap.h: New file.
23064         * lib/unicase/u8-casemap.c: New file.
23065         * lib/unicase/u-casemap.h: New file.
23066         * modules/unicase/u8-casemap: New file.
23067
23068         New module 'unicase/special-casing'.
23069         * lib/unicase/special-casing.h: New file.
23070         * lib/unicase/special-casing.c: New file.
23071         * lib/unicase/special-casing-table.gperf: New file, generated by
23072         gen-uni-tables.c.
23073         * modules/unicase/special-casing: New file.
23074
23075         Tests for module 'unicase/locale-language'.
23076         * modules/unicase/locale-language-tests: New file.
23077         * tests/unicase/test-locale-language.sh: New file.
23078         * tests/unicase/test-locale-language.c: New file.
23079
23080         New module 'unicase/locale-language'.
23081         * lib/unicase/locale-language.c: New file.
23082         * lib/unicase/locale-languages.gperf: New file.
23083         * modules/unicase/locale-language: New file.
23084
23085         Generate more tables for case conversion and case folding.
23086         * lib/gen-uni-tables.c (SCC_*): New enum items.
23087         (struct special_casing_rule): New type.
23088         (casing_rules, num_casing_rules, allocated_casing_rules): New
23089         variables.
23090         (add_casing_rule, fill_casing_rules): New functions.
23091         (struct casefold_rule): New type.
23092         (casefolding_rules, num_casefolding_rules,
23093         allocated_casefolding_rules): New variables.
23094         (fill_casefolding_rules): New function.
23095         (unicode_casefold): New variable.
23096         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23097         sort_casing_rules, output_casing_rules): New functions.
23098         (main): Accept to more arguments: SpecialCasing.txt and
23099         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23100         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23101         Output mapping for casefolding.
23102
23103         * lib/unicase.h: Include stdbool.h, uninorm.h.
23104         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23105         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23106         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23107         arguments.
23108         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23109         resultp arguments.
23110         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23111         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23112         resultp arguments.
23113         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23114         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23115         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23116         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23117         declarations.
23118         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23119
23120 2009-03-08  Bruno Haible  <bruno@clisp.org>
23121
23122         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23123         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23124         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23125         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23126
23127 2009-03-07  Bruno Haible  <bruno@clisp.org>
23128
23129         Adjust u*_normcmp, u*_normcoll API.
23130         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23131         u16_normcoll, u32_normcoll): Change failure conventions.
23132         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23133         errno and return -1.
23134         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23135
23136 2009-03-07  Bruno Haible  <bruno@clisp.org>
23137
23138         Tests for module 'uninorm/u32-normcoll'.
23139         * modules/uninorm/u32-normcoll-tests: New file.
23140         * tests/uninorm/test-u32-normcoll.c: New file.
23141
23142         Tests for module 'uninorm/u16-normcoll'.
23143         * modules/uninorm/u16-normcoll-tests: New file.
23144         * tests/uninorm/test-u16-normcoll.c: New file.
23145
23146         Tests for module 'uninorm/u8-normcoll'.
23147         * modules/uninorm/u8-normcoll-tests: New file.
23148         * tests/uninorm/test-u8-normcoll.c: New file.
23149
23150 2009-03-07  Bruno Haible  <bruno@clisp.org>
23151
23152         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23153         tests/uninorm/test-u32-normcmp.c.
23154         * tests/uninorm/test-u32-normcmp.c: Include it.
23155         (test_nonascii): New function, extracted from main. Add some more
23156         tests.
23157         (main): Invoke test_ascii and test_nonascii.
23158         * modules/uninorm/u32-normcmp-tests (Files): Add
23159         tests/uninorm/test-u32-normcmp.h.
23160         (Depends-on): Remove uninorm/u32-normcmp.
23161
23162         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23163         tests/uninorm/test-u16-normcmp.c.
23164         * tests/uninorm/test-u16-normcmp.c: Include it.
23165         (test_nonascii): New function, extracted from main. Add some more
23166         tests.
23167         (main): Invoke test_ascii and test_nonascii.
23168         * modules/uninorm/u16-normcmp-tests (Files): Add
23169         tests/uninorm/test-u16-normcmp.h.
23170         (Depends-on): Remove uninorm/u16-normcmp.
23171
23172         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23173         tests/uninorm/test-u8-normcmp.c.
23174         * tests/uninorm/test-u8-normcmp.c: Include it.
23175         (test_nonascii): New function, extracted from main. Add some more
23176         tests.
23177         (main): Invoke test_ascii and test_nonascii.
23178         * modules/uninorm/u8-normcmp-tests (Files): Add
23179         tests/uninorm/test-u8-normcmp.h.
23180         (Depends-on): Remove uninorm/u8-normcmp.
23181
23182 2009-03-07  Bruno Haible  <bruno@clisp.org>
23183
23184         New module 'uninorm/u32-normcoll'.
23185         * lib/uninorm/u32-normcoll.c: New file.
23186         * modules/uninorm/u32-normcoll: New file.
23187
23188         New module 'uninorm/u16-normcoll'.
23189         * lib/uninorm/u16-normcoll.c: New file.
23190         * modules/uninorm/u16-normcoll: New file.
23191
23192         New module 'uninorm/u8-normcoll'.
23193         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23194         declarations.
23195         * lib/uninorm/u8-normcoll.c: New file.
23196         * lib/uninorm/u-normcoll.h: New file.
23197         * modules/uninorm/u8-normcoll: New file.
23198
23199         New module 'uninorm/u32-normxfrm'.
23200         * lib/uninorm/u32-normxfrm.c: New file.
23201         * modules/uninorm/u32-normxfrm: New file.
23202
23203         New module 'uninorm/u16-normxfrm'.
23204         * lib/uninorm/u16-normxfrm.c: New file.
23205         * modules/uninorm/u16-normxfrm: New file.
23206
23207         New module 'uninorm/u8-normxfrm'.
23208         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23209         declarations.
23210         * lib/uninorm/u8-normxfrm.c: New file.
23211         * lib/uninorm/u-normxfrm.h: New file.
23212         * modules/uninorm/u8-normxfrm: New file.
23213
23214 2009-03-07  Bruno Haible  <bruno@clisp.org>
23215
23216         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23217         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23218         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23219
23220 2009-03-07  Bruno Haible  <bruno@clisp.org>
23221
23222         New module 'memxfrm'.
23223         * lib/memxfrm.h: New file.
23224         * lib/memxfrm.c: New file.
23225         * modules/memxfrm: New file.
23226
23227 2009-03-07  Bruno Haible  <bruno@clisp.org>
23228
23229         New module 'memcmp2'.
23230         * lib/memcmp2.h: New file.
23231         * lib/memcmp2.c: New file.
23232         * modules/memcmp2: New file.
23233
23234 2009-03-07  Bruno Haible  <bruno@clisp.org>
23235
23236         Tests for module 'uninorm/decomposing-form'.
23237         * modules/uninorm/decomposing-form-tests: New file.
23238         * tests/uninorm/test-decomposing-form.c: New file.
23239
23240         New module 'uninorm/decomposing-form'.
23241         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23242         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23243         Add 'decomposing_variant' field.
23244         * lib/uninorm/decomposing-form.c: New file.
23245         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23246         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23247         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23248         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23249         * modules/uninorm/decomposing-form: New file.
23250         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23251         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23252
23253 2009-03-07  Bruno Haible  <bruno@clisp.org>
23254
23255         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23256         strings.
23257
23258 2009-03-06  Bruno Haible  <bruno@clisp.org>
23259
23260         Tests for module 'uninorm/u32-normcmp'.
23261         * tests/uninorm/test-u32-normcmp.c: New file.
23262         * modules/uninorm/u32-normcmp-tests: New file.
23263
23264         Tests for module 'uninorm/u16-normcmp'.
23265         * tests/uninorm/test-u16-normcmp.c: New file.
23266         * modules/uninorm/u16-normcmp-tests: New file.
23267
23268         Tests for module 'uninorm/u8-normcmp'.
23269         * tests/uninorm/test-u8-normcmp.c: New file.
23270         * modules/uninorm/u8-normcmp-tests: New file.
23271
23272         New module 'uninorm/u32-normcmp'.
23273         * lib/uninorm/u32-normcmp.c: New file.
23274         * modules/uninorm/u32-normcmp: New file.
23275
23276         New module 'uninorm/u16-normcmp'.
23277         * lib/uninorm/u16-normcmp.c: New file.
23278         * modules/uninorm/u16-normcmp: New file.
23279
23280         New module 'uninorm/u8-normcmp'.
23281         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23282         declarations.
23283         * lib/uninorm/u8-normcmp.c: New file.
23284         * lib/uninorm/u-normcmp.h: New file.
23285         * modules/uninorm/u8-normcmp: New file.
23286
23287 2009-03-06  Bruno Haible  <bruno@clisp.org>
23288
23289         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23290         Reported by Eric Blake.
23291
23292 2009-03-06  Eric Blake  <ebb9@byu.net>
23293             Bruno Haible  <bruno@clisp.org>
23294
23295         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23296         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23297         condition.
23298         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23299         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23300         condition.
23301         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23302
23303 2009-03-06  Eric Blake  <ebb9@byu.net>
23304
23305         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23306         to avoid compiler warnings.
23307         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23308
23309 2009-03-05  Bruno Haible  <bruno@clisp.org>
23310
23311         * tests/test-ftell.c (main): Disable test beyond end of file on
23312         FreeMiNT.
23313         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23314
23315 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23316
23317         * lib/filevercmp.c: Move hidden files up in ordering.
23318         * tests/test-filevercmp.c: Add tests for hidden files.
23319
23320 2009-03-04  Bruno Haible  <bruno@clisp.org>
23321
23322         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23323         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23324         AM_CFLAGS.
23325         Reported by Simon Josefsson.
23326
23327 2009-03-03  Bruno Haible  <bruno@clisp.org>
23328
23329         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23330         Reported by Simon Josefsson.
23331
23332         * doc/ld-version-script.texi: Update node reference.
23333
23334 2009-03-03  Bruno Haible  <bruno@clisp.org>
23335
23336         * modules/visibility (License): Change to 'unlimited'.
23337         Suggested by Simon Josefsson.
23338
23339 2009-03-03  Jim Meyering  <meyering@redhat.com>
23340
23341         unlinkdir: cannot_unlink_dir may modify process state
23342         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23343         it's neither thread-safe nor appropriate for use in a library.
23344
23345 2009-03-03  Eric Blake  <ebb9@byu.net>
23346
23347         test-closein: silence test under Darwin
23348         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23349         care if it dies from EPIPE or EBADF.
23350
23351 2009-03-03  Bruno Haible  <bruno@clisp.org>
23352
23353         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23354         earlier.
23355         * doc/visibility.texi: Fix @node and @section.
23356
23357 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23358
23359         * doc/gnulib.texi: Link to sections for ld version script and
23360         visibility.
23361         * doc/visibility.texi: Add @node and @section.
23362         * modules/ld-version-script: New module.
23363         * m4/ld-version-script.m4: New file.
23364         * doc/ld-version-script.texi: New file.
23365
23366 2009-03-02  David Lutterkort  <lutter@redhat.com>
23367
23368         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23370
23371 2009-03-02  Bruno Haible  <bruno@clisp.org>
23372
23373         * doc/visibility.texi: Mention libtool's -export-symbols option.
23374
23375 2009-03-02  Jim Meyering  <meyering@redhat.com>
23376
23377         announce-gen: new option: --no-print-checksums
23378         * build-aux/announce-gen (usage): Describe it.
23379         (print_checksums): Print a newline here, not in the [*] footnote.
23380         (main): Honor it.
23381
23382 2009-03-01  Bruno Haible  <bruno@clisp.org>
23383
23384         Use socklen_t in the native Windows replacements prototypes.
23385         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23386         instead of 'int'.
23387         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23388         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23389         * modules/getsockopt (Depends-on): Add socklen.
23390         * modules/setsockopt (Depends-on): Add socklen.
23391
23392 2009-03-01  Bruno Haible  <bruno@clisp.org>
23393
23394         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23395         least 4.2.
23396
23397 2009-03-01  Eric Blake  <ebb9@byu.net>
23398             Bruno Haible  <bruno@clisp.org>
23399
23400         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23401         error messages.
23402         * lib/wait-process.c (wait_subprocess): Omit error message about
23403         deadly signal sent to the child of termsigp != NULL.
23404
23405 2009-03-01  Eric Blake  <ebb9@byu.net>
23406
23407         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23408
23409 2009-03-01  Bruno Haible  <bruno@clisp.org>
23410
23411         Avoid a gcc warning.
23412         * tests/test-sched.c (b): Make global.
23413         Reported by Eric Blake.
23414
23415 2009-01-19  Martin Lambers  <marlam@marlam.de>
23416
23417         Provide POSIX semantics for socket timeout options on W32.
23418         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23419         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23420         * modules/setsockopt: Depend on sys_time module for struct timeval.
23421         * modules/getsockopt: Depend on sys_time module for struct timeval.
23422
23423 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23424
23425         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23426         __USE_GNU, for consistency with netdb.in.h.
23427         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23428
23429 2009-03-01  Bruno Haible  <bruno@clisp.org>
23430
23431         More support for FreeMiNT.
23432         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23433         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23434
23435 2009-03-01  Bruno Haible  <bruno@clisp.org>
23436
23437         More support for FreeMiNT.
23438         * lib/fpurge.c (fpurge): Correct last commit.
23439         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23440
23441 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23442
23443         Fix unportable awk script in vc-list-files.
23444         * build-aux/vc-list-files: In the replacement awk script, use
23445         substr with a second argument of 1, not zero.
23446         Report by Simon Josefsson.
23447
23448 2009-02-28  Bruno Haible  <bruno@clisp.org>
23449
23450         More support for FreeMiNT.
23451         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23452         to FreeMiNT today.
23453         * lib/fwriting.c (fwriting): Likewise.
23454         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23455
23456 2009-02-28  Bruno Haible  <bruno@clisp.org>
23457
23458         * tests/test-freadseek.c (main): Disable test beyond end of file on
23459         FreeMiNT.
23460         * tests/test-ftello.c (main): Likewise.
23461         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23462
23463 2009-02-28  Bruno Haible  <bruno@clisp.org>
23464
23465         Add tentative support for FreeMiNT.
23466         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23467         * lib/fpurge.c (fpurge): Likewise.
23468         * lib/freadable.c (freadable): Likewise.
23469         * lib/freading.c (freading): Likewise.
23470         * lib/freadptr.c (freadptr): Likewise.
23471         * lib/freadseek.c (freadptrinc): Likewise.
23472         * lib/fseeko.c (rpl_fseeko): Likewise.
23473         * lib/fseterr.c (fseterr): Likewise.
23474         * lib/fwritable.c (fwritable): Likewise.
23475         * lib/fwriting.c (fwriting): Likewise.
23476         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23477         Hourihane.
23478         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23479
23480 2009-02-28  Bruno Haible  <bruno@clisp.org>
23481
23482         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23483         SIGCHLD.
23484         Reported by Jim Meyering.
23485
23486 2009-02-28  Bruno Haible  <bruno@clisp.org>
23487
23488         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23489         Mention the results of these tests on various platforms.
23490         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23491         order.
23492         * doc/posix-functions/printf.texi: Likewise.
23493         * doc/posix-functions/snprintf.texi: Likewise.
23494         * doc/posix-functions/sprintf.texi: Likewise.
23495         * doc/posix-functions/vfprintf.texi: Likewise.
23496         * doc/posix-functions/vprintf.texi: Likewise.
23497         * doc/posix-functions/vsnprintf.texi: Likewise.
23498         * doc/posix-functions/vsprintf.texi: Likewise.
23499         * doc/glibc-functions/obstack_printf.texi: Likewise.
23500         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23501
23502 2009-02-28  Bruno Haible  <bruno@clisp.org>
23503
23504         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23505         Reported by Loïc Minier <lool@dooz.org>.
23506
23507 2009-02-27  Bruno Haible  <bruno@clisp.org>
23508
23509         * gnulib-tool (func_import): Make the sed expression used to create the
23510         sed script for updating the .gitignore file POSIX compliant.
23511         Reported by Eric Blake.
23512
23513 2009-02-27  Bruno Haible  <bruno@clisp.org>
23514
23515         * gnulib-tool (sed): Don't alias as "sed --posix".
23516         Reported by Eric Blake.
23517
23518 2009-02-27  Bruno Haible  <bruno@clisp.org>
23519
23520         Avoid test link errors.
23521         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23522         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23523         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23524         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23526
23527 2009-02-27  Bruno Haible  <bruno@clisp.org>
23528
23529         Avoid spurious "(cached)" in configure output.
23530         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23531         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23532         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23533         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23534         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23535         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23536         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23537         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23538         Reported by Eric Blake.
23539
23540 2009-02-27  Eric Blake  <ebb9@byu.net>
23541
23542         printf: fix regression in previous patch
23543         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23544
23545 2009-02-27  Bruno Haible  <bruno@clisp.org>
23546
23547         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23548         value.
23549         * lib/stdint.in.h: Likewise.
23550         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23551
23552 2009-02-27  Eric Blake  <ebb9@byu.net>
23553
23554         doc: mention more functions added in cygwin 1.7.0
23555         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23556         addition.
23557         * doc/posix-functions/open_wmemstream.texi: Likewise.
23558         * doc/posix-functions/wcsnlen.texi: Likewise.
23559         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23560         * doc/posix-functions/wcstod.texi: Likewise.
23561         * doc/posix-functions/wcstof.texi: Likewise.
23562         * doc/posix-functions/wcstoimax.texi: Likewise.
23563         * doc/posix-functions/wcstok.texi: Likewise.
23564         * doc/posix-functions/wcstoumax.texi: Likewise.
23565
23566         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23567         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23568         * doc/posix-functions/fprintf.texi: Update.
23569         * doc/posix-functions/printf.texi: Update.
23570         * doc/posix-functions/snprintf.texi: Update.
23571         * doc/posix-functions/sprintf.texi: Update.
23572         * doc/posix-functions/vfprintf.texi: Update.
23573         * doc/posix-functions/vprintf.texi: Update.
23574         * doc/posix-functions/vsnprintf.texi: Update.
23575         * doc/posix-functions/vsprintf.texi: Update.
23576         * doc/glibc-functions/obstack_printf.texi: Update.
23577         * doc/glibc-functions/obstack_vprintf.texi: Update.
23578
23579 2009-02-26  Eric Blake  <ebb9@byu.net>
23580
23581         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23582         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23583         compilation bug by using runtime conversion.
23584         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23585         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23586         * modules/ceill-tests (Files): Use nan.h.
23587         * modules/floorl-tests (Files): Likewise.
23588         * modules/frexpl-tests (Files): Likewise.
23589         * modules/isnanl-tests (Files): Likewise.
23590         * modules/ldexpl-tests (Files): Likewise.
23591         * modules/roundl-tests (Files): Likewise.
23592         * modules/truncl-tests (Files): Likewise.
23593         * tests/test-ceill.c (main): Use a working NaN.
23594         * tests/test-floorl.c (main): Likewise.
23595         * tests/test-frexpl.c (main): Likewise.
23596         * tests/test-isnan.c (test_long_double): Likewise.
23597         * tests/test-isnanl.h (main): Likewise.
23598         * tests/test-ldexpl.h (main): Likewise.
23599         * tests/test-roundl.h (main): Likewise.
23600         * tests/test-truncl.h (main): Likewise.
23601         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23602
23603 2009-02-26  Eric Blake  <ebb9@byu.net>
23604             Bruno Haible  <bruno@clisp.org>
23605
23606         Work around a *printf bug with %ls on Solaris.
23607         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23608         precision is specified, sprintf stops converting the wide string
23609         argument when the number of bytes that have been produced by this
23610         conversion equals or exceeds the precision.
23611         * doc/posix-functions/fprintf.texi: Update.
23612         * doc/posix-functions/printf.texi: Update.
23613         * doc/posix-functions/snprintf.texi: Update.
23614         * doc/posix-functions/sprintf.texi: Update.
23615         * doc/posix-functions/vfprintf.texi: Update.
23616         * doc/posix-functions/vprintf.texi: Update.
23617         * doc/posix-functions/vsnprintf.texi: Update.
23618         * doc/posix-functions/vsprintf.texi: Update.
23619         * doc/glibc-functions/obstack_printf.texi: Update.
23620         * doc/glibc-functions/obstack_vprintf.texi: Update.
23621
23622 2009-02-26  Eric Blake  <ebb9@byu.net>
23623
23624         stdlib: favor compiler check of random.h
23625         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23626         to avoid an ObjC random.h installed by Swarm.
23627
23628 2009-02-26  Bruno Haible  <bruno@clisp.org>
23629
23630         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23631         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23632         Reported by Gary V. Vaughan <gary@gnu.org>.
23633
23634 2009-02-26  Bruno Haible  <bruno@clisp.org>
23635
23636         Fix *printf behaviour regarding the %ls directive.
23637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23638         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23639         NEED_PRINTF_DIRECTIVE_LS.
23640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23641         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23642         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23643         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23644         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23645         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23646         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23647         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23648         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23650         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23651         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23652         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23655         * doc/posix-functions/fprintf.texi: Update.
23656         * doc/posix-functions/printf.texi: Update.
23657         * doc/posix-functions/snprintf.texi: Update.
23658         * doc/posix-functions/sprintf.texi: Update.
23659         * doc/posix-functions/vfprintf.texi: Update.
23660         * doc/posix-functions/vprintf.texi: Update.
23661         * doc/posix-functions/vsnprintf.texi: Update.
23662         * doc/posix-functions/vsprintf.texi: Update.
23663         * doc/glibc-functions/obstack_printf.texi: Update.
23664         * doc/glibc-functions/obstack_vprintf.texi: Update.
23665         Reported by Eric Blake.
23666
23667 2009-02-25  Bruno Haible  <bruno@clisp.org>
23668
23669         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23670         with known value.
23671         Reported by Gary V. Vaughan <gary@gnu.org>.
23672
23673 2009-02-25  Bruno Haible  <bruno@clisp.org>
23674
23675         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23676         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23677         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23678         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23679         Reported by Gary V. Vaughan <gary@gnu.org>.
23680
23681 2009-02-25  Bruno Haible  <bruno@clisp.org>
23682
23683         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23684         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23685         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23686         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23687         Reported by Gary V. Vaughan <gary@gnu.org>.
23688
23689 2009-02-25  Eric Blake  <ebb9@byu.net>
23690
23691         tests: skip fseek/ftell tests if ungetc is broken
23692         * m4/ungetc.m4: New file.
23693         * modules/fseek-tests: Split test, so ungetc dependency is
23694         separate from rest of test.
23695         * modules/fseeko-tests: Likewise.
23696         * modules/ftell-tests: Likewise.
23697         * modules/ftello-tests: Likewise.
23698         * tests/test-fseek.c (main): Isolate ungetc dependency.
23699         * tests/test-fseeko.c (main): Likewise.
23700         * tests/test-ftell.c (main): Likewise.
23701         * tests/test-ftello.c (main): Likewise.
23702         * tests/test-fseek2.sh: New file.
23703         * tests/test-fseeko2.sh: Likewise.
23704         * tests/test-ftell2.sh: Likewise.
23705         * tests/test-ftello2.sh: Likewise.
23706
23707 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23708
23709         test-getaddrinfo: fix usage of skip return code 77
23710         * tests/test-gettaddrinfo.c: Return skip code 77 only
23711         for first occurance of skip (4x77 is not 77)
23712
23713 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23714
23715         strtod: avoid C99 decl-after-statement
23716         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23717
23718 2009-02-24  Eric Blake  <ebb9@byu.net>
23719
23720         strtod: detect HP-UX 11.31 bug
23721         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23722         Reported by Gary V. Vaughan.
23723
23724 2009-02-23  Bruno Haible  <bruno@clisp.org>
23725
23726         Fix invalid read past end of memory block.
23727         * lib/vasnprintf.c (DCHAR_SET): Define.
23728         (local_wcslen): Define only when needed.
23729         (local_strnlen, local_wcsnlen): New functions.
23730         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23731         directives that involve a conversion ourselves.
23732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23733         wcsnlen, mbrtowc, wcrtomb.
23734         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23735         * tests/test-vasprintf-posix.c (test_function): Likewise.
23736         * tests/test-snprintf-posix.h (test_function): Likewise.
23737         * tests/test-sprintf-posix.h (test_function): Likewise.
23738         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23739
23740 2009-02-22  Bruno Haible  <bruno@clisp.org>
23741
23742         Implement new clarified decomposition of Hangul syllables.
23743         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23744         of type LTV, return only a pairwise decomposition.
23745         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23746         Likewise.
23747         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23748         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23749         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23750
23751 2009-02-22  Bruno Haible  <bruno@clisp.org>
23752
23753         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23754         zero-length results and shrink excess allocated memory.
23755         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23756         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23757         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23758         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23759         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23760         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23761         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23762         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23763         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23764         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23765         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23766         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23767
23768 2009-02-21  Bruno Haible  <bruno@clisp.org>
23769
23770         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23771         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23772         spaces after a period. Put a space between a macro name and its
23773         argument list. Trivial rewordings.
23774         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23775         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23776         (main): Return 0 explicitly.
23777
23778 2009-02-21  Bruno Haible  <bruno@clisp.org>
23779
23780         Tests for module 'uninorm/filter'.
23781         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23782         * modules/uninorm/filter-tests: New file.
23783
23784         New module 'uninorm/filter'.
23785         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23786         uninorm_filter_flush, uninorm_filter_free): New declarations.
23787         * lib/uninorm/uninorm-filter.c: New file.
23788         * modules/uninorm/filter: New file.
23789
23790 2009-02-21  Bruno Haible  <bruno@clisp.org>
23791
23792         Tests for module 'uninorm/nfkc'.
23793         * tests/uninorm/test-nfkc.c: New file.
23794         * tests/uninorm/test-u8-nfkc.c: New file.
23795         * tests/uninorm/test-u16-nfkc.c: New file.
23796         * tests/uninorm/test-u32-nfkc.c: New file.
23797         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23798         * tests/uninorm/test-u32-nfkc-big.c: New file.
23799         * modules/uninorm/nfkc-tests: New file.
23800
23801         New module 'uninorm/nfkc'.
23802         * lib/uninorm/nfkc.c: New file.
23803         * modules/uninorm/nfkc: New file.
23804
23805         Tests for module 'uninorm/nfkd'.
23806         * tests/uninorm/test-nfkd.c: New file.
23807         * tests/uninorm/test-u8-nfkd.c: New file.
23808         * tests/uninorm/test-u16-nfkd.c: New file.
23809         * tests/uninorm/test-u32-nfkd.c: New file.
23810         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23811         * tests/uninorm/test-u32-nfkd-big.c: New file.
23812         * modules/uninorm/nfkd-tests: New file.
23813
23814         New module 'uninorm/nfkd'.
23815         * lib/uninorm/nfkd.c: New file.
23816         * modules/uninorm/nfkd: New file.
23817
23818         Tests for module 'uninorm/nfc'.
23819         * tests/uninorm/test-nfc.c: New file.
23820         * tests/uninorm/test-u8-nfc.c: New file.
23821         * tests/uninorm/test-u16-nfc.c: New file.
23822         * tests/uninorm/test-u32-nfc.c: New file.
23823         * tests/uninorm/test-u32-nfc-big.sh: New file.
23824         * tests/uninorm/test-u32-nfc-big.c: New file.
23825         * modules/uninorm/nfc-tests: New file.
23826
23827         New module 'uninorm/nfc'.
23828         * lib/uninorm/nfc.c: New file.
23829         * modules/uninorm/nfc: New file.
23830
23831         Tests for module 'uninorm/nfd'.
23832         * tests/uninorm/test-nfd.c: New file.
23833         * tests/uninorm/test-u8-nfd.c: New file.
23834         * tests/uninorm/test-u16-nfd.c: New file.
23835         * tests/uninorm/test-u32-nfd.c: New file.
23836         * tests/uninorm/test-u32-nfd-big.sh: New file.
23837         * tests/uninorm/test-u32-nfd-big.c: New file.
23838         * tests/uninorm/test-u32-normalize-big.h: New file.
23839         * tests/uninorm/test-u32-normalize-big.c: New file.
23840         * tests/uninorm/NormalizationTest.txt: New file, created from
23841         Unicode 5.1.0 NormalizationTest.txt.
23842         * modules/uninorm/nfd-tests: New file.
23843
23844         New module 'uninorm/nfd'.
23845         * lib/uninorm/nfd.c: New file.
23846         * modules/uninorm/nfd: New file.
23847
23848         New module 'uninorm/u32-normalize'.
23849         * lib/uninorm/u32-normalize.c: New file.
23850         * modules/uninorm/u32-normalize: New file.
23851
23852         New module 'uninorm/u16-normalize'.
23853         * lib/uninorm/u16-normalize.c: New file.
23854         * modules/uninorm/u16-normalize: New file.
23855
23856         New module 'uninorm/u8-normalize'.
23857         * lib/uninorm/u8-normalize.c: New file.
23858         * lib/uninorm/normalize-internal.h: New file.
23859         * lib/uninorm/u-normalize-internal.h: New file.
23860         * modules/uninorm/u8-normalize: New file.
23861
23862         New module 'uninorm/decompose-internal'.
23863         * lib/uninorm/decompose-internal.c: New file.
23864         * modules/uninorm/decompose-internal: New file.
23865
23866         Tests for module 'uninorm/composition'.
23867         * tests/uninorm/test-composition.c: New file.
23868         * modules/uninorm/composition-tests: New file.
23869
23870         New module 'uninorm/composition'.
23871         * lib/uninorm/composition.c: New file.
23872         * lib/uninorm/composition-table.gperf: New file, generated by
23873         gen-uni-tables.
23874         * modules/uninorm/composition: New file.
23875
23876         Tests for module 'uninorm/compat-decomposition'.
23877         * tests/uninorm/test-compat-decomposition.c: New file.
23878         * modules/uninorm/compat-decomposition-tests: New file.
23879
23880         New module 'uninorm/compat-decomposition'.
23881         * lib/uninorm/decompose-internal.h: New file.
23882         * lib/uninorm/compat-decomposition.c: New file.
23883         * modules/uninorm/compat-decomposition: New file.
23884
23885         Tests for module 'uninorm/canonical-decomposition'.
23886         * tests/uninorm/test-canonical-decomposition.c: New file.
23887         * modules/uninorm/canonical-decomposition-tests: New file.
23888
23889         New module 'uninorm/canonical-decomposition'.
23890         * lib/uninorm/canonical-decomposition.c: New file.
23891         * modules/uninorm/canonical-decomposition: New file.
23892
23893         Tests for module 'uninorm/decomposition'.
23894         * tests/uninorm/test-decomposition.c: New file.
23895         * modules/uninorm/decomposition-tests: New file.
23896
23897         New module 'uninorm/decomposition'.
23898         * lib/uninorm/decomposition.c: New file.
23899         * modules/uninorm/decomposition: New file.
23900
23901         New module 'uninorm/decomposition-table'.
23902         * lib/uninorm/decomposition-table.h: New file.
23903         * lib/uninorm/decomposition-table.c: New file.
23904         * lib/uninorm/decomposition-table1.h: New file, generated by
23905         gen-uni-tables.
23906         * lib/uninorm/decomposition-table2.h: New file, generated by
23907         gen-uni-tables.
23908         * modules/uninorm/decomposition-table: New file.
23909
23910         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23911         (UC_DECOMP_*): New enumeration items.
23912         (get_decomposition): New function.
23913         (struct decomp_table): New type.
23914         (output_decomposition, output_decomposition_tables): New functions.
23915         (unicode_composition_exclusions): New variable.
23916         (fill_composition_exclusions, debug_output_composition_tables): New
23917         functions.
23918         (main): Accept one more argument. Invoke fill_composition_exclusions.
23919         Output decomposition and composition tables.
23920
23921         New module 'uninorm/base'.
23922         * lib/uninorm.h: New file.
23923         * lib/unictype.h: Update comment.
23924         * modules/uninorm/base: New file.
23925
23926 2009-02-21  David Lutterkort  <lutter@redhat.com>
23927
23928         Tests for module 'safe-alloc'.
23929         * tests/test-safe-alloc.c: New file.
23930         * modules/safe-alloc-tests: New file.
23931
23932         New module 'safe-alloc'.
23933         * lib/safe-alloc.h: New file.
23934         * lib/safe-alloc.c: New file.
23935         * m4/safe-alloc.m4: New file.
23936         * modules/safe-alloc: New file.
23937         * doc/safe-alloc.texi: New file.
23938         * doc/gnulib.texi: Include it.
23939         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23940         safe-alloc.
23941
23942 2009-02-18  Bruno Haible  <bruno@clisp.org>
23943
23944         Fix link error on non-glibc systems.
23945         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23946         variable.
23947         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23948
23949 2009-02-18  Jim Meyering  <meyering@redhat.com>
23950
23951         fts: avoid used-uninitialized error due to recent change
23952         * lib/fts.c (fts_read): Guard uses of the new member,
23953         parent->fts_n_dirs_remaining, since it's not relevant for
23954         the parent of a directory specified on the command-line.
23955
23956 2009-02-17  James Youngman  <jay@gnu.org>
23957             Bruno Haible  <bruno@clisp.org>
23958
23959         * m4/include_next.m4: Reformulate comment.
23960
23961 2009-02-16  Jim Meyering  <meyering@redhat.com>
23962
23963         fts: add #if guards so that the fts_lgpl module still builds
23964         * lib/fts.c: Guard just-added hash-table-using parts with
23965         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23966         Reported by Simon Josefsson.
23967
23968 2009-02-15  Bruno Haible  <bruno@clisp.org>
23969
23970         * modules/array-mergesort-tests: New file.
23971         * tests/test-array-mergesort.c: New file.
23972
23973         New module 'array-mergesort'.
23974         * modules/array-mergesort: New file.
23975         * lib/array-mergesort.h: New file.
23976
23977 2009-02-15  Bruno Haible  <bruno@clisp.org>
23978
23979         Fix 2009-02-07 commit.
23980         * lib/gen-uni-tables.c (output_predicate, output_category,
23981         output_combclass, output_bidi_category, output_decimal_digit,
23982         output_digit, output_numeric, output_mirror, output_scripts,
23983         output_ident_category, output_simple_mapping): Fix format directives.
23984         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23985
23986 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23987
23988         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23989         fixes are available from IBM.
23990
23991 2009-02-13  Jim Meyering  <meyering@redhat.com>
23992
23993         fts: arrange not to stat non-directories in more cases
23994         This makes GNU find (when it doesn't need to stat each file)
23995         *much* more efficient at traversing reiserfs file systems.
23996         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23997         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23998         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23999         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
24000         (leaf_optimization_applies): New function.
24001         (LCO_hash, LCO_compare): New helper functions.
24002         (link_count_optimize_ok): New function.
24003         (fts_stat): Initialize new member (if dir).
24004         (fts_read): Decrement parent's fts_n_dirs_remaining count if
24005         we've just stat'ed a directory.  Skip the stat call when possible.
24006         ---
24007         Note this AFS-related exchange:
24008         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
24009         and note find's pioctl call in find/fstype.c.
24010         But that is necessary only if you want to enable the
24011         optimization for AFS, and for now, I don't.
24012
24013         fts: move a function definition "up" (no semantic change)
24014         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
24015         "up" to precede upcoming use of a related function.
24016
24017 2009-02-11  Jim Meyering  <meyering@redhat.com>
24018
24019         fts: correct internal computation of nlinks (optimization-related)
24020         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
24021         whether the current entry is a directory, so don't test it.
24022
24023 2009-02-10  Bruno Haible  <bruno@clisp.org>
24024
24025         Tests for module 'uniwbrk/ulc-wordbreaks'.
24026         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
24027         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
24028         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
24029
24030         Tests for module 'uniwbrk/u32-wordbreaks'.
24031         * modules/uniwbrk/u32-wordbreaks-tests: New file.
24032         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
24033
24034         Tests for module 'uniwbrk/u16-wordbreaks'.
24035         * modules/uniwbrk/u16-wordbreaks-tests: New file.
24036         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
24037
24038         Tests for module 'uniwbrk/u8-wordbreaks'.
24039         * modules/uniwbrk/u8-wordbreaks-tests: New file.
24040         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
24041
24042 2009-02-10  Bruno Haible  <bruno@clisp.org>
24043
24044         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
24045         property.
24046         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
24047         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
24048         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
24049
24050 2009-02-10  Simon Josefsson  <simon@josefsson.org>
24051
24052         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
24053         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
24054
24055 2009-02-10  Bruno Haible  <bruno@clisp.org>
24056
24057         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
24058         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
24059         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
24060         * lib/unilbrk/u8-possible-linebreaks.c: Update.
24061         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
24062         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
24063
24064 2009-02-09  Simon Josefsson  <simon@josefsson.org>
24065
24066         * lib/sockets.h (gl_fd_to_handle): New function.
24067
24068         * tests/test-sockets.c: Call gl_fd_to_handle.
24069
24070 2009-02-09  Bruno Haible  <bruno@clisp.org>
24071
24072         * doc/havelib.texi: Document the conventions on bi-arch systems.
24073
24074 2009-02-08  Bruno Haible  <bruno@clisp.org>
24075
24076         Document the AC_LIB_LINKFLAGS macro.
24077         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24078         * doc/gnulib.texi: Include it.
24079
24080 2009-02-08  Bruno Haible  <bruno@clisp.org>
24081
24082         Fix wrong order of sections, compared to TOC.
24083         * doc/gnulib.texi: Include relocatable-maint.texi after the
24084         "Regular expressions" node, not before.
24085
24086 2009-02-08  Bruno Haible  <bruno@clisp.org>
24087
24088         Tests for module 'unicase/totitle'.
24089         * modules/unicase/totitle-tests: New file.
24090
24091         Tests for module 'unicase/tolower'.
24092         * modules/unicase/tolower-tests: New file.
24093
24094         Tests for module 'unicase/toupper'.
24095         * modules/unicase/toupper-tests: New file.
24096         * tests/unicase/test-mapping-part1.h: New file.
24097         * tests/unicase/test-mapping-part2.h: New file.
24098
24099         New module 'unicase/totitle'.
24100         * modules/unicase/totitle: New file.
24101         * lib/unicase/totitle.c: New file.
24102
24103         New module 'unicase/tolower'.
24104         * modules/unicase/tolower: New file.
24105         * lib/unicase/tolower.c: New file.
24106
24107         New module 'unicase/toupper'.
24108         * modules/unicase/toupper: New file.
24109         * lib/unicase/toupper.c: New file.
24110         * lib/unicase/simple-mapping.h: New file.
24111
24112         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24113         (mapping_table): New structure.
24114         (output_simple_mapping): New function.
24115         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24116         * modules/gen-uni-tables (Description): Update.
24117         * lib/unicase/toupper.h: New file, automatically generated by
24118         gen-uni-tables.
24119         * lib/unicase/tolower.h: New file, automatically generated by
24120         gen-uni-tables.
24121         * lib/unicase/totitle.h: New file, automatically generated by
24122         gen-uni-tables.
24123         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24124         gen-uni-tables.
24125         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24126         gen-uni-tables.
24127         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24128         gen-uni-tables.
24129
24130         New module 'unicase/base'.
24131         * modules/unicase/base: New file.
24132         * lib/unicase.h: New file.
24133
24134 2009-02-08  Bruno Haible  <bruno@clisp.org>
24135
24136         New module 'uniwbrk/ulc-wordbreaks'.
24137         * modules/uniwbrk/ulc-wordbreaks: New file.
24138         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24139
24140         New module 'uniwbrk/u32-wordbreaks'.
24141         * modules/uniwbrk/u32-wordbreaks: New file.
24142         * lib/uniwbrk/u32-wordbreaks.c: New file.
24143
24144         New module 'uniwbrk/u16-wordbreaks'.
24145         * modules/uniwbrk/u16-wordbreaks: New file.
24146         * lib/uniwbrk/u16-wordbreaks.c: New file.
24147
24148         New module 'uniwbrk/u8-wordbreaks'.
24149         * modules/uniwbrk/u8-wordbreaks: New file.
24150         * lib/uniwbrk/u8-wordbreaks.c: New file.
24151         * lib/uniwbrk/u-wordbreaks.h: New file.
24152
24153         New module 'uniwbrk/table'.
24154         * modules/uniwbrk/table: New file.
24155         * lib/uniwbrk/wbrktable.h: New file.
24156         * lib/uniwbrk/wbrktable.c: New file.
24157
24158         New module 'uniwbrk/wordbreak-property'.
24159         * modules/uniwbrk/wordbreak-property: New file.
24160         * lib/uniwbrk/wordbreak-property.c: New file.
24161
24162         * lib/gen-uni-tables.c (WBP_*): New enum items.
24163         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24164         (unicode_org_wbp): New variable.
24165         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24166         New functions.
24167         (wbp_table): New structure.
24168         (output_wbp, output_wbrk_tables): New functions.
24169         (main): Accept additional argument. Invoke fill_org_wbp,
24170         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24171         output_wbrk_tables.
24172         * modules/gen-uni-tables (Description): Update.
24173         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24174         gen-uni-tables.
24175
24176         New module 'uniwbrk/base'.
24177         * modules/uniwbrk/base: New file.
24178         * lib/uniwbrk.h: New file.
24179
24180 2009-02-08  Bruno Haible  <bruno@clisp.org>
24181
24182         Update to Unicode 5.1.0.
24183         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24184         U+2185..U+2188.
24185         (is_property_default_ignorable_code_point): Don't include characters
24186         of category Cc or Cs and not-a-characters.
24187         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24188         U+0D79, U+109E, U+109F, U+A60C.
24189         * lib/unictype/bidi_of.h: Regenerated.
24190         * lib/unictype/blocks.h: Regenerated.
24191         * lib/unictype/categ_C.h: Regenerated.
24192         * lib/unictype/categ_Cf.h: Regenerated.
24193         * lib/unictype/categ_Cn.h: Regenerated.
24194         * lib/unictype/categ_L.h: Regenerated.
24195         * lib/unictype/categ_Ll.h: Regenerated.
24196         * lib/unictype/categ_Lm.h: Regenerated.
24197         * lib/unictype/categ_Lo.h: Regenerated.
24198         * lib/unictype/categ_Lu.h: Regenerated.
24199         * lib/unictype/categ_M.h: Regenerated.
24200         * lib/unictype/categ_Mc.h: Regenerated.
24201         * lib/unictype/categ_Me.h: Regenerated.
24202         * lib/unictype/categ_Mn.h: Regenerated.
24203         * lib/unictype/categ_N.h: Regenerated.
24204         * lib/unictype/categ_Nd.h: Regenerated.
24205         * lib/unictype/categ_Nl.h: Regenerated.
24206         * lib/unictype/categ_No.h: Regenerated.
24207         * lib/unictype/categ_P.h: Regenerated.
24208         * lib/unictype/categ_Pd.h: Regenerated.
24209         * lib/unictype/categ_Pe.h: Regenerated.
24210         * lib/unictype/categ_Pf.h: Regenerated.
24211         * lib/unictype/categ_Pi.h: Regenerated.
24212         * lib/unictype/categ_Po.h: Regenerated.
24213         * lib/unictype/categ_Ps.h: Regenerated.
24214         * lib/unictype/categ_S.h: Regenerated.
24215         * lib/unictype/categ_Sk.h: Regenerated.
24216         * lib/unictype/categ_Sm.h: Regenerated.
24217         * lib/unictype/categ_So.h: Regenerated.
24218         * lib/unictype/categ_of.h: Regenerated.
24219         * lib/unictype/combining.h: Regenerated.
24220         * lib/unictype/ctype_alnum.h: Regenerated.
24221         * lib/unictype/ctype_alpha.h: Regenerated.
24222         * lib/unictype/ctype_graph.h: Regenerated.
24223         * lib/unictype/ctype_lower.h: Regenerated.
24224         * lib/unictype/ctype_print.h: Regenerated.
24225         * lib/unictype/ctype_punct.h: Regenerated.
24226         * lib/unictype/ctype_upper.h: Regenerated.
24227         * lib/unictype/decdigit.h: Regenerated.
24228         * lib/unictype/digit.h: Regenerated.
24229         * lib/unictype/mirror.h: Regenerated.
24230         * lib/unictype/numeric.h: Regenerated.
24231         * lib/unictype/pr_alphabetic.h: Regenerated.
24232         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24233         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24234         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24235         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24236         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24237         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24238         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24239         * lib/unictype/pr_combining.h: Regenerated.
24240         * lib/unictype/pr_dash.h: Regenerated.
24241         * lib/unictype/pr_decimal_digit.h: Regenerated.
24242         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24243         * lib/unictype/pr_deprecated.h: Regenerated.
24244         * lib/unictype/pr_diacritic.h: Regenerated.
24245         * lib/unictype/pr_extender.h: Regenerated.
24246         * lib/unictype/pr_format_control.h: Regenerated.
24247         * lib/unictype/pr_grapheme_base.h: Regenerated.
24248         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24249         * lib/unictype/pr_grapheme_link.h: Regenerated.
24250         * lib/unictype/pr_id_continue.h: Regenerated.
24251         * lib/unictype/pr_id_start.h: Regenerated.
24252         * lib/unictype/pr_ideographic.h: Regenerated.
24253         * lib/unictype/pr_ignorable_control.h: Regenerated.
24254         * lib/unictype/pr_lowercase.h: Regenerated.
24255         * lib/unictype/pr_math.h: Regenerated.
24256         * lib/unictype/pr_numeric.h: Regenerated.
24257         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24258         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24259         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24260         * lib/unictype/pr_other_id_continue.h: Regenerated.
24261         * lib/unictype/pr_other_lowercase.h: Regenerated.
24262         * lib/unictype/pr_other_math.h: Regenerated.
24263         * lib/unictype/pr_punctuation.h: Regenerated.
24264         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24265         * lib/unictype/pr_soft_dotted.h: Regenerated.
24266         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24267         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24268         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24269         * lib/unictype/pr_uppercase.h: Regenerated.
24270         * lib/unictype/pr_xid_continue.h: Regenerated.
24271         * lib/unictype/pr_xid_start.h: Regenerated.
24272         * lib/unictype/pr_zero_width.h: Regenerated.
24273         * lib/unictype/scripts.h: Regenerated.
24274         * lib/unictype/scripts_byname.gperf: Regenerated.
24275         * lib/unictype/sy_java_ident.h: Regenerated.
24276         * lib/unilbrk/lbrkprop1.h: Regenerated.
24277         * lib/unilbrk/lbrkprop2.h: Regenerated.
24278         * tests/unictype/test-categ_C.c: Regenerated.
24279         * tests/unictype/test-categ_Cf.c: Regenerated.
24280         * tests/unictype/test-categ_Cn.c: Regenerated.
24281         * tests/unictype/test-categ_L.c: Regenerated.
24282         * tests/unictype/test-categ_Ll.c: Regenerated.
24283         * tests/unictype/test-categ_Lm.c: Regenerated.
24284         * tests/unictype/test-categ_Lo.c: Regenerated.
24285         * tests/unictype/test-categ_Lu.c: Regenerated.
24286         * tests/unictype/test-categ_M.c: Regenerated.
24287         * tests/unictype/test-categ_Mc.c: Regenerated.
24288         * tests/unictype/test-categ_Me.c: Regenerated.
24289         * tests/unictype/test-categ_Mn.c: Regenerated.
24290         * tests/unictype/test-categ_N.c: Regenerated.
24291         * tests/unictype/test-categ_Nd.c: Regenerated.
24292         * tests/unictype/test-categ_Nl.c: Regenerated.
24293         * tests/unictype/test-categ_No.c: Regenerated.
24294         * tests/unictype/test-categ_P.c: Regenerated.
24295         * tests/unictype/test-categ_Pd.c: Regenerated.
24296         * tests/unictype/test-categ_Pe.c: Regenerated.
24297         * tests/unictype/test-categ_Pf.c: Regenerated.
24298         * tests/unictype/test-categ_Pi.c: Regenerated.
24299         * tests/unictype/test-categ_Po.c: Regenerated.
24300         * tests/unictype/test-categ_Ps.c: Regenerated.
24301         * tests/unictype/test-categ_S.c: Regenerated.
24302         * tests/unictype/test-categ_Sk.c: Regenerated.
24303         * tests/unictype/test-categ_Sm.c: Regenerated.
24304         * tests/unictype/test-categ_So.c: Regenerated.
24305         * tests/unictype/test-ctype_alnum.c: Regenerated.
24306         * tests/unictype/test-ctype_alpha.c: Regenerated.
24307         * tests/unictype/test-ctype_graph.c: Regenerated.
24308         * tests/unictype/test-ctype_lower.c: Regenerated.
24309         * tests/unictype/test-ctype_print.c: Regenerated.
24310         * tests/unictype/test-ctype_punct.c: Regenerated.
24311         * tests/unictype/test-ctype_upper.c: Regenerated.
24312         * tests/unictype/test-decdigit.h: Regenerated.
24313         * tests/unictype/test-digit.h: Regenerated.
24314         * tests/unictype/test-numeric.h: Regenerated.
24315         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24316         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24317         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24318         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24319         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24320         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24321         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24322         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24323         * tests/unictype/test-pr_combining.c: Regenerated.
24324         * tests/unictype/test-pr_dash.c: Regenerated.
24325         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24326         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24327         * tests/unictype/test-pr_deprecated.c: Regenerated.
24328         * tests/unictype/test-pr_diacritic.c: Regenerated.
24329         * tests/unictype/test-pr_extender.c: Regenerated.
24330         * tests/unictype/test-pr_format_control.c: Regenerated.
24331         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24332         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24333         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24334         * tests/unictype/test-pr_id_continue.c: Regenerated.
24335         * tests/unictype/test-pr_id_start.c: Regenerated.
24336         * tests/unictype/test-pr_ideographic.c: Regenerated.
24337         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24338         * tests/unictype/test-pr_lowercase.c: Regenerated.
24339         * tests/unictype/test-pr_math.c: Regenerated.
24340         * tests/unictype/test-pr_numeric.c: Regenerated.
24341         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24342         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24343         Regenerated.
24344         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24345         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24346         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24347         * tests/unictype/test-pr_other_math.c: Regenerated.
24348         * tests/unictype/test-pr_punctuation.c: Regenerated.
24349         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24350         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24351         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24352         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24353         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24354         * tests/unictype/test-pr_uppercase.c: Regenerated.
24355         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24356         * tests/unictype/test-pr_xid_start.c: Regenerated.
24357         * tests/unictype/test-pr_zero_width.c: Regenerated.
24358
24359         Update to Unicode 5.1.0.
24360         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24361         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24362         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24363         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24364         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24365         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24366         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24367         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24368         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24369         (nonspacing_table_ind): Update.
24370         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24371
24372         Update to Unicode 5.1.0.
24373         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24374         code transform.
24375         * lib/uniname/uniname.c (unicode_character_name,
24376         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24377         * lib/uniname/uninames.h: Regenerated.
24378         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24379
24380 2009-02-07  Bruno Haible  <bruno@clisp.org>
24381
24382         Merge gen-ctype and gen-lbrk into a single program.
24383         * lib/gen-uni-tables.c: New file, incorporating
24384         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24385         Add directory prefixes to the names of the generated files.
24386         * lib/unictype/gen-ctype.c: Remove file.
24387         * lib/unilbrk/gen-lbrk.c: Remove file.
24388         * modules/gen-uni-tables: New file.
24389         * modules/unictype/gen-ctype: Remove file.
24390         * modules/unilbrk/gen-lbrk: Remove file.
24391
24392 2009-02-07  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24395
24396         New module 'unistr/u32-strcoll'.
24397         * modules/unistr/u32-strcoll: New file.
24398         * lib/unistr/u32-strcoll.c: New file.
24399
24400         New module 'unistr/u16-strcoll'.
24401         * modules/unistr/u16-strcoll: New file.
24402         * lib/unistr/u16-strcoll.c: New file.
24403
24404         New module 'unistr/u8-strcoll'.
24405         * modules/unistr/u8-strcoll: New file.
24406         * lib/unistr/u8-strcoll.c: New file.
24407         * lib/unistr/u-strcoll.h: New file.
24408
24409 2009-02-07  Bruno Haible  <bruno@clisp.org>
24410
24411         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24412         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24413         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24414         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24415         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24416         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24417
24418 2009-02-07  Bruno Haible  <bruno@clisp.org>
24419
24420         Make 64-bit clean.
24421         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24422         output_combclass, output_bidi_category, output_decimal_digit,
24423         output_digit, output_numeric, output_mirror, output_scripts,
24424         output_ident_category): Use proper width specifier in format strings.
24425
24426 2009-02-07  Bruno Haible  <bruno@clisp.org>
24427
24428         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24429         failure behaviour.
24430
24431 2009-02-07  Jim Meyering  <meyering@redhat.com>
24432
24433         regex: avoid compilation failure with upcoming gcc-4.4
24434         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24435         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24436         "... error: integer overflow in preprocessor expression".
24437
24438 2009-02-05  Ben Pfaff  <blp@gnu.org>
24439
24440         Fix link errors on Windows when close module is used.
24441         * modules/close: Add $(LIB_CLOSE) to Link section.
24442         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24443         $(LIB_CLOSE) on Windows.
24444
24445 2009-02-05  Jim Meyering  <meyering@redhat.com>
24446
24447         still avoid unused-parameter warnings, but do it cleanly
24448         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24449         (get_fs_usage): Cast to void instead.
24450         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24451         (dev_from_mount_options, read_file_system_list): Cast to void.
24452         Prompted by Bruno Haible.
24453
24454 2009-02-04  Jim Meyering  <meyering@redhat.com>
24455
24456         fsusage.c: correct copyright year
24457         * lib/fsusage.c: Reflect year in which the change is pushed into
24458
24459         avoid misc. warnings
24460         * lib/fsusage.c (UNUSED_PARAM): Define.
24461         (get_fs_usage): Mark parameter "disk" as unused.
24462         * lib/getugroups.c (getgrent): Use "void" in prototype.
24463         * lib/mountlist.c: Mark unused parameters.
24464         (read_file_system_list): Declare a local with "const".
24465         * lib/nanosleep.c (getnow): Declare static.
24466         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24467
24468         dirfd: set errno upon failure
24469         * lib/dirfd.c: Include <errno.h>.
24470         Set errno to ENOTSUP when returning -1.
24471         * modules/dirfd (Depends-on): Add errno.
24472         Suggested by John Kodis <kodis@comcast.net>.
24473
24474 2009-02-01  Bruno Haible  <bruno@clisp.org>
24475
24476         Don't assume sizeof (long) >= sizeof (void *).
24477         * lib/memcmp.c: Include stdint.h.
24478         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24479         srcp2 to 'const byte *'.
24480         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24481         types to uintptr_t.
24482         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24483         * modules/memcmp (Depends-on): Add stdint.
24484         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24485
24486 2009-01-30  Eric Blake  <ebb9@byu.net>
24487
24488         fix more require-before-expand issues
24489         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24490         expand, AC_PROG_AWK.
24491         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24492
24493 2009-01-28  Eric Blake  <ebb9@byu.net>
24494
24495         version-etc: use consistent URL formatting
24496         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24497         Improve formatting.  Use fputs for string without %.
24498
24499 2009-01-28  Jim Meyering  <meyering@redhat.com>
24500
24501         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24502         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24503         "underquoted definition of NAME" from autoconf-2.59.
24504
24505 2009-01-28  Bruno Haible  <bruno@clisp.org>
24506
24507         * doc/gnulib.texi: Add "Obsolete modules" to index.
24508
24509 2009-01-28  Jim Meyering  <meyering@redhat.com>
24510
24511         useless-if-before-free: recognize more variants
24512         * build-aux/useless-if-before-free: Also recognize e.g.,
24513         if (NULL != p) free (p);
24514
24515 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24516
24517         test-getaddrinfo: skip (don't fail) this test when there's no network
24518         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24519         on the presumption that it means you lack network access.
24520
24521 2009-01-26  Jim Meyering  <meyering@redhat.com>
24522
24523         fflush: avoid warnings on modern systems
24524         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24525         pos and result, into scopes where they're used.
24526
24527 2009-01-26  Eric Blake  <ebb9@byu.net>
24528
24529         Silence warning reintroduced by recent extensions patch.
24530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24531         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24532         autoconf.
24533
24534         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24535         * m4/00gnulib.m4: New file.
24536         * gnulib-tool (func_get_filelist): Always use it.
24537         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24538         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24539
24540 2009-01-25  Bruno Haible  <bruno@clisp.org>
24541
24542         Make test-quotearg work on MacOS X and AIX.
24543         * tests/test-quotearg.sh: New file.
24544         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24545         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24546         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24547         include <libintl.h>.
24548         (fake_locale): Remove variable.
24549         (gettext, dgettext, dcgettext): Remove functions.
24550         (main): Instead of setting a fake locale, set a real locale. Call
24551         textdomain and bindtextdomain.
24552         * modules/quotearg-tests (Files): Add the new files.
24553         (Depends-on): Add gettext, setenv, unsetenv.
24554         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24555         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24556         Augment TESTS_ENVIRONMENT.
24557
24558 2009-01-25  Bruno Haible  <bruno@clisp.org>
24559
24560         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24561         fr_FR.ISO8859-1 locale on MacOS X.
24562         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24563         ja_JP.eucJP locale on MacOS X.
24564         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24565         zh_CN.GB18030 locale on MacOS X.
24566
24567 2009-01-25  Bruno Haible  <bruno@clisp.org>
24568
24569         Avoid link errors on MacOS X 10.3.
24570         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24571         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24572
24573 2009-01-25  Bruno Haible  <bruno@clisp.org>
24574
24575         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24576         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24577         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24578         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24579         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24580         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24581         posix_spawnattr_init, posix_spawnattr_setsigmask,
24582         posix_spawnattr_setflags, posix_spawnattr_destroy.
24583
24584         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24585         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24586         * modules/execute (Files): Remove m4/posix_spawn.m4.
24587         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24588         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24589         posix_spawnattr_init, posix_spawnattr_setsigmask,
24590         posix_spawnattr_setflags, posix_spawnattr_destroy.
24591
24592 2009-01-25  Bruno Haible  <bruno@clisp.org>
24593
24594         * lib/glthread/threadlib.c: Include <stdlib.h>.
24595
24596 2009-01-25  Bruno Haible  <bruno@clisp.org>
24597
24598         * lib/glthread/threadlib.c (dummy): New declaration.
24599
24600 2009-01-25  Bruno Haible  <bruno@clisp.org>
24601
24602         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24603         multibyte characters also for the GB18030 encoding. Don't crash when
24604         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24605
24606 2009-01-25  Bruno Haible  <bruno@clisp.org>
24607
24608         Avoid redefining 'struct random_data' on OSF/1 5.1.
24609         * lib/stdlib.in.h: Include <random.h> if it exists.
24610         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24611         HAVE_RANDOM_H. Include <random.h> when testing whether
24612         'struct random_data' exists.
24613         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24614
24615 2009-01-25  Bruno Haible  <bruno@clisp.org>
24616
24617         Don't install charset.alias on MacOS X >= 10.3.
24618         * lib/localcharset.c (DARWIN7): New macro.
24619         (get_charset_aliases): Hardcode the result for Darwin7.
24620         * modules/localcharset (install-exec-local): Don't install
24621         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24622
24623 2009-01-25  Bruno Haible  <bruno@clisp.org>
24624
24625         Don't install charset.alias on mingw and Cygwin.
24626         * modules/localcharset (install-exec-local): Don't install
24627         charset.alias on mingw and Cygwin, if the file does not yet exist.
24628         The result for these platforms is hardcoded in localcharset.c.
24629
24630 2009-01-25  Bruno Haible  <bruno@clisp.org>
24631
24632         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24633         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24634         before requiring AC_USE_SYSTEM_EXTENSIONS.
24635
24636 2009-01-25  Jim Meyering  <meyering@redhat.com>
24637
24638         c-strtod: avoid warnings
24639         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24640         "assignment discards qualifiers from pointer target type" warnings.
24641
24642 2009-01-24  Bruno Haible  <bruno@clisp.org>
24643
24644         Add support for non-UTF-8 locales on MacOS X.
24645         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24646         canonical encodings. For Darwin 7 and newer, don't map traditional
24647         encodings to UTF-8.
24648         Reported by Vincent Lefevre <vincent@vinc17.org>
24649         at <http://savannah.gnu.org/bugs/?25235>.
24650
24651 2009-01-24  Bruno Haible  <bruno@clisp.org>
24652
24653         * doc/gnulib.texi (Obsolete modules): New section.
24654         Reported by Mike Frysinger <vapier@gentoo.org>.
24655
24656 2009-01-24  Bruno Haible  <bruno@clisp.org>
24657
24658         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24659         (%.dvi): New rule.
24660
24661 2009-01-24  Bruno Haible  <bruno@clisp.org>
24662
24663         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24664         Reported by Eric Blake.
24665
24666 2009-01-24  Bruno Haible  <bruno@clisp.org>
24667
24668         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24669         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24670         Reported by Gary V. Vaughan <gary@gnu.org>.
24671
24672 2009-01-24  Bruno Haible  <bruno@clisp.org>
24673
24674         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24675
24676 2009-01-23  Bruno Haible  <bruno@clisp.org>
24677
24678         Make c-strtod, c-strtold usable in libraries.
24679         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24680         (C_STRTOD): Call strdup instead of xstrdup.
24681         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24682         * modules/c-strtold (Depends-on): Likewise.
24683         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24684         * NEWS: Mention the change.
24685         Reported by Michael Gold <mgold@ncf.ca>.
24686
24687 2009-01-23  Jim Meyering  <meyering@redhat.com>
24688
24689         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24690         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24691         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24692
24693 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24694
24695         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24696         GNU CoreUtils.
24697         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24698         * modules/version-etc (Description): Update.
24699
24700 2009-01-22  Bruno Haible  <bruno@clisp.org>
24701
24702         Cache the C locale object.
24703         * lib/c-strtod.c (c_locale_cache): New variable.
24704         (c_locale): New function.
24705         (C_STRTOD): Use it, and don't call freelocale.
24706         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24707         Suggested by Paolo Bonzini.
24708
24709 2009-01-21  Bruno Haible  <bruno@clisp.org>
24710
24711         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24712         conditions other than overflow.
24713
24714 2009-01-21  Bruno Haible  <bruno@clisp.org>
24715
24716         * lib/c-strtod.c: Include errno.h.
24717         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24718         value from STRTOD_L and STRTOD.
24719
24720 2009-01-21  Bruno Haible  <bruno@clisp.org>
24721         and Jim Meyering  <meyering@redhat.com>
24722
24723         nanosleep: skip configure test (fail it) for apple universal builds
24724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24725         universal builds, assume that nanosleep does not work.
24726         * modules/nanosleep (Depends-on): Add multiarch.
24727
24728         mktime: skip configure test (fail it) for apple universal builds
24729         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24730         universal builds, assume that mktime does not work.
24731         * modules/mktime (Depends-on): Add multiarch.
24732
24733 2009-01-21  Eric Blake  <ebb9@byu.net>
24734
24735         multiarch: avoid expand-before-require warning
24736         * modules/multiarch (configure.ac): Require, rather than expand,
24737         gl_MULTIARCH.
24738         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24739         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24740         enforce that all clients require it.  Partial reversion of
24741         2008-12-29 patch.
24742
24743         error: avoid expand-before-require warning
24744         * modules/errno (configure.ac): Require, rather than expand,
24745         gl_HEADER_ERRNO_H.
24746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24747         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24748         enforce that all clients require it.
24749
24750         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24751         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24752         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24753         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24754
24755 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24756
24757         Revert:
24758         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24759
24760         regex: do not depend on obsolete modules.
24761         * modules/regex: Remove memcmp and memmove.
24762
24763 2009-01-20  Bruno Haible  <bruno@clisp.org>
24764
24765         Make the 'link' module link on Windows NT 4.
24766         * lib/link.c (_WIN32_WINNT): Don't define.
24767         (CreateHardLinkFuncType): New type.
24768         (CreateHardLinkFunc, initialized): New variables.
24769         (initialize): New function.
24770         (link): Invoke CreateHardLink indirectly through the function pointer.
24771
24772 2009-01-20  Bruno Haible  <bruno@clisp.org>
24773
24774         Fix compilation failure on mingw.
24775         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24776
24777 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24778
24779         * doc/c-strtod.texi: Mention a couple of restrictions.
24780
24781 2009-01-20  Jim Meyering  <meyering@redhat.com>
24782
24783         gettimeofday: move more declarations out of functions
24784         * lib/gettimeofday.c: Move extern declarations of tzset and
24785         gmtime out of containing functions.  Prompted by Bruno Haible.
24786
24787 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24788
24789         regex: do not depend on obsolete modules.
24790         * modules/regex: Remove memcmp and memmove.
24791
24792 2009-01-19  Bruno Haible  <bruno@clisp.org>
24793
24794         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24795         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24796         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24797         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24798         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24799
24800 2009-01-19  Bruno Haible  <bruno@clisp.org>
24801
24802         * tests/test-link.c: Include <errno.h>.
24803         (main): Exit with code 77 when a hard link cannot be created due to
24804         the file system.
24805         * tests/test-link.sh: Skip test when a hard link cannot be created due
24806         to the file system.
24807         Suggested by Eric Blake.
24808
24809 2009-01-19  Martin Lambers  <marlam@marlam.de>
24810
24811         * modules/link-tests: New file.
24812         * tests/test-link.sh: New file.
24813         * tests/test-link.c: New file.
24814
24815 2009-01-19  Eric Blake  <ebb9@byu.net>
24816
24817         doc: mention another function added in cygwin 1.7.0
24818         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24819         Another new function in cygwin 1.7.
24820
24821 2009-01-19  Bruno Haible  <bruno@clisp.org>
24822
24823         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24824         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24825         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24826         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24827         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24828         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24829         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24830         * m4/md4.m4 (gl_MD4): Likewise.
24831         * m4/md5.m4 (gl_MD5): Likewise.
24832         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24833         * m4/sha1.m4 (gl_SHA1): Likewise.
24834         * m4/sha256.m4 (gl_SHA256): Likewise.
24835         * m4/sha512.m4 (gl_SHA512): Likewise.
24836
24837 2009-01-19  Bruno Haible  <bruno@clisp.org>
24838
24839         * modules/uniname/uniname-tests (Depends-on): Add progname.
24840         * tests/uniname/test-uninames.c: Include progname.h.
24841         (main): Call set_program_name.
24842
24843         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24844         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24845         (main): Call set_program_name.
24846
24847         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24848         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24849         (main): Call set_program_name.
24850
24851         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24852         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24853         (main): Call set_program_name.
24854
24855         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24856         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24857         (main): Call set_program_name.
24858
24859         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24860         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24861         (main): Call set_program_name.
24862
24863         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24864         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24865         (main): Call set_program_name.
24866
24867         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24868         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24869         (main): Call set_program_name.
24870
24871         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24872         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24873         (main): Call set_program_name.
24874
24875 2009-01-19  Eric Blake  <ebb9@byu.net>
24876
24877         test-unistd: test previous patch
24878         * tests/test-unistd.c: Test *_FILENO macros.
24879
24880         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24881         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24882         Guarantee a definition.
24883         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24884         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24885         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24886         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24887         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24888         Likewise.
24889         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24890         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24891         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24892         Likewise.
24893         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24894         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24895         (STDERR_FILENO): Likewise.
24896         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24897         (STDERR_FILENO): Likewise.
24898         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24899         (STDERR_FILENO): Likewise.
24900         Reported by Elbert Pol.
24901
24902 2009-01-19  Eric Blake  <ebb9@byu.net>
24903
24904         doc: mention more functions added in cygwin 1.7.0
24905         * doc/posix-functions/abort.texi (abort): Update wording related
24906         to cygwin.
24907         * doc/posix-functions/daylight.texi (daylight): Likewise.
24908         * doc/posix-functions/optarg.texi (optarg): Likewise.
24909         * doc/posix-functions/optarg.texi (opterr): Likewise.
24910         * doc/posix-functions/optarg.texi (optind): Likewise.
24911         * doc/posix-functions/optarg.texi (optopt): Likewise.
24912         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24913         worked in 1.5.x, and was withdrawn in 1.7.
24914         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24915         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24916         cygwin versions.
24917         * doc/posix-functions/perror.texi (perror): Likewise.
24918         * doc/posix-functions/printf.texi (printf): Likewise.
24919         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24920         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24921         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24922         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24923         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24924         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24925         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24926         Likewise.
24927         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24928         Likewise.
24929         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24930         this function.
24931         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24932         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24933         Likewise.
24934         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24935         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24936         * doc/posix-functions/confstr.texi (confstr): Likewise.
24937         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24938         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24939         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24940         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24941         * doc/posix-functions/fputws.texi (fputws): Likewise.
24942         * doc/posix-functions/fwide.texi (fwide): Likewise.
24943         * doc/posix-functions/getwc.texi (getwc): Likewise.
24944         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24945         * doc/posix-functions/putwc.texi (putwc): Likewise.
24946         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24947         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24948         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24949         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24950         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24951         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24952         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24953         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24954         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24955         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24956         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24957
24958 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24959
24960         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24961         * lib/ioctl.c: Include <sys/ioctl.h>.
24962
24963 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24964
24965         * modules/getdate-tests (Depends-on): Add progname.
24966         * tests/test-getdate.c: Use progname module, to avoid link errors
24967         on non-glibc systems.
24968
24969 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24970
24971         * modules/filenamecat-tests (Depends-on): Add progname.
24972         * modules/fstrcmp-tests (Depends-on): Likewise.
24973
24974         * tests/test-filenamecat.c: Use progname module, to avoid link
24975         errors on non-glibc systems.
24976         * tests/test-fstrcmp.c: Likewise.
24977
24978 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24979
24980         gettimeofday: avoid warning: nested extern declaration of 'localtime'
24981         * lib/gettimeofday.c: Move extern declaration out of function.
24982
24983 2009-01-18  Bruno Haible  <bruno@clisp.org>
24984
24985         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24986         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24987         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24988
24989 2009-01-18  Bruno Haible  <bruno@clisp.org>
24990
24991         * lib/strftime.c (MEMPCPY): Remove unused macro.
24992         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24993
24994 2009-01-18  Martin Lambers  <marlam@marlam.de>
24995
24996         New module 'link'.
24997         * lib/unistd.in.h (link): New declaration.
24998         * lib/link.c: New file.
24999         * m4/link.m4: New file.
25000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
25001         HAVE_LINK.
25002         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
25003         * modules/link: New file.
25004         * doc/posix-functions/link.texi: Mention the new module.
25005
25006 2009-01-18  Bruno Haible  <bruno@clisp.org>
25007
25008         * tests/test-avltree_list.c (main): Call set_program_name.
25009         * tests/test-avltree_oset.c (main): Likewise.
25010         * tests/test-obstack-printf.c: Include progname.h.
25011         (main): Call set_program_name.
25012         * tests/test-quotearg.c: Include progname.h.
25013         (main): Call set_program_name.
25014         * tests/test-xmemdup0.c: Include progname.h.
25015         (main): Call set_program_name.
25016
25017 2009-01-18  Bruno Haible  <bruno@clisp.org>
25018
25019         New module 'alphasort'.
25020         * lib/dirent.in.h (alphasort): New declaration.
25021         * lib/alphasort.c: New file, from glibc with modifications.
25022         * m4/alphasort.m4: New file.
25023         * modules/alphasort: New file.
25024         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
25025         HAVE_ALPHASORT.
25026         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
25027         HAVE_ALPHASORT.
25028         * doc/posix-functions/alphasort.texi: Mention the new module and the
25029         portability problems.
25030
25031 2009-01-18  Bruno Haible  <bruno@clisp.org>
25032
25033         New module 'scandir'.
25034         * lib/dirent.in.h (scandir): New declaration.
25035         * lib/scandir.c: New file, from glibc with modifications.
25036         * m4/scandir.m4: New file.
25037         * modules/scandir: New file.
25038         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
25039         HAVE_SCANDIR.
25040         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
25041         HAVE_SCANDIR.
25042         * doc/posix-functions/scandir.texi: Mention the new module and the
25043         portability problems.
25044
25045 2009-01-17  Bruno Haible  <bruno@clisp.org>
25046
25047         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
25048         Update documentation.
25049         (func_remove_suffix): Escape all dots in the suffix. Update
25050         documentation.
25051         (func_filter_filelist): Update documentation.
25052         Reported by Ralf Wildenhues.
25053
25054 2009-01-17  Bruno Haible  <bruno@clisp.org>
25055
25056         * modules/dprintf-posix-tests: New file.
25057         * tests/test-dprintf-posix.sh: New file.
25058         * tests/test-dprintf-posix.c: New file.
25059
25060         New modules 'dprintf', 'dprintf-posix'.
25061         * lib/stdio.in.h (dprintf): New declaration.
25062         * lib/dprintf.c: New file.
25063         * m4/dprintf.m4: New file.
25064         * m4/dprintf-posix.m4: New file.
25065         * modules/dprintf: New file.
25066         * modules/dprintf-posix: New file.
25067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
25068         HAVE_DPRINTF, REPLACE_DPRINTF.
25069         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
25070         HAVE_DPRINTF, REPLACE_DPRINTF.
25071         * doc/posix-functions/dprintf.texi: Mention the new modules.
25072
25073 2009-01-17  Bruno Haible  <bruno@clisp.org>
25074
25075         * modules/vdprintf-posix-tests: New file.
25076         * tests/test-vdprintf-posix.sh: New file.
25077         * tests/test-vdprintf-posix.c: New file.
25078
25079         New modules 'vdprintf', 'vdprintf-posix'.
25080         * lib/stdio.in.h (vdprintf): New declaration.
25081         * lib/vdprintf.c: New file.
25082         * m4/vdprintf.m4: New file.
25083         * m4/vdprintf-posix.m4: New file.
25084         * modules/vdprintf: New file.
25085         * modules/vdprintf-posix: New file.
25086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25087         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25088         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25089         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25090         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25091
25092 2009-01-17  Bruno Haible  <bruno@clisp.org>
25093
25094         Fix replacement of fopen on mingw.
25095         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25096         mingw.
25097
25098 2009-01-17  Bruno Haible  <bruno@clisp.org>
25099
25100         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25101         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25102
25103 2009-01-17  Bruno Haible  <bruno@clisp.org>
25104
25105         Avoid test-fflush2.sh failure on mingw.
25106         * tests/test-fflush2.c: Include binary-io.h.
25107         (main): Put standard input into binary mode.
25108         * modules/fflush-tests (Depends-on): Add binary-io.
25109
25110 2009-01-17  Bruno Haible  <bruno@clisp.org>
25111
25112         * lib/wchar.in.h: In another particular situation, include only the
25113         system's <wchar.h> file.
25114         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25115         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25116         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25117
25118 2009-01-17  Bruno Haible  <bruno@clisp.org>
25119
25120         Support for stripping executables in --enable-relocatable.
25121         * build-aux/install-reloc: Expect one more argument, or an environment
25122         variable RELOC_STRIP_PROG. If set, strip the destination program and
25123         its wrapper.
25124         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25125         RELOC_STRIP_PROG.
25126         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25127         to set RELOCATABLE_STRIP.
25128         * NEWS: Mention the new Makefile requirement.
25129
25130 2009-01-17  Bruno Haible  <bruno@clisp.org>
25131
25132         * build-aux/install-reloc: Remove debugging information left over by
25133         C compiler on MacOS X.
25134
25135 2009-01-17  Bruno Haible  <bruno@clisp.org>
25136
25137         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25138         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25139         _NSGetExecutablePath.
25140
25141 2009-01-16  Jim Meyering  <meyering@redhat.com>
25142
25143         strerror: avoid warnings about discarding "const"
25144         * lib/strerror.c (rpl_strerror): Instead of returning a const
25145         string from each and every "case", use a variable, and add a single
25146         cast after the switch.
25147
25148 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25149
25150         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25151
25152 2009-01-16  Bruno Haible  <bruno@clisp.org>
25153
25154         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25155         array initializer syntax that also works in C++ mode.
25156         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25157
25158 2009-01-16  Jim Meyering  <meyering@redhat.com>
25159
25160         poll: suppress a warning
25161         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25162         to ignore "...unsigned expression < 0 is always false" warnings.
25163
25164 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25165
25166         poll: remove declarations of unused variables
25167         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25168         sockbuf and optlen.
25169
25170 2009-01-15  Bruno Haible  <bruno@clisp.org>
25171
25172         Make fflush-after-ungetc POSIX compliant on BSD systems.
25173         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25174         (clear_ungetc_buffer): Implement also for other systems.
25175         (rpl_fflush): On glibc systems, invoke
25176         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25177         clear_ungetc_buffer after fetching the stream's position, not before.
25178
25179 2009-01-15  Bruno Haible  <bruno@clisp.org>
25180
25181         Make fflush-after-ungetc POSIX compliant on glibc systems.
25182         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25183         after ungetc.
25184         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25185         (rpl_fflush): On glibc systems, simply call the system's fflush
25186         function after clearing the ungetc buffer.
25187         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25188         Instead, lseek only to the end of file, then use the system's fseeko
25189         for the rest. On glibc systems, reset the EOF indicator bit.
25190
25191 2009-01-15  Jim Meyering  <meyering@redhat.com>
25192
25193         openmp.m4: revert quote-adding change, for portability to older autoconf
25194         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25195         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25196         Simon Josefsson noticed the problem when using autoconf-2.61.
25197
25198 2009-01-15  Bruno Haible  <bruno@clisp.org>
25199
25200         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25201         * tests/test-fflush2.c (ASSERT): Always fail.
25202         (main): Add two tests for fflush() after ungetc(), taking into account
25203         the Austin Group's clarification.
25204         Suggested by Eric Blake.
25205
25206 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25207
25208         mktime.m4: remove K&R-style function prototypes
25209         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25210         for the Sun C++ compiler.
25211
25212 2009-01-14  Bruno Haible  <bruno@clisp.org>
25213
25214         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25215         while including <wchar.h>.
25216         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25217         the system's <wchar.h> file.
25218         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25219
25220 2009-01-14  Bruno Haible  <bruno@clisp.org>
25221
25222         * m4/csharp.m4: Don't mention gettext on the serial number line.
25223         * m4/csharpexec.m4: Likewise.
25224         * m4/eaccess.m4: Likewise.
25225         * m4/javaexec.m4: Likewise.
25226         * m4/sig_atomic_t.m4: Likewise.
25227         * m4/tmpdir.m4: Likewise.
25228         * m4/intldir.m4: Bump gettext version.
25229         * m4/lib-ld.m4: Likewise.
25230
25231 2009-01-14  Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/progname.c (set_program_name): Add more comments.
25234         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25235
25236 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25237
25238         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25239         were sys/stat.h does not define it.
25240
25241 2009-01-14  Jim Meyering  <meyering@redhat.com>
25242
25243         many *.m4 files: improve m4 quoting
25244         99% of this change was performed by running the following commands:
25245         git ls-files | grep '\.m4$' | xargs perl -pi \
25246           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25247           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25248           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25249           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25250         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25251         The remainder were to add Copyright dates, increment serial numbers,
25252         undo some changes in comments, exclude m4/intl.m4, and add quotes
25253         around the "1" in ",1" where the unusual spacing prohibited the
25254         above regexps from doing the job.  For more details, see
25255         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25256         * m4/acl.m4: Modified.
25257         * m4/afs.m4: Likewise.
25258         * m4/alloca.m4: Likewise.
25259         * m4/argp.m4: Likewise.
25260         * m4/argz.m4: Likewise.
25261         * m4/atexit.m4: Likewise.
25262         * m4/bison-i18n.m4: Likewise.
25263         * m4/bison.m4: Likewise.
25264         * m4/byteswap.m4: Likewise.
25265         * m4/c-stack.m4: Likewise.
25266         * m4/c-strtod.m4: Likewise.
25267         * m4/calloc.m4: Likewise.
25268         * m4/canonicalize-lgpl.m4: Likewise.
25269         * m4/chown.m4: Likewise.
25270         * m4/clock_time.m4: Likewise.
25271         * m4/codeset.m4: Likewise.
25272         * m4/copy-file.m4: Likewise.
25273         * m4/csharp.m4: Likewise.
25274         * m4/csharpcomp.m4: Likewise.
25275         * m4/csharpexec.m4: Likewise.
25276         * m4/d-ino.m4: Likewise.
25277         * m4/d-type.m4: Likewise.
25278         * m4/dirfd.m4: Likewise.
25279         * m4/double-slash-root.m4: Likewise.
25280         * m4/eaccess.m4: Likewise.
25281         * m4/eealloc.m4: Likewise.
25282         * m4/environ.m4: Likewise.
25283         * m4/errno_h.m4: Likewise.
25284         * m4/euidaccess.m4: Likewise.
25285         * m4/execute.m4: Likewise.
25286         * m4/fatal-signal.m4: Likewise.
25287         * m4/fchdir.m4: Likewise.
25288         * m4/fcntl_h.m4: Likewise.
25289         * m4/fileblocks.m4: Likewise.
25290         * m4/filenamecat.m4: Likewise.
25291         * m4/findprog.m4: Likewise.
25292         * m4/flexmember.m4: Likewise.
25293         * m4/fnmatch.m4: Likewise.
25294         * m4/fopen.m4: Likewise.
25295         * m4/fpending.m4: Likewise.
25296         * m4/fprintf-posix.m4: Likewise.
25297         * m4/free.m4: Likewise.
25298         * m4/frexp.m4: Likewise.
25299         * m4/frexpl.m4: Likewise.
25300         * m4/fsusage.m4: Likewise.
25301         * m4/ftruncate.m4: Likewise.
25302         * m4/gc-camellia.m4: Likewise.
25303         * m4/gc-random.m4: Likewise.
25304         * m4/gc.m4: Likewise.
25305         * m4/getaddrinfo.m4: Likewise.
25306         * m4/getcwd-abort-bug.m4: Likewise.
25307         * m4/getcwd-path-max.m4: Likewise.
25308         * m4/getdate.m4: Likewise.
25309         * m4/getdomainname.m4: Likewise.
25310         * m4/getgroups.m4: Likewise.
25311         * m4/gethostname.m4: Likewise.
25312         * m4/gethrxtime.m4: Likewise.
25313         * m4/getline.m4: Likewise.
25314         * m4/getloadavg.m4: Likewise.
25315         * m4/getndelim2.m4: Likewise.
25316         * m4/getpass.m4: Likewise.
25317         * m4/gettext.m4: Likewise.
25318         * m4/gettime.m4: Likewise.
25319         * m4/gettimeofday.m4: Likewise.
25320         * m4/gnulib-common.m4: Likewise.
25321         * m4/group-member.m4: Likewise.
25322         * m4/host-os.m4: Likewise.
25323         * m4/iconv.m4: Likewise.
25324         * m4/iconv_open.m4: Likewise.
25325         * m4/inet_ntop.m4: Likewise.
25326         * m4/inet_pton.m4: Likewise.
25327         * m4/inline.m4: Likewise.
25328         * m4/intldir.m4: Likewise.
25329         * m4/intlmacosx.m4: Likewise.
25330         * m4/intmax.m4: Likewise.
25331         * m4/intmax_t.m4: Likewise.
25332         * m4/inttypes.m4: Likewise.
25333         * m4/inttypes_h.m4: Likewise.
25334         * m4/inttypes-pri.m4: Likewise.
25335         * m4/isapipe.m4: Likewise.
25336         * m4/isnand.m4: Likewise.
25337         * m4/isnanf.m4: Likewise.
25338         * m4/isnanl.m4: Likewise.
25339         * m4/javacomp.m4: Likewise.
25340         * m4/javaexec.m4: Likewise.
25341         * m4/jm-winsz1.m4: Likewise.
25342         * m4/jm-winsz2.m4: Likewise.
25343         * m4/lchown.m4: Likewise.
25344         * m4/lcmessage.m4: Likewise.
25345         * m4/ldexpl.m4: Likewise.
25346         * m4/lib-ld.m4: Likewise.
25347         * m4/lib-link.m4: Likewise.
25348         * m4/libsigsegv.m4: Likewise.
25349         * m4/link-follow.m4: Likewise.
25350         * m4/localcharset.m4: Likewise.
25351         * m4/locale-fr.m4: Likewise.
25352         * m4/locale-ja.m4: Likewise.
25353         * m4/locale-tr.m4: Likewise.
25354         * m4/locale-zh.m4: Likewise.
25355         * m4/lock.m4: Likewise.
25356         * m4/longlong.m4: Likewise.
25357         * m4/ls-mntd-fs.m4: Likewise.
25358         * m4/lstat.m4: Likewise.
25359         * m4/malloc.m4: Likewise.
25360         * m4/mathl.m4: Likewise.
25361         * m4/mbrtowc.m4: Likewise.
25362         * m4/mbstate_t.m4: Likewise.
25363         * m4/mbswidth.m4: Likewise.
25364         * m4/memchr.m4: Likewise.
25365         * m4/memcmp.m4: Likewise.
25366         * m4/memcpy.m4: Likewise.
25367         * m4/memmem.m4: Likewise.
25368         * m4/memmove.m4: Likewise.
25369         * m4/mempcpy.m4: Likewise.
25370         * m4/memrchr.m4: Likewise.
25371         * m4/memset.m4: Likewise.
25372         * m4/minmax.m4: Likewise.
25373         * m4/mkdir-slash.m4: Likewise.
25374         * m4/mkdtemp.m4: Likewise.
25375         * m4/mktime.m4: Likewise.
25376         * m4/mmap-anon.m4: Likewise.
25377         * m4/mountlist.m4: Likewise.
25378         * m4/nanosleep.m4: Likewise.
25379         * m4/nls.m4: Likewise.
25380         * m4/nocrash.m4: Likewise.
25381         * m4/open.m4: Likewise.
25382         * m4/openat.m4: Likewise.
25383         * m4/openmp.m4: Likewise.
25384         * m4/pathmax.m4: Likewise.
25385         * m4/perl.m4: Likewise.
25386         * m4/physmem.m4: Likewise.
25387         * m4/pipe.m4: Likewise.
25388         * m4/po.m4: Likewise.
25389         * m4/poll.m4: Likewise.
25390         * m4/posixtm.m4: Likewise.
25391         * m4/posixver.m4: Likewise.
25392         * m4/printf-frexp.m4: Likewise.
25393         * m4/printf-frexpl.m4: Likewise.
25394         * m4/printf-posix.m4: Likewise.
25395         * m4/printf-posix-rpl.m4: Likewise.
25396         * m4/printf.m4: Likewise.
25397         * m4/progtest.m4: Likewise.
25398         * m4/putenv.m4: Likewise.
25399         * m4/readline.m4: Likewise.
25400         * m4/readlink.m4: Likewise.
25401         * m4/readutmp.m4: Likewise.
25402         * m4/realloc.m4: Likewise.
25403         * m4/regex.m4: Likewise.
25404         * m4/relocatable.m4: Likewise.
25405         * m4/relocatable-lib.m4: Likewise.
25406         * m4/rename-dest-slash.m4: Likewise.
25407         * m4/rename.m4: Likewise.
25408         * m4/rmdir-errno.m4: Likewise.
25409         * m4/rmdir.m4: Likewise.
25410         * m4/roundf.m4: Likewise.
25411         * m4/roundl.m4: Likewise.
25412         * m4/rpmatch.m4: Likewise.
25413         * m4/save-cwd.m4: Likewise.
25414         * m4/selinux-selinux-h.m4: Likewise.
25415         * m4/setenv.m4: Likewise.
25416         * m4/settime.m4: Likewise.
25417         * m4/sig2str.m4: Likewise.
25418         * m4/sig_atomic_t.m4: Likewise.
25419         * m4/signalblocking.m4: Likewise.
25420         * m4/signbit.m4: Likewise.
25421         * m4/sigpipe.m4: Likewise.
25422         * m4/sockets.m4: Likewise.
25423         * m4/sockpfaf.m4: Likewise.
25424         * m4/st_dm_mode.m4: Likewise.
25425         * m4/stat-time.m4: Likewise.
25426         * m4/stdbool.m4: Likewise.
25427         * m4/stdint.m4: Likewise.
25428         * m4/stdint_h.m4: Likewise.
25429         * m4/stpcpy.m4: Likewise.
25430         * m4/stpncpy.m4: Likewise.
25431         * m4/strcase.m4: Likewise.
25432         * m4/strchrnul.m4: Likewise.
25433         * m4/strcspn.m4: Likewise.
25434         * m4/strdup.m4: Likewise.
25435         * m4/strftime.m4: Likewise.
25436         * m4/strndup.m4: Likewise.
25437         * m4/strnlen.m4: Likewise.
25438         * m4/strpbrk.m4: Likewise.
25439         * m4/strptime.m4: Likewise.
25440         * m4/strsep.m4: Likewise.
25441         * m4/strtod.m4: Likewise.
25442         * m4/strtoimax.m4: Likewise.
25443         * m4/strtok_r.m4: Likewise.
25444         * m4/strtol.m4: Likewise.
25445         * m4/strtoll.m4: Likewise.
25446         * m4/strtoul.m4: Likewise.
25447         * m4/strtoull.m4: Likewise.
25448         * m4/strtoumax.m4: Likewise.
25449         * m4/strverscmp.m4: Likewise.
25450         * m4/threadlib.m4: Likewise.
25451         * m4/timegm.m4: Likewise.
25452         * m4/tm_gmtoff.m4: Likewise.
25453         * m4/tmpdir.m4: Likewise.
25454         * m4/tmpfile.m4: Likewise.
25455         * m4/tzset.m4: Likewise.
25456         * m4/uintmax_t.m4: Likewise.
25457         * m4/unlinkdir.m4: Likewise.
25458         * m4/unlocked-io.m4: Likewise.
25459         * m4/uptime.m4: Likewise.
25460         * m4/userspec.m4: Likewise.
25461         * m4/utimbuf.m4: Likewise.
25462         * m4/utime.m4: Likewise.
25463         * m4/utimes-null.m4: Likewise.
25464         * m4/utimes.m4: Likewise.
25465         * m4/vararrays.m4: Likewise.
25466         * m4/vasnprintf.m4: Likewise.
25467         * m4/vfprintf-posix.m4: Likewise.
25468         * m4/vprintf-posix.m4: Likewise.
25469         * m4/wait-process.m4: Likewise.
25470         * m4/wchar_t.m4: Likewise.
25471         * m4/wint_t.m4: Likewise.
25472         * m4/write-any-file.m4: Likewise.
25473         * m4/yield.m4: Likewise.
25474
25475 2009-01-13  Bruno Haible  <bruno@clisp.org>
25476
25477         Avoid test-copy-file.sh failures when ACL support insufficient.
25478         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25479         TESTS_ENVIRONMENT.
25480         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25481         Reported by Jim Meyering.
25482
25483 2009-01-13  Bruno Haible  <bruno@clisp.org>
25484
25485         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25486         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25487         * modules/unistdio/u8-printf-parse (Files): Likewise.
25488         * modules/unistdio/u32-printf-parse (Files): Likewise.
25489         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25490
25491 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25492
25493         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25494         and m4/inttypes_h.m4 too.
25495
25496 2009-01-12  Eric Blake  <ebb9@byu.net>
25497
25498         tests: IRIX 6.2 cc can't compile -0.0 into .data
25499         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25500         rather than at compile-time.
25501         * tests/test-floorl.c (minus_zero): Likewise.
25502         * tests/test-frexpl.c (minus_zero): Likewise.
25503         * tests/test-isnan.c (minus_zerol): Likewise.
25504         * tests/test-isnanl.h (minus_zero): Likewise.
25505         * tests/test-ldexpl.c (minus_zero): Likewise.
25506         * tests/test-roundl.c (minus_zero): Likewise.
25507         * tests/test-signbit.c (minus_zerol): Likewise.
25508         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25509         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25510         * tests/test-truncl.c (minus_zero): Likewise.
25511         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25512         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25513         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25514
25515 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25516
25517         regex: fix glibc bug 9697
25518         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25519         handling.
25520
25521 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25522
25523         regex: fix glibc bug 697
25524         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25525         being NULL also if there are no backreferences.
25526
25527 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25528
25529         regex: merge glibc changes
25530         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25531         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25532         re_string_skip_chars, re_string_reconstruct): Likewise.
25533         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25534
25535 2009-01-07  Jim Meyering  <meyering@redhat.com>
25536
25537         poll: filter through cppi
25538         * lib/poll.c: Indent cpp directives to reflect nesting.
25539
25540 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25541
25542         poll: don't return uninitialized
25543         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25544
25545 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25546
25547         avoid compile failure on AIX 6.1
25548         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25549         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25550
25551 2009-01-04  Jim Meyering  <meyering@redhat.com>
25552
25553         remove duplicate inclusion of <stdio.h>
25554         * tests/test-fprintf-posix.c: Likewise.
25555         * tests/test-printf-posix.c: Likewise.
25556         * tests/test-snprintf-posix.c: Likewise.
25557         * tests/test-sprintf-posix.c: Likewise.
25558         * tests/test-vasprintf-posix.c: Likewise.
25559         * tests/test-vfprintf-posix.c: Likewise.
25560         * tests/test-vprintf-posix.c: Likewise.
25561         * tests/test-vsnprintf-posix.c: Likewise.
25562         * tests/test-vsprintf-posix.c: Likewise.
25563
25564 2009-01-03  Jim Meyering  <meyering@redhat.com>
25565
25566         gnulib-tool: fix sed-based filtering
25567         * gnulib-tool (func_filter_filelist): Remove extra backslash
25568         in sed_fff_filter definition.
25569
25570 2009-01-02  Jim Meyering  <meyering@redhat.com>
25571
25572         strftime: avoid compilation failure on Solaris 2.6
25573         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25574         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25575         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25576         be available.  Reported by Tom G. Christensen.  Details in
25577         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25578
25579 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25580             Bruno Haible  <bruno@clisp.org>
25581
25582         Speed up gnulib-tool by doing more string processing through shell
25583         built-ins.
25584         * gnulib-tool (fast_func_append): New variable.
25585         (func_remove_prefix, func_remove_suffix): New functions.
25586         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25587         (func_filter_filelist): New function.
25588         (func_get_dependencies): Use func_remove_suffix instead of sed.
25589         (func_get_automake_snippet): Use func_filter_filelist instead of a
25590         subshell and sed invocation.
25591
25592 2009-01-01  Bruno Haible  <bruno@clisp.org>
25593
25594         Fix a security bug.
25595         * gnulib-tool (func_import, import, update): Don't allow the characters
25596         '"', '$', '`', '\' in macro arguments that become part of commands that
25597         are evaluated.
25598
25599 2009-01-01  Bruno Haible  <bruno@clisp.org>
25600
25601         * gnulib-tool (func_reset_sigpipe): Add more comments.
25602
25603 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25604
25605         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25606         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25607         already know the answer.
25608
25609 2009-01-01  Jim Meyering  <meyering@redhat.com>
25610
25611         * lib/version-etc.c (version_etc_va): Update copyright year.
25612
25613 2008-12-30  Bruno Haible  <bruno@clisp.org>
25614
25615         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25616         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25617         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25618
25619 2008-12-29  Eric Blake  <ebb9@byu.net>
25620
25621         multiarch: avoid autoconf AC_REQUIRE bug
25622         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25623         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25624         2.63 and older.
25625         Reported by Bruno Haible, and analyzed in
25626         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25627
25628 2008-12-29  Bruno Haible  <bruno@clisp.org>
25629
25630         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25631         files in subdirectories correctly.
25632         Reported by Ralf Wildenhues.
25633
25634 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25635
25636         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25637         rather than 'join FILE -', for Solaris join.
25638
25639 2008-12-29  Bruno Haible  <bruno@clisp.org>
25640
25641         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25642         quoting.
25643         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25644         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25645         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25646         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25647         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25648         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25649         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25650         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25651         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25652         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25653         * m4/nls.m4 (AM_NLS): Likewise.
25654         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25655         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25656         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25657         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25658         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25659         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25660         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25661         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25662         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25663         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25664         * m4/xsize.m4 (gl_XSIZE): Likewise.
25665         Suggested by Jim Meyering.
25666
25667 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25668
25669         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25670         * lib/parse-duration.c: use a switch instead of cascading if's.
25671
25672 2008-12-29  Eric Blake  <ebb9@byu.net>
25673
25674         wchar.h: supply WEOF on Irix 5.3
25675         * lib/wchar.in.h (wint_t): Also supply WEOF.
25676         * lib/wctype.in.h (wint_t): Likewise.
25677         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25678         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25679         Reported by Tom G. Christensen.
25680
25681 2008-12-26  Bruno Haible  <bruno@clisp.org>
25682
25683         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25684         i486, i586, i686.
25685
25686 2008-12-26  Bruno Haible  <bruno@clisp.org>
25687
25688         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25689
25690 2008-12-26  Bruno Haible  <bruno@clisp.org>
25691
25692         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25693         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25694         not __STDC_CONSTANT_MACROS.
25695         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25696
25697 2008-12-25  Bruno Haible  <bruno@clisp.org>
25698
25699         Add support for universal builds to vasnprintf.
25700         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25701         universal builds, guess no.
25702         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25703         * modules/vasprintf-posix (Depends-on): Likewise.
25704         * modules/fprintf-posix (Depends-on): Likewise.
25705         * modules/vfprintf-posix (Depends-on): Likewise.
25706         * modules/snprintf-posix (Depends-on): Likewise.
25707         * modules/vsnprintf-posix (Depends-on): Likewise.
25708         * modules/sprintf-posix (Depends-on): Likewise.
25709         * modules/vsprintf-posix (Depends-on): Likewise.
25710         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25711         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25712         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25713         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25714         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25715         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25716         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25717
25718         Add support for universal builds to <inttypes.h>.
25719         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25720         _SCNu64_PREFIX): In Apple
25721         universal builds, define directly, using _LP64.
25722         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25723         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25724         * modules/inttypes (Depends-on): Add multiarch.
25725         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25726
25727         Add support for universal builds to <stdint.h>.
25728         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25729         universal builds, define directly, using _LP64.
25730         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25731         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25732         and size_t.
25733         * modules/stdint (Depends-on): Add multiarch.
25734         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25735
25736         New module 'multiarch'.
25737         * modules/multiarch: New file.
25738         * m4/multiarch.m4: New file.
25739
25740 2008-12-25  Bruno Haible  <bruno@clisp.org>
25741
25742         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25743
25744 2008-12-25  Bruno Haible  <bruno@clisp.org>
25745
25746         * modules/btowc (License): Relicense under LGPLv2+.
25747         * modules/mbsinit (License): Likewise.
25748         * modules/mbrtowc (License): Likewise.
25749         * modules/wcrtomb (License): Likewise.
25750         * modules/streq (License): Likewise.
25751         Reported by David Lutterkort <lutter@redhat.com>.
25752
25753 2008-12-23  Bruno Haible  <bruno@clisp.org>
25754
25755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25756
25757 2008-12-23  Bruno Haible  <bruno@clisp.org>
25758
25759         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25761         GETADDRINFO_LIB, not in LIBS.
25762         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25763         * modules/canon-host (Link): Likewise.
25764         * NEWS: Mention the change.
25765         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25766         GETADDRINFO_LIB.
25767
25768 2008-12-22  Bruno Haible  <bruno@clisp.org>
25769
25770         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25771         * doc/posix-functions/iswalpha_l.texi: Likewise.
25772         * doc/posix-functions/iswblank_l.texi: Likewise.
25773         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25774         * doc/posix-functions/iswctype_l.texi: Likewise.
25775         * doc/posix-functions/iswdigit_l.texi: Likewise.
25776         * doc/posix-functions/iswgraph_l.texi: Likewise.
25777         * doc/posix-functions/iswlower_l.texi: Likewise.
25778         * doc/posix-functions/iswprint_l.texi: Likewise.
25779         * doc/posix-functions/iswpunct_l.texi: Likewise.
25780         * doc/posix-functions/iswspace_l.texi: Likewise.
25781         * doc/posix-functions/iswupper_l.texi: Likewise.
25782         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25783         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25784         * doc/posix-functions/open_wmemstream.texi: Likewise.
25785         * doc/posix-functions/swscanf.texi: Likewise.
25786         * doc/posix-functions/towctrans_l.texi: Likewise.
25787         * doc/posix-functions/towlower.texi: Likewise.
25788         * doc/posix-functions/towlower_l.texi: Likewise.
25789         * doc/posix-functions/towupper.texi: Likewise.
25790         * doc/posix-functions/towupper_l.texi: Likewise.
25791         * doc/posix-functions/vfwprintf.texi: Likewise.
25792         * doc/posix-functions/vfwscanf.texi: Likewise.
25793         * doc/posix-functions/vswscanf.texi: Likewise.
25794         * doc/posix-functions/vwprintf.texi: Likewise.
25795         * doc/posix-functions/vwscanf.texi: Likewise.
25796         * doc/posix-functions/wcpcpy.texi: Likewise.
25797         * doc/posix-functions/wcpncpy.texi: Likewise.
25798         * doc/posix-functions/wcscasecmp.texi: Likewise.
25799         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25800         * doc/posix-functions/wcscoll_l.texi: Likewise.
25801         * doc/posix-functions/wcsdup.texi: Likewise.
25802         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25803         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25804         * doc/posix-functions/wcsnlen.texi: Likewise.
25805         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25806         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25807         * doc/posix-functions/wctrans_l.texi: Likewise.
25808         * doc/posix-functions/wctype_l.texi: Likewise.
25809         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25810         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25811         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25812         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25813         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25814         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25815         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25816         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25817         * doc/glibc-functions/wcschrnul.texi: Likewise.
25818         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25819         * doc/glibc-functions/wcstod_l.texi: Likewise.
25820         * doc/glibc-functions/wcstof_l.texi: Likewise.
25821         * doc/glibc-functions/wcstol_l.texi: Likewise.
25822         * doc/glibc-functions/wcstold_l.texi: Likewise.
25823         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25824         * doc/glibc-functions/wcstoq.texi: Likewise.
25825         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25826         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25827         * doc/glibc-functions/wcstouq.texi: Likewise.
25828         * doc/glibc-functions/wmempcpy.texi: Likewise.
25829
25830 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25831             Eric Blake  <ebb9@byu.net>
25832             Paolo Bonzini  <bonzini@gnu.org>
25833             Bruno Haible  <bruno@clisp.org>
25834
25835         Make c-stack work on Haiku.
25836         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25837         (c_stack_action): Use SA_ONSTACK flag.
25838
25839 2008-12-22  Bruno Haible  <bruno@clisp.org>
25840
25841         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25842
25843 2008-12-22  Bruno Haible  <bruno@clisp.org>
25844
25845         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25846         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25847         being overridden.
25848         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25849         New macros.
25850         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25852         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25853         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25854
25855 2008-12-22  Bruno Haible  <bruno@clisp.org>
25856
25857         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25858         from test code.
25859
25860 2008-12-22  Eric Blake  <ebb9@byu.net>
25861
25862         Avoid gcc warnings on cygwin.
25863         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25864         Avoid unused variable.
25865         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25866         Likewise.
25867
25868 2008-12-22  Bruno Haible  <bruno@clisp.org>
25869
25870         Remove HAVE_MBRTOWC conditionals.
25871         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25872         (mbscasecmp): Assume mbrtowc function.
25873         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25874         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25875         * lib/mbschr.c: Include mbuiter.h unconditionally.
25876         (mbschr): Assume mbrtowc function.
25877         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25878         (mbscspn): Assume mbrtowc function.
25879         * lib/mbslen.c: Include mbuiter.h unconditionally.
25880         (mbslen): Assume mbrtowc function.
25881         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25882         (mbsncasecmp): Assume mbrtowc function.
25883         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25884         (mbsnlen): Assume mbrtowc function.
25885         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25886         (mbspbrk): Assume mbrtowc function.
25887         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25888         (mbspcasecmp): Assume mbrtowc function.
25889         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25890         (mbsrchr): Assume mbrtowc function.
25891         * lib/mbssep.c: Include mbuiter.h unconditionally.
25892         (mbssep): Assume mbrtowc function.
25893         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25894         (mbsspn): Assume mbrtowc function.
25895         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25896         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25897         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25898         (mbstok_r): Assume mbrtowc function.
25899         * lib/propername.c: Include mbuiter.h unconditionally.
25900         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25901         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25902         (trim2): Assume mbrtowc function.
25903         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25904         (mbsnwidth): Assume mbrtowc function.
25905         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25906         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25907         fallback definitions.
25908         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25909
25910 2008-12-22  Bruno Haible  <bruno@clisp.org>
25911
25912         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25913
25914 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25915
25916         * modules/regex: Request emulations for the mb*/wc* functions we need.
25917         * m4/regex.m4: Don't look for those functions here.
25918         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25919
25920 2008-12-22  Bruno Haible  <bruno@clisp.org>
25921
25922         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25923
25924 2008-12-21  Bruno Haible  <bruno@clisp.org>
25925
25926         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25927         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25928         (Include): Remove conditionalization.
25929         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25930         (Include): Remove conditionalization.
25931         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25932         (Include): Remove conditionalization.
25933         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25934         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25935         * NEWS: Mention the change.
25936         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25937         via Sergey Poznyakoff <gray@gnu.org.ua>.
25938
25939 2008-12-21  Bruno Haible  <bruno@clisp.org>
25940
25941         * MODULES.html.sh (Extended multibyte and wide character utilities
25942         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25943         wcrtomb, wcsrtombs.
25944         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25945         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25946         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25947         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25948
25949 2008-12-21  Bruno Haible  <bruno@clisp.org>
25950
25951         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25952
25953 2008-12-21  Bruno Haible  <bruno@clisp.org>
25954
25955         * modules/wcsnrtombs-tests: New file.
25956         * tests/test-wcsnrtombs1.sh: New file.
25957         * tests/test-wcsnrtombs2.sh: New file.
25958         * tests/test-wcsnrtombs3.sh: New file.
25959         * tests/test-wcsnrtombs4.sh: New file.
25960         * tests/test-wcsnrtombs.c: New file.
25961
25962         New module 'wcsnrtombs'.
25963         * lib/wchar.in.h (wcsnrtombs): New declaration.
25964         * lib/wcsnrtombs.c: New file.
25965         * lib/wcsrtombs-state.c: New file.
25966         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25967         (internal_state): Remove variable.
25968         * m4/wcsnrtombs.m4: New file.
25969         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25970         compilation units.
25971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25972         HAVE_WCSNRTOMBS.
25973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25974         HAVE_WCSNRTOMBS.
25975         * modules/wcsnrtombs: New file.
25976         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
25977         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
25978
25979 2008-12-21  Bruno Haible  <bruno@clisp.org>
25980
25981         * modules/wcsrtombs-tests: New file.
25982         * tests/test-wcsrtombs1.sh: New file.
25983         * tests/test-wcsrtombs2.sh: New file.
25984         * tests/test-wcsrtombs3.sh: New file.
25985         * tests/test-wcsrtombs4.sh: New file.
25986         * tests/test-wcsrtombs.c: New file.
25987
25988         New module 'wcsrtombs'.
25989         * lib/wchar.in.h (wcsrtombs): New declaration.
25990         * lib/wcsrtombs.c: New file.
25991         * m4/wcsrtombs.m4: New file.
25992         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25993         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25994         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25995         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25996         * modules/wcsrtombs: New file.
25997         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25998         bugs.
25999
26000 2008-12-21  Bruno Haible  <bruno@clisp.org>
26001
26002         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
26003         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
26004         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
26005         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
26006         if not correct.
26007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
26008         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
26009         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26010         m4/locale-zh.m4, m4/codeset.m4.
26011         * doc/posix-functions/wcrtomb.texi: Document the bug.
26012
26013 2008-12-21  Bruno Haible  <bruno@clisp.org>
26014
26015         Work around a btowc() bug on IRIX 6.5.
26016         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
26017         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
26018         REPLACE_WTOBC if not.
26019         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
26020         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
26021         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
26022
26023 2008-12-21  Bruno Haible  <bruno@clisp.org>
26024
26025         * modules/wcrtomb-tests: New file.
26026         * tests/test-wcrtomb.sh: New file.
26027         * tests/test-wcrtomb.c: New file.
26028
26029         New module 'wcrtomb'.
26030         * lib/wchar.in.h (wcrtomb): New declaration.
26031         * lib/wcrtomb.c: New file.
26032         * m4/wcrtomb.m4: New file.
26033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
26034         HAVE_WCRTOMB.
26035         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
26036         HAVE_WCRTOMB.
26037         * modules/wcrtomb: New file.
26038         * doc/posix-functions/wcrtomb.texi: Mention the new module.
26039
26040 2008-12-21  Bruno Haible  <bruno@clisp.org>
26041
26042         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
26043         * modules/mbsrtowcs (Files): Likewise.
26044         * modules/wctob (Files): Likewise.
26045         * modules/c-strcase-tests (Files): Likewise.
26046         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26047         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26048         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26049         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26050         * modules/vasnprintf-posix-tests (Files): Likewise.
26051
26052 2008-12-21  William Pursell  <bill.pursell@gmail.com>
26053
26054         gitlog-to-changelog: pass all command-line arguments to git-log
26055         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
26056         it is sometimes convenient to filter the commits in various ways.
26057         gitlog-to-changelog only allows --since to specify a start date,
26058         but git-log itself supports many other filtering mechanisms.
26059         At the moment, I want to filter by branch name.  Rather than
26060         adding a --branch option to gitlog-to-changelog, it seems more
26061         flexible to simply pass all options directly to git-log and let
26062         git do the work.  Notice that this effectively makes --since a
26063         redundant option for gitlog-to-changelog, but removing it would
26064         require current usage to change since calls would then require
26065         an additional '--'.
26066
26067 2008-12-21  Bruno Haible  <bruno@clisp.org>
26068
26069         * modules/mbsnrtowcs-tests: New file.
26070         * tests/test-mbsnrtowcs1.sh: New file.
26071         * tests/test-mbsnrtowcs2.sh: New file.
26072         * tests/test-mbsnrtowcs3.sh: New file.
26073         * tests/test-mbsnrtowcs4.sh: New file.
26074         * tests/test-mbsnrtowcs.c: New file.
26075
26076         New module 'mbsnrtowcs'.
26077         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26078         * lib/mbsnrtowcs.c: New file.
26079         * lib/mbsrtowcs-state.c: New file.
26080         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26081         (internal_state): Remove variable.
26082         * m4/mbsnrtowcs.m4: New file.
26083         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26084         compilation units.
26085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26086         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26087         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26088         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26089         * modules/mbsnrtowcs: New file.
26090         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26091         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26092         portability problem.
26093
26094 2008-12-21  Bruno Haible  <bruno@clisp.org>
26095
26096         Work around mbsrtowcs bug.
26097         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26098         (gl_FUNC_MBSRTOWCS): Invoke it.
26099         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26100         m4/locale-zh.m4.
26101         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26102
26103 2008-12-21  Bruno Haible  <bruno@clisp.org>
26104
26105         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26106
26107 2008-12-21  Bruno Haible  <bruno@clisp.org>
26108
26109         Update doc for AIX.
26110         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26111         16-bit wchar_t type.
26112         * doc/posix-functions/btowc.texi: Likewise.
26113         * doc/posix-functions/fgetwc.texi: Likewise.
26114         * doc/posix-functions/fgetws.texi: Likewise.
26115         * doc/posix-functions/fputwc.texi: Likewise.
26116         * doc/posix-functions/fputws.texi: Likewise.
26117         * doc/posix-functions/fwide.texi: Likewise.
26118         * doc/posix-functions/fwprintf.texi: Likewise.
26119         * doc/posix-functions/fwscanf.texi: Likewise.
26120         * doc/posix-functions/getwchar.texi: Likewise.
26121         * doc/posix-functions/getwc.texi: Likewise.
26122         * doc/posix-functions/iswalnum.texi: Likewise.
26123         * doc/posix-functions/iswalpha.texi: Likewise.
26124         * doc/posix-functions/iswblank.texi: Likewise.
26125         * doc/posix-functions/iswcntrl.texi: Likewise.
26126         * doc/posix-functions/iswctype.texi: Likewise.
26127         * doc/posix-functions/iswdigit.texi: Likewise.
26128         * doc/posix-functions/iswgraph.texi: Likewise.
26129         * doc/posix-functions/iswlower.texi: Likewise.
26130         * doc/posix-functions/iswprint.texi: Likewise.
26131         * doc/posix-functions/iswpunct.texi: Likewise.
26132         * doc/posix-functions/iswspace.texi: Likewise.
26133         * doc/posix-functions/iswupper.texi: Likewise.
26134         * doc/posix-functions/iswxdigit.texi: Likewise.
26135         * doc/posix-functions/mbrtowc.texi: Likewise.
26136         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26137         * doc/posix-functions/mbstowcs.texi: Likewise.
26138         * doc/posix-functions/mbtowc.texi: Likewise.
26139         * doc/posix-functions/putwchar.texi: Likewise.
26140         * doc/posix-functions/putwc.texi: Likewise.
26141         * doc/posix-functions/swprintf.texi: Likewise.
26142         * doc/posix-functions/tolower.texi: Likewise.
26143         * doc/posix-functions/toupper.texi: Likewise.
26144         * doc/posix-functions/towctrans.texi: Likewise.
26145         * doc/posix-functions/ungetwc.texi: Likewise.
26146         * doc/posix-functions/vswprintf.texi: Likewise.
26147         * doc/posix-functions/wcrtomb.texi: Likewise.
26148         * doc/posix-functions/wcscat.texi: Likewise.
26149         * doc/posix-functions/wcschr.texi: Likewise.
26150         * doc/posix-functions/wcscmp.texi: Likewise.
26151         * doc/posix-functions/wcscoll.texi: Likewise.
26152         * doc/posix-functions/wcscpy.texi: Likewise.
26153         * doc/posix-functions/wcscspn.texi: Likewise.
26154         * doc/posix-functions/wcsftime.texi: Likewise.
26155         * doc/posix-functions/wcslen.texi: Likewise.
26156         * doc/posix-functions/wcsncat.texi: Likewise.
26157         * doc/posix-functions/wcsncmp.texi: Likewise.
26158         * doc/posix-functions/wcsncpy.texi: Likewise.
26159         * doc/posix-functions/wcspbrk.texi: Likewise.
26160         * doc/posix-functions/wcsrchr.texi: Likewise.
26161         * doc/posix-functions/wcsrtombs.texi: Likewise.
26162         * doc/posix-functions/wcsspn.texi: Likewise.
26163         * doc/posix-functions/wcsstr.texi: Likewise.
26164         * doc/posix-functions/wcstod.texi: Likewise.
26165         * doc/posix-functions/wcstof.texi: Likewise.
26166         * doc/posix-functions/wcstoimax.texi: Likewise.
26167         * doc/posix-functions/wcstok.texi: Likewise.
26168         * doc/posix-functions/wcstold.texi: Likewise.
26169         * doc/posix-functions/wcstoll.texi: Likewise.
26170         * doc/posix-functions/wcstol.texi: Likewise.
26171         * doc/posix-functions/wcstombs.texi: Likewise.
26172         * doc/posix-functions/wcstoull.texi: Likewise.
26173         * doc/posix-functions/wcstoul.texi: Likewise.
26174         * doc/posix-functions/wcstoumax.texi: Likewise.
26175         * doc/posix-functions/wcswidth.texi: Likewise.
26176         * doc/posix-functions/wcsxfrm.texi: Likewise.
26177         * doc/posix-functions/wctob.texi: Likewise.
26178         * doc/posix-functions/wctomb.texi: Likewise.
26179         * doc/posix-functions/wctrans.texi: Likewise.
26180         * doc/posix-functions/wctype.texi: Likewise.
26181         * doc/posix-functions/wcwidth.texi: Likewise.
26182         * doc/posix-functions/wmemchr.texi: Likewise.
26183         * doc/posix-functions/wmemcmp.texi: Likewise.
26184         * doc/posix-functions/wmemcpy.texi: Likewise.
26185         * doc/posix-functions/wmemmove.texi: Likewise.
26186         * doc/posix-functions/wmemset.texi: Likewise.
26187         * doc/posix-functions/wprintf.texi: Likewise.
26188         * doc/posix-functions/wscanf.texi: Likewise.
26189
26190 2008-12-21  Bruno Haible  <bruno@clisp.org>
26191
26192         Update doc for HP-UX 11.11.
26193         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26194         in HP-UX version 11.00, not in all versions of HP-UX 11.
26195         * doc/posix-functions/fwide.texi: Likewise.
26196         * doc/posix-functions/fwprintf.texi: Likewise.
26197         * doc/posix-functions/fwscanf.texi: Likewise.
26198         * doc/posix-functions/inet_ntop.texi: Likewise.
26199         * doc/posix-functions/inet_pton.texi: Likewise.
26200         * doc/posix-functions/mbrlen.texi: Likewise.
26201         * doc/posix-functions/mbrtowc.texi: Likewise.
26202         * doc/posix-functions/mbsinit.texi: Likewise.
26203         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26204         * doc/posix-functions/swprintf.texi: Likewise.
26205         * doc/posix-functions/swscanf.texi: Likewise.
26206         * doc/posix-functions/towctrans.texi: Likewise.
26207         * doc/posix-functions/vfwprintf.texi: Likewise.
26208         * doc/posix-functions/vswprintf.texi: Likewise.
26209         * doc/posix-functions/vwprintf.texi: Likewise.
26210         * doc/posix-functions/wcrtomb.texi: Likewise.
26211         * doc/posix-functions/wcsrtombs.texi: Likewise.
26212         * doc/posix-functions/wcsstr.texi: Likewise.
26213         * doc/posix-functions/wctob.texi: Likewise.
26214         * doc/posix-functions/wctrans.texi: Likewise.
26215         * doc/posix-functions/wmemchr.texi: Likewise.
26216         * doc/posix-functions/wmemcmp.texi: Likewise.
26217         * doc/posix-functions/wmemcpy.texi: Likewise.
26218         * doc/posix-functions/wmemmove.texi: Likewise.
26219         * doc/posix-functions/wmemset.texi: Likewise.
26220         * doc/posix-functions/wprintf.texi: Likewise.
26221         * doc/posix-functions/wscanf.texi: Likewise.
26222
26223 2008-12-21  Bruno Haible  <bruno@clisp.org>
26224
26225         Work around a portability problem.
26226         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26227         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26228
26229 2008-12-20  Bruno Haible  <bruno@clisp.org>
26230
26231         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26232         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26233         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26235         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26236
26237         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26238         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26239         set.
26240         (GNULIB_defined_mbstate_t): New macro.
26241         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26242         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26243         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26244         reuses the system's mbrtowc function but works around the bugs.
26245         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26246         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26247         macros.
26248         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26249         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26250         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26251         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26252         REPLACE_MBSINIT if mbsinit needs to be overridden.
26253         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26254         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26255         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26256         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26257         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26258         m4/locale-zh.m4.
26259         (Depends): Add mbsinit.
26260         * modules/mbsinit (Depends): Add mbrtowc.
26261         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26262
26263 2008-12-20  Bruno Haible  <bruno@clisp.org>
26264
26265         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26266         so that there are no conversion errors on AIX.
26267         * tests/test-mbsrtowcs.c (main): LIkewise.
26268
26269 2008-12-20  Bruno Haible  <bruno@clisp.org>
26270
26271         Work around wctob bug on Solaris <= 9.
26272         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26273         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26274         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26275         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26276         * modules/wctob (Files): Add m4/locale-fr.m4.
26277         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26278
26279 2008-12-20  Bruno Haible  <bruno@clisp.org>
26280
26281         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26282         /dev/null.
26283         * tests/test-select-in.sh: Likewise.
26284         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26285
26286 2008-12-20  Bruno Haible  <bruno@clisp.org>
26287
26288         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26289         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26290         Cygwin 1.5.x.
26291
26292 2008-12-20  Bruno Haible  <bruno@clisp.org>
26293
26294         Ensure mbstate_t is defined on HP-UX 11.11.
26295         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26296         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26297         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26298         AC_USE_SYSTEM_EXTENSIONS.
26299         * modules/fnmatch (Depends-on): Add extensions.
26300         * modules/mbrlen (Depends-on): Likewise.
26301         * modules/mbrtowc (Depends-on): Likewise.
26302         * modules/mbsinit (Depends-on): Likewise.
26303         * modules/mbsrtowcs (Depends-on): Likewise.
26304         * modules/mbswidth (Depends-on): Likewise.
26305         * modules/quotearg (Depends-on): Likewise.
26306         * modules/strftime (Depends-on): Likewise.
26307
26308 2008-12-20  Bruno Haible  <bruno@clisp.org>
26309
26310         Ensure wctob is declared on IRIX 6.5.
26311         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26312         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26313         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26315         of HAVE_WCTOB.
26316         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26317         HAVE_WCTOB.
26318         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26319
26320 2008-12-19  Bruno Haible  <bruno@clisp.org>
26321
26322         * modules/mbsrtowcs-tests: New file.
26323         * tests/test-mbsrtowcs1.sh: New file.
26324         * tests/test-mbsrtowcs2.sh: New file.
26325         * tests/test-mbsrtowcs3.sh: New file.
26326         * tests/test-mbsrtowcs4.sh: New file.
26327         * tests/test-mbsrtowcs.c: New file.
26328
26329         New module 'mbsrtowcs'.
26330         * lib/wchar.in.h (mbsrtowcs): New declaration.
26331         * lib/mbsrtowcs.c: New file.
26332         * m4/mbsrtowcs.m4: New file.
26333         * modules/mbsrtowcs: New file.
26334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26335         HAVE_MBSRTOWCS.
26336         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26337         HAVE_MBSRTOWCS.
26338         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26339
26340 2008-12-19  Bruno Haible  <bruno@clisp.org>
26341
26342         New module 'mbrlen'.
26343         * lib/wchar.in.h (mbrlen): New declaration.
26344         * lib/mbrlen.c: New file.
26345         * m4/mbrlen.m4: New file.
26346         * modules/mbrlen: New file.
26347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26348         HAVE_MBRLEN.
26349         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26350         HAVE_MBRLEN.
26351         * doc/posix-functions/mbrlen.texi: Document the new module.
26352
26353 2008-12-19  Bruno Haible  <bruno@clisp.org>
26354
26355         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26356         * modules/mbrtowc (Depends-on): Add verify.
26357         Suggested by Paul Eggert.
26358
26359 2008-12-18  Bruno Haible  <bruno@clisp.org>
26360
26361         * modules/mbsinit-tests: New file.
26362         * tests/test-mbsinit.sh: New file.
26363         * tests/test-mbsinit.c: New file.
26364
26365 2008-12-18  Bruno Haible  <bruno@clisp.org>
26366
26367         * modules/mbrtowc-tests: New file.
26368         * tests/test-mbrtowc1.sh: New file.
26369         * tests/test-mbrtowc2.sh: New file.
26370         * tests/test-mbrtowc3.sh: New file.
26371         * tests/test-mbrtowc4.sh: New file.
26372         * tests/test-mbrtowc.c: New file.
26373
26374         New module 'mbrtowc'.
26375         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26376         mbsinit and mbrtowc.
26377         (mbrtowc): New declaration.
26378         * lib/mbrtowc.c: New file.
26379         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26380         * modules/mbrtowc: New file.
26381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26382         HAVE_MBRTOWC.
26383         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26384         HAVE_MBRTOWC.
26385         * doc/posix-functions/mbrtowc.texi: Document the new module.
26386
26387 2008-12-18  Bruno Haible  <bruno@clisp.org>
26388
26389         New module 'wctob'.
26390         * lib/wchar.in.h (wctob): New declaration.
26391         * lib/wctob.c: New file.
26392         * m4/wctob.m4: New file.
26393         * modules/wctob: New file.
26394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26395         HAVE_WCTOB.
26396         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26397         * doc/posix-functions/wctob.texi: Document the new module.
26398
26399 2008-12-18  Bruno Haible  <bruno@clisp.org>
26400
26401         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26402         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26403
26404 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26405
26406         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26407         G. Christensen" <tgc@jupiterrise.com>.
26408
26409         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26410         G. Christensen" <tgc@jupiterrise.com>.
26411
26412         * lib/flock.c: Need to include string.h.  Reported by "Tom
26413         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26414         <ebb9@byu.net>.
26415
26416 2008-12-18  Bruno Haible  <bruno@clisp.org>
26417
26418         * m4/locale-ja.m4: New file, from GNU gettext.
26419
26420 2008-12-17  Bruno Haible  <bruno@clisp.org>
26421
26422         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26423         Suggested by Eric Blake.
26424
26425 2008-12-17  Bruno Haible  <bruno@clisp.org>
26426
26427         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26428
26429 2008-12-17  Bruno Haible  <bruno@clisp.org>
26430
26431         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26432         * modules/mbsinit (Depends-on): Add verify.
26433         Suggested by Paul Eggert.
26434
26435 2008-12-17  Bruno Haible  <bruno@clisp.org>
26436
26437         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26438         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26439         gl_FUNC_MBRTOWC.
26440         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26441         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26442         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26443         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26444         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26445         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26446         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26447         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26448         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26449         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26450         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26451         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26452         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26453         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26454         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26455         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26456         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26457         * modules/trim (configure.ac): Likewise.
26458
26459 2008-12-17  Bruno Haible  <bruno@clisp.org>
26460
26461         * modules/btowc-tests: New file.
26462         * tests/test-btowc1.sh: New file.
26463         * tests/test-btowc2.sh: New file.
26464         * tests/test-btowc.c: New file.
26465
26466         New module 'btowc'.
26467         * lib/wchar.in.h (btowc): New declaration.
26468         * lib/btowc.c: New file.
26469         * m4/btowc.m4: New file.
26470         * modules/btowc: New file.
26471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26472         HAVE_BTOWC.
26473         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26474         * doc/posix-functions/btowc.texi: Document the new module.
26475
26476 2008-12-17  Bruno Haible  <bruno@clisp.org>
26477
26478         New module 'mbsinit'.
26479         * lib/wchar.in.h (mbsinit): New declaration.
26480         * lib/mbsinit.c: New file.
26481         * m4/mbsinit.m4: New file.
26482         * modules/mbsinit: New file.
26483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26484         HAVE_MBSINIT.
26485         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26486         HAVE_MBSINIT.
26487         * doc/posix-functions/mbsinit.texi: Document the new module.
26488
26489 2008-12-16  Bruno Haible  <bruno@clisp.org>
26490
26491         * lib/unistd.in.h: Add comment.
26492         * tests/test-environ.c: Don't include <stdlib.h>.
26493
26494 2008-12-16  Bruno Haible  <bruno@clisp.org>
26495
26496         * lib/parse-duration.h (parse_duration): Document return value
26497         convention.
26498         * lib/parse-duration.c: Include specification header first. Add
26499         comments.
26500         (_): Remove macro.
26501         (parse_year_month_day, parse_hour_minute_second): Move side effects
26502         outside of strchr call.
26503         (parse_non_iso8601): Move side effects outside of isspace call.
26504         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26505         call.
26506
26507 2008-12-16  Bruno Haible  <bruno@clisp.org>
26508
26509         * tests/test-parse-duration.sh: Produce no output when the test
26510         succeeds.
26511
26512 2008-12-16  Bruno Haible  <bruno@clisp.org>
26513
26514         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26515         expressions.
26516
26517 2008-12-15  Bruno Haible  <bruno@clisp.org>
26518
26519         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26520         * doc/glibc-functions/flistxattr.texi: Likewise.
26521         * doc/glibc-functions/fopencookie.texi: Likewise.
26522         * doc/glibc-functions/fremovexattr.texi: Likewise.
26523         * doc/glibc-functions/fsetxattr.texi: Likewise.
26524         * doc/glibc-functions/getxattr.texi: Likewise.
26525         * doc/glibc-functions/lgetxattr.texi: Likewise.
26526         * doc/glibc-functions/listxattr.texi: Likewise.
26527         * doc/glibc-functions/llistxattr.texi: Likewise.
26528         * doc/glibc-functions/lremovexattr.texi: Likewise.
26529         * doc/glibc-functions/lsetxattr.texi: Likewise.
26530         * doc/glibc-functions/removexattr.texi: Likewise.
26531         * doc/glibc-functions/setxattr.texi: Likewise.
26532         * doc/posix-functions/open_memstream.texi: Likewise.
26533
26534 2008-12-15  Eric Blake  <ebb9@byu.net>
26535
26536         Update doc for cygwin 1.7.
26537         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26538         functions.
26539         * doc/posix-functions/fchmodat.texi: Likewise.
26540         * doc/posix-functions/fchownat.texi: Likewise.
26541         * doc/posix-functions/fdopendir.texi: Likewise.
26542         * doc/posix-functions/fmemopen.texi: Likewise.
26543         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26544         * doc/posix-functions/fstatat.texi: Likewise.
26545         * doc/posix-functions/futimens.texi: Likewise.
26546         * doc/posix-functions/gai_strerror.texi: Likewise.
26547         * doc/posix-functions/getaddrinfo.texi: Likewise.
26548         * doc/posix-functions/getnameinfo.texi: Likewise.
26549         * doc/posix-functions/if_freenameindex.texi: Likewise.
26550         * doc/posix-functions/if_indextoname.texi: Likewise.
26551         * doc/posix-functions/if_nameindex.texi: Likewise.
26552         * doc/posix-functions/if_nametoindex.texi: Likewise.
26553         * doc/posix-functions/insque.texi: Likewise.
26554         * doc/posix-functions/linkat.texi: Likewise.
26555         * doc/posix-functions/llrint.texi: Likewise.
26556         * doc/posix-functions/llrintf.texi: Likewise.
26557         * doc/posix-functions/llrintl.texi: Likewise.
26558         * doc/posix-functions/lockf.texi: Likewise.
26559         * doc/posix-functions/lrintl.texi: Likewise.
26560         * doc/posix-functions/mkdirat.texi: Likewise.
26561         * doc/posix-functions/mkfifoat.texi: Likewise.
26562         * doc/posix-functions/mknodat.texi: Likewise.
26563         * doc/posix-functions/mq_close.texi: Likewise.
26564         * doc/posix-functions/mq_getattr.texi: Likewise.
26565         * doc/posix-functions/mq_notify.texi: Likewise.
26566         * doc/posix-functions/mq_open.texi: Likewise.
26567         * doc/posix-functions/mq_receive.texi: Likewise.
26568         * doc/posix-functions/mq_send.texi: Likewise.
26569         * doc/posix-functions/mq_setattr.texi: Likewise.
26570         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26571         * doc/posix-functions/mq_timedsend.texi: Likewise.
26572         * doc/posix-functions/mq_unlink.texi: Likewise.
26573         * doc/posix-functions/open_memstream.texi: Likewise.
26574         * doc/posix-functions/openat.texi: Likewise.
26575         * doc/posix-functions/posix_fadvise.texi: Likewise.
26576         * doc/posix-functions/posix_fallocate.texi: Likewise.
26577         * doc/posix-functions/posix_madvise.texi: Likewise.
26578         * doc/posix-functions/posix_memalign.texi: Likewise.
26579         * doc/posix-functions/posix_openpt.texi: Likewise.
26580         * doc/posix-functions/readlinkat.texi: Likewise.
26581         * doc/posix-functions/remque.texi: Likewise.
26582         * doc/posix-functions/renameat.texi: Likewise.
26583         * doc/posix-functions/rintl.texi: Likewise.
26584         * doc/posix-functions/sem_unlink.texi: Likewise.
26585         * doc/posix-functions/shm_open.texi: Likewise.
26586         * doc/posix-functions/shm_unlink.texi: Likewise.
26587         * doc/posix-functions/signgam.texi: Likewise.
26588         * doc/posix-functions/sigset.texi: Likewise.
26589         * doc/posix-functions/stpcpy.texi: Likewise.
26590         * doc/posix-functions/stpncpy.texi: Likewise.
26591         * doc/posix-functions/strerror.texi: Likewise.
26592         * doc/posix-functions/strtod.texi: Likewise.
26593         * doc/posix-functions/symlinkat.texi: Likewise.
26594         * doc/posix-functions/unlinkat.texi: Likewise.
26595         * doc/posix-functions/utimensat.texi: Likewise.
26596         * doc/glibc-functions/bindresvport.texi: Likewise.
26597         * doc/glibc-functions/dn_expand.texi: Likewise.
26598         * doc/glibc-functions/exp10.texi: Likewise.
26599         * doc/glibc-functions/exp10f.texi: Likewise.
26600         * doc/glibc-functions/fgetxattr.texi: Likewise.
26601         * doc/glibc-functions/flistxattr.texi: Likewise.
26602         * doc/glibc-functions/fopencookie.texi: Likewise.
26603         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26604         * doc/glibc-functions/fremovexattr.texi: Likewise.
26605         * doc/glibc-functions/fsetxattr.texi: Likewise.
26606         * doc/glibc-functions/getifaddrs.texi: Likewise.
26607         * doc/glibc-functions/getxattr.texi: Likewise.
26608         * doc/glibc-functions/lgetxattr.texi: Likewise.
26609         * doc/glibc-functions/listxattr.texi: Likewise.
26610         * doc/glibc-functions/llistxattr.texi: Likewise.
26611         * doc/glibc-functions/lremovexattr.texi: Likewise.
26612         * doc/glibc-functions/lsetxattr.texi: Likewise.
26613         * doc/glibc-functions/pow10.texi: Likewise.
26614         * doc/glibc-functions/pow10f.texi: Likewise.
26615         * doc/glibc-functions/rcmd_af.texi: Likewise.
26616         * doc/glibc-functions/removexattr.texi: Likewise.
26617         * doc/glibc-functions/res_init.texi: Likewise.
26618         * doc/glibc-functions/res_mkquery.texi: Likewise.
26619         * doc/glibc-functions/res_query.texi: Likewise.
26620         * doc/glibc-functions/res_querydomain.texi: Likewise.
26621         * doc/glibc-functions/res_send.texi: Likewise.
26622         * doc/glibc-functions/rresvport_af.texi: Likewise.
26623         * doc/glibc-functions/setxattr.texi: Likewise.
26624         * doc/glibc-functions/strcasestr.texi: Likewise.
26625
26626 2008-12-15  Bruno Haible  <bruno@clisp.org>
26627
26628         Fix compilation error on OSF/1 4.0.
26629         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26630         <sys/time.h>, simply delegate to the system header.
26631         Reported by Daniel Richard G. <oss@teragram.com>.
26632
26633 2008-12-15  Bruno Haible  <bruno@clisp.org>
26634
26635         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26636         * doc/posix-functions/fchmodat.texi: Likewise.
26637         * doc/posix-functions/fchownat.texi: Likewise.
26638         * doc/posix-functions/fdopendir.texi: Likewise.
26639         * doc/posix-functions/fstatat.texi: Likewise.
26640         * doc/posix-functions/mkdirat.texi: Likewise.
26641         * doc/posix-functions/unlinkat.texi: Likewise.
26642
26643 2008-12-14  Bruno Haible  <bruno@clisp.org>
26644
26645         Update doc for POSIX:2008.
26646         * doc/posix-functions/faccessat.texi: New file.
26647         * doc/posix-functions/fchmodat.texi: New file.
26648         * doc/posix-functions/fchownat.texi: New file.
26649         * doc/posix-functions/fdopendir.texi: New file.
26650         * doc/posix-functions/fstatat.texi: New file.
26651         * doc/posix-functions/futimens.texi: New file.
26652         * doc/posix-functions/linkat.texi: New file.
26653         * doc/posix-functions/mkdirat.texi: New file.
26654         * doc/posix-functions/mkfifoat.texi: New file.
26655         * doc/posix-functions/mknodat.texi: New file.
26656         * doc/posix-functions/open_wmemstream.texi: New file.
26657         * doc/posix-functions/openat.texi: New file.
26658         * doc/posix-functions/psiginfo.texi: New file.
26659         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26660         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26661         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26662         * doc/posix-functions/readlinkat.texi: New file.
26663         * doc/posix-functions/renameat.texi: New file.
26664         * doc/posix-functions/strerror_l.texi: New file.
26665         * doc/posix-functions/symlinkat.texi: New file.
26666         * doc/posix-functions/unlinkat.texi: New file.
26667         * doc/posix-functions/utimensat.texi: New file.
26668         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26669
26670 2008-12-14  Bruno Haible  <bruno@clisp.org>
26671
26672         Update doc for POSIX:2008.
26673         * doc/posix-functions/alphasort.texi: Renamed from
26674         doc/glibc-functions/alphasort.texi.
26675         * doc/posix-functions/dirfd.texi: Renamed from
26676         doc/glibc-functions/dirfd.texi.
26677         * doc/posix-functions/dprintf.texi: Renamed from
26678         doc/glibc-functions/dprintf.texi.
26679         * doc/posix-functions/duplocale.texi: Renamed from
26680         doc/glibc-functions/duplocale.texi.
26681         * doc/posix-functions/fexecve.texi: Renamed from
26682         doc/glibc-functions/fexecve.texi.
26683         * doc/posix-functions/fmemopen.texi: Renamed from
26684         doc/glibc-functions/fmemopen.texi.
26685         * doc/posix-functions/freelocale.texi: Renamed from
26686         doc/glibc-functions/freelocale.texi.
26687         * doc/posix-functions/getdate_err.texi: Renamed from
26688         doc/glibc-functions/getdate_err.texi.
26689         * doc/posix-functions/isalnum_l.texi: Renamed from
26690         doc/glibc-functions/isalnum_l.texi.
26691         * doc/posix-functions/isalpha_l.texi: Renamed from
26692         doc/glibc-functions/isalpha_l.texi.
26693         * doc/posix-functions/isblank_l.texi: Renamed from
26694         doc/glibc-functions/isblank_l.texi.
26695         * doc/posix-functions/iscntrl_l.texi: Renamed from
26696         doc/glibc-functions/iscntrl_l.texi.
26697         * doc/posix-functions/isdigit_l.texi: Renamed from
26698         doc/glibc-functions/isdigit_l.texi.
26699         * doc/posix-functions/isgraph_l.texi: Renamed from
26700         doc/glibc-functions/isgraph_l.texi.
26701         * doc/posix-functions/islower_l.texi: Renamed from
26702         doc/glibc-functions/islower_l.texi.
26703         * doc/posix-functions/isprint_l.texi: Renamed from
26704         doc/glibc-functions/isprint_l.texi.
26705         * doc/posix-functions/ispunct_l.texi: Renamed from
26706         doc/glibc-functions/ispunct_l.texi.
26707         * doc/posix-functions/isspace_l.texi: Renamed from
26708         doc/glibc-functions/isspace_l.texi.
26709         * doc/posix-functions/isupper_l.texi: Renamed from
26710         doc/glibc-functions/isupper_l.texi.
26711         * doc/posix-functions/iswalnum_l.texi: Renamed from
26712         doc/glibc-functions/iswalnum_l.texi.
26713         * doc/posix-functions/iswalpha_l.texi: Renamed from
26714         doc/glibc-functions/iswalpha_l.texi.
26715         * doc/posix-functions/iswblank_l.texi: Renamed from
26716         doc/glibc-functions/iswblank_l.texi.
26717         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26718         doc/glibc-functions/iswcntrl_l.texi.
26719         * doc/posix-functions/iswctype_l.texi: Renamed from
26720         doc/glibc-functions/iswctype_l.texi.
26721         * doc/posix-functions/iswdigit_l.texi: Renamed from
26722         doc/glibc-functions/iswdigit_l.texi.
26723         * doc/posix-functions/iswgraph_l.texi: Renamed from
26724         doc/glibc-functions/iswgraph_l.texi.
26725         * doc/posix-functions/iswlower_l.texi: Renamed from
26726         doc/glibc-functions/iswlower_l.texi.
26727         * doc/posix-functions/iswprint_l.texi: Renamed from
26728         doc/glibc-functions/iswprint_l.texi.
26729         * doc/posix-functions/iswpunct_l.texi: Renamed from
26730         doc/glibc-functions/iswpunct_l.texi.
26731         * doc/posix-functions/iswspace_l.texi: Renamed from
26732         doc/glibc-functions/iswspace_l.texi.
26733         * doc/posix-functions/iswupper_l.texi: Renamed from
26734         doc/glibc-functions/iswupper_l.texi.
26735         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26736         doc/glibc-functions/iswxdigit_l.texi.
26737         * doc/posix-functions/isxdigit_l.texi: Renamed from
26738         doc/glibc-functions/isxdigit_l.texi.
26739         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26740         doc/glibc-functions/mbsnrtowcs.texi.
26741         * doc/posix-functions/mkdtemp.texi: Renamed from
26742         doc/glibc-functions/mkdtemp.texi.
26743         * doc/posix-functions/newlocale.texi: Renamed from
26744         doc/glibc-functions/newlocale.texi.
26745         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26746         doc/glibc-functions/nl_langinfo_l.texi.
26747         * doc/posix-functions/open_memstream.texi: Renamed from
26748         doc/glibc-functions/open_memstream.texi.
26749         * doc/posix-functions/opterr.texi: Renamed from
26750         doc/glibc-functions/opterr.texi.
26751         * doc/posix-functions/optind.texi: Renamed from
26752         doc/glibc-functions/optind.texi.
26753         * doc/posix-functions/optopt.texi: Renamed from
26754         doc/glibc-functions/optopt.texi.
26755         * doc/posix-functions/psignal.texi: Renamed from
26756         doc/glibc-functions/psignal.texi.
26757         * doc/posix-functions/scandir.texi: Renamed from
26758         doc/glibc-functions/scandir.texi.
26759         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26760         doc/glibc-functions/sched_get_priority_min.texi.
26761         * doc/posix-functions/signgam.texi: Renamed from
26762         doc/glibc-functions/signgam.texi.
26763         * doc/posix-functions/stpcpy.texi: Renamed from
26764         doc/glibc-functions/stpcpy.texi.
26765         * doc/posix-functions/stpncpy.texi: Renamed from
26766         doc/glibc-functions/stpncpy.texi.
26767         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26768         doc/glibc-functions/strcasecmp_l.texi.
26769         * doc/posix-functions/strcoll_l.texi: Renamed from
26770         doc/glibc-functions/strcoll_l.texi.
26771         * doc/posix-functions/strfmon_l.texi: Renamed from
26772         doc/glibc-functions/strfmon_l.texi.
26773         * doc/posix-functions/strftime_l.texi: Renamed from
26774         doc/glibc-functions/strftime_l.texi.
26775         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26776         doc/glibc-functions/strncasecmp_l.texi.
26777         * doc/posix-functions/strndup.texi: Renamed from
26778         doc/glibc-functions/strndup.texi.
26779         * doc/posix-functions/strnlen.texi: Renamed from
26780         doc/glibc-functions/strnlen.texi.
26781         * doc/posix-functions/strsignal.texi: Renamed from
26782         doc/glibc-functions/strsignal.texi.
26783         * doc/posix-functions/strxfrm_l.texi: Renamed from
26784         doc/glibc-functions/strxfrm_l.texi.
26785         * doc/posix-functions/timer_gettime.texi: Renamed from
26786         doc/glibc-functions/timer_gettime.texi.
26787         * doc/posix-functions/tolower_l.texi: Renamed from
26788         doc/glibc-functions/tolower_l.texi.
26789         * doc/posix-functions/toupper_l.texi: Renamed from
26790         doc/glibc-functions/toupper_l.texi.
26791         * doc/posix-functions/towctrans_l.texi: Renamed from
26792         doc/glibc-functions/towctrans_l.texi.
26793         * doc/posix-functions/towlower_l.texi: Renamed from
26794         doc/glibc-functions/towlower_l.texi.
26795         * doc/posix-functions/towupper_l.texi: Renamed from
26796         doc/glibc-functions/towupper_l.texi.
26797         * doc/posix-functions/uselocale.texi: Renamed from
26798         doc/glibc-functions/uselocale.texi.
26799         * doc/posix-functions/vdprintf.texi: Renamed from
26800         doc/glibc-functions/vdprintf.texi.
26801         * doc/posix-functions/wcpcpy.texi:
26802         Renamed from doc/glibc-functions/wcpcpy.texi.
26803         * doc/posix-functions/wcpncpy.texi: Renamed from
26804         doc/glibc-functions/wcpncpy.texi.
26805         * doc/posix-functions/wcscasecmp.texi: Renamed from
26806         doc/glibc-functions/wcscasecmp.texi.
26807         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26808         doc/glibc-functions/wcscasecmp_l.texi.
26809         * doc/posix-functions/wcscoll_l.texi: Renamed from
26810         doc/glibc-functions/wcscoll_l.texi.
26811         * doc/posix-functions/wcsdup.texi: Renamed from
26812         doc/glibc-functions/wcsdup.texi.
26813         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26814         doc/glibc-functions/wcsncasecmp.texi.
26815         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26816         doc/glibc-functions/wcsncasecmp_l.texi.
26817         * doc/posix-functions/wcsnlen.texi: Renamed from
26818         doc/glibc-functions/wcsnlen.texi.
26819         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26820         doc/glibc-functions/wcsnrtombs.texi.
26821         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26822         doc/glibc-functions/wcsxfrm_l.texi.
26823         * doc/posix-functions/wctrans_l.texi: Renamed from
26824         doc/glibc-functions/wctrans_l.texi.
26825         * doc/posix-functions/wctype_l.texi: Renamed from
26826         doc/glibc-functions/wctype_l.texi.
26827         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26828         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26829         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26830         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26831         these subsections.
26832         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26833         Remove sections.
26834
26835 2008-12-14  Bruno Haible  <bruno@clisp.org>
26836
26837         Update doc for POSIX:2008.
26838         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26839
26840 2008-12-14  Bruno Haible  <bruno@clisp.org>
26841
26842         Update doc for POSIX:2008.
26843         * doc/pastposix-functions/bcmp.texi: Renamed from
26844         doc/posix-functions/bcmp.texi.
26845         * doc/pastposix-functions/bcopy.texi: Renamed from
26846         doc/posix-functions/bcopy.texi.
26847         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26848         doc/posix-functions/bsd_signal.texi.
26849         * doc/pastposix-functions/bzero.texi: Renamed from
26850         doc/posix-functions/bzero.texi.
26851         * doc/pastposix-functions/ecvt.texi: Renamed from
26852         doc/posix-functions/ecvt.texi.
26853         * doc/pastposix-functions/fcvt.texi: Renamed from
26854         doc/posix-functions/fcvt.texi.
26855         * doc/pastposix-functions/ftime.texi: Renamed from
26856         doc/posix-functions/ftime.texi.
26857         * doc/pastposix-functions/gcvt.texi: Renamed from
26858         doc/posix-functions/gcvt.texi.
26859         * doc/pastposix-functions/getcontext.texi: Renamed from
26860         doc/posix-functions/getcontext.texi.
26861         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26862         doc/posix-functions/gethostbyaddr.texi.
26863         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26864         doc/posix-functions/gethostbyname.texi.
26865         * doc/pastposix-functions/getwd.texi: Renamed from
26866         doc/posix-functions/getwd.texi.
26867         * doc/pastposix-functions/h_errno.texi: Renamed from
26868         doc/posix-functions/h_errno.texi.
26869         * doc/pastposix-functions/index.texi: Renamed from
26870         doc/posix-functions/index.texi.
26871         * doc/pastposix-functions/makecontext.texi: Renamed from
26872         doc/posix-functions/makecontext.texi.
26873         * doc/pastposix-functions/mktemp.texi: Renamed from
26874         doc/posix-functions/mktemp.texi.
26875         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26876         doc/posix-functions/pthread_attr_getstackaddr.texi.
26877         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26878         doc/posix-functions/pthread_attr_setstackaddr.texi.
26879         * doc/pastposix-functions/rindex.texi: Renamed from
26880         doc/posix-functions/rindex.texi.
26881         * doc/pastposix-functions/scalb.texi: Renamed from
26882         doc/posix-functions/scalb.texi.
26883         * doc/pastposix-functions/setcontext.texi: Renamed from
26884         doc/posix-functions/setcontext.texi.
26885         * doc/pastposix-functions/swapcontext.texi: Renamed from
26886         doc/posix-functions/swapcontext.texi.
26887         * doc/pastposix-functions/ualarm.texi: Renamed from
26888         doc/posix-functions/ualarm.texi.
26889         * doc/pastposix-functions/usleep.texi: Renamed from
26890         doc/posix-functions/usleep.texi.
26891         * doc/pastposix-functions/vfork.texi: Renamed from
26892         doc/posix-functions/vfork.texi.
26893         * doc/pastposix-functions/wcswcs.texi: Renamed from
26894         doc/posix-functions/wcswcs.texi.
26895         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26896         (Function Substitutes): Update.
26897
26898 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26899
26900         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26901         m4/strerror.m4.
26902
26903 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26904             Bruno Haible  <bruno@clisp.org>
26905
26906         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26907
26908 2008-12-13  Bruno Haible  <bruno@clisp.org>
26909
26910         * modules/strtoull (Depends-on): Remove unistd.
26911
26912 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26913
26914         * modules/strtoull (Depends-on): Add stdlib.
26915
26916 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26917
26918         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26919
26920 2008-12-10  Jim Meyering  <meyering@redhat.com>
26921
26922         gl_ASSERT: don't say assertions are disabled when they're not
26923         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26924         "checking whether to enable assertions... no", when they are in
26925         fact enabled.  This is solely a bug in the output of configure.
26926         In spite of saying "no", NDEBUG was not defined in that case.
26927         Also, as noted by Eric Blake, leave assertions enabled upon
26928         --enable-assert=INVALID.
26929
26930 2008-12-10  Bruno Haible  <bruno@clisp.org>
26931
26932         Change MODULES.html to refer to POSIX:2008 where possible.
26933         * MODULES.html.sh (POSIX2008_URL): New variable.
26934         (posix_headers): Remove sys/timeb, ucontext.
26935         (posix2001_headers): New variable.
26936         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26937         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26938         index, makecontext, mktemp, pthread_attr_getstackaddr,
26939         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26940         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26941         (posix2001_functions): New variable.
26942         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26943         otherwise.
26944
26945 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26946
26947         add missing include to parse-duration.c
26948         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26949         * modules/parse-duration (Depends-on): Add xalloc.
26950
26951         fix sed script reading maint.mk
26952         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26953         (syntax-check-rules): Use it.
26954
26955 2008-12-09  Bruno Haible  <bruno@clisp.org>
26956
26957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26958         MacOS X 10.4/PowerPC.
26959         Reported by Simon Josefsson.
26960
26961 2008-12-08  Jim Meyering  <meyering@redhat.com>
26962
26963         work around mingw's lack of some S_IF definitions
26964         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26965         Reported by Simon Josefsson.
26966
26967 2008-12-08  Bruno Haible  <bruno@clisp.org>
26968
26969         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26970         applied to variables. Needed on MacOS X 10.4/PowerPC.
26971         Reported by Simon Josefsson.
26972
26973 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26974         and Eric Blake  <ebb9@byu.net>
26975
26976         assert: honor --enable-assert
26977         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
26978         order to honor --enable-assert, rather than treating it as a
26979         synonym for --disable-assert.
26980
26981 2008-12-08  Jim Meyering  <meyering@redhat.com>
26982
26983         * lib/posixtm.c: Remove now-useless declaration of mktime.
26984
26985         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26986
26987 2008-12-07  Bruno Haible  <bruno@clisp.org>
26988
26989         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26990         test_once): Mark functions as static.
26991         * tests/test-tls.c (test_tls): Likewise.
26992
26993 2008-12-07  Bruno Haible  <bruno@clisp.org>
26994
26995         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26996         iconv_register_autodetect.
26997
26998 2008-12-07  Jim Meyering  <meyering@redhat.com>
26999
27000         posixtm.c: avoid a warning
27001         * lib/posixtm.c (posixtime): Don't initialize tm0.
27002         It's no longer needed to placate gcc4's -Wuninitialized,
27003         and the attempt to placate would elicit a new warning.
27004
27005         unicodeio.c: mark unused parameters
27006         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27007         (fallback_failure_callback): Likewise.
27008
27009 2008-12-07  Bruno Haible  <bruno@clisp.org>
27010
27011         * gnulib-tool (func_create_testdir): When building the tests
27012         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
27013         Reported by Simon Josefsson.
27014
27015 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27016
27017         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
27018
27019 2008-12-06  Bruno Haible  <bruno@clisp.org>
27020
27021         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
27022         Suggested by Eric Blake.
27023
27024 2008-12-06  Bruno Haible  <bruno@clisp.org>
27025
27026         Fix a c-stack test failure on MacOS X.
27027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
27028         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
27029         handler for SIGBUS as well.
27030         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
27031         install a signal handler for SIGBUS as well.
27032         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
27033
27034 2008-12-06  Bruno Haible  <bruno@clisp.org>
27035
27036         Advocacy documentation.
27037         * doc/gnulib-intro.texi (Benefits): New section.
27038         * doc/gnulib.texi: Update.
27039
27040 2008-12-06  Bruno Haible  <bruno@clisp.org>
27041
27042         Document the 'manywarnings' module.
27043         * doc/manywarnings.texi: New file.
27044         * doc/gnulib.texi: Include it.
27045
27046 2008-12-05  Eric Blake  <ebb9@byu.net>
27047
27048         tests: silence some gcc warnings
27049         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27050         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
27051         type mismatches.
27052
27053 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27054             Bruno Haible  <bruno@clisp.org>
27055
27056         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
27057
27058 2008-11-29  Jim Meyering  <meyering@redhat.com>
27059
27060         unicodeio.c: mark unused parameters
27061         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27062         (fallback_failure_callback): Likewise.
27063
27064         fts: fix a thinko
27065         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
27066         (set_stat_type): Return S_IF*-valued "type" directly.
27067         Prompted by James Youngman's spotting a related bug.
27068         Confirmed by further testing through find.
27069
27070         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
27071         * lib/fts.c (D_TYPE): Define.
27072         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
27073         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
27074         (s_ifmt_shift_bits): New function.
27075         (set_stat_type): New function.
27076         (fts_build): When not calling fts_stat, call set_stat_type
27077         to propagate dirent.d_type info to fts_read caller.
27078         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27079         fts_statp->st_mode type information may be valid.
27080
27081 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27082
27083         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27084         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27085         <sds@gnu.org>.
27086
27087 2008-11-20  Bruno Haible  <bruno@clisp.org>
27088
27089         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27090         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27091         INCLUDE_NEXT.
27092         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27093         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27094         * modules/math (Makefile.am): Substitute
27095         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27096         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27097
27098 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27099             Bruno Haible  <bruno@clisp.org>
27100
27101         * lib/stdint.in.h: Define all type macros so that their expansion is
27102         a single typedef'ed token. Fixes a compilation failure in Boost which
27103         does "using ::int8_t;".
27104
27105 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27106
27107         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27108         gl_MANYWARN_ALL_GCC.
27109         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27110         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27111         * modules/manywarnings: New file.
27112         * MODULES.html.sh: Mention manywarnings module.
27113
27114 2008-11-18  Bruno Haible  <bruno@clisp.org>
27115
27116         * doc/gnulib-tool.texi (Unit tests): New section.
27117
27118 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27119
27120         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27121         paths like 'lib/po/foo.po'.
27122
27123 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27124
27125         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27126         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27127
27128 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27129
27130         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27131         parameter works.
27132
27133 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27134
27135         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27136
27137 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27138
27139         * modules/parse-duration-tests: New file.
27140         * tests/test-parse-duration.sh: New file.
27141         * tests/test-parse-duration.c: New file.
27142
27143         New module 'parse-duration'.
27144         * lib/parse-duration.h: New file.
27145         * lib/parse-duration.c: New file.
27146         * modules/parse-duration: New file.
27147
27148 2008-11-17  Bruno Haible  <bruno@clisp.org>
27149
27150         * tests/test-select-out.sh: Comment out the first pipe test.
27151         Reported by Simon Josefsson.
27152
27153 2008-11-17  Bruno Haible  <bruno@clisp.org>
27154
27155         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27157         gl_HOSTENT.
27158
27159 2008-11-17  Bruno Haible  <bruno@clisp.org>
27160
27161         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27162         -lnetwork and -lnet. Needed for Haiku and BeOS.
27163
27164 2008-11-16  Bruno Haible  <bruno@clisp.org>
27165
27166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27167
27168 2008-11-16  Bruno Haible  <bruno@clisp.org>
27169
27170         Avoid test failure on Haiku.
27171         * tests/test-fsync.c: Include <errno.h>.
27172         (main): Don't require that fsync (0) fails.
27173
27174 2008-11-15  Bruno Haible  <bruno@clisp.org>
27175
27176         New module 'hostent'.
27177         * modules/hostent: New file.
27178         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27179
27180 2008-11-15  Bruno Haible  <bruno@clisp.org>
27181
27182         New module 'servent'.
27183         * modules/servent: New file.
27184         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27185
27186 2008-11-15  Bruno Haible  <bruno@clisp.org>
27187
27188         Avoid generating same test program with two different rules.
27189         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27190         test-frexp to test-frexp-nolibm.
27191         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27192         test-frexpl to test-frexpl-nolibm.
27193
27194 2008-11-15  Bruno Haible  <bruno@clisp.org>
27195
27196         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27197         $(FREXPL_LIBM).
27198
27199 2008-11-15  Bruno Haible  <bruno@clisp.org>
27200
27201         * lib/netdb.in.h: Activate the definitions also when the system's
27202         <netdb.h> has 'struct addrinfo'.
27203         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27204         EAI_OVERFLOW or AI_NUMERICSERV.
27205         * doc/posix-headers/netdb.texi: Document the problem.
27206
27207 2008-11-15  Bruno Haible  <bruno@clisp.org>
27208
27209         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27210
27211         Make the 'sched' module work on platforms where <sched.h> exists but
27212         is incomplete (such as Haiku).
27213         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27214         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27215         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27216         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27217         HAVE_STRUCT_SCHED_PARAM.
27218         * modules/sched (Depends-on): Add include_next.
27219         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27220         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27221         * doc/posix-headers/sched.texi: Document the issue.
27222
27223 2008-11-13  Jim Meyering  <meyering@redhat.com>
27224
27225         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27226         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27227         test would fail due to the difference in the Report bugs to ...
27228         line.  The expected address is empty, "<>", while the actual
27229         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27230
27231 2008-11-12  Bruno Haible  <bruno@clisp.org>
27232
27233         lstat: don't compile lstat.c on systems lacking lstat
27234         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27235         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27236         Reported by Daniel P. Berrange via Jim Meyering.
27237
27238 2008-11-12  Jim Meyering  <meyering@redhat.com>
27239
27240         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27241
27242 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27243
27244         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27245         instead.
27246
27247 2008-11-12  Bruno Haible  <bruno@clisp.org>
27248
27249         * lib/unicodeio.c: Include unistr.h.
27250         (utf8_wctomb): Remove function.
27251         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27252
27253 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27254
27255         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27256         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27257         <bruno@clisp.org>.
27258         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27259
27260 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27261
27262         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27263         * doc/gnulib.texi: Add section for warnings.
27264
27265 2008-11-11  Bruno Haible  <bruno@clisp.org>
27266
27267         * lib/sockets.h: Add a comment.
27268
27269 2008-11-11  Karl Berry  <karl@gnu.org>
27270
27271         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27272
27273 2008-11-11  Eric Blake  <ebb9@byu.net>
27274
27275         fdl.texi: avoid git symlinks
27276         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27277
27278 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27279
27280         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27281
27282 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27283
27284         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27285         (gl_WARN_ADD): Substitute $2 if literal.
27286
27287 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27288
27289         * m4/warning.m4: Remove.
27290
27291 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27292
27293         * m4/warnings.m4: Almost complete rewrite. :-)
27294
27295 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27296
27297         * modules/warnings: New module.
27298         * m4/warnings.m4: New file.
27299         * MODULES.html.sh: Mention warnings module.
27300         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27301         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27302
27303 2008-11-10  Eric Blake  <ebb9@byu.net>
27304
27305         fdl.texi: make a symlink to the latest version
27306         * doc/standards.texi: Revert today's earlier change.
27307         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27308         * doc/fdl.texi: ...and replace this with a symlink to the newer
27309         fdl-1.3.texi.
27310
27311 2008-11-10  Bruno Haible  <bruno@clisp.org>
27312
27313         * tests/test-select-fd.c (main): Accept the result file name as fourth
27314         argument.
27315         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27316         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27317
27318 2008-11-10  Bruno Haible  <bruno@clisp.org>
27319
27320         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27321         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27322         as autoconf-substituted macros.
27323         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27324         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27325         gl_NETDB_H_DEFAULTS. Set these variables.
27326         * modules/netdb (Makefile.am): Substitute these variables.
27327
27328 2008-11-10  Eric Blake  <ebb9@byu.net>
27329
27330         standards.texi: include correct file for FDL 1.3
27331         * doc/standards.texi (GNU Free Documentation License): Change
27332         include file to pull in FDL 1.3, not 1.2.
27333
27334         fdl.texi: revert accidental change to license
27335         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27336
27337 2008-11-10  Bruno Haible  <bruno@clisp.org>
27338
27339         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27340         cross-compiling guesses also when the native compile gives no result.
27341
27342 2008-11-10  Bruno Haible  <bruno@clisp.org>
27343
27344         * lib/spawni.c (__spawni): Force variable into the stack.
27345
27346 2008-11-10  Bruno Haible  <bruno@clisp.org>
27347
27348         Add support for Haiku.
27349         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27350         glibc and BeOS, but also on Haiku.
27351         * lib/fpurge.c (fpurge): Likewise.
27352         * lib/freadable.c (freadable): Likewise.
27353         * lib/freadahead.c (freadahead): Likewise.
27354         * lib/freading.c (freading): Likewise.
27355         * lib/freadptr.c (freadptr): Likewise.
27356         * lib/freadseek.c (freadptrinc): Likewise.
27357         * lib/fseeko.c (rpl_fseeko): Likewise.
27358         * lib/fseterr.c (fseterr): Likewise.
27359         * lib/fwritable.c (fwritable): Likewise.
27360         * lib/fwriting.c (fwriting): Likewise.
27361         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27362
27363 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27364
27365         * lib/config.charset: Treat Haiku like BeOS.
27366
27367 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27368
27369         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27370         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27371
27372 2008-11-08  Bruno Haible  <bruno@clisp.org>
27373
27374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27375         AC_CACHE_CHECK.
27376
27377 2008-11-08  Bruno Haible  <bruno@clisp.org>
27378
27379         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27380
27381 2008-11-08  Bruno Haible  <bruno@clisp.org>
27382
27383         * tests/test-select-fd.c: New file.
27384         * tests/test-select-in.sh: New file.
27385         * tests/test-select-out.sh: New file.
27386         * tests/test-select-stdin.c: New file.
27387         * modules/select-tests (Files): Add the new files.
27388         (Depends-on): Add gettimeofday.
27389         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27390         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27391         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27392
27393 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27394             Bruno Haible  <bruno@clisp.org>
27395
27396         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27397
27398 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27399
27400         * build-aux/pmccabe2html: Added support for C++ source files.
27401
27402 2008-11-05  Ben Pfaff  <blp@gnu.org>
27403
27404         Fix lib/close.c build on Windows.
27405         * modules/close (Files): Add lib/w32sock.h.
27406
27407 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27408
27409         Accept Bison's NEWS format.
27410         * build-aux/announce-gen (print_news_deltas): Tweak
27411         $re_prefix.
27412
27413 2008-11-04  Bruno Haible  <bruno@clisp.org>
27414
27415         * modules/random_r (Maintainer): Add glibc.
27416
27417 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27418
27419         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27420         by karl@freefriends.org (Karl Berry).
27421         * doc/alloca.texi: Likewise.
27422         * doc/c-ctype.texi: Likewise.
27423         * doc/c-strcase.texi: Likewise.
27424         * doc/c-strcaseeq.texi: Likewise.
27425         * doc/c-strcasestr.texi: Likewise.
27426         * doc/c-strstr.texi: Likewise.
27427         * doc/c-strtod.texi: Likewise.
27428         * doc/c-strtold.texi: Likewise.
27429         * doc/ctime.texi: Likewise.
27430         * doc/error.texi: Likewise.
27431         * doc/fdl.texi: Likewise.
27432         * doc/gcd.texi: Likewise.
27433         * doc/getdate.texi: Likewise.
27434         * doc/gnulib-intro.texi: Likewise.
27435         * doc/gnulib-tool.texi: Likewise.
27436         * doc/gnulib.texi: Likewise.
27437         * doc/inet_ntoa.texi: Likewise.
27438         * doc/maintain.texi: Likewise.
27439         * doc/make-stds.texi: Likewise.
27440         * doc/quote.texi: Likewise.
27441         * doc/regexprops-generic.texi: Likewise.
27442         * doc/standards.texi: Likewise.
27443         * doc/verify.texi: Likewise.
27444         * doc/visibility.texi: Likewise.
27445         * doc/gnulib.texi (GNU Free Documentation License): Include
27446         fdl-1.3.texi instead of fdl.texi.
27447
27448 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27449
27450         * doc/fdl-1.3.texi: New file, from
27451         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27452         * modules/fdl-1.3: Add.
27453         * MODULES.html.sh: Add fdl-1.3.
27454
27455 2008-11-03  Bruno Haible  <bruno@clisp.org>
27456
27457         Make determination of absolute name of header file work with AIX xlc.
27458         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27459         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27460         preprocessing.
27461         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27462         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27463
27464 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27465
27466         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27467         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27468         <ludo@gnu.org>.
27469
27470 2008-11-02  Bruno Haible  <bruno@clisp.org>
27471
27472         Mark 'strpbrk' obsolete.
27473         * modules/strpbrk (Status, Notice): New sections.
27474         * modules/strtok_r (Depends-on): Add strpbrk.
27475
27476 2008-11-02  Bruno Haible  <bruno@clisp.org>
27477
27478         Mark 'strdup' obsolete.
27479         * modules/strdup (Status, Notice): New sections.
27480         * modules/findprog (Depends-on): Add strdup.
27481         * modules/getaddrinfo (Depends-on): Likewise.
27482         * modules/localename (Depends-on): Likewise.
27483         * modules/relocatable-lib (Depends-on): Likewise.
27484         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27485         * modules/relocatable-prog (Depends-on): Likewise.
27486         * modules/trim (Depends-on): Likewise.
27487         * modules/unictype/gen-ctype (Depends-on): Likewise.
27488         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27489
27490 2008-11-02  Bruno Haible  <bruno@clisp.org>
27491
27492         Mark 'strcspn' obsolete.
27493         * modules/strcspn (Status, Notice): New sections.
27494
27495 2008-11-02  Bruno Haible  <bruno@clisp.org>
27496
27497         Mark 'rmdir' obsolete.
27498         * modules/rmdir (Status, Notice): New sections.
27499         * modules/clean-temp (Depends-on): Add rmdir.
27500         * modules/openat (Depends-on): Likewise.
27501
27502 2008-11-02  Bruno Haible  <bruno@clisp.org>
27503
27504         Mark 'raise' obsolete.
27505         * modules/raise (Status, Notice): New sections.
27506         (Include): Specify <signal.h>.
27507         * modules/stdio (Depends-on): Add raise.
27508         * modules/write (Depends-on): Likewise.
27509
27510 2008-11-02  Bruno Haible  <bruno@clisp.org>
27511
27512         Mark 'memset' obsolete.
27513         * modules/memset (Status, Notice): New sections.
27514
27515 2008-11-02  Bruno Haible  <bruno@clisp.org>
27516
27517         Mark 'memmove' obsolete.
27518         * modules/memmove (Status, Notice): New sections.
27519         * modules/argp (Depends-on): Add memmove.
27520         * modules/argz (Depends-on): Likewise.
27521         * modules/canonicalize (Depends-on): Likewise.
27522         * modules/canonicalize-lgpl (Depends-on): Likewise.
27523         * modules/fts (Depends-on): Likewise.
27524         * modules/getcwd (Depends-on): Likewise.
27525         * modules/human (Depends-on): Likewise.
27526         * modules/regex (Depends-on): Likewise.
27527         * modules/striconveh (Depends-on): Likewise.
27528         * modules/trim (Depends-on): Likewise.
27529         * modules/unistr/u8-move (Depends-on): Likewise.
27530         * modules/unistr/u16-move (Depends-on): Likewise.
27531         * modules/unistr/u32-move (Depends-on): Likewise.
27532
27533 2008-11-02  Bruno Haible  <bruno@clisp.org>
27534
27535         Mark 'memcpy' obsolete.
27536         * modules/memcpy (Status, Notice): New sections.
27537
27538 2008-11-02  Bruno Haible  <bruno@clisp.org>
27539
27540         Mark 'memcmp' obsolete.
27541         * modules/memcmp (Status, Notice): New sections.
27542         * modules/argmatch (Depends-on): Add memchr.
27543         * modules/backupfile (Depends-on): Likewise.
27544         * modules/c-strcasestr (Depends-on): Likewise.
27545         * modules/crypto/des (Depends-on): Likewise.
27546         * modules/csharpcomp (Depends-on): Likewise.
27547         * modules/fnmatch (Depends-on): Likewise.
27548         * modules/git-merge-changelog (Depends-on): Likewise.
27549         * modules/isnand (Depends-on): Likewise.
27550         * modules/isnand-nolibm (Depends-on): Likewise.
27551         * modules/isnanf (Depends-on): Likewise.
27552         * modules/isnanf-nolibm (Depends-on): Likewise.
27553         * modules/isnanl (Depends-on): Likewise.
27554         * modules/isnanl-nolibm (Depends-on): Likewise.
27555         * modules/mbchar (Depends-on): Likewise.
27556         * modules/memcoll (Depends-on): Likewise.
27557         * modules/quotearg (Depends-on): Likewise.
27558         * modules/regex (Depends-on): Likewise.
27559         * modules/relocatable-prog (Depends-on): Likewise.
27560         * modules/same (Depends-on): Likewise.
27561         * modules/signbit (Depends-on): Likewise.
27562         * modules/strcasestr-simple (Depends-on): Likewise.
27563         * modules/unictype/gen-ctype (Depends-on): Likewise.
27564         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27565         * modules/uniname/uniname (Depends-on): Likewise.
27566         * modules/unistr/u8-cmp (Depends-on): Likewise.
27567
27568 2008-11-02  Bruno Haible  <bruno@clisp.org>
27569
27570         Mark 'memchr' obsolete.
27571         * modules/memchr (Status, Notice): New sections.
27572         * modules/argp (Depends-on): Add memchr.
27573         * modules/base64 (Depends-on): Likewise.
27574         * modules/c-strcasestr (Depends-on): Likewise.
27575         * modules/chdir-long (Depends-on): Likewise.
27576         * modules/fnmatch (Depends-on): Likewise.
27577         * modules/getsubopt (Depends-on): Likewise.
27578         * modules/git-merge-changelog (Depends-on): Likewise.
27579         * modules/glob (Depends-on): Likewise.
27580         * modules/strcasestr-simple (Depends-on): Likewise.
27581         * modules/strnlen (Depends-on): Likewise.
27582
27583 2008-11-02  Bruno Haible  <bruno@clisp.org>
27584
27585         Mark 'atexit' obsolete.
27586         * modules/atexit (Status, Notice): New sections.
27587         * modules/chdir-long (Depends-on): Add atexit.
27588         * modules/wait-process (Depends-on): Likewise.
27589
27590 2008-11-02  Bruno Haible  <bruno@clisp.org>
27591
27592         * gnulib-tool: New option --with-obsolete.
27593         (func_usage): Document it.
27594         (func_modules_transitive_closure): Drop obsolete dependencies if
27595         incobsolete is not true.
27596         (func_import): Read and save the incobsolete variable to the cache.
27597
27598 2008-11-02  Bruno Haible  <bruno@clisp.org>
27599
27600         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27601         * gnulib-tool: New option --extract-status.
27602         (func_usage): Document it.
27603         (sed_extract_prog): Recognize it.
27604         (func_get_status): New function.
27605
27606 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27607
27608         * modules/sockets (License): Change from LGPL to LGPLv2+.
27609
27610 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27611
27612         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27613
27614 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27615
27616         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27617         Mention times and sys_times.
27618         * modules/sys_times, modules/sys_times-tests: New modules.
27619         * modules/times, modules/times-tests: Likewise
27620         * m4/sys_times_h.m4: New file.
27621         * lib/sys_times.in.h: Likewise
27622         * lib/times.c: Likewise.
27623         * tests/test-sys_times.c: Likewise.
27624         * tests/test-times.c: Likewise.
27625         * doc/posix-headers/sys_times.texi: Update.
27626         * doc/posix-functions/times.texi: Update.
27627
27628 2008-10-28  Jim Meyering  <meyering@redhat.com>
27629
27630         * modules/tempname (Depends-on): Add lstat.
27631
27632         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27633
27634 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27635
27636         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27637         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27638         using idiom used elsewhere in gnulib.
27639
27640 2008-10-27  Jim Meyering  <meyering@redhat.com>
27641
27642         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27643
27644 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27645
27646         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27647         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27648         programs.
27649         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27650
27651 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27652
27653         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27654
27655 2008-10-27  Bruno Haible  <bruno@clisp.org>
27656
27657         * tests/test-lstat.c: Include <stdio.h>.
27658
27659 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27660
27661         * modules/lstat-tests: New module.
27662         * tests/test-lstat.c: New file.
27663
27664 2008-10-26  Jim Meyering  <meyering@redhat.com>
27665
27666         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27667
27668 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27669             Bruno Haible  <bruno@clisp.org>
27670
27671         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27672         * modules/configmake (Include): Add a note that the include must come
27673         after all system headers.
27674         * lib/javaversion.c: Include configmake.h after all other includes.
27675
27676 2008-10-26  Bruno Haible  <bruno@clisp.org>
27677
27678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27679         HAVE_STRUCT_RANDOM_DATA to 1.
27680         (gl_STDLIB_H): Simplify.
27681
27682 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27683
27684         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27685         substitute HAVE_STRUCT_RANDOM_DATA.
27686         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27687         random_data.
27688         * modules/stdlib (Makefile.am): Substitute
27689         HAVE_STRUCT_RANDOM_DATA.
27690
27691 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27692
27693         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27694         * doc/gnulib-intro.texi (Copyright): Likewise.
27695
27696 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27697
27698         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27699         findings.
27700
27701 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27702             Bruno Haible  <bruno@clisp.org>
27703
27704         * lib/unistd.in.h: Include <winsock2.h>.
27705         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27706         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27707         Provide dummy declarations.
27708         (gethostname): Override.
27709         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27710         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27711         gl_PREREQ_SYS_H_WINSOCK2.
27712         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27713         * doc/posix-functions/gethostname.texi: More details.
27714
27715 2008-10-25  Bruno Haible  <bruno@clisp.org>
27716
27717         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27718         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27719         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27720
27721         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27722         here ...
27723         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27724         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27725         gl_UNISTD_H_DEFAULTS.
27726
27727 2008-10-25  Eric Blake  <ebb9@byu.net>
27728
27729         signbit: avoid spurious compiler failure
27730         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27731         declarations inside function.
27732
27733 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27734             Bruno Haible  <bruno@clisp.org>
27735
27736         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27737         * modules/random_r (Depends-on): Add stdint.
27738
27739 2008-10-24  Bruno Haible  <bruno@clisp.org>
27740
27741         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27742         Eggert.
27743         * modules/strerror (License): Likewise.
27744
27745 2008-10-24  Jim Meyering  <meyering@redhat.com>
27746
27747         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27748         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27749
27750 2008-10-24  Eric Blake  <ebb9@byu.net>
27751
27752         getgroups: fix compilation when getgroups is available
27753         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27754         but with <config.h> override of getgroups disabled.
27755
27756 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27757
27758         * doc/gnulib.texi (Header files): Add note about C++ problems.
27759         Explained by Bruno Haible <bruno@clisp.org>.
27760
27761 2008-10-23  Bruno Haible  <bruno@clisp.org>
27762
27763         Define a dummy SA_NODEFER macro on Interix.
27764         * lib/signal.in.h (SA_NODEFER): Define fallback.
27765         Reported by Aleksey Cheusov <cheusov@tut.by> via
27766         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27767
27768 2008-10-23  Bruno Haible  <bruno@clisp.org>
27769
27770         * modules/freadahead (License): Change to LGPLv2+.
27771         Suggested by Simon Josefsson.
27772
27773 2008-10-23  Jim Meyering  <meyering@redhat.com>
27774
27775         random_r: new module
27776         * modules/random_r: New file.
27777         * m4/random_r.m4: New file.
27778         * lib/random_r.c: New file, from glibc.
27779         * modules/random_r-tests: New file.
27780         * tests/test-random_r.c: New file.
27781         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27782          Declare.
27783         (RAND_MAX): Define.
27784         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27785         * modules/stdlib: Substitute them, too.
27786         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27787         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27788         * doc/glibc-functions/random_r.texi: Likewise.
27789         * doc/glibc-functions/setstate_r.texi: Likewise.
27790         * doc/glibc-functions/srandom_r.texi: Likewise.
27791         * config/srclist.txt: Mention it.
27792
27793 2008-10-23  David Lutterkort  <lutter@redhat.com>
27794
27795         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27796         link requirement
27797
27798 2008-10-23  Jim Meyering  <meyering@redhat.com>
27799
27800         selinux-h: mark parameters of stub functions as intentionally unused
27801         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27802         * lib/se-context.in.h: Likewise.
27803
27804 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27805
27806         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27807
27808 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27809
27810         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27811
27812 2008-10-22  Eric Blake  <ebb9@byu.net>
27813
27814         glthread/thread: avoid compiler warning
27815         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27816         Add unreachable abort to silence compiler.
27817
27818 2008-10-22  Eric Blake  <ebb9@byu.net>
27819
27820         netdb: also supply struct addrinfo for cygwin 1.5.x
27821         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27822         older cygwin.
27823         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27824         cygwin.
27825         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27826
27827 2008-10-22  Bruno Haible  <bruno@clisp.org>
27828
27829         * users.txt: Update entry about pspp.
27830
27831 2008-10-21  Bruno Haible  <bruno@clisp.org>
27832
27833         Simplification.
27834         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27835         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27836
27837         Simplification.
27838         * lib/ioctl.c (ioctl): Don't undefine.
27839         * lib/socket.c (socket): Don't undefine.
27840
27841         Remove unused module indicator macros.
27842         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27843         GNULIB_$1 as a C macro.
27844
27845         * doc/posix-functions/close.texi: Undo last change.
27846         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27847         Windows platforms.
27848
27849 2008-10-21  Bruno Haible  <bruno@clisp.org>
27850
27851         Add gethostname() declaration to <unistd.h>.
27852         * lib/unistd.in.h (gethostname): New declaration.
27853         * lib/gethostname.c: Include <unistd.h>.
27854         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27855         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27857         and HAVE_GETHOSTNAME.
27858         * modules/gethostname (Depends-on): Add unistd.
27859         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27860         (Include): Specify <unistd.h>.
27861         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27862         HAVE_GETHOSTNAME.
27863         * tests/test-gethostname.c: Include <unistd.h> first.
27864
27865 2008-10-21  Bruno Haible  <bruno@clisp.org>
27866
27867         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27868         * modules/select-tests (Depends-on): Likewise.
27869         Reported by Simon Josefsson.
27870
27871 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27872
27873         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27874         * lib/accept.c: New file, based on winsock.c.
27875         * lib/bind.c: New file, based on winsock.c.
27876         * lib/connect.c: New file, based on winsock.c.
27877         * lib/getpeername.c: New file, based on winsock.c.
27878         * lib/getsockname.c: New file, based on winsock.c.
27879         * lib/getsockopt.c: New file, based on winsock.c.
27880         * lib/ioctl.c: New file, based on winsock.c.
27881         * lib/listen.c: New file, based on winsock.c.
27882         * lib/recv.c: New file, based on winsock.c.
27883         * lib/recvfrom.c: New file, based on winsock.c.
27884         * lib/send.c: New file, based on winsock.c.
27885         * lib/sendto.c: New file, based on winsock.c.
27886         * lib/setsockopt.c: New file, based on winsock.c.
27887         * lib/shutdown.c: New file, based on winsock.c.
27888         * lib/socket.c: New file, based on winsock.c.
27889         * lib/w32sock.h: New file, based on winsock.c.
27890         * lib/winsock.c: Remove file.
27891         * modules/accept: Likewise.
27892         * modules/bind: Likewise.
27893         * modules/connect: Likewise.
27894         * modules/getpeername: Likewise.
27895         * modules/getsockname: Likewise.
27896         * modules/getsockopt: Likewise.
27897         * modules/ioctl: Likewise.
27898         * modules/listen: Likewise.
27899         * modules/recv: Likewise.
27900         * modules/recvfrom: Likewise.
27901         * modules/send: Likewise.
27902         * modules/sendto: Likewise.
27903         * modules/setsockopt: Likewise.
27904         * modules/shutdown: Likewise.
27905         * modules/socket: Use socket.c instead of winsock.c.
27906         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27907         * doc/posix-functions/accept.texi: Doc fix.
27908         * doc/posix-functions/bind.texi: Doc fix.
27909         * doc/posix-functions/close.texi: Doc fix.
27910         * doc/posix-functions/connect.texi: Doc fix.
27911         * doc/posix-functions/getpeername.texi: Doc fix.
27912         * doc/posix-functions/getsockname.texi: Doc fix.
27913         * doc/posix-functions/getsockopt.texi: Doc fix.
27914         * doc/posix-functions/ioctl.texi: Doc fix.
27915         * doc/posix-functions/listen.texi: Doc fix.
27916         * doc/posix-functions/recv.texi: Doc fix.
27917         * doc/posix-functions/recvfrom.texi: Doc fix.
27918         * doc/posix-functions/send.texi: Doc fix.
27919         * doc/posix-functions/sendto.texi: Doc fix.
27920         * doc/posix-functions/setsockopt.texi: Doc fix.
27921         * doc/posix-functions/shutdown.texi: Doc fix.
27922         * doc/posix-functions/socket.texi: Doc fix.
27923
27924 2008-10-20  Bruno Haible  <bruno@clisp.org>
27925
27926         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27927         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27928         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27929         as an alias for SIGABRT.
27930         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27931         (sigaction): Map it to SIGABRT.
27932         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27933
27934 2008-10-20  Bruno Haible  <bruno@clisp.org>
27935
27936         * lib/fts.c: Don't include lstat.h.
27937         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27938
27939         Move the lstat() declaration to <sys/stat.h>.
27940         * lib/lstat.h: Remove file.
27941         * lib/sys_stat.in.h: Add special invocation convention.
27942         (lstat): New declaration.
27943         * lib/lstat.c (orig_lstat): New function.
27944         (rpl_lstat): Use orig_lstat instead of lstat.
27945         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27946         AC_C_INLINE. Set REPLACE_LSTAT.
27947         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27948         and REPLACE_LSTAT.
27949         * modules/lstat (Files): Remove lib/lstat.h.
27950         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27951         (Include): Specify <sys/stat.h> instead of lstat.h.
27952         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27953         REPLACE_LSTAT.
27954         * NEWS: Mention the change.
27955
27956 2008-10-20  Bruno Haible  <bruno@clisp.org>
27957
27958         * modules/posix_spawn-tests: New file.
27959         * tests/test-posix_spawn3.c: New file.
27960
27961 2008-10-20  Bruno Haible  <bruno@clisp.org>
27962
27963         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27964         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27965         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27966         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27967         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27968
27969 2008-10-20  Bruno Haible  <bruno@clisp.org>
27970
27971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27972         of posix_spawn on AIX 5.3.
27973
27974 2008-10-20  Bruno Haible  <bruno@clisp.org>
27975
27976         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
27977
27978 2008-10-20  Bruno Haible  <bruno@clisp.org>
27979
27980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
27981         of AC_LANG_PROGRAM.
27982
27983 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27984
27985         * lib/netdb.in.h: Don't define GNU specific constants until they
27986         are supported or needed.  Reported by Bruno Haible
27987         <bruno@clisp.org>.
27988
27989 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27990
27991         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27992
27993 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27994
27995         * lib/getaddrinfo.h: Remove file.
27996         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27997         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27998         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27999         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
28000         * modules/netdb: Substitute GNULIB_GETADDRINFO.
28001         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
28002         * tests/test-getaddrinfo.c: Likewise.
28003         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
28004         * NEWS: Mention change.
28005
28006 2008-10-19  Bruno Haible  <bruno@clisp.org>
28007
28008         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
28009
28010 2008-10-19  Bruno Haible  <bruno@clisp.org>
28011
28012         * lib/wait-process.c: Include simply <sys/wait.h>.
28013         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
28014         WIFSTOPPED): Remove fallback definitions.
28015         * modules/wait-process (Depends-on): Add sys_wait.
28016
28017         New module 'sys_wait'.
28018         * modules/sys_wait: New file.
28019         * lib/sys_wait.in.h: New file, partially copied from
28020         lib/wait-process.c.
28021         * m4/sys_wait_h.m4: New file.
28022         * doc/posix-headers/sys_wait.texi: Mention the new module.
28023
28024 2008-10-19  Bruno Haible  <bruno@clisp.org>
28025
28026         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
28027
28028 2008-10-19  Bruno Haible  <bruno@clisp.org>
28029
28030         Assume that waitpid() fills an 'int' status, not a 'union wait'.
28031         * lib/wait-process.c (WAIT_T): Remove type.
28032         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
28033         (wait_subprocess): Update.
28034
28035 2008-10-19  Bruno Haible  <bruno@clisp.org>
28036
28037         New module 'atoll'.
28038         * modules/atoll: New file.
28039         * lib/stdlib.in.h (atoll): New declaration.
28040         * lib/atoll.c: New file, from glibc with modifications.
28041         * m4/atoll.m4: New file.
28042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
28043         HAVE_ATOLL.
28044         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
28045         * doc/posix-functions/atoll.texi: Mention the new module.
28046
28047 2008-10-19  Bruno Haible  <bruno@clisp.org>
28048
28049         Add strtoull() declaration to <stdlib.h>.
28050         * lib/stdlib.in.h (strtoull): New declaration.
28051         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28052         Set HAVE_STRTOULL.
28053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
28054         HAVE_STRTOULL.
28055         * modules/strtoull (Depends-on): Add stdlib.
28056         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28057         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
28058         HAVE_STRTOULL.
28059
28060 2008-10-19  Bruno Haible  <bruno@clisp.org>
28061
28062         Add strtoll() declaration to <stdlib.h>.
28063         * lib/stdlib.in.h (strtoll): New declaration.
28064         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28065         Set HAVE_STRTOLL.
28066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
28067         HAVE_STRTOLL.
28068         * modules/strtoll (Depends-on): Add stdlib.
28069         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28070         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
28071
28072 2008-10-19  Bruno Haible  <bruno@clisp.org>
28073
28074         * modules/bcopy (Depends-on): Add strings.
28075         (Include): Specify <strings.h>.
28076
28077 2008-10-19  Bruno Haible  <bruno@clisp.org>
28078
28079         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28080
28081 2008-10-19  Bruno Haible  <bruno@clisp.org>
28082
28083         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28084         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28085         mingw.
28086
28087 2008-10-19  Bruno Haible  <bruno@clisp.org>
28088
28089         * lib/atanl.c: Don't include isnanl.h.
28090         * lib/cosl.c: Likewise.
28091         * lib/ldexpl.c: Likewise.
28092         * lib/logl.c: Likewise.
28093         * lib/sinl.c: Likewise.
28094         * lib/sqrtl.c: Likewise.
28095         * lib/tanl.c: Likewise.
28096
28097         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28098         * lib/isnanf.h: Remove file.
28099         * lib/isnand.h: Remove file.
28100         * lib/isnanl.h: Remove file.
28101         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28102         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28103         macros.
28104         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28105         HAVE_ISNANF, don't define it as a C macro.
28106         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28107         HAVE_ISNAND, don't define it as a C macro.
28108         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28109         HAVE_ISNANL, don't define it as a C macro.
28110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28111         HAVE_ISNAN[FDL].
28112         * modules/isnanf (Files): Remove lib/isnanf.h.
28113         (Depends-on): Add math.
28114         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28115         (Include): Specify <math.h> instead of isnanf.h.
28116         * modules/isnand (Files): Remove lib/isnand.h.
28117         (Depends-on): Add math.
28118         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28119         (Include): Specify <math.h> instead of isnand.h.
28120         * modules/isnanl (Files): Remove lib/isnanl.h.
28121         (Depends-on): Add math.
28122         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28123         (Include): Specify <math.h> instead of isnanl.h.
28124         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28125         HAVE_ISNAN[FDL].
28126         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28127         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28128         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28129         * NEWS: Mention the change.
28130
28131 2008-10-18  Bruno Haible  <bruno@clisp.org>
28132
28133         Add getusershell(), setusershell(), endusershell() declarations to
28134         <unistd.h>.
28135         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28136         declarations.
28137         * lib/getusershell.c: Include unistd.h.
28138         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28139         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28140         HAVE_GETUSERSHELL.
28141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28142         and HAVE_GETUSERSHELL.
28143         * modules/getusershell (Depends-on): Add unistd, extensions.
28144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28145         (Include): Specify <unistd.h>.
28146         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28147         HAVE_GETUSERSHELL.
28148
28149 2008-10-18  Bruno Haible  <bruno@clisp.org>
28150
28151         Add a getloadavg() declaration to <stdlib.h>.
28152         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28153         getloadavg declaration.
28154         (getloadavg): New declaration.
28155         * lib/getloadavg.c: Include <stdlib.h> first.
28156         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28157         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28158         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28160         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28161         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28162         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28163         (Include): Specify <stdlib.h>.
28164         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28165         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28166
28167 2008-10-18  Bruno Haible  <bruno@clisp.org>
28168
28169         * lib/dirchownmod.c: Don't include lchmod.h.
28170
28171         Move the lchmod() declaration to <sys/stat.h>.
28172         * lib/lchmod.h: Remove file.
28173         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28174         (lchmod): New declaration, moved here from lib/lchown.h.
28175         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28176         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28178         and HAVE_LCHMOD.
28179         * modules/lchmod (Files): Remove lib/lchmod.h.
28180         (Depends-on): Add sys_stat, extensions.
28181         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28182         (Include): Specify <sys/stat.h> instead of lchmod.h.
28183         * modules/sys_stat (Depends-on): Add link-warning.
28184         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28185         definition of GL_LINK_WARNING.
28186         * NEWS: Mention the change.
28187
28188 2008-10-18  Bruno Haible  <bruno@clisp.org>
28189
28190         * lib/fchdir.c: Don't include dirfd.h.
28191         * lib/fts.c: Likewise.
28192         * lib/getcwd.c: Likewise.
28193         * lib/glob.c: Likewise.
28194
28195         Move the dirfd() declaration to <dirent.h>.
28196         * lib/dirfd.h: Remove file.
28197         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28198         (dirfd): New declaration.
28199         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28200         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28201         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28202         HAVE_DECL_DIRFD.
28203         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28204         HAVE_DECL_DIRFD.
28205         * modules/dirfd (Files): Remove lib/dirfd.h.
28206         (Depends-on): Add dirent, extensions.
28207         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28208         (Include): Specify <dirent.h> instead of dirfd.h.
28209         * modules/dirent (Depends-on): Add link-warning.
28210         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28211         definition of GL_LINK_WARNING.
28212         * NEWS: Mention the change.
28213
28214 2008-10-18  Bruno Haible  <bruno@clisp.org>
28215
28216         Move the euidaccess() declaration to <unistd.h>.
28217         * lib/euidaccess.h: Remove file.
28218         * lib/unistd.in.h (euidaccess): New declaration.
28219         * lib/euidaccess.c: Don't include euidaccess.h.
28220         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28221         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28223         and HAVE_EUIDACCESS.
28224         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28225         (Depends-on): Add unistd.
28226         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28227         (Include): Specify <unistd.h> instead of euidaccess.h.
28228         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28229         HAVE_EUIDACCESS.
28230         * NEWS: Mention the change.
28231
28232 2008-10-18  Bruno Haible  <bruno@clisp.org>
28233
28234         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28235
28236         Move the getdomainname() declaration to <unistd.h>.
28237         * lib/getdomainname.h: Remove file.
28238         * lib/unistd.in.h (getdomainname): New declaration.
28239         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28240         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28241         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28242         HAVE_GETDOMAINNAME.
28243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28244         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28245         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28246         (Depends-on): Add unistd, extensions.
28247         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28248         (Includes): Specify <unistd.h> instead of getdomainname.h.
28249         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28250         HAVE_GETDOMAINNAME.
28251         * NEWS: Mention the change.
28252
28253 2008-10-18  Bruno Haible  <bruno@clisp.org>
28254
28255         * modules/dirent: New file.
28256         * m4/dirent_h.m4: New file.
28257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28258         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28259         * modules/fchdir (Files): Remove lib/dirent.in.h.
28260         (Depends-on): Add dirent.
28261         (Makefile.am): Move rules to modules/dirent.
28262         * doc/posix-headers/dirent.texi: Mention the new module.
28263
28264 2008-10-18  Bruno Haible  <bruno@clisp.org>
28265
28266         Avoid -Wunused-parameter warnings in public gnulib header files.
28267         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28268         macro.
28269         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28270
28271 2008-10-18  Bruno Haible  <bruno@clisp.org>
28272
28273         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28274         * doc/glibc-functions/error.texi: Mention the module 'error'.
28275         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28276         * doc/glibc-functions/getdomainname.texi: Mention the module
28277         'getdomainname'.
28278         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28279         * doc/glibc-functions/getpagesize.texi: Mention the module
28280         'getpagesize'.
28281         * doc/glibc-functions/getusershell.texi: Mention the module
28282         'getusershell'.
28283         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28284         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28285         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28286         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28287         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28288         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28289         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28290         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28291         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28292         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28293         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28294         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28295         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28296         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28297
28298 2008-10-17  Bruno Haible  <bruno@clisp.org>
28299
28300         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28301         HP-UX and IRIX, use -0.0L.
28302         * tests/test-ceill.c (minus_zero): Likewise.
28303         * tests/test-floorl.c (minus_zero): Likewise.
28304         * tests/test-frexpl.c (minus_zero): Likewise.
28305         * tests/test-isnan.c (minus_zerol): Likewise.
28306         * tests/test-isnanl.h (minus_zero): Likewise.
28307         * tests/test-ldexpl.c (minus_zero): Likewise.
28308         * tests/test-roundl.c (minus_zero): Likewise.
28309         * tests/test-signbit.c (minus_zerol): Likewise.
28310         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28311         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28312         * tests/test-truncl.c (minus_zero): Likewise.
28313         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28314         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28315         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28316         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28317
28318 2008-10-17  Bruno Haible  <bruno@clisp.org>
28319
28320         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28321         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28322         that it gets activated only for gcc >= 3.0.
28323         * lib/dirent.in.h: Likewise.
28324         * lib/errno.in.h: Likewise.
28325         * lib/fcntl.in.h: Likewise.
28326         * lib/float.in.h: Likewise.
28327         * lib/iconv.in.h: Likewise.
28328         * lib/inttypes.in.h: Likewise.
28329         * lib/locale.in.h: Likewise.
28330         * lib/math.in.h: Likewise.
28331         * lib/netdb.in.h: Likewise.
28332         * lib/netinet_in.in.h: Likewise.
28333         * lib/search.in.h: Likewise.
28334         * lib/signal.in.h: Likewise.
28335         * lib/spawn.in.h: Likewise.
28336         * lib/stdarg.in.h: Likewise.
28337         * lib/stdint.in.h: Likewise.
28338         * lib/stdio.in.h: Likewise.
28339         * lib/stdlib.in.h: Likewise.
28340         * lib/string.in.h: Likewise.
28341         * lib/strings.in.h: Likewise.
28342         * lib/sys_file.in.h: Likewise.
28343         * lib/sys_ioctl.in.h: Likewise.
28344         * lib/sys_select.in.h: Likewise.
28345         * lib/sys_socket.in.h: Likewise.
28346         * lib/sys_stat.in.h: Likewise.
28347         * lib/sys_time.in.h: Likewise.
28348         * lib/sysexits.in.h: Likewise.
28349         * lib/time.in.h: Likewise.
28350         * lib/unistd.in.h: Likewise.
28351         * lib/wchar.in.h: Likewise.
28352         * lib/wctype.in.h: Likewise.
28353         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28354
28355 2008-10-17  Jim Meyering  <meyering@redhat.com>
28356
28357         ignore-value: don't depend on inline module
28358         * modules/ignore-value (Depends-on): Remove 'inline'.
28359         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28360         Suggestion from Bruno Haible.
28361
28362 2008-10-17  Bruno Haible  <bruno@clisp.org>
28363
28364         New implementation of condition variables for Win32.
28365         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28366         (gl_linked_waitqueue_t): New type.
28367         (gl_cond_t): Use it.
28368         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28369         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28370         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28371         (glthread_cond_init_func, glthread_cond_wait_func,
28372         glthread_cond_timedwait_func, glthread_cond_signal_func,
28373         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28374         Reimplemented on the basis of gl_linked_waitqueue_t.
28375         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28376         gl_waitqueue_t.
28377         (gl_rwlock_t): Update.
28378         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28379
28380 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28381
28382         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28383         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28384
28385 2008-10-17  Jim Meyering  <meyering@redhat.com>
28386
28387         ignore-value: new module
28388         * modules/ignore-value: New file.
28389         * lib/ignore-value.h: New file.
28390         * MODULES.html.sh (Compiler warning management): New section,
28391         just for this module.  More to come.
28392
28393 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28394
28395         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28396         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28397         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28398
28399 2008-10-16  Jim Meyering  <meyering@redhat.com>
28400
28401         openat-die.c: avoid 'no previous prototype' warning
28402         * lib/openat-die.c: Include "openat.h".
28403         Reported by Reuben Thomas <rrt@sc3d.org>.
28404
28405 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28406
28407         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28408         * lib/netdb.in.h: Fix typo.
28409         Reported by Bruno Haible  <bruno@clisp.org>
28410
28411         * lib/netdb.in.h: Include sys/socket.h for platforms without
28412         netdb.h, to get structures like hostent on MinGW.
28413         * modules/netdb (Depends-on): Add sys_socket.
28414
28415 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28416
28417         * modules/netdb, modules/netdb-tests: New file.
28418         * m4/netdb_h.m4: New file.
28419         * lib/netdb.in.h: Add, currently just an empty file pending
28420         definitions.
28421         * tests/test-netdb.c: New file.
28422         * doc/posix-headers/netdb.texi: Mention that we replace it if
28423         needed.
28424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28425         netdb.
28426
28427 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28428
28429         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28430         with code.
28431
28432 2008-10-13  Bruno Haible  <bruno@clisp.org>
28433
28434         * lib/glthread/cond.c (glthread_cond_wait_func,
28435         glthread_cond_timedwait_func): Add a comment.
28436
28437 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28438
28439         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28440         * tests/test-select.c: Likewise,
28441
28442 2008-10-13  Bruno Haible  <bruno@clisp.org>
28443
28444         * lib/glthread/cond.c (glthread_cond_wait_func,
28445         glthread_cond_timedwait_func): Fix variable name.
28446         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28447
28448 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28449
28450         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28451         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28452         struct sockaddr.sa_len.
28453         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28454
28455 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28456
28457         * build-aux/pmccabe2html: Add css and css_url parameters.
28458
28459 2008-10-12  Bruno Haible  <bruno@clisp.org>
28460
28461         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28462         calling aclx_get.
28463         Reported by Rainer Tammer <tammer@tammer.net>.
28464
28465 2008-10-12  Bruno Haible  <bruno@clisp.org>
28466
28467         Use msvcrt aware primitives for creation/termination of Win32 threads.
28468         * lib/glthread/thread.c: Include <process.h>.
28469         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28470         (wrapper_func): Update signature.
28471         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28472
28473 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28474             Bruno Haible  <bruno@clisp.org>
28475
28476         Provide a Win32 implementation of the 'cond' module.
28477         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28478         * lib/glthread/cond.c (glthread_cond_init_func,
28479         glthread_cond_wait_func, glthread_cond_timedwait_func,
28480         glthread_cond_signal_func, glthread_cond_broadcast_func,
28481         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28482         * modules/cond (Dependencies): Add gettimeofday.
28483
28484 2008-10-11  Bruno Haible  <bruno@clisp.org>
28485
28486         Make sleep work on older versions of mingw.
28487         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28488         only whether it exists.
28489         * doc/posix-functions/sleep.texi: Mention the problem with older
28490         versions of mingw.
28491
28492 2008-10-11  Bruno Haible  <bruno@clisp.org>
28493
28494         New module 'shutdown'.
28495         * modules/shutdown: New file.
28496         * lib/sys_socket.in.h (shutdown): New declaration.
28497         * lib/winsock.c (shutdown): New function.
28498         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28499         GNULIB_SHUTDOWN.
28500         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28501         * doc/posix-functions/shutdown.texi: Document the new module.
28502
28503 2008-10-11  Jim Meyering  <meyering@redhat.com>
28504
28505         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28506
28507 2008-10-11  Bruno Haible  <bruno@clisp.org>
28508
28509         New module 'fclose'.
28510         * modules/fclose: New file.
28511         * lib/stdio.in.h (fclose): New declaration.
28512         * lib/fclose.c: New file.
28513         * m4/fclose.m4: New file.
28514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28515         REPLACE_FCLOSE.
28516         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28517         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28518         REPLACE_FCLOSE.
28519         * modules/close (Depends-on): fclose.
28520         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28521
28522 2008-10-11  Bruno Haible  <bruno@clisp.org>
28523
28524         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28525         set errno and don't call _close.
28526
28527 2008-10-10  Bruno Haible  <bruno@clisp.org>
28528
28529         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28530         ACL, not afterwards. Fixes test failure on Cygwin.
28531
28532 2008-10-09  Ben Pfaff  <blp@gnu.org>
28533
28534         * build-aux/announce-gen: Fix gnulib version related part of usage
28535         message.  Die with a useful error message if no tarballs are
28536         found.
28537
28538 2008-10-10  Jim Meyering  <meyering@redhat.com>
28539
28540         bootstrap: use git's --depth=N option only if it's supported
28541         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28542         recognize the --depth option.  Reported by Pádraig Brady.
28543
28544 2008-10-09  Bruno Haible  <bruno@clisp.org>
28545
28546         New module 'ioctl'.
28547         * modules/ioctl: New file.
28548         * lib/sys_socket.in.h (ioctl): Remove declaration.
28549         * lib/winsock.c: Include <sys/ioctl.h>.
28550         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28551         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28552         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28553         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28554         * doc/posix-functions/ioctl.texi: Mention the new module.
28555
28556 2008-10-09  Bruno Haible  <bruno@clisp.org>
28557
28558         New module 'sys_ioctl'.
28559         * lib/sys_ioctl.in.h: New file.
28560         * m4/sys_ioctl_h.m4: New file.
28561         * modules/sys_ioctl: New file.
28562         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28563
28564 2008-10-09  Bruno Haible  <bruno@clisp.org>
28565
28566         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28567         * lib/winsock.c: Include <stdarg.h>.
28568         (rpl_ioctl): Change to second argument 'int' and then varargs.
28569
28570 2008-10-09  Bruno Haible  <bruno@clisp.org>
28571
28572         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28573         when the sys_socket module is present and the system has <winsock2.h>.
28574
28575 2008-10-09  Bruno Haible  <bruno@clisp.org>
28576
28577         * doc/posix-functions/close.texi: Mention module 'close' instead of
28578         module 'sys_socket'.
28579
28580 2008-10-09  Bruno Haible  <bruno@clisp.org>
28581
28582         * doc/glibc-headers/sys_ioctl.texi: New file.
28583         * doc/gnulib.texi: Include it.
28584
28585 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28586             Bruno Haible  <bruno@clisp.org>
28587
28588         Combine the two replacements of 'close'.
28589         * lib/sys_socket.in.h (close): Define to a reminder to include
28590         <unistd.h>.
28591         (_gl_close_fd_maybe_socket): New declaration.
28592         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28593         * lib/winsock.c (close): Remove undefinition.
28594         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28595         needed for the gnulib module 'close'.
28596         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28597         define to an error symbol or to a warning, if suitable.
28598         * lib/close.c: Include <sys/socket.h>.
28599         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28600         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28601         UNISTD_H_HAVE_WINSOCK2_H.
28602         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28604         UNISTD_H_HAVE_WINSOCK2_H.
28605         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28606         (configure.ac): Set a module indicator.
28607         (Makefile.am): Substitute GNULIB_CLOSE.
28608         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28609         * modules/poll-tests (Depends-on): Add close.
28610         * modules/select-tests (Depends-on): Likewise.
28611
28612 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28613             Bruno Haible  <bruno@clisp.org>
28614
28615         New module 'close'.
28616         * modules/close: New file.
28617         * lib/unistd.in.h (close): Move declaration out of the
28618         FCHDIR_REPLACEMENT scope.
28619         (_gl_unregister_fd): New declaration.
28620         * lib/close.c: New file.
28621         * lib/fchdir.c (rpl_close): Remove function.
28622         * m4/close.m4: New file.
28623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28624         close.
28625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28626         REPLACE_CLOSE.
28627         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28628         REPLACE_CLOSE.
28629         * modules/fchdir (Depends-on): Add close.
28630
28631 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28632             Bruno Haible  <bruno@clisp.org>
28633
28634         * lib/fcntl.in.h (open): Simplify conditionals.
28635         (_gl_register_fd): New declaration.
28636         * lib/fchdir.c (rpl_open): Remove function.
28637         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28638         also.
28639         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28641         open.
28642
28643 2008-10-09  Jim Meyering  <meyering@redhat.com>
28644
28645         GNUmakefile: use the more name-space-friendly "_version"
28646         * top/GNUmakefile (_dummy): Update.
28647         (_version): Rename from "version".
28648
28649 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28650             Bruno Haible  <bruno@clisp.org>
28651
28652         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28653         rpl_close.
28654         (_gl_register_fd): New function, extracted from rpl_open.
28655         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28656         (rpl_open, rpl_opendir): Use _gl_register_fd.
28657
28658 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28659
28660         Fix organization of 'open' replacement.
28661         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28662         (gl_FUNC_OPEN): Use it.
28663         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28664
28665 2008-10-08  Bruno Haible  <bruno@clisp.org>
28666
28667         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28668
28669 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28670
28671         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28672         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28673         listen).
28674
28675 2008-10-08  Eric Blake  <ebb9@byu.net>
28676
28677         GNUmakefile: add 'make version' target
28678         * top/GNUmakefile (_curr-ver): Split version update rules...
28679         (version): ...into a target.
28680
28681 2008-10-07  Bruno Haible  <bruno@clisp.org>
28682
28683         Use a more portable replacement expression for -0.0L.
28684         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28685         instead of -0.0L. Fix m4 quotation.
28686
28687         * tests/test-signbit.c: Include <float.h>.
28688         (minus_zero): New variable.
28689         (test_signbitl): Use minus_zero instead of -zero.
28690         * modules/signbit-tests (Depends-on): Add float.
28691
28692         * tests/test-ceill.c: Include <float.h>.
28693         (zero): Remove variable.
28694         (minus_zero): New variable.
28695         (main): Use minus_zero instead of -zero.
28696         * modules/ceill-tests (Depends-on): Add float.
28697
28698         * tests/test-floorl.c: Include <float.h>.
28699         (zero): Remove variable.
28700         (minus_zero): New variable.
28701         (main): Use minus_zero instead of -zero.
28702         * modules/floorl-tests (Depends-on): Add float.
28703
28704         * tests/test-roundl.c: Include <float.h>.
28705         (zero): Remove variable.
28706         (minus_zero): New variable.
28707         (main): Use minus_zero instead of -zero.
28708         * modules/roundl-tests (Depends-on): Add float.
28709
28710         * tests/test-truncl.c: Include <float.h>.
28711         (zero): Remove variable.
28712         (minus_zero): New variable.
28713         (main): Use minus_zero instead of -zero.
28714         * modules/truncl-tests (Depends-on): Add float.
28715
28716         * tests/test-frexpl.c (zero): Remove variable.
28717         (minus_zero): New variable.
28718         (main): Use minus_zero instead of -zero.
28719         * modules/frexpl-tests (Depends-on): Add float.
28720
28721         * tests/test-isnan.c (zerol): Remove variable.
28722         (minus_zerol): New variable.
28723         (test_long_double): Use minus_zerol instead of -zerol.
28724         * modules/isnan-tests (Depends-on): Add float.
28725
28726         * tests/test-isnanl.h (zero): Remove variable.
28727         (minus_zero): New variable.
28728         (main): Use minus_zero instead of -zero.
28729         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28730         * modules/isnanl-tests (Depends-on): Add float.
28731
28732         * tests/test-ldexpl.c (zero): Remove variable.
28733         (minus_zero): New variable.
28734         (main): Use minus_zero instead of -zero.
28735         * modules/ldexpl-tests (Depends-on): Add float.
28736
28737         * tests/test-snprintf-posix.h (zerol): Remove variable.
28738         (minus_zerol): New variable.
28739         (test_function): Use minus_zerol instead of -zerol.
28740         * modules/snprintf-posix-tests (Depends-on): Add float.
28741         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28742
28743         * tests/test-sprintf-posix.h (zerol): Remove variable.
28744         (minus_zerol): New variable.
28745         (test_function): Use minus_zerol instead of -zerol.
28746         * modules/sprintf-posix-tests (Depends-on): Add float.
28747         * modules/vsprintf-posix-tests (Depends-on): Add float.
28748
28749         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28750         (minus_zerol): New variable.
28751         (test_function): Use minus_zerol instead of -zerol.
28752         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28753
28754         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28755         (minus_zerol): New variable.
28756         (test_function): Use minus_zerol instead of -zerol.
28757         * modules/vasprintf-posix-tests (Depends-on): Add float.
28758
28759 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28760
28761         * MODULES.html.sh (Support for building documentation): Mention
28762         pmccabe2html.  Sort entries.
28763
28764         Add pmccabe2html module, from gnupdf.
28765         * build-aux/pmccabe.css: New file.
28766         * build-aux/pmccabe2html: New file.
28767         * m4/pmccabe2html.m4: New file.
28768         * modules/pmccabe2html: New file.
28769
28770 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28771
28772         flock: new module
28773         * MODULES.html.sh: Add to list of modules.
28774         * lib/flock.c: flock implementation for Windows and Unix systems
28775         which have fcntl.
28776         * doc/glibc-functions/flock.texi: Update documentation.
28777         * lib/sys_file.in.h: <sys/file.h> header file.
28778         * m4/flock.m4: M4 macros.
28779         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28780         * modules/flock: flock module.
28781         * modules/flock-tests: flock tests module.
28782         * modules/sys_file: sys/file.h module.
28783         * tests/test-flock.c: test suite for flock.
28784
28785 2008-10-06  Jim Meyering  <meyering@redhat.com>
28786
28787         bootstrap: check for LT_INIT more portably still ;-)
28788         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28789         Spotted by Bruno Haible.
28790
28791 2008-10-06  Eric Blake  <ebb9@byu.net>
28792
28793         test-signbit: avoid tripping Irix cc bug on -0.0L
28794         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28795         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28796         entire testsuite consistent and avoids an Irix 6.2 bug.
28797
28798 2008-10-05  Bruno Haible  <bruno@clisp.org>
28799             Jim Meyering  <jim@meyering.net>
28800
28801         Add an option for ignoring EPIPE during close_stdout.
28802         * lib/closeout.h: Include <stdbool.h>.
28803         (close_stdout_set_ignore_EPIPE): New declaration.
28804         * lib/closeout.c: Include <stdbool.h>.
28805         (ignore_EPIPE): New variable.
28806         (close_stdout_set_ignore_EPIPE): New function.
28807         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28808         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28809         failure.
28810         * modules/closeout (Depends-on): Add stdbool.
28811
28812 2008-10-05  Bruno Haible  <bruno@clisp.org>
28813
28814         * modules/accept: New file.
28815         * modules/bind: New file.
28816         * modules/connect: New file.
28817         * modules/getpeername: New file.
28818         * modules/getsockname: New file.
28819         * modules/getsockopt: New file.
28820         * modules/listen: New file.
28821         * modules/recv: New file.
28822         * modules/recvfrom: New file.
28823         * modules/send: New file.
28824         * modules/sendto: New file.
28825         * modules/setsockopt: New file.
28826         * modules/socket: New file.
28827         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28828         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28829         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28830         the particular module is requested. Add a link warning when the
28831         particular module is not requested.
28832         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28833         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28834         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28835         the particular module is requested.
28836         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28837         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28838         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28839         * modules/sys_socket (Depends-on): Add link-warning.
28840         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28841         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28842         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28843         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28844         GL_LINK_WARNING.
28845         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28846         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28847         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28848         * doc/posix-functions/getpeername.texi: Mention the new module
28849         'getpeername'.
28850         * doc/posix-functions/getsockname.texi: Mention the new module
28851         'getsockname'.
28852         * doc/posix-functions/getsockopt.texi: Mention the new module
28853         'getsockopt'.
28854         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28855         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28856         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28857         * doc/posix-functions/send.texi: Mention the new module 'send'.
28858         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28859         * doc/posix-functions/setsockopt.texi: Mention the new module
28860         'setsockopt'.
28861         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28862         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28863         listen, connect, accept.
28864         * modules/select-tests (Depends-on): Likewise.
28865
28866 2008-10-05  Bruno Haible  <bruno@clisp.org>
28867
28868         * lib/winsock.c (strerror): Remove unused #undef.
28869         (rpl_close): Remove unused local variable.
28870
28871         * modules/sys_socket (Depends-on); Add errno.
28872
28873 2008-10-05  Bruno Haible  <bruno@clisp.org>
28874
28875         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28876         (select): Add a link warning when the 'select' module is not used.
28877         * modules/sys_select (Depends-on): Add link-warning.
28878         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28879         Suggested by Paolo Bonzini.
28880
28881 2008-10-05  Jim Meyering  <meyering@redhat.com>
28882
28883         bootstrap: check for LT_INIT more portably
28884         * build-aux/bootstrap: Avoid using grep -E, since it's not
28885         portable enough.  Suggestion from Bruno Haible.
28886
28887 2008-10-05  Bruno Haible  <bruno@clisp.org>
28888
28889         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28890         as being fixed by gnulib.
28891
28892 2008-10-05  Bruno Haible  <bruno@clisp.org>
28893
28894         * modules/select-tests: New file, mostly copied from
28895         modules/sys_select-tests.
28896         * tests/test-select.c: New file, mostly copied from
28897         tests/test-sys_select.c.
28898         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28899         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28900         (Makefile.am): Remove test_sys_select_LDADD.
28901
28902         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28903         to an undefined symbol, for an error message.
28904         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28905         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28906         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28907         winsock-select.c here.
28908         * modules/sys_select (Files): Remove lib/winsock-select.c.
28909         (Depends-on): Remove alloca.
28910         (Makefile.am): Substitute GNULIB_SELECT.
28911         * modules/select: New file.
28912         * doc/posix-functions/select.texi: Update.
28913
28914 2008-10-05  Bruno Haible  <bruno@clisp.org>
28915
28916         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28917         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28918         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28919         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28920         getdtablesize.
28921         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28922         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28923
28924 2008-10-05  Bruno Haible  <bruno@clisp.org>
28925
28926         * modules/getdtablesize-tests: New file.
28927         * tests/test-getdtablesize.c: New file.
28928
28929         New module 'getdtablesize'.
28930         * lib/unistd.in.h (getdtablesize): New declaration.
28931         * lib/getdtablesize.c: New file.
28932         * m4/getdtablesize.m4: New file.
28933         * modules/getdtablesize: New file.
28934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28935         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28936         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28937         HAVE_GETDTABLESIZE.
28938         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28939
28940 2008-10-05  Bruno Haible  <bruno@clisp.org>
28941
28942         * modules/sched (Makefile.am): Fix typo.
28943         Reported by Simon Josefsson.
28944
28945 2008-10-05  Jim Meyering  <meyering@redhat.com>
28946
28947         bootstrap: check for LT_INIT, too
28948         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28949         are deprecated.  Suggestion from Ralf Wildenhues.
28950
28951 2008-10-05  Bruno Haible  <bruno@clisp.org>
28952
28953         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28954         overriding them by ours.
28955         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28956
28957 2008-10-05  Jim Meyering  <meyering@redhat.com>
28958
28959         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28960         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28961         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28962
28963 2008-10-04  Bruno Haible  <bruno@clisp.org>
28964
28965         * modules/dup2 (License): Change to LGPLv2+.
28966         * modules/sleep (License): Likewise.
28967         * modules/perror (License): Likewise.
28968         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28969         Blake.
28970         * modules/signal (License): Likewise.
28971         * modules/sigprocmask (License): Likewise.
28972         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28973         Meyering.
28974
28975 2008-10-04  Bruno Haible  <bruno@clisp.org>
28976
28977         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
28978         Reported by Rainer Tammer <tammer@tammer.net>.
28979
28980 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
28981             Bruno Haible  <bruno@clisp.org>
28982
28983         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28984         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28985         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28986
28987 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28988
28989         filevercmp: new module
28990         * lib/filevercmp.h: New function filevercmp comparing version strings.
28991         * lib/filevercmp.c: Implementation of filevercmp function.
28992         * modules/filevercmp: Module metadata.
28993         * tests/test-filevercmp.c: Unit test for new module.
28994         * modules/filevercmp-tests: Unit test metadata.
28995         * MODULES.html.sh: Add filevercmp module.
28996
28997 2008-10-03  Bruno Haible  <bruno@clisp.org>
28998
28999         * lib/c-ctype.h: Add comment.
29000         Reported by Jim Meyering.
29001
29002 2008-10-02  Bruno Haible  <bruno@clisp.org>
29003
29004         * modules/posix_spawn-internal (Depends-on): Add 'open'.
29005
29006 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29007
29008         * build-aux/bootstrap: Allow renaming bootstrap, and change the
29009         name of bootstrap.conf accordingly.
29010
29011 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29012
29013         * build-aux/bootstrap: Install git-merge-changelog configuration
29014         items into .gitconfig if needed.
29015
29016 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29017
29018         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
29019         git repository, and initialize/update it accordingly.
29020
29021 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
29022
29023         * modules/fsync-tests: New file.
29024         * tests/test-fsync.c: New file.
29025
29026         New module 'fsync'.
29027         * lib/fsync.c: New file.
29028         * m4/fsync.m4: New file.
29029         * modules/fsync: New file.
29030         * lib/unistd.in.h (fsync): New declaration.
29031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
29032         GNULIB_FSYNC and HAVE_FSYNC.
29033         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
29034         * MODULES.html.sh (posix_functions): Add fsync.
29035         * doc/posix-functions/fsync.texi: Mention the new module.
29036
29037 2008-10-02  Jim Meyering  <meyering@redhat.com>
29038
29039         fts.c: sync with similar code from coreutils' remove.c
29040         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
29041         Guard also with "#if defined __linux__", since for now at least,
29042         this code is Linux-kernel-specific.
29043
29044 2008-10-02  Jim Meyering  <meyering@redhat.com>
29045
29046         fts: bug fixes
29047         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
29048         Include <sys/vfs.h>, not <sys/statfs.h>.
29049
29050         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
29051         Include <sys/vfs.h>, not <sys/statfs.h>.
29052
29053 2008-10-01  Bruno Haible  <bruno@clisp.org>
29054
29055         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
29056         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
29057         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
29058         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
29059         * doc/posix-functions/posix_spawnp.texi: Likewise.
29060         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
29061         whether posix_spawn actually works.
29062         * m4/pipe.m4 (gl_PIPE): Likewise.
29063         * modules/execute (Files): Add m4/posix_spawn.m4.
29064         * modules/pipe (Files): Add m4/posix_spawn.m4.
29065         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
29066
29067 2008-10-01  Jim Meyering  <meyering@redhat.com>
29068
29069         remove trailing spaces
29070         * NEWS: Likewise.
29071         * lib/poll.c (poll): Likewise.
29072         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29073         * lib/winsock.c (rpl_close): Likewise.
29074         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
29075         * modules/yield: Likewise.
29076         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29077         * tests/test-sys_select.c (connect_to_socket): Likewise.
29078
29079         fts.c: adjust a new interface to be more generally useful
29080         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29081         (fts_build): Adjust caller.
29082
29083 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29084
29085         * modules/cond-tests: New file.
29086         * tests/test-cond.c: New file.
29087
29088 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29089             Bruno Haible  <bruno@clisp.org>
29090
29091         * modules/cond (Dependencies): Add errno, time.
29092         * lib/glthread/cond.h: Include <time.h>.
29093         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29094         across platforms.
29095
29096 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29097             Bruno Haible  <bruno@clisp.org>
29098
29099         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29100
29101 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29102             Bruno Haible  <bruno@clisp.org>
29103
29104         * modules/tls-tests (Depends-on): Add thread, yield.
29105         (configure.ac): Remove all checks.
29106         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29107         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29108         gl_thread_self): Remove definitions. Include glthread/thread.h and
29109         glthread/yield.h instead.
29110         (test_tls): Pass an additional NULL argument to gl_thread_join.
29111
29112 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29113             Bruno Haible  <bruno@clisp.org>
29114
29115         * modules/lock-tests (Depends-on): Add thread, yield.
29116         (configure.ac): Remove all checks.
29117         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29118         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29119         gl_thread_self): Remove definitions. Include glthread/thread.h and
29120         glthread/yield.h instead.
29121         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29122         additional NULL argument to gl_thread_join.
29123
29124 2008-09-30  Bruno Haible  <bruno@clisp.org>
29125
29126         Fix the Win32 implementation of the 'thread' module.
29127         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29128         pointer type.
29129         (gl_thread_self): Invoke gl_thread_self_func.
29130         (gl_thread_self_func): New declaration.
29131         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29132         (do_init_self_key, init_self_key): New functions.
29133         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29134         Remove some fields.
29135         (running_threads, running_lock): Remove variables.
29136         (get_current_thread_handle): New function.
29137         (gl_thread_self_func, wrapper_func, glthread_create_func,
29138         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29139         simplified.
29140
29141 2008-09-30  Bruno Haible  <bruno@clisp.org>
29142
29143         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29144         files.
29145
29146 2008-09-30  Jim Meyering  <meyering@redhat.com>
29147
29148         fts.m4: correct the test for statfs.f_type
29149         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29150         when checking for statfs.f_type.
29151
29152 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29153
29154         tests: avoid some compiler warnings
29155         * tests/test-memchr.c (main): Pass NULL indirectly.
29156         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29157
29158 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29159
29160         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29161         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29162         exactly specified dayshifts.
29163         (dayshift): New rule.
29164         (rel): Add dayshift.
29165         (relative_time_table) [tomorrow, yesterday, today, now]:
29166         Use tDAY_SHIFT in place of tDAY_UNIT.
29167         * tests/test-getdate.c: Add tests for now-disallowed countable
29168         dayshifts, e.g., "4 yesterday ago".
29169
29170 2008-09-29  Bruno Haible  <bruno@clisp.org>
29171
29172         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29173         * tests/test-posix_spawn1.in.sh: Renamed from
29174         tests/test-posix_spawn.in.sh.
29175         * tests/test-posix_spawn2.c: New file.
29176         * tests/test-posix_spawn2.in.sh: New file.
29177         * modules/posix_spawnp-tests (Files): Update.
29178         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29179
29180 2008-09-29  Bruno Haible  <bruno@clisp.org>
29181
29182         Propagate effects of putenv/setenv/unsetenv to child processes.
29183         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29184         * lib/pipe.c (create_pipe): Likewise.
29185
29186 2008-09-29  Bruno Haible  <bruno@clisp.org>
29187
29188         Enable use of shell scripts as executables in mingw.
29189         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29190         run the program as a shell script.
29191         * lib/pipe.c (create_pipe): Likewise.
29192         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29193         resulting array.
29194
29195 2008-09-29  Eric Blake  <ebb9@byu.net>
29196
29197         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29198
29199 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29200
29201         * doc/posix-functions/accept.texi: Update mingw problems.
29202         * doc/posix-functions/bind.texi: Update mingw problems.
29203         * doc/posix-functions/close.texi: Update mingw problems.
29204         * doc/posix-functions/connect.texi: Update mingw problems.
29205         * doc/posix-functions/getpeername.texi: Update mingw problems.
29206         * doc/posix-functions/getsockname.texi: Update mingw problems.
29207         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29208         * doc/posix-functions/ioctl.texi: Update mingw problems.
29209         * doc/posix-functions/listen.texi: Update mingw problems.
29210         * doc/posix-functions/recv.texi: Update mingw problems.
29211         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29212         * doc/posix-functions/select.texi: Update mingw problems.
29213         * doc/posix-functions/send.texi: Update mingw problems.
29214         * doc/posix-functions/sendto.texi: Update mingw problems.
29215         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29216         * doc/posix-functions/socket.texi: Update mingw problems.
29217
29218 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29219             Bruno Haible  <bruno@clisp.org>
29220
29221         * lib/sys_select.in.h: Include sys/time.h.
29222         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29223         * modules/sys_select: Depend on sys_time.
29224         * tests/test-sys_select.c: Test that sys/select.h defines struct
29225         timeval fully.
29226
29227 2008-09-29  Bruno Haible  <bruno@clisp.org>
29228
29229         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29230         * lib/sys_select.in.h: Likewise.
29231
29232 2008-09-29  Bruno Haible  <bruno@clisp.org>
29233
29234         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29235
29236 2008-09-29  Bruno Haible  <bruno@clisp.org>
29237
29238         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29239         Set LIBSOCKET instead of augmenting LIBS.
29240         * modules/sockets (Link): New section.
29241         * modules/sockets-tests (test_sockets_LDADD): New variable.
29242         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29243         * modules/poll-tests (test_poll_LDADD): New variable.
29244         * NEWS: Document the change.
29245
29246 2008-09-29  Bruno Haible  <bruno@clisp.org>
29247
29248         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29249         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29250         ARPA_INET_H directly.
29251         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29252
29253 2008-09-28  Bruno Haible  <bruno@clisp.org>
29254
29255         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29256         from gl_HEADER_SYS_SOCKET.
29257         (gl_HEADER_SYS_SOCKET): Invoke it.
29258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29259
29260 2008-09-28  Bruno Haible  <bruno@clisp.org>
29261
29262         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29263         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29264         Needed on OSF/1 4.0.
29265
29266 2008-09-28  Bruno Haible  <bruno@clisp.org>
29267
29268         Override open more carefully.
29269         * lib/open.c (orig_open): New function.
29270         (rpl_open): Use orig_open instead of open.
29271         * lib/fcntl.in.h: Add special invocation convention.
29272         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29273         (gl_FUNC_OPEN): Invoke it.
29274
29275         Override freopen more carefully.
29276         * lib/freopen.c (orig_freopen): New function.
29277         (rpl_freopen): Use orig_freopen instead of freopen.
29278         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29279         (gl_FUNC_FREOPEN): Invoke it.
29280
29281         Override fopen more carefully.
29282         * lib/fopen.c (orig_fopen): New function.
29283         (rpl_fopen): Use orig_fopen instead of fopen.
29284         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29285         (gl_FUNC_FOPEN): Invoke it.
29286         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29287
29288 2008-09-28  Bruno Haible  <bruno@clisp.org>
29289
29290         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29291         SIGPIPE.
29292
29293 2008-09-28  Bruno Haible  <bruno@clisp.org>
29294
29295         * tests/test-sigaction.c (handler, main): Disable the check whether
29296         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29297         glibc systems with LinuxThreads.
29298
29299 2008-09-28  Bruno Haible  <bruno@clisp.org>
29300
29301         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29302
29303         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29304         with AIX xlc.
29305         * lib/fcntl.in.h (open): Likewise.
29306         Reported by Rainer Tammer <tammer@tammer.net>.
29307
29308 2008-09-28  Bruno Haible  <bruno@clisp.org>
29309
29310         * modules/posix_spawnp-tests: New file.
29311         * tests/test-posix_spawn.c: New file.
29312         * tests/test-posix_spawn.in.sh: New file.
29313
29314         New module 'posix_spawnp'.
29315         * modules/posix_spawnp: New file.
29316         * lib/spawnp.c: New file, from GNU libc with modifications.
29317         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29318
29319         New module 'posix_spawn'.
29320         * modules/posix_spawn: New file.
29321         * lib/spawn.c: New file, from GNU libc with modifications.
29322         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29323
29324         New module 'posix_spawnattr_destroy'.
29325         * modules/posix_spawnattr_destroy: New file.
29326         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29327         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29328         module.
29329
29330         New module 'posix_spawnattr_setsigmask'.
29331         * modules/posix_spawnattr_setsigmask: New file.
29332         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29333         modifications.
29334         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29335         new module.
29336
29337         New module 'posix_spawnattr_getsigmask'.
29338         * modules/posix_spawnattr_getsigmask: New file.
29339         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29340         modifications.
29341         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29342         new module.
29343
29344         New module 'posix_spawnattr_setsigdefault'.
29345         * modules/posix_spawnattr_setsigdefault: New file.
29346         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29347         modifications.
29348         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29349         new module.
29350
29351         New module 'posix_spawnattr_getsigdefault'.
29352         * modules/posix_spawnattr_getsigdefault: New file.
29353         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29354         modifications.
29355         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29356         new module.
29357
29358         New module 'posix_spawnattr_setschedpolicy'.
29359         * modules/posix_spawnattr_setschedpolicy: New file.
29360         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29361         modifications.
29362         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29363         new module.
29364
29365         New module 'posix_spawnattr_getschedpolicy'.
29366         * modules/posix_spawnattr_getschedpolicy: New file.
29367         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29368         modifications.
29369         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29370         new module.
29371
29372         New module 'posix_spawnattr_setschedparam'.
29373         * modules/posix_spawnattr_setschedparam: New file.
29374         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29375         modifications.
29376         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29377         new module.
29378
29379         New module 'posix_spawnattr_getschedparam'.
29380         * modules/posix_spawnattr_getschedparam: New file.
29381         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29382         modifications.
29383         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29384         new module.
29385
29386         New module 'posix_spawnattr_setpgroup'.
29387         * modules/posix_spawnattr_setpgroup: New file.
29388         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29389         modifications.
29390         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29391         module.
29392
29393         New module 'posix_spawnattr_getpgroup'.
29394         * modules/posix_spawnattr_getpgroup: New file.
29395         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29396         modifications.
29397         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29398         module.
29399
29400         New module 'posix_spawnattr_setflags'.
29401         * modules/posix_spawnattr_setflags: New file.
29402         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29403         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29404         module.
29405
29406         New module 'posix_spawnattr_getflags'.
29407         * modules/posix_spawnattr_getflags: New file.
29408         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29409         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29410         module.
29411
29412         New module 'posix_spawnattr_init'.
29413         * modules/posix_spawnattr_init: New file.
29414         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29415         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29416         module.
29417
29418         New module 'posix_spawn_file_actions_destroy'.
29419         * modules/posix_spawn_file_actions_destroy: New file.
29420         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29421         modifications.
29422         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29423         the new module.
29424
29425         New module 'posix_spawn_file_actions_addopen'.
29426         * modules/posix_spawn_file_actions_addopen: New file.
29427         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29428         modifications.
29429         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29430         the new module.
29431
29432         New module 'posix_spawn_file_actions_adddup2'.
29433         * modules/posix_spawn_file_actions_adddup2: New file.
29434         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29435         modifications.
29436         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29437         the new module.
29438
29439         New module 'posix_spawn_file_actions_addclose'.
29440         * modules/posix_spawn_file_actions_addclose: New file.
29441         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29442         modifications.
29443         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29444         the new module.
29445
29446         New module 'posix_spawn_file_actions_init'.
29447         * modules/posix_spawn_file_actions_init: New file.
29448         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29449         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29450         new module.
29451
29452         New module 'posix_spawn-internal'.
29453         * modules/posix_spawn-internal: New file.
29454         * lib/spawn_int.h: New file, from GNU libc with modifications.
29455         * lib/spawni.c: New file, from GNU libc with modifications.
29456         * m4/posix_spawn.m4: New file.
29457
29458         New module 'spawn'.
29459         * modules/spawn: New file.
29460         * lib/spawn.in.h: New file, from GNU libc with modifications.
29461         * m4/spawn_h.m4: New file.
29462         * doc/posix-headers/spawn.texi: Mention the new module.
29463
29464 2008-09-28  Bruno Haible  <bruno@clisp.org>
29465
29466         * modules/sched-tests: New file.
29467         * tests/test-sched.c: New file.
29468
29469         New module 'sched'.
29470         * modules/sched: New file.
29471         * lib/sched.in.h: New file.
29472         * m4/sched_h.m4: New file.
29473         * doc/posix-headers/sched.texi: Mention the new module.
29474
29475 2008-09-27  Eric Blake  <ebb9@byu.net>
29476
29477         Fix previous patch, and tweak references to $0.
29478         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29479         (func_version, func_gnulib_dir): Don't call this program
29480         gnulib-tool.
29481         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29482         with using $0 in function.
29483         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29484         (func_fatal_error): Reuse the name the user invoked us with.
29485
29486 2008-09-27  Bruno Haible  <bruno@clisp.org>
29487
29488         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29489         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29490         (gl_ICONV_H): Not here.
29491         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29492         instead of assigning ICONV_H directly.
29493
29494         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29496         WCHAR_H directly.
29497
29498 2008-09-27  Bruno Haible  <bruno@clisp.org>
29499
29500         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29501         * modules/arpa_inet (Depends-on): Add link-warning.
29502         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29503         * modules/unistd (Makefile.am): Likewise.
29504
29505 2008-09-26  Bruno Haible  <bruno@clisp.org>
29506
29507         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29508         variables.
29509         (func_version): Essentially copied from gnulib-tool.
29510         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29511         func_readlink): Copied from gnulib-tool.
29512
29513 2008-09-26  Bruno Haible  <bruno@clisp.org>
29514
29515         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29516         invoking git-version-gen.
29517
29518 2008-09-26  Bruno Haible  <bruno@clisp.org>
29519
29520         * posix-modules: Update to directory names changed on 2008-01-19.
29521         Remove commas in output before splitting into words. No more need to
29522         avoid 'ftruncate' since 2007-02-19.
29523
29524 2008-09-26  Bruno Haible  <bruno@clisp.org>
29525
29526         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29527
29528 2008-09-26  Bruno Haible  <bruno@clisp.org>
29529
29530         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29531         * modules/fwriteerror (Depends-on): Add errno.
29532
29533 2008-09-26  Bruno Haible  <bruno@clisp.org>
29534
29535         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29536         * tests/test-vc-list-files-cvs.sh: Likewise.
29537
29538 2008-09-26  Bruno Haible  <bruno@clisp.org>
29539
29540         * doc/posix-headers/sys_resource.texi: Reorder items.
29541
29542 2008-09-26  Jim Meyering  <meyering@redhat.com>
29543
29544         fts: tweak inode comparison function
29545         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29546         inode numbers, as documented.
29547
29548         fts: sort dirent entries on inode number before traversing
29549         This avoids a quadratic, seek-related performance penalty when
29550         operating on a directory containing many entries (measurable at 10k;
29551         3.5 hours at 2 million entries with a cold cache) on certain types
29552         of file systems, including ext3 and ext4, but not tmpfs.
29553         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29554         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29555         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29556         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29557         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29558         (fts_build): Set the stat.st_ino member from D_INO.
29559         If it is likely to be useful, sort dirent entries on inode number.
29560
29561         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29562         and the struct statfs.f_type member.
29563         * modules/fts (Depends-on): Add d-ino.
29564
29565 2008-09-26  Bruno Haible  <bruno@clisp.org>
29566
29567         * modules/sigpipe-die (Depends-on): Add sigpipe.
29568
29569         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29570         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29571         and GNULIB_STDIO_H_SIGPIPE are set.
29572         * lib/stdio-write.c: New file.
29573         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29574         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29575         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29576         REPLACE_STDIO_WRITE_FUNCS.
29577         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29578         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29579         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29580         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29581         * modules/stdio (Files): Add lib/stdio-write.c.
29582         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29583         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29584         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29585         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29586         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29587         REPLACE_FPRINTF_POSIX.
29588         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29589         REPLACE_PRINTF_POSIX.
29590         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29591         REPLACE_VFPRINTF_POSIX.
29592         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29593         REPLACE_VPRINTF_POSIX.
29594         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29595         SIGPIPE issue.
29596         * doc/posix-functions/fputc.texi: Likewise.
29597         * doc/posix-functions/fputs.texi: Likewise.
29598         * doc/posix-functions/fwrite.texi: Likewise.
29599         * doc/posix-functions/printf.texi: Likewise.
29600         * doc/posix-functions/putc.texi: Likewise.
29601         * doc/posix-functions/putchar.texi: Likewise.
29602         * doc/posix-functions/puts.texi: Likewise.
29603         * doc/posix-functions/vfprintf.texi: Likewise.
29604         * doc/posix-functions/vprintf.texi: Likewise.
29605
29606         * modules/safe-write (Depends-on): Add write.
29607
29608         * modules/sigpipe-tests: New file.
29609         * tests/test-sigpipe.c: New file.
29610         * tests/test-sigpipe.sh: New file.
29611
29612         * modules/write: New file.
29613         * lib/unistd.in.h: Include <sys/types.h>.
29614         (write): New declaration.
29615         * lib/write.c: New file.
29616         * m4/write.m4: New file.
29617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29618         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29619         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29620         GNULIB_WRITE, REPLACE_WRITE.
29621         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29622         and the SIGPIPE issue.
29623
29624         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29625         (raise): New declaration.
29626         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29627         (ext_signal): New function.
29628         (rpl_raise): New function.
29629         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29630         GNULIB_SIGNAL_H_SIGPIPE.
29631         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29632         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29633
29634         * modules/sigpipe: New file.
29635         * m4/sigpipe.m4: New file.
29636
29637 2008-09-25  Derek Price  <derek@ximbiot.com>
29638             Bruno Haible  <bruno@clisp.org>
29639
29640         * gnulib-tool (func_import): Report all license incompatibilities, not
29641         just the first one.
29642
29643 2008-09-25  Bruno Haible  <bruno@clisp.org>
29644
29645         * gnulib-tool (func_import): When computing the edits, consider not
29646         only the Makefile.ams that exist but also those that will be generated.
29647
29648 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29649
29650         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29651         fixes gnulib-tool --test warning about duplicate dependency.
29652
29653 2008-09-25  Bruno Haible  <bruno@clisp.org>
29654
29655         * gnulib-tool: Don't ask the user to perform edits in the generated
29656         Makefile.ams.
29657         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29658         apply to the Makefile.am being generated.
29659         (func_emit_tests_Makefile_am): Execute edits that apply to the
29660         Makefile.am being generated.
29661         (func_import): Setup list of Makefile.am edits before emitting the
29662         Makefile.ams, not at the end.
29663         (func_create_testdir): Update.
29664         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29665
29666 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29667
29668         * gnulib-tool (func_import): Store the --tests-base option in the
29669         comment in gnulib-cache.m4.
29670
29671 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29672
29673         * NEWS: Document increased portability that sys_select now provides.
29674
29675         * lib/sys_select.in.h: Install select wrapper.
29676         * lib/sys_socket.in.h: Use more descriptive name when there is no
29677         select wrapper.
29678         * lib/winsock-select.c: New.
29679         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29680         Require gl_HEADER_SYS_SOCKET.
29681         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29682         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29683         * tests/test-sys_select.c: Add functional tests.
29684
29685 2008-09-24  Eric Blake  <ebb9@byu.net>
29686
29687         open, fopen: close fd leak in last patch
29688         * lib/open.c (rpl_open): Close fd before returning error.
29689         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29690         * doc/posix-functions/open.texi (open): Document that Irix also
29691         has the bug.
29692         * doc/posix-functions/fopen.texi (fopen): Likewise.
29693         Reported by Paolo Bonzini.
29694
29695 2008-09-24  Bruno Haible  <bruno@clisp.org>
29696
29697         Ensure that a filename ending in a slash cannot be used to access a
29698         non-directory.
29699         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29700         to check whether it's really a directory.
29701         * lib/fopen.c: Include fcntl.h, unistd.h.
29702         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29703         and fdopen().
29704         * modules/fopen (Depends-on): Add unistd.
29705         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29706         * tests/test-fopen.c (main): Likewise.
29707         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29708         * doc/posix-functions/fopen.texi: Likewise.
29709         Reported by Eric Blake.
29710
29711 2008-09-23  Eric Blake  <ebb9@byu.net>
29712
29713         c-stack: avoid compiler optimizations when provoking overflow
29714         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29715         recursion harder to optimize, to ensure a stack overflow occurs.
29716         * tests/test-c-stack.c (recurse): Likewise.
29717         Borrowed from libsigsegv.
29718
29719         c-stack: work around Irix sigaltstack bug
29720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29721         whether sigaltstack uses wrong end of stack_t (copied in part from
29722         libsigsegv).
29723         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29724         Irix bug, without requiring an over-allocation.
29725         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29726         bug.
29727
29728         fopen: document mingw bug on directories
29729         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29730         not allowing a stream visiting a directory, even though reading
29731         from such a stream is not portable.
29732
29733 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29734
29735         * lib/poll.c: Rewrite.
29736         * modules/poll: Depend on alloca.
29737
29738 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29739
29740         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29741         instead define prototypes for a full set of wrappers.  Ensure
29742         that Cygwin does not use the compatibility code, which is only
29743         for MinGW.
29744         * lib/winsock.c: New.
29745         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29746         * modules/sys_socket: Add lib/winsock.c.
29747
29748         * modules/poll-tests: Add errno and perror.
29749         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29750
29751 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29752
29753         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29754
29755 2008-09-23  Bruno Haible  <bruno@clisp.org>
29756
29757         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29758         * doc/glibc-functions/*: Likewise.
29759
29760 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29761
29762         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29763         success.
29764
29765 2008-09-22  Eric Blake  <ebb9@byu.net>
29766             Bruno Haible  <bruno@clisp.org>
29767
29768         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29769         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29770         supply %A but mishandle pseudo-NaN.
29771         Reported by Simon Josefsson.
29772
29773 2008-09-21  Bruno Haible  <bruno@clisp.org>
29774
29775         * tests/test-lock.c (main): Tweak skip message.
29776         * tests/test-tls.c (main): Likewise.
29777
29778 2008-09-21  Bruno Haible  <bruno@clisp.org>
29779
29780         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29781         whether 'struct sigaction' has sa_sigaction here...
29782         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29783         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29784
29785 2008-09-21  Bruno Haible  <bruno@clisp.org>
29786
29787         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29788         section.
29789         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29790         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29791         the new section.
29792         (Support for obsolete systems lacking POSIX:2001): New section.
29793         (String handling <string.h>): Move strdup to the new section.
29794         Suggested by Simon Josefsson and Paolo Bonzini.
29795
29796 2008-09-21  Bruno Haible  <bruno@clisp.org>
29797
29798         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29799         exponents in %e and %g results on 'long double'. Needed for mingw's
29800         improved *printf functions.
29801         * tests/test-vasprintf-posix.c (test_function): Likewise.
29802         * tests/test-snprintf-posix.h (test_function): Likewise.
29803         * tests/test-sprintf-posix.h (test_function): Likewise.
29804         Reported by Eric Blake.
29805
29806 2008-09-21  Bruno Haible  <bruno@clisp.org>
29807
29808         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29809         * tests/test-sprintf-posix.h (test_function): Likewise.
29810
29811 2008-09-21  Bruno Haible  <bruno@clisp.org>
29812
29813         * modules/getpass (Depends-on): Add strdup-posix.
29814
29815         New module 'strdup-posix'.
29816         * modules/strdup-posix: New file.
29817         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29818         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29820         REPLACE_STRDUP.
29821         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29822         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29824         strdup-posix.
29825
29826         * modules/strdup (Depends-on): Remove malloc-posix.
29827
29828 2008-09-20  Bruno Haible  <bruno@clisp.org>
29829
29830         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29831         Wildenhues.
29832
29833 2008-09-20  Bruno Haible  <bruno@clisp.org>
29834
29835         Ensure that wint_t gets defined on IRIX 5.3.
29836         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29837         * lib/wctype.in.h (wint_t): Likewise.
29838         (__wctype_wint_t): Remove type.
29839         (isw*): Use wint_t instead of __wctype_wint_t.
29840         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29841         * modules/wchar (Files): Add m4/wint_t.m4.
29842         (Makefile.am): Substitute HAVE_WINT_T.
29843         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29844         * tests/test-wctype.c: Check that wint_t is defined.
29845         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29846         * doc/posix-headers/wctype.texi: Likewise.
29847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29848
29849 2008-09-18  Bruno Haible  <bruno@clisp.org>
29850
29851         * gnulib-tool (func_exit): Update comment.
29852
29853 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29854
29855         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29856         assumes strdup exists and does not depend on strdup to return
29857         ENOMEM on out of memory conditions.
29858
29859 2008-09-18  Bruno Haible  <bruno@clisp.org>
29860
29861         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
29862         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29863         digits for the exponent.
29864
29865 2008-09-18  Jim Meyering  <meyering@redhat.com>
29866             Bruno Haible  <bruno@clisp.org>
29867
29868         * lib/vasnprintf.c (decimal_point_char): Define also if
29869         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29870
29871 2008-09-16  Bruno Haible  <bruno@clisp.org>
29872         and Eric Blake  <ebb9@byu.net>
29873
29874         vasnprintf: support Irix 5.3
29875         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29876         that mishandle long double infinity.
29877         Reported by Tom G. Christensen.
29878
29879 2008-09-16  Bruno Haible  <bruno@clisp.org>
29880
29881         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29882         Solaris 9.
29883         * doc/glibc-functions/alphasort.texi: Likewise.
29884         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29885
29886 2008-09-16  Jim Meyering  <meyering@redhat.com>
29887
29888         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29889         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29890         a umask modification leak out of a subshell.  Otherwise, the
29891         opensolaris /bin/sh would be accepted and thus cause unwarranted
29892         failures in the coreutils test suite.
29893
29894 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29895
29896         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29897         to succeed.
29898
29899 2008-09-16  Jim Meyering  <meyering@redhat.com>
29900
29901         avoid spurious test failure when library is built without ACL support
29902         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29903         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29904         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29905         * tests/test-copy-acl.sh: Likewise.
29906
29907 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29908
29909         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29910         based on character occurrence counts.
29911
29912 2008-09-15  Eric Blake  <ebb9@byu.net>
29913
29914         tests: avoid some compiler warnings
29915         * tests/test-memchr.c (main): Pass NULL indirectly.
29916         * tests/test-closein.c (main): Avoid unused variable.
29917
29918 2008-09-15  Bruno Haible  <bruno@clisp.org>
29919
29920         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29921         are missing on OpenBSD 4.0 individually.
29922         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29923
29924 2008-09-15  Bruno Haible  <bruno@clisp.org>
29925
29926         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29927         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29928         * doc/posix-functions/perror.texi: Likewise.
29929         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29930         is missing.
29931         Reported by Eric Blake.
29932
29933         * lib/errno.in.h: Use replacement values >= 2000.
29934         Reported by Eric Blake.
29935
29936 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29937
29938         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29939         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29940         limit.
29941         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29942         compareseq was aborted.
29943
29944 2008-09-14  Bruno Haible  <bruno@clisp.org>
29945
29946         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29947         yvec_edit_count.
29948         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29949         (fstrcmp_bounded): Simplify result computation accordingly.
29950
29951 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29952
29953         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29954         (fstrcmp): Define in terms of fstrcmp_bounded.
29955         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29956         lower_bound argument.
29957         Return quickly if the result is certainly < lower_bound.
29958         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29959
29960 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29961
29962         * lib/diffseq.h (EARLY_ABORT): New macro.
29963         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29964         evaluates to true.
29965
29966 2008-09-14  Bruno Haible  <bruno@clisp.org>
29967
29968         * modules/perror-tests: New file.
29969         * tests/test-perror.sh: New file.
29970         * tests/test-perror.c: New file.
29971
29972         New module 'perror'.
29973         * lib/stdio.in.h (perror): New declaration.
29974         * lib/perror.c: New file.
29975         * m4/perror.m4: New file.
29976         * modules/perror: New file.
29977         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
29978         * doc/posix-functions/perror.texi: Mention the perror module.
29979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
29980         REPLACE_PERROR.
29981         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29982         REPLACE_PERROR.
29983
29984 2008-09-14  Bruno Haible  <bruno@clisp.org>
29985
29986         * modules/stdio (Makefile.am): Reorder to match the order in
29987         lib/stdio.in.h.
29988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29989
29990 2008-09-13  Bruno Haible  <bruno@clisp.org>
29991
29992         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29993
29994 2008-09-13  Bruno Haible  <bruno@clisp.org>
29995
29996         Extend strerror to cover the added errno values.
29997         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29998         (rpl_strerror): Provide error messages for the added errno values and
29999         for the WSA* values.
30000         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
30001         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
30002         strerror.
30003         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
30004         * modules/strerror (Depends-on): Add errno.
30005         * doc/posix-functions/strerror.texi: Document the change.
30006         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
30007         and EOVERFLOW.
30008
30009 2008-09-13  Bruno Haible  <bruno@clisp.org>
30010
30011         * modules/EOVERFLOW: Remove file.
30012         * m4/eoverflow.m4: Remove file.
30013         * modules/EOVERFLOW-tests: Remove file.
30014         * tests/test-EOVERFLOW.c: Remove file.
30015         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
30016         * modules/ftell (Depends-on): Likewise.
30017         * modules/getdelim (Depends-on): Likewise.
30018         * modules/getugroups (Depends-on): Likewise.
30019         * modules/poll (Depends-on): Likewise.
30020         * modules/snprintf (Depends-on): Likewise.
30021         * modules/sprintf-posix (Depends-on): Likewise.
30022         * modules/vasnprintf (Depends-on): Likewise.
30023         * modules/vasprintf (Depends-on): Likewise.
30024         * modules/vfprintf-posix (Depends-on): Likewise.
30025         * modules/vsnprintf (Depends-on): Likewise.
30026         * modules/vsprintf-posix (Depends-on): Likewise.
30027         * modules/xvasprintf (Depends-on): Likewise.
30028         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30029         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
30030         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
30031         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
30032         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30033         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
30034         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
30035         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
30036         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30037         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
30038         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
30039         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
30040         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30041         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
30042         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
30043         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
30044         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30045         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
30046         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
30047         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
30048         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30049         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
30050         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
30051         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
30052         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
30053         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30054         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
30055         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
30056         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
30057         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
30058         * MODULES.html.sh: Remove EOVERFLOW.
30059         * NEWS: Mention the change.
30060
30061 2008-09-13  Bruno Haible  <bruno@clisp.org>
30062
30063         * modules/errno-tests: New file.
30064         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
30065
30066         * lib/errno.in.h: New file.
30067         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
30068         * modules/errno: New file.
30069         * doc/posix-headers/errno.texi: Update documentation.
30070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
30071
30072 2008-09-13  Bruno Haible  <bruno@clisp.org>
30073
30074         * tests/test-poll.c: Use #if for native Windows, rather than testing
30075         __MSVCRT__.
30076
30077 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30078             Bruno Haible  <bruno@clisp.org>
30079
30080         * lib/glob.c: Don't include <pwd.h> on native Windows.
30081         (WINDOWS32): New macro.
30082         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30083
30084 2008-09-13  Bruno Haible  <bruno@clisp.org>
30085
30086         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30087         (ETIMEDOUT): Remove macro.
30088         (glthread_cond_timedwait_multithreaded): New declaration.
30089         (glthread_cond_timedwait): Use it.
30090         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30091         (glthread_cond_timedwait_multithreaded): New function.
30092
30093 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30094
30095         * modules/poll-tests: Do not check for io.h.
30096         * tests/test-poll.c: Check for __MSVCRT__ instead.
30097
30098 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30099
30100         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30101         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30102         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30103
30104 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30105
30106         * modules/poll-tests: New.
30107         * tests/test-poll.c: New.
30108
30109 2008-09-12  Eric Blake  <ebb9@byu.net>
30110
30111         frexp: test for NetBSD failure on -0.0
30112         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30113         not all, bugs from NetBSD 3.0 have been fixed.
30114         * doc/posix-functions/frexp.texi (frexp): Document bug.
30115         Reported by Thomas Klausner.
30116
30117         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30118         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30119         literal -0.0.
30120         Reported by Jonathan C. Patschke <jp@centtech.com>.
30121
30122 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30123
30124         * lib/glthread/cond.h: Use dummy implementation also if
30125         USE_WIN32_THREADS.
30126
30127 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30128
30129         * modules/fnmatch-posix (License): Change to LGPLv2+.
30130         * modules/fnmatch-gnu (License): Likewise.
30131
30132 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30133
30134         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30135
30136 2008-09-11  Jim Meyering  <meyering@redhat.com>
30137
30138         * users.txt: Add gtk-vnc.
30139
30140 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30141
30142         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30143         rotate amounts.
30144
30145         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30146         required for 16-bit and 8-bit rotates.
30147         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30148         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30149         UINT8_MAX instead of hard-coded constants.
30150         Suggested by Paul Eggert.
30151
30152 2008-09-07  Bruno Haible  <bruno@clisp.org>
30153
30154         * tests/test-striconveh.c (main): Check behaviour when converting from
30155         UTF-7.
30156
30157         Make striconveh work better with stateful encodings.
30158         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30159         that iconv does not increment the inptr when returning -1/EINVAL.
30160
30161 2008-09-07  Bruno Haible  <bruno@clisp.org>
30162
30163         * build-aux/config.rpath: Update according to libtool-2.2.6.
30164         * build-aux/config.libpath: Likewise.
30165
30166 2008-09-06  Bruno Haible  <bruno@clisp.org>
30167
30168         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30169         * lib/freadptr.c (freadptr): Likewise.
30170         * lib/freadseek.c (freadptrinc): Likewise.
30171         Reported by Simon Josefsson.
30172
30173 2008-09-06  Bruno Haible  <bruno@clisp.org>
30174
30175         * modules/freadptr (License): Change to LGPLv2+.
30176         * modules/freadseek (License): Likewise.
30177         Suggested by Eric Blake.
30178
30179         * modules/memchr2 (License): Change to LGPLv2+.
30180         Approved by Eric Blake.
30181
30182 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30183             Bruno Haible  <bruno@clisp.org>
30184
30185         Make gnulib-tool work with native 'sed' on AIX.
30186         * gnulib-tool (sed_noop): New variable.
30187         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30188         func_add_or_update, func_create_testdir): Use it to initialize sed
30189         script variables.
30190         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30191
30192 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30193             Bruno Haible  <bruno@clisp.org>
30194
30195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30196         also works after #include directives.
30197
30198 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30199
30200         getdate.y: reject an out-of-range timezone value
30201         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30202         the range [-24...+24].  When specified with only one or two digits,
30203         * tests/test-getdate.c: Tests for the fix.
30204         * doc/getdate.texi: Document this change.
30205
30206 2008-09-03  Bruno Haible  <bruno@clisp.org>
30207
30208         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30209
30210 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30211
30212         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30213         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30214         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30215         Blake <ebb9@byu.net>.
30216
30217         * tests/test-bitrotate.c: Add more test vectors.
30218
30219 2008-09-02  Eric Blake  <ebb9@byu.net>
30220
30221         vasnprintf-posix: handle large precision via %.*d
30222         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30223         when handling it ourselves.
30224         * tests/test-vasnprintf-posix.c (test_function): Add test.
30225         * tests/test-snprintf-posix.h (test_function): Likewise.
30226         * tests/test-sprintf-posix.h (test_function): Likewise.
30227         * tests/test-vasprintf-posix.c (test_function): Likewise.
30228         Reported by Alain Guibert.
30229
30230 2008-09-01  Eric Blake  <ebb9@byu.net>
30231
30232         c-stack: make configure-time check more robust
30233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30234         successful sigaction call.
30235         Reported by Tom G. Christensen.
30236
30237 2008-09-01  Bruno Haible  <bruno@clisp.org>
30238
30239         New module 'findprog-lgpl'.
30240         * modules/findprog-lgpl: New file.
30241         * lib/findprog-lgpl.c: New file.
30242         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30243         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30244         to decide whether to use strdup or xstrdup, concatenated_filename or
30245         xconcatenated_filename.
30246
30247 2008-09-01  Bruno Haible  <bruno@clisp.org>
30248
30249         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30250         'xconcat-filename' (GPL).
30251         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30252         (License): Change to LGPLv2+.
30253         * modules/xconcat-filename: New file.
30254         * lib/concat-filename.h (concatenated_filename): Change specification.
30255         (xconcatenated_filename): New declaration.
30256         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30257         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30258         memory situations.
30259         * lib/xconcat-filename.c: New file.
30260         * NEWS: Mention the change.
30261         * lib/findprog.c: Include concat-filename.h, not filename.h.
30262         (find_in_path): Use xconcatenated_filename instead of
30263         concatenated_filename.
30264         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30265         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30266         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30267         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30268         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30269         instead of concatenated_filename.
30270         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30271         (execute_java_class): Use xconcatenated_filename instead of
30272         concatenated_filename.
30273         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30274         * modules/javacomp (Depends-on): Likewise.
30275         * modules/javaexec (Depends-on): Likewise.
30276
30277 2008-09-01  Bruno Haible  <bruno@clisp.org>
30278
30279         Split module 'filename' into 'filename' and 'concat-filename'.
30280         * modules/filename: Keep only lib/filename.h.
30281         (License): Change to LGPLv2+.
30282         * modules/concat-filename: New file, extracted from modules/filename.
30283         * lib/filename.h (concatenated_filename): Remove declaration.
30284         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30285         * lib/concat-filename.c: Include concat-filename.h.
30286         * NEWS: Mention the change.
30287
30288 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30289
30290         * lib/bitrotate.h (rotl8, rotr8): Add.
30291
30292         * modules/bitrotate (configure.ac): Need
30293         AC_REQUIRE([AC_C_INLINE]).
30294         (Description): Mention stdint.h.  Reported by Bruno Haible
30295         <bruno@clisp.org>.
30296
30297         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30298         Paolo Bonzini <bonzini@gnu.org>.
30299
30300 2008-08-31  Bruno Haible  <bruno@clisp.org>
30301
30302         Assume Solaris specific bi-arch conventions on Solaris systems.
30303         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30304         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30306         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30307         like acl_libdirstem.
30308         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30309         acl_libdirstem.
30310         * NEWS: Mention the change.
30311         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30312
30313 2008-08-31  Jim Meyering  <meyering@redhat.com>
30314
30315         * lib/strftime.h: Add comments describing the two added arguments.
30316
30317         remove duplicate #include directives
30318         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30319         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30320
30321 2008-08-31  Bruno Haible  <bruno@clisp.org>
30322
30323         New module 'sigpipe-die'.
30324         * modules/sigpipe-die: New file.
30325         * lib/sigpipe-die.h: New file.
30326         * lib/sigpipe-die.c: New file.
30327         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30328
30329 2008-08-31  Bruno Haible  <bruno@clisp.org>
30330
30331         Don't override previously installed signal handlers.
30332         * lib/fatal-signal.c (saved_sigactions): New variable.
30333         (uninstall_handlers): Reset the signal to the saved handler, not
30334         to SIG_DFL (except when ignored).
30335         (install_handlers): Save the previous handlers.
30336
30337 2008-08-30  Bruno Haible  <bruno@clisp.org>
30338
30339         * gnulib-tool (func_reset_sigpipe): New function.
30340         (func_get_automake_snippet, func_modules_transitive_closure,
30341         func_import): Invoke it before a join command that reads from stdin,
30342         to avoid "echo: write error: Broken pipe" error messages on stderr.
30343         Reported by Sam Steingold <sds@gnu.org>.
30344
30345 2008-08-30  Bruno Haible  <bruno@clisp.org>
30346
30347         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30348         Code copied from m4/open.m4.
30349         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30350         access and the filename ends in a slash. Code copied from lib/open.c.
30351         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30352         * tests/test-fopen.c (main): Check against bug with trailing slash.
30353
30354 2008-08-29  Bruno Haible  <bruno@clisp.org>
30355
30356         Avoid some "gcc -pedantic" warnings.
30357         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30358         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30359         * lib/dirent.in.h: Likewise.
30360         * lib/fcntl.in.h: Likewise.
30361         * lib/float.in.h: Likewise.
30362         * lib/iconv.in.h: Likewise.
30363         * lib/inttypes.in.h: Likewise.
30364         * lib/locale.in.h: Likewise.
30365         * lib/math.in.h: Likewise.
30366         * lib/netinet_in.in.h: Likewise.
30367         * lib/search.in.h: Likewise.
30368         * lib/signal.in.h: Likewise.
30369         * lib/stdarg.in.h: Likewise.
30370         * lib/stdint.in.h: Likewise.
30371         * lib/stdio.in.h: Likewise.
30372         * lib/stdlib.in.h: Likewise.
30373         * lib/string.in.h: Likewise.
30374         * lib/strings.in.h: Likewise.
30375         * lib/sys_select.in.h: Likewise.
30376         * lib/sys_socket.in.h: Likewise.
30377         * lib/sys_stat.in.h: Likewise.
30378         * lib/sys_time.in.h: Likewise.
30379         * lib/sysexits.in.h: Likewise.
30380         * lib/time.in.h: Likewise.
30381         * lib/unistd.in.h: Likewise.
30382         * lib/wchar.in.h: Likewise.
30383         * lib/wctype.in.h: Likewise.
30384         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30385         * modules/fchdir (Makefile.am): Likewise.
30386         * modules/fcntl (Makefile.am): Likewise.
30387         * modules/float (Makefile.am): Likewise.
30388         * modules/iconv_open (Makefile.am): Likewise.
30389         * modules/inttypes (Makefile.am): Likewise.
30390         * modules/locale (Makefile.am): Likewise.
30391         * modules/math (Makefile.am): Likewise.
30392         * modules/netinet_in (Makefile.am): Likewise.
30393         * modules/search (Makefile.am): Likewise.
30394         * modules/signal (Makefile.am): Likewise.
30395         * modules/stdarg (Makefile.am): Likewise.
30396         * modules/stdint (Makefile.am): Likewise.
30397         * modules/stdio (Makefile.am): Likewise.
30398         * modules/stdlib (Makefile.am): Likewise.
30399         * modules/string (Makefile.am): Likewise.
30400         * modules/strings (Makefile.am): Likewise.
30401         * modules/sys_select (Makefile.am): Likewise.
30402         * modules/sys_socket (Makefile.am): Likewise.
30403         * modules/sys_stat (Makefile.am): Likewise.
30404         * modules/sys_time (Makefile.am): Likewise.
30405         * modules/sysexits (Makefile.am): Likewise.
30406         * modules/time (Makefile.am): Likewise.
30407         * modules/unistd (Makefile.am): Likewise.
30408         * modules/wchar (Makefile.am): Likewise.
30409         * modules/wctype (Makefile.am): Likewise.
30410         Reported by Reuben Thomas <rrt@sc3d.org>.
30411
30412 2008-08-29  Bruno Haible  <bruno@clisp.org>
30413
30414         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30415         any more.
30416
30417 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30418
30419         * MODULES.html.sh (Misc): Add bitrotate.
30420
30421         * modules/bitrotate: New file.
30422
30423         * lib/bitrotate.h: New file.
30424
30425         * modules/bitrotate-tests: New file.
30426
30427         * tests/test-bitrotate.c: New file.
30428
30429         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30430         on the bitrotate module.
30431
30432         * lib/arctwo.c: Use new bitrotate module.
30433
30434 2008-08-29  Jim Meyering  <meyering@redhat.com>
30435
30436         bootstrap: merge changes from coreutils
30437         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30438         of copied files.  Remove a kludge, now that this is fixed.
30439         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30440         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30441         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30442
30443 2008-08-29  Bruno Haible  <bruno@clisp.org>
30444
30445         * MODULES.html.sh: Remove --cvs-urls option.
30446
30447 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30448
30449         maint.mk: adjust to file name change
30450         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30451
30452 2008-08-28  Jim Meyering  <meyering@redhat.com>
30453
30454         * modules/getndelim2 (License): Relicense to LGPLv2+.
30455         Approved by Richard Stallman for the version of 1995, and by
30456         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30457
30458 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30459
30460         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30461         dummy if one is not available.  Do not touch them if
30462         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30463         (getc_maybe_unlocked): New.
30464         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30465
30466 2008-08-26  Eric Blake  <ebb9@byu.net>
30467
30468         doc/INSTALL: resync from autoconf
30469         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30470         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30471         moving...
30472         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30473         * INSTALL: Regenerate.
30474         * INSTALL.ISO: New file.
30475         * INSTALL.UTF-8: Likewise.
30476
30477 2008-08-26  Jim Meyering  <meyering@redhat.com>
30478
30479         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30480         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30481         these definitions conditional, so that they may be overridden, too.
30482
30483 2008-08-26  Bruno Haible  <bruno@clisp.org>
30484
30485         Generate INSTALL file variants with prettier quotes.
30486         * doc/Makefile (INSTALL_PRELUDE): New macro.
30487         (INSTALL): Use it.
30488         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30489
30490 2008-08-26  Bruno Haible  <bruno@clisp.org>
30491
30492         Run makeinfo in an English locale.
30493         * doc/Makefile (MAKEINFO): New variable.
30494
30495 2008-08-26  Bruno Haible  <bruno@clisp.org>
30496
30497         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30498         Suggested by Eric Blake.
30499
30500 2008-08-25  Bruno Haible  <bruno@clisp.org>
30501
30502         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30503
30504 2008-08-25  Eric Blake  <ebb9@byu.net>
30505
30506         c-stack: test that stack overflow can be caught
30507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30508         that platform allows handling stack overflow; at least OS/2 EMX
30509         has sigaltstack, but crashes before transferring control to
30510         handler on stack overflow.
30511         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30512         check for HAVE_STACK_OVERFLOW_HANDLING.
30513         Reported by Elbert Pol.
30514
30515 2008-08-25  Bruno Haible  <bruno@clisp.org>
30516
30517         * doc/posix-functions/strftime.texi: Fix description of strftime
30518         module.
30519
30520 2008-08-24  Bruno Haible  <bruno@clisp.org>
30521
30522         * tests/uniwidth/test-uc_width2.c: New file.
30523         * tests/uniwidth/test-uc_width2.sh: New file.
30524         * modules/uniwidth/width-tests (Files): Add the new files.
30525         (TESTS): Add uniwidth/test-uc_width2.sh.
30526         (TESTS_ENVIRONMENT): New variable.
30527         (check_PROGRAMS): Add test-uc_width2.
30528         (test_uc_width2_SOURCES): New variable.
30529
30530         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30531         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30532         not 0x00AB.
30533         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30534
30535 2008-08-22  Eric Blake  <ebb9@byu.net>
30536
30537         test-lock, test-tls: mention why a test is skipped
30538         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30539         skipped.
30540         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30541
30542         count-one-bits: relax license
30543         * modules/count-one-bits (License): Relicense to LGPLv2+.
30544         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30545
30546 2008-08-22  Andreas Schwab  <schwab@suse.de>
30547
30548         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30549         Remove spurious space in assignment.
30550
30551 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30552
30553         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30554         Paul Eggert <eggert@CS.UCLA.EDU>.
30555
30556 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30557
30558         * modules/gettext: Add m4/threadlib.m4.
30559
30560 2008-08-19  Eric Blake  <ebb9@byu.net>
30561
30562         test-c-stack: fix compilation failure on FreeBSD 5.0
30563         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30564         headers before <sys/resource.h>.
30565         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30566         the bug.
30567         Reported by Nelson H. F. Beebe.
30568
30569         strverscmp: migrate from "strverscmp.h" to <string.h>
30570         * modules/string (Makefile.am): Add new hooks.
30571         * modules/strverscmp (Files): Remove strverscmp.h.
30572         (Depends-on): Add string.
30573         (configure.ac): Add indicator.
30574         (Include): Mention new header.
30575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30576         defaults.
30577         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30578         results.
30579         * lib/strverscmp.h: Delete.
30580         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30581         * tests/test-strverscmp.c (includes): Adjust client.
30582         * lib/check-version.c (includes): Likewise.
30583         * NEWS: Document the change.
30584
30585         strverscmp: add unit test
30586         * modules/strverscmp-tests: New file.
30587         * tests/test-strverscmp.c: Likewise.
30588
30589 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30590
30591         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30592         regarding Windows crypto stuff, from Mono.
30593
30594 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30595
30596         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30597         if present, for intel RND.  Return error on failures.
30598
30599 2008-08-18  Ben Pfaff  <blp@gnu.org>
30600
30601         gitlog-to-changelog: give better diagnostic for failed pipe-open
30602         * build-aux/gitlog-to-changelog: Improve error message: suggest
30603         that the version of Git may be too old.
30604
30605 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30606
30607         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30608         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30609
30610 2008-08-18  Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30613         pthread_in_use().
30614
30615 2008-08-18  Bruno Haible  <bruno@clisp.org>
30616
30617         * lib/glthread/threadlib.c: Include <pthread.h>.
30618
30619 2008-08-18  Bruno Haible  <bruno@clisp.org>
30620
30621         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30622         glthread_recursive_lock_* macros.
30623         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30624         Fix syntax error.
30625
30626 2008-08-18  Bruno Haible  <bruno@clisp.org>
30627
30628         * lib/glthread/thread.c: Avoid forcing a context switch right after
30629         thread creation.
30630
30631 2008-08-17  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30634         * lib/glthread/thread.h: Provide Win32 specific implementation.
30635         * modules/thread (Files): Add lib/glthread/thread.c.
30636         (Depends-on): Add lock.
30637         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30638
30639 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30640
30641         New module 'yield'.
30642         * modules/yield: New file.
30643         * lib/glthread/yield.h: New file.
30644         * m4/yield.m4: New file.
30645         * MODULES.html.sh (Multithreading): Add yield.
30646
30647 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30648
30649         New module 'thread'.
30650         * modules/thread: New file.
30651         * lib/glthread/thread.h: New file.
30652         * m4/thread.m4: New file.
30653         * MODULES.html.sh (Multithreading): Add thread.
30654
30655 2008-08-17  Bruno Haible  <bruno@clisp.org>
30656
30657         * lib/glthread/lock.h: Include <stdlib.h> always.
30658         * lib/glthread/tls.h: Likewise.
30659         * lib/glthread/cond.h: Likewise.
30660
30661 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30662
30663         New module 'cond'.
30664         * modules/cond: New file.
30665         * lib/glthread/cond.h: New file.
30666         * lib/glthread/cond.c: New file.
30667         * m4/cond.m4: New file.
30668         * MODULES.html.sh (Multithreading): Add cond.
30669
30670 2008-08-16  Eric Blake  <ebb9@byu.net>
30671
30672         c-stack: fix regression on Irix 5.3 from 2008-06-21
30673         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30674         sa_sigaction...
30675         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30676         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30677         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30678         * modules/signal (Makefile.am): Use the value.
30679         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30680         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30681         * doc/posix-headers/signal.texi (signal.h): Document this
30682         portability issue.
30683         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30684         Reported by Tom G. Christensen.
30685
30686 2008-08-17  Bruno Haible  <bruno@clisp.org>
30687
30688         New module 'threadlib'.
30689         * modules/threadlib: New file.
30690         * lib/glthread/threadlib.c: New file, extracted from
30691         lib/glthread/lock.c.
30692         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30693         functions.
30694         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30695         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30696         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30697         macros.
30698         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30699         (gl_DISABLE_THREADS): Remove macro.
30700         * modules/lock (Files): Remove build-aux/config.rpath.
30701         (Depends-on): Remove havelib. Add threadlib.
30702         (configure.ac-early): Remove section.
30703         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30704         * modules/tls (Depends-on): Remove lock. Add threadlib.
30705         (Link): New section, copied from threadlib.
30706         * MODULES.html.sh (Multithreading): Add threadlib.
30707
30708 2008-08-14  Bruno Haible  <bruno@clisp.org>
30709
30710         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30711         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30712         glthread_rwlock_unlock, glthread_rwlock_destroy,
30713         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30714         glthread_recursive_lock_destroy): Define as macros always.
30715         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30716         glthread_lock_lock.
30717         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30718         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30719         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30720         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30721         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30722         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30723         (glthread_recursive_lock_lock_func): Renamed from
30724         glthread_recursive_lock_lock.
30725         (glthread_recursive_lock_unlock_func): Renamed from
30726         glthread_recursive_lock_unlock.
30727         (glthread_recursive_lock_destroy_func): Renamed from
30728         glthread_recursive_lock_destroy.
30729
30730 2008-08-14  Bruno Haible  <bruno@clisp.org>
30731
30732         * lib/glthread/lock.h: Renamed from lib/lock.h.
30733         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30734         * lib/glthread/tls.h: Renamed from lib/tls.h.
30735         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30736         * lib/fstrcmp.c: Update includes.
30737         * lib/strsignal.c: Update includes.
30738         * modules/lock (Files, Makefile.am): Update.
30739         (Include): Change to "glthread/lock.h".
30740         * modules/tls (Files, Makefile.am): Update.
30741         (Include): Change to "glthread/tls.h".
30742         * tests/test-lock.c: Update includes.
30743         * tests/test-tls.c: Update includes.
30744         * NEWS: Mention the renamed header files.
30745
30746 2008-08-11  Jim Meyering  <meyering@redhat.com>
30747
30748         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30749
30750 2008-08-11  Eric Blake  <ebb9@byu.net>
30751
30752         test-c-stack: avoid C99-ism
30753         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30754         before statement.
30755         Reported by Alain Guibert.
30756
30757 2008-08-10  Jim Meyering  <meyering@redhat.com>
30758
30759         ensure that return value of uinttostr et al are not ignored
30760         * lib/inttostr.h (__GNUC_PREREQ): Define.
30761         (__attribute_warn_unused_result__): Define.
30762         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30763
30764 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30765
30766         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30767         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30768
30769 2008-08-07  Jim Meyering  <meyering@redhat.com>
30770
30771         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30772
30773         * modules/mkstemp (License): Relicense under LGPLv2+.
30774         * modules/tempname (License): Likewise.
30775
30776 2008-08-06  Bruno Haible  <bruno@clisp.org>
30777
30778         * lib/poll.c (poll): Further micro-optimization.
30779
30780 2008-08-06  Jim Meyering  <meyering@redhat.com>
30781
30782         inet_pton.c: use locale-independent tolower
30783         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30784         (inet_pton6): Use c_tolower rather than tolower.
30785         * modules/inet_pton (Depends-on): Add c-ctype.
30786
30787 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30788
30789         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30790         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30791
30792 2008-08-06  Jim Meyering  <meyering@redhat.com>
30793
30794         * modules/inet_pton (License): Relicense under LGPLv2+.
30795
30796 2008-08-03  Bruno Haible  <bruno@clisp.org>
30797
30798         Additional non-aborting API for lock and tls.
30799         * lib/lock.h: Include <errno.h>.
30800         (glthread_lock_init): New macro/function.
30801         (gl_lock_init): Define as wrapper around glthread_lock_init.
30802         (glthread_lock_lock): New macro/function.
30803         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30804         (glthread_lock_unlock): New macro/function.
30805         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30806         (glthread_lock_destroy): New macro/function.
30807         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30808         (glthread_rwlock_init): New macro/function.
30809         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30810         (glthread_rwlock_rdlock): New macro/function.
30811         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30812         (glthread_rwlock_wrlock): New macro/function.
30813         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30814         (glthread_rwlock_unlock): New macro/function.
30815         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30816         (glthread_rwlock_destroy): New macro/function.
30817         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30818         (glthread_recursive_lock_init): New macro/function.
30819         (gl_recursive_lock_init): Define as wrapper around
30820         glthread_recursive_lock_init.
30821         (glthread_recursive_lock_lock): New macro/function.
30822         (gl_recursive_lock_lock): Define as wrapper around
30823         glthread_recursive_lock_lock.
30824         (glthread_recursive_lock_unlock): New macro/function.
30825         (gl_recursive_lock_unlock): Define as wrapper around
30826         glthread_recursive_lock_unlock.
30827         (glthread_recursive_lock_destroy): New macro/function.
30828         (gl_recursive_lock_destroy): Define as wrapper around
30829         glthread_recursive_lock_destroy.
30830         (glthread_once): New macro/function.
30831         (gl_once): Define as wrapper around glthread_once.
30832         Update function declarations.
30833         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30834         glthread_rwlock_init. Return error code.
30835         (glthread_rwlock_rdlock_multithreaded): Renamed from
30836         glthread_rwlock_rdlock. Return error code.
30837         (glthread_rwlock_wrlock_multithreaded): Renamed from
30838         glthread_rwlock_wrlock. Return error code.
30839         (glthread_rwlock_unlock_multithreaded): Renamed from
30840         glthread_rwlock_unlock. Return error code.
30841         (glthread_rwlock_destroy_multithreaded): Renamed from
30842         glthread_rwlock_destroy. Return error code.
30843         (glthread_recursive_lock_init_multithreaded): Renamed from
30844         glthread_recursive_lock_init. Return error code.
30845         (glthread_recursive_lock_lock_multithreaded): Renamed from
30846         glthread_recursive_lock_lock. Return error code.
30847         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30848         glthread_recursive_lock_unlock. Return error code.
30849         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30850         glthread_recursive_lock_destroy. Return error code.
30851         (glthread_once_call): Make static.
30852         (glthread_once_multithreaded): Renamed from glthread_once.
30853         * lib/tls.h: Include <errno.h>.
30854         (glthread_tls_key_init): New macro/function.
30855         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30856         (glthread_tls_set): New macro/function.
30857         (gl_tls_set): Define as wrapper around glthread_tls_set.
30858         (glthread_tls_key_destroy): New macro/function.
30859         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30860         Update function declarations.
30861         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30862         glthread_tls_get.
30863         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30864
30865 2008-08-04  Eric Blake  <ebb9@byu.net>
30866
30867         gnumakefile: use space, not TAB, outside of targets
30868         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30869
30870 2008-08-02  Jim Meyering  <meyering@redhat.com>
30871
30872         getdate.y: avoid locale-dependent date parsing failure
30873         In Turkish locales, getdate would fail to recognize keywords
30874         containing a lowercase "i".  The solution is not to rely on
30875         locale-sensitive case-conversion.
30876         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30877         (lookup_word): Use c_toupper in place of toupper.
30878         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30879         Reported by Vefa Bicakci <bicave@superonline.com> in
30880         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30881         * modules/getdate (Depends-on): Add c-ctype.
30882
30883 2008-08-02  Bruno Haible  <bruno@clisp.org>
30884
30885         * gnulib-tool (func_import): When updating or creating a .gitignore
30886         file, prepend each added line with a slash, and ignore leading slashes
30887         from the existing lines.
30888         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30889
30890 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30891
30892         Portability fix for GNU make 3.79.1.
30893         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30894         versions do not understand.
30895
30896 2008-08-01  Bruno Haible  <bruno@clisp.org>
30897
30898         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30899         * tests/test-isnanf.h (zero): New variable.
30900         (main): Avoid literal -0.0f.
30901         * tests/test-isnand.h (zero): New variable.
30902         (main): Avoid literal -0.0.
30903         * tests/test-isnanl.h (zero): New variable.
30904         (main): Avoid literal -0.0L.
30905         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30906         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30907         -0.0, -0.0L.
30908         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30909         (test_signbitd): Avoid literal -0.0.
30910         (test_signbitl): Avoid literal -0.0L.
30911         * tests/test-ceilf1.c (zero): New variable.
30912         (main): Avoid literal -0.0f.
30913         * tests/test-ceill.c (zero): New variable.
30914         (main): Avoid literal -0.0L.
30915         * tests/test-floorf1.c (zero): New variable.
30916         (main): Avoid literal -0.0f.
30917         * tests/test-floorl.c (zero): New variable.
30918         (main): Avoid literal -0.0L.
30919         * tests/test-roundf1.c (zero): New variable.
30920         (main): Avoid literal -0.0f.
30921         * tests/test-round1.c (zero): New variable.
30922         (main): Avoid literal -0.0.
30923         * tests/test-roundl.c (zero): New variable.
30924         (main): Avoid literal -0.0L.
30925         * tests/test-truncf1.c (zero): New variable.
30926         (main): Avoid literal -0.0f.
30927         * tests/test-trunc1.c (zero): New variable.
30928         (main): Avoid literal -0.0.
30929         * tests/test-truncl.c (zero): New variable.
30930         (main): Avoid literal -0.0L.
30931         * tests/test-frexp.c (zero): New variable.
30932         (main): Avoid literal -0.0.
30933         * tests/test-frexpl.c (zero): New variable.
30934         (main): Avoid literal -0.0L.
30935         * tests/test-ldexpl.c (zero): New variable.
30936         (main): Avoid literal -0.0L.
30937         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30938         (zerod, zerol): New variables.
30939         (test_function): Avoid literals -0.0, -0.0L.
30940         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30941         (zerod, zerol): New variables.
30942         (test_function): Avoid literals -0.0, -0.0L.
30943         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30944         (zerod, zerol): New variables.
30945         (test_function): Avoid literals -0.0, -0.0L.
30946         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30947         (zerod, zerol): New variables.
30948         (test_function): Avoid literals -0.0, -0.0L.
30949         * tests/test-strtod.c (zero): New variable.
30950         (main): Avoid literal -0.0.
30951         Reported by Jonathan C. Patschke <jp@centtech.com>.
30952
30953 2008-07-31  Jim Meyering  <meyering@redhat.com>
30954
30955         sha256.h: correct definition of SHA224_DIGEST_SIZE
30956         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30957         Reported by Paulie Pena IV <paulie4@gmail.com>.
30958         Define as 224 / 8, rather than as a literal.
30959         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30960         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30961         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30962
30963 2008-07-31  Bruno Haible  <bruno@clisp.org>
30964
30965         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30966         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30967         Reported by Jonathan Patschke <jp@centtech.com>.
30968
30969 2008-07-31  Bruno Haible  <bruno@clisp.org>
30970
30971         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30972         Reported by Paolo Bonzini <bonzini@gnu.org>.
30973
30974 2008-07-30  Eric Blake  <ebb9@byu.net>
30975
30976         test-strtod: allow compilation without -lm
30977         * tests/test-strtod.c (main): Avoid link dependence on fabs.
30978         Reported by Dennis Clarke <blastwave@gmail.com>.
30979
30980 2008-07-28  Jim Meyering  <meyering@redhat.com>
30981
30982         bootstrap: work also when there are no .po files in po/
30983         * build-aux/bootstrap (update_po_files): Complete the change
30984         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30985
30986 2008-07-27  Jim Meyering  <meyering@redhat.com>
30987
30988         * users.txt: Add zile.
30989
30990 2008-07-26  Ben Pfaff  <blp@gnu.org>
30991
30992         Add missing dependencies on new m4/exponent[fdl].m4 files.
30993         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30994         * modules/isnand-nolibm: Add m4/exponentd.m4.
30995         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30996         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30997         m4/isnan[fdl].m4, because the macros actually used moved.
30998         Reported by Jim Meyering.
30999
31000 2008-07-14  Ben Pfaff  <blp@gnu.org>
31001
31002         Add isinf module.
31003         * lib/isinf.c: New file.
31004         * lib/math.in.h: Define isinf macro if we have decided to replace
31005         it.
31006         * m4/isinf.m4: New file.
31007         * m4/math_h.m4: Initialize and substitute variables for isinf
31008         module.
31009         * modules/isinf: New file.
31010         * modules/isinf-tests: New file.
31011         * modules/math: Add substitutions for new module.
31012         * tests/test-isinf.c: New file.
31013         * doc/posix-functions/isinf.texi: Mention new module.
31014         * MODULES.html.sh: Mention new module.
31015
31016 2008-07-14  Ben Pfaff  <blp@gnu.org>
31017
31018         Factor out some macros for use by additional modules.
31019         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
31020         exponentf.m4.
31021         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
31022         exponentd.m4.
31023         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
31024         file exponentl.m4.
31025         * m4/exponentf.m4: New file.
31026         * m4/exponentd.m4: New file.
31027         * m4/exponentl.m4: New file.
31028         * modules/isnanf: Use new file m4/exponentf.m4.
31029         * modules/isnand: Use new file m4/exponentd.m4.
31030         * modules/isnanl: Use new file m4/exponentl.m4.
31031
31032 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
31033
31034         mktime.c: normalize tp->tm_isdst value to -1/0/1.
31035         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
31036         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
31037         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
31038
31039         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
31040         readlink on platforms without PATH_MAX.
31041
31042 2008-07-21  Eric Blake  <ebb9@byu.net>
31043
31044         Warn, not fail, on stale version.
31045         * top/GNUmakefile (_curr-ver): Tone down previous patch.
31046
31047         Don't allow installation with stale devel version number.
31048         * top/GNUmakefile (_is-install-target): New macro.
31049         (_curr-ver): Forbid installation with stale version number.
31050
31051 2008-07-20  Bruno Haible  <bruno@clisp.org>
31052
31053         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
31054         TESTS_ENVIRONMENT.
31055         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
31056
31057 2008-07-20  Bruno Haible  <bruno@clisp.org>
31058
31059         * lib/c-stack.h (c_stack_action): Add documentation.
31060         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
31061
31062 2008-07-20  Bruno Haible  <bruno@clisp.org>
31063
31064         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
31065         * modules/readlink (License): Likewise.
31066
31067 2008-07-17  Eric Blake  <ebb9@byu.net>
31068
31069         * modules/c-stack (Link): Fix typo.
31070
31071         Make c-stack use libsigsegv, when available.
31072         * modules/c-stack (Depends-on): Add libsigsegv.
31073         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
31074         needed.
31075         * lib/c-stack.c (SIGSTKSZ): Define fallback.
31076         (segv_handler, overflow_handler, c_stack_action)
31077         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31078         implementation when libsigsegv is available, but only when using
31079         the library is necessary.
31080         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31081         comment, explaining why XSI check fails on Linux.
31082         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31083         * tests/test-c-stack2.sh: Tweak skip message.
31084         * NEWS: Document new link-time requirements.
31085
31086 2008-07-16  Eric Blake  <ebb9@byu.net>
31087
31088         c-stack: Expose false positives when not using libsigsegv.
31089         * modules/c-stack-tests (Files): Expand test.
31090         * tests/test-c-stack.c (main): Add means to conditionally trigger
31091         non-overflow SIGSEGV.
31092         * tests/test-c-stack2.sh: New file.
31093
31094 2008-07-14  Bruno Haible  <bruno@clisp.org>
31095
31096         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31097         Reported by Eric Blake.
31098
31099 2008-07-14  Sam Steingold  <sds@gnu.org>
31100             Bruno Haible  <bruno@clisp.org>
31101
31102         New module libsigsegv.
31103         * modules/libsigsegv: New file.
31104         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31105         modifications.
31106         * MODULES.html.sh (Signal handling): New section.
31107
31108 2008-07-14  Bruno Haible  <bruno@clisp.org>
31109
31110         * modules/unictype/ctype-* (Description): Add the word "function".
31111         Improves the resulting doc in MODULES.html.
31112
31113 2008-07-12  Ben Pfaff  <blp@gnu.org>
31114
31115         Add longlong module.
31116         * modules/longlong: New file.
31117
31118 2008-07-12  Bruno Haible  <bruno@clisp.org>
31119
31120         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31121         to empty.
31122
31123 2008-07-10  Ben Pfaff  <blp@gnu.org>
31124
31125         Add isnan module.
31126         * doc/posix-functions/isnan.texi: Mention new module.
31127         * lib/math.in.h: Define isnan macro if we have decided to replace
31128         it.
31129         * m4/isnan.m4: New file.
31130         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31131         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31132         also.
31133         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31134         redundancy.
31135         * m4/math_h.m4: Initialize and substitute variables for isnan
31136         module.
31137         * modules/isnan: New file.
31138         * modules/isnan-tests: New file.
31139         * modules/math: Add substitutions for new module.
31140         * tests/test-isnan.c: New file.
31141         * MODULES.html.sh: Mention new module.
31142
31143 2008-07-10  Ben Pfaff  <blp@gnu.org>
31144
31145         Add isnanf module.
31146         * lib/isnanf.m4: New file.
31147         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31148         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31149         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31150         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31151         * modules/isnanf: New file.
31152         * modules/isnanf-tests: New file.
31153         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31154         files.
31155         * tests/test-isnanf-nolibm.c: factored most of its contents into
31156         new file tests/test-isnanf.h.
31157         * tests/test-isnanf.h: New file.
31158         * tests/test-isnanf.c: New file.
31159         * MODULES.html.sh: Mention new module.
31160         * doc/glibc-functions/isnanf.texi: Mention new module.
31161
31162 2008-07-10  Ben Pfaff  <blp@gnu.org>
31163
31164         Add isnand module.
31165         * lib/isnand.h: New file.
31166         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31167         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31168         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31169         functionality also.
31170         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31171         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31172         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31173         * modules/isnand: New file.
31174         * modules/isnand-tests: New file.
31175         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31176         files.
31177         * tests/test-isnand-nolibm.c: factored most of its contents into
31178         new file tests/test-isnand.h.
31179         * tests/test-isnand.h: New file.
31180         * tests/test-isnand.c: New file.
31181         * MODULES.html.sh: Mention new module.
31182
31183 2008-07-10  Ben Pfaff  <blp@gnu.org>
31184
31185         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31186         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31187         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31188         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31189         * modules/isnanf-nolibm: Update references to renamed files.
31190         * modules/isnand-nolibm: Likewise.
31191         * modules/isnanf-nolibm-tests: Likewise.
31192         * modules/isnand-nolibm-tests: Likewise.
31193         * lib/frexp.c: Likewise.
31194         * lib/isfinite.c: Likewise.
31195         * lib/signbitd.c: Likewise.
31196         * lib/signbitf.c: Likewise.
31197         * lib/vasnprintf.c: Likewise.
31198         * tests/test-ceilf1.c: Likewise.
31199         * tests/test-ceilf2.c: Likewise.
31200         * tests/test-floorf1.c: Likewise.
31201         * tests/test-floorf2.c: Likewise.
31202         * tests/test-frexp.c: Likewise.
31203         * tests/test-round1.c: Likewise.
31204         * tests/test-round2.c: Likewise.
31205         * tests/test-roundf1.c: Likewise.
31206         * tests/test-strtod.c: Likewise.
31207         * tests/test-trunc1.c: Likewise.
31208         * tests/test-trunc2.c: Likewise.
31209         * tests/test-truncf1.c: Likewise.
31210         * tests/test-truncf2.c: Likewise.
31211         * NEWS: Mention the renamed header files.
31212
31213 2008-07-11  Jim Meyering  <meyering@redhat.com>
31214
31215         vc-list-files: make the last-resort awk code more portable
31216         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31217         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31218         does not support it.
31219
31220 2008-07-10  Eric Blake  <ebb9@byu.net>
31221
31222         Work with tar's bootstrap.
31223         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31224         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31225         an m4 comment.
31226
31227 2008-07-09  Jim Meyering  <meyering@redhat.com>
31228
31229         posix-shell.m4: fix typo that made this test malfunction
31230         * m4/posix-shell.m4: Remove capitalization in variable name.
31231
31232 2008-07-08  Bruno Haible  <bruno@clisp.org>
31233
31234         * m4/onceonly.m4: Update comments.
31235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31236
31237 2008-07-04  Jim Meyering  <meyering@redhat.com>
31238
31239         * users.txt: Add vc-dwim.
31240         (bison, coreutils): Use the gitweb URL.
31241
31242 2008-07-03  Jim Meyering  <meyering@redhat.com>
31243
31244         * users.txt: Add libffcall.  From Sam Steingold.
31245
31246 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31247
31248         getdate.y: do not ignore TZ with relative day, month or year offset
31249         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31250         relative-date-handling, since otherwise, the latter would clobber the
31251         sole output (an updated Start value) of the tz-handling block.
31252         * tests/test-getdate.c: Tests for the fix
31253
31254 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31255
31256         Recognize 'foo_LIBRARIES += libgnu.a'.
31257         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31258         makefile snippet has already specified an installation location,
31259         also using '+='.
31260
31261 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31262
31263         getdate.y: factor out common actions
31264         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31265         Use them in place of open-coded actions.
31266
31267 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31268
31269         Add self-test for getdate module.
31270         * modules/getdate-tests: New file.
31271         * tests/test-getdate.c: New file.
31272
31273 2008-06-29  Bruno Haible  <bruno@clisp.org>
31274
31275         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31276         .gitignore.
31277         Reported by Sylvain Beucler <beuc@beuc.net>.
31278
31279 2008-06-29  Bruno Haible  <bruno@clisp.org>
31280
31281         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31282         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31283
31284 2008-06-29  Bruno Haible  <bruno@clisp.org>
31285
31286         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31287         EXTRA_DIST.
31288         Reported by Sylvain Beucler <beuc@beuc.net>.
31289
31290 2008-06-26  Jim Meyering  <meyering@redhat.com>
31291
31292         make several modules depend on the "open" module
31293         This provides slightly increased consistency when opening-for-write
31294         the name of a non-directory spelled with a trailing slash.
31295         * modules/chdir-safer: Likewise.
31296         * modules/chown: Likewise.
31297         * modules/clean-temp: Likewise.
31298         * modules/copy-file: Likewise.
31299         * modules/fchdir: Likewise.
31300         * modules/fcntl-safer: Likewise.
31301         * modules/pipe: Likewise.
31302         * modules/utime: Likewise.
31303         Prompted by Eric Blake and Bruno Haible.
31304
31305 2008-06-24  Andreas Schwab  <schwab@suse.de>
31306
31307         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31308         literals can be used as initializers for global variables.
31309
31310 2008-06-23  Eric Blake  <ebb9@byu.net>
31311
31312         Make gnulib-cache.m4 easier to diff.
31313         * gnulib-tool (func_import): Allow newlines when reading cached
31314         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31315
31316 2008-06-23  Bruno Haible  <bruno@clisp.org>
31317
31318         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31319         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31320         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31321         m4/signalblocking.m4.
31322         (gl_PREREQ_SIGACTION): Don't invoke it.
31323         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31324         gl_PREREQ_SIG_HANDLER_H.
31325         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31326         Don't check for sigaction here.
31327
31328 2008-06-23  Bruno Haible  <bruno@clisp.org>
31329
31330         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31331         (install_handlers): Don't set the SA_RESETHAND flag.
31332
31333 2008-06-23  Bruno Haible  <bruno@clisp.org>
31334
31335         * m4/sigaction.m4: Comment fixes.
31336         * lib/signal.in.h: Likewise.
31337
31338 2008-06-23  Eric Blake  <ebb9@byu.net>
31339
31340         Fix typo.
31341         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31342
31343         Avoid SA_ namespace.
31344         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31345         Reported by Ralf Wildenhues.
31346
31347         Avoid test failure due to SA_RESTORER.
31348         * tests/test-sigaction.c (SA_MASK): New macro.
31349         (main): Avoid failing due to extension flags being set.
31350         Reported by Jim Meyering.
31351
31352         Revert use of sig-handler.h in sigprocmask.c.
31353         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31354         it requires the existence of struct sigaction.
31355         * lib/sigprocmask.c (handler_t): Restore typedef.
31356         (rpl_signal, old_handlers): Use local type.
31357
31358 2008-06-22  Bruno Haible  <bruno@clisp.org>
31359
31360         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31361         conditionally.
31362         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31363
31364 2008-06-22  Bruno Haible  <bruno@clisp.org>
31365
31366         * doc/posix-functions/siginterrupt.texi: Move note.
31367
31368         * lib/signal.in.h (SA_RESTART): New macro.
31369         * lib/sigaction.c: Update comment.
31370
31371         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31372
31373         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31374         (gl_PREREQ_SIGPROCMASK): Invoke it.
31375         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31376
31377         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31378
31379         * lib/sigprocmask.c: Update a comment.
31380
31381 2008-06-21  Eric Blake  <ebb9@byu.net>
31382
31383         Use sigaction module rather than signal().
31384         * modules/c-stack (Depends-on): Add sigaction.
31385         * modules/fatal-signal (Depends-on): Likewise.
31386         * modules/nanosleep (Depends-on): Likewise.
31387         * modules/sigprocmask (Files): Add sig-handler.h.
31388         * modules/sigaction (Files): Likewise.
31389         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31390         Eggert.
31391         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31392         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31393         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31394         (init_fatal_signals): Likewise.
31395         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31396         (siginterrupt): Delete fallback.
31397         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31398         instead.
31399         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31400         siginterrupt.
31401
31402         New module sigaction, for mingw.
31403         * modules/sigaction: New module...
31404         * modules/sigaction-tests: ...and its test.
31405         * m4/sigaction.m4: New file.
31406         * lib/sigaction.c: Likewise.
31407         * tests/test-sigaction.c: Likewise.
31408         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31409         * modules/signal (Makefile.am): Likewise.
31410         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31411         needed.
31412         * doc/posix-headers/signal.texi (signal.h): Mention provided
31413         types.
31414         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31415         that sigaction is preferable.
31416         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31417         module.
31418         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31419         sigaction.
31420
31421         Improve robustness of sigprocmask by overriding signal.
31422         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31423         is in use.
31424         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31425         (SIGKILL, SIGSTOP): Provide fallbacks.
31426         (rpl_signal): Implement.
31427         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31428         signal can be called inside handlers.
31429
31430         Fix nanosleep module on mingw.
31431         * modules/nanosleep (Depends-on): Add sys_select.
31432         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31433
31434         Fix licensing of sigprocmask.
31435         * modules/raise (License): Relicense as LGPL.
31436
31437 2008-06-21  Bruno Haible  <bruno@clisp.org>
31438
31439         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31440         result if it contains question marks.
31441         Reported by Michael Geng <linux@michaelgeng.de>.
31442
31443 2008-06-19  Bruno Haible  <bruno@clisp.org>
31444
31445         Fix CVS-ism.
31446         * doc/gnulib.texi: Include updated-stamp.texi.
31447         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31448         (updated-stamp.texi): New rule.
31449         (gnulib.info): Depend on it.
31450         * doc/.gitignore: Add updated-stamp.texi.
31451         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31452
31453 2008-06-19  Bruno Haible  <bruno@clisp.org>
31454
31455         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31456         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31457
31458 2008-06-19  Eric Blake  <ebb9@byu.net>
31459
31460         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31461         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31462         Reported by Stepan Kasal.
31463
31464 2008-06-18  Bruno Haible  <bruno@clisp.org>
31465
31466         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31467         Reported by Eric Blake.
31468
31469 2008-06-18  Eric Blake  <ebb9@byu.net>
31470
31471         Work around cygwin 1.5.25 strsignal bug.
31472         * tests/test-strsignal.c: Allow for const char *.
31473         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31474
31475 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31476
31477         * users.txt: Update URL to article and add author/date
31478         information.
31479
31480 2008-06-17  Bruno Haible  <bruno@clisp.org>
31481
31482         New macro gl_DISABLE_THREADS.
31483         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31484         if the user did not pass --enable-threads or --disable-threads option.
31485         (gl_DISABLE_THREADS): New macro.
31486         Reported by Eric Blake <ebb9@byu.net>.
31487
31488 2008-06-17  Bruno Haible  <bruno@clisp.org>
31489
31490         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31491         when the macro ignores it.
31492         Based on a patch by Eric Blake <ebb9@byu.net>.
31493
31494 2008-06-17  Bruno Haible  <bruno@clisp.org>
31495
31496         * modules/tls (License): Change to LGPLv2+.
31497         Reported by Eric Blake.
31498
31499 2008-06-17  Eric Blake  <ebb9@byu.net>
31500
31501         Simplify c-stack prerequisites.
31502         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31503         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31504         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31505         check.
31506         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31507         <sys/resource.h>.
31508
31509         Move c-stack test into testsuite.
31510         * modules/c-stack-tests: New file.
31511         * lib/c-stack.c [DEBUG]: Move test program...
31512         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31513         fail test if sigaltstack is lacking.
31514         * tests/test-c-stack.sh: New driver file.
31515
31516 2008-06-16  Eric Blake  <ebb9@byu.net>
31517
31518         Use raise module consistently.
31519         * modules/fatal-signal (Depends-on): Add raise.
31520         * modules/sigprocmask (Depends-on): Likewise.
31521         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31522         * lib/sigprocmask.c (sigprocmask): Likewise.
31523         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31524         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31525
31526         Fix compliance bug in sigpending.
31527         * lib/sigprocmask.c (sigpending): Return pending array via
31528         parameter, not return value.
31529
31530 2008-06-14  Eric Blake  <ebb9@byu.net>
31531
31532         Improve obstack-printf test code.
31533         * tests/test-obstack-printf.c (test_function): Fix comment, and
31534         simplify usage of obstack_* in macros.  Add a test for coverage.
31535         Reported by Bruno Haible.
31536
31537 2008-06-14  Bruno Haible  <bruno@clisp.org>
31538
31539         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31540         array size as a constant, not as a const variable.
31541         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31542         AC_USE_SYSTEM_EXTENSIONS.
31543         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31544         Test whether the obstack_printf function actually exists.
31545         * modules/obstack-printf (Depends-on): Add extensions.
31546         (Include): Remove obstack.h.
31547         * modules/obstack-printf-posix (Depends-on): Add extensions.
31548         (Include): Remove obstack.h.
31549
31550 2008-06-13  Eric Blake  <ebb9@byu.net>
31551
31552         Add obstack-printf and obstack-printf-posix modules.
31553         * modules/obstack-printf: New file.
31554         * modules/obstack-printf-posix: Likewise.
31555         * MODULES.html.sh (Misc): Mention them.
31556         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31557         Likewise.
31558         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31559         Likewise.
31560         * modules/stdio (Makefile.am): Accomodate new modules.
31561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31562         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31563         Declare.
31564         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31565         functions.
31566         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31567         (gl_REPLACE_OBSTACK_PRINTF): New macros
31568         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31569         * tests/test-obstack-printf.c: New file.
31570         * modules/obstack-printf-tests: Likewise.
31571         * modules/obstack-printf-posix-tests: Likewise.
31572
31573 2008-06-11  Bruno Haible  <bruno@clisp.org>
31574
31575         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31576         * lib/open.c: Include errno.h.
31577         (open): Fail when attempting to write to a file that has a trailing
31578         slash.
31579         * tests/test-open.c (main): Test against trailing slash bug.
31580         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31581
31582 2008-06-10  Bruno Haible  <bruno@clisp.org>
31583
31584         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31585         for $? to work inside the trap command, with various /bin/sh-s.
31586         * tests/test-vc-list-files-cvs.sh: Likewise.
31587
31588 2008-06-10  Bruno Haible  <bruno@clisp.org>
31589
31590         * lib/acl-internal.h: Don't include gettext.h here.
31591         * lib/set-mode-acl.c: Include gettext.h here.
31592         * lib/copy-acl.c: Likewise.
31593
31594 2008-06-10  Bruno Haible  <bruno@clisp.org>
31595
31596         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31597         * lib/wait-process.c (wait_subprocess): Likewise.
31598         * lib/execute.h (execute): Add termsigp argument.
31599         * lib/execute.c (execute): Likewise.
31600         * lib/csharpcomp.c (compile_csharp_using_pnet,
31601         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31602         * lib/csharpexec.c (execute_csharp_using_pnet,
31603         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31604         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31605         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31606         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31607         is_jikes_present): Update.
31608         * lib/javaexec.c (execute_java_class): Update.
31609         * lib/javaversion.c (execute_and_read_line): Update.
31610         * NEWS: Document the changes.
31611         Reported by Eric Blake.
31612
31613 2008-06-10  Eric Blake  <ebb9@byu.net>
31614
31615         Add missing include.
31616         * tests/test-strstr.c (includes): Add <signal.h>.
31617         * tests/test-strcasestr.c (includes): Likewise.
31618         * tests/test-memmem.c (includes): Likewise.
31619
31620 2008-06-10  Bruno Haible  <bruno@clisp.org>
31621
31622         * lib/wait-process.c (wait_subprocess): Add an assertion.
31623
31624 2008-06-10  Bruno Haible  <bruno@clisp.org>
31625
31626         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31627
31628 2008-06-10  Bruno Haible  <bruno@clisp.org>
31629
31630         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31631         using alarm().
31632         * tests/test-strcasestr.c (main): Likewise.
31633         * tests/test-strstr.c (main): Likewise.
31634
31635 2008-06-09  Bruno Haible  <bruno@clisp.org>
31636
31637         Work around the Solaris 10 ACE ACLs ABI change.
31638         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31639         declare if ACL_NO_TRIVIAL is present.
31640         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31641         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31642         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31643         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31644         define if ACL_NO_TRIVIAL is present.
31645         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31646         and use the current ABI.
31647         (file_has_acl): Use same #if condition as elsewhere.
31648         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31649         in use, and use the current ABI.
31650         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31651         Reported by Jim Meyering.
31652
31653 2008-06-09  Eric Blake  <ebb9@byu.net>
31654
31655         Work around environments that (stupidly) ignore SIGALRM.
31656         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31657         before using alarm().
31658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31659         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31660         Reported by Ian Beckwith <ianb@erislabs.net>.
31661
31662         Produce autobuild blurb earlier in log.
31663         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31664
31665 2008-06-09  Jim Meyering  <meyering@redhat.com>
31666         and OndÅ™ej Vašík  <ovasik@redhat.com>
31667
31668         utimens.c: correct kernel bug work-around
31669         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31670         failure, not success, and the kernel bug we're trying to work
31671         around affects not just the utimensat call, but also the fallback
31672         futimens call.
31673         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31674         not success.
31675         [HAVE_FUTIMENS]: Use the same work-around, here.
31676
31677 2008-06-09  Jim Meyering  <meyering@redhat.com>
31678
31679         add more guards around definition of ACE_-related code
31680         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31681         ALLOW and ACE_OWNER are also defined.
31682
31683 2008-06-08  Bruno Haible  <bruno@clisp.org>
31684
31685         * lib/acl-internal.h: Add me as co-author.
31686         * lib/file-has-acl.c: Likewise.
31687         * lib/set-mode-acl.c: Likewise.
31688         * lib/copy-acl.c: Likewise.
31689
31690 2008-06-08  Bruno Haible  <bruno@clisp.org>
31691
31692         Add support for AIX ACLs.
31693         * lib/acl-internal.h (acl_nontrivial): New declaration.
31694         * lib/file-has-acl.c (acl_nontrivial): New function.
31695         (file_has_acl): Add implementation using AIX 4 ACL API.
31696         * lib/set-mode-acl.c (qset_acl): Likewise.
31697         * lib/copy-acl.c (qcopy_acl): Likewise.
31698
31699 2008-06-08  Bruno Haible  <bruno@clisp.org>
31700
31701         Add support for HP-UX ACLs.
31702         * lib/acl-internal.h (acl_nontrivial): New declaration.
31703         * lib/file-has-acl.c (acl_nontrivial): New function.
31704         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31705         * lib/set-mode-acl.c (qset_acl): Likewise.
31706         * lib/copy-acl.c (qcopy_acl): Likewise.
31707
31708 2008-06-08  Bruno Haible  <bruno@clisp.org>
31709
31710         Add support for Cygwin ACLs.
31711         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31712         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31713         the chmod_or_fchmod call.
31714         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31715
31716 2008-06-08  Bruno Haible  <bruno@clisp.org>
31717
31718         Fix bug with setuid modes in Solaris 10+ code.
31719         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31720         succeeded, when the mode contains some special bits.
31721
31722 2008-06-08  Bruno Haible  <bruno@clisp.org>
31723
31724         Add support for Solaris 7..10 ACLs.
31725         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31726         declarations.
31727         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31728         functions.
31729         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31730         * lib/set-mode-acl.c (qset_acl): Likewise.
31731         * lib/copy-acl.c (qcopy_acl): Likewise.
31732
31733 2008-06-08  Bruno Haible  <bruno@clisp.org>
31734
31735         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31736         declaration.
31737         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31738         (acl_access_nontrivial): Remove MacOS X case.
31739         (file_has_acl): Use acl_extended_nontrivial.
31740         * lib/copy-acl.c (qcopy_acl): Likewise.
31741
31742 2008-06-08  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31745
31746 2008-06-08  Jim Meyering  <meyering@redhat.com>
31747
31748         * modules/acl (Maintainer): Add Bruno Haible.
31749
31750 2008-06-07  Bruno Haible  <bruno@clisp.org>
31751
31752         Improve support for Tru64 ACLs.
31753         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31754         ACL on OSF/1.
31755
31756 2008-06-07  Bruno Haible  <bruno@clisp.org>
31757
31758         Add support for MacOS X ACLs.
31759         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31760         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31761         * lib/set-mode-acl.c (qset_acl): Likewise.
31762         * lib/copy-acl.c (qcopy_acl): Likewise.
31763
31764 2008-06-07  Bruno Haible  <bruno@clisp.org>
31765
31766         Fix memory leak introduced on 2008-05-22.
31767         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31768         use.
31769
31770 2008-06-07  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31773         to construct an empty ACL.
31774
31775 2008-06-07  Bruno Haible  <bruno@clisp.org>
31776
31777         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31778         precisely.
31779         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31780
31781 2008-06-07  Bruno Haible  <bruno@clisp.org>
31782
31783         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31784         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31785
31786 2008-06-07  Bruno Haible  <bruno@clisp.org>
31787
31788         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31789         regardless of POSIX.
31790         * doc/posix-functions/_longjmp.texi: Likewise.
31791         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31792         SystemV platform in this case.
31793
31794 2008-06-06  Eric Blake  <ebb9@byu.net>
31795
31796         Document abort() bugs.
31797         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31798
31799         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31800         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31801         sigsetjmp.
31802         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31803         siglongjmp, but only as a macro.
31804         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31805         is obsolete.
31806         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31807
31808         Tweak documentation to cover cygwin argz bugs.
31809         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31810         argz bug fix; no code change needed since no cygwin releases
31811         occurred between the last fix and the bug being tested.
31812         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31813         module and recently fixed cygwin bugs.
31814         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31815         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31816         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31817         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31818         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31819         Likewise.
31820         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31821         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31822         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31823         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31824         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31825         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31826         Likewise.
31827
31828         Avoid gcc warning on cygwin.
31829         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31830         !ACL_NO_TRIVIAL]: Avoid unused variable.
31831
31832 2008-06-05  Eric Blake  <ebb9@byu.net>
31833
31834         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31835         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31836         git-version-gen fails to come up with a version.
31837         Reported by Simon Josefsson.
31838
31839 2008-06-05  Jim Meyering  <meyering@redhat.com>
31840             Paul Eggert  <eggert@cs.ucla.edu>
31841
31842         utimens.c: work around a probable Linux kernel bug
31843         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31844         appears to be a kernel bug that causes utimensat to return 280
31845         instead of 0, indicating success.
31846
31847 2008-06-04  Bruno Haible  <bruno@clisp.org>
31848
31849         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31850         2008-06-01 commit.
31851
31852 2008-06-04  Bruno Haible  <bruno@clisp.org>
31853
31854         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31855         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31856         (file_has_acl): Use it. Save errno afterwards.
31857         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31858
31859 2008-06-03  Bruno Haible  <bruno@clisp.org>
31860
31861         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31862         draft code. Simplify #ifs.
31863         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31864         Put Solaris code after POSIX-draft code. Fix comments regarding
31865         Solaris 10, HP-UX. Mention Cygwin.
31866         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31867
31868 2008-06-03  Eric Blake  <ebb9@byu.net>
31869
31870         Provide fallback for older kernels.
31871         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31872         Provide runtime fallback if kernel lacks support.
31873         Reported by Mike Frysinger.
31874
31875 2008-06-02  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31878         it exists.
31879
31880 2008-06-02  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31883         * lib/copy-acl.c (qcopy_acl): Update comment.
31884
31885 2008-06-02  Bruno Haible  <bruno@clisp.org>
31886
31887         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31888         like ACL APIs.
31889
31890 2008-06-02  Bruno Haible  <bruno@clisp.org>
31891
31892         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31893         * tests/test-set-mode-acl.sh: Likewise.
31894         * tests/test-copy-acl.sh: Likewise.
31895         * tests/test-copy-file.sh: Likewise.
31896
31897 2008-06-02  Bruno Haible  <bruno@clisp.org>
31898
31899         * tests/test-file-has-acl.sh: Remove unused code.
31900
31901 2008-06-01  Bruno Haible  <bruno@clisp.org>
31902
31903         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31904         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31905         messages.
31906         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31907
31908 2008-06-01  Bruno Haible  <bruno@clisp.org>
31909
31910         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31911         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31912         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31913         APIs.
31914         * modules/acl-tests (configure.ac): Remove tests now contained in
31915         m4/acl.m4.
31916
31917 2008-06-02  Jim Meyering  <meyering@redhat.com>
31918
31919         announce-gen: use a better key-server host name
31920         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31921         it may be more consistently reliable.  Suggested by Werner Koch
31922         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31923
31924 2008-06-01  Bruno Haible  <bruno@clisp.org>
31925
31926         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31927         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31928
31929 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31930
31931         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31932
31933 2008-06-01  Bruno Haible  <bruno@clisp.org>
31934
31935         New ACL tests.
31936         * tests/test-file-has-acl.sh: New file.
31937         * tests/test-file-has-acl.c: New file.
31938         * tests/test-set-mode-acl.sh: New file.
31939         * tests/test-set-mode-acl.c: New file.
31940         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31941         * tests/test-copy-acl.c: New file.
31942         * modules/acl-tests: New file, based on modules/copy-file-tests.
31943         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31944         (Depends-on): Add acl-tests.
31945         (configure.ac): Remove checks.
31946         (Makefile.am): Don't create test-sameacls program here any more.
31947
31948 2008-06-01  Bruno Haible  <bruno@clisp.org>
31949
31950         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31951         * tests/test-sameacls.c: Include progname.h.
31952         (main): Invoke set_program_name. Portability fixes for MacOS X,
31953         Solaris, HP-UX.
31954
31955 2008-06-01  Bruno Haible  <bruno@clisp.org>
31956
31957         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31958         function.
31959         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31960
31961 2008-06-01  Bruno Haible  <bruno@clisp.org>
31962
31963         * modules/rpmatch (Depends-on): Add strdup.
31964
31965 2008-06-01  Bruno Haible  <bruno@clisp.org>
31966
31967         * lib/pipe.c: Include unistd-safer.h.
31968         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31969         * modules/pipe (Depends-on): Add unistd-safer.
31970
31971 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31972
31973         * modules/autobuild (configure.ac): Call AB_INIT.
31974
31975 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31976
31977         * tests/test-getaddrinfo.c: Don't print debug messages by default.
31978         Suggested by Bruno Haible <bruno@clisp.org>.
31979
31980 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31981
31982         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31983         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31984         <bruno@clisp.org>.
31985
31986 2008-05-29  Eric Blake  <ebb9@byu.net>
31987
31988         Prefer new POSIX 200x interfaces over futimesat.
31989         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31990         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31991         when available.
31992         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31993
31994 2008-05-28  Bruno Haible  <bruno@clisp.org>
31995
31996         * modules/stpcpy (License): Change to LGPLv2+.
31997         Requested by David Lutterkort <dlutter@redhat.com>.
31998
31999 2008-05-27  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
32002         current mingw.
32003         Reported by Jose E. Marchesi <jemarch@gnu.org>.
32004
32005 2008-05-27  Bruno Haible  <bruno@clisp.org>
32006
32007         * modules/iconv_open (Link): New section, from module 'iconv'.
32008         * modules/striconv (Link): Likewise.
32009         * modules/striconveh (Link): Likewise.
32010         * modules/xstriconv (Link): Likewise.
32011         * modules/unicodeio (Link): Likewise.
32012         * modules/propername (Link): Likewise.
32013         Reported by Jim Meyering.
32014
32015 2008-05-26  Jim Meyering  <meyering@redhat.com>
32016
32017         sha256: do not artificially restrict buffer length to be < 2^32
32018         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
32019         uint32_t to size_t.
32020         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
32021         to match.
32022
32023         avoid unaligned access errors, e.g., on sparc
32024         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
32025         direct access through a possibly-unaligned uint64* pointer.
32026         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
32027         direct access through a possibly-unaligned uint32* pointer.
32028         Prompted by this patch from Tom "spot" Callaway:
32029         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
32030
32031         sha512.c: fix typo in comment
32032         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
32033
32034 2008-05-25  Bruno Haible  <bruno@clisp.org>
32035
32036         * lib/set-mode-acl.c: Renamed from lib/acl.c.
32037         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
32038         (Makefile.am): Update lib_SOURCES.
32039
32040 2008-05-25  Bruno Haible  <bruno@clisp.org>
32041
32042         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
32043
32044 2008-05-25  Jim Meyering  <meyering@redhat.com>
32045
32046         useless-if-before-free: freed expr may have white-space differences
32047         * build-aux/useless-if-before-free: Recognize cases in which the
32048         freed expression differs from the tested one in embedded white
32049         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
32050         $1 was used, so we can't make any regexp shy.  Improved tests now
32051         detect this.
32052
32053         useless-if-before-free: accept white space in the expression.
32054         * build-aux/useless-if-before-free: For now, any white space
32055         in the expression must be identical in the free argument.
32056
32057         useless-if-before-free: efficiency tweak
32058         * build-aux/useless-if-before-free: Make the expression-matching
32059         regexp "shy".
32060         Make the *outer* regexp shy, not the expr-matching one.
32061
32062         update code-in-comment to accept cast of free arg
32063         * build-aux/useless-if-before-free: Update regexp.
32064
32065 2008-05-25  Bruno Haible  <bruno@clisp.org>
32066
32067         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
32068         * modules/copy-file-tests (Files, Makefile.am): Update.
32069         * tests/test-copy-file.c (func_test_copy): Update.
32070
32071 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
32072
32073         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
32074
32075 2008-05-23  Bruno Haible  <bruno@clisp.org>
32076
32077         Improve support for ACLs on OSF/1.
32078         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32079         Remove fallback for unknown flavors of ACLs.
32080
32081 2008-05-22  Bruno Haible  <bruno@clisp.org>
32082
32083         Add support for ACLs on OSF/1.
32084         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32085         replacements.
32086         (acl_free_text): New macro fallback.
32087         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32088         acl_free.
32089         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32090         acl_free_text function. Require AC_C_INLINE.
32091
32092 2008-05-22  Bruno Haible  <bruno@clisp.org>
32093
32094         Make copy_acl work on MacOS X 10.5.
32095         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32096         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32097         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32098         If MODE_INSIDE_ACL, don't assume that every system has the same text
32099         representation for ACLs as FreeBSD.
32100         * lib/copy-acl.c (copy_acl): Add support for platforms with
32101         !MODE_INSIDE_ACL.
32102         * lib/file-has-acl.c (file_has_acl): Likewise.
32103         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32104         FreeBSD, MacOS X, or IRIX, respectively.
32105
32106 2008-05-22  Bruno Haible  <bruno@clisp.org>
32107
32108         * lib/acl.h: Don't include <sys/acl.h>.
32109         (GETACLCNT): Move fallback to lib/acl-internal.h.
32110         * lib/acl-internal.h: Include <sys/acl.h> here.
32111         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32112
32113 2008-05-22  Bruno Haible  <bruno@clisp.org>
32114
32115         Split off copy_acl function to separate file.
32116         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32117         * lib/acl.c (copy_acl): Moved function to separate file.
32118         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32119         * modules/acl (Files): Add lib/copy-acl.c.
32120         (Makefiles.am): Augment lib_SOURCES.
32121
32122 2008-05-22  Bruno Haible  <bruno@clisp.org>
32123
32124         * modules/copy-file-tests: New file.
32125         * tests/test-copy-file.sh: New file.
32126         * tests/test-copy-file.c: New file.
32127         * tests/test-copy-file-sameacls.c: New file.
32128
32129 2008-05-22  Eric Blake  <ebb9@byu.net>
32130
32131         Avoid gcc warning.
32132         * tests/test-memcmp.c (main): Pass NULL indirectly.
32133
32134 2008-05-21  Bruno Haible  <bruno@clisp.org>
32135
32136         Add reference doc about ACLs.
32137         * doc/acl-resources.txt: New file.
32138         * doc/acl-cygwin.txt: New file.
32139
32140 2008-05-21  Bruno Haible  <bruno@clisp.org>
32141
32142         Avoid one more warning from gcc.
32143         * lib/vasnprintf.c (IF_LINT): Update comments.
32144         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32145
32146 2008-05-21  Jim Meyering  <meyering@redhat.com>
32147
32148         avoid a warning from gcc
32149         * lib/vasnprintf.c (IF_LINT): Define.
32150         (scale10_round_decimal_long_double):
32151         Use it to avoid a "may be used uninitialized" warning.
32152         (scale10_round_decimal_double): Likewise.
32153
32154 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32155
32156         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32157         declared.
32158
32159 2008-05-20  Bruno Haible  <bruno@clisp.org>
32160
32161         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32162         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32163
32164 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32165
32166         * modules/memcmp-tests: New file.
32167         * tests/test-memcmp.c: New file.
32168
32169 2008-05-19  Bruno Haible  <bruno@clisp.org>
32170
32171         * modules/propername (Notice, configure.ac): Put quoted "..." into
32172         --keyword option.
32173         * lib/propername.h: Update comments accordingly.
32174         Reported by Eric Blake.
32175
32176 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32177
32178         * modules/getpass-gnu (Depends-on): Add fseeko.
32179
32180 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32181
32182         * modules/base64-tests: New file.
32183
32184 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32185
32186         * lib/base64.c (base64_decode_ctx): If a decode context structure
32187         was passed in use it to ignore newlines.  If a context structure
32188         was _not_ passed in, continue to treat newlines as garbage (this
32189         is the historical behavior).  Formerly base64_decode.
32190         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32191         takes a decode context structure.
32192         * lib/base64.h (base64_decode): Macro for four-argument calls.
32193         (base64_decode_alloc): Likewise.
32194         * lib/base64.c (base64_decode_ctx): If a decode context structure
32195         was passed in use it to ignore newlines.  If a context structure
32196         was _not_ passed in, continue to treat newlines as garbage (this
32197         is the historical behavior).  Formerly base64_decode.
32198         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32199         takes a decode context structure.
32200         * lib/base64.h (base64_decode): Macro for four-argument calls.
32201         (base64_decode_alloc): Likewise.
32202
32203 2008-05-19  Jim Meyering  <meyering@redhat.com>
32204
32205         avoid a warning from gcc
32206         * lib/trim.c (IF_LINT): Define.
32207         (trim2): Use it to avoid a "may be used uninitialized" warning.
32208
32209         Fix doc typo.
32210         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32211
32212 2008-05-19  Bruno Haible  <bruno@clisp.org>
32213
32214         * doc/glibc-functions/getpass.texi: Document limits of other
32215         implementations.
32216
32217 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32218             Bruno Haible <bruno@clisp.org>
32219
32220         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32221
32222 2008-05-18  Bruno Haible  <bruno@clisp.org>
32223
32224         * modules/propername: New file, from GNU gettext.
32225         * lib/propername.h: New file, from GNU gettext.
32226         * lib/propername.c: New file, from GNU gettext.
32227         * MODULES.html.sh (Internationalization functions): Add propername.
32228
32229 2008-05-16  Jim Meyering  <meyering@redhat.com>
32230             Bruno Haible  <bruno@clisp.org>
32231
32232         Avoid some warnings from "gcc -Wshadow".
32233         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32234
32235 2008-05-15  Eric Blake  <ebb9@byu.net>
32236
32237         Extend previous patch to cygwin 1.7.0.
32238         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32239         fast implementation in cygwin >= 1.7.0.
32240         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32242
32243 2008-05-15  Bruno Haible  <bruno@clisp.org>
32244
32245         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32246         implementation in glibc >= 2.9.
32247         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32249
32250 2008-05-15  Bruno Haible  <bruno@clisp.org>
32251
32252         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32253         (Unicode string functions): Add unilbrk/*.
32254         Reported by Karl Berry.
32255
32256 2008-05-15  Eric Blake  <ebb9@byu.net>
32257
32258         Fix violation of <stdbool.h> replacement in regex.
32259         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32260         * lib/regexec.c (re_search_internal): Likewise.
32261         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32262
32263 2008-05-15  Jim Meyering  <meyering@redhat.com>
32264
32265         avoid distracting test output when git or cvs is not found
32266         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32267         * tests/test-vc-list-files-git.sh: Likewise.
32268
32269 2008-05-15  Eric Blake  <ebb9@byu.net>
32270
32271         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32272         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32273         glibc version.
32274         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32275         * doc/posix-functions/strstr.texi (strstr): Likewise.
32276         * lib/str-two-way.h (MAX): Sychronize with glibc.
32277
32278 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32279
32280         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32281         opr.ctx_type.
32282         (calc_first): Initialize constraint field.
32283         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32284         Fix grammar.
32285         (duplicate_node): Merge constraint field for all node types.
32286         (calc_eclosure_iter): Look at constraint field for all node types.
32287         * lib/regex_internal.c (create_cd_newstate): Don't look at
32288         opr.ctx_type.
32289
32290 2008-05-14  Bruno Haible  <bruno@clisp.org>
32291
32292         Help GCC to do better code generation.
32293         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32294         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32295         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32296         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32297         Declare with attribute 'malloc' if supported.
32298
32299 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32300
32301         use "echo STR|wc -c" rather than unportable "expr length STR"
32302         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32303         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32304
32305 2008-05-14  Jim Meyering  <meyering@redhat.com>
32306
32307         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32308         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32309         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32310         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32311         via Collin Lasse.
32312
32313 2008-05-14  Eric Blake  <ebb9@byu.net>
32314
32315         Avoid quadratic growth in gl_LIBSOURCES.
32316         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32317         Suggested by Bruno Haible.
32318
32319         Test xmemdup0.
32320         * modules/xmemdup0-tests: New file.
32321         * tests/test-xmemdup0.c: Likewise.
32322
32323 2008-05-13  Eric Blake  <ebb9@byu.net>
32324
32325         Split xmemdup0 into its own module.
32326         * modules/xmemdup0: New file.
32327         * lib/xmemdup0.h: Likewise.
32328         * lib/xmemdup0.c: Likewise.
32329         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32330         * lib/xalloc.h (xmemdup0): Remove.
32331         * lib/xmalloc.c (xmemdup0): Likewise.
32332
32333 2008-05-13  Eric Blake  <ebb9@byu.net>
32334             Bruno Haible  <bruno@clisp.org>
32335
32336         Reduce number of forks required during autoconf.
32337         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32338         and gl_LIBSOURCES_DIR.
32339         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32340         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32341         m4_syscmd per file.
32342         <m4_foreach_w>: Move...
32343         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32344
32345 2008-05-13  Eric Blake  <ebb9@byu.net>
32346
32347         * gnulib-tool: Fix various comment typos.
32348
32349 2008-05-12  Bruno Haible  <bruno@clisp.org>
32350
32351         Tailor the linebreaking algorithm.
32352         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32353
32354 2008-05-12  Bruno Haible  <bruno@clisp.org>
32355
32356         Update to Unicode 5.0.0.
32357         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32358         LBP_JV, LBP_JT. Redistribute values.
32359         (unilbrk_table): Change size.
32360         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32361         Unicode TR#14 rev. 22.
32362         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32363         LBP_JV, LBP_JT. Redistribute values.
32364         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32365         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32366         Update.
32367         * lib/unilbrk/lbrkprop1.h: Regenerated.
32368         * lib/unilbrk/lbrkprop2.h: Regenerated.
32369         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32370         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32371         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32372         Likewise.
32373         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32374         Likewise.
32375         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32376         result.
32377         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32378         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32379         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32380         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32381         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32382         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32383
32384 2008-05-11  Bruno Haible  <bruno@clisp.org>
32385
32386         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32387
32388 2008-05-11  Bruno Haible  <bruno@clisp.org>
32389
32390         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32391         * modules/unilbrk/gen-lbrk: New file.
32392
32393 2008-05-11  Bruno Haible  <bruno@clisp.org>
32394
32395         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32396         * m4/sha512.m4 (gl_SHA512): Likewise.
32397
32398 2008-05-11  Jim Meyering  <meyering@redhat.com>
32399
32400         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32401         * modules/crypto/sha256: New file.
32402         * modules/crypto/sha512: Likewise.
32403         * lib/sha256.c: Likewise.
32404         * lib/sha256.h: Likewise.
32405         * lib/sha512.c: Likewise.
32406         * lib/sha512.h: Likewise.
32407         * lib/u64.h: Likewise.
32408         * m4/sha256.m4: Likewise.
32409         * m4/sha512.m4: Likewise.
32410         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32411
32412 2008-05-10  Bruno Haible  <bruno@clisp.org>
32413
32414         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32415         (Input/Output <stdio.h>): Add xprintf.
32416         (Signal handling <signal.h>): Add strsignal.
32417         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32418         (Core language properties): Add func.
32419         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32420         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32421         strings.
32422         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32423         (Input/output): New section.
32424         (File system functions): Add openat-die, stat-macros.
32425         (Networking functions): Add sockets.
32426         (Unicode string functions): Add unictype/*.
32427         (Support for building libraries and executables): Add gperf.
32428         (Support for building documentation): Add agpl-3.0.
32429         (Misc): Add nocrash.
32430
32431 2008-05-10  Bruno Haible  <bruno@clisp.org>
32432
32433         * modules/unictype/gen-ctype: New file.
32434
32435 2008-05-10  Jim Meyering  <meyering@redhat.com>
32436
32437         Make chdir-safer.c more efficient on a system with no symlinks.
32438         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32439         also if ELOOP is zero.  Suggested by Bruno Haible.
32440
32441         Make chdir-safer.c slightly safer.
32442         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32443         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32444
32445         Avoid compile failure on systems without ELOOP (like mingw).
32446         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32447         Reported by Bruno Haible.
32448
32449 2008-05-10  Bruno Haible  <bruno@clisp.org>
32450
32451         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32452         (is_utf8_encoding): Use a case-insensitive comparison.
32453         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32454         streq.
32455
32456 2008-05-10  Bruno Haible  <bruno@clisp.org>
32457
32458         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32459         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32460         * lib/unilbrk/ulc-common.h (iconv_string_length,
32461         iconv_string_keeping_offsets): Remove declarations.
32462         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32463         Don't include <iconv.h>, streq.h, xsize.h.
32464         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32465         conversion.
32466         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32467         <iconv.h>, streq.h, xsize.h.
32468         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32469         conversion.
32470         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32471         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32472         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32473         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32474
32475 2008-05-10  Bruno Haible  <bruno@clisp.org>
32476
32477         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32478         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32479
32480         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32481         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32482
32483         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32484         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32485
32486         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32487         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32488
32489         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32490         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32491
32492         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32493         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32494
32495         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32496         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32497
32498         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32499         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32500
32501 2008-05-10  Bruno Haible  <bruno@clisp.org>
32502
32503         Split up 'linebreak' module.
32504         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32505         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32506         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32507         modifications.
32508         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32509         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32510         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32511         lib/linebreak.c.
32512         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32513         lib/linebreak.c.
32514         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32515         lib/linebreak.c.
32516         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32517         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32518         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32519         lib/linebreak.c.
32520         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32521         lib/linebreak.c.
32522         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32523         lib/linebreak.c.
32524         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32525         lib/linebreak.c.
32526         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32527         lib/linebreak.c.
32528         * modules/unilbrk/base: New file.
32529         * modules/unilbrk/tables: New file.
32530         * modules/unilbrk/u8-possible-linebreaks: New file.
32531         * modules/unilbrk/u16-possible-linebreaks: New file.
32532         * modules/unilbrk/u32-possible-linebreaks: New file.
32533         * modules/unilbrk/ulc-common: New file.
32534         * modules/unilbrk/ulc-possible-linebreaks: New file.
32535         * modules/unilbrk/u8-width-linebreaks: New file.
32536         * modules/unilbrk/u16-width-linebreaks: New file.
32537         * modules/unilbrk/u32-width-linebreaks: New file.
32538         * modules/unilbrk/ulc-width-linebreaks: New file.
32539         * lib/linebreak.h: Remove file.
32540         * lib/linebreak.c: Remove file.
32541         * m4/linebreak.m4: Remove file.
32542         * modules/linebreak: Remove file.
32543         * NEWS: Mention the changes.
32544
32545 2008-05-09  Eric Blake  <ebb9@byu.net>
32546
32547         Add xmemdup0.
32548         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32549         implementation.
32550         * lib/xmalloc.c (xmemdup0): New C implementation.
32551
32552 2008-05-08  Bruno Haible  <bruno@clisp.org>
32553
32554         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32555
32556 2008-05-07  Eric Blake  <ebb9@byu.net>
32557
32558         Support cross-compilation of <wctype.h>.
32559         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32560         AC_CACHE_CHECK.
32561
32562 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32563
32564         * build-aux/vc-list-files: Add support for bzr.
32565
32566 2008-05-03  Jim Meyering  <meyering@redhat.com>
32567
32568         avoid failed assertion with tight malloc
32569         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32570
32571 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32572
32573         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32574         are needed from arpa/inet.h.
32575         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32576         Reported by Bruno Haible.
32577
32578 2008-05-02  Jim Meyering  <meyering@redhat.com>
32579
32580         avoid compilation error on FreeBSD 6
32581         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32582
32583 2008-05-01  Jim Meyering  <meyering@redhat.com>
32584
32585         useless-if-before-free: correct --help's exit status description
32586         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32587         for one or more matches, etc.  Reported by Bruno Haible.
32588
32589         vc-list-files: make the stand-alone gnulib test work
32590         * modules/vc-list-files-tests (configure.ac):
32591         Define and AC_SUBST abs_aux_dir.
32592         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32593         $(abs_top_srcdir) to each script and having each of them
32594         duplicate the work of setting PATH, set PATH here, using
32595         the new variable, abs_aux_dir instead.
32596         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32597         * tests/test-vc-list-files-git.sh: Likewise.
32598         Reported by Bruno Haible.
32599
32600 2008-05-01  Bruno Haible  <bruno@clisp.org>
32601
32602         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32603         reallocation. Rename 'done' to 'found_delimiter'.
32604
32605 2008-05-01  Jim Meyering  <meyering@redhat.com>
32606
32607         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32608         * build-aux/vc-list-files: Use `...`, not $(...).
32609
32610 2008-04-30  Jim Meyering  <meyering@redhat.com>
32611
32612         add tests for vc-list-files
32613         * modules/vc-list-files-tests: New module.
32614         * tests/test-vc-list-files-cvs.sh: New file.
32615         * tests/test-vc-list-files-git.sh: New file.
32616
32617         avoid a warning from gcc
32618         * lib/getndelim2.c (IF_LINT): Define.
32619         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32620
32621         vc-list-files: work properly with build-aux/cvsu, too
32622         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32623         to all cvs-based clauses.
32624
32625         vc-list-files: work properly in the CVS+awk case, too
32626         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32627
32628         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32629         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32630         take more than one file argument, so .  Add quotes, just in case $dir
32631         ever contains a shell meta-character.  Prompted by Soren Hansen in
32632         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32633
32634 2008-04-29  Eric Blake  <ebb9@byu.net>
32635
32636         Optimize getndelim2 to use block operations when possible.
32637         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32638         freadseek, and memchr2.
32639         * lib/getndelim2.c (getndelim2): Use them for block reads.
32640
32641 2008-04-29  Bruno Haible  <bruno@clisp.org>
32642
32643         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32644         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32645         * modules/inet_ntop (Depends-on): Add extensions.
32646         * modules/inet_pton (Depends-on): Likewise.
32647         Reported by Simon Josefsson.
32648
32649 2008-04-29  Jim Meyering  <meyering@redhat.com>
32650
32651         When the is more than one match in a block, match all of them.
32652         * build-aux/useless-if-before-free: Iterate through each block
32653         until there are no more matches.
32654
32655         Fix broken useless-if-before-free script.
32656         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32657         the expression to match cast of argument to free-like function.
32658
32659 2008-04-29  Eric Blake  <ebb9@byu.net>
32660
32661         Use new header.
32662         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32663
32664 2008-04-29  Jim Meyering  <meyering@redhat.com>
32665
32666         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32667         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32668         by gnulib to exist and to declare e.g., inet_ntop.
32669         Don't include "inet_ntop.h", now removed.
32670
32671         * m4/arpa_inet_h.m4: Remove trailing blanks.
32672
32673 2008-04-29  Eric Blake  <ebb9@byu.net>
32674
32675         Silence valgrind on safe reads beyond potential array bounds.
32676         * lib/rawmemchr.valgrind: New file.
32677         * lib/strchrnul.valgrind: Likewise.
32678         * modules/rawmemchr (Files): Distribute new file.
32679         * modules/strchrnul (Files): Likewise.
32680         Suggested by Bruno Haible.
32681
32682 2008-04-29  Bruno Haible  <bruno@clisp.org>
32683
32684         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32685         (inet_ntop, inet_pton): Change portability warning's wording.
32686         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32687         Invoke gl_CHECK_NEXT_HEADERS.
32688         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32689         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32690         set ARPA_INET_H.
32691         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32692         * modules/arpa_inet (Description): No longer only for systems that
32693         lack it.
32694         (Depends-on): Add include_next.
32695         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32696         HAVE_ARPA_INET_H.
32697
32698 2008-04-29  Jim Meyering  <meyering@redhat.com>
32699
32700         * modules/mkdir (License): Re-license as LGPLv2+.
32701
32702 2008-04-29  Bruno Haible  <bruno@clisp.org>
32703
32704         * modules/rawmemchr (Maintainer): Set to Eric.
32705         * modules/strchrnul (Maintainer): Likewise.
32706
32707 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32708
32709         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32710         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32711
32712         * modules/arpa_inet (arpa/inet.h): Use them.
32713
32714 2008-04-28  Eric Blake  <ebb9@byu.net>
32715
32716         Test getndelim2.
32717         * modules/getndelim2-tests: New file.
32718         * tests/test-getndelim2.c: Likewise.
32719         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32720         stream.
32721         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32722
32723         * MODULES.html.sh: Document new module.
32724
32725 2008-04-20  Bruno Haible  <bruno@clisp.org>
32726
32727         * lib/c-stack.c (die): Use raise.
32728         * modules/c-stack (Depends-on): Add raise.
32729
32730 2008-04-28  Bruno Haible  <bruno@clisp.org>
32731
32732         Expect rpmatch to be declared.
32733         * lib/yesno.c (rpmatch): Remove declaration.
32734
32735         Declare rpmatch.
32736         * lib/stdlib.in.h (rpmatch): New declaration.
32737         * lib/rpmatch.c: Include <stdlib.h> first.
32738         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32739         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32741         HAVE_RPMATCH.
32742         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32743         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32744         (Include): Set to <stdlib.h>.
32745         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32746         HAVE_RPMATCH.
32747         * NEWS: Document the change.
32748
32749 2008-04-28  Bruno Haible  <bruno@clisp.org>
32750
32751         Change rpmatch to use nl_langinfo when appropriate.
32752         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32753         (N_): New macro.
32754         (localized_pattern): New function/macro.
32755         (try): Remove match, nomatch arguments. Copy the pattern into safe
32756         memory before caching it.
32757         (rpmatch): Use localized_pattern. Add translator comments.
32758         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32759         Suggested by Eric Blake.
32760         * modules/rpmatch (Depends-on): Add stdbool.
32761
32762 2008-04-28  Eric Blake  <ebb9@byu.net>
32763
32764         Add rawmemchr module, matching glibc.
32765         * modules/string (Makefile.am): New indicator.
32766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32767         * lib/string.in.h (rawmemchr): Declare when appropriate.
32768         * modules/rawmemchr: New file.
32769         * m4/rawmemchr.m4: Likewise.
32770         * lib/rawmemchr.c: Likewise.
32771         * modules/rawmemchr-tests: Likewise.
32772         * tests/test-rawmemchr.c: Likewise.
32773         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32774         module.
32775         * modules/strchrnul (Depends-on): Add rawmemchr.
32776         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32777
32778         Whitespace cleanup.
32779         * tests/test-strchrnul.c: Reindent.
32780         * lib/strchrnul.c: Likewise.
32781
32782         Optimize and test strchrnul.
32783         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32784         * modules/strchrnul-tests: New file.
32785         * tests/test-strchrnul.c: Likewise.
32786
32787         Remove intprops dependency.
32788         * modules/memchr (Depends-on): Remove intprops.
32789         * modules/memrchr (Depends-on): Likewise.
32790         * modules/memchr2 (Depends-on): Likewise.
32791         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32792         * lib/memrchr.c (__memrchr): Likewise.
32793         * lib/memrchr2.c (memchr2): Likewise.
32794         Reported by Simon Josefsson.
32795
32796 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32797
32798         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32799         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32800
32801 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32802
32803         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32804
32805         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32806
32807         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32808
32809         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32810         declarations.
32811         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32812
32813         * m4/inet_pton.m4: Don't check for header files.
32814
32815         * m4/inet_ntop.m4: Don't check for header files.
32816
32817 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32818
32819         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32820         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32821         trigger for cygwin).
32822         Reported by Bruno Haible  <bruno@clisp.org>.
32823
32824 2008-04-28  Bruno Haible  <bruno@clisp.org>
32825
32826         * doc/posix-functions/strdup.texi: Mention mingw problem.
32827
32828 2008-04-27  Bruno Haible  <bruno@clisp.org>
32829
32830         * modules/stat-time-tests (Depends-on): Add sleep.
32831         * tests/test-stat-time.c (force_unlink): New function.
32832         (cleanup): Use it.
32833         (test_mtime): Remove the ctime related tests.
32834         (test_ctime): New function, containing the ctime related tests.
32835         (main): Call test_ctime, except on native Windows platforms.
32836
32837 2008-04-27  Bruno Haible  <bruno@clisp.org>
32838
32839         * lib/rpmatch.c (rpmatch): Add some comments.
32840         Reported by James Youngman <jay@gnu.org>.
32841
32842 2008-04-27  Bruno Haible  <bruno@clisp.org>
32843
32844         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32845         quiet NaNs.
32846
32847 2008-04-27  Bruno Haible  <bruno@clisp.org>
32848
32849         Make test-yesno.sh work on mingw.
32850         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32851         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32852         (main): Set stdin to binary mode.
32853         * modules/yesno-tests (Depends-on): Add binary-io.
32854
32855 2008-04-27  Bruno Haible  <bruno@clisp.org>
32856
32857         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32858         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32859         argument that lie outside the IEEE 854 domain.
32860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32861         (gl_ISFINITE): Use it.
32862         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32863
32864 2008-04-27  Bruno Haible  <bruno@clisp.org>
32865
32866         Allow local renaming in config.h.
32867         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32868
32869 2008-04-27  Bruno Haible  <bruno@clisp.org>
32870
32871         * lib/memchr.c (__memchr): Change type of 'i'.
32872         * lib/memchr2.c (memchr2): Likewise.
32873
32874 2008-04-26  Eric Blake  <ebb9@byu.net>
32875         and Bruno Haible  <bruno@clisp.org>
32876
32877         Optimize and test memrchr.
32878         * modules/memrchr (Depends-on): Add intprops.
32879         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32880         * modules/memrchr-tests: New file.
32881         * tests/test-memrchr.c: New file.
32882
32883 2008-04-26  Bruno Haible  <bruno@clisp.org>
32884
32885         Add tentative support for DragonFly BSD.
32886         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32887         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32888         fp.
32889         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32890         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32891         * lib/fpurge.c (fpurge): Likewise.
32892         * lib/freadable.c (freaadable): Likewise.
32893         * lib/freadahead.c (freadahead): Likewise.
32894         * lib/freading.c (freading): Likewise.
32895         * lib/freadptr.c (freadptr): Likewise.
32896         * lib/freadseek.c (freadptrinc): Likewise.
32897         * lib/fseeko.c (fseeko): Likewise.
32898         * lib/fseterr.c (fseterr): Likewise.
32899         * lib/fwritable.c (fwritable): Likewise.
32900         * lib/fwriting.c (fwriting): Likewise.
32901
32902 2008-04-26  Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/stdio-impl.h: New file.
32905         * lib/fbufmode.c: Include stdio-impl.h.
32906         (fbufmode): Use fp_, remove redundant #defines.
32907         * lib/fflush.c: Include stdio-impl.h.
32908         (clear_ungetc_buffer): Remove redundant #defines.
32909         * lib/fpurge.c: Include stdio-impl.h.
32910         (fpurge): Remove redundant #defines.
32911         * lib/freadable.c: Include stdio-impl.h.
32912         (freadable): Remove redundant #defines.
32913         * lib/freadahead.c: Include stdio-impl.h.
32914         (freadahead): Remove redundant #defines.
32915         * lib/freading.c: Include stdio-impl.h.
32916         (freading): Remove redundant #defines.
32917         * lib/freadptr.c: Include stdio-impl.h.
32918         (freadptr): Remove redundant #defines.
32919         * lib/freadseek.c: Include stdio-impl.h.
32920         (freadptrinc): Remove redundant #defines.
32921         * lib/fseeko.c: Include stdio-impl.h.
32922         (rpl_fseeko): Remove redundant #defines.
32923         * lib/fseterr.c: Include stdio-impl.h.
32924         (fseterr): Remove redundant #defines.
32925         * lib/fwritable.c: Include stdio-impl.h.
32926         (fwritable: Remove redundant #defines.
32927         * lib/fwriting.c: Include stdio-impl.h.
32928         (fwriting): Remove redundant #defines.
32929         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32930         * modules/fflush (Files): Likewise.
32931         * modules/fpurge (Files): Likewise.
32932         * modules/freadable (Files): Likewise.
32933         * modules/freadahead (Files): Likewise.
32934         * modules/freading (Files): Likewise.
32935         * modules/freadptr (Files): Likewise.
32936         * modules/freadseek (Files): Likewise.
32937         * modules/fseeko (Files): Likewise.
32938         * modules/fseterr (Files): Likewise.
32939         * modules/fwritable (Files): Likewise.
32940         * modules/fwriting (Files): Likewise.
32941
32942 2008-04-26  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32945         restore_seek_optimization, update_fpos_cache): New functions, extracted
32946         from rpl_fflush.
32947         (rpl_fflush): Use them.
32948         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32949         (gl_REPLACE_FFLUSH): Use it.
32950
32951 2008-04-26  Bruno Haible  <bruno@clisp.org>
32952
32953         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32954         on Solaris.
32955         * tests/test-xstrtoimax.sh: Likewise.
32956         * tests/test-xstrtoumax.sh: Likewise.
32957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32958
32959 2008-04-26  Bruno Haible  <bruno@clisp.org>
32960
32961         * modules/memchr-tests: New file.
32962         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32963
32964 2008-04-26  Eric Blake  <ebb9@byu.net>
32965             Bruno Haible  <bruno@clisp.org>
32966
32967         * lib/memchr.c: Include intprops.h.
32968         (__memchr): Optimize parallel detection of matching bytes. Rename local
32969         variables. Add explanatory comments.
32970
32971 2008-04-26  Bruno Haible  <bruno@clisp.org>
32972
32973         Fix module 'memchr', broken since 2000-10-28.
32974         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32975
32976 2008-04-26  Bruno Haible  <bruno@clisp.org>
32977
32978         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
32979         comments.
32980
32981 2008-04-25  Eric Blake  <ebb9@byu.net>
32982
32983         Use native fstatat on cygwin 1.7.0.
32984         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32985         first.
32986
32987 2008-04-23  Eric Blake  <ebb9@byu.net>
32988
32989         Improve memchr2 performance.
32990         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32991         NUL bytes.
32992         * modules/memchr2 (Depends-on): Use intprops.h.
32993
32994 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32995
32996         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32997         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32998         <blp@cs.stanford.edu>.
32999
33000 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33001
33002         * lib/arpa_inet.in.h: New file.
33003
33004         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
33005         (Makefile.am): Sed in substitute header file.
33006
33007         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
33008         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
33009
33010         * modules/inet_ntop (configure.ac): Use
33011         gl_ARPA_INET_MODULE_INDICATOR.
33012
33013         * modules/inet_pton (configure.ac): Use
33014         gl_ARPA_INET_MODULE_INDICATOR.
33015
33016 2008-04-22  Jim Meyering  <meyering@redhat.com>
33017
33018         * modules/verify (License): Re-license as LGPLv2+.
33019
33020 2008-04-22  Simon Josefsson  <simon@josefsson.org>
33021
33022         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
33023         parameter to void* as per POSIX standard (MinGW uses char*).
33024
33025 2008-04-21  Bruno Haible  <bruno@clisp.org>
33026
33027         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33028         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33029         Define to replacements if REPLACE_ISWCNTRL is 1.
33030         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
33031         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
33032         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
33033         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
33034         what it fixes.
33035         * doc/posix-functions/iswalpha.texi: Likewise.
33036         * doc/posix-functions/iswblank.texi: Likewise.
33037         * doc/posix-functions/iswcntrl.texi: Likewise.
33038         * doc/posix-functions/iswdigit.texi: Likewise.
33039         * doc/posix-functions/iswgraph.texi: Likewise.
33040         * doc/posix-functions/iswlower.texi: Likewise.
33041         * doc/posix-functions/iswprint.texi: Likewise.
33042         * doc/posix-functions/iswpunct.texi: Likewise.
33043         * doc/posix-functions/iswspace.texi: Likewise.
33044         * doc/posix-functions/iswupper.texi: Likewise.
33045         * doc/posix-functions/iswxdigit.texi: Likewise.
33046         Reported by Alain Guibert.
33047
33048 2008-04-21  Bruno Haible  <bruno@clisp.org>
33049
33050         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
33051         Patch by Alain Guibert.
33052
33053 2008-04-21  Bruno Haible  <bruno@clisp.org>
33054
33055         Fix test failures on mingw.
33056         * tests/test-xstrtol.c (print_no_progname): New function.
33057         (main): Install it in error_print_progname hook.
33058         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
33059         * tests/test-xstrtoimax.sh: Likewise.
33060         * tests/test-xstrtoumax.sh: Likewise.
33061
33062 2008-04-21  Bruno Haible  <bruno@clisp.org>
33063
33064         Fix test failure on mingw.
33065         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
33066
33067 2008-04-21  Bruno Haible  <bruno@clisp.org>
33068
33069         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
33070         Actually assign a value.
33071
33072 2008-04-20  Bruno Haible  <bruno@clisp.org>
33073
33074         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
33075         take 2.
33076         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33077         'canonicalize-lgpl' module is also used.
33078         * lib/canonicalize-lgpl.c: Undo last change.
33079         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33080
33081 2008-04-20  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33084         config.h. Provide _mkdir based fallback for mingw.
33085         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33086         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33087         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33088         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33089         rather than defining mkdir in config.h.
33090         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33091         (gl_SYS_STAT_H_DEFAULTS): New macro.
33092         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33093         HAVE_IO_H any more.
33094         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33095         HAVE_DECL_MKDIR and HAVE_IO_H.
33096
33097 2008-04-20  Bruno Haible  <bruno@clisp.org>
33098
33099         * lib/isapipe.c: Port to native Windows platforms.
33100
33101 2008-04-20  Bruno Haible  <bruno@clisp.org>
33102
33103         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33104
33105 2008-04-21  Eric Blake  <ebb9@byu.net>
33106
33107         Work around preprocessors that don't handle UINTMAX_MAX.
33108         * lib/memchr2.c (memchr2): Avoid embedded #if.
33109         Reported by Alain Guibert, fix suggested by Bruno Haible.
33110
33111 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33112
33113         * doc/posix-functions/strftime.texi (strftime): Explain better
33114         Windows incompatibility.  Suggested by Micah Cowan
33115         <micah@cowan.name>.
33116
33117 2008-04-20  Bruno Haible  <bruno@clisp.org>
33118
33119         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33120         unistr/u8-mblen.
33121
33122 2008-04-20  Bruno Haible  <bruno@clisp.org>
33123
33124         Fix test failure on platforms with non-GNU iconv.
33125         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33126         (U_TO_U8): Use it, rather than u16_to_u8.
33127         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33128         units at the end of the input string.
33129         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33130
33131 2008-04-20  Bruno Haible  <bruno@clisp.org>
33132
33133         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33134         when the resulting length is 0.
33135         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33136
33137 2008-04-20  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33140         works.
33141         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33142
33143 2008-04-20  Bruno Haible  <bruno@clisp.org>
33144
33145         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33146         * modules/tsearch-tests (configure.ac): Test for initstate function.
33147
33148 2008-04-20  Bruno Haible  <bruno@clisp.org>
33149
33150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33151         for nlink_t if missing.
33152         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33153
33154 2008-04-19  Bruno Haible  <bruno@clisp.org>
33155
33156         Work around snprintf bug on Linux libc5.
33157         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33159         gl_SNPRINTF_SIZE1.
33160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33161         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33162         that test failed.
33163         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33164         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33165         * modules/snprintf (Files): Add m4/printf.m4.
33166         * modules/vsnprintf (Files): Likewise.
33167         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33168         * doc/posix-functions/vsnprintf.texi: Likewise.
33169
33170 2008-04-19  Bruno Haible  <bruno@clisp.org>
33171
33172         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33173         from 0.0058 to less than 10^-7.
33174
33175 2008-04-19  Bruno Haible  <bruno@clisp.org>
33176
33177         Fix rounding when a precision is given.
33178         * lib/vasnprintf.c (is_borderline): New function.
33179         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33180         9...9x.
33181         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33182         %e, %g.
33183         * tests/test-vasprintf-posix.c (test_function): Likewise.
33184         * tests/test-snprintf-posix.h (test_function): Likewise.
33185         * tests/test-sprintf-posix.h (test_function): Likewise.
33186         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33187         * tests/test-printf-posix.h (test_function): Likewise.
33188         * tests/test-printf-posix.output: Update.
33189         Reported by John Darrington <john@darrington.wattle.id.au> via
33190         Ben Pfaff <blp@cs.stanford.edu>.
33191
33192 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33193
33194         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33195         Suggested by Bruno Haible <bruno@clisp.org>.
33196
33197 2008-04-17  Bruno Haible  <bruno@clisp.org>
33198
33199         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33200         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33201         implementation.
33202         Patch by Bruce Merry <bmerry@gmail.com>.
33203
33204 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33205
33206         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33207         doesn't work under Windows.
33208
33209 2008-04-16  Bruno Haible  <bruno@clisp.org>
33210
33211         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33212         New macros.
33213         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33214         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33215         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33216         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33217         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33218         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33219         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33220         macros.
33221         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33222         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33223         Northern Sotho, Uighur.
33224
33225 2008-04-16  Bruno Haible  <bruno@clisp.org>
33226
33227         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33228         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33229         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33230         Reported by Daniel Bergström <daniel@octocode.com>.
33231
33232 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33233             Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33236         function.
33237         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33238         New functions, mostly extracted from gl_locale_name_default.
33239         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33240
33241 2008-04-16  Eric Blake  <ebb9@byu.net>
33242
33243         Adjust strtod detection to catch glibc 2.7 bug.
33244         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33245         Reported by John Gatewood Ham.
33246
33247 2008-04-16  Bruno Haible  <bruno@clisp.org>
33248
33249         Add tentative support for Linux libc5.
33250         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33251         * lib/fpurge.c (fpurge): Likewise.
33252         * lib/freadable.c (freadable): Likewise.
33253         * lib/freadahead.c (freadahead): Likewise.
33254         * lib/freading.c (freading): Likewise.
33255         * lib/freadptr.c (freadptr): Likewise.
33256         * lib/freadseek.c (freadptrinc): Likewise.
33257         * lib/fseeko.c (rpl_fseeko): Likewise.
33258         * lib/fseterr.c (fseterr): Likewise.
33259         * lib/fwritable.c (fwritable): Likewise.
33260         * lib/fwriting.c (fwriting): Likewise.
33261         Reported by Alain Guibert <alguibert+bts@free.fr>.
33262
33263 2008-04-15  Bruno Haible  <bruno@clisp.org>
33264
33265         * modules/mathl (configure.ac): Define module indicator.
33266
33267 2008-04-15  Bruno Haible  <bruno@clisp.org>
33268
33269         * lib/logl.c (logl): Remove unused variables.
33270
33271 2008-04-15  Bruno Haible  <bruno@clisp.org>
33272
33273         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33274         fails.
33275
33276 2008-04-15  Bruno Haible  <bruno@clisp.org>
33277
33278         * lib/trim.c (trim2): Fix argument of isspace() macro.
33279
33280 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33281
33282         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33283         to 0.
33284         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33285
33286 2008-04-14  Bruno Haible  <bruno@clisp.org>
33287
33288         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33289         AC_LANG_PROGRAM argument.
33290         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33291         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33293         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33294         * m4/math_h.m4 (gl_MATH_H): Likewise.
33295         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33296         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33297         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33298         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33299         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33300         * m4/regex.m4 (gl_REGEX): Likewise.
33301         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33302         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33304         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33305         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33306         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33309
33310 2008-04-14  Jim Meyering  <meyering@redhat.com>
33311
33312         test-strtod: fix typos: s/abs/fabs/
33313         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33314
33315 2008-04-13  Bruno Haible  <bruno@clisp.org>
33316
33317         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33318         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33319         module is also used and while not building the reloc-wrapper.
33320
33321 2008-04-13  Bruno Haible  <bruno@clisp.org>
33322
33323         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33324
33325 2008-04-13  Bruno Haible  <bruno@clisp.org>
33326
33327         Fix AIX compilation failure introduced on 2008-04-02.
33328         * tests/test-frexp.c (exp): Undefine before redefining.
33329         * tests/test-frexpl.c (exp): Likewise.
33330
33331 2008-04-13  Bruno Haible  <bruno@clisp.org>
33332
33333         Work around a HP-UX stdio bug.
33334         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33335         * tests/test-ftello.c (main): Likewise.
33336         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33337         * doc/posix-functions/ftello.texi: Likewise.
33338
33339 2008-04-13  Bruno Haible  <bruno@clisp.org>
33340
33341         Make test-signbit pass on HP-UX/hppa.
33342         * tests/test-signbit.c (minus_zerol): New variable.
33343         (test_signbitl): Use it.
33344
33345 2008-04-13  Bruno Haible  <bruno@clisp.org>
33346
33347         Make truncl work on OSF/1 4.0.
33348         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33349         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33350         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33352         HAVE_DECL_TRUNCL.
33353         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33354         HAVE_DECL_TRUNCL.
33355         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33356
33357 2008-04-13  Bruno Haible  <bruno@clisp.org>
33358
33359         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33360
33361 2008-04-13  Bruno Haible  <bruno@clisp.org>
33362
33363         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33364         expression, so as to avoid HP-UX 11 cc compiler bug.
33365
33366 2008-04-13  Bruno Haible  <bruno@clisp.org>
33367
33368         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33369
33370 2008-04-13  Bruno Haible  <bruno@clisp.org>
33371
33372         * lib/git-merge-changelog.c: Remove empty declaration outside of
33373         functions.
33374
33375 2008-04-13  Bruno Haible  <bruno@clisp.org>
33376
33377         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33378
33379 2008-04-13  Bruno Haible  <bruno@clisp.org>
33380
33381         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33382         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33383         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33384         also if it exists but lacks definitions of the SHUT_* macros.
33385         * modules/sys_socket (Description): Update.
33386         Reported by Elbert Pol <e.pol@chello.nl>.
33387
33388 2008-04-13  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/localcharset.c (OS2): Don't redefine if already defined.
33391         Reported by Elbert Pol <e.pol@chello.nl>.
33392
33393 2008-04-13  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/binary-io.h [__EMX__]: Include <io.h>.
33396         Reported by Elbert Pol <e.pol@chello.nl>.
33397
33398 2008-04-12  Bruno Haible  <bruno@clisp.org>
33399
33400         * lib/fpucw.h: Enable the definitions also for x86_64.
33401         Needed for NetBSD/x86_64.
33402         Reported by Thomas Klausner <tk@giga.or.at>.
33403
33404 2008-04-12  Bruno Haible  <bruno@clisp.org>
33405
33406         * tests/test-strtod.c: Include isnand.h.
33407         (main): Use isnand instead of isnan.
33408         Reported by Jim Meyering.
33409
33410 2008-04-12  Bruno Haible  <bruno@clisp.org>
33411
33412         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33413         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33414
33415 2008-04-12  Jim Meyering  <meyering@redhat.com>
33416
33417         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33418
33419 2008-04-12  Bruno Haible  <bruno@clisp.org>
33420
33421         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33422         Reported by Elbert Pol <e.pol@chello.nl>.
33423
33424 2008-04-12  Eric Blake  <ebb9@byu.net>
33425
33426         Work around Solaris 10 math.h bug.
33427         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33428         (gl_MATH_H_DEFAULTS): Set up default.
33429         * modules/math (Makefile.am): Replace new indicators.
33430         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33431         * tests/test-math.c (main): Test this.
33432         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33433         * doc/posix-headers/math.texi (math.h): Mention bug.
33434         Reported by Nelson H. F. Beebe and Jim Meyering.
33435
33436 2008-04-11  Bruno Haible  <bruno@clisp.org>
33437
33438         Adapt to future versions of Apple GCC.
33439         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33440         Reported by Peter O'Gorman <peter@pogma.com>.
33441
33442 2008-04-11  Bruno Haible  <bruno@clisp.org>
33443
33444         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33445
33446 2008-04-11  Bruno Haible  <bruno@clisp.org>
33447
33448         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33449
33450         * modules/getaddrinfo-tests (Makefile.am): Define
33451         test_getaddrinfo_LDADD.
33452
33453 2008-04-11  Bruno Haible  <bruno@clisp.org>
33454
33455         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33456         (init): Fix syntax error.
33457         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33458         is declared.
33459
33460 2008-04-11  Bruno Haible  <bruno@clisp.org>
33461
33462         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33463         * modules/glob (Depends-on): Add stdbool.
33464
33465 2008-04-11  Bruno Haible  <bruno@clisp.org>
33466
33467         * lib/trim.c: Include <string.h>.
33468
33469 2008-04-11  Eric Blake  <ebb9@byu.net>
33470
33471         Avoid compile failure on OS/2.
33472         * lib/regex_internal.h (internal_function): Disable optimization
33473         on OS/2 (__EMX__), where it caused compiler error.
33474         Reported by Elbert Pol.
33475
33476 2008-04-11  Bruno Haible  <bruno@clisp.org>
33477
33478         Flush the standard error stream before aborting. Needed on mingw.
33479         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33480         * tests/test-array_list.c (ASSERT): Likewise.
33481         * tests/test-array_oset.c (ASSERT): Likewise.
33482         * tests/test-avltree_list.c (ASSERT): Likewise.
33483         * tests/test-avltree_oset.c (ASSERT): Likewise.
33484         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33485         * tests/test-binary-io.c (ASSERT): Likewise.
33486         * tests/test-byteswap.c (ASSERT): Likewise.
33487         * tests/test-c-ctype.c (ASSERT): Likewise.
33488         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33489         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33490         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33491         * tests/test-c-strstr.c (ASSERT): Likewise.
33492         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33493         * tests/test-canonicalize.c (ASSERT): Likewise.
33494         * tests/test-carray_list.c (ASSERT): Likewise.
33495         * tests/test-ceilf1.c (ASSERT): Likewise.
33496         * tests/test-ceilf2.c (ASSERT): Likewise.
33497         * tests/test-ceill.c (ASSERT): Likewise.
33498         * tests/test-count-one-bits.c (ASSERT): Likewise.
33499         * tests/test-fbufmode.c (ASSERT): Likewise.
33500         * tests/test-fflush2.c (ASSERT): Likewise.
33501         * tests/test-floorf1.c (ASSERT): Likewise.
33502         * tests/test-floorf2.c (ASSERT): Likewise.
33503         * tests/test-floorl.c (ASSERT): Likewise.
33504         * tests/test-fopen.c (ASSERT): Likewise.
33505         * tests/test-fpending.c (ASSERT): Likewise.
33506         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33507         * tests/test-fpurge.c (ASSERT): Likewise.
33508         * tests/test-freadable.c (ASSERT): Likewise.
33509         * tests/test-freadahead.c (ASSERT): Likewise.
33510         * tests/test-freading.c (ASSERT): Likewise.
33511         * tests/test-freadptr.c (ASSERT): Likewise.
33512         * tests/test-freadptr2.c (ASSERT): Likewise.
33513         * tests/test-freadseek.c (ASSERT): Likewise.
33514         * tests/test-freopen.c (ASSERT): Likewise.
33515         * tests/test-frexp.c (ASSERT): Likewise.
33516         * tests/test-frexpl.c (ASSERT): Likewise.
33517         * tests/test-fseek.c (ASSERT): Likewise.
33518         * tests/test-fseeko.c (ASSERT): Likewise.
33519         * tests/test-fstrcmp.c (ASSERT): Likewise.
33520         * tests/test-ftell.c (ASSERT): Likewise.
33521         * tests/test-ftello.c (ASSERT): Likewise.
33522         * tests/test-func.c (ASSERT): Likewise.
33523         * tests/test-fwritable.c (ASSERT): Likewise.
33524         * tests/test-fwriting.c (ASSERT): Likewise.
33525         * tests/test-getdelim.c (ASSERT): Likewise.
33526         * tests/test-getline.c (ASSERT): Likewise.
33527         * tests/test-i-ring.c (ASSERT): Likewise.
33528         * tests/test-iconv-utf.c (ASSERT): Likewise.
33529         * tests/test-iconv.c (ASSERT): Likewise.
33530         * tests/test-isfinite.c (ASSERT): Likewise.
33531         * tests/test-isnand.c (ASSERT): Likewise.
33532         * tests/test-isnanf.c (ASSERT): Likewise.
33533         * tests/test-isnanl.h (ASSERT): Likewise.
33534         * tests/test-ldexpl.c (ASSERT): Likewise.
33535         * tests/test-linked_list.c (ASSERT): Likewise.
33536         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33537         * tests/test-localename.c (ASSERT): Likewise.
33538         * tests/test-lseek.c (ASSERT): Likewise.
33539         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33540         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33541         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33542         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33543         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33544         * tests/test-mbschr.c (ASSERT): Likewise.
33545         * tests/test-mbscspn.c (ASSERT): Likewise.
33546         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33547         * tests/test-mbspbrk.c (ASSERT): Likewise.
33548         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33549         * tests/test-mbsrchr.c (ASSERT): Likewise.
33550         * tests/test-mbsspn.c (ASSERT): Likewise.
33551         * tests/test-mbsstr1.c (ASSERT): Likewise.
33552         * tests/test-mbsstr2.c (ASSERT): Likewise.
33553         * tests/test-mbsstr3.c (ASSERT): Likewise.
33554         * tests/test-memchr2.c (ASSERT): Likewise.
33555         * tests/test-memmem.c (ASSERT): Likewise.
33556         * tests/test-open.c (ASSERT): Likewise.
33557         * tests/test-printf-frexp.c (ASSERT): Likewise.
33558         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33559         * tests/test-printf-posix.c (ASSERT): Likewise.
33560         * tests/test-quotearg.c (ASSERT): Likewise.
33561         * tests/test-rbtree_list.c (ASSERT): Likewise.
33562         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33563         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33564         * tests/test-round1.c (ASSERT): Likewise.
33565         * tests/test-roundf1.c (ASSERT): Likewise.
33566         * tests/test-roundl.c (ASSERT): Likewise.
33567         * tests/test-signbit.c (ASSERT): Likewise.
33568         * tests/test-sleep.c (ASSERT): Likewise.
33569         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33570         * tests/test-snprintf.c (ASSERT): Likewise.
33571         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33572         * tests/test-stat-time.c (ASSERT): Likewise.
33573         * tests/test-strcasestr.c (ASSERT): Likewise.
33574         * tests/test-strerror.c (ASSERT): Likewise.
33575         * tests/test-striconv.c (ASSERT): Likewise.
33576         * tests/test-striconveh.c (ASSERT): Likewise.
33577         * tests/test-striconveha.c (ASSERT): Likewise.
33578         * tests/test-strsignal.c (ASSERT): Likewise.
33579         * tests/test-strstr.c (ASSERT): Likewise.
33580         * tests/test-strtod.c (ASSERT): Likewise.
33581         * tests/test-trunc1.c (ASSERT): Likewise.
33582         * tests/test-trunc2.c (ASSERT): Likewise.
33583         * tests/test-truncf1.c (ASSERT): Likewise.
33584         * tests/test-truncf2.c (ASSERT): Likewise.
33585         * tests/test-truncl.c (ASSERT): Likewise.
33586         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33587         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33588         * tests/test-vasnprintf.c (ASSERT): Likewise.
33589         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33590         * tests/test-vasprintf.c (ASSERT): Likewise.
33591         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33592         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33593         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33594         * tests/test-vsnprintf.c (ASSERT): Likewise.
33595         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33596         * tests/test-wcwidth.c (ASSERT): Likewise.
33597         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33598         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33599         * tests/test-xvasprintf.c (ASSERT): Likewise.
33600         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33601         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33602         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33603         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33604         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33605         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33606         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33607         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33608         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33609         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33610         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33611         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33612         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33613         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33614         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33615         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33616         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33617         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33618         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33619         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33620         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33621         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33622         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33623         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33624         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33625         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33626         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33627         * tests/unictype/test-combining.c (ASSERT): Likewise.
33628         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33629         * tests/unictype/test-digit.c (ASSERT): Likewise.
33630         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33631         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33632         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33633         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33634         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33635         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33636         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33637         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33638         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33639         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33640         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33641         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33642         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33643         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33644         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33645         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33646         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33647         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33648         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33649         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33650         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33651         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33652         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33653         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33654         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33655         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33656         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33657         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33658         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33659         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33660         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33661         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33662         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33663         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33664         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33665         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33666         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33667         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33668         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33669         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33670         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33671         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33672         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33673         Reported by Eric Blake.
33674
33675 2008-04-11  Bruno Haible  <bruno@clisp.org>
33676
33677         * lib/wchar.in.h: Tweak comment.
33678
33679 2008-04-11  Bruno Haible  <bruno@clisp.org>
33680
33681         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33682         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33683         gl_COMMON.
33684         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33685
33686 2008-04-11  Bruno Haible  <bruno@clisp.org>
33687
33688         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33689
33690 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33691
33692         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33693         of attempting to use non-existing /dev/*random.  Based on patch
33694         from Adam Strzelecki <ono@java.pl> in
33695         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33696
33697 2008-04-08  Bruno Haible  <bruno@clisp.org>
33698
33699         Add tentative support for emx+gcc.
33700         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33701         * lib/fpurge.c (fpurge): Likewise.
33702         * lib/freadable.c (freadable): Likewise.
33703         * lib/freadahead.c (freadahead): Likewise.
33704         * lib/freading.c (freading): Likewise.
33705         * lib/freadptr.c (freadptr): Likewise.
33706         * lib/freadseek.c (freadptrinc): Likewise.
33707         * lib/fseeko.c (rpl_fseeko): Likewise.
33708         * lib/fseterr.c (fseterr): Likewise.
33709         * lib/fwritable.c (fwritable): Likewise.
33710         * lib/fwriting.c (fwriting): Likewise.
33711         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33712
33713 2008-04-09  Eric Blake  <ebb9@byu.net>
33714
33715         Avoid some autoconf warnings.
33716         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33717         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33718         * m4/afs.m4 (gl_AFS): Likewise.
33719         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33720         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33721         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33722         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33723         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33724         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33725         (AC_CHECK_DECLS_ONCE): Likewise.
33726         Rename file...
33727         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33728         gnulib-tool requires autoconf 2.59 or better.
33729         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33730
33731 2008-04-08  Eric Blake  <ebb9@byu.net>
33732
33733         Use 'git describe --match' if present (added in git 1.5.5).
33734         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33735         if possible.
33736
33737 2008-04-08  Bruno Haible  <bruno@clisp.org>
33738
33739         Add tentative support for OpenServer.
33740         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33741         _ptr, _cnt.
33742         * lib/fpurge.c (fpurge): Likewise.
33743         * lib/freadable.c (freadable): Likewise.
33744         * lib/freadahead.c (freadahead): Likewise.
33745         * lib/freading.c (freading): Likewise.
33746         * lib/freadptr.c (freadptr): Likewise.
33747         * lib/freadseek.c (freadptrinc): Likewise.
33748         * lib/fseeko.c (rpl_fseeko): Likewise.
33749         * lib/fseterr.c (fseterr): Likewise.
33750         * lib/fwritable.c (fwritable): Likewise.
33751         * lib/fwriting.c (fwriting): Likewise.
33752         Reported by Roger Cornelius <rac@tenzing.org> and
33753         Brian K. White <brian@aljex.com>.
33754
33755 2008-04-06  Jim Meyering  <meyering@redhat.com>
33756
33757         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33758
33759 2008-04-06  Bruno Haible  <bruno@clisp.org>
33760
33761         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33762         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33763         * tests/test-printf-posix.sh: Likewise.
33764         * tests/test-vfprintf-posix.sh: Likewise.
33765         * tests/test-vprintf-posix.sh: Likewise.
33766         * tests/test-xprintf-posix.sh: Likewise.
33767
33768 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33769
33770         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33771         hide error from 'ls', needed on OS/2.
33772         Report by Elbert Pol <elbert.pol@gmail.com>.
33773
33774 2008-04-04  Eric Blake  <ebb9@byu.net>
33775
33776         Make test-fseeko.c failures meaningful.
33777         * tests/test-fseeko.c: Print line number on failure.
33778         * tests/test-fseek.c: Likewise.
33779         Reported by Nelson H. F. Beebe.
33780
33781         Improve strtod bug detection check.
33782         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33783         required for Solaris 10.
33784         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33785
33786 2008-04-04  Bruno Haible  <bruno@clisp.org>
33787
33788         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33789         by m4/setenv.m4.
33790
33791 2008-04-03  Eric Blake  <ebb9@byu.net>
33792
33793         Ensure sane .version contents.
33794         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33795         version string.
33796         * build-aux/git-version-gen: Improve documentation.
33797
33798         Make GNU make output nicer.
33799         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33800         MAKECMDGOALS to enforce message for all command line targets.  Set
33801         srcdir for use in maint.mk.
33802
33803         Another maintainer tweak.
33804         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33805         a target that regenerates version.
33806
33807 2008-04-03  Jim Meyering  <meyering@redhat.com>
33808
33809         vc-list-files: don't cause coreutils "make po-check" failure
33810         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33811
33812 2008-04-03  Eric Blake  <ebb9@byu.net>
33813
33814         Allow VPATH usage of vc-list-files.
33815         * build-aux/vc-list-files (scriptversion): Add timestamp.
33816         (options): Add --help, --version, -C.
33817         (CVS): Support installed cvsu.
33818
33819 2008-04-02  Bruno Haible  <bruno@clisp.org>
33820
33821         Avoid some "statement with no effect" warnings from gcc.
33822         * tests/test-wctype.c (main): Explicitly ignore unused values.
33823         Reported by Jim Meyering.
33824
33825 2008-04-02  Jim Meyering  <meyering@redhat.com>
33826
33827         Avoid some warnings from "gcc -Wshadow".
33828         * tests/test-frexp.c (exp): Define to a different identifier.
33829         * tests/test-frexpl.c (exp): Likewise.
33830
33831 2008-04-03  Jim Meyering  <meyering@redhat.com>
33832
33833         bootstrap: remove dangling *.[ch] symlinks from lib
33834         * build-aux/bootstrap [dangling symlink removal]: Move find's
33835         -depth option to precede all others, to avoid a warning.
33836         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33837
33838 2008-04-02  Bruno Haible  <bruno@clisp.org>
33839
33840         Avoid some warnings from "gcc -Wshadow".
33841         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33842         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33843         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33844         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33845         Reported by Jim Meyering.
33846
33847 2008-04-01  Bruno Haible  <bruno@clisp.org>
33848
33849         Fix test to work on IRIX 6.5 with cc.
33850         * tests/test-math.c (numeric_equal): New function.
33851         (main): Use it.
33852
33853 2008-04-01  Bruno Haible  <bruno@clisp.org>
33854
33855         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33856
33857 2008-04-01  Bruno Haible  <bruno@clisp.org>
33858
33859         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33860         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33861         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33862         (Depends-on): Remove math.
33863
33864         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33865         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33866         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33867         (Depends-on): Remove math.
33868
33869         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33870         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33871         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33872         (Depends-on): Remove math.
33873         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33874         (Depends-on): Remove math.
33875
33876         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33877         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33878         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33879         (Depends-on): Remove math.
33880         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33881         (Depends-on): Remove math.
33882
33883         * tests/test-round1.c: Include nan.h.
33884         (main): Use NaNd instead of NAN.
33885         * modules/round-tests (Files): Add tests/nan.h.
33886
33887         * tests/test-trunc1.c: Include nan.h.
33888         (main): Use NaNd instead of NAN.
33889         * modules/trunc-tests (Files): Add tests/nan.h.
33890
33891         * tests/test-roundf1.c: Include nan.h.
33892         (main): Use NaNf instead of NAN.
33893         * modules/roundf-tests (Files): Add tests/nan.h.
33894
33895         * tests/test-truncf1.c: Include nan.h.
33896         (main): Use NaNf instead of NAN.
33897         * modules/truncf-tests (Files): Add tests/nan.h.
33898
33899         * tests/test-ceilf1.c: Include nan.h.
33900         (main): Use NaNf instead of NAN.
33901         * modules/ceilf-tests (Files): Add tests/nan.h.
33902
33903         * tests/test-floorf1.c: Include nan.h.
33904         (main): Use NaNf instead of NAN.
33905         * modules/floorf-tests (Files): Add tests/nan.h.
33906
33907         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33908         (main): Use NaNf instead of NAN.
33909         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33910
33911         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33912         (main): Use NaNd instead of NAN.
33913         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33914
33915         * tests/test-frexp.c: Include nan.h.
33916         (main): Use NaNd instead of NAN.
33917         * modules/frexp-tests (Files): Add tests/nan.h.
33918
33919         * lib/isnan.c: Don't include <math.h>.
33920         (FUNC): Don't use NAN macro.
33921         * modules/isnand-nolibm (Depends-on): Remove math.
33922         * modules/isnanf-nolibm (Depends-on): Remove math.
33923         * modules/isnanl (Depends-on): Remove math.
33924         * modules/isnanl-nolibm (Depends-on): Remove math.
33925
33926         * tests/nan.h: New file.
33927
33928 2008-04-01  Eric Blake  <ebb9@byu.net>
33929
33930         Fix typos.
33931         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33932         values to be the right type.
33933
33934         For now, cater to gnulib strtod inaccuracies.
33935         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33936         fractional results.  While not as nice from a QoI perspective, it
33937         is a quicker patch than correctly implementing decimal to binary
33938         rounding.
33939
33940 2008-03-31  Eric Blake  <ebb9@byu.net>
33941
33942         Guarantee a definition of NAN.
33943         * lib/math.in.h (NAN): Define if missing.
33944         * tests/test-math.c (main): Test it.
33945         * doc/posix-headers/math.texi (math.h): Document this.
33946         * lib/isnan.c (rpl_isnand): Use it.
33947         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33948         * tests/test-floorf1.c (NaN): Likewise.
33949         * tests/test-frexp.c (NaN): Likewise.
33950         * tests/test-isnand.c (NaN): Likewise.
33951         * tests/test-isnanf.c (NaN): Likewise.
33952         * tests/test-round1.c (NaN): Likewise.
33953         * tests/test-roundf1.c (NaN): Likewise.
33954         * tests/test-snprintf-posix.h (NaN): Likewise.
33955         * tests/test-sprintf-posix.h (NaN): Likewise.
33956         * tests/test-trunc1.c (NaN): Likewise.
33957         * tests/test-truncf1.c (NaN): Likewise.
33958         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33959         * tests/test-vasprintf-posix.c (NaN): Likewise.
33960         * modules/isnand-nolibm (Depends-on): Add math.
33961         * modules/isnanf-nolibm (Depends-on): Likewise.
33962         * modules/isnanl (Depends-on): Likewise.
33963         * modules/isnanl-nolibm (Depends-on): Likewise.
33964         * modules/snprintf-posix-tests (Depends-on): Likewise.
33965         * modules/sprintf-posix-tests (Depends-on): Likewise.
33966         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33967         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33968         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33969         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33970
33971 2008-03-31  Bruno Haible  <bruno@clisp.org>
33972
33973         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33974         * doc/posix-functions/strtod.texi: Likewise.
33975
33976 2008-03-31  Bruno Haible  <bruno@clisp.org>
33977
33978         * tests/test-strtod.c (main): Don't use C99 syntax.
33979
33980 2008-03-31  Bruno Haible  <bruno@clisp.org>
33981
33982         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33983         Reported by Eric Blake.
33984
33985 2008-03-31  Jim Meyering  <meyering@redhat.com>
33986
33987         Don't compare actual signbit return values.
33988         * tests/test-strtod.c (main): Rather, compare only their
33989         zero/non-zero nature.
33990
33991 2008-03-31  Eric Blake  <ebb9@byu.net>
33992
33993         More strtod documentation.
33994         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33995         failures as distinct bugs.
33996
33997 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33998
33999         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
34000         Problem reported by Erik Benada in
34001         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
34002
34003 2008-03-30  Bruno Haible  <bruno@clisp.org>
34004
34005         * tests/test-strtod.c: Add comments about which assertion fails on which
34006         platform.
34007         * doc/posix-functions/strtod.texi: Add info about many more platforms.
34008
34009 2008-03-30  Eric Blake  <ebb9@byu.net>
34010
34011         Test signbit behavior on zeros.
34012         * tests/test-signbit.c (test_signbitf): Add tests for zero.
34013         (test_signbitd, test_signbitl): Likewise.
34014
34015         More strtod touchups.
34016         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
34017         sign of negative underflow, for now.  Use .5, not .1.
34018         * doc/posix-functions/strtod.texi (strtod): Mention these
34019         limitations.
34020         Reported by Jim Meyering.
34021
34022 2008-03-30  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
34025         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
34026
34027 2008-03-30  Bruno Haible  <bruno@clisp.org>
34028
34029         Avoid failure when attempting to return empty iconv results on some
34030         platforms.
34031         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
34032         allocation, don't report ENOMEM when the resulting string is empty.
34033
34034 2008-03-30  Bruno Haible  <bruno@clisp.org>
34035
34036         Fix buffer overrun.
34037         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
34038         Don't consider the width for tmp_length. Check count against tmp_length
34039         before doing the padding. Ensure enough allocation during padding.
34040
34041 2008-03-30  Eric Blake  <ebb9@byu.net>
34042
34043         strtod touchups.
34044         * lib/strtod.c (strtod): Avoid compiler warnings.
34045         Reported by Jim Meyering.
34046
34047 2008-03-30  Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
34050         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
34051         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
34052         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
34053         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
34054         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34055         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
34056         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
34057
34058         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
34059         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
34060         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
34061         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
34062         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
34063         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
34064         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
34065         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
34066
34067         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
34068         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
34069         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
34070         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
34071         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
34072         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
34073         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
34074         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
34075
34076         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34077         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34078
34079         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34080         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34081
34082         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34083         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34084
34085         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34086         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34087         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34088
34089         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34091         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34092
34093         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34095         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34096
34097         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34099         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34100
34101         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34102         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34104         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34105         (Depends-on): Add EOVERFLOW.
34106         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34107         (Depends-on): Add EOVERFLOW.
34108         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34109         (Depends-on): Add EOVERFLOW.
34110         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34111         (Depends-on): Add EOVERFLOW.
34112         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34113         (Depends-on): Add EOVERFLOW.
34114         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34115         (Depends-on): Add EOVERFLOW.
34116         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34117         (Depends-on): Add EOVERFLOW.
34118         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34119         (Depends-on): Add EOVERFLOW.
34120
34121         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34122         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34123         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34124
34125         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34127         * modules/snprintf (Depends-on): Add EOVERFLOW.
34128
34129         * lib/poll.c (EOVERFLOW): Remove fallback.
34130         * modules/poll (Depends-on): Add EOVERFLOW.
34131
34132         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34133         * modules/getugroups (Depends-on): Add EOVERFLOW.
34134
34135         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34136         * modules/getdelim (Depends-on): Add EOVERFLOW.
34137
34138         * lib/ftell.c (EOVERFLOW): Remove fallback.
34139         * modules/ftell (Depends-on): Add EOVERFLOW.
34140
34141         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34142         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34143         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34144
34145         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34146
34147         * modules/EOVERFLOW-tests: New file.
34148         * tests/test-EOVERFLOW.c: New file.
34149
34150         * modules/EOVERFLOW: New file.
34151         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34152
34153 2008-03-30  Bruno Haible  <bruno@clisp.org>
34154
34155         Fix bug introduced on 2007-06-10.
34156         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34157         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34158
34159 2008-03-30  Bruno Haible  <bruno@clisp.org>
34160
34161         Improve freadseek's efficiency after ungetc.
34162         * lib/freadseek.c: Include freadahead.h.
34163         (freadptrinc): New function, extracted from freadseek.
34164         (freadseek): Use it in a loop. Use freadahead to determine the number
34165         of loop iterations.
34166         * modules/freadseek (Depends-on): Add freadahead.
34167         (configure.ac): Require AC_C_INLINE.
34168
34169 2008-03-30  Bruno Haible  <bruno@clisp.org>
34170
34171         * lib/freadseek.c (freadseek): Don't ignore the return value of
34172         freadptr.
34173
34174 2008-03-29  Eric Blake  <ebb9@byu.net>
34175
34176         Add hex float support.
34177         * modules/strtod (Depends-on): Add c-ctype.
34178         (Link): Mention POW_LIB.
34179         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34180         whitespace between 'e' and exponent.
34181         * tests/test-strtod.c (main): Enable hex float tests.
34182         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34183         now provides.
34184
34185         Document various strtod bugs, with some fixes.
34186         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34187         "-0x", "inf", "nan", and hex constants.
34188         * doc/posix-functions/atof.texi (atof): Likewise.
34189         * modules/stdlib (Makefile.am): Support strtod.
34190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34191         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34192         detect additional strtod bugs.
34193         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34194         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34195         bool where appropriate.  Parse 'inf' and 'nan'.
34196         * tests/test-strtod.c: New file.
34197         * modules/strtod (Depends-on): Add stdbool, stdlib.
34198         (configure.ac): Turn on module indicator.
34199         * modules/strtod-tests: New module.
34200
34201 2008-03-29  Eric Blake  <ebb9@byu.net>
34202
34203         Fix ftell on mingw.
34204         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34205         * modules/ftell-tests (Depends-on): Add binary-io.
34206         * modules/ftello-tests (Depends-on): Likewise.
34207         * tests/test-ftell.c (main): Enhance test to cover behavior after
34208         ungetc.  Enforce binary mode.
34209         * tests/test-ftello.c (main): Likewise.
34210
34211         Pass test-freadseek on cygwin.
34212         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34213         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34214         ungetc buffer.
34215
34216         * tests/test-fflush2.c (main): Fix typo.
34217
34218 2008-03-29  Bruno Haible  <bruno@clisp.org>
34219
34220         * tests/test-fflush2.c (main): Temporarily disable the contents of
34221         this test.
34222         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34223         Reported by Eric Blake.
34224
34225 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34226
34227         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34228         (GC_SHA224_DIGEST_SIZE): Add.
34229
34230         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34231         (gc_hash_digest_length): Likewise.
34232         (gc_hash_buffer): Likewise.
34233
34234 2008-03-25  Bruno Haible  <bruno@clisp.org>
34235
34236         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34237         detail which gettext release to use.
34238         Reported by Simon Josefsson.
34239
34240 2008-03-26  Jim Meyering  <meyering@redhat.com>
34241
34242         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34243         * modules/gnumakefile (clean-GNUmakefile): Also, use
34244         test ... && ... || : syntax rather than if-then ... fi.
34245
34246         gnumakefile: Don't double-quote-expand $(VPATH) value.
34247         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34248
34249 2008-03-24  Eric Blake  <ebb9@byu.net>
34250
34251         Alter GNUmakefile to install into top directory.
34252         * modules/maintainer-makefile: Split, and add dependency...
34253         * modules/gnumakefile: to this new module.
34254         * build-aux/GNUmakefile: Move...
34255         * top/GNUmakefile: ...here.
34256         * build-aux/maint.mk: Move...
34257         * top/maint.mk: ...here.
34258         * MODULES.html.sh (Support for maintaining...): Document new
34259         module.
34260
34261 2008-03-23  Bruno Haible  <bruno@clisp.org>
34262
34263         * gnulib-tool: New options --vc-files, --no-vc-files.
34264         (func_usage): Document them.
34265         (vc_files): New variable.
34266         (func_import): Consider vc_files.
34267         (func_create_testdir): Set vc_files to empty.
34268         Suggested by Jim Meyering and Karl Berry.
34269
34270 2008-03-23  Bruno Haible  <bruno@clisp.org>
34271
34272         Fix regex compilation error on HP-UX 11.
34273         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34274         * modules/regex (Files): Add m4/mbstate_t.m4.
34275         Reported by Ton Voon <ton.voon@altinity.com>.
34276
34277 2008-03-23  Bruno Haible  <bruno@clisp.org>
34278
34279         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34280
34281 2008-03-23  Eric Blake  <ebb9@byu.net>
34282             Bruno Haible  <bruno@clisp.org>
34283
34284         Install files from top/ in the destination directory.
34285         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34286         augmentation also for the files from top/.
34287         (func_import, func_create_testdir): Rewrite file names:
34288         top/filename -> filename.
34289
34290 2008-03-23  Bruno Haible  <bruno@clisp.org>
34291
34292         Tweak "gnulib --version" output.
34293         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34294
34295 2008-03-23  Bruno Haible  <bruno@clisp.org>
34296
34297         Tweak "gnulib --version" output.
34298         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34299         rather than contents of ChangeLog, when possible.
34300
34301 2008-03-21  Eric Blake  <ebb9@byu.net>
34302
34303         More --version tweaks.
34304         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34305         date of last ChangeLog entry.
34306
34307 2008-03-21  Jim Meyering  <meyering@redhat.com>
34308
34309         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34310
34311 2008-03-20  Eric Blake  <ebb9@byu.net>
34312
34313         VPATH fix.
34314         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34315
34316 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34317
34318         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34319         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34320
34321 2008-03-20  Eric Blake  <ebb9@byu.net>
34322
34323         Sync GNUmakefile with coreutils.
34324         * build-aux/GNUmakefile (have-Makefile): Rename...
34325         (_have-Makefile): ...to this, for namespace consideration.
34326         (GNUmakefile.cfg): Include, if present.
34327         (_autoreconf): Define a default.
34328         (_is-dist-target): New rule for rebuilds to pick up intra-release
34329         version.
34330         (maint-cfg.mk): Rename...
34331         (cfg.mk): ...to this.
34332
34333 2008-03-18  Jim Meyering  <meyering@redhat.com>
34334
34335         New script and module: mktempd
34336         * MODULES.html.sh (maint+release support): Add mktempd.
34337         * build-aux/mktempd: New file.
34338         * modules/mktempd: New file.
34339
34340 2008-03-15  Jim Meyering  <meyering@redhat.com>
34341
34342         Undo last change.
34343         * lib/sha1.c, lib/md5.c: 63 != ~63.
34344         Reported by Andreas Schwab.
34345
34346         sha1.c, md5.c: Hoist a redundant expression.
34347         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34348         "ctx->buflen" only once, before calling *_process_block.
34349         * lib/md5.c (md5_process_bytes): Likewise.
34350
34351 2008-03-14  Eric Blake  <ebb9@byu.net>
34352
34353         Bump copyright year in files generated by gnulib-tool.
34354         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34355         gnulib-tool, rather than hard-coding it.
34356
34357         Fix 'gnulib-tool --version' output to work with git.
34358         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34359         (startup): ...here.
34360         (func_version): Use it to invoke git-version-gen, rather than
34361         relying on CVS keyword expansion.  Modernize wording.
34362         (cvsdatestamp, last_checkin_date, version): Kill unused
34363         variables.
34364
34365 2008-03-12  Jim Meyering  <meyering@redhat.com>
34366
34367         Recognize optional cast of the argument to free.
34368         * build-aux/useless-if-before-free: Update regexps.
34369
34370         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34371
34372 2008-03-11  Bruno Haible  <bruno@clisp.org>
34373
34374         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34375         by a single package.
34376         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34377         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34378         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34379         Reported by Sam Steingold <sds@gnu.org>.
34380
34381 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34382
34383         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34384         repositories.
34385
34386 2008-03-11  Bruno Haible  <bruno@clisp.org>
34387
34388         Avoid conflicts between local macro definitions.
34389         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34390         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34391
34392 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34393             Bruno Haible  <bruno@clisp.org>
34394
34395         Make va_copy work with some version of xlc on AIX 5.1.
34396         * lib/stdarg.in.h: New file.
34397         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34398         On AIX, use a <stdarg.h> file substitute.
34399         * modules/stdarg (Files): Add lib/stdarg.in.h.
34400         (Depends-on): Add include_next.
34401         (Makefile.am): Build a stdarg.h substitute if requested.
34402         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34403
34404 2008-03-10  Bruno Haible  <bruno@clisp.org>
34405
34406         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34407         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34408         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34409
34410 2008-03-10  Bruno Haible  <bruno@clisp.org>
34411
34412         * modules/stdlib (Depends-on): Add include_next, remove
34413         absolute-header.
34414
34415 2008-03-09  Bruno Haible  <bruno@clisp.org>
34416
34417         * lib/freadahead.h (freadahead): Document more precisely.
34418         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34419         the sum of both buffer sizes.
34420         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34421         * NEWS: Document the change.
34422
34423 2008-03-09  Bruno Haible  <bruno@clisp.org>
34424
34425         Extend freadptr to return also the buffer size.
34426         * lib/freadptr.h (freadptr): Add sizep argument.
34427         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34428         (freadptr): Add sizep argument. Determine buffer size like freadahead
34429         does.
34430         * tests/test-freadptr.c: Don't include freadahead.h.
34431         (main): Adapt for new calling convention of freadptr.
34432         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34433         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34434         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34435         tests/test-freadptr2.sh.
34436         (Depends): Remove freadahead.
34437         (TESTS): Add test-freadptr2.sh.
34438         (check_PROGRAMS): Add test-freadptr2.
34439
34440 2008-03-09  Bruno Haible  <bruno@clisp.org>
34441
34442         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34443         Report and solution by Simon Josefsson.
34444
34445 2008-03-06  Bruno Haible  <bruno@clisp.org>
34446
34447         Make fflush after ungetc work on BSD platforms.
34448         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34449         * tests/test-fflush2.c: New file.
34450         * tests/test-fflush2.sh: New file.
34451         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34452         tests/test-fflush2.c.
34453         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34454         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34455
34456 2008-03-06  Eric Blake  <ebb9@byu.net>
34457
34458         Likewise for ftello.
34459         * modules/ftello (Dependencies): Add extensions.
34460         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34461
34462 2008-03-06  Bruno Haible  <bruno@clisp.org>
34463
34464         * modules/fseeko (Dependencies): Add extensions.
34465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34466         Needed on glibc systems.
34467
34468 2008-03-06  Bruno Haible  <bruno@clisp.org>
34469
34470         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34471         email address.
34472         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34473
34474 2008-03-06  Bruno Haible  <bruno@clisp.org>
34475
34476         * users.txt: Add libgnupdf.
34477
34478 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34479
34480         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34481         (Header File Substitutes, Function Substitutes,
34482         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34483         (Build robot for gnulib): Fix typo.
34484
34485 2008-03-06  Bruno Haible  <bruno@clisp.org>
34486
34487         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34488         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34489
34490 2008-03-06  Bruno Haible  <bruno@clisp.org>
34491
34492         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34493         * doc/gnulib.texi: Include it.
34494
34495 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34496
34497         * modules/func (License): Change license to unlimited; there was
34498         no LGPL parts in the module anyway.
34499
34500 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34501
34502         * modules/__func__: Renamed to modules/func.
34503         * modules/__func__-tests: Renamed to modules/func-tests.
34504         * tests/test-__func__.c: Renamed to tests/test-func.c.
34505         * m4/__func__.m4: Renamed to m4/func.m4.
34506         * doc/gnulib.texi (__func__): Section renamed to func.
34507         Suggested by Eric Blake <ebb9@byu.net>.
34508
34509 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34510
34511         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34512         about __func__.  Make example self-contained.  Suggested by Eric
34513         Blake <ebb9@byu.net>.
34514
34515         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34516         Suggested by Eric Blake <ebb9@byu.net>.
34517
34518 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34519
34520         * modules/__func__: New file.
34521         * modules/__func__-tests: New file.
34522         * tests/test-__func__.c: New file.
34523         * m4/__func__.m4: New file.
34524         * doc/gnulib.texi (__func__): Document __func__ module.
34525
34526 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34527
34528         * modules/byteswap (License): Re-license as LGPLv2+.
34529
34530 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34531
34532         * doc/Makefile: Add pdf target.
34533
34534 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34535
34536         * modules/inline (License): Use 'unlimited', since there are only
34537         *.m4 files in this module.
34538
34539 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34540             Bruno Haible  <bruno@clisp.org>
34541
34542         Add support for HP C 7.1 on OpenVMS 8.3.
34543         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34544
34545 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34546
34547         Update VMS specifics.
34548         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34549
34550 2008-03-02  Jim Meyering  <meyering@redhat.com>
34551
34552         Remove the last dependency on the "free" module.
34553         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34554         Reported by Bob Proulx.
34555
34556         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34557
34558         Remove useless "if" tests before free.  Deprecate "free" module.
34559         * doc/posix-functions/free.texi: Mention that this
34560         module is no longer useful.
34561         * modules/free (Notice): Say this module is obsolete.
34562         * modules/readutmp (Depends-on): Remove free.
34563         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34564         * lib/putenv.c (putenv): Likewise.
34565         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34566         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34567         * tests/test-c-strcasestr.c (main): Likewise.
34568         * tests/test-c-strstr.c (main): Likewise.
34569         * tests/test-mbscasestr1.c (main): Likewise.
34570         * tests/test-mbscasestr2.c (main): Likewise.
34571         * tests/test-mbsstr1.c (main): Likewise.
34572         * tests/test-mbsstr2.c (main): Likewise.
34573         * tests/test-memmem.c (main): Likewise.
34574         * tests/test-strcasestr.c (main): Likewise.
34575         * tests/test-striconv.c (main): Likewise.
34576         * tests/test-striconveh.c (main): Likewise.
34577         * tests/test-striconveha.c (main): Likewise.
34578         * tests/test-strstr.c (main): Likewise.
34579
34580         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34581
34582         bootstrap: sync from coreutils again
34583         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34584
34585 2008-03-01  Jim Meyering  <meyering@redhat.com>
34586
34587         bootstrap: sync from coreutils
34588         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34589         also when the target doesn't exist.
34590
34591 2008-03-01  Eric Blake  <ebb9@byu.net>
34592
34593         Fix bugs in last patch.
34594         * lib/memchr2.c (memchr2): Fix typo.
34595         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34596         extension.
34597         Reported by Bruce Korb.
34598
34599         New module 'memchr2'.
34600         * modules/memchr2: New file.
34601         * modules/memchr2-tests: Likewise.
34602         * lib/memchr2.h: Likewise.
34603         * lib/memchr2.c: Likewise, based on memchr.c.
34604         * tests/test-memchr2.c: New test.
34605         * MODULES.html.sh (String handling): Add memchr2.
34606
34607 2008-02-29  Bruno Haible  <bruno@clisp.org>
34608
34609         * modules/freadseek-tests: New file.
34610         * tests/test-freadseek.sh: New file.
34611         * tests/test-freadseek.c: New file.
34612
34613         New module 'freadseek'.
34614         * modules/freadseek: New file.
34615         * lib/freadseek.h: New file.
34616         * lib/freadseek.c: New file.
34617         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34618
34619 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34620
34621         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34622         wydawca.
34623
34624         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34625         program_invocation_name and program_invocation_short_name are
34626         present.
34627
34628 2008-02-28  Bruno Haible  <bruno@clisp.org>
34629
34630         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34631         * tests/test-freadptr.sh: Also test non-seekable stdin.
34632
34633 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34634
34635         * build-aux/bootstrap (source_base, m4_base)
34636         (doc_base, tests_base): New variables.
34637         (gnulib_tool_options): Do not hardcode base directories, use
34638         the above variables instead.
34639
34640 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34641
34642         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34643
34644 2008-02-28  Bruno Haible  <bruno@clisp.org>
34645
34646         * modules/freadptr-tests: New file.
34647         * tests/test-freadptr.sh: New file.
34648         * tests/test-freadptr.c: New file.
34649
34650         New module 'freadptr'.
34651         * modules/freadptr: New file.
34652         * lib/freadptr.h: New file.
34653         * lib/freadptr.c: New file.
34654         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34655
34656 2008-02-26  Karl Berry  <karl@freefriends.org>
34657
34658         Sync from Libtool:
34659         * libltdl/argz.c (argz_add, argz_count): New functions.
34660         * libltdl/argz.in.h: Declare them.
34661         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34662
34663 2008-02-22  Bruno Haible  <bruno@clisp.org>
34664
34665         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34666         is a pointer type.  Needed for HP-UX 10.
34667         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34668         * doc/posix-functions/gmtime_r.texi: Likewise.
34669         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34670
34671 2008-02-24  Bruno Haible  <bruno@clisp.org>
34672
34673         * modules/environ-tests: New file.
34674         * tests/test-environ.c: New file.
34675
34676         New module 'environ'.
34677         * modules/environ: New file.
34678         * lib/unistd.in.h (environ): New declaration.
34679         * m4/environ.m4: New file.
34680         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34681         after use.
34682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34683         HAVE_DECL_ENVIRON.
34684         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34685         HAVE_DECL_ENVIRON.
34686         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34687         wrong claim that 'environ' is missing on some systems.
34688         * modules/execute (Depends-on): Add environ.
34689         * lib/execute.c (environ): Remove fallback declaration.
34690         * modules/pipe (Depends-on): Add environ.
34691         * lib/pipe.c (environ): Remove fallback declaration.
34692         * modules/setenv (Depends-on): Add environ.
34693         * lib/setenv.c (environ): Remove fallback declaration.
34694         * modules/unsetenv (Depends-on): Add environ.
34695         * lib/unsetenv.c (environ): Remove fallback declaration.
34696         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34697         m4/environ.m4.
34698         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34699         (gl_PREREQ_UNSETENV): Likewise.
34700
34701 2008-02-24  Bruno Haible  <bruno@clisp.org>
34702
34703         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34704
34705 2008-02-20  Bob Proulx  <bob@proulx.com>
34706
34707         Enable use of older two part flavor 'git describe'.
34708         * build-aux/git-version-gen: If using the older two part flavor of
34709         git version then recreate the third part now present in the
34710         newer three part flavor of git describe.
34711
34712 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34713
34714         * lib/fts.c (fts_build): Typo correction to comment.
34715
34716 2008-02-17  Bruno Haible  <bruno@clisp.org>
34717
34718         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34719         generating no-op conflicts.
34720
34721 2008-02-17  Bruno Haible  <bruno@clisp.org>
34722
34723         Speed up by 10%.
34724         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34725         result_entries, rather than an index-based loop.
34726
34727 2008-02-17  Bruno Haible  <bruno@clisp.org>
34728
34729         Speed up by 25%.
34730         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34731         'hashcode_cached'.
34732         (entry_create): New function.
34733         (entry_hashcode): Use the cached hashcode if possible.
34734         (read_changelog_file, try_split_merged_entry): Use entry_create.
34735
34736 2008-02-17  Bruno Haible  <bruno@clisp.org>
34737
34738         Speed up from O(n^2) to O(n) for long ChangeLog files.
34739         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34740         (read_changelog_file): Change implementation of entries_reversed list
34741         to rbtreehash.
34742         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34743
34744 2008-02-17  Bruno Haible  <bruno@clisp.org>
34745
34746         New option --split-merged-entry.
34747         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34748         (find_paragraph_end, try_split_merged_entry): New functions.
34749         (long_options): Add option --split-merged-entry.
34750         (usage): Document option --split-merged-entry.
34751         (main): Implement option --split-merged-entry.
34752         Reported by Eric Blake.
34753
34754 2008-02-17  Bruno Haible  <bruno@clisp.org>
34755
34756         * lib/git-merge-changelog.c: Include c-strstr.h.
34757         (main): Support the "git pull --rebase" situation.
34758         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34759         Reported by Eric Blake.
34760
34761 2008-02-16  Eric Blake  <ebb9@byu.net>
34762
34763         Avoid doubling \ in common case of "c-maybe" quoting style.
34764         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34765         eliding outer quotes.
34766         * lib/quotearg.h: Document this.
34767         * tests/test-quotearg.c (result_strings, inputs, results_g)
34768         (flag_results, locale_results): Test it by adding a new string to
34769         each test group.
34770         (compare_strings): Test new string.
34771
34772 2008-02-13  Eric Blake  <ebb9@byu.net>
34773
34774         Avoid trigraph quoting in default output.
34775         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34776         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34777         unless explicitly requested.
34778         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34779
34780 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34781
34782         Don't rely on signed integer overflowing to negative value.
34783         * lib/getugroups.c (getugroups): Include <limits.h>.
34784         Instead, compare against INT_MAX, and increment only if the test passes.
34785
34786 2008-02-13  Jim Meyering  <meyering@redhat.com>
34787         and Eric Blake  <ebb9@byu.net>
34788
34789         Avoid shadowing warning and compile errors on Linux.
34790         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34791         forwarding macros on Linux.
34792         (dcgettext): Define a stub, for Linux.
34793         (results_g, main): Avoid warnings.
34794
34795 2008-02-12  Eric Blake  <ebb9@byu.net>
34796
34797         Silence warning in last patch.
34798         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34799
34800         Quotearg part 4: add tests, fix c-maybe colon quoting.
34801         * lib/quotearg.h: Improve documentation.
34802         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34803         escapes when adding outer quotes.  When quoting trigraphs, use
34804         valid C notation.  When quoting NUL, omit extra characters if next
34805         character is not digit.  Alter prototype.
34806         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34807         callers.
34808         * modules/quotearg-tests: New module.
34809         * tests/test-quotearg.c: New test.
34810
34811 2008-02-07  Eric Blake  <ebb9@byu.net>
34812
34813         Quotearg part 3: add flag to control outer quote elision.
34814         * lib/quotearg.h (c_maybe_quoting_style): New style.
34815         (enum quoting_flags): Better documentation of flags.
34816         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34817         c-maybe style.
34818         (quotearg_buffer_restyled): Handle new flag to elide outer
34819         quotes.
34820
34821         Quotearg part 2: add flag that can control NUL elision.
34822         * lib/quotearg.h (set_quoting_flags): New prototype.
34823         * lib/quotearg.c (struct quoting_options): Add flag field.
34824         (set_quoting_flags): New function.
34825         (quotearg_buffer_restyled): Add flags parameter.
34826         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34827         (quotearg_n_options): Set the flag, since length cannot be
34828         returned.
34829         (quoting_options_from_style): Default flags correctly.
34830
34831         Quotearg part 1: more wrappers, restore quotearg_char state.
34832         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34833         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34834         (quotearg_colon_mem): New wrappers.
34835         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34836         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34837         functions.
34838         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34839         (quotearg_colon_mem): New functions.
34840
34841 2008-02-11  Bruno Haible  <bruno@clisp.org>
34842
34843         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34844         library in the current directory: it does not work with parallel make.
34845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34846
34847 2008-02-11  Bruno Haible  <bruno@clisp.org>
34848
34849         * .gitattributes: New file.
34850
34851 2008-02-11  Jim Meyering  <meyering@redhat.com>
34852
34853         useless-if-before-free: Fix reversed exit values.
34854         * build-aux/useless-if-before-free: Use correct values
34855         for EXIT_MATCH and EXIT_NO_MATCH.
34856
34857         * build-aux/useless-if-before-free: Close stdout carefully.
34858
34859 2008-02-10  Bruno Haible  <bruno@clisp.org>
34860
34861         New module 'git-merge-changelog'.
34862         * modules/git-merge-changelog: New file.
34863         * lib/git-merge-changelog.c: New file.
34864
34865 2008-02-10  Jim Meyering  <meyering@redhat.com>
34866
34867         useless-if-before-free: New option: --list (-l).
34868
34869         useless-if-before-free: Don't exit immediately upon open failure.
34870         * build-aux/useless-if-before-free: Exit 2 for errors.
34871         Upon failure to open a file, don't exit immediately.
34872         Rather, just warn and continue with any remaining files.
34873
34874 2008-02-10  Bruno Haible  <bruno@clisp.org>
34875
34876         New abstract list operation 'node_set_value'.
34877         * lib/gl_list.h (gl_list_node_set_value): New function.
34878         (struct gl_list_implementation): New field node_set_value.
34879         * lib/gl_list.c (gl_list_node_set_value): New function.
34880         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34881         (gl_array_list_implementation): Update.
34882         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34883         (gl_carray_list_implementation): Update.
34884         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34885         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34886         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34887         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34888         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34889         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34890         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34891         Update.
34892         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34893         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34894         (gl_sublist_list_implementation): Update.
34895
34896 2008-02-10  Bruno Haible  <bruno@clisp.org>
34897
34898         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34899         Needed when ELEMENT is #defined to 'some_type *'.
34900
34901 2008-02-10  Jim Meyering  <meyering@redhat.com>
34902
34903         New script and module: useless-if-before-free
34904         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34905         * build-aux/useless-if-before-free: New file.
34906         * modules/useless-if-before-free: New file.
34907
34908         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34909
34910         xstrtol_error: Fix typo.
34911         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34912         s/exit_failure/exit_status/.
34913
34914 2008-02-09  Jim Meyering  <meyering@redhat.com>
34915
34916         New script and module: gitlog-to-changelog
34917         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34918         * modules/gitlog-to-changelog: New file.
34919         * build-aux/gitlog-to-changelog: New file.
34920
34921 2008-02-08  Jim Meyering  <meyering@redhat.com>
34922
34923         Avoid two "parameter unused" warnings.
34924         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34925         Mark "st" as used.
34926
34927         Use "git COMMAND", not "git-COMMAND".
34928         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34929         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34930         * build-aux/git-version-gen: Use "git status", not "git-status".
34931
34932 2008-02-07  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34935         Avoids a crash on Windows Vista.
34936         Reported by Adam Strzelecki <ono@java.pl> via
34937         Simon Josefsson <simon@josefsson.org>.
34938
34939 2008-02-06  Bruno Haible  <bruno@clisp.org>
34940
34941         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34942         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34943         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34945         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34947         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34948         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34950         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34952         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34953         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34954         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34956         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34957         left-adjust flag.
34958         * tests/test-snprintf-posix.h (test_function): Likewise.
34959         * tests/test-sprintf-posix.h (test_function): Likewise.
34960         * tests/test-vasprintf-posix.c (test_function): Likewise.
34961         * doc/posix-functions/fprintf.texi: Update.
34962         * doc/posix-functions/printf.texi: Update.
34963         * doc/posix-functions/snprintf.texi: Update.
34964         * doc/posix-functions/sprintf.texi: Update.
34965         * doc/posix-functions/vfprintf.texi: Update.
34966         * doc/posix-functions/vprintf.texi: Update.
34967         * doc/posix-functions/vsnprintf.texi: Update.
34968         * doc/posix-functions/vsprintf.texi: Update.
34969         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34970
34971 2008-02-06  Bruno Haible  <bruno@clisp.org>
34972
34973         Fix bug introduced on 2008-01-26.
34974         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34975
34976 2008-02-06  Bruno Haible  <bruno@clisp.org>
34977
34978         Fix bug introduced on 2007-06-10.
34979         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
34980         !NEED_PRINTF_FLAG_ZERO.
34981
34982 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34983
34984         getloadavg: use libperfstat on AIX5
34985         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34986
34987 2008-02-03  Bruno Haible  <bruno@clisp.org>
34988
34989         * lib/diffseq.h: Add comments about required #includes.
34990         Reported by Michael Biggs <gnulib@doubleplum.net>.
34991
34992 2008-02-01  Bruno Haible  <bruno@clisp.org>
34993
34994         * users.txt: Add gnuit.
34995
34996 2008-01-31  Bruno Haible  <bruno@clisp.org>
34997
34998         * lib/md4.c (set_uint32): Mark as inline.
34999         * lib/md5.c (set_uint32): Likewise.
35000         * lib/sha1.c (set_uint32): Likewise.
35001         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
35002         * m4/md5.m4 (gl_MD5): Likewise.
35003         * m4/sha1.m4 (gl_SHA1): Likewise.
35004
35005 2008-01-31  Jim Meyering  <meyering@redhat.com>
35006
35007         Use "sizeof VAR", rather than a literal "4".
35008         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
35009         * lib/md4.c (md4_read_ctx): Likewise.
35010         * lib/sha1.c (sha1_read_ctx): Likewise.
35011
35012 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35013
35014         * tests/test-sha1.c: New file, based on test-md5.c.
35015
35016         * modules/crypto/sha1-tests: New file.
35017
35018 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35019
35020         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
35021
35022 2008-01-31  Jim Meyering  <meyering@redhat.com>
35023
35024         Prefer "sizeof v" over the equivalent "4".
35025         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
35026         * lib/md5.c (set_uint32): Likewise.
35027         * lib/sha1.c (set_uint32): Likewise.
35028
35029 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35030
35031         * lib/sha1.c (set_uint32): Mark function as static.
35032
35033 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35034
35035         md2: clarify comments to say that alignment is not required.
35036         * lib/md2.h: Remove warning about alignment in comment.
35037         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
35038         never been required.
35039
35040 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35041
35042         md4: adapt alignment constraint fix from sha1.
35043         * lib/md4.c (set_uint32): New function, from sha1.c
35044         (md4_read_ctx): Use it.
35045         (md4_finish_ctx): Doc fix.
35046         * lib/md4.h: Doc fix.
35047
35048 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35049
35050         md5: adapt alignment constraint fix from sha1.
35051         * lib/md5.c (set_uint32): New function, from sha1.c
35052         (md5_read_ctx): Use it.
35053         (md5_finish_ctx): Doc fix.
35054         * lib/md5.h: Doc fix.
35055
35056 2008-01-30  Peter Palfrader  <weasel@debian.org>
35057
35058         sha1: remove the result buffer alignment constraint
35059         * lib/sha1.c (set_uint32): New function.
35060         (sha1_read_ctx): Rewrite to remove the result buffer alignment
35061         constraint.
35062         (sha1_finish_ctx): Remove comment warning about alignment constraint.
35063         * lib/sha1.h: Likewise.
35064
35065 2008-01-30  Andreas Schwab  <schwab@suse.de>
35066             Bruno Haible  <bruno@clisp.org>
35067
35068         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
35069         correct definition of LDBL_MIN_EXP.
35070
35071 2008-01-30  Karl Berry  <karl@gnu.org>
35072
35073         * config/srclist-update: try to preserve x bit on updates.
35074         * config/srclistvars.sh: update for karl.
35075
35076 2008-01-29  Jim Meyering  <meyering@redhat.com>
35077
35078         vasnprintf.c: Avoid warning about unused label
35079         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35080         "overflow" label definition and associated code with the
35081         same cpp condition that guards the sole use of that label.
35082
35083 2008-01-26  Bruno Haible  <bruno@clisp.org>
35084
35085         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35086         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35087         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35088         * lib/isnanl-nolibm.h (isnanl): Likewise.
35089         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35090
35091 2008-01-26  Bruno Haible  <bruno@clisp.org>
35092
35093         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35094         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35095
35096 2008-01-26  Bruno Haible  <bruno@clisp.org>
35097
35098         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35099         GCC >= 4.0 built-in.
35100         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35101
35102 2008-01-26  Bruno Haible  <bruno@clisp.org>
35103
35104         Rename isnan, applicable to 'double' only, to isnand.
35105         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35106         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35107         (configure.ac): Update.
35108         (Include): Replace "isnan.h" with "isnand.h".
35109         * m4/isnand.m4: Renamed from m4/isnan.m4.
35110         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35111         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35112         instead of isnan.c.
35113         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35114         instead of HAVE_ISNAN_IN_LIBC.
35115         (isnand): Renamed from isnan.
35116         * lib/isnand.c: New file.
35117         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35118         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35119         (Makefile.am): Update.
35120         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35121         Include isnand.h instead of isnan.h.
35122         (main): Test isnand instead of isnan.
35123         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35124         isnan-nolibm.
35125         * modules/frexp (Depends-on): Likewise.
35126         * modules/frexp-tests (Depends-on): Likewise.
35127         * modules/frexp-nolibm (Depends-on): Likewise.
35128         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35129         * modules/isfinite (Depends-on): Likewise.
35130         * modules/round-tests (Depends-on): Likewise.
35131         * modules/signbit (Depends-on): Likewise.
35132         * modules/signbit-tests (Depends-on): Likewise.
35133         * modules/snprintf-posix (Depends-on): Likewise.
35134         * modules/sprintf-posix (Depends-on): Likewise.
35135         * modules/trunc-tests (Depends-on): Likewise.
35136         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35137         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35138         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35139         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35140         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35141         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35142         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35143         * modules/vasnprintf-posix (Depends-on): Likewise.
35144         * modules/vasprintf-posix (Depends-on): Likewise.
35145         * modules/vfprintf-posix (Depends-on): Likewise.
35146         * modules/vsnprintf-posix (Depends-on): Likewise.
35147         * modules/vsprintf-posix (Depends-on): Likewise.
35148         * lib/frexp.c: Include isnand.h instead of isnan.h.
35149         (ISNAN): Set to isnand instead of isnan.
35150         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35151         (gl_isfinited): Use isnand instead of isnan.
35152         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35153         (gl_signbitd): Use isnand instead of isnan.
35154         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35155         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35156         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35157         (main): Use isnand instead of isnan.
35158         * tests/test-round1.c: Include isnand.h.
35159         (main): Use isnand instead of isnan.
35160         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35161         (ISNAN): Set to isnand instead of isnan.
35162         * tests/test-trunc1.c: Include isnand.h.
35163         (main): Use isnand instead of isnan.
35164         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35165         (equal): Use isnand instead of isnan.
35166         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35167         isnand-nolibm.
35168         * NEWS: Mention the change.
35169
35170 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35171             Bruno Haible  <bruno@clisp.org>
35172
35173         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35174         the GCC builtins for signbits are present and set
35175         REPLACE_SIGNBIT_USING_GCC if so.
35176         * lib/math.in.h (signbit): Define using GCC builtins if
35177         REPLACE_SIGNBIT_USING_GCC is set.
35178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35179         REPLACE_SIGNBIT_USING_GCC.
35180         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35181
35182 2008-01-25  Jim Meyering  <meyering@redhat.com>
35183
35184         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35185         * lib/poll.c: Include <config.h>, not "config.h".
35186         * tests/test-getaddrinfo.c: Likewise.
35187
35188 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35189
35190         * modules/sockets-tests: New file.
35191
35192 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35193
35194         * modules/sockets: New module, can be used to call WSA_Startup and
35195         WSA_Cleanup when needed.
35196
35197         * lib/sockets.h, lib/sockets.c: New files.
35198
35199         * m4/sockets.m4: New file.
35200
35201         * tests/test-sockets.c: New file.
35202
35203 2008-01-19  Bruno Haible  <bruno@clisp.org>
35204
35205         * doc/posix-headers: Renamed from doc/headers.
35206         * doc/posix-functions: Renamed from doc/functions.
35207         * doc/gnulib.texi: Update.
35208
35209 2008-01-19  Bruno Haible  <bruno@clisp.org>
35210
35211         * doc/glibc-functions/strcasestr.texi: Include contents of
35212         doc/functions/strcasestr.texi, fixing the list of platforms.
35213         * doc/functions/strcasestr.texi: Remove file.
35214
35215 2008-01-19  Bruno Haible  <bruno@clisp.org>
35216
35217         * doc/glibc-functions/memmem.texi: Include contents of
35218         doc/functions/memmem.texi.
35219         * doc/functions/memmem.texi: Remove file.
35220
35221 2008-01-18  Bruno Haible  <bruno@clisp.org>
35222
35223         * doc/glibc-functions/*.texi: New files.
35224         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35225         to use the new files.
35226
35227 2008-01-17  Bruno Haible  <bruno@clisp.org>
35228
35229         * tests/test-gethostname.c (main): Fix printf statement.
35230
35231 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35232
35233         * modules/gethostname-tests: New file.
35234
35235         * tests/test-gethostname.c: New file.
35236
35237 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35238
35239         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35240         used by the UNAME case.  Reported by Bruno Haible
35241         <bruno@clisp.org>.
35242
35243 2008-01-17  Eric Blake  <ebb9@byu.net>
35244
35245         Convert c-strcasestr to be more efficient.
35246         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35247         (Depends-on): Add c-strcase, remove malloca, strnlen.
35248         * tests/test-c-strcasestr.c (main): Enhance test.
35249         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35250
35251 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35252
35253         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35254         Use it in creating po/Makevars.
35255
35256 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35257
35258         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35259         Applications that requires it should initialize libgcrypt
35260         manually.
35261
35262 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35263
35264         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35265
35266 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35267
35268         Fix problem with getdate on mingw32 reported by Simon Josefsson
35269         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35270         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35271         tzname", when deciding whether to declare tzname.
35272         * lib/strftime.c (tzname): Likewise.
35273
35274 2008-01-15  Bruno Haible  <bruno@clisp.org>
35275
35276         Work around a MacOS X 10.5 bug in frexpl().
35277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35278         * doc/functions/frexpl.texi: Document the bug.
35279         Reported by Elias Pipping <pipping@gentoo.org>.
35280
35281 2008-01-14  Eric Blake  <ebb9@byu.net>
35282
35283         Touch up previous patch.
35284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35285         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35286
35287         Convert strcasestr module to use Two-Way algorithm.
35288         * modules/strcasestr-simple: New module, based on the old
35289         strcasestr, but with Two-Way rather than KMP.
35290         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35291         * lib/string.in.h (rpl_strcasestr): Declare.
35292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35293         performance.
35294         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35295         * modules/string (Makefile.am): Support strcasestr.
35296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35297         * modules/strcasestr-tests (Depends-on): Check for alarm.
35298         * tests/test-strcasestr.c: Augment test.
35299         * lib/str-two-way.h: Clean up stray macro.
35300         * NEWS: Document new module.
35301         * MODULES.html.sh (string handling): Likewise.
35302         * doc/functions/strcasestr.texi: New file.
35303         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35304         here, since it is not a POSIX function.
35305
35306 2008-01-14  Colin Watson  <cjwatson@debian.org>
35307             Bruno Haible  <bruno@clisp.org>
35308
35309         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35310         works fine; if not, set REPLACE_STRSIGNAL.
35311         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35313         REPLACE_STRSIGNAL.
35314         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35315         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35316         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35317
35318 2008-01-14  Bruno Haible  <bruno@clisp.org>
35319
35320         * modules/strsignal (Include): Change to <string.h>.
35321
35322 2008-01-14  Colin Watson  <cjwatson@debian.org>
35323
35324         * modules/argp (Notice): Add a notice recommending to change
35325         XGETTEXT_OPTIONS.
35326         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35327
35328 2008-01-13  Colin Watson  <cjwatson@debian.org>
35329
35330         * modules/strsignal-tests: New file.
35331         * tests/test-strsignal.c: New file.
35332
35333         * lib/strsignal.c: New file, from glibc with modifications.
35334         * lib/siglist.h: New file, from glibc with modifications.
35335         * lib/string.in.h (strsignal): New declaration.
35336         * m4/strsignal.m4: New file.
35337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35338         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35339         * modules/strsignal: New file.
35340         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35341         HAVE_DECL_STRSIGNAL.
35342
35343 2008-01-13  Bruno Haible  <bruno@clisp.org>
35344
35345         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35346         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35347         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35348         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35349
35350 2008-01-13  Bruno Haible  <bruno@clisp.org>
35351
35352         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35353         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35354         * lib/argp.h (__attribute__): Likewise.
35355         * lib/c-stack.c (__attribute__): Likewise.
35356         * lib/error.h (__attribute__): Likewise.
35357         * lib/fts.c (__attribute__): Likewise.
35358         * lib/openat.h (__attribute__): Likewise.
35359         * lib/stdio.in.h (__attribute__): Likewise.
35360         * lib/string.in.h (__attribute__): Likewise.
35361         * lib/utimens.c (__attribute__): Likewise.
35362         * lib/vasnprintf.h (__attribute__): Likewise.
35363         * lib/xalloc.h (__attribute__): Likewise.
35364         * lib/xprintf.h (__attribute__): Likewise.
35365         * lib/xstrtol.h (__attribute__): Likewise.
35366         * lib/xvasprintf.h (__attribute__): Likewise.
35367
35368 2008-01-12  Bruno Haible  <bruno@clisp.org>
35369
35370         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35371         * doc/glibc-headers/a.out.texi: New file.
35372         * doc/glibc-headers/aliases.texi: New file.
35373         * doc/glibc-headers/alloca.texi: New file.
35374         * doc/glibc-headers/ar.texi: New file.
35375         * doc/glibc-headers/argp.texi: New file.
35376         * doc/glibc-headers/argz.texi: New file.
35377         * doc/glibc-headers/byteswap.texi: New file.
35378         * doc/glibc-headers/crypt.texi: New file.
35379         * doc/glibc-headers/endian.texi: New file.
35380         * doc/glibc-headers/envz.texi: New file.
35381         * doc/glibc-headers/err.texi: New file.
35382         * doc/glibc-headers/error.texi: New file.
35383         * doc/glibc-headers/execinfo.texi: New file.
35384         * doc/glibc-headers/fpu_control.texi: New file.
35385         * doc/glibc-headers/fstab.texi: New file.
35386         * doc/glibc-headers/fts.texi: New file.
35387         * doc/glibc-headers/getopt.texi: New file.
35388         * doc/glibc-headers/ieee754.texi: New file.
35389         * doc/glibc-headers/ifaddrs.texi: New file.
35390         * doc/glibc-headers/libintl.texi: New file.
35391         * doc/glibc-headers/mcheck.texi: New file.
35392         * doc/glibc-headers/mntent.texi: New file.
35393         * doc/glibc-headers/obstack.texi: New file.
35394         * doc/glibc-headers/paths.texi: New file.
35395         * doc/glibc-headers/printf.texi: New file.
35396         * doc/glibc-headers/pty.texi: New file.
35397         * doc/glibc-headers/resolv.texi: New file.
35398         * doc/glibc-headers/shadow.texi: New file.
35399         * doc/glibc-headers/sysexits.texi: New file.
35400         * doc/glibc-headers/ttyent.texi: New file.
35401
35402 2008-01-12  Jim Meyering  <meyering@redhat.com>
35403
35404         announce-gen: emit Gnulib's git-based version string.
35405         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35406         New option --gnulib-version=V, where V is expected to be
35407         the output of running git describe in the gnulib directory.
35408         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35409         not useful, and plan to stop publishing an xdelta file with each
35410         coreutils release.
35411
35412         * build-aux/announce-gen: Also check for lzma-compressed files.
35413
35414 2008-01-11  Bruno Haible  <bruno@clisp.org>
35415
35416         * tests/test-memmem.c (main): Increase maximum allowed time.
35417         * tests/test-strstr.c (main): Likewise.
35418
35419 2008-01-11  Bruno Haible  <bruno@clisp.org>
35420
35421         * doc/functions/memmem.texi: Add more precisions about platforms.
35422         * doc/functions/strstr.texi: Likewise.
35423
35424 2008-01-10  Eric Blake  <ebb9@byu.net>
35425
35426         * m4/strstr.m4: Delete cruft from copy-n-paste.
35427         Reported by Bruno Haible.
35428
35429 2008-01-10  Bruno Haible  <bruno@clisp.org>
35430
35431         Make c-strstr rely on strstr.
35432         * lib/c-strstr.c: Don't include str-kmp.h.
35433         (c_strstr): Define in terms of strstr.
35434         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35435         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35436
35437 2008-01-10  Bruno Haible  <bruno@clisp.org>
35438
35439         * doc/gnulib.texi (String Functions in C Locale): New section.
35440         * doc/c-ctype.texi: New file.
35441         * doc/c-strcase.texi: New file.
35442         * doc/c-strcaseeq.texi: New file.
35443         * doc/c-strcasestr.texi: New file.
35444         * doc/c-strstr.texi: New file.
35445         * doc/c-strtod.texi: New file.
35446         * doc/c-strtold.texi: New file.
35447
35448 2008-01-10  Eric Blake  <ebb9@byu.net>
35449
35450         * lib/relocatable.h: Fix a comment.
35451
35452 2008-01-10  Eric Blake  <ebb9@byu.net>
35453
35454         Share two-way algorithm.
35455         * lib/str-two-way.h: New file, merged from...
35456         * lib/memmem.c: ...here...
35457         * lib/strstr.c: ...and here.
35458         * modules/memmem (Files): Use it.
35459         * modules/strstr (Files): Likewise.
35460
35461         Avoid quadratic strstr implementations.
35462         * lib/strstr.c: New file.
35463         * m4/strstr.m4: Likewise.
35464         * modules/strstr: Likewise.
35465         * modules/strstr-tests: Likewise.
35466         * tests/test-strstr.c: Likewise.
35467         * lib/string.in.h (rpl_strstr): Declare.
35468         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35470         * modules/string (Makefile.am): Likewise.
35471         * MODULES.html.sh (string handling): Mention new module.
35472         * doc/functions/strstr.texi (strstr): Document the bug.
35473
35474 2008-01-10  Bruno Haible  <bruno@clisp.org>
35475
35476         * lib/relocatable.h (relocate): State whether result is freshly
35477         allocated or not.
35478         * lib/relocatable.c (relocate): Return a freshly allocated string
35479         instead of a pointer to a privately held string.
35480         Reported by Sylvain Beucler <beuc@gnu.org>.
35481
35482 2008-01-10  Colin Watson  <cjwatson@debian.org>
35483
35484         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35485         s/S_ISNLK/S_ISLNK/.
35486
35487 2008-01-09  Bruno Haible  <bruno@clisp.org>
35488
35489         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35490         and other files.
35491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35492         if it's only a guess.
35493         * modules/memmem: Simplify by depending on memmem-simple.
35494
35495 2008-01-09  Bruno Haible  <bruno@clisp.org>
35496
35497         Work around OpenBSD 4.0 tdelete() bug.
35498         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35499         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35500         macros and don't redefine the enum values.
35501         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35502         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35503         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35504
35505 2008-01-09  Bruno Haible  <bruno@clisp.org>
35506
35507         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35508         (main): Don't perform the tests if setlocale did not install a UTF-8
35509         locale. Needed on OpenBSD 4.0.
35510         * modules/wcwidth-tests (Depends-on): Add localcharset.
35511
35512 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35513
35514         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35515         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35516         * NEWS: announce this.
35517         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35518
35519 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35520         and Eric Blake  <ebb9@byu.net>
35521
35522         Add memmem-simple module.
35523         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35524         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35525         * modules/memmem-simple: New file.
35526         * modules/memmem (Description): Tweak.
35527         * MODULES.html.sh (string handling): Mention new module.
35528         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35529         addressed by memmem-simple.
35530         * NEWS: Document the difference.
35531
35532 2008-01-09  Eric Blake  <ebb9@byu.net>
35533
35534         Give gcc some memmem optimization hints.
35535         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35536         (strcasestr): Declare as pure.
35537         * modules/memmem (Maintainer): Claim my implementation.
35538
35539 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35540
35541         Support AIX 6.1 and higher.
35542         * build-aux/config.libpath: Likewise.
35543         * build-aux/config.rpath: Likewise.
35544
35545 2008-01-08  Jim Meyering  <meyering@redhat.com>
35546             Bruno Haible  <bruno@clisp.org>
35547
35548         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35549         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35550         Reported by Peter Fales in
35551         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35552
35553 2008-01-08  Bruno Haible  <bruno@clisp.org>
35554
35555         * modules/unictype/category-of (Depends-on): Add
35556         unictype/category-none.
35557         * modules/unictype/category-and-tests (Depends-on): Add
35558         unictype/category-{L,N,Lu,Nd}.
35559         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35560         * modules/unictype/category-or-tests (Depends-on): Add
35561         unictype/category-{L,N}.
35562         * modules/unictype/category-name-tests (Depends-on): Add
35563         unictype/category-{Z,Nl}.
35564         Reported by Simon Josefsson.
35565
35566 2008-01-08  Bruno Haible  <bruno@clisp.org>
35567
35568         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35569         convention better.
35570         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35571         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35572         Reported by Peter Miller <millerp@canb.auug.org.au>.
35573
35574 2008-01-08  Eric Blake  <ebb9@byu.net>
35575
35576         Rewrite memmem to guarantee linear complexity without malloc.
35577         * lib/memmem.c (memmem): Use Two-Way rather than
35578         Knuth-Morris-Pratt, to allow O(1) space usage.
35579         (critical_factorization, two_way_short_needle)
35580         (two_way_long_needle): New functions.
35581         (knuth_morris_pratt): Delete.
35582         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35583         Add stdint.
35584         * tests/test-memmem.c (main): Add tests for periodic needle and
35585         sublinear performance.
35586         * doc/functions/memmem.texi (memmem): Document other deficiencies
35587         in cygwin and older glibc.
35588
35589 2008-01-08  Bruno Haible  <bruno@clisp.org>
35590
35591         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35592         augmentation.
35593
35594 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35595
35596         Add a configure time option: --disable-acl.
35597         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35598         AC_ARG_ENABLE(acl).
35599
35600 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35601
35602         * tests/test-localename.c: Don't include obsolete "setenv.h".
35603
35604         * modules/localename-tests (Depends-on): Need unsetenv.
35605
35606 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35607
35608         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35609
35610 2008-01-06  Colin Watson  <cjwatson@debian.org>
35611
35612         * users.txt: Add man-db.
35613
35614 2008-01-07  Bruno Haible  <bruno@clisp.org>
35615
35616         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35617         previous section name.
35618
35619 2008-01-07  Bruno Haible  <bruno@clisp.org>
35620
35621         * lib/progname.c (set_program_name): Don't strip off a leading
35622         "lt-" prefix outside a .libs directory.
35623         Suggested by Paul Eggert.
35624
35625 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35626             Bruno Haible  <bruno@clisp.org>
35627
35628         Improve memory cleanup in 'relocatable' module.
35629         * lib/relocatable.h (compute_curr_prefix): Change return type to
35630         'char *'.
35631         * lib/relocatable.c (compute_curr_prefix): Change return type to
35632         'char *'. Free curr_installdir after use.
35633         (relocate): Free curr_prefix_better after use.
35634         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35635
35636 2008-01-01  Bruno Haible  <bruno@clisp.org>
35637
35638         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35639         failure on older glibc systems.
35640         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35641
35642 2008-01-05  Eric Blake  <ebb9@byu.net>
35643
35644         Avoid quadratic system memmem.
35645         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35646         Reported by Ralf Wildenhues.
35647
35648         Fix memmem test for mingw.
35649         * modules/memmem-tests (configure.ac): Check for alarm.
35650         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35651         it.
35652         * doc/functions/memmem.texi: New file.
35653         * doc/gnulib.texi (Function Substitutes): Add memmem.
35654         Reported by Bruno Haible.
35655
35656 2008-01-04  Bruno Haible  <bruno@clisp.org>
35657
35658         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35659         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35660         gl_HEADER_STRING_H_DEFAULTS.
35661
35662 2008-01-04  Eric Blake  <ebb9@byu.net>
35663
35664         Shorten duration of memmem test.
35665         * tests/test-memmem.c (main): Use alarm to declare failure if test
35666         is taking too long.
35667         Reported by Ralf Wildenhues.
35668
35669 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35670
35671         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35672         string, needed by strerror.
35673
35674 2008-01-03  Colin Watson  <cjwatson@debian.org>
35675             Bruno Haible  <bruno@clisp.org>
35676
35677         * doc/gnulib-tool.texi (Localization): New section.
35678
35679 2008-01-02  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35682         variables to 'unsigned char *' type.
35683         Reported by Paul Eggert.
35684
35685 2008-01-02  Jim Meyering  <jim@meyering.net>
35686
35687         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35688
35689 2007-12-31  Jim Meyering  <jim@meyering.net>
35690
35691         Avoid use of private FTS type name.
35692         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35693
35694 2007-12-30  Karl Berry  <karl@gnu.org>
35695
35696         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35697         work around defect in Texinfo and/or the standalone Info browser.
35698
35699 2007-12-30  Bruno Haible  <bruno@clisp.org>
35700
35701         Unify 5 copies of the KMP code.
35702         * lib/str-kmp.h: New file.
35703         * lib/c-strcasestr.c: Include str-kmp.h.
35704         (knuth_morris_pratt): Remove function.
35705         (c_strcasestr): Update.
35706         * lib/c-strstr.c: Include str-kmp.h.
35707         (knuth_morris_pratt): Remove function.
35708         (c_strcasestr): Update.
35709         * lib/mbscasestr.c: Include str-kmp.h.
35710         (knuth_morris_pratt_unibyte): Remove function.
35711         * lib/mbsstr.c: Include str-kmp.h.
35712         (knuth_morris_pratt_unibyte): Remove function.
35713         * lib/strcasestr.c: Include str-kmp.h.
35714         (knuth_morris_pratt): Remove function.
35715         (strcasestr): Update.
35716         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35717         * modules/c-strstr (Files): Likewise.
35718         * modules/mbscasestr (Files): Likewise.
35719         * modules/mbsstr (Files): Likewise.
35720         * modules/strcasestr (Files): Likewise.
35721         Suggested by Paul Eggert.
35722
35723 2007-12-30  Bruno Haible  <bruno@clisp.org>
35724
35725         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35726         defined.
35727
35728 2007-12-30  Bruno Haible  <bruno@clisp.org>
35729
35730         * lib/xmalloca.h: Include xalloc.h.
35731         (xnmalloca): New macro.
35732
35733 2007-12-30  Bruno Haible  <bruno@clisp.org>
35734
35735         * lib/malloca.h (nmalloca): New macro.
35736         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35737         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35738         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35739         knuth_morris_pratt_multibyte): Likewise.
35740         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35741         knuth_morris_pratt_multibyte): Likewise.
35742         * lib/memmem.c (knuth_morris_pratt): Likewise.
35743         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35744
35745 2007-12-25  Bruno Haible  <bruno@clisp.org>
35746
35747         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35748         * lib/glob.c: Don't include openat.h.
35749         (link_exists2_p): Add back the code that deals with the
35750         !GLOB_ALTDIRFUNC case.
35751         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35752         let it do the filename concatenation.
35753         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35754         * modules/glob (Depends-on): Remove openat.
35755
35756 2007-12-31  Bruno Haible  <bruno@clisp.org>
35757
35758         * modules/dirfd (License): Change to LGPLv2+.
35759         Approved by Jim Meyering.
35760
35761 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35762
35763         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35764         when multiplying M by sizeof (size_t).
35765
35766 2007-12-10  Martin Lambers  <marlam@marlam.de>
35767
35768         Override getpagesize on mingw.
35769         * lib/getpagesize.c: New file.
35770         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35771         * modules/getpagesize (Files): Add lib/getpagesize.c.
35772         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35774         REPLACE_GETPAGESIZE.
35775         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35776
35777 2007-12-25  Bruno Haible  <bruno@clisp.org>
35778
35779         * modules/localcharset (Notice): New field.
35780         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35781         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35782
35783 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35784             Bruno Haible  <bruno@clisp.org>
35785
35786         Avoid using the syntax symbol() in formatted documentation.
35787         * MODULES.html.sh (func_module): When replacing symbol() with a
35788         hyperlink, remove the parentheses. Show an error if some remain.
35789         Recognize and render the '...' syntax.
35790         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35791         Rework. Add paragraph about GCC's inlining.
35792         * doc/alloca.texi: Likewise.
35793         * doc/error.texi: Remove parentheses from symbol reference.
35794         * doc/gnulib-intro.texi: Likewise.
35795         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35796         * modules/fnmatch (Description): Reword to say "the ... function".
35797         * modules/full-read (Description): Likewise.
35798         * modules/full-write (Description): Likewise.
35799         * modules/safe-read (Description): Likewise.
35800         * modules/safe-write (Description): Likewise.
35801         * modules/strchrnul (Description): Likewise.
35802         * modules/trim (Description): Likewise.
35803         * modules/error (Description): Remove parentheses from symbol
35804         references.
35805         * modules/verror (Description): Likewise.
35806         Reported by Karl Berry.
35807
35808 2007-12-25  Bruno Haible  <bruno@clisp.org>
35809
35810         Fixup after 2007-10-16 commit.
35811         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35812
35813 2007-12-24  Bruno Haible  <bruno@clisp.org>
35814
35815         Make --enable-relocatable work with DESTDIR.
35816         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35817         to compute installdir from destprog.
35818         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35819         also set the RELOC_DESTDIR variable.
35820         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35821
35822 2007-12-24  Bruno Haible  <bruno@clisp.org>
35823
35824         Fix link error due to xalloc_die().
35825         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35826         of xreadlink.
35827         * lib/relocwrapper.c: Update comments.
35828         * build-aux/install-reloc: Remove xreadlink.c from file list.
35829         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35830         xreadlink.c.
35831         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35832
35833 2007-12-24  Bruno Haible  <bruno@clisp.org>
35834
35835         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35836         * lib/setenv.h: Remove file.
35837         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35838         lib/setenv.h.
35839         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35840         (Depends-on): Add stdlib.
35841         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35842         gl_FUNC_UNSETENV.
35843         (Include): Replace setenv.h with <stdlib.h>.
35844         * modules/unsetenv: New file.
35845         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35846         * lib/unsetenv.c: Include <stdlib.h> first.
35847         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35848         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35849         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35850         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35851         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35852         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35854         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35855         * doc/functions/unsetenv.texi: Update.
35856         * modules/xsetenv (Depends-on): Add unsetenv.
35857         * modules/getdate (Depends-on): Likewise.
35858         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35859         * lib/xsetenv.c: Don't include setenv.h.
35860         * lib/getdate.y: Likewise.
35861         * lib/relocwrapper.c: Likewise.
35862         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35863         (Depends-on): Add stdlib.
35864         * NEWS: Mention the changes.
35865         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35866
35867 2007-12-23  Bruno Haible  <bruno@clisp.org>
35868
35869         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35870         indentation.
35871
35872 2007-12-23  Bruno Haible  <bruno@clisp.org>
35873
35874         * lib/c-strcasestr.c: Add more comments.
35875         * lib/c-strstr.c: Likewise.
35876         * lib/mbscasestr.c: Likewise.
35877         * lib/mbsstr.c: Likewise.
35878         * lib/strcasestr.c: Likewise.
35879         * lib/memmem.c: Likewise.
35880
35881 2007-12-23  Bruno Haible  <bruno@clisp.org>
35882
35883         * tests/test-memmem.c: Include <string.h> first.
35884
35885 2007-12-22  Bruno Haible  <bruno@clisp.org>
35886
35887         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35888         the contents of $testsbase.
35889         Reported by Ralf Wildenhues.
35890
35891 2007-12-22  Bruno Haible  <bruno@clisp.org>
35892
35893         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35894         two variables local_ldadd_before, local_ldadd_last.
35895
35896 2007-12-20  Eric Blake  <ebb9@byu.net>
35897
35898         Work around circular library issue when cross-compiling.
35899         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35900         that progname.o does not need to pull in rpl_memcmp.
35901
35902 2007-12-19  Eric Blake  <ebb9@byu.net>
35903
35904         Fix memmem to avoid O(n^2) worst-case complexity.
35905         * lib/memmem.c (knuth_morris_pratt): New function.
35906         (memmem): Use it if first few naive iterations fail.
35907         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35908         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35909         * modules/memchr (License): Likewise.
35910         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35911         malloca.
35912         * tests/test-memmem.c: Rewrite, borrowing ideas from
35913         test-mbsstr1.c; the old version wouldn't even compile!
35914         * modules/memmem-tests: New file.
35915         * lib/string.in.h (rpl_memmem): Add declaration.
35916         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35918         REPLACE_MEMMEM.
35919
35920 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35921
35922         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35923         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35924         before any system include files, and undef after them all.  This
35925         should fix a problem on VMS reported by John E. Malmberg in
35926         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35927
35928 2007-12-17  Eric Blake  <ebb9@byu.net>
35929
35930         Revert addition of verify, for BSD/OS.
35931         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35932         can't handle large files, for the sake of obsolete platforms.
35933         * modules/fseeko (Depends-on): Remove verify.
35934         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35935         * doc/functions/ftello.texi (ftello): Likewise.
35936         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35937         Reported by Larry Jones.
35938
35939 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35940
35941         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35942         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35943
35944 2007-12-17  Jim Meyering  <meyering@redhat.com>
35945
35946         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35947         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35948         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35949         * modules/getcwd (Depends-on): Add openat.
35950         Reported by Petr Salinger.
35951
35952 2007-12-17  Bruno Haible  <bruno@clisp.org>
35953
35954         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35955         avoid a segmentation fault of the configure test on x86_64 systems.
35956
35957 2007-12-15  Jim Meyering  <meyering@redhat.com>
35958
35959         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35960
35961 2007-12-13  Eric Blake  <ebb9@byu.net>
35962
35963         Another fseek test.
35964         * tests/test-fseek.c (main): Also test ungetc handling.
35965         * tests/test-fseeko.c (main): Likewise.
35966         * modules/fseeko (Depends-on): Add verify.
35967         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35968         large.
35969         Reported by Larry Jones.
35970
35971         Fix fseeko on mingw.
35972         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35973         seek.
35974
35975         Beef up fseek tests.
35976         * tests/test-fseek.c (main): Also test eof handling.
35977         * tests/test-fseeko.c (main): Likewise.
35978         Reported by Larry Jones.
35979
35980 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
35981
35982         Fix fseeko on BSD-based platforms.
35983         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35984         successful seek.
35985
35986 2007-12-12  Eric Blake  <ebb9@byu.net>
35987
35988         Allow circular dependency of separate libtests.a
35989         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35990         when use_libtests.
35991
35992 2007-12-11  Eric Blake  <ebb9@byu.net>
35993
35994         Fix bug with -0.0L in previous patch.
35995         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35996         * tests/test-isnan.c (main): Also test on zeroes.
35997         * tests/test-isnanf.c (main): Likewise.
35998         * tests/test-isnanl.h (main): Likewise.
35999
36000         Detect pseudo-denormals on x86 even when cross-compiling.
36001         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
36002         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
36003         invalid bit patterns that happen to satisfy ==.
36004
36005         Avoid link failures with separate libtests.a.
36006         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
36007         last, to satisfy circular dependencies.
36008
36009 2007-12-11  Eric Blake  <ebb9@byu.net>
36010         and Bruno Haible  <bruno@clisp.org>
36011
36012         Fix OpenBSD 4.0 <float.h> handling of long double.
36013         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
36014         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
36015         * doc/headers/float.texi (float.h): Document OpenBSD bug.
36016
36017 2007-12-11  Jim Meyering  <meyering@redhat.com>
36018
36019         * users.txt: Add libvirt.
36020
36021         Support versions of autoconf prior to 2.59c.
36022         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
36023         if it is not already defined.
36024
36025 2007-12-09  Bruno Haible  <bruno@clisp.org>
36026
36027         Let 'gnulib-tool --import' collect sources needed for the tests in
36028         tests/ rather than in lib/.
36029         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
36030         argument. If true, add rules to generate libtests.a, and put libtests.a
36031         into $(LDADD). Consider source files in subdirectories and set
36032         uses_subdirs.
36033         (func_emit_initmacro_start, func_emit_initmacro_end,
36034         func_emit_initmacro_done): Pass all arguments explicitly.
36035         (func_import): Determine two module lists main_modules,
36036         testsrelated_modules. Determine use_libtests. Determine two variables
36037         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
36038         instead of just sed_transform_lib_file. Determine two variables
36039         main_files and testsrelated_files. Compute 'files' as the union of
36040         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
36041         func_add_or_update. In the generated gnulib-comp.m4, collect the
36042         object files for tests/ in different variables than those for lib/.
36043         Substitute LIBTESTS_LIBDEPS.
36044         (func_create_testdir): Combine the uses_subdirs results from
36045         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
36046
36047 2007-12-09  Bruno Haible  <bruno@clisp.org>
36048
36049         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
36050         the build-aux directory.
36051
36052 2007-12-09  Bruno Haible  <bruno@clisp.org>
36053
36054         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
36055         introduced on 2006-09-09.
36056
36057 2007-12-07  Jim Meyering  <meyering@redhat.com>
36058
36059         Let these macros work also with autoconf-2.59.
36060         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
36061         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
36062         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36063
36064 2007-12-06  Jim Meyering  <meyering@redhat.com>
36065
36066         Avoid a configure-time syntax error in gl_FUNC_ACL.
36067         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
36068         function in each branch, before testing the cache variable.
36069
36070 2007-12-04  Eric Blake  <ebb9@byu.net>
36071
36072         Make scripts executable.
36073         * build-aux/config.guess: Add execute permissions.
36074         * build-aux/config.sub: Likewise.
36075         * build-aux/gendocs.sh: Likewise.
36076
36077         Fix frexp on mingw.
36078         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36079         cross-compiling.
36080         * doc/functions/frexp.texi (frexp): Document the bug.
36081
36082         Make cygwin fseeko check more reliable.
36083         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36084         version numbers, rather than unrelated feature check.
36085         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36086         * doc/functions/ftello.texi (ftello): Likewise.
36087         Reported by Bruno Haible.
36088
36089         * m4/strerror.m4: Bump version number.
36090
36091 2007-12-03  Bruno Haible  <bruno@clisp.org>
36092
36093         * doc/functions/mprotect.texi: Mention the mingw problem.
36094
36095 2007-12-03  Eric Blake  <ebb9@byu.net>
36096
36097         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36098         REPLACE_STRERROR is initialized before this macro.
36099
36100 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36101
36102         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36103         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36104         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36105         put -lsec in even for programs other than 'ls'.  This fixes a problem
36106         for gettext reported by Bruno Haible in
36107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36108         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36109         Add support for Solaris 10.  This isn't efficient, but should get the
36110         job done for now.
36111
36112 2007-12-03  James Youngman  <jay@gnu.org>
36113
36114         * doc/regexprops-generic.texi: change "an close-group" to "a
36115         close-group" and "illegal" to "not allowed".
36116
36117 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36118
36119         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36120         pr_byname.h. Needed for the rare case when the maintainer has done
36121         "make maintainer-clean" in the source directory and then attempts a
36122         build outside the source directory.
36123         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36124         scripts_byname.h.
36125
36126 2007-12-02  Martin Lambers <marlam@marlam.de>
36127             Bruno Haible  <bruno@clisp.org>
36128
36129         * lib/getpagesize.h: Remove file.
36130         * lib/unistd.in.h: Include declaration of getpagesize here.
36131         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36132         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36133         HAVE_SYS_PARAM_H.
36134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36135         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36136         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36137         (Depends-on): Add unistd.
36138         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36139         (Include): Use <unistd.h> instead of getpagesize.h.
36140         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36141         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36142         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36143         gl_GETPAGESIZE invocation, already handled by module dependency.
36144         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36145
36146 2007-12-02  Bruno Haible  <bruno@clisp.org>
36147
36148         * modules/strings-tests: New file.
36149         * tests/test-strings.c: New file.
36150
36151         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36152         * lib/strings.in.h: New file.
36153         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36154         * m4/strings_h.m4: New file.
36155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36156         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36157         * modules/strings: New file.
36158         * modules/string (Makefile.am): Update.
36159         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36160         Reported by Karl Berry.
36161
36162 2007-12-01  Eric Blake  <ebb9@byu.net>
36163
36164         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36165         accomodate fix in cygwin 1.5.25.
36166
36167 2007-12-01  Jim Meyering  <meyering@redhat.com>
36168
36169         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36170         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36171         that would inhibit utf8-optimization of a regexp containing line-
36172         or buffer-anchors, e.g., `^', `$'.
36173
36174 2007-11-30  Bruno Haible  <bruno@clisp.org>
36175
36176         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36177         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36178         glthread_recursive_lock_init.
36179         * lib/lock.c (glthread_recursive_lock_init)
36180         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36182
36183 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36184
36185         New function qset_acl, like set_acl but with syscall semantics.
36186         * lib/acl.h (qset_acl): New decl.
36187         * lib/acl.c (qset_acl): New function.
36188         (set_acl): Use new function.  Use more-consistent diagnostics.
36189
36190 2007-11-28  Jim Meyering  <meyering@redhat.com>
36191
36192         * modules/physmem (License): Change from GPL to LGPLv2+.
36193
36194 2007-11-26  Bruno Haible  <bruno@clisp.org>
36195
36196         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36197         'long double' type has excess precision.
36198         Reported by Jim Meyering in
36199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36200
36201 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36202
36203         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36204         Sync from <http://gnu.org/licenses>.
36205         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36206         with license text from same location.
36207         * doc/maintain.texi, doc/standards.texi:  Sync from
36208         <http://savannah.gnu.org/projects/gnustandards>.
36209
36210 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36211         and Jim Meyering  <meyering@redhat.com>
36212
36213         Adjust getdate' grammar to accept a slightly more regular language.
36214         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36215         Before, the former was rejected.
36216         * lib/getdate.y (digits_to_date_time): New function, factored
36217         out of ...
36218         (number): ...here.  Just call digits_to_date_time.
36219         (hybrid): New non-terminal to handle an <unsigned number,
36220         signed relative offset> sequence consistently.
36221
36222 2007-11-18  Jim Meyering  <meyering@redhat.com>
36223
36224         Pull my changes from coreutils:
36225         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36226         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36227         use of $gnulib_tool_option_extras, so that it's separated from the
36228         preceding argument.
36229
36230         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36231         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36232         parent destination directories before copying a file into place.
36233
36234 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36235
36236         bootstrap: work also with 4-argument variant of AC_INIT
36237         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36238
36239 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36240
36241         Port test-getaddrinfo to Solaris.
36242         Problem reported by Bruno Haible in
36243         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36244         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36245         explanation of setting 'hints'.
36246         Don't reject an implementation merely because it returns EAI_SERVICE.
36247         (EAI_SERVICE): Define to 0 if not defined.
36248
36249 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36250
36251         The license of gnu-make and posix-shell is now "GPLed build tool".
36252         * modules/gnu-make (License): Likewise.
36253         * modules/posix-shell (License): Likewise.
36254
36255         New module posix-shell, for determining a POSIX shell
36256         or perhaps something that is close enough to a POSIX shell.
36257         * m4/posix-shell.m4: New file.
36258         * modules/posix-shell: New file.
36259
36260         * MODULES.html.sh: Mention new module.
36261
36262         New module gnu-make, for determining whether we're using GNU Make.
36263         * m4/gnu-make.m4: New file.
36264         * modules/gnu-make: New file.
36265         * MODULES.html.sh: Mention new module.
36266
36267 2007-11-14  Jim Meyering  <meyering@redhat.com>
36268
36269         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36270         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36271         use this macro to create a function _definition_.
36272         Remove useless "#undef ARGMATCH_DIE".
36273
36274 2007-11-14  Bruno Haible  <bruno@clisp.org>
36275
36276         * lib/config.charset: Update for OpenBSD 4.1.
36277         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36278
36279 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36280
36281         Document 64-bit #if problems in stdint.texi.
36282         * doc/headers/stdint.texi (stdint.h): Mention problems with
36283         64-bit-#if, and how to work around them.
36284
36285         Don't insist on 'long long int' support in the preprocessor.  It
36286         breaks too many things.  For example, PRIdMAX still uses a 'long
36287         long int' format with the latest Sun compiler, even though
36288         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36289         preprocessor problem.  This causes the latest coreutils to dump
36290         core on Solaris 10 sparc with the Sun C compiler.
36291         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36292         the troublesome expressions at configure-time, not at #if-time.
36293         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36294         preprocessor.
36295         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36296         compile-time C checks, done at 'configure'-time.
36297         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36298         * modules/inttypes (Makefile): Substitute the new symbols that
36299         gl_INTTYPES_H now generates.
36300         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36301
36302 2007-11-12  Bruno Haible  <bruno@clisp.org>
36303
36304         Tests for Unicode character classification functions.
36305
36306         * modules/unictype/bidicategory-byname-tests: New file.
36307         * modules/unictype/bidicategory-name-tests: New file.
36308         * modules/unictype/bidicategory-of-tests: New file.
36309         * modules/unictype/bidicategory-test-tests: New file.
36310         * modules/unictype/block-list-tests: New file.
36311         * modules/unictype/block-of-tests: New file.
36312         * modules/unictype/block-test-tests: New file.
36313         * modules/unictype/category-C-tests: New file.
36314         * modules/unictype/category-Cc-tests: New file.
36315         * modules/unictype/category-Cf-tests: New file.
36316         * modules/unictype/category-Cn-tests: New file.
36317         * modules/unictype/category-Co-tests: New file.
36318         * modules/unictype/category-Cs-tests: New file.
36319         * modules/unictype/category-L-tests: New file.
36320         * modules/unictype/category-Ll-tests: New file.
36321         * modules/unictype/category-Lm-tests: New file.
36322         * modules/unictype/category-Lo-tests: New file.
36323         * modules/unictype/category-Lt-tests: New file.
36324         * modules/unictype/category-Lu-tests: New file.
36325         * modules/unictype/category-M-tests: New file.
36326         * modules/unictype/category-Mc-tests: New file.
36327         * modules/unictype/category-Me-tests: New file.
36328         * modules/unictype/category-Mn-tests: New file.
36329         * modules/unictype/category-N-tests: New file.
36330         * modules/unictype/category-Nd-tests: New file.
36331         * modules/unictype/category-Nl-tests: New file.
36332         * modules/unictype/category-No-tests: New file.
36333         * modules/unictype/category-P-tests: New file.
36334         * modules/unictype/category-Pc-tests: New file.
36335         * modules/unictype/category-Pd-tests: New file.
36336         * modules/unictype/category-Pe-tests: New file.
36337         * modules/unictype/category-Pf-tests: New file.
36338         * modules/unictype/category-Pi-tests: New file.
36339         * modules/unictype/category-Po-tests: New file.
36340         * modules/unictype/category-Ps-tests: New file.
36341         * modules/unictype/category-S-tests: New file.
36342         * modules/unictype/category-Sc-tests: New file.
36343         * modules/unictype/category-Sk-tests: New file.
36344         * modules/unictype/category-Sm-tests: New file.
36345         * modules/unictype/category-So-tests: New file.
36346         * modules/unictype/category-Z-tests: New file.
36347         * modules/unictype/category-Zl-tests: New file.
36348         * modules/unictype/category-Zp-tests: New file.
36349         * modules/unictype/category-Zs-tests: New file.
36350         * modules/unictype/category-and-not-tests: New file.
36351         * modules/unictype/category-and-tests: New file.
36352         * modules/unictype/category-byname-tests: New file.
36353         * modules/unictype/category-name-tests: New file.
36354         * modules/unictype/category-none-tests: New file.
36355         * modules/unictype/category-of-tests: New file.
36356         * modules/unictype/category-or-tests: New file.
36357         * modules/unictype/category-test-withtable-tests: New file.
36358         * modules/unictype/combining-class-tests: New file.
36359         * modules/unictype/ctype-alnum-tests: New file.
36360         * modules/unictype/ctype-alpha-tests: New file.
36361         * modules/unictype/ctype-blank-tests: New file.
36362         * modules/unictype/ctype-cntrl-tests: New file.
36363         * modules/unictype/ctype-digit-tests: New file.
36364         * modules/unictype/ctype-graph-tests: New file.
36365         * modules/unictype/ctype-lower-tests: New file.
36366         * modules/unictype/ctype-print-tests: New file.
36367         * modules/unictype/ctype-punct-tests: New file.
36368         * modules/unictype/ctype-space-tests: New file.
36369         * modules/unictype/ctype-upper-tests: New file.
36370         * modules/unictype/ctype-xdigit-tests: New file.
36371         * modules/unictype/decimal-digit-tests: New file.
36372         * modules/unictype/digit-tests: New file.
36373         * modules/unictype/mirror-tests: New file.
36374         * modules/unictype/numeric-tests: New file.
36375         * modules/unictype/property-alphabetic-tests: New file.
36376         * modules/unictype/property-ascii-hex-digit-tests: New file.
36377         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36378         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36379         * modules/unictype/property-bidi-block-separator-tests: New file.
36380         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36381         * modules/unictype/property-bidi-common-separator-tests: New file.
36382         * modules/unictype/property-bidi-control-tests: New file.
36383         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36384         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36385         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36386         * modules/unictype/property-bidi-european-digit-tests: New file.
36387         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36388         * modules/unictype/property-bidi-left-to-right-tests: New file.
36389         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36390         * modules/unictype/property-bidi-other-neutral-tests: New file.
36391         * modules/unictype/property-bidi-pdf-tests: New file.
36392         * modules/unictype/property-bidi-segment-separator-tests: New file.
36393         * modules/unictype/property-bidi-whitespace-tests: New file.
36394         * modules/unictype/property-byname-tests: New file.
36395         * modules/unictype/property-combining-tests: New file.
36396         * modules/unictype/property-composite-tests: New file.
36397         * modules/unictype/property-currency-symbol-tests: New file.
36398         * modules/unictype/property-dash-tests: New file.
36399         * modules/unictype/property-decimal-digit-tests: New file.
36400         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36401         * modules/unictype/property-deprecated-tests: New file.
36402         * modules/unictype/property-diacritic-tests: New file.
36403         * modules/unictype/property-extender-tests: New file.
36404         * modules/unictype/property-format-control-tests: New file.
36405         * modules/unictype/property-grapheme-base-tests: New file.
36406         * modules/unictype/property-grapheme-extend-tests: New file.
36407         * modules/unictype/property-grapheme-link-tests: New file.
36408         * modules/unictype/property-hex-digit-tests: New file.
36409         * modules/unictype/property-hyphen-tests: New file.
36410         * modules/unictype/property-id-continue-tests: New file.
36411         * modules/unictype/property-id-start-tests: New file.
36412         * modules/unictype/property-ideographic-tests: New file.
36413         * modules/unictype/property-ids-binary-operator-tests: New file.
36414         * modules/unictype/property-ids-trinary-operator-tests: New file.
36415         * modules/unictype/property-ignorable-control-tests: New file.
36416         * modules/unictype/property-iso-control-tests: New file.
36417         * modules/unictype/property-join-control-tests: New file.
36418         * modules/unictype/property-left-of-pair-tests: New file.
36419         * modules/unictype/property-line-separator-tests: New file.
36420         * modules/unictype/property-logical-order-exception-tests: New file.
36421         * modules/unictype/property-lowercase-tests: New file.
36422         * modules/unictype/property-math-tests: New file.
36423         * modules/unictype/property-non-break-tests: New file.
36424         * modules/unictype/property-not-a-character-tests: New file.
36425         * modules/unictype/property-numeric-tests: New file.
36426         * modules/unictype/property-other-alphabetic-tests: New file.
36427         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36428         * modules/unictype/property-other-grapheme-extend-tests: New file.
36429         * modules/unictype/property-other-id-continue-tests: New file.
36430         * modules/unictype/property-other-id-start-tests: New file.
36431         * modules/unictype/property-other-lowercase-tests: New file.
36432         * modules/unictype/property-other-math-tests: New file.
36433         * modules/unictype/property-other-uppercase-tests: New file.
36434         * modules/unictype/property-paired-punctuation-tests: New file.
36435         * modules/unictype/property-paragraph-separator-tests: New file.
36436         * modules/unictype/property-pattern-syntax-tests: New file.
36437         * modules/unictype/property-pattern-white-space-tests: New file.
36438         * modules/unictype/property-private-use-tests: New file.
36439         * modules/unictype/property-punctuation-tests: New file.
36440         * modules/unictype/property-quotation-mark-tests: New file.
36441         * modules/unictype/property-radical-tests: New file.
36442         * modules/unictype/property-sentence-terminal-tests: New file.
36443         * modules/unictype/property-soft-dotted-tests: New file.
36444         * modules/unictype/property-space-tests: New file.
36445         * modules/unictype/property-terminal-punctuation-tests: New file.
36446         * modules/unictype/property-test-tests: New file.
36447         * modules/unictype/property-titlecase-tests: New file.
36448         * modules/unictype/property-unassigned-code-value-tests: New file.
36449         * modules/unictype/property-unified-ideograph-tests: New file.
36450         * modules/unictype/property-uppercase-tests: New file.
36451         * modules/unictype/property-variation-selector-tests: New file.
36452         * modules/unictype/property-white-space-tests: New file.
36453         * modules/unictype/property-xid-continue-tests: New file.
36454         * modules/unictype/property-xid-start-tests: New file.
36455         * modules/unictype/property-zero-width-tests: New file.
36456         * modules/unictype/scripts-tests: New file.
36457         * modules/unictype/syntax-c-ident-tests: New file.
36458         * modules/unictype/syntax-c-whitespace-tests: New file.
36459         * modules/unictype/syntax-java-ident-tests: New file.
36460         * modules/unictype/syntax-java-whitespace-tests: New file.
36461         * tests/unictype/test-bidi_byname.c: New file.
36462         * tests/unictype/test-bidi_name.c: New file.
36463         * tests/unictype/test-bidi_of.c: New file.
36464         * tests/unictype/test-bidi_test.c: New file.
36465         * tests/unictype/test-block_list.c: New file.
36466         * tests/unictype/test-block_of.c: New file.
36467         * tests/unictype/test-block_test.c: New file.
36468         * tests/unictype/test-categ_and.c: New file.
36469         * tests/unictype/test-categ_and_not.c: New file.
36470         * tests/unictype/test-categ_byname.c: New file.
36471         * tests/unictype/test-categ_name.c: New file.
36472         * tests/unictype/test-categ_none.c: New file.
36473         * tests/unictype/test-categ_of.c: New file.
36474         * tests/unictype/test-categ_or.c: New file.
36475         * tests/unictype/test-categ_test_withtable.c: New file.
36476         * tests/unictype/test-combining.c: New file.
36477         * tests/unictype/test-decdigit.c: New file.
36478         * tests/unictype/test-digit.c: New file.
36479         * tests/unictype/test-mirror.c: New file.
36480         * tests/unictype/test-numeric.c: New file.
36481         * tests/unictype/test-pr_byname.c: New file.
36482         * tests/unictype/test-pr_test.c: New file.
36483         * tests/unictype/test-predicate-part1.h: New file.
36484         * tests/unictype/test-predicate-part2.h: New file.
36485         * tests/unictype/test-scripts.c: New file.
36486         * tests/unictype/test-sy_c_ident.c: New file.
36487         * tests/unictype/test-sy_java_ident.c: New file.
36488
36489         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36490         for Unicode 5.0.0.
36491         * tests/unictype/test-categ_Cc.c: Likewise.
36492         * tests/unictype/test-categ_Cf.c: Likewise.
36493         * tests/unictype/test-categ_Cn.c: Likewise.
36494         * tests/unictype/test-categ_Co.c: Likewise.
36495         * tests/unictype/test-categ_Cs.c: Likewise.
36496         * tests/unictype/test-categ_L.c: Likewise.
36497         * tests/unictype/test-categ_Ll.c: Likewise.
36498         * tests/unictype/test-categ_Lm.c: Likewise.
36499         * tests/unictype/test-categ_Lo.c: Likewise.
36500         * tests/unictype/test-categ_Lt.c: Likewise.
36501         * tests/unictype/test-categ_Lu.c: Likewise.
36502         * tests/unictype/test-categ_M.c: Likewise.
36503         * tests/unictype/test-categ_Mc.c: Likewise.
36504         * tests/unictype/test-categ_Me.c: Likewise.
36505         * tests/unictype/test-categ_Mn.c: Likewise.
36506         * tests/unictype/test-categ_N.c: Likewise.
36507         * tests/unictype/test-categ_Nd.c: Likewise.
36508         * tests/unictype/test-categ_Nl.c: Likewise.
36509         * tests/unictype/test-categ_No.c: Likewise.
36510         * tests/unictype/test-categ_P.c: Likewise.
36511         * tests/unictype/test-categ_Pc.c: Likewise.
36512         * tests/unictype/test-categ_Pd.c: Likewise.
36513         * tests/unictype/test-categ_Pe.c: Likewise.
36514         * tests/unictype/test-categ_Pf.c: Likewise.
36515         * tests/unictype/test-categ_Pi.c: Likewise.
36516         * tests/unictype/test-categ_Po.c: Likewise.
36517         * tests/unictype/test-categ_Ps.c: Likewise.
36518         * tests/unictype/test-categ_S.c: Likewise.
36519         * tests/unictype/test-categ_Sc.c: Likewise.
36520         * tests/unictype/test-categ_Sk.c: Likewise.
36521         * tests/unictype/test-categ_Sm.c: Likewise.
36522         * tests/unictype/test-categ_So.c: Likewise.
36523         * tests/unictype/test-categ_Z.c: Likewise.
36524         * tests/unictype/test-categ_Zl.c: Likewise.
36525         * tests/unictype/test-categ_Zp.c: Likewise.
36526         * tests/unictype/test-categ_Zs.c: Likewise.
36527         * tests/unictype/test-ctype_alnum.c: Likewise.
36528         * tests/unictype/test-ctype_alpha.c: Likewise.
36529         * tests/unictype/test-ctype_blank.c: Likewise.
36530         * tests/unictype/test-ctype_cntrl.c: Likewise.
36531         * tests/unictype/test-ctype_digit.c: Likewise.
36532         * tests/unictype/test-ctype_graph.c: Likewise.
36533         * tests/unictype/test-ctype_lower.c: Likewise.
36534         * tests/unictype/test-ctype_print.c: Likewise.
36535         * tests/unictype/test-ctype_punct.c: Likewise.
36536         * tests/unictype/test-ctype_space.c: Likewise.
36537         * tests/unictype/test-ctype_upper.c: Likewise.
36538         * tests/unictype/test-ctype_xdigit.c: Likewise.
36539         * tests/unictype/test-decdigit.h: Likewise.
36540         * tests/unictype/test-digit.h: Likewise.
36541         * tests/unictype/test-numeric.h: Likewise.
36542         * tests/unictype/test-pr_alphabetic.c: Likewise.
36543         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36544         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36545         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36546         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36547         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36548         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36549         * tests/unictype/test-pr_bidi_control.c: Likewise.
36550         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36551         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36552         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36553         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36554         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36555         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36556         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36557         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36558         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36559         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36560         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36561         * tests/unictype/test-pr_combining.c: Likewise.
36562         * tests/unictype/test-pr_composite.c: Likewise.
36563         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36564         * tests/unictype/test-pr_dash.c: Likewise.
36565         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36566         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36567         * tests/unictype/test-pr_deprecated.c: Likewise.
36568         * tests/unictype/test-pr_diacritic.c: Likewise.
36569         * tests/unictype/test-pr_extender.c: Likewise.
36570         * tests/unictype/test-pr_format_control.c: Likewise.
36571         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36572         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36573         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36574         * tests/unictype/test-pr_hex_digit.c: Likewise.
36575         * tests/unictype/test-pr_hyphen.c: Likewise.
36576         * tests/unictype/test-pr_id_continue.c: Likewise.
36577         * tests/unictype/test-pr_id_start.c: Likewise.
36578         * tests/unictype/test-pr_ideographic.c: Likewise.
36579         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36580         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36581         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36582         * tests/unictype/test-pr_iso_control.c: Likewise.
36583         * tests/unictype/test-pr_join_control.c: Likewise.
36584         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36585         * tests/unictype/test-pr_line_separator.c: Likewise.
36586         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36587         * tests/unictype/test-pr_lowercase.c: Likewise.
36588         * tests/unictype/test-pr_math.c: Likewise.
36589         * tests/unictype/test-pr_non_break.c: Likewise.
36590         * tests/unictype/test-pr_not_a_character.c: Likewise.
36591         * tests/unictype/test-pr_numeric.c: Likewise.
36592         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36593         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36594         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36595         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36596         * tests/unictype/test-pr_other_id_start.c: Likewise.
36597         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36598         * tests/unictype/test-pr_other_math.c: Likewise.
36599         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36600         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36601         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36602         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36603         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36604         * tests/unictype/test-pr_private_use.c: Likewise.
36605         * tests/unictype/test-pr_punctuation.c: Likewise.
36606         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36607         * tests/unictype/test-pr_radical.c: Likewise.
36608         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36609         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36610         * tests/unictype/test-pr_space.c: Likewise.
36611         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36612         * tests/unictype/test-pr_titlecase.c: Likewise.
36613         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36614         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36615         * tests/unictype/test-pr_uppercase.c: Likewise.
36616         * tests/unictype/test-pr_variation_selector.c: Likewise.
36617         * tests/unictype/test-pr_white_space.c: Likewise.
36618         * tests/unictype/test-pr_xid_continue.c: Likewise.
36619         * tests/unictype/test-pr_xid_start.c: Likewise.
36620         * tests/unictype/test-pr_zero_width.c: Likewise.
36621         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36622         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36623
36624 2007-11-12  Bruno Haible  <bruno@clisp.org>
36625
36626         Unicode character classification functions.
36627         * lib/unictype.h: New file.
36628         * modules/unictype/base: New file.
36629         * modules/unictype/category-L: New file.
36630         * modules/unictype/category-Lu: New file.
36631         * modules/unictype/category-Ll: New file.
36632         * modules/unictype/category-Lt: New file.
36633         * modules/unictype/category-Lm: New file.
36634         * modules/unictype/category-Lo: New file.
36635         * modules/unictype/category-M: New file.
36636         * modules/unictype/category-Mn: New file.
36637         * modules/unictype/category-Mc: New file.
36638         * modules/unictype/category-Me: New file.
36639         * modules/unictype/category-N: New file.
36640         * modules/unictype/category-Nd: New file.
36641         * modules/unictype/category-Nl: New file.
36642         * modules/unictype/category-No: New file.
36643         * modules/unictype/category-P: New file.
36644         * modules/unictype/category-Pc: New file.
36645         * modules/unictype/category-Pd: New file.
36646         * modules/unictype/category-Ps: New file.
36647         * modules/unictype/category-Pe: New file.
36648         * modules/unictype/category-Pi: New file.
36649         * modules/unictype/category-Pf: New file.
36650         * modules/unictype/category-Po: New file.
36651         * modules/unictype/category-S: New file.
36652         * modules/unictype/category-Sm: New file.
36653         * modules/unictype/category-Sc: New file.
36654         * modules/unictype/category-Sk: New file.
36655         * modules/unictype/category-So: New file.
36656         * modules/unictype/category-Z: New file.
36657         * modules/unictype/category-Zs: New file.
36658         * modules/unictype/category-Zl: New file.
36659         * modules/unictype/category-Zp: New file.
36660         * modules/unictype/category-C: New file.
36661         * modules/unictype/category-Cc: New file.
36662         * modules/unictype/category-Cf: New file.
36663         * modules/unictype/category-Cs: New file.
36664         * modules/unictype/category-Co: New file.
36665         * modules/unictype/category-Cn: New file.
36666         * modules/unictype/category-or: New file.
36667         * modules/unictype/category-of: New file.
36668         * modules/unictype/category-test: New file.
36669         * modules/unictype/category-test-withtable: New file.
36670         * modules/unictype/category-byname: New file.
36671         * modules/unictype/category-none: New file.
36672         * modules/unictype/category-and: New file.
36673         * modules/unictype/category-and-not: New file.
36674         * modules/unictype/category-name: New file.
36675         * modules/unictype/combining-class: New file.
36676         * modules/unictype/category-all: New file.
36677         * modules/unictype/bidicategory-all: New file.
36678         * modules/unictype/bidicategory-byname: New file.
36679         * modules/unictype/bidicategory-name: New file.
36680         * modules/unictype/bidicategory-of: New file.
36681         * modules/unictype/bidicategory-test: New file.
36682         * modules/unictype/decimal-digit: New file.
36683         * modules/unictype/digit: New file.
36684         * modules/unictype/numeric: New file.
36685         * modules/unictype/mirror: New file.
36686         * modules/unictype/property-white-space: New file.
36687         * modules/unictype/property-alphabetic: New file.
36688         * modules/unictype/property-other-alphabetic: New file.
36689         * modules/unictype/property-not-a-character: New file.
36690         * modules/unictype/property-default-ignorable-code-point: New file.
36691         * modules/unictype/property-other-default-ignorable-code-point: New
36692         file.
36693         * modules/unictype/property-deprecated: New file.
36694         * modules/unictype/property-logical-order-exception: New file.
36695         * modules/unictype/property-variation-selector: New file.
36696         * modules/unictype/property-private-use: New file.
36697         * modules/unictype/property-unassigned-code-value: New file.
36698         * modules/unictype/property-uppercase: New file.
36699         * modules/unictype/property-other-uppercase: New file.
36700         * modules/unictype/property-lowercase: New file.
36701         * modules/unictype/property-other-lowercase: New file.
36702         * modules/unictype/property-titlecase: New file.
36703         * modules/unictype/property-soft-dotted: New file.
36704         * modules/unictype/property-id-start: New file.
36705         * modules/unictype/property-other-id-start: New file.
36706         * modules/unictype/property-id-continue: New file.
36707         * modules/unictype/property-other-id-continue: New file.
36708         * modules/unictype/property-xid-start: New file.
36709         * modules/unictype/property-xid-continue: New file.
36710         * modules/unictype/property-pattern-white-space: New file.
36711         * modules/unictype/property-pattern-syntax: New file.
36712         * modules/unictype/property-join-control: New file.
36713         * modules/unictype/property-grapheme-base: New file.
36714         * modules/unictype/property-grapheme-extend: New file.
36715         * modules/unictype/property-other-grapheme-extend: New file.
36716         * modules/unictype/property-grapheme-link: New file.
36717         * modules/unictype/property-bidi-control: New file.
36718         * modules/unictype/property-bidi-left-to-right: New file.
36719         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36720         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36721         * modules/unictype/property-bidi-european-digit: New file.
36722         * modules/unictype/property-bidi-eur-num-separator: New file.
36723         * modules/unictype/property-bidi-eur-num-terminator: New file.
36724         * modules/unictype/property-bidi-arabic-digit: New file.
36725         * modules/unictype/property-bidi-common-separator: New file.
36726         * modules/unictype/property-bidi-block-separator: New file.
36727         * modules/unictype/property-bidi-segment-separator: New file.
36728         * modules/unictype/property-bidi-whitespace: New file.
36729         * modules/unictype/property-bidi-non-spacing-mark: New file.
36730         * modules/unictype/property-bidi-boundary-neutral: New file.
36731         * modules/unictype/property-bidi-pdf: New file.
36732         * modules/unictype/property-bidi-embedding-or-override: New file.
36733         * modules/unictype/property-bidi-other-neutral: New file.
36734         * modules/unictype/property-hex-digit: New file.
36735         * modules/unictype/property-ascii-hex-digit: New file.
36736         * modules/unictype/property-ideographic: New file.
36737         * modules/unictype/property-unified-ideograph: New file.
36738         * modules/unictype/property-radical: New file.
36739         * modules/unictype/property-ids-binary-operator: New file.
36740         * modules/unictype/property-ids-trinary-operator: New file.
36741         * modules/unictype/property-zero-width: New file.
36742         * modules/unictype/property-space: New file.
36743         * modules/unictype/property-non-break: New file.
36744         * modules/unictype/property-iso-control: New file.
36745         * modules/unictype/property-format-control: New file.
36746         * modules/unictype/property-dash: New file.
36747         * modules/unictype/property-hyphen: New file.
36748         * modules/unictype/property-punctuation: New file.
36749         * modules/unictype/property-line-separator: New file.
36750         * modules/unictype/property-paragraph-separator: New file.
36751         * modules/unictype/property-quotation-mark: New file.
36752         * modules/unictype/property-sentence-terminal: New file.
36753         * modules/unictype/property-terminal-punctuation: New file.
36754         * modules/unictype/property-currency-symbol: New file.
36755         * modules/unictype/property-math: New file.
36756         * modules/unictype/property-other-math: New file.
36757         * modules/unictype/property-paired-punctuation: New file.
36758         * modules/unictype/property-left-of-pair: New file.
36759         * modules/unictype/property-combining: New file.
36760         * modules/unictype/property-composite: New file.
36761         * modules/unictype/property-decimal-digit: New file.
36762         * modules/unictype/property-numeric: New file.
36763         * modules/unictype/property-diacritic: New file.
36764         * modules/unictype/property-extender: New file.
36765         * modules/unictype/property-ignorable-control: New file.
36766         * modules/unictype/property-test: New file.
36767         * modules/unictype/property-byname: New file.
36768         * modules/unictype/property-all: New file.
36769         * modules/unictype/scripts: New file.
36770         * modules/unictype/scripts-all: New file.
36771         * modules/unictype/block-of: New file.
36772         * modules/unictype/block-test: New file.
36773         * modules/unictype/block-list: New file.
36774         * modules/unictype/block-all: New file.
36775         * modules/unictype/syntax-c-whitespace: New file.
36776         * modules/unictype/syntax-java-whitespace: New file.
36777         * modules/unictype/syntax-c-ident: New file.
36778         * modules/unictype/syntax-java-ident: New file.
36779         * modules/unictype/ctype-alnum: New file.
36780         * modules/unictype/ctype-alpha: New file.
36781         * modules/unictype/ctype-cntrl: New file.
36782         * modules/unictype/ctype-digit: New file.
36783         * modules/unictype/ctype-graph: New file.
36784         * modules/unictype/ctype-lower: New file.
36785         * modules/unictype/ctype-print: New file.
36786         * modules/unictype/ctype-punct: New file.
36787         * modules/unictype/ctype-space: New file.
36788         * modules/unictype/ctype-upper: New file.
36789         * modules/unictype/ctype-xdigit: New file.
36790         * modules/unictype/ctype-blank: New file.
36791         * lib/unictype/bidi_byname.c: New file.
36792         * lib/unictype/bidi_name.c: New file.
36793         * lib/unictype/bidi_of.c: New file.
36794         * lib/unictype/bidi_test.c: New file.
36795         * lib/unictype/bitmap.h: New file.
36796         * lib/unictype/block_test.c: New file.
36797         * lib/unictype/blocks.c: New file.
36798         * lib/unictype/categ_C.c: New file.
36799         * lib/unictype/categ_Cc.c: New file.
36800         * lib/unictype/categ_Cf.c: New file.
36801         * lib/unictype/categ_Cn.c: New file.
36802         * lib/unictype/categ_Co.c: New file.
36803         * lib/unictype/categ_Cs.c: New file.
36804         * lib/unictype/categ_L.c: New file.
36805         * lib/unictype/categ_Ll.c: New file.
36806         * lib/unictype/categ_Lm.c: New file.
36807         * lib/unictype/categ_Lo.c: New file.
36808         * lib/unictype/categ_Lt.c: New file.
36809         * lib/unictype/categ_Lu.c: New file.
36810         * lib/unictype/categ_M.c: New file.
36811         * lib/unictype/categ_Mc.c: New file.
36812         * lib/unictype/categ_Me.c: New file.
36813         * lib/unictype/categ_Mn.c: New file.
36814         * lib/unictype/categ_N.c: New file.
36815         * lib/unictype/categ_Nd.c: New file.
36816         * lib/unictype/categ_Nl.c: New file.
36817         * lib/unictype/categ_No.c: New file.
36818         * lib/unictype/categ_P.c: New file.
36819         * lib/unictype/categ_Pc.c: New file.
36820         * lib/unictype/categ_Pd.c: New file.
36821         * lib/unictype/categ_Pe.c: New file.
36822         * lib/unictype/categ_Pf.c: New file.
36823         * lib/unictype/categ_Pi.c: New file.
36824         * lib/unictype/categ_Po.c: New file.
36825         * lib/unictype/categ_Ps.c: New file.
36826         * lib/unictype/categ_S.c: New file.
36827         * lib/unictype/categ_Sc.c: New file.
36828         * lib/unictype/categ_Sk.c: New file.
36829         * lib/unictype/categ_Sm.c: New file.
36830         * lib/unictype/categ_So.c: New file.
36831         * lib/unictype/categ_Z.c: New file.
36832         * lib/unictype/categ_Zl.c: New file.
36833         * lib/unictype/categ_Zp.c: New file.
36834         * lib/unictype/categ_Zs.c: New file.
36835         * lib/unictype/categ_and.c: New file.
36836         * lib/unictype/categ_and_not.c: New file.
36837         * lib/unictype/categ_byname.c: New file.
36838         * lib/unictype/categ_name.c: New file.
36839         * lib/unictype/categ_none.c: New file.
36840         * lib/unictype/categ_of.c: New file.
36841         * lib/unictype/categ_or.c: New file.
36842         * lib/unictype/categ_test.c: New file.
36843         * lib/unictype/combining.c: New file.
36844         * lib/unictype/ctype_alnum.c: New file.
36845         * lib/unictype/ctype_alpha.c: New file.
36846         * lib/unictype/ctype_blank.c: New file.
36847         * lib/unictype/ctype_cntrl.c: New file.
36848         * lib/unictype/ctype_digit.c: New file.
36849         * lib/unictype/ctype_graph.c: New file.
36850         * lib/unictype/ctype_lower.c: New file.
36851         * lib/unictype/ctype_print.c: New file.
36852         * lib/unictype/ctype_punct.c: New file.
36853         * lib/unictype/ctype_space.c: New file.
36854         * lib/unictype/ctype_upper.c: New file.
36855         * lib/unictype/ctype_xdigit.c: New file.
36856         * lib/unictype/decdigit.c: New file.
36857         * lib/unictype/digit.c: New file.
36858         * lib/unictype/identsyntaxmap.h: New file.
36859         * lib/unictype/mirror.c: New file.
36860         * lib/unictype/numeric.c: New file.
36861         * lib/unictype/pr_alphabetic.c: New file.
36862         * lib/unictype/pr_ascii_hex_digit.c: New file.
36863         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36864         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36865         * lib/unictype/pr_bidi_block_separator.c: New file.
36866         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36867         * lib/unictype/pr_bidi_common_separator.c: New file.
36868         * lib/unictype/pr_bidi_control.c: New file.
36869         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36870         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36871         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36872         * lib/unictype/pr_bidi_european_digit.c: New file.
36873         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36874         * lib/unictype/pr_bidi_left_to_right.c: New file.
36875         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36876         * lib/unictype/pr_bidi_other_neutral.c: New file.
36877         * lib/unictype/pr_bidi_pdf.c: New file.
36878         * lib/unictype/pr_bidi_segment_separator.c: New file.
36879         * lib/unictype/pr_bidi_whitespace.c: New file.
36880         * lib/unictype/pr_byname.c: New file.
36881         * lib/unictype/pr_byname.gperf: New file.
36882         * lib/unictype/pr_combining.c: New file.
36883         * lib/unictype/pr_composite.c: New file.
36884         * lib/unictype/pr_currency_symbol.c: New file.
36885         * lib/unictype/pr_dash.c: New file.
36886         * lib/unictype/pr_decimal_digit.c: New file.
36887         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36888         * lib/unictype/pr_deprecated.c: New file.
36889         * lib/unictype/pr_diacritic.c: New file.
36890         * lib/unictype/pr_extender.c: New file.
36891         * lib/unictype/pr_format_control.c: New file.
36892         * lib/unictype/pr_grapheme_base.c: New file.
36893         * lib/unictype/pr_grapheme_extend.c: New file.
36894         * lib/unictype/pr_grapheme_link.c: New file.
36895         * lib/unictype/pr_hex_digit.c: New file.
36896         * lib/unictype/pr_hyphen.c: New file.
36897         * lib/unictype/pr_id_continue.c: New file.
36898         * lib/unictype/pr_id_start.c: New file.
36899         * lib/unictype/pr_ideographic.c: New file.
36900         * lib/unictype/pr_ids_binary_operator.c: New file.
36901         * lib/unictype/pr_ids_trinary_operator.c: New file.
36902         * lib/unictype/pr_ignorable_control.c: New file.
36903         * lib/unictype/pr_iso_control.c: New file.
36904         * lib/unictype/pr_join_control.c: New file.
36905         * lib/unictype/pr_left_of_pair.c: New file.
36906         * lib/unictype/pr_line_separator.c: New file.
36907         * lib/unictype/pr_logical_order_exception.c: New file.
36908         * lib/unictype/pr_lowercase.c: New file.
36909         * lib/unictype/pr_math.c: New file.
36910         * lib/unictype/pr_non_break.c: New file.
36911         * lib/unictype/pr_not_a_character.c: New file.
36912         * lib/unictype/pr_numeric.c: New file.
36913         * lib/unictype/pr_other_alphabetic.c: New file.
36914         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36915         * lib/unictype/pr_other_grapheme_extend.c: New file.
36916         * lib/unictype/pr_other_id_continue.c: New file.
36917         * lib/unictype/pr_other_id_start.c: New file.
36918         * lib/unictype/pr_other_lowercase.c: New file.
36919         * lib/unictype/pr_other_math.c: New file.
36920         * lib/unictype/pr_other_uppercase.c: New file.
36921         * lib/unictype/pr_paired_punctuation.c: New file.
36922         * lib/unictype/pr_paragraph_separator.c: New file.
36923         * lib/unictype/pr_pattern_syntax.c: New file.
36924         * lib/unictype/pr_pattern_white_space.c: New file.
36925         * lib/unictype/pr_private_use.c: New file.
36926         * lib/unictype/pr_punctuation.c: New file.
36927         * lib/unictype/pr_quotation_mark.c: New file.
36928         * lib/unictype/pr_radical.c: New file.
36929         * lib/unictype/pr_sentence_terminal.c: New file.
36930         * lib/unictype/pr_soft_dotted.c: New file.
36931         * lib/unictype/pr_space.c: New file.
36932         * lib/unictype/pr_terminal_punctuation.c: New file.
36933         * lib/unictype/pr_test.c: New file.
36934         * lib/unictype/pr_titlecase.c: New file.
36935         * lib/unictype/pr_unassigned_code_value.c: New file.
36936         * lib/unictype/pr_unified_ideograph.c: New file.
36937         * lib/unictype/pr_uppercase.c: New file.
36938         * lib/unictype/pr_variation_selector.c: New file.
36939         * lib/unictype/pr_white_space.c: New file.
36940         * lib/unictype/pr_xid_continue.c: New file.
36941         * lib/unictype/pr_xid_start.c: New file.
36942         * lib/unictype/pr_zero_width.c: New file.
36943         * lib/unictype/scripts.c: New file.
36944         * lib/unictype/sy_c_ident.c: New file.
36945         * lib/unictype/sy_c_whitespace.c: New file.
36946         * lib/unictype/sy_java_ident.c: New file.
36947         * lib/unictype/sy_java_whitespace.c: New file.
36948
36949         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36950         Unicode 5.0.0.
36951         * lib/unictype/blocks.h: Likewise.
36952         * lib/unictype/categ_C.h: Likewise.
36953         * lib/unictype/categ_Cc.h: Likewise.
36954         * lib/unictype/categ_Cf.h: Likewise.
36955         * lib/unictype/categ_Cn.h: Likewise.
36956         * lib/unictype/categ_Co.h: Likewise.
36957         * lib/unictype/categ_Cs.h: Likewise.
36958         * lib/unictype/categ_L.h: Likewise.
36959         * lib/unictype/categ_Ll.h: Likewise.
36960         * lib/unictype/categ_Lm.h: Likewise.
36961         * lib/unictype/categ_Lo.h: Likewise.
36962         * lib/unictype/categ_Lt.h: Likewise.
36963         * lib/unictype/categ_Lu.h: Likewise.
36964         * lib/unictype/categ_M.h: Likewise.
36965         * lib/unictype/categ_Mc.h: Likewise.
36966         * lib/unictype/categ_Me.h: Likewise.
36967         * lib/unictype/categ_Mn.h: Likewise.
36968         * lib/unictype/categ_N.h: Likewise.
36969         * lib/unictype/categ_Nd.h: Likewise.
36970         * lib/unictype/categ_Nl.h: Likewise.
36971         * lib/unictype/categ_No.h: Likewise.
36972         * lib/unictype/categ_P.h: Likewise.
36973         * lib/unictype/categ_Pc.h: Likewise.
36974         * lib/unictype/categ_Pd.h: Likewise.
36975         * lib/unictype/categ_Pe.h: Likewise.
36976         * lib/unictype/categ_Pf.h: Likewise.
36977         * lib/unictype/categ_Pi.h: Likewise.
36978         * lib/unictype/categ_Po.h: Likewise.
36979         * lib/unictype/categ_Ps.h: Likewise.
36980         * lib/unictype/categ_S.h: Likewise.
36981         * lib/unictype/categ_Sc.h: Likewise.
36982         * lib/unictype/categ_Sk.h: Likewise.
36983         * lib/unictype/categ_Sm.h: Likewise.
36984         * lib/unictype/categ_So.h: Likewise.
36985         * lib/unictype/categ_Z.h: Likewise.
36986         * lib/unictype/categ_Zl.h: Likewise.
36987         * lib/unictype/categ_Zp.h: Likewise.
36988         * lib/unictype/categ_Zs.h: Likewise.
36989         * lib/unictype/categ_of.h: Likewise.
36990         * lib/unictype/combining.h: Likewise.
36991         * lib/unictype/ctype_alnum.h: Likewise.
36992         * lib/unictype/ctype_alpha.h: Likewise.
36993         * lib/unictype/ctype_blank.h: Likewise.
36994         * lib/unictype/ctype_cntrl.h: Likewise.
36995         * lib/unictype/ctype_digit.h: Likewise.
36996         * lib/unictype/ctype_graph.h: Likewise.
36997         * lib/unictype/ctype_lower.h: Likewise.
36998         * lib/unictype/ctype_print.h: Likewise.
36999         * lib/unictype/ctype_punct.h: Likewise.
37000         * lib/unictype/ctype_space.h: Likewise.
37001         * lib/unictype/ctype_upper.h: Likewise.
37002         * lib/unictype/ctype_xdigit.h: Likewise.
37003         * lib/unictype/decdigit.h: Likewise.
37004         * lib/unictype/digit.h: Likewise.
37005         * lib/unictype/mirror.h: Likewise.
37006         * lib/unictype/numeric.h: Likewise.
37007         * lib/unictype/pr_alphabetic.h: Likewise.
37008         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37009         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37010         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37011         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37012         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37013         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37014         * lib/unictype/pr_bidi_control.h: Likewise.
37015         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37016         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37017         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37018         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37019         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37020         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37021         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37022         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37023         * lib/unictype/pr_bidi_pdf.h: Likewise.
37024         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37025         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37026         * lib/unictype/pr_combining.h: Likewise.
37027         * lib/unictype/pr_composite.h: Likewise.
37028         * lib/unictype/pr_currency_symbol.h: Likewise.
37029         * lib/unictype/pr_dash.h: Likewise.
37030         * lib/unictype/pr_decimal_digit.h: Likewise.
37031         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37032         * lib/unictype/pr_deprecated.h: Likewise.
37033         * lib/unictype/pr_diacritic.h: Likewise.
37034         * lib/unictype/pr_extender.h: Likewise.
37035         * lib/unictype/pr_format_control.h: Likewise.
37036         * lib/unictype/pr_grapheme_base.h: Likewise.
37037         * lib/unictype/pr_grapheme_extend.h: Likewise.
37038         * lib/unictype/pr_grapheme_link.h: Likewise.
37039         * lib/unictype/pr_hex_digit.h: Likewise.
37040         * lib/unictype/pr_hyphen.h: Likewise.
37041         * lib/unictype/pr_id_continue.h: Likewise.
37042         * lib/unictype/pr_id_start.h: Likewise.
37043         * lib/unictype/pr_ideographic.h: Likewise.
37044         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37045         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37046         * lib/unictype/pr_ignorable_control.h: Likewise.
37047         * lib/unictype/pr_iso_control.h: Likewise.
37048         * lib/unictype/pr_join_control.h: Likewise.
37049         * lib/unictype/pr_left_of_pair.h: Likewise.
37050         * lib/unictype/pr_line_separator.h: Likewise.
37051         * lib/unictype/pr_logical_order_exception.h: Likewise.
37052         * lib/unictype/pr_lowercase.h: Likewise.
37053         * lib/unictype/pr_math.h: Likewise.
37054         * lib/unictype/pr_non_break.h: Likewise.
37055         * lib/unictype/pr_not_a_character.h: Likewise.
37056         * lib/unictype/pr_numeric.h: Likewise.
37057         * lib/unictype/pr_other_alphabetic.h: Likewise.
37058         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37059         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37060         * lib/unictype/pr_other_id_continue.h: Likewise.
37061         * lib/unictype/pr_other_id_start.h: Likewise.
37062         * lib/unictype/pr_other_lowercase.h: Likewise.
37063         * lib/unictype/pr_other_math.h: Likewise.
37064         * lib/unictype/pr_other_uppercase.h: Likewise.
37065         * lib/unictype/pr_paired_punctuation.h: Likewise.
37066         * lib/unictype/pr_paragraph_separator.h: Likewise.
37067         * lib/unictype/pr_pattern_syntax.h: Likewise.
37068         * lib/unictype/pr_pattern_white_space.h: Likewise.
37069         * lib/unictype/pr_private_use.h: Likewise.
37070         * lib/unictype/pr_punctuation.h: Likewise.
37071         * lib/unictype/pr_quotation_mark.h: Likewise.
37072         * lib/unictype/pr_radical.h: Likewise.
37073         * lib/unictype/pr_sentence_terminal.h: Likewise.
37074         * lib/unictype/pr_soft_dotted.h: Likewise.
37075         * lib/unictype/pr_space.h: Likewise.
37076         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37077         * lib/unictype/pr_titlecase.h: Likewise.
37078         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37079         * lib/unictype/pr_unified_ideograph.h: Likewise.
37080         * lib/unictype/pr_uppercase.h: Likewise.
37081         * lib/unictype/pr_variation_selector.h: Likewise.
37082         * lib/unictype/pr_white_space.h: Likewise.
37083         * lib/unictype/pr_xid_continue.h: Likewise.
37084         * lib/unictype/pr_xid_start.h: Likewise.
37085         * lib/unictype/pr_zero_width.h: Likewise.
37086         * lib/unictype/scripts.h: Likewise.
37087         * lib/unictype/scripts_byname.gperf: Likewise.
37088         * lib/unictype/sy_c_ident.h: Likewise.
37089         * lib/unictype/sy_c_whitespace.h: Likewise.
37090         * lib/unictype/sy_java_ident.h: Likewise.
37091         * lib/unictype/sy_java_whitespace.h: Likewise.
37092
37093         * lib/unictype/Makefile: New file.
37094         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37095         glibc.
37096         * lib/unictype/3level.h: New file, copied from glibc.
37097         * lib/unictype/3levelbit.h: New file.
37098
37099 2007-11-11  Bruno Haible  <bruno@clisp.org>
37100
37101         * modules/gperf: New file.
37102         * modules/iconv_open (Depends-on): Add it.
37103         (Makefile.am): Remove the GPERF definition.
37104
37105 2007-11-11  Bruno Haible  <bruno@clisp.org>
37106
37107         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37108         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37109
37110 2007-11-11  Bruno Haible  <bruno@clisp.org>
37111
37112         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37113         (usage): Remove function.
37114
37115 2007-11-11  Bruno Haible  <bruno@clisp.org>
37116
37117         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37118         gl_FUNC_CEILF_LIBS.
37119         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37120         gl_FUNC_CEIL_LIBS.
37121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37122         gl_FUNC_CEILL_LIBS.
37123         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37124         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37125         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37126
37127 2007-11-11  Bruno Haible  <bruno@clisp.org>
37128
37129         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37130         roundf were declared but do not exist on functions.
37131         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37132         roundl were declared but do not exist on functions.
37133         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37134         HAVE_FLOORL_AND_CEILL, respectively.
37135         Needed for Sun C on Solaris 10.
37136
37137 2007-11-11  Bruno Haible  <bruno@clisp.org>
37138
37139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37140         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37141         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37142         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37144         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37145         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37146         HAVE_DECL_ROUNDF.
37147         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37148         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37150         of HAVE_DECL_ROUND*.
37151         * modules/math (Makefile.am): Update.
37152
37153 2007-11-10  Bruno Haible  <bruno@clisp.org>
37154
37155         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37156         ptrdiff_t as m4/intl.m4.
37157
37158 2007-11-10  Jim Meyering  <meyering@redhat.com>
37159
37160         Avoid link failure for the argmatch test.
37161         * tests/test-argmatch.c (usage): Define function to avoid a link
37162         failure: argmatch_die requires a usage function.
37163
37164 2007-11-09  Bruno Haible  <bruno@clisp.org>
37165
37166         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37167         * doc/functions/vsnprintf.texi: Likewise.
37168         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37169         with a size argument < 2.
37170
37171 2007-11-09  Bruno Haible  <bruno@clisp.org>
37172
37173         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37174         buffer. Fixes an inefficiency introduced on 2007-11-03.
37175
37176 2007-11-09  Bruno Haible  <bruno@clisp.org>
37177
37178         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37179         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37180
37181 2007-11-08  Jim Meyering  <meyering@redhat.com>
37182
37183         Change cache variable name prefix "jm_" to "gl_" everywhere.
37184         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37185         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37186         * m4/uptime.m4: s/gl_/jm_/
37187
37188 2007-11-07  Bruno Haible  <bruno@clisp.org>
37189
37190         Update to GNU gettext 0.17.
37191         * m4/intl.m4: Update to GNU gettext 0.17.
37192         * m4/po.m4: Likewise.
37193         * modules/gettext (Files): Remove m4/ulonglong.m4.
37194         (configure.ac): Require gettext infrastructure from version 0.17.
37195
37196 2007-11-06  Bruno Haible  <bruno@clisp.org>
37197
37198         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37199         symbolic values are not defined in a public header.
37200         * lib/freadable.c (freadable) [QNX]: Likewise.
37201         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37202         * lib/freading.c (freading) [QNX]: Likewise.
37203         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37204         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37205         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37206         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37207         Reported by Alain Magloire.
37208
37209         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37210
37211 2007-11-05  Bruno Haible  <bruno@clisp.org>
37212
37213         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37214         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37215         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37216         Reported by Eric Blake.
37217
37218 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37219             Bruno Haible  <bruno@clisp.org>
37220
37221         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37222         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37223         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37224         (malloc): Undefine also before including <stdlib.h>.
37225         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37226         Needed on OSF/1 4.0.
37227
37228 2007-11-05  Jim Meyering  <meyering@redhat.com>
37229
37230         git-version-gen: sync from coreutils.
37231         * build-aux/git-version-gen: Add comments.
37232         Change the first '-' to '.' in the snapshot version string,
37233         e.g., 6.9-377-08144 -> 6.9.377-08144
37234         Remove first parameter.
37235         Don't declare a version "-dirty" merely because a time
37236         stamp has changed.
37237
37238 2007-11-04  Bruno Haible  <bruno@clisp.org>
37239
37240         * lib/lock.h: Protect all macro definitions containing an 'if'
37241         statement through a "do { ... } while (0)".
37242         * lib/tls.h: Likewise.
37243
37244 2007-11-04  Bruno Haible  <bruno@clisp.org>
37245
37246         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37247
37248 2007-11-04  Bruno Haible  <bruno@clisp.org>
37249
37250         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37251         * modules/fprintf-posix (Depends-on): Add nocrash.
37252         * modules/snprintf-posix (Depends-on): Likewise.
37253         * modules/sprintf-posix (Depends-on): Likewise.
37254         * modules/vasnprintf-posix (Depends-on): Likewise.
37255         * modules/vasprintf-posix (Depends-on): Likewise.
37256         * modules/vfprintf-posix (Depends-on): Likewise.
37257         * modules/vsnprintf-posix (Depends-on): Likewise.
37258         * modules/vsprintf-posix (Depends-on): Likewise.
37259         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37260         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37261         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37262         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37263         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37264         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37265         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37266
37267 2007-11-04  Bruno Haible  <bruno@clisp.org>
37268
37269         * modules/nocrash: New file.
37270         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37271         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37272
37273 2007-11-04  Bruno Haible  <bruno@clisp.org>
37274
37275         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37276         precision handling.
37277         * tests/test-vasprintf-posix.c (test_function): Likewise.
37278         * tests/test-snprintf-posix.h (test_function): Likewise.
37279         * tests/test-sprintf-posix.h (test_function): Likewise.
37280
37281         Fix *printf behaviour for large precisions on mingw and BeOS.
37282         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37283         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37285         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37286         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37287         gl_PRINTF_PRECISION and test its result. Invoke
37288         gl_PREREQ_VASNPRINTF_PRECISION.
37289         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37290         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37296         * doc/functions/fprintf.texi: Update.
37297         * doc/functions/printf.texi: Update.
37298         * doc/functions/snprintf.texi: Update.
37299         * doc/functions/sprintf.texi: Update.
37300         * doc/functions/vfprintf.texi: Update.
37301         * doc/functions/vprintf.texi: Update.
37302         * doc/functions/vsnprintf.texi: Update.
37303         * doc/functions/vsprintf.texi: Update.
37304
37305 2007-11-04  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37308
37309 2007-11-04  Bruno Haible  <bruno@clisp.org>
37310
37311         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37312         Reported by Sylvain Beucler <beuc@gnu.org>.
37313
37314 2007-11-03  Bruno Haible  <bruno@clisp.org>
37315
37316         * tests/test-fprintf-posix2.sh: New file.
37317         * tests/test-fprintf-posix2.c: New file.
37318         * modules/fprintf-posix-tests (Files): Add them.
37319         (TESTS): Add test-fprintf-posix2.sh.
37320         (configure.ac): Check for getrlimit and setrlimit.
37321         (check_PROGRAMS): Add test-fprintf-posix2.
37322
37323         * tests/test-printf-posix2.sh: New file.
37324         * tests/test-printf-posix2.c: New file.
37325         * modules/printf-posix-tests (Files): Add them.
37326         (TESTS): Add test-printf-posix2.sh.
37327         (configure.ac): Check for getrlimit and setrlimit.
37328         (check_PROGRAMS): Add test-printf-posix2.
37329
37330         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37331         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37332         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37333         (decode_double): New function, copied from decode_long_double.
37334         (scale10_round_decimal_decoded): New function, extracted from
37335         scale10_round_decimal_long_double.
37336         (scale10_round_decimal_long_double): Use it.
37337         (scale10_round_decimal_double): New function.
37338         (floorlog10): New function.
37339         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37341         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37342         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37343         gl_PRINTF_ENOMEM and test its result. Invoke
37344         gl_PREREQ_VASNPRINTF_ENOMEM.
37345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37346         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37347         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37348         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37349         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37350         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37351         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37352         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37353         * modules/snprintf-posix (Depends-on): Likewise.
37354         * modules/sprintf-posix (Depends-on): Likewise.
37355         * modules/vasnprintf-posix (Depends-on): Likewise.
37356         * modules/vasprintf-posix (Depends-on): Likewise.
37357         * modules/vfprintf-posix (Depends-on): Likewise.
37358         * modules/vsnprintf-posix (Depends-on): Likewise.
37359         * modules/vsprintf-posix (Depends-on): Likewise.
37360         * doc/functions/fprintf.texi: Update.
37361         * doc/functions/printf.texi: Update.
37362         * doc/functions/snprintf.texi: Update.
37363         * doc/functions/sprintf.texi: Update.
37364         * doc/functions/vfprintf.texi: Update.
37365         * doc/functions/vprintf.texi: Update.
37366         * doc/functions/vsnprintf.texi: Update.
37367         * doc/functions/vsprintf.texi: Update.
37368
37369 2007-11-03  Bruno Haible  <bruno@clisp.org>
37370
37371         * modules/frexp-nolibm-tests: New file.
37372
37373         * modules/frexp-nolibm: New file.
37374         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37375
37376 2007-11-03  Bruno Haible  <bruno@clisp.org>
37377
37378         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37379         value is C99 compliant.
37380         Needed for OSF/1 5.1.
37381
37382 2007-11-03  Bruno Haible  <bruno@clisp.org>
37383
37384         Fix out-of-memory handling of vasnprintf.
37385         * lib/printf-parse.c: Include <errno.h>.
37386         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37387         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37388         is already set.
37389
37390 2007-11-02  Eric Blake  <ebb9@byu.net>
37391
37392         Fix tests on cygwin.
37393         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37394
37395 2007-11-01  Bruno Haible  <bruno@clisp.org>
37396
37397         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37398         warning.
37399         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37400         needed for POSIX compatibility.
37401
37402 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37403
37404         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37405         for compatibility with GNU.
37406
37407 2007-11-01  Bruno Haible  <bruno@clisp.org>
37408
37409         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37410         (putenv): Renamed from rpl_putenv. Change argument type from
37411         'const char *' to 'char *'.
37412         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37413         of defining putenv in config.h, just set REPLACE_PUTENV.
37414         * modules/putenv (Depends-on): Add stdlib.
37415         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37416         (Include): Use <stdlib.h>.
37417         * lib/stdlib.in.h (putenv): New declaration.
37418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37419         REPLACE_PUTENV.
37420         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37421         REPLACE_PUTENV.
37422         Needed for MacOS X 10.5.0.
37423         Reported by Peter O'Gorman <peter@pogma.com>.
37424
37425 2007-11-01  Jim Meyering  <meyering@redhat.com>
37426
37427         Treat an empty date string exactly like "0".
37428         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37429         if the remaining date string (to be parsed) is empty, use "0".
37430         Reported by Mischa Molhoek and discussed in this thread:
37431         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37432
37433 2007-10-31  Bruno Haible  <bruno@clisp.org>
37434
37435         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37436         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37437         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37438         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37439         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37440         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37441
37442 2007-10-31  Bruno Haible  <bruno@clisp.org>
37443
37444         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37445         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37446         (AC_TYPE_LONG_LONG_INT): Use it.
37447         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37448         it as well.
37449         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37450         to m4/longlong.m4.
37451         * modules/stdint (Files): Remove m4/ulonglong.m4.
37452         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37453         m4/ulonglong.m4.
37454         * modules/strtoumax (Files): Likewise.
37455
37456 2007-10-30  Bruno Haible  <bruno@clisp.org>
37457
37458         * modules/xvasprintf-posix: New file.
37459         Suggested by Eric Blake.
37460
37461 2007-10-30  Bruno Haible  <bruno@clisp.org>
37462
37463         * modules/xprintf-posix-tests: New file.
37464         * tests/test-xprintf-posix.sh: New file.
37465         * tests/test-xprintf-posix.c: New file.
37466         * tests/test-xfprintf-posix.c: New file.
37467
37468         * modules/xprintf-posix: New file.
37469
37470 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37471
37472         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37473         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37474         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37475
37476 2007-10-29  Bruno Haible  <bruno@clisp.org>
37477
37478         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37479         contain the special marker '_cv_'.
37480         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37481         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37482         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37483         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37484         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37485         Reported by Ralf Wildenhues.
37486
37487 2007-10-29  Bruno Haible  <bruno@clisp.org>
37488
37489         * gnulib-tool (func_import): When --lgpl is not specified, set
37490         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37491         GPLv3.
37492         Reported by Simon Josefsson.
37493
37494 2007-10-28  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37497         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37498         HAVE_DECL_ISFINITE.
37499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37500         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37501         HAVE_DECL_ISFINITE.
37502
37503 2007-10-28  Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37506         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37507
37508 2007-10-28  Bruno Haible  <bruno@clisp.org>
37509
37510         Fix link errors with Sun C 5.0 on Solaris 10.
37511         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37512         function is declared but not present in the compiler's libm.
37513         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37514         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37515         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37516         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37517         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37518         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37519         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37521         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37522         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37523         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37524         HAVE_DECL_FLOORL.
37525
37526 2007-10-28  Bruno Haible  <bruno@clisp.org>
37527
37528         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37529         gl_FUNC_FLOORL. Cache the result.
37530         (gl_FUNC_FLOORL): Use it.
37531         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37532         gl_FUNC_CEILL. Cache the result.
37533         (gl_FUNC_CEILL): Use it.
37534
37535         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37536         gl_FUNC_FLOOR. Cache the result.
37537         (gl_FUNC_FLOOR): Use it.
37538         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37539         gl_FUNC_CEIL. Cache the result.
37540         (gl_FUNC_CEIL): Use it.
37541
37542         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37543         gl_FUNC_FLOORF. Cache the result.
37544         (gl_FUNC_FLOORF): Use it.
37545         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37546         gl_FUNC_CEILF. Cache the result.
37547         (gl_FUNC_CEILF): Use it.
37548
37549 2007-10-28  Bruno Haible  <bruno@clisp.org>
37550
37551         * gnulib-tool: Allow specifying the LGPL version number through
37552         --lgpl=2 or --lgpl=3.
37553         (func_usage): Document --lgpl with argument.
37554         Handle --lgpl=... arguments.
37555         (func_import): Recognize also gl_LGPL calls with an argument. When
37556         --lgpl=2 is used and the module's license is just LGPL, report an
37557         error. Set sed_transform_lib_file according to the lgpl variable. In
37558         the generated files, use --lgpl or gl_LGPL invocations with argument,
37559         if necessary.
37560         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37561         an LGPv2+ license.
37562         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37563         gl_LGPL macro.
37564
37565 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37566             Bruno Haible  <bruno@clisp.org>
37567
37568         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37569         (u16_uctomb_aux): Likewise.
37570         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37571         !HAVE_INLINE.
37572         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37573
37574 2007-10-28  Bruno Haible  <bruno@clisp.org>
37575
37576         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37577         Invoke AM_GETTEXT_OPTION if it exists.
37578         * modules/vasprintf: Likewise.
37579         * modules/verror: Likewise.
37580         * modules/xprintf: Likewise.
37581         * modules/xvasprintf: Likewise.
37582
37583 2007-10-27  Ben Pfaff  <blp@gnu.org>
37584
37585         * lib/math.in.h: Define isfinite macro and prototypes for
37586         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37587         implementations.
37588         * m4/math_h.m4: New substitutions for isfinite module.
37589         * lib/isfinite.c: New file.
37590         * m4/isfinite.m4: New file.
37591         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37592         * modules/isfinite: New file.
37593         * modules/isfinite-tests: New file.
37594         * tests/tests-isfinite.c: New file.
37595         * doc/functions/isfinite.texi: Mention isfinite module.
37596         * MODULES.html.sh: Mention new module.
37597
37598 2007-10-27  Ben Pfaff  <blp@gnu.org>
37599
37600         Ralf Wildenhues reported that Tru64 4.0D declares the round
37601         functions but does not have definitions.
37602         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37603         cannot be found in any library, set the output variable to
37604         "missing" instead of "".
37605         * m4/round.m4: Also use our substitute if we cannot find round in
37606         any library, even if it is declared.
37607         * m4/roundf.m4: Likewise for roundf.
37608         * m4/roundl.m4: Likewise for roundl.
37609         * lib/math.in.h: Undefine roundf, round, roundl before defining
37610         their replacements, to allow for hypothetical systems where these
37611         may be defined as macros but not available in libraries.
37612
37613 2007-10-27  Bruno Haible  <bruno@clisp.org>
37614
37615         * doc/gnulib.texi: Invoke @firstparagraphindent.
37616         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37617         changes in gnulib.
37618         (Source changes): New section.
37619
37620 2007-10-26  Bruno Haible  <bruno@clisp.org>
37621
37622         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37623         borrowed from autoconf.
37624
37625 2007-10-26  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37628         strerror returned the empty string. Needed on HP-UX 11.00.
37629
37630 2007-10-24  Micah Cowan  <micah@cowan.name>
37631
37632         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37633         * build-aux/bootstrap: Remove support for now-unnecessary option,
37634         --cvs-user, and envvars CVS_USER, CVS_RSH.
37635
37636 2007-10-24  Jim Meyering  <meyering@redhat.com>
37637
37638         Avoid diagnostics from sha1sum when there is no cached checksum.
37639         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37640         if the po.s1 file hasn't been created yet.
37641
37642         * build-aux/bootstrap: Sync from coreutils:
37643         2007-10-24  Jim Meyering  <meyering@redhat.com>
37644         Get gnulib from the git repository, not from an obsolete cvs one.
37645         * build-aux/bootstrap: Suggestion from Micah Cowan.
37646         2007-10-04  Jim Meyering  <jim@meyering.net>
37647         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37648         (update_po_files): Work also when there are no .po files in po/.
37649
37650 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37651
37652         * README: Append ".git" to git and cg examples.
37653         Problem reported by Benoit Sigoure.
37654
37655 2007-10-23  Micah Cowan  <micah@cowan.name>
37656
37657         * users.txt: Add wget.
37658
37659 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37660
37661         Fix linking of some unistdio tests on FreeBSD.
37662         * modules/unistdio/u16-vsnprintf-tests
37663         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37664         * modules/unistdio/u16-vsprintf-tests
37665         (test_u16_vsnprintf1_LDADD): Likewise.
37666         * modules/unistdio/u32-vsnprintf-tests
37667         (test_u32_vsnprintf1_LDADD): Likewise.
37668         * modules/unistdio/u32-vsprintf-tests
37669         (test_u32_vsprintf1_LDADD): Likewise.
37670         * modules/unistdio/u8-vsnprintf-tests
37671         (test_u8_vsnprintf1_LDADD): Likewise.
37672         * modules/unistdio/u8-vsprintf-tests
37673         (test_u8_vsprintf1_LDADD): Likewise.
37674         * modules/unistdio/ulc-vsnprintf-tests
37675         (test_ulc_vsnprintf1_LDADD): Likewise.
37676         * modules/unistdio/ulc-vsprintf-tests
37677         (test_ulc_vsprintf1_LDADD): Likewise.
37678
37679         Fix linking of some uniconv tests on FreeBSD.
37680         * modules/uniconv/u16-conv-from-enc-tests
37681         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37682         * modules/uniconv/u16-conv-to-enc-tests
37683         (test_u16_conv_to_enc_LDADD): Likewise.
37684         * modules/uniconv/u16-strconv-from-enc-tests
37685         (test_u16_strconv_from_enc_LDADD): Likewise.
37686         * modules/uniconv/u16-strconv-to-enc-tests
37687         (test_u16_strconv_to_enc_LDADD): Likewise.
37688         * modules/uniconv/u32-conv-from-enc-tests
37689         (test_u32_conv_from_enc_LDADD): Likewise.
37690         * modules/uniconv/u32-conv-to-enc-tests
37691         (test_u32_conv_to_enc_LDADD): Likewise.
37692         * modules/uniconv/u32-strconv-from-enc-tests
37693         (test_u32_strconv_from_enc_LDADD): Likewise.
37694         * modules/uniconv/u32-strconv-to-enc-tests
37695         (test_u32_strconv_to_enc_LDADD): Likewise.
37696         * modules/uniconv/u8-conv-from-enc-tests
37697         (test_u8_conv_from_enc_LDADD): Likewise.
37698         * modules/uniconv/u8-conv-to-enc-tests
37699         (test_u8_conv_to_enc_LDADD): Likewise.
37700         * modules/uniconv/u8-strconv-from-enc-tests
37701         (test_u8_strconv_from_enc_LDADD): Likewise.
37702         * modules/uniconv/u8-strconv-to-enc-tests
37703         (test_u8_strconv_to_enc_LDADD): Likewise.
37704
37705 2007-10-22  Bruno Haible  <bruno@clisp.org>
37706
37707         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37708         size.
37709
37710 2007-10-22  Eric Blake  <ebb9@byu.net>
37711
37712         Tweak x*printf documentation.
37713         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37714         variable name and comments.
37715         Suggested by Bruno Haible.
37716
37717 2007-10-22  Bruno Haible  <bruno@clisp.org>
37718
37719         * lib/acl.c (copy_acl): Fix file name in comment.
37720
37721 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37722
37723         Fix Tru64 problem with stdbool.h.
37724         * lib/stdbool.in.h (false, true):
37725         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37726         Don't declare as an enum in this situation; it runs afoul of Tru64.
37727         Problem reported by Steven M. Schweda in
37728         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37729
37730 2007-10-22  Eric Blake  <ebb9@byu.net>
37731
37732         Also wrap vf?printf.
37733         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37734         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37735         (xvprintf, xvfprintf): New functions.
37736
37737 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37738
37739         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37740         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37741
37742         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37743         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37744
37745 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37746
37747         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37748         by Bruno Haible.
37749
37750 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37751
37752         * lib/getloadavg.c
37753         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37754         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37755
37756         * tests/test-i-ring.c: Work for C89.
37757
37758 2007-10-22  Bruno Haible  <bruno@clisp.org>
37759
37760         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37761         -1u, in preprocessor expression, so that we don't test for the bug
37762         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37764
37765 2007-10-22  Eric Blake  <ebb9@byu.net>
37766
37767         * tests/test-yesno.sh: Silence stderr during test.
37768
37769 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37770
37771         * modules/crypto/gc-camellia: New file.
37772
37773         * m4/gc-camellia.m4: New file.
37774
37775         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37776
37777         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37778
37779 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37780
37781         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37782         --help to stdout.  Reported by sms@antinode.org (Steven
37783         M. Schweda).
37784
37785 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37786
37787         * users.txt: Fix link to libksba.
37788
37789 2007-10-21  Ben Pfaff  <blp@gnu.org>
37790
37791         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37792         round.c roundf implementation that depends on floorf and ceilf to
37793         be tested unconditionally.
37794
37795 2007-10-21  Ben Pfaff  <blp@gnu.org>
37796
37797         * m4/check-libm-func.m4: Removed.
37798         * m4/check-math-lib.m4: New file.
37799         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37800         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37801         definition and lack of AC_LIBOBJ([roundf]).
37802         * m4/roundl.m4: Ditto, and similarly for roundl.
37803         * modules/round: Reference new m4 file.
37804         * modules/roundf: Ditto.
37805         * modules/roundl: Ditto.
37806         * tests/test-round2.c (main): Use ROUND instead of round.
37807         Bug report from Bruno Haible.
37808
37809 2007-10-21  Bruno Haible  <bruno@clisp.org>
37810
37811         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37812         context.
37813
37814 2007-10-21  Bruno Haible  <bruno@clisp.org>
37815
37816         * tests/test-wcwidth.c (main): Allow negative result for some control
37817         characters.
37818
37819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37820         Needed on OSF/1 5.1.
37821
37822 2007-10-21  Bruno Haible  <bruno@clisp.org>
37823
37824         * tests/test-floorf1.c: Include isnanf.h.
37825         (main): Use isnanf() instead of isnan().
37826         * tests/test-ceilf1.c: Include isnanf.h.
37827         (main): Use isnanf() instead of isnan().
37828         * tests/test-truncf1.c: Include isnanf.h.
37829         (main): Use isnanf() instead of isnan().
37830         * tests/test-roundf1.c: Include isnanf.h.
37831         (main): Use isnanf() instead of isnan().
37832
37833 2007-10-21  Eric Blake  <ebb9@byu.net>
37834
37835         * users.txt: Update URL for m4.
37836
37837 2007-10-21  Bruno Haible  <bruno@clisp.org>
37838
37839         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37840
37841 2007-10-21  Bruno Haible  <bruno@clisp.org>
37842
37843         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37844         Git's management files if the CVS files are not present.
37845
37846 2007-10-20  Bruno Haible  <bruno@clisp.org>
37847
37848         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37849         gcc-3.4.x.
37850
37851 2007-10-20  Ben Pfaff  <blp@gnu.org>
37852
37853         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37854         implementations.
37855         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37856         * lib/round.c: New file.
37857         * lib/roundf.c: New file.
37858         * lib/roundl.c: New file.
37859         * m4/round.m4: New file.
37860         * m4/roundf.m4: New file.
37861         * m4/roundl.m4: New file.
37862         * m4/check-libm-func-m4: New file.
37863         * modules/math: Replace round, roundf, roundl related @VARS@ in
37864         math.in.h.
37865         * modules/round: New file.
37866         * modules/round-tests: New file.
37867         * modules/roundf: New file.
37868         * modules/roundf-tests: New file.
37869         * modules/roundl: New file.
37870         * modules/roundl-tests: New file.
37871         * tests/test-round1.c: New file.
37872         * tests/test-round2.c: New file.
37873         * tests/test-roundf1.c: New file.
37874         * tests/test-roundf2.c: New file.
37875         * tests/test-roundl.c: New file.
37876         * doc/functions/round.texi: Mention round module.
37877         * doc/functions/roundf.texi: Mention roundf module.
37878         * doc/functions/roundl.texi: Mention roundl module.
37879         * MODULES.html.sh: Mention new modules.
37880         Thanks to Bruno Haible for suggestions.
37881
37882 2007-10-20  Jim Meyering  <meyering@redhat.com>
37883
37884         * lib/xprintf.c: Include <config.h> unconditionally.
37885
37886         Change xprintf's license to GPL.
37887         * modules/xprintf (License): s/LGPL/GPL/, since this module
37888         depends on modules (exit and exitfail) which are GPL.
37889         Suggestion from Bruno Haible.
37890
37891         xprintf fixes.
37892         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37893         Use a clearer diagnostic.
37894         Patch from Bruno Haible.
37895
37896 2007-10-20  Bruno Haible  <bruno@clisp.org>
37897
37898         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37899         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37900         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37901
37902 2007-10-20  Bruno Haible  <bruno@clisp.org>
37903
37904         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37905         precision in the comparison result > x - 1 or similar.
37906         * tests/test-ceilf2.c (correct_result_p): Likewise.
37907         * tests/test-truncf2.c (correct_result_p): Likewise.
37908         * tests/test-trunc2.c (correct_result_p): Likewise.
37909         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37910
37911 2007-10-20  Bruno Haible  <bruno@clisp.org>
37912
37913         * modules/ceil: New file.
37914         * m4/ceil.m4: New file.
37915         * doc/functions/ceil.texi: Mention the 'ceil' module.
37916
37917 2007-10-20  Bruno Haible  <bruno@clisp.org>
37918
37919         * modules/floor: New file.
37920         * m4/floor.m4: New file.
37921         * doc/functions/floor.texi: Mention the 'floor' module.
37922
37923 2007-10-20  Bruno Haible  <bruno@clisp.org>
37924
37925         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37926         of %a.
37927         * modules/floorf-tests (Depends-on): Likewise.
37928         * modules/truncf-tests (Depends-on): Likewise.
37929         * modules/trunc-tests (Depends-on): Likewise.
37930         Reported by Ben Pfaff.
37931
37932 2007-10-19  Jim Meyering  <meyering@redhat.com>
37933
37934         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37935         Don't bother testing specific errno values.  Just test ferror.
37936
37937         New module: xprintf
37938         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37939
37940 2007-10-19  Bruno Haible  <bruno@clisp.org>
37941
37942         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37943         syntax.
37944         * modules/javaexec (Makefile.am): Likewise.
37945         * modules/relocatable-prog (Makefile.am): Likewise.
37946         Suggested by Jim Meyering.
37947
37948 2007-10-18  Bruno Haible  <bruno@clisp.org>
37949
37950         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37951         Reported by Jim Meyering.
37952
37953 2007-10-18  Eric Blake  <ebb9@byu.net>
37954
37955         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37956
37957 2007-10-18  Bruno Haible  <bruno@clisp.org>
37958
37959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37960         the format string into writable memory. Needed in Fortify conditions.
37961
37962 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37963             Bruno Haible  <bruno@clisp.org>
37964
37965         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37966         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37967         * modules/trim (Depends-on): Add mbchar.
37968         (configure.ac): Add gl_FUNC_MBRTOWC.
37969         (Makefile.am): Augment lib_SOURCES.
37970
37971 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37972
37973         Modify glob.c to use fstatat and dirfd, to simplify it.
37974         Suggested by Eric Blake.
37975         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37976         Don't include <stdbool.h>; not used.
37977         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
37978         (link_exists_p): Simplify implementation, since we can now assume
37979         dirfd and fstatat.
37980         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
37981
37982 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37983
37984         * gnulib-tool (func_get_dependencies): Fix sed script to
37985         match only tests.
37986
37987 2007-10-17  Bruno Haible  <bruno@clisp.org>
37988
37989         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37990         allow locale names without encoding suffix.
37991         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37992         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37993
37994 2007-10-16  Bruno Haible  <bruno@clisp.org>
37995
37996         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37997         * lib/getgroups.c (getgroups): Likewise.
37998         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37999
38000 2007-10-16  Bruno Haible  <bruno@clisp.org>
38001
38002         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
38003         * modules/malloc-posix (License): Likewise.
38004         * modules/realloc-posix (License): Likewise.
38005         * modules/calloc-posix (License): Likewise.
38006         * modules/intprops (License): Change from GPL to LGPL, with
38007         Paul Eggert's approval.
38008
38009 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38010
38011         Merge glibc changes into lib/glob.c.
38012
38013         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
38014         2007-10-15 04:59:03 UTC.  Here are the changes:
38015
38016         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
38017
38018         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
38019
38020         * lib/glob.c: Add some branch prediction throughout.
38021
38022         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
38023
38024         [BZ #5103]
38025         * lib/glob.c (glob): Recognize patterns starting \/.
38026
38027         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
38028
38029         [BZ #3996]
38030         * lib/glob.c (attribute_hidden): Define if not defined.
38031         (glob): Unescape dirname, filename or username when needed and not
38032         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
38033         is NULL.  Handle unescaped [ in pattern without closing ].
38034         Don't pass GLOB_CHECK down to recursive glob for directories.
38035         (__glob_pattern_type): New function.
38036         (__glob_pattern_p): Implement using __glob_pattern_type.
38037         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
38038         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
38039         Remove unreachable code.
38040
38041         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
38042
38043         * lib/glob.c (glob_in_dir): Add some comments and asserts to
38044         explain why there are no leaks.
38045
38046         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
38047
38048         [BZ #3253]
38049         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
38050         time, rather allocate increasingly bigger arrays of pointers, if
38051         possible with alloca, if too large with malloc.
38052
38053 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38054
38055         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
38056         Problem reported by H.Merijn Brand in
38057         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
38058         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
38059         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
38060
38061 2007-10-15  Bruno Haible  <bruno@clisp.org>
38062
38063         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
38064         with explicit rpl_ prefix.
38065         * lib/fopen.c (fopen): Likewise.
38066         * lib/freopen.c (freopen): Likewise.
38067         * lib/iconv.c (iconv): Likewise.
38068         * lib/iconv_close.c (iconv_close): Likewise.
38069
38070 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38071
38072         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
38073
38074 2007-10-15  Bruno Haible  <bruno@clisp.org>
38075
38076         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38077         <stddef.h> instead of <stdlib.h> since we only need NULL.
38078         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38079
38080 2007-10-15  Bruno Haible  <bruno@clisp.org>
38081
38082         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38083         Replace paragraph talking about LIBOBJS.
38084         Reported by Colin Watson <cjwatson@debian.org>.
38085
38086 2007-10-15  Bruno Haible  <bruno@clisp.org>
38087
38088         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38089         <stdlib.h> before using NULL.
38090
38091 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38092
38093         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38094         Reported by Albert Chin <china@thewrittenword.com>.
38095
38096 2007-10-14  Bruno Haible  <bruno@clisp.org>
38097
38098         * modules/iconv_open-utf-tests: New file.
38099         * tests/test-iconv-utf.c: New file.
38100
38101         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38102         * modules/iconv_open-utf: New file.
38103         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38104         (iconv, iconv_close): New declarations.
38105         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38106         be defined.
38107         (iconv_open): Add special handling of conversion between UTF-8 and
38108         UTF-{16,32}{BE,LE}.
38109         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38110         * lib/iconv_close.c: New file.
38111         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38112         gl_FUNC_ICONV_OPEN.
38113         (gl_FUNC_ICONV_OPEN): Use it.
38114         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38115         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38116         and REPLACE_ICONV_UTF.
38117         * modules/iconv_open (Depends-on): Add c-strcase.
38118         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38119         ICONV_CONST.
38120         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38121
38122 2007-10-13  Albert Chin  <china@thewrittenword.com>
38123             Bruno Haible  <bruno@clisp.org>
38124
38125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38126         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38127
38128 2007-10-13  Bruno Haible  <bruno@clisp.org>
38129
38130         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38131         defined, use the ISO C99 inline semantics.
38132         * lib/argp.h (ARGP_EI): Likewise.
38133
38134 2007-10-13  Bruno Haible  <bruno@clisp.org>
38135
38136         Handle 'inline' change in gcc 4.3.0.
38137         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38138         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38139         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38140         argp_fmtstream_point): Disable 'extern' declaration if the function
38141         definition is going to be provided inline.
38142         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38143         semantics, not the ISO C99 inline semantics.
38144         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38145         'extern' declaration if the function definition is going to be provided
38146         inline.
38147         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38148         the GNU C inline semantics, not the ISO C99 inline semantics. With
38149         GCC 4.2, avoid a warning.
38150
38151 2007-10-13  Bruno Haible  <bruno@clisp.org>
38152
38153         * lib/freading.h (freading): Enable the use of __freading for
38154         glibc >= 2.7.
38155         * lib/freading.c (freading): Likewise.
38156
38157 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38158
38159         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38160         "warning: C99 inline functions are not supported; using GNU89".
38161
38162 2007-10-12  Bruno Haible  <bruno@clisp.org>
38163
38164         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38165         of 2.
38166         * tests/test-ceilf2.c: New file.
38167         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38168
38169         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38170         * modules/ceilf-tests: Update.
38171
38172 2007-10-12  Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38175         of 2.
38176         * tests/test-floorf2.c: New file.
38177         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38178
38179         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38180         * modules/floorf-tests: Update.
38181
38182 2007-10-12  Bruno Haible  <bruno@clisp.org>
38183
38184         * tests/test-trunc2.c: New file.
38185         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38186
38187         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38188         * modules/trunc-tests: Update.
38189
38190 2007-10-12  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38193         of 2.
38194         * tests/test-truncf2.c: New file.
38195         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38196
38197         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38198         * modules/truncf-tests: Update.
38199
38200 2007-10-11  Eric Blake  <ebb9@byu.net>
38201
38202         Don't claim strerror is broken on Interix.
38203         * doc/functions/strerror.texi (strerror): Known broken systems are
38204         now Solaris 8, and not Interix.
38205         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38206         Interix on cross-compile.
38207         Reported by Martin Koeppe in
38208         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38209
38210 2007-10-11  Bruno Haible  <bruno@clisp.org>
38211
38212         * modules/i-ring-tests: New file.
38213         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38214         instead of assert.
38215
38216 2007-10-11  Bruno Haible  <bruno@clisp.org>
38217
38218         * modules/filenamecat-tests: New file.
38219         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38220         * lib/filenamecat.c: Remove test code.
38221
38222 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38223
38224         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38225
38226         * lib/strerror.c: Include <string.h> always, to test interface,
38227         and to remove the need for the dummy.
38228         Include intprops.h to compute width instead of doing it ourselves
38229         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38230         (strerror): Define it to return NULL if there's no system strerror.
38231         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38232         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38233         ancient pre-strerror Unix systems well any more.  Saying "unknown
38234         system error" is enough.
38235         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38236         simpler strerror.c implementation.
38237         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38238         Simplify the tests to reflect the simpler strerror implementation.
38239         * modules/strerror (Depends-on): Add intprops.
38240
38241 2007-10-09  Eric Blake  <ebb9@byu.net>
38242
38243         Silence test-fpending.
38244         * modules/fpending-tests (Files): Add wrapper script.
38245         * tests/test-fpending.sh: New file.
38246
38247 2007-10-09  Bruno Haible  <bruno@clisp.org>
38248
38249         * MODULES.html.sh (func_module): Don't create a hyperlink for
38250         function names like 'printf_frexp'.
38251         (Misc): Add crc, memxor.
38252         (Characteristics of floating types): New section.
38253         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38254         isnanf-nolibm, signbit, trunc, truncf, truncl.
38255         (Enhancements for ISO C 99 functions): New subsection Input/output.
38256         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38257         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38258         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38259         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38260         (Enhancements for POSIX:2001 functions): Add chdir-long.
38261         (File system functions): Add areadlink, chdir-safer, read-file.
38262         Remove cycle-check.
38263         (File system as inode set): New section.
38264         (Date and time): Add gethrxtime.
38265         (Multithreading): Add openmp.
38266         (Internationalization functions): Add localename.
38267         (Unicode string functions): Add unistr/u*-mbsnlen.
38268         (Support for maintaining and releasing projects): Add git-version-gen.
38269         (Lone files): Remove directories.
38270
38271 2007-10-08  Ben Pfaff  <blp@gnu.org>
38272
38273         * lib/xmalloca.h: Fix typo in comment.
38274
38275 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38276
38277         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38278         when avoiding problems with integer overflow.  Use a portable test
38279         instead.
38280
38281 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38282
38283         * modules/dummy (License): Change to LGPLv2+.
38284         * modules/float (License): Likewise
38285         * modules/realloc (License): Likewise
38286         * modules/stdlib (License): Likewise
38287
38288 2007-10-07  Bruno Haible  <bruno@clisp.org>
38289
38290         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38291         * floor.c (TWO_MANT_DIG): Likewise.
38292         * ceil.c (TWO_MANT_DIG): Likewise.
38293         Reported by Ben Pfaff.
38294
38295 2007-10-07  Bruno Haible  <bruno@clisp.org>
38296
38297         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38298         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38299         * lib/frexp.c (FUNC): Likewise.
38300         * lib/printf-frexp.h (printf_frexp): Likewise.
38301         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38302         * lib/printf-frexp.c (FUNC): Likewise.
38303         Suggested by Jim Meyering.
38304
38305 2007-10-07  Jim Meyering  <meyering@redhat.com>
38306
38307         Make xnanosleep's integer overflow test more robust.
38308         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38309         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38310
38311 2007-10-07  Bruno Haible  <bruno@clisp.org>
38312
38313         * NEWS: Mention the license change.
38314
38315         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38316         abbreviations in the modules files.
38317
38318         Change copyright notice from GPLv2+ to GPLv3+.
38319         * README: Change copyright notice.
38320         * MODULES.html.sh: Likewise.
38321         * build-aux/bootstrap.conf: Likewise.
38322         * build-aux/config.libpath: Likewise.
38323         * build-aux/csharpcomp.sh.in: Likewise.
38324         * build-aux/csharpexec.sh.in: Likewise.
38325         * build-aux/install-reloc: Likewise.
38326         * build-aux/javacomp.sh.in: Likewise.
38327         * build-aux/javaexec.sh.in: Likewise.
38328         * build-aux/ldd.sh.in: Likewise.
38329         * build-aux/reloc-ldflags: Likewise.
38330         * build-aux/relocatable.sh.in: Likewise.
38331         * build-aux/x-to-1.in: Likewise.
38332         * check-module: Likewise.
38333         * config/srclistvars.sh: Likewise.
38334         * gnulib-tool: Likewise.
38335         * lib/acl-internal.h: Likewise.
38336         * lib/acl.c: Likewise.
38337         * lib/acl.h: Likewise.
38338         * lib/acl_entries.c: Likewise.
38339         * lib/areadlink-with-size.c: Likewise.
38340         * lib/areadlink.c: Likewise.
38341         * lib/areadlink.h: Likewise.
38342         * lib/argmatch.c: Likewise.
38343         * lib/argmatch.h: Likewise.
38344         * lib/argp-ba.c: Likewise.
38345         * lib/argp-eexst.c: Likewise.
38346         * lib/argp-fmtstream.c: Likewise.
38347         * lib/argp-fmtstream.h: Likewise.
38348         * lib/argp-fs-xinl.c: Likewise.
38349         * lib/argp-help.c: Likewise.
38350         * lib/argp-namefrob.h: Likewise.
38351         * lib/argp-parse.c: Likewise.
38352         * lib/argp-pin.c: Likewise.
38353         * lib/argp-pv.c: Likewise.
38354         * lib/argp-pvh.c: Likewise.
38355         * lib/argp-xinl.c: Likewise.
38356         * lib/argp.h: Likewise.
38357         * lib/at-func.c: Likewise.
38358         * lib/atanl.c: Likewise.
38359         * lib/backupfile.c: Likewise.
38360         * lib/backupfile.h: Likewise.
38361         * lib/basename.c: Likewise.
38362         * lib/binary-io.h: Likewise.
38363         * lib/byteswap.in.h: Likewise.
38364         * lib/c-stack.c: Likewise.
38365         * lib/c-stack.h: Likewise.
38366         * lib/c-strcasestr.c: Likewise.
38367         * lib/c-strcasestr.h: Likewise.
38368         * lib/c-strstr.c: Likewise.
38369         * lib/c-strstr.h: Likewise.
38370         * lib/c-strtod.c: Likewise.
38371         * lib/calloc.c: Likewise.
38372         * lib/canon-host.c: Likewise.
38373         * lib/canon-host.h: Likewise.
38374         * lib/canonicalize-lgpl.c: Likewise.
38375         * lib/canonicalize.c: Likewise.
38376         * lib/canonicalize.h: Likewise.
38377         * lib/ceil.c: Likewise.
38378         * lib/ceilf.c: Likewise.
38379         * lib/ceill.c: Likewise.
38380         * lib/chdir-long.c: Likewise.
38381         * lib/chdir-long.h: Likewise.
38382         * lib/chdir-safer.c: Likewise.
38383         * lib/chdir-safer.h: Likewise.
38384         * lib/chown.c: Likewise.
38385         * lib/classpath.c: Likewise.
38386         * lib/classpath.h: Likewise.
38387         * lib/clean-temp.c: Likewise.
38388         * lib/clean-temp.h: Likewise.
38389         * lib/cloexec.c: Likewise.
38390         * lib/close-stream.c: Likewise.
38391         * lib/closein.c: Likewise.
38392         * lib/closein.h: Likewise.
38393         * lib/closeout.c: Likewise.
38394         * lib/closeout.h: Likewise.
38395         * lib/concat-filename.c: Likewise.
38396         * lib/copy-file.c: Likewise.
38397         * lib/copy-file.h: Likewise.
38398         * lib/count-one-bits.h: Likewise.
38399         * lib/crc.c: Likewise.
38400         * lib/crc.h: Likewise.
38401         * lib/creat-safer.c: Likewise.
38402         * lib/csharpcomp.c: Likewise.
38403         * lib/csharpcomp.h: Likewise.
38404         * lib/csharpexec.c: Likewise.
38405         * lib/csharpexec.h: Likewise.
38406         * lib/cycle-check.c: Likewise.
38407         * lib/cycle-check.h: Likewise.
38408         * lib/diacrit.c: Likewise.
38409         * lib/diacrit.h: Likewise.
38410         * lib/diffseq.h: Likewise.
38411         * lib/dirchownmod.c: Likewise.
38412         * lib/dirent.in.h: Likewise.
38413         * lib/dirfd.c: Likewise.
38414         * lib/dirfd.h: Likewise.
38415         * lib/dirname.c: Likewise.
38416         * lib/dirname.h: Likewise.
38417         * lib/dummy.c: Likewise.
38418         * lib/dup-safer.c: Likewise.
38419         * lib/dup2.c: Likewise.
38420         * lib/eealloc.h: Likewise.
38421         * lib/error.c: Likewise.
38422         * lib/error.h: Likewise.
38423         * lib/euidaccess.c: Likewise.
38424         * lib/exclude.c: Likewise.
38425         * lib/exclude.h: Likewise.
38426         * lib/execute.c: Likewise.
38427         * lib/execute.h: Likewise.
38428         * lib/exitfail.c: Likewise.
38429         * lib/exitfail.h: Likewise.
38430         * lib/expl.c: Likewise.
38431         * lib/fatal-signal.c: Likewise.
38432         * lib/fatal-signal.h: Likewise.
38433         * lib/fbufmode.c: Likewise.
38434         * lib/fbufmode.h: Likewise.
38435         * lib/fchdir.c: Likewise.
38436         * lib/fchmodat.c: Likewise.
38437         * lib/fchownat.c: Likewise.
38438         * lib/fcntl--.h: Likewise.
38439         * lib/fcntl-safer.h: Likewise.
38440         * lib/fcntl.in.h: Likewise.
38441         * lib/fd-safer.c: Likewise.
38442         * lib/fflush.c: Likewise.
38443         * lib/file-has-acl.c: Likewise.
38444         * lib/file-set.c: Likewise.
38445         * lib/file-type.c: Likewise.
38446         * lib/file-type.h: Likewise.
38447         * lib/fileblocks.c: Likewise.
38448         * lib/filemode.c: Likewise.
38449         * lib/filemode.h: Likewise.
38450         * lib/filename.h: Likewise.
38451         * lib/filenamecat.c: Likewise.
38452         * lib/filenamecat.h: Likewise.
38453         * lib/findprog.c: Likewise.
38454         * lib/findprog.h: Likewise.
38455         * lib/float.in.h: Likewise.
38456         * lib/floor.c: Likewise.
38457         * lib/floorf.c: Likewise.
38458         * lib/floorl.c: Likewise.
38459         * lib/fopen-safer.c: Likewise.
38460         * lib/fopen.c: Likewise.
38461         * lib/fpending.c: Likewise.
38462         * lib/fpending.h: Likewise.
38463         * lib/fprintf.c: Likewise.
38464         * lib/fprintftime.h: Likewise.
38465         * lib/fpucw.h: Likewise.
38466         * lib/fpurge.c: Likewise.
38467         * lib/fpurge.h: Likewise.
38468         * lib/freadable.c: Likewise.
38469         * lib/freadable.h: Likewise.
38470         * lib/freadahead.c: Likewise.
38471         * lib/freadahead.h: Likewise.
38472         * lib/freading.c: Likewise.
38473         * lib/freading.h: Likewise.
38474         * lib/free.c: Likewise.
38475         * lib/freopen.c: Likewise.
38476         * lib/frexp.c: Likewise.
38477         * lib/frexpl.c: Likewise.
38478         * lib/fseek.c: Likewise.
38479         * lib/fseterr.c: Likewise.
38480         * lib/fseterr.h: Likewise.
38481         * lib/fstatat.c: Likewise.
38482         * lib/fstrcmp.c: Likewise.
38483         * lib/fstrcmp.h: Likewise.
38484         * lib/fsusage.c: Likewise.
38485         * lib/fsusage.h: Likewise.
38486         * lib/ftell.c: Likewise.
38487         * lib/ftello.c: Likewise.
38488         * lib/fts-cycle.c: Likewise.
38489         * lib/fts.c: Likewise.
38490         * lib/fts_.h: Likewise.
38491         * lib/full-read.c: Likewise.
38492         * lib/full-read.h: Likewise.
38493         * lib/full-write.c: Likewise.
38494         * lib/full-write.h: Likewise.
38495         * lib/fwritable.c: Likewise.
38496         * lib/fwritable.h: Likewise.
38497         * lib/fwriteerror.c: Likewise.
38498         * lib/fwriteerror.h: Likewise.
38499         * lib/fwriting.c: Likewise.
38500         * lib/fwriting.h: Likewise.
38501         * lib/gcd.c: Likewise.
38502         * lib/gcd.h: Likewise.
38503         * lib/getcwd.c: Likewise.
38504         * lib/getdate.h: Likewise.
38505         * lib/getdate.y: Likewise.
38506         * lib/getdomainname.c: Likewise.
38507         * lib/getdomainname.h: Likewise.
38508         * lib/getgroups.c: Likewise.
38509         * lib/gethostname.c: Likewise.
38510         * lib/gethrxtime.c: Likewise.
38511         * lib/gethrxtime.h: Likewise.
38512         * lib/getloadavg.c: Likewise.
38513         * lib/getndelim2.c: Likewise.
38514         * lib/getndelim2.h: Likewise.
38515         * lib/getnline.c: Likewise.
38516         * lib/getnline.h: Likewise.
38517         * lib/getopt.c: Likewise.
38518         * lib/getopt.in.h: Likewise.
38519         * lib/getopt1.c: Likewise.
38520         * lib/getopt_int.h: Likewise.
38521         * lib/getpagesize.h: Likewise.
38522         * lib/getsubopt.c: Likewise.
38523         * lib/gettime.c: Likewise.
38524         * lib/getugroups.c: Likewise.
38525         * lib/getugroups.h: Likewise.
38526         * lib/getusershell.c: Likewise.
38527         * lib/gl_anyavltree_list1.h: Likewise.
38528         * lib/gl_anyavltree_list2.h: Likewise.
38529         * lib/gl_anyhash_list1.h: Likewise.
38530         * lib/gl_anyhash_list2.h: Likewise.
38531         * lib/gl_anylinked_list1.h: Likewise.
38532         * lib/gl_anylinked_list2.h: Likewise.
38533         * lib/gl_anyrbtree_list1.h: Likewise.
38534         * lib/gl_anyrbtree_list2.h: Likewise.
38535         * lib/gl_anytree_list1.h: Likewise.
38536         * lib/gl_anytree_list2.h: Likewise.
38537         * lib/gl_anytree_oset.h: Likewise.
38538         * lib/gl_anytreehash_list1.h: Likewise.
38539         * lib/gl_anytreehash_list2.h: Likewise.
38540         * lib/gl_array_list.c: Likewise.
38541         * lib/gl_array_list.h: Likewise.
38542         * lib/gl_array_oset.c: Likewise.
38543         * lib/gl_array_oset.h: Likewise.
38544         * lib/gl_avltree_list.c: Likewise.
38545         * lib/gl_avltree_list.h: Likewise.
38546         * lib/gl_avltree_oset.c: Likewise.
38547         * lib/gl_avltree_oset.h: Likewise.
38548         * lib/gl_avltreehash_list.c: Likewise.
38549         * lib/gl_avltreehash_list.h: Likewise.
38550         * lib/gl_carray_list.c: Likewise.
38551         * lib/gl_carray_list.h: Likewise.
38552         * lib/gl_linked_list.c: Likewise.
38553         * lib/gl_linked_list.h: Likewise.
38554         * lib/gl_linkedhash_list.c: Likewise.
38555         * lib/gl_linkedhash_list.h: Likewise.
38556         * lib/gl_list.c: Likewise.
38557         * lib/gl_list.h: Likewise.
38558         * lib/gl_oset.c: Likewise.
38559         * lib/gl_oset.h: Likewise.
38560         * lib/gl_rbtree_list.c: Likewise.
38561         * lib/gl_rbtree_list.h: Likewise.
38562         * lib/gl_rbtree_oset.c: Likewise.
38563         * lib/gl_rbtree_oset.h: Likewise.
38564         * lib/gl_rbtreehash_list.c: Likewise.
38565         * lib/gl_rbtreehash_list.h: Likewise.
38566         * lib/gl_sublist.c: Likewise.
38567         * lib/gl_sublist.h: Likewise.
38568         * lib/group-member.c: Likewise.
38569         * lib/group-member.h: Likewise.
38570         * lib/hard-locale.c: Likewise.
38571         * lib/hard-locale.h: Likewise.
38572         * lib/hash-pjw.c: Likewise.
38573         * lib/hash-pjw.h: Likewise.
38574         * lib/hash-triple.c: Likewise.
38575         * lib/hash.c: Likewise.
38576         * lib/hash.h: Likewise.
38577         * lib/human.c: Likewise.
38578         * lib/human.h: Likewise.
38579         * lib/i-ring.c: Likewise.
38580         * lib/i-ring.h: Likewise.
38581         * lib/idcache.c: Likewise.
38582         * lib/imaxabs.c: Likewise.
38583         * lib/imaxdiv.c: Likewise.
38584         * lib/inet_pton.c: Likewise.
38585         * lib/inet_pton.h: Likewise.
38586         * lib/intprops.h: Likewise.
38587         * lib/inttostr.c: Likewise.
38588         * lib/inttostr.h: Likewise.
38589         * lib/inttypes.in.h: Likewise.
38590         * lib/isapipe.c: Likewise.
38591         * lib/isdir.c: Likewise.
38592         * lib/isnan.c: Likewise.
38593         * lib/isnan.h: Likewise.
38594         * lib/isnanf.c: Likewise.
38595         * lib/isnanf.h: Likewise.
38596         * lib/isnanl-nolibm.h: Likewise.
38597         * lib/isnanl.c: Likewise.
38598         * lib/isnanl.h: Likewise.
38599         * lib/javacomp.c: Likewise.
38600         * lib/javacomp.h: Likewise.
38601         * lib/javaexec.c: Likewise.
38602         * lib/javaexec.h: Likewise.
38603         * lib/javaversion.c: Likewise.
38604         * lib/javaversion.h: Likewise.
38605         * lib/javaversion.java: Likewise.
38606         * lib/lbrkprop.h: Likewise.
38607         * lib/lchmod.h: Likewise.
38608         * lib/lchown.c: Likewise.
38609         * lib/ldexpl.c: Likewise.
38610         * lib/linebreak.c: Likewise.
38611         * lib/linebreak.h: Likewise.
38612         * lib/linebuffer.c: Likewise.
38613         * lib/linebuffer.h: Likewise.
38614         * lib/locale.in.h: Likewise.
38615         * lib/logl.c: Likewise.
38616         * lib/long-options.c: Likewise.
38617         * lib/long-options.h: Likewise.
38618         * lib/lstat.c: Likewise.
38619         * lib/lstat.h: Likewise.
38620         * lib/math.in.h: Likewise.
38621         * lib/mbchar.c: Likewise.
38622         * lib/mbchar.h: Likewise.
38623         * lib/mbfile.h: Likewise.
38624         * lib/mbiter.h: Likewise.
38625         * lib/mbscasecmp.c: Likewise.
38626         * lib/mbscasestr.c: Likewise.
38627         * lib/mbschr.c: Likewise.
38628         * lib/mbscspn.c: Likewise.
38629         * lib/mbslen.c: Likewise.
38630         * lib/mbsncasecmp.c: Likewise.
38631         * lib/mbsnlen.c: Likewise.
38632         * lib/mbspbrk.c: Likewise.
38633         * lib/mbspcasecmp.c: Likewise.
38634         * lib/mbsrchr.c: Likewise.
38635         * lib/mbssep.c: Likewise.
38636         * lib/mbsspn.c: Likewise.
38637         * lib/mbsstr.c: Likewise.
38638         * lib/mbstok_r.c: Likewise.
38639         * lib/mbswidth.c: Likewise.
38640         * lib/mbswidth.h: Likewise.
38641         * lib/mbuiter.h: Likewise.
38642         * lib/memcasecmp.c: Likewise.
38643         * lib/memcasecmp.h: Likewise.
38644         * lib/memchr.c: Likewise.
38645         * lib/memcmp.c: Likewise.
38646         * lib/memcoll.c: Likewise.
38647         * lib/memcoll.h: Likewise.
38648         * lib/memcpy.c: Likewise.
38649         * lib/memrchr.c: Likewise.
38650         * lib/mkancesdirs.c: Likewise.
38651         * lib/mkdir-p.c: Likewise.
38652         * lib/mkdir-p.h: Likewise.
38653         * lib/mkdir.c: Likewise.
38654         * lib/mkdirat.c: Likewise.
38655         * lib/mkdtemp.c: Likewise.
38656         * lib/mkstemp-safer.c: Likewise.
38657         * lib/mkstemp.c: Likewise.
38658         * lib/modechange.c: Likewise.
38659         * lib/modechange.h: Likewise.
38660         * lib/mountlist.c: Likewise.
38661         * lib/mountlist.h: Likewise.
38662         * lib/mpsort.c: Likewise.
38663         * lib/nanosleep.c: Likewise.
38664         * lib/obstack.c: Likewise.
38665         * lib/obstack.h: Likewise.
38666         * lib/open-safer.c: Likewise.
38667         * lib/open.c: Likewise.
38668         * lib/openat-die.c: Likewise.
38669         * lib/openat-priv.h: Likewise.
38670         * lib/openat-proc.c: Likewise.
38671         * lib/openat.c: Likewise.
38672         * lib/openat.h: Likewise.
38673         * lib/pagealign_alloc.c: Likewise.
38674         * lib/pagealign_alloc.h: Likewise.
38675         * lib/physmem.c: Likewise.
38676         * lib/physmem.h: Likewise.
38677         * lib/pipe-safer.c: Likewise.
38678         * lib/pipe.c: Likewise.
38679         * lib/pipe.h: Likewise.
38680         * lib/posixtm.c: Likewise.
38681         * lib/posixtm.h: Likewise.
38682         * lib/posixver.c: Likewise.
38683         * lib/printf-frexp.c: Likewise.
38684         * lib/printf-frexp.h: Likewise.
38685         * lib/printf-frexpl.c: Likewise.
38686         * lib/printf-frexpl.h: Likewise.
38687         * lib/printf.c: Likewise.
38688         * lib/progname.c: Likewise.
38689         * lib/progname.h: Likewise.
38690         * lib/progreloc.c: Likewise.
38691         * lib/putenv.c: Likewise.
38692         * lib/quote.c: Likewise.
38693         * lib/quote.h: Likewise.
38694         * lib/quotearg.c: Likewise.
38695         * lib/quotearg.h: Likewise.
38696         * lib/raise.c: Likewise.
38697         * lib/readline.c: Likewise.
38698         * lib/readline.h: Likewise.
38699         * lib/readlink.c: Likewise.
38700         * lib/readtokens.c: Likewise.
38701         * lib/readtokens.h: Likewise.
38702         * lib/readtokens0.c: Likewise.
38703         * lib/readtokens0.h: Likewise.
38704         * lib/readutmp.c: Likewise.
38705         * lib/readutmp.h: Likewise.
38706         * lib/realloc.c: Likewise.
38707         * lib/relocwrapper.c: Likewise.
38708         * lib/rename-dest-slash.c: Likewise.
38709         * lib/rename.c: Likewise.
38710         * lib/rmdir.c: Likewise.
38711         * lib/rpmatch.c: Likewise.
38712         * lib/safe-read.c: Likewise.
38713         * lib/safe-read.h: Likewise.
38714         * lib/safe-write.c: Likewise.
38715         * lib/safe-write.h: Likewise.
38716         * lib/same-inode.h: Likewise.
38717         * lib/same.c: Likewise.
38718         * lib/same.h: Likewise.
38719         * lib/save-cwd.c: Likewise.
38720         * lib/save-cwd.h: Likewise.
38721         * lib/savedir.c: Likewise.
38722         * lib/savedir.h: Likewise.
38723         * lib/savewd.c: Likewise.
38724         * lib/savewd.h: Likewise.
38725         * lib/search.in.h: Likewise.
38726         * lib/setenv.c: Likewise.
38727         * lib/setenv.h: Likewise.
38728         * lib/settime.c: Likewise.
38729         * lib/sh-quote.c: Likewise.
38730         * lib/sh-quote.h: Likewise.
38731         * lib/sig2str.c: Likewise.
38732         * lib/sig2str.h: Likewise.
38733         * lib/signal.in.h: Likewise.
38734         * lib/signbitd.c: Likewise.
38735         * lib/signbitf.c: Likewise.
38736         * lib/signbitl.c: Likewise.
38737         * lib/sigprocmask.c: Likewise.
38738         * lib/sincosl.c: Likewise.
38739         * lib/sleep.c: Likewise.
38740         * lib/sprintf.c: Likewise.
38741         * lib/sqrtl.c: Likewise.
38742         * lib/stat-time.h: Likewise.
38743         * lib/stdio--.h: Likewise.
38744         * lib/stdio-safer.h: Likewise.
38745         * lib/stdlib--.h: Likewise.
38746         * lib/stdlib-safer.h: Likewise.
38747         * lib/stdlib.in.h: Likewise.
38748         * lib/stpcpy.c: Likewise.
38749         * lib/stpncpy.c: Likewise.
38750         * lib/strchrnul.c: Likewise.
38751         * lib/strcspn.c: Likewise.
38752         * lib/strerror.c: Likewise.
38753         * lib/strftime.c: Likewise.
38754         * lib/strftime.h: Likewise.
38755         * lib/striconveh.c: Likewise.
38756         * lib/striconveh.h: Likewise.
38757         * lib/striconveha.c: Likewise.
38758         * lib/striconveha.h: Likewise.
38759         * lib/stripslash.c: Likewise.
38760         * lib/strnlen1.c: Likewise.
38761         * lib/strnlen1.h: Likewise.
38762         * lib/strtod.c: Likewise.
38763         * lib/strtoimax.c: Likewise.
38764         * lib/strtok_r.c: Likewise.
38765         * lib/strtol.c: Likewise.
38766         * lib/strtoll.c: Likewise.
38767         * lib/strtoul.c: Likewise.
38768         * lib/strtoull.c: Likewise.
38769         * lib/sysexits.in.h: Likewise.
38770         * lib/tempname.c: Likewise.
38771         * lib/tempname.h: Likewise.
38772         * lib/timespec.h: Likewise.
38773         * lib/tls.c: Likewise.
38774         * lib/tls.h: Likewise.
38775         * lib/tmpdir.c: Likewise.
38776         * lib/tmpdir.h: Likewise.
38777         * lib/tmpfile-safer.c: Likewise.
38778         * lib/tmpfile.c: Likewise.
38779         * lib/trigl.c: Likewise.
38780         * lib/trigl.h: Likewise.
38781         * lib/trim.c: Likewise.
38782         * lib/trim.h: Likewise.
38783         * lib/trunc.c: Likewise.
38784         * lib/truncf.c: Likewise.
38785         * lib/truncl.c: Likewise.
38786         * lib/tsearch.c: Likewise.
38787         * lib/unicodeio.c: Likewise.
38788         * lib/unicodeio.h: Likewise.
38789         * lib/unistd--.h: Likewise.
38790         * lib/unistd-safer.h: Likewise.
38791         * lib/unistdio/ulc-fprintf.c: Likewise.
38792         * lib/unistdio/ulc-vfprintf.c: Likewise.
38793         * lib/unlinkdir.c: Likewise.
38794         * lib/unlinkdir.h: Likewise.
38795         * lib/unlocked-io.h: Likewise.
38796         * lib/unsetenv.c: Likewise.
38797         * lib/userspec.c: Likewise.
38798         * lib/utime.c: Likewise.
38799         * lib/utimecmp.c: Likewise.
38800         * lib/utimecmp.h: Likewise.
38801         * lib/utimens.c: Likewise.
38802         * lib/verify.h: Likewise.
38803         * lib/verror.c: Likewise.
38804         * lib/verror.h: Likewise.
38805         * lib/version-etc-fsf.c: Likewise.
38806         * lib/version-etc.c: Likewise.
38807         * lib/version-etc.h: Likewise.
38808         * lib/vfprintf.c: Likewise.
38809         * lib/vprintf.c: Likewise.
38810         * lib/vsprintf.c: Likewise.
38811         * lib/w32spawn.h: Likewise.
38812         * lib/wait-process.c: Likewise.
38813         * lib/wait-process.h: Likewise.
38814         * lib/wcwidth.c: Likewise.
38815         * lib/write-any-file.c: Likewise.
38816         * lib/xalloc-die.c: Likewise.
38817         * lib/xalloc.h: Likewise.
38818         * lib/xasprintf.c: Likewise.
38819         * lib/xgetcwd.c: Likewise.
38820         * lib/xgetcwd.h: Likewise.
38821         * lib/xgetdomainname.c: Likewise.
38822         * lib/xgetdomainname.h: Likewise.
38823         * lib/xgethostname.c: Likewise.
38824         * lib/xmalloc.c: Likewise.
38825         * lib/xmalloca.c: Likewise.
38826         * lib/xmalloca.h: Likewise.
38827         * lib/xmemcoll.c: Likewise.
38828         * lib/xnanosleep.c: Likewise.
38829         * lib/xreadlink.c: Likewise.
38830         * lib/xreadlink.h: Likewise.
38831         * lib/xsetenv.c: Likewise.
38832         * lib/xsetenv.h: Likewise.
38833         * lib/xstriconv.c: Likewise.
38834         * lib/xstriconv.h: Likewise.
38835         * lib/xstrndup.c: Likewise.
38836         * lib/xstrndup.h: Likewise.
38837         * lib/xstrtod.c: Likewise.
38838         * lib/xstrtod.h: Likewise.
38839         * lib/xstrtol-error.c: Likewise.
38840         * lib/xstrtol.c: Likewise.
38841         * lib/xstrtol.h: Likewise.
38842         * lib/xtime.h: Likewise.
38843         * lib/xvasprintf.c: Likewise.
38844         * lib/xvasprintf.h: Likewise.
38845         * lib/yesno.c: Likewise.
38846         * lib/yesno.h: Likewise.
38847         * posix-modules: Likewise.
38848         * tests/test-alloca-opt.c: Likewise.
38849         * tests/test-arcfour.c: Likewise.
38850         * tests/test-arctwo.c: Likewise.
38851         * tests/test-argmatch.c: Likewise.
38852         * tests/test-argp-2.sh: Likewise.
38853         * tests/test-argp.c: Likewise.
38854         * tests/test-arpa_inet.c: Likewise.
38855         * tests/test-array_list.c: Likewise.
38856         * tests/test-array_oset.c: Likewise.
38857         * tests/test-atexit.c: Likewise.
38858         * tests/test-avltree_list.c: Likewise.
38859         * tests/test-avltree_oset.c: Likewise.
38860         * tests/test-avltreehash_list.c: Likewise.
38861         * tests/test-base64.c: Likewise.
38862         * tests/test-binary-io.c: Likewise.
38863         * tests/test-byteswap.c: Likewise.
38864         * tests/test-c-ctype.c: Likewise.
38865         * tests/test-c-strcasecmp.c: Likewise.
38866         * tests/test-c-strcasestr.c: Likewise.
38867         * tests/test-c-strncasecmp.c: Likewise.
38868         * tests/test-c-strstr.c: Likewise.
38869         * tests/test-canonicalize-lgpl.c: Likewise.
38870         * tests/test-canonicalize.c: Likewise.
38871         * tests/test-carray_list.c: Likewise.
38872         * tests/test-ceilf.c: Likewise.
38873         * tests/test-ceill.c: Likewise.
38874         * tests/test-count-one-bits.c: Likewise.
38875         * tests/test-crc.c: Likewise.
38876         * tests/test-dirname.c: Likewise.
38877         * tests/test-fbufmode.c: Likewise.
38878         * tests/test-fcntl.c: Likewise.
38879         * tests/test-fflush.c: Likewise.
38880         * tests/test-floorf.c: Likewise.
38881         * tests/test-floorl.c: Likewise.
38882         * tests/test-fopen.c: Likewise.
38883         * tests/test-fprintf-posix.c: Likewise.
38884         * tests/test-fprintf-posix.h: Likewise.
38885         * tests/test-fpurge.c: Likewise.
38886         * tests/test-freadable.c: Likewise.
38887         * tests/test-freadahead.c: Likewise.
38888         * tests/test-freading.c: Likewise.
38889         * tests/test-freopen.c: Likewise.
38890         * tests/test-frexp.c: Likewise.
38891         * tests/test-frexpl.c: Likewise.
38892         * tests/test-fseek.c: Likewise.
38893         * tests/test-fseeko.c: Likewise.
38894         * tests/test-fseterr.c: Likewise.
38895         * tests/test-fstrcmp.c: Likewise.
38896         * tests/test-ftell.c: Likewise.
38897         * tests/test-ftello.c: Likewise.
38898         * tests/test-fwritable.c: Likewise.
38899         * tests/test-fwriting.c: Likewise.
38900         * tests/test-getaddrinfo.c: Likewise.
38901         * tests/test-getpass.c: Likewise.
38902         * tests/test-gettimeofday.c: Likewise.
38903         * tests/test-hmac-md5.c: Likewise.
38904         * tests/test-hmac-sha1.c: Likewise.
38905         * tests/test-iconv.c: Likewise.
38906         * tests/test-iconvme.c: Likewise.
38907         * tests/test-inttypes.c: Likewise.
38908         * tests/test-isnan.c: Likewise.
38909         * tests/test-isnanf.c: Likewise.
38910         * tests/test-isnanl-nolibm.c: Likewise.
38911         * tests/test-isnanl.c: Likewise.
38912         * tests/test-isnanl.h: Likewise.
38913         * tests/test-ldexpl.c: Likewise.
38914         * tests/test-linked_list.c: Likewise.
38915         * tests/test-linkedhash_list.c: Likewise.
38916         * tests/test-locale.c: Likewise.
38917         * tests/test-localename.c: Likewise.
38918         * tests/test-lock.c: Likewise.
38919         * tests/test-lseek.c: Likewise.
38920         * tests/test-malloca.c: Likewise.
38921         * tests/test-math.c: Likewise.
38922         * tests/test-mbscasecmp.c: Likewise.
38923         * tests/test-mbscasestr1.c: Likewise.
38924         * tests/test-mbscasestr2.c: Likewise.
38925         * tests/test-mbscasestr3.c: Likewise.
38926         * tests/test-mbscasestr4.c: Likewise.
38927         * tests/test-mbschr.c: Likewise.
38928         * tests/test-mbscspn.c: Likewise.
38929         * tests/test-mbsncasecmp.c: Likewise.
38930         * tests/test-mbspbrk.c: Likewise.
38931         * tests/test-mbspcasecmp.c: Likewise.
38932         * tests/test-mbsrchr.c: Likewise.
38933         * tests/test-mbsspn.c: Likewise.
38934         * tests/test-mbsstr1.c: Likewise.
38935         * tests/test-mbsstr2.c: Likewise.
38936         * tests/test-mbsstr3.c: Likewise.
38937         * tests/test-md5.c: Likewise.
38938         * tests/test-memmem.c: Likewise.
38939         * tests/test-netinet_in.c: Likewise.
38940         * tests/test-open.c: Likewise.
38941         * tests/test-printf-frexp.c: Likewise.
38942         * tests/test-printf-frexpl.c: Likewise.
38943         * tests/test-printf-posix.c: Likewise.
38944         * tests/test-printf-posix.h: Likewise.
38945         * tests/test-rbtree_list.c: Likewise.
38946         * tests/test-rbtree_oset.c: Likewise.
38947         * tests/test-rbtreehash_list.c: Likewise.
38948         * tests/test-read-file.c: Likewise.
38949         * tests/test-rijndael.c: Likewise.
38950         * tests/test-search.c: Likewise.
38951         * tests/test-signbit.c: Likewise.
38952         * tests/test-sleep.c: Likewise.
38953         * tests/test-snprintf-posix.c: Likewise.
38954         * tests/test-snprintf-posix.h: Likewise.
38955         * tests/test-snprintf.c: Likewise.
38956         * tests/test-sprintf-posix.c: Likewise.
38957         * tests/test-sprintf-posix.h: Likewise.
38958         * tests/test-stat-time.c: Likewise.
38959         * tests/test-stdbool.c: Likewise.
38960         * tests/test-stdint.c: Likewise.
38961         * tests/test-stdio.c: Likewise.
38962         * tests/test-stdlib.c: Likewise.
38963         * tests/test-stpncpy.c: Likewise.
38964         * tests/test-strcasestr.c: Likewise.
38965         * tests/test-striconv.c: Likewise.
38966         * tests/test-striconveh.c: Likewise.
38967         * tests/test-striconveha.c: Likewise.
38968         * tests/test-string.c: Likewise.
38969         * tests/test-sys_select.c: Likewise.
38970         * tests/test-sys_socket.c: Likewise.
38971         * tests/test-sys_stat.c: Likewise.
38972         * tests/test-sys_time.c: Likewise.
38973         * tests/test-sysexits.c: Likewise.
38974         * tests/test-time.c: Likewise.
38975         * tests/test-tls.c: Likewise.
38976         * tests/test-trunc.c: Likewise.
38977         * tests/test-truncf.c: Likewise.
38978         * tests/test-truncl.c: Likewise.
38979         * tests/test-unistd.c: Likewise.
38980         * tests/test-vasnprintf-posix.c: Likewise.
38981         * tests/test-vasnprintf-posix2.c: Likewise.
38982         * tests/test-vasnprintf.c: Likewise.
38983         * tests/test-vasprintf-posix.c: Likewise.
38984         * tests/test-vasprintf.c: Likewise.
38985         * tests/test-verify.c: Likewise.
38986         * tests/test-vfprintf-posix.c: Likewise.
38987         * tests/test-vprintf-posix.c: Likewise.
38988         * tests/test-vsnprintf-posix.c: Likewise.
38989         * tests/test-vsnprintf.c: Likewise.
38990         * tests/test-vsprintf-posix.c: Likewise.
38991         * tests/test-wchar.c: Likewise.
38992         * tests/test-wctype.c: Likewise.
38993         * tests/test-wcwidth.c: Likewise.
38994         * tests/test-xstrtol.c: Likewise.
38995         * tests/test-xvasprintf.c: Likewise.
38996         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38997         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38998         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38999         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39000         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39001         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39002         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39003         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39004         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39005         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39006         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39007         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39008         * tests/uniname/test-uninames.c: Likewise.
39009         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39010         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
39011         * tests/unistdio/test-u16-printf1.h: Likewise.
39012         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39013         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39014         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39015         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39016         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39017         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39018         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39019         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
39020         * tests/unistdio/test-u32-printf1.h: Likewise.
39021         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39022         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39023         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39024         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39025         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39026         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39027         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39028         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
39029         * tests/unistdio/test-u8-printf1.h: Likewise.
39030         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39031         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39032         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39033         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39034         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39035         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39036         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39037         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
39038         * tests/unistdio/test-ulc-printf1.h: Likewise.
39039         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39040         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39041         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39042         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39043         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39044         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39045         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39046         * tests/uniwidth/test-u16-width.c: Likewise.
39047         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39048         * tests/uniwidth/test-u32-width.c: Likewise.
39049         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39050         * tests/uniwidth/test-u8-width.c: Likewise.
39051         * tests/uniwidth/test-uc_width.c: Likewise.
39052         * config/srclist-update: Likewise.
39053         (fixlicense): Update to GPLv3+.
39054
39055         Change copyright notice from LGPLv2.1+ to LGPLv3+.
39056         * tests/test-tsearch.c: Change copyright notice.
39057
39058         Change copyright notice from LGPLv2.0+ to LGPLv3+.
39059         * lib/c-strcaseeq.h: Change copyright notice.
39060         * lib/streq.h: Likewise.
39061         * lib/uniconv.h: Likewise.
39062         * lib/uniconv/u-conv-from-enc.h: Likewise.
39063         * lib/uniconv/u-conv-to-enc.h: Likewise.
39064         * lib/uniconv/u-strconv-from-enc.h: Likewise.
39065         * lib/uniconv/u-strconv-to-enc.h: Likewise.
39066         * lib/uniconv/u16-conv-from-enc.c: Likewise.
39067         * lib/uniconv/u16-conv-to-enc.c: Likewise.
39068         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
39069         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
39070         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
39071         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
39072         * lib/uniconv/u32-conv-from-enc.c: Likewise.
39073         * lib/uniconv/u32-conv-to-enc.c: Likewise.
39074         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
39075         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
39076         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39077         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39078         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39079         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39080         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39081         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39082         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39083         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39084         * lib/uniname.h: Likewise.
39085         * lib/uniname/uniname.c: Likewise.
39086         * lib/unistdio.h: Likewise.
39087         * lib/unistdio/u-asnprintf.h: Likewise.
39088         * lib/unistdio/u-asprintf.h: Likewise.
39089         * lib/unistdio/u-printf-args.c: Likewise.
39090         * lib/unistdio/u-printf-args.h: Likewise.
39091         * lib/unistdio/u-printf-parse.h: Likewise.
39092         * lib/unistdio/u-snprintf.h: Likewise.
39093         * lib/unistdio/u-sprintf.h: Likewise.
39094         * lib/unistdio/u-vasprintf.h: Likewise.
39095         * lib/unistdio/u-vsnprintf.h: Likewise.
39096         * lib/unistdio/u-vsprintf.h: Likewise.
39097         * lib/unistdio/u16-asnprintf.c: Likewise.
39098         * lib/unistdio/u16-asprintf.c: Likewise.
39099         * lib/unistdio/u16-printf-parse.c: Likewise.
39100         * lib/unistdio/u16-snprintf.c: Likewise.
39101         * lib/unistdio/u16-sprintf.c: Likewise.
39102         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39103         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39104         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39105         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39106         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39107         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39108         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39109         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39110         * lib/unistdio/u16-vasnprintf.c: Likewise.
39111         * lib/unistdio/u16-vasprintf.c: Likewise.
39112         * lib/unistdio/u16-vsnprintf.c: Likewise.
39113         * lib/unistdio/u16-vsprintf.c: Likewise.
39114         * lib/unistdio/u32-asnprintf.c: Likewise.
39115         * lib/unistdio/u32-asprintf.c: Likewise.
39116         * lib/unistdio/u32-printf-parse.c: Likewise.
39117         * lib/unistdio/u32-snprintf.c: Likewise.
39118         * lib/unistdio/u32-sprintf.c: Likewise.
39119         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39120         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39121         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39122         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39123         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39124         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39125         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39126         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39127         * lib/unistdio/u32-vasnprintf.c: Likewise.
39128         * lib/unistdio/u32-vasprintf.c: Likewise.
39129         * lib/unistdio/u32-vsnprintf.c: Likewise.
39130         * lib/unistdio/u32-vsprintf.c: Likewise.
39131         * lib/unistdio/u8-asnprintf.c: Likewise.
39132         * lib/unistdio/u8-asprintf.c: Likewise.
39133         * lib/unistdio/u8-printf-parse.c: Likewise.
39134         * lib/unistdio/u8-snprintf.c: Likewise.
39135         * lib/unistdio/u8-sprintf.c: Likewise.
39136         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39137         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39138         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39139         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39140         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39141         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39142         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39143         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39144         * lib/unistdio/u8-vasnprintf.c: Likewise.
39145         * lib/unistdio/u8-vasprintf.c: Likewise.
39146         * lib/unistdio/u8-vsnprintf.c: Likewise.
39147         * lib/unistdio/u8-vsprintf.c: Likewise.
39148         * lib/unistdio/ulc-asnprintf.c: Likewise.
39149         * lib/unistdio/ulc-asprintf.c: Likewise.
39150         * lib/unistdio/ulc-printf-parse.c: Likewise.
39151         * lib/unistdio/ulc-snprintf.c: Likewise.
39152         * lib/unistdio/ulc-sprintf.c: Likewise.
39153         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39154         * lib/unistdio/ulc-vasprintf.c: Likewise.
39155         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39156         * lib/unistdio/ulc-vsprintf.c: Likewise.
39157         * lib/unistr.h: Likewise.
39158         * lib/unistr/u-cpy-alloc.h: Likewise.
39159         * lib/unistr/u-cpy.h: Likewise.
39160         * lib/unistr/u-endswith.h: Likewise.
39161         * lib/unistr/u-move.h: Likewise.
39162         * lib/unistr/u-set.h: Likewise.
39163         * lib/unistr/u-startswith.h: Likewise.
39164         * lib/unistr/u-stpcpy.h: Likewise.
39165         * lib/unistr/u-stpncpy.h: Likewise.
39166         * lib/unistr/u-strcat.h: Likewise.
39167         * lib/unistr/u-strcpy.h: Likewise.
39168         * lib/unistr/u-strcspn.h: Likewise.
39169         * lib/unistr/u-strdup.h: Likewise.
39170         * lib/unistr/u-strlen.h: Likewise.
39171         * lib/unistr/u-strncat.h: Likewise.
39172         * lib/unistr/u-strncpy.h: Likewise.
39173         * lib/unistr/u-strnlen.h: Likewise.
39174         * lib/unistr/u-strpbrk.h: Likewise.
39175         * lib/unistr/u-strspn.h: Likewise.
39176         * lib/unistr/u-strstr.h: Likewise.
39177         * lib/unistr/u-strtok.h: Likewise.
39178         * lib/unistr/u16-check.c: Likewise.
39179         * lib/unistr/u16-chr.c: Likewise.
39180         * lib/unistr/u16-cmp.c: Likewise.
39181         * lib/unistr/u16-cpy-alloc.c: Likewise.
39182         * lib/unistr/u16-cpy.c: Likewise.
39183         * lib/unistr/u16-endswith.c: Likewise.
39184         * lib/unistr/u16-mblen.c: Likewise.
39185         * lib/unistr/u16-mbsnlen.c: Likewise.
39186         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39187         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39188         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39189         * lib/unistr/u16-mbtouc.c: Likewise.
39190         * lib/unistr/u16-mbtoucr.c: Likewise.
39191         * lib/unistr/u16-move.c: Likewise.
39192         * lib/unistr/u16-next.c: Likewise.
39193         * lib/unistr/u16-prev.c: Likewise.
39194         * lib/unistr/u16-set.c: Likewise.
39195         * lib/unistr/u16-startswith.c: Likewise.
39196         * lib/unistr/u16-stpcpy.c: Likewise.
39197         * lib/unistr/u16-stpncpy.c: Likewise.
39198         * lib/unistr/u16-strcat.c: Likewise.
39199         * lib/unistr/u16-strchr.c: Likewise.
39200         * lib/unistr/u16-strcmp.c: Likewise.
39201         * lib/unistr/u16-strcpy.c: Likewise.
39202         * lib/unistr/u16-strcspn.c: Likewise.
39203         * lib/unistr/u16-strdup.c: Likewise.
39204         * lib/unistr/u16-strlen.c: Likewise.
39205         * lib/unistr/u16-strmblen.c: Likewise.
39206         * lib/unistr/u16-strmbtouc.c: Likewise.
39207         * lib/unistr/u16-strncat.c: Likewise.
39208         * lib/unistr/u16-strncmp.c: Likewise.
39209         * lib/unistr/u16-strncpy.c: Likewise.
39210         * lib/unistr/u16-strnlen.c: Likewise.
39211         * lib/unistr/u16-strpbrk.c: Likewise.
39212         * lib/unistr/u16-strrchr.c: Likewise.
39213         * lib/unistr/u16-strspn.c: Likewise.
39214         * lib/unistr/u16-strstr.c: Likewise.
39215         * lib/unistr/u16-strtok.c: Likewise.
39216         * lib/unistr/u16-to-u32.c: Likewise.
39217         * lib/unistr/u16-to-u8.c: Likewise.
39218         * lib/unistr/u16-uctomb-aux.c: Likewise.
39219         * lib/unistr/u16-uctomb.c: Likewise.
39220         * lib/unistr/u32-check.c: Likewise.
39221         * lib/unistr/u32-chr.c: Likewise.
39222         * lib/unistr/u32-cmp.c: Likewise.
39223         * lib/unistr/u32-cpy-alloc.c: Likewise.
39224         * lib/unistr/u32-cpy.c: Likewise.
39225         * lib/unistr/u32-endswith.c: Likewise.
39226         * lib/unistr/u32-mblen.c: Likewise.
39227         * lib/unistr/u32-mbsnlen.c: Likewise.
39228         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39229         * lib/unistr/u32-mbtouc.c: Likewise.
39230         * lib/unistr/u32-mbtoucr.c: Likewise.
39231         * lib/unistr/u32-move.c: Likewise.
39232         * lib/unistr/u32-next.c: Likewise.
39233         * lib/unistr/u32-prev.c: Likewise.
39234         * lib/unistr/u32-set.c: Likewise.
39235         * lib/unistr/u32-startswith.c: Likewise.
39236         * lib/unistr/u32-stpcpy.c: Likewise.
39237         * lib/unistr/u32-stpncpy.c: Likewise.
39238         * lib/unistr/u32-strcat.c: Likewise.
39239         * lib/unistr/u32-strchr.c: Likewise.
39240         * lib/unistr/u32-strcmp.c: Likewise.
39241         * lib/unistr/u32-strcpy.c: Likewise.
39242         * lib/unistr/u32-strcspn.c: Likewise.
39243         * lib/unistr/u32-strdup.c: Likewise.
39244         * lib/unistr/u32-strlen.c: Likewise.
39245         * lib/unistr/u32-strmblen.c: Likewise.
39246         * lib/unistr/u32-strmbtouc.c: Likewise.
39247         * lib/unistr/u32-strncat.c: Likewise.
39248         * lib/unistr/u32-strncmp.c: Likewise.
39249         * lib/unistr/u32-strncpy.c: Likewise.
39250         * lib/unistr/u32-strnlen.c: Likewise.
39251         * lib/unistr/u32-strpbrk.c: Likewise.
39252         * lib/unistr/u32-strrchr.c: Likewise.
39253         * lib/unistr/u32-strspn.c: Likewise.
39254         * lib/unistr/u32-strstr.c: Likewise.
39255         * lib/unistr/u32-strtok.c: Likewise.
39256         * lib/unistr/u32-to-u16.c: Likewise.
39257         * lib/unistr/u32-to-u8.c: Likewise.
39258         * lib/unistr/u32-uctomb.c: Likewise.
39259         * lib/unistr/u8-check.c: Likewise.
39260         * lib/unistr/u8-chr.c: Likewise.
39261         * lib/unistr/u8-cmp.c: Likewise.
39262         * lib/unistr/u8-cpy-alloc.c: Likewise.
39263         * lib/unistr/u8-cpy.c: Likewise.
39264         * lib/unistr/u8-endswith.c: Likewise.
39265         * lib/unistr/u8-mblen.c: Likewise.
39266         * lib/unistr/u8-mbsnlen.c: Likewise.
39267         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39268         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39269         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39270         * lib/unistr/u8-mbtouc.c: Likewise.
39271         * lib/unistr/u8-mbtoucr.c: Likewise.
39272         * lib/unistr/u8-move.c: Likewise.
39273         * lib/unistr/u8-next.c: Likewise.
39274         * lib/unistr/u8-prev.c: Likewise.
39275         * lib/unistr/u8-set.c: Likewise.
39276         * lib/unistr/u8-startswith.c: Likewise.
39277         * lib/unistr/u8-stpcpy.c: Likewise.
39278         * lib/unistr/u8-stpncpy.c: Likewise.
39279         * lib/unistr/u8-strcat.c: Likewise.
39280         * lib/unistr/u8-strchr.c: Likewise.
39281         * lib/unistr/u8-strcmp.c: Likewise.
39282         * lib/unistr/u8-strcpy.c: Likewise.
39283         * lib/unistr/u8-strcspn.c: Likewise.
39284         * lib/unistr/u8-strdup.c: Likewise.
39285         * lib/unistr/u8-strlen.c: Likewise.
39286         * lib/unistr/u8-strmblen.c: Likewise.
39287         * lib/unistr/u8-strmbtouc.c: Likewise.
39288         * lib/unistr/u8-strncat.c: Likewise.
39289         * lib/unistr/u8-strncmp.c: Likewise.
39290         * lib/unistr/u8-strncpy.c: Likewise.
39291         * lib/unistr/u8-strnlen.c: Likewise.
39292         * lib/unistr/u8-strpbrk.c: Likewise.
39293         * lib/unistr/u8-strrchr.c: Likewise.
39294         * lib/unistr/u8-strspn.c: Likewise.
39295         * lib/unistr/u8-strstr.c: Likewise.
39296         * lib/unistr/u8-strtok.c: Likewise.
39297         * lib/unistr/u8-to-u16.c: Likewise.
39298         * lib/unistr/u8-to-u32.c: Likewise.
39299         * lib/unistr/u8-uctomb-aux.c: Likewise.
39300         * lib/unistr/u8-uctomb.c: Likewise.
39301         * lib/unitypes.h: Likewise.
39302         * lib/uniwidth.h: Likewise.
39303         * lib/uniwidth/cjk.h: Likewise.
39304         * lib/uniwidth/u16-strwidth.c: Likewise.
39305         * lib/uniwidth/u16-width.c: Likewise.
39306         * lib/uniwidth/u32-strwidth.c: Likewise.
39307         * lib/uniwidth/u32-width.c: Likewise.
39308         * lib/uniwidth/u8-strwidth.c: Likewise.
39309         * lib/uniwidth/u8-width.c: Likewise.
39310         * lib/uniwidth/width.c: Likewise.
39311
39312 2007-10-07  Bruno Haible  <bruno@clisp.org>
39313
39314         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39315         The file is still under LGPL (see modules/inttypes).
39316
39317 2007-10-06  Bruno Haible  <bruno@clisp.org>
39318
39319         * modules/trunc (Dependencies): Add 'extensions'.
39320         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39321         Reported by Ben Pfaff <blp@gnu.org>.
39322
39323 2007-10-06  Bruno Haible  <bruno@clisp.org>
39324
39325         * modules/freopen-tests: New file.
39326         * tests/test-freopen.c: New file.
39327
39328         * modules/fopen-tests: New file.
39329         * tests/test-fopen.c: New file.
39330
39331         * modules/fopen: New file.
39332         * lib/fopen.c: New file.
39333         * m4/fopen.m4: New file.
39334         * modules/freopen: New file.
39335         * lib/freopen.c: New file.
39336         * m4/freopen.m4: New file.
39337         * lib/stdio.in.h (fopen, freopen): New declarations.
39338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39339         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39340         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39341         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39342         * doc/functions/fopen.texi: Mention the 'fopen' module.
39343         * doc/functions/freopen.texi: Mention the 'freopen' module.
39344
39345 2007-10-06  Bruno Haible  <bruno@clisp.org>
39346
39347         * modules/open-tests: New file.
39348         * tests/test-open.c: New file.
39349
39350         * modules/open: New file.
39351         * lib/open.c: New file.
39352         * m4/open.m4: New file.
39353         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39354         lib/open.c does.
39355         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39356         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39357         macros.
39358         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39359         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39360         REPLACE_OPEN.
39361         * doc/functions/open.texi: Mention the 'open' module.
39362
39363 2007-10-04  Bruno Haible  <bruno@clisp.org>
39364
39365         * modules/ceill-tests: New file.
39366         * tests/test-ceill.c: New file.
39367
39368         * modules/ceill: New file.
39369         * lib/ceill.c: Replace entire file.
39370         * m4/ceill.m4: New file.
39371         * lib/math.in.h (ceill): Replace declaration.
39372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39373         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39374         * doc/functions/ceill.texi: Mention the 'ceill' module.
39375         * modules/mathl (Files): Remove lib/ceill.c.
39376         (Depends-on): Add ceill.
39377
39378 2007-10-04  Bruno Haible  <bruno@clisp.org>
39379
39380         * modules/ceilf-tests: New file.
39381         * tests/test-ceilf.c: New file.
39382
39383         * modules/ceilf: New file.
39384         * lib/ceil.c: New file.
39385         * lib/ceilf.c: New file.
39386         * m4/ceilf.m4: New file.
39387         * lib/math.in.h (ceilf): New declaration.
39388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39389         HAVE_DECL_CEILF.
39390         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39391         HAVE_DECL_CEILF.
39392         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39393
39394 2007-10-04  Bruno Haible  <bruno@clisp.org>
39395
39396         * modules/floorl-tests: New file.
39397         * tests/test-floorl.c: New file.
39398
39399         * modules/floorl: New file.
39400         * lib/floorl.c: Replace entire file.
39401         * m4/floorl.m4: New file.
39402         * lib/math.in.h (floorl): Replace declaration.
39403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39404         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39405         * doc/functions/floorl.texi: Mention the 'floorl' module.
39406         * modules/mathl (Files): Remove lib/floorl.c.
39407         (Depends-on): Add floorl.
39408
39409 2007-10-04  Bruno Haible  <bruno@clisp.org>
39410
39411         * modules/floorf-tests: New file.
39412         * tests/test-floorf.c: New file.
39413
39414         * modules/floorf: New file.
39415         * lib/floor.c: New file.
39416         * lib/floorf.c: New file.
39417         * m4/floorf.m4: New file.
39418         * lib/math.in.h (floorf): New declaration.
39419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39420         HAVE_DECL_FLOORF.
39421         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39422         HAVE_DECL_FLOORF.
39423         * doc/functions/floorf.texi: Mention the 'floorf' module.
39424
39425 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39426             Bruno Haible  <bruno@clisp.org>
39427
39428         Advertise for the Git server instead of the CVS server.
39429         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39430         repository instead of the CVS one.
39431         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39432         about all VCS systems generically.
39433         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39434
39435 2007-10-04  Bruno Haible  <bruno@clisp.org>
39436
39437         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39438         means.
39439         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39440
39441 2007-10-04  Bruno Haible  <bruno@clisp.org>
39442
39443         * modules/truncl-tests: New file.
39444         * tests/test-truncl.c: New file.
39445
39446         * modules/truncl: New file.
39447         * lib/truncl.c: New file.
39448         * m4/truncl.m4: New file.
39449         * lib/math.in.h (truncl): New declaration.
39450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39451         HAVE_DECL_TRUNCL.
39452         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39453         HAVE_DECL_TRUNCL.
39454         * doc/functions/truncl.texi: Mention the 'truncl' module.
39455
39456 2007-10-04  Bruno Haible  <bruno@clisp.org>
39457
39458         * modules/truncf-tests: New file.
39459         * tests/test-truncf.c: New file.
39460
39461         * modules/truncf: New file.
39462         * lib/trunc.c: Make paramerizable through USE_* macros.
39463         * lib/truncf.c: New file.
39464         * m4/truncf.m4: New file.
39465         * lib/math.in.h (truncf): New declaration.
39466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39467         HAVE_DECL_TRUNCF.
39468         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39469         HAVE_DECL_TRUNCF.
39470         * doc/functions/truncf.texi: Mention the 'truncf' module.
39471
39472 2007-10-03  Bruno Haible  <bruno@clisp.org>
39473
39474         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39475         augmentation also for tests modules.
39476         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39477         * modules/atexit-tests (Makefile.am): Likewise.
39478         * modules/binary-io-tests (Makefile.am): Likewise.
39479         * modules/c-strcase-tests (Makefile.am): Likewise.
39480         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39481         * modules/canonicalize-tests (Makefile.am): Likewise.
39482         * modules/closein-tests (Makefile.am): Likewise.
39483         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39484         * modules/freadahead-tests (Makefile.am): Likewise.
39485         * modules/fseek-tests (Makefile.am): Likewise.
39486         * modules/fseeko-tests (Makefile.am): Likewise.
39487         * modules/ftell-tests (Makefile.am): Likewise.
39488         * modules/ftello-tests (Makefile.am): Likewise.
39489         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39490         * modules/isnanl-tests (Makefile.am): Likewise.
39491         * modules/lseek-tests (Makefile.am): Likewise.
39492         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39493         * modules/mbscasestr-tests (Makefile.am): Likewise.
39494         * modules/mbschr-tests (Makefile.am): Likewise.
39495         * modules/mbscspn-tests (Makefile.am): Likewise.
39496         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39497         * modules/mbspbrk-tests (Makefile.am): Likewise.
39498         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39499         * modules/mbsrchr-tests (Makefile.am): Likewise.
39500         * modules/mbsspn-tests (Makefile.am): Likewise.
39501         * modules/mbsstr-tests (Makefile.am): Likewise.
39502         * modules/printf-posix-tests (Makefile.am): Likewise.
39503         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39504         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39505         * modules/tsearch-tests (Makefile.am): Likewise.
39506         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39507         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39508         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39509         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39510         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39511         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39512         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39513         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39514         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39515         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39516         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39517         * modules/xstrtol-tests (Makefile.am): Likewise.
39518         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39519         * modules/yesno-tests (Makefile.am): Likewise.
39520
39521 2007-10-03  Bruno Haible  <bruno@clisp.org>
39522
39523         * modules/trunc-tests: New file.
39524         * tests/test-trunc.c: New file.
39525
39526         * modules/trunc: New file.
39527         * lib/trunc.c: New file.
39528         * m4/trunc.m4: New file.
39529         * lib/math.in.h (trunc): New declaration.
39530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39531         HAVE_DECL_TRUNC.
39532         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39533         HAVE_DECL_TRUNC.
39534         * doc/functions/trunc.texi: Mention the 'trunc' module.
39535
39536 2007-10-03  Bruno Haible  <bruno@clisp.org>
39537
39538         * tests/test-fpending.c: New file, mostly copied
39539         from coreutils/lib/t-fpending.c.
39540         * modules/fpending-tests: New file.
39541
39542 2007-10-03  Bruno Haible  <bruno@clisp.org>
39543
39544         Port the stdio extensions to QNX (untested).
39545         * lib/fseterr.c (fseterr): Add support for QNX.
39546         * lib/fbufmode.c (fbufmode): Likewise.
39547         * lib/freadable.c (freadable): Likewise.
39548         * lib/fwritable.c (fwritable): Likewise.
39549         * lib/freading.c (freading): Likewise.
39550         * lib/fwriting.c (fwriting): Likewise.
39551         * lib/freadahead.c (freadahed): Likewise.
39552         * lib/fpurge.c (fpurge): Likewise.
39553         * lib/fseeko.c (rpl_fseeko): Likewise.
39554
39555 2007-10-03  Bruno Haible  <bruno@clisp.org>
39556             Jim Meyering  <jim@meyering.net>
39557             Eric Blake  <ebb9@byu.net>
39558
39559         * doc/relocatable.texi: Use @command instead of @program.
39560
39561 2007-10-02  Jim Meyering  <jim@meyering.net>
39562
39563         Perform one more "_.h" -> ".in.h" substitution.
39564         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39565         instead of unistd_.h here, too.
39566
39567 2007-10-01  Bruno Haible  <bruno@clisp.org>
39568
39569         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39570         Needed for the alloca-opt module.
39571
39572 2007-09-30  Bruno Haible  <bruno@clisp.org>
39573
39574         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39575         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39576         alloca_.h.
39577         * lib/argz.in.h: Renamed from lib/argz_.h.
39578         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39579         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39580         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39581         byteswap_.h.
39582         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39583         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39584         dirent_.h.
39585         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39586         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39587         fcntl_.h.
39588         * lib/float.in.h: Renamed from lib/float_.h.
39589         * modules/float (Files, Makefile.am): Use float.in.h instead of
39590         float_.h.
39591         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39592         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39593         fnmatch_.h.
39594         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39595         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39596         getopt_.h.
39597         * lib/glob.in.h: Renamed from lib/glob_.h.
39598         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39599         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39600         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39601         iconv_.h.
39602         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39603         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39604         inttypes_.h.
39605         * lib/locale.in.h: Renamed from lib/locale_.h.
39606         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39607         locale_.h.
39608         * lib/math.in.h: Renamed from lib/math_.h.
39609         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39610         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39611         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39612         of netinet_in_.h. Add dependency.
39613         * lib/poll.in.h: Renamed from lib/poll_.h.
39614         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39615         * lib/search.in.h: Renamed from lib/search_.h.
39616         * modules/search (Files, Makefile.am): Use search.in.h instead of
39617         search_.h.
39618         * lib/signal.in.h: Renamed from lib/signal_.h.
39619         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39620         _signal.h.
39621         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39622         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39623         stdbool_.h.
39624         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39625         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39626         stdint_.h.
39627         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39628         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39629         stdio_.h.
39630         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39631         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39632         stdlib_.h.
39633         * lib/string.in.h: Renamed from lib/string_.h.
39634         * modules/string (Files, Makefile.am): Use string.in.h instead of
39635         string_.h.
39636         * doc/gnulib-tool.texi (Initial import): Update.
39637         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39638         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39639         of sys_select_.h. Add dependency.
39640         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39641         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39642         of sys_socket_.h.
39643         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39644         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39645         sys_stat_.h.
39646         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39647         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39648         sys_time_.h.
39649         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39650         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39651         sysexits_.h.
39652         * lib/time.in.h: Renamed from lib/time_.h.
39653         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39654         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39655         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39656         unistd_.h.
39657         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39658         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39659         wchar_.h.
39660         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39661         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39662         wctype_.h.
39663         * build-aux/bootstrap (slurp): Update.
39664         * lib/.cppi-disable: Update.
39665
39666 2007-09-30  Bruno Haible  <bruno@clisp.org>
39667
39668         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39669         Needed on BeOS.
39670
39671 2007-09-30  Bruno Haible  <bruno@clisp.org>
39672
39673         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39674
39675 2007-09-29  Bruno Haible  <bruno@clisp.org>
39676
39677         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39678
39679 2007-09-29  Bruno Haible  <bruno@clisp.org>
39680
39681         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39682         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39683         * build-aux/install-reloc: Compile also areadlink.c.
39684         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39685
39686 2007-09-29  Bruno Haible  <bruno@clisp.org>
39687
39688         * gnulib-tool (func_emit_initmacro_done): Indentation.
39689
39690 2007-09-29  Bruno Haible  <bruno@clisp.org>
39691
39692         * README: Add CVS checkout update instructions.
39693         Info from Bob Proulx <bob@proulx.com>.
39694
39695 2007-09-28  Eric Blake  <ebb9@byu.net>
39696
39697         Provide move-if-change.
39698         * build-aux/move-if-change: New file, based on best practice
39699         rather than any canonical upstream location.
39700
39701 2007-09-28  Jim Meyering  <jim@meyering.net>
39702
39703         Fix canonicalize loop-detection corner case.
39704         Do not attempt to stat the symlink values stored via seen_triple.
39705         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39706         on linux-2.6.18, (but not 2.6.22).
39707         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39708         triple_compare.  The former compares dev,ino,filename, while the latter
39709         would actually stat dirname(filename) when dev and ino were equal.
39710         * lib/hash-triple.c: Install <string.h>.
39711         (STREQ): Define.
39712         (triple_compare_ino_str): New function.
39713         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39714
39715 2007-09-28  Eric Blake  <ebb9@byu.net>
39716
39717         Enforce that AC_REPLACE_FUNCS files exist.
39718         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39719         override check for typos.
39720
39721         Fix test-closein on Solaris 10.
39722         * tests/test-closein.c (main): Don't assume stdin can be inherited
39723         closed on all systems.
39724         * tests/test-closein.sh: Likewise.
39725         Reported by Piotr Tarnowski.
39726
39727 2007-09-28  Jim Meyering  <jim@meyering.net>
39728
39729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39730
39731 2007-09-27  Jim Meyering  <jim@meyering.net>
39732
39733         canonicalize: Avoid a false-positive cycle failure.
39734         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39735         Sort.  Remove cycle-check.
39736         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39737         not cycle-check.h.
39738         (seen_triple): New function.
39739         (canonicalize_filename_mode): Use it instead of cycle-check.
39740         * tests/test-canonicalize.c: Add a test for this bug.
39741         * tests/test-canonicalize.sh: Set up and run the test.
39742
39743         New module, file-set, from coreutils.
39744         * modules/file-set: Define it.
39745         * lib/file-set.c, lib/file-set.h: Implement.
39746
39747         New module, hash-triple, from coreutils.
39748         * modules/hash-triple: Define it.
39749         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39750
39751 2007-09-25  Eric Blake  <ebb9@byu.net>
39752
39753         Fix strerror on Interix.
39754         * lib/string_.h (strerror): Declare replacement.
39755         * doc/functions/strerror.texi (strerror): Document the Interix
39756         shortcoming.
39757         * modules/string (Makefile.am): Support new hooks.
39758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39759         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39760         gl_FUNC_STRERROR_SEPARATE.
39761         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39762         * lib/strerror.c (rpl_strerror): Provide replacement.
39763         * modules/strerror (Depends-on): Add string.
39764         (configure.ac): Detect use of module.
39765         * tests/test-strerror.c: New file.
39766         * modules/strerror-tests: New test module.
39767         * modules/argp (Depends-on): Add strerror.
39768         * modules/error (Depends-on): Likewise.
39769         Reported by Martin Koeppe.
39770
39771 2007-09-24  Bruno Haible  <bruno@clisp.org>
39772
39773         * README: Update git instructions.
39774
39775 2007-09-24  Eric Blake  <ebb9@byu.net>
39776
39777         Revert fpending breakage from 2007-09-08.
39778         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39779         __fpending.c.
39780
39781 2007-09-24  Jim Meyering  <jim@meyering.net>
39782
39783         filenamecat.c: Add a test.
39784         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39785         showing how the function works when DIR is the empty string.
39786
39787 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39788
39789         * tests/test-canonicalize.sh: Turn on executable bit.
39790
39791 2007-09-19  Eric Blake  <ebb9@byu.net>
39792
39793         * README: Update CVS instructions.
39794
39795 2007-09-18  Bruno Haible  <bruno@clisp.org>
39796
39797         * modules/areadlink: New file.
39798         * lib/areadlink.h (areadlink): New declaration.
39799         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39800
39801 2007-09-17  Jim Meyering  <jim@meyering.net>
39802
39803         * lib/savewd.c (ESTALE) [!defined]: Define.
39804         Reported to be required on Interix by Martin Koeppe.
39805
39806 2007-09-17  Bruno Haible  <bruno@clisp.org>
39807
39808         * gnulib-tool (func_version): Use $version.
39809
39810 2007-09-16  Bruno Haible  <bruno@clisp.org>
39811
39812         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39813         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39814         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39815         Reported by Greg Schafer <gschafer@zip.com.au>.
39816
39817 2007-09-15  Bruno Haible  <bruno@clisp.org>
39818
39819         * gnulib-tool (sed): Try a little harder to make bash understand the
39820         alias.
39821         Reported by Bruce Korb <bruce.korb@gmail.com>.
39822
39823 2007-09-13  Eric Blake  <ebb9@byu.net>
39824
39825         * ChangeLog: Remove conflict markers.
39826
39827 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39828
39829         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39830         Reported by Bruno Haible <bruno@clisp.org>.
39831
39832 2007-09-12  Bruno Haible  <bruno@clisp.org>
39833
39834         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39835         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39836         is not defined.
39837
39838 2007-09-12  Eric Blake  <ebb9@byu.net>
39839
39840         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39841         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39842         Autoconf definition.
39843         * modules/euidaccess (Depends-on): Add extensions, for
39844         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39845         * modules/fnmatch (Depends-on): Likewise.
39846         * modules/getaddrinfo (Depends-on): Likewise.
39847         * modules/getdelim (Depends-on): Likewise.
39848         * modules/getline (Depends-on): Likewise.
39849         * modules/getsubopt (Depends-on): Likewise.
39850         * modules/gettext (Depends-on): Likewise.
39851         * modules/group-member (Depends-on): Likewise.
39852         * modules/mbchar (Depends-on): Likewise.
39853         * modules/memmem (Depends-on): Likewise.
39854         * modules/mempcpy (Depends-on): Likewise.
39855         * modules/memrchr (Depends-on): Likewise.
39856         * modules/pagealign_alloc (Depends-on): Likewise.
39857         * modules/readutmp (Depends-on): Likewise.
39858         * modules/stpcpy (Depends-on): Likewise.
39859         * modules/stpncpy (Depends-on): Likewise.
39860         * modules/strchrnul (Depends-on): Likewise.
39861         * modules/strndup (Depends-on): Likewise.
39862         * modules/strsep (Depends-on): Likewise.
39863         * modules/strverscmp (Depends-on): Likewise.
39864         * modules/vasprintf (Depends-on): Likewise.
39865         * modules/wcwidth (Depends-on): Likewise.
39866         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39867         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39868         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39870         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39871         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39872         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39873         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39874         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39875         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39877         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39878         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39879         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39880         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39881         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39882         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39883         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39884         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39885         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39887         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39888         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39889         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39890         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39892         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39893         so that lock.m4 can be used in gettext without extensions module.
39894
39895 2007-09-11  Bruno Haible  <bruno@clisp.org>
39896
39897         * m4/isc-posix.m4: Remove file.
39898         Suggested by Eric Blake.
39899
39900 2007-09-11  Eric Blake  <ebb9@byu.net>
39901
39902         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39903
39904 2007-09-10  Bruno Haible  <bruno@clisp.org>
39905
39906         * posix-modules: Fix typo in error message.
39907         Reported by Matt <mkraai@beckman.com>.
39908
39909 2007-09-09  Bruno Haible  <bruno@clisp.org>
39910
39911         * doc/functions/getdelim.texi: Update list of platforms lacking the
39912         function.
39913         * doc/functions/getline.texi: Likewise.
39914
39915 2007-09-09  Jim Meyering  <jim@meyering.net>
39916
39917         * lib/hash.c (hash_initialize): Detect calloc failure.
39918         Reported by Bruno Haible.
39919
39920 2007-09-09  Bruno Haible  <bruno@clisp.org>
39921
39922         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39923         malloc or realloc fails.
39924
39925 2007-09-09  Bruno Haible  <bruno@clisp.org>
39926
39927         * modules/getcwd (Depends-on): Add malloc-posix.
39928         * modules/glob (Depends-on): Likewise.
39929         * modules/putenv (Depends-on): Likewise.
39930         * modules/strdup (Depends-on): Likewise.
39931         * modules/getdelim (Depends-on): Add realloc-posix.
39932         * modules/read-file (Depends-on): Likewise.
39933
39934 2007-09-09  Bruno Haible  <bruno@clisp.org>
39935
39936         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39937         (gl_FUNC_MALLOC_POSIX): Require it.
39938         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39939         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39940         * modules/realloc (Files): Add m4/malloc.m4.
39941         * modules/calloc (Files): Likewise.
39942
39943 2007-09-09  Bruno Haible  <bruno@clisp.org>
39944
39945         * modules/malloc-posix: New file.
39946         * modules/malloc (Depends-on): Add malloc-posix.
39947         * lib/malloc.c: Include errno.h.
39948         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39949         and a POSIX-compatible malloc into a single function. Set ENOMEM
39950         when returning NULL.
39951         * m4/malloc.m4: New file.
39952         * doc/functions/malloc.texi: Mention the malloc-posix module.
39953         * lib/stdlib_.h (malloc): New declaration.
39954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39955         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39956         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39957         and HAVE_MALLOC_POSIX.
39958
39959 2007-09-09  Bruno Haible  <bruno@clisp.org>
39960
39961         * modules/realloc-posix: New file.
39962         * modules/realloc (Depends-on): Add realloc-posix.
39963         * lib/realloc.c: Include errno.h.
39964         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39965         and a POSIX-compatible realloc into a single function. Set ENOMEM
39966         when returning NULL.
39967         * m4/realloc.m4: New file.
39968         * doc/functions/realloc.texi: Mention the realloc-posix module.
39969         * lib/stdlib_.h (realloc): New declaration.
39970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39971         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39972         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39973         and HAVE_REALLOC_POSIX.
39974
39975 2007-09-09  Bruno Haible  <bruno@clisp.org>
39976
39977         * modules/calloc-posix: New file.
39978         * modules/calloc (Depends-on): Add calloc-posix.
39979         * lib/calloc.c: Include errno.h.
39980         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
39981         and a POSIX-compatible calloc into a single function. Set ENOMEM
39982         when returning NULL.
39983         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39984         * doc/functions/calloc.texi: Mention the calloc-posix module.
39985         * lib/stdlib_.h (calloc): New declaration.
39986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39987         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39988         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39989         and HAVE_CALLOC_POSIX.
39990
39991 2007-09-09  Bruno Haible  <bruno@clisp.org>
39992
39993         Allow for modules to show an arbitrary notice.
39994         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39995         * gnulib-tool: New option --extract-notice.
39996         (func_usage): Document it.
39997         (sed_extract_prog): Update.
39998         (func_get_notice): New function.
39999         (func_modules_notice): New function.
40000         (func_import, func_create_testdir): Invoke it.
40001         Suggested by Jim Meyering.
40002
40003 2007-09-09  Bruno Haible  <bruno@clisp.org>
40004
40005         * gnulib-tool: New options --verbose, --quiet.
40006         (func_usage): Document them.
40007         (verbose): New variable.
40008         (func_execute_command): New function.
40009         (func_import): Don't show the module list and the file list if
40010         $verbose < 0.
40011         (func_create_testdir): Likewise. Use func_execute_command.
40012         (func_create_megatestdir): Use func_execute_command.
40013
40014 2007-09-08  Bruno Haible  <bruno@clisp.org>
40015
40016         * gnulib-tool (func_import): Prefer rsync over wget when available,
40017         for fetching the PO files.
40018
40019 2007-09-08  Bruno Haible  <bruno@clisp.org>
40020
40021         * posix-modules: New file. Portions copied from gnulib-tool.
40022         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
40023
40024 2007-09-08  Jim Meyering  <jim@meyering.net>
40025
40026         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
40027         * lib/fpending.h: Rename from __fpending.h.
40028         * lib/fpending.c: Rename from __fpending.c.
40029         Include "fpending.h", not "__fpending.h".
40030         * lib/__fpending.h, lib/__fpending.c: Remove files.
40031         * modules/fpending (Files): Reflect new file names.
40032         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
40033
40034 2007-09-08  Bruno Haible  <bruno@clisp.org>
40035
40036         * m4/inttypes-h.m4: Remove stub file.
40037
40038 2007-09-07  Simon Josefsson  <simon@josefsson.org>
40039
40040         * doc/headers/stdint.texi: Discuss #include_next issue.
40041
40042 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40043
40044         * build-aux/bootstrap: Remove obsolete comment about wget --help.
40045
40046 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40047
40048         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
40049         in variable name.
40050
40051 2007-09-03  Jim Meyering  <jim@meyering.net>
40052
40053         New module: git-version-gen.
40054         * modules/git-version-gen: New file.
40055
40056         Import changes from coreutils for bootstrap script.
40057
40058         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
40059
40060         bootstrap: uses rsync to download the .po files
40061         * build-aux/bootstrap (po_download_command_format): New global.
40062         (download_po_files): Use rsync.
40063         (update_po_files): Don't remove .po files after download,
40064         so future rsync runs can take advantage of the copies.
40065
40066         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
40067
40068         Solve the unnecessary-.po-file-regeneration problem once and for all.
40069         * build-aux/bootstrap (download_po_files): New function, renamed from
40070         get_translations.  Now, downloads, but doesn't update LINGUAS.
40071         (update_po_files): New function.
40072
40073         bootstrap: Ignore more.
40074         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
40075         uniwidth to e.g., lib/.gitignore.
40076         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40077
40078         * build-aux/bootstrap: New setting: vc_ignore.
40079         (insert_sorted_if_absent): Create $file if absent.
40080         Adapt to new, possibly empty, list: $vc_ignore.
40081
40082         bootstrap: generate more ignorable names
40083         * build-aux/bootstrap (slurp): When generating ignorable names,
40084         also map .sin to .sed, .gperf to .c, and .y to .c.
40085
40086 2007-09-03  Jim Meyering  <jim@meyering.net>
40087
40088         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40089         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40090
40091 2007-09-02  Bruno Haible  <bruno@clisp.org>
40092
40093         Fix mis-recognition of 'mcs' on QNX 6.
40094         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40095         output contains the string "Mono".
40096         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40097         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40098
40099 2007-09-01  Bruno Haible  <bruno@clisp.org>
40100
40101         Fix collision between uniwidth/* and linebreak modules.
40102         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40103         u32_width): Remove declarations.
40104         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40105         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40106         streq3, streq2, streq1, streq0): Remove functions.
40107         (STREQ): Remove macro.
40108         (is_cjk_encoding): Remove function.
40109         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40110         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40111         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40112         * NEWS: Document the change.
40113
40114 2007-09-01  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/streq.h: Add double-inclusion guard.
40117
40118 2007-09-01  Karl Berry  <karl@gnu.org>
40119
40120         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40121
40122 2007-08-28  Jim Meyering  <jim@meyering.net>
40123
40124         Rename mreadlink_with_size to areadlink_with_size.
40125         * NEWS: Document the change.
40126         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40127         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40128         * lib/mreadlink.h: Rename this to...
40129         * lib/areadlink.h: ...this.
40130         * modules/mreadlink-with-size: Rename this to...
40131         * modules/areadlink-with-size: ...this.
40132         * lib/canonicalize.c: Reflect the renaming.
40133         * modules/canonicalize: Likewise.
40134
40135 2007-08-26  Bruno Haible  <bruno@clisp.org>
40136
40137         * gnulib-tool (func_import): When deciding which files to remove,
40138         consider also dangling symbolic links.
40139         Reported by Eric Blake.
40140
40141 2007-08-26  Bruno Haible  <bruno@clisp.org>
40142
40143         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40144
40145 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40146
40147         * lib/readline.c: Don't include getline.h, the prototype is now
40148         found in stdio.h.
40149
40150 2007-08-23  Jim Meyering  <jim@meyering.net>
40151
40152         Getdelim touchup.
40153         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40154         around the funlockfile call, since funlockfile never sets errno.
40155         Don't set errno upon failed realloc.
40156
40157 2007-08-22  Eric Blake  <ebb9@byu.net>
40158
40159         Getline touchups.
40160         * lib/getdelim.c (getdelim): Revert regression that required *n to
40161         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40162         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40163         getdelim, rather than whether implementation is missing.
40164         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40165         * lib/stdio_.h (getline): Also declare if replacement is
40166         required.
40167         * doc/functions/getdelim.texi: New file.
40168         * doc/functions/getline.texi: Likewise.
40169         * doc/gnulib.texi (Function Substitutes): Add new files.
40170         Reported by Bruno Haible.
40171
40172 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40173
40174         * users.txt: Add Guile.
40175
40176 2007-08-22  Eric Blake  <ebb9@byu.net>
40177
40178         * tests/test-getdelim.c (main): Use remove, not unlink.
40179         * tests/test-getline.c (main): Likewise.
40180
40181         Move getline and getdelim into stdio.h, per POSIX 200x.
40182         * modules/getline (Files): Remove getline.h.
40183         (Depends-on): Add stdio.
40184         (configure.ac): Add module indicator.
40185         * modules/getdelim (Files): Remove getdelim.h.
40186         (Depends-on): Add stdio.
40187         (configure.ac): Add module indicator.
40188         * modules/stdio (Makefile.am): Work with new indicators.
40189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40190         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40191         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40192         * lib/getdelim.h: Delete.
40193         * lib/getline.h: Delete.
40194         * lib/stdio_.h (getdelim, getline): Declare.
40195         * modules/getdelim-tests: New module.
40196         * modules/getline-tests: Likewise.
40197         * tests/test-getdelim.c: New file.
40198         * tests/test-getline.c: Likewise.
40199         * NEWS: Document the change.
40200         * lib/getline.c: Update choice of header.
40201         * lib/csharpcomp.c: Likewise.
40202         * lib/getpass.c: Likewise.
40203         * lib/javacomp.c: Likewise.
40204         * lib/javaversion.c: Likewise.
40205         * lib/yesno.c: Likewise.
40206         * lib/getdelim.c: Likewise.
40207         (getdelim): Set errno on failure, and avoid memory leak.
40208
40209 2007-08-19  Bruno Haible  <bruno@clisp.org>
40210
40211         * modules/closein (Depends-on): Add freadahead.
40212         * lib/closein.c: Include freadahead.h.
40213         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40214         is zero.
40215
40216 2007-08-19  Bruno Haible  <bruno@clisp.org>
40217
40218         * modules/freadahead-tests: New file.
40219         * tests/test-freadahead.sh: New file.
40220         * tests/test-freadahead.c: New file.
40221
40222         * modules/freadahead: New file.
40223         * lib/freadahead.h: New file.
40224         * lib/freadahead.c: New file.
40225         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40226         fbufmode, fpurge, freadable, fwritable.
40227
40228 2007-08-19  Eric Blake  <ebb9@byu.net>
40229
40230         Test yesno in combination with closein.
40231         * lib/yesno.c (yesno): Document use of stdin.
40232         * modules/yesno-tests (Files): New module.
40233         * tests/test-yesno.c (main): New file.
40234         * tests/test-yesno.sh: Likewise.
40235
40236 2007-08-19  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40239         * lib/fseeko.c (rpl_fseeko): Likewise.
40240         * lib/fseterr.c (fseterr): Likewise.
40241
40242 2007-08-19  Bruno Haible  <bruno@clisp.org>
40243
40244         * tests/test-lseek.c (main): Disable a test for BeOS.
40245         * doc/functions/lseek.texi: Document the BeOS bug.
40246
40247 2007-08-19  Bruno Haible  <bruno@clisp.org>
40248             Eric Blake  <ebb9@byu.net>
40249
40250         * lib/lseek.c: Include <sys/stat.h>.
40251         (rpl_lseek): Add workaround code also for Unix platforms.
40252         Needed for BeOS.
40253         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40254         * doc/functions/lseek.texi: Document BeOS definiency.
40255
40256 2007-08-18  Bruno Haible  <bruno@clisp.org>
40257
40258         * modules/fstrcmp-tests: New file.
40259         * tests/test-fstrcmp.c: New file.
40260
40261 2007-08-18  Bruno Haible  <bruno@clisp.org>
40262
40263         * modules/fstrcmp: New file, from GNU gettext with modifications.
40264         * lib/fstrcmp.h: New file, from GNU gettext.
40265         * lib/fstrcmp.c: New file, from GNU gettext.
40266         * MODULES.html.sh (String handling): Add fstrcmp.
40267
40268 2007-08-18  Bruno Haible  <bruno@clisp.org>
40269
40270         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40271         'bool'.
40272         (diag, compareseq): Remove const from the ctxt argument.
40273         (USE_HEURISTIC): Undefine at the end.
40274
40275 2007-08-18  Jim Meyering  <jim@meyering.net>
40276
40277         New file: lib/idcache.h
40278         * NEWS: Mention the addition.
40279         * modules/idcache (Files): Add lib/idcache.h
40280         * lib/idcache.c: Include "idcache.h".
40281         Don't include <sys/types.h>.
40282         Add a FIXME comment.
40283         Move file-scoped "static" declarations to the top.
40284         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40285
40286 2007-08-17  Bruno Haible  <bruno@clisp.org>
40287         and Paul Eggert  <eggert@cs.ucla.edu>
40288
40289         * MODULES.html.sh: Add diffseq.
40290         * modules/diffseq: New file.
40291         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40292         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40293
40294 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40295
40296         Import changes from coreutils for bootstrap script.
40297
40298         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40299
40300         * build-aux/bootstrap (slurp): Work even in environments where
40301         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40302         current code does not slurp files whose names start with ".", and
40303         this looks like it might be a troublesome area.
40304
40305         2007-07-11  Jim Meyering  <jim@meyering.net>
40306
40307         If there's a GPL vN copyright comment, require that N == 3.
40308
40309         2007-07-08  Jim Meyering  <jim@meyering.net>
40310
40311         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40312         * build-aux/bootstrap (mam_template): Move definition out of loop.
40313
40314         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40315
40316         * build-aux/bootstrap (symlink_to_dir): Rename function from
40317         symlink_to_gnulib.  Add a directory parameter.  Update all
40318         callers.
40319         (cp_mark_as_generated): Also check for -- and link to -- files in
40320         gl/.
40321
40322         2007-07-08  Jim Meyering  <jim@meyering.net>
40323
40324         Adapt to deeper hierarchy in gnulib.
40325         * build-aux/bootstrap (symlink_to_dir): If the destination
40326         directory doesn't exist, create it. This is required at least for
40327         "lib/uniwidth/cjk.h".
40328
40329         2007-05-15  Jim Meyering  <jim@meyering.net>
40330
40331         * build-aux/bootstrap: Now that generated Makefile.am files
40332         are no longer under version control, they must be created at
40333         bootstrap time.
40334
40335 2007-08-14  Ben Pfaff  <blp@gnu.org>
40336
40337         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40338
40339 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40340
40341         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40342         given the changes below.
40343         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40344         even on hosts that have padding bits beyond the supported 64.
40345
40346 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40347
40348         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40349         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40350         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40351         depends on it.
40352         (xstrtol_error): Remove.
40353         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40354         but with a different signature.
40355         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40356         * lib/xstrtol-error.c: Include exitfail.h.
40357         (xstrtol_fatal): New function, with a different signature from the
40358         old xstrtol_error, so that the caller need not worry about passing
40359         in an exit status, or about storage management of the option argument.
40360         (xstrtol_error): Now a static function.  Redo signature to
40361         implement xstrtol_fatal.  Output the correct number of hyphens in
40362         front of the option so that the caller need not worry about
40363         storage management.
40364         (N_): New macro.
40365         (_): Remove; not used now.
40366         * modules/xstrtol: Depend on getopt.
40367         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40368         of old STRTOL_FATAL_ERROR macro.
40369         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40370         of test program.
40371         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40372         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40373
40374 2007-08-08  Eric Blake  <ebb9@byu.net>
40375
40376         * lib/xstrtol-error.c: Add missing include.
40377
40378         Move xstrtol messages into gnulib domain, when --pobase is used.
40379         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40380         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40381         * modules/xstrtol (Files): Distribute new file.
40382         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40383         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40384         * tests/test-xstrtol.c: ...into new file.
40385         * tests/test-xstrtoul.c: Also test xstrtoul.
40386         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40387         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40388         * tests/test-xstrtol.sh: Drive the tests.
40389         * tests/test-xstrtoimax.sh: Likewise.
40390         * tests/test-xstrtoumax.sh: Likewise.
40391         * modules/xstrtol-tests: New module.
40392         * modules/xstrtoimax-tests: Likewise.
40393         * modules/xstrtoumax-tests: Likewise.
40394
40395 2007-08-08  Jim Meyering  <jim@meyering.net>
40396
40397         New function: mfile_name_concat.
40398         * lib/filenamecat.c (mfile_name_concat): New function, just like
40399         file_name_concat, but return NULL upon failure rather than exiting
40400         with a diagnostic.
40401         * lib/filenamecat.h: Declare it.
40402
40403 2007-08-07  Bruno Haible  <bruno@clisp.org>
40404
40405         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40406         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40407         warning from gcc.
40408         Reported by Eric Blake.
40409
40410 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40411
40412         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40413         * modules/crypto/arcfour (License): Likewise.
40414         * modules/crypto/des-tests (License): Likewise.
40415         * modules/crypto/gc-arctwo-tests (License): Likewise.
40416         * modules/crypto/gc-des-tests (License): Likewise.
40417         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40418         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40419         * modules/crypto/gc-md2-tests (License): Likewise.
40420         * modules/crypto/gc-md4-tests (License): Likewise.
40421         * modules/crypto/gc-md5-tests (License): Likewise.
40422         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40423         * modules/crypto/gc-rijndael-tests (License): Likewise.
40424         * modules/crypto/gc-sha1-tests (License): Likewise.
40425         * modules/crypto/gc-tests (License): Likewise.
40426         * modules/crypto/hmac-md5 (License): Likewise.
40427         * modules/crypto/hmac-sha1 (License): Likewise.
40428         * modules/crypto/md2-tests (License): Likewise.
40429         * modules/crypto/md4-tests (License): Likewise.
40430         * modules/crypto/md5 (License): Likewise.
40431         * modules/crypto/rijndael (License): Likewise.
40432         * modules/crypto/sha1 (License): Likewise.
40433         * modules/memxor (License): Likewise.
40434
40435 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40436         and Bruno Haible  <bruno@clisp.org>
40437
40438         * NEWS: Describe interface changes to human, xstrtol.
40439         * lib/human.h: Include <xstrtol.h>.
40440         (human_options): Return enum strtol_error, not int.  Remove
40441         bool arg; take int * instead.
40442         * lib/human.c: Don't include "gettext.h".
40443         (_): Remove; no longer used.
40444         Don't include <xstrtol.h>, since human.h does it.
40445         (human_options): Adjust to abovementioned interface changes.
40446         Do not report error to stderr; that's now the caller's
40447         responsibility.
40448         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40449         interface change.
40450         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40451         Str, Argument_type_string.  All uses changed.  Put " argument"
40452         in diagnostics to make them clearer.  Change wording of suffix
40453         message for clarity.
40454         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40455         Argument_type_string.
40456         (STRTOL_FATAL_WARN): Remove; no longer used.
40457         * modules/human (Depends-on): Remove gettext-h.
40458
40459 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40460
40461         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40462
40463 2007-07-31  Bruno Haible  <bruno@clisp.org>
40464
40465         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40466         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40467         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40468
40469 2007-07-31  Bruno Haible  <bruno@clisp.org>
40470
40471         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40472         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40473
40474 2007-07-30  Bruno Haible  <bruno@clisp.org>
40475
40476         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40477         * modules/c-ctype (License): Likewise.
40478         * modules/c-strcase (License): Likewise.
40479         * modules/check-version (License): Likewise.
40480         * modules/iconv (License): Likewise.
40481         * modules/iconv_open (License): Likewise.
40482         * modules/read-file (License): Likewise.
40483         * modules/striconv (License): Likewise.
40484         * modules/strverscmp (License): Likewise.
40485         * modules/vasprintf (License): Likewise.
40486         * modules/crypto/des (License): Likewise.
40487         * modules/crypto/gc (License): Likewise.
40488         * modules/crypto/gc-arcfour (License): Likewise.
40489         * modules/crypto/gc-arctwo (License): Likewise.
40490         * modules/crypto/gc-des (License): Likewise.
40491         * modules/crypto/gc-hmac-md5 (License): Likewise.
40492         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40493         * modules/crypto/gc-md2 (License): Likewise.
40494         * modules/crypto/gc-md4 (License): Likewise.
40495         * modules/crypto/gc-md5 (License): Likewise.
40496         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40497         * modules/crypto/gc-random (License): Likewise.
40498         * modules/crypto/gc-rijndael (License): Likewise.
40499         * modules/crypto/gc-sha1 (License): Likewise.
40500         * modules/crypto/md2 (License): Likewise.
40501         * modules/crypto/md4 (License): Likewise.
40502
40503 2007-07-30  Jim Meyering  <jim@meyering.net>
40504
40505         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40506         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40507         it has valid stat data.  This bug would cause du not to count the
40508         sizes of inaccessible directories.
40509         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40510         in <http://bugzilla.redhat.com/250077>.
40511
40512 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40513             Bruno Haible  <bruno@clisp.org>
40514
40515         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40516         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40517         #include_next, gives a diagnostic about it, but reports no error in
40518         the exit code.
40519         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40520
40521 2007-07-24  Ben Pfaff  <blp@gnu.org>
40522
40523         Improve name: "count-one-bits" is better than "popcount".
40524         * MODULES.html.sh: Update name.
40525         * lib/popcount.h: Renamed lib/count-one-bits.h.
40526         (popcount): Renamed count_one_bits.
40527         (popcountl): Renamed count_one_bits_l.
40528         (popcountll): Renamed count_one_bits_ll.
40529         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40530         * modules/popcount: Renamed module/count-one-bits.
40531         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40532         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40533
40534 2007-07-23  Ben Pfaff  <blp@gnu.org>
40535
40536         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40537         better code generation, and add U to large constants to avoid
40538         warnings, in non-GCC case.
40539         Suggested by Bruno Haible.
40540
40541 2007-07-23  Ben Pfaff  <blp@gnu.org>
40542
40543         * lib/popcount.h: Use verify_true instead of if...abort.
40544         * modules/popcount: Depend on verify module.
40545         Suggested by Jim Meyering.
40546
40547 2007-07-23  Bruno Haible  <bruno@clisp.org>
40548
40549         * gnulib-tool (func_import): Create a .cvsignore file also when the
40550         directory is not yet in CVS but the toplevel directory is. When
40551         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40552         Reported by Karl Berry.
40553
40554 2007-07-22  Ben Pfaff  <blp@gnu.org>
40555
40556         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40557         case.
40558         Suggested by Eric Blake.
40559
40560 2007-07-22  Ben Pfaff  <blp@gnu.org>
40561
40562         New module: popcount.
40563         * MODULES.html.sh: Add popcount.
40564         * modules/popcount: New file.
40565         * modules/popcount-tests: New file.
40566         * tests/test-popcount.c: New file.
40567         * lib/popcount.h: New file.
40568         * m4/popcount.m4: New file.
40569
40570 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40571
40572         * build-aux/announce-gen: Update to GPLv3.
40573
40574         * build-aux/config.guess: Update from config.
40575
40576 2007-07-21  Bruno Haible  <bruno@clisp.org>
40577
40578         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40579         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40580
40581 2007-07-20  Jim Meyering  <jim@meyering.net>
40582
40583         * check-module: Diagnose a self-dependency.
40584
40585 2007-07-19  Bruno Haible  <bruno@clisp.org>
40586
40587         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40588         empty.
40589         Reported by Eric Blake.
40590
40591 2007-07-18  Bruno Haible  <bruno@clisp.org>
40592
40593         * gnulib-tool: New options --po-base, --po-domain.
40594         (func_usage): Document them.
40595         (pobase, po_domain): New variables.
40596         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40597         DEFAULT_TEXT_DOMAIN.
40598         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40599         (func_import): Consider pobase and po_domain. Create a po/ directory.
40600         (func_create_testdir): Set pobase and po_domain to empty.
40601         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40602         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40603
40604 2007-07-18  Bruno Haible  <bruno@clisp.org>
40605
40606         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40607         EXTRA_DIST augmentation for files in build-aux/.
40608
40609 2007-07-16  Bruno Haible  <bruno@clisp.org>
40610
40611         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40612         * modules/getdelim (License): Likewise.
40613
40614 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40615
40616         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40617         * modules/d-type (License): Likewise.
40618         * modules/extensions (License): Likewise.
40619         * modules/fnmatch (License): Likewise.
40620         * modules/fseeko (License): Likewise.
40621         * modules/getaddrinfo (License): Likewise.
40622         * modules/getline (License): Likewise.
40623         * modules/getlogin_r (License): Likewise.
40624         * modules/getpass (License): Likewise.
40625         * modules/gettimeofday (License): Likewise.
40626         * modules/glob (License): Likewise.
40627         * modules/inet_ntop (License): Likewise.
40628         * modules/malloc (License): Likewise.
40629         * modules/malloca (License): Likewise.
40630         * modules/memmem (License): Likewise.
40631         * modules/mempcpy (License): Likewise.
40632         * modules/memset (License): Likewise.
40633         * modules/minmax (License): Likewise.
40634         * modules/mktime (License): Likewise.
40635         * modules/netinet_in (License): Likewise.
40636         * modules/pathmax (License): Likewise.
40637         * modules/poll (License): Likewise.
40638         * modules/regex (License): Likewise.
40639         * modules/snprintf (License): Likewise.
40640         * modules/stdbool (License): Likewise.
40641         * modules/stdint (License): Likewise.
40642         * modules/stdio (License): Likewise.
40643         * modules/strcase (License): Likewise.
40644         * modules/strcasestr (License): Likewise.
40645         * modules/strdup (License): Likewise.
40646         * modules/string (License): Likewise.
40647         * modules/strndup (License): Likewise.
40648         * modules/strnlen (License): Likewise.
40649         * modules/strpbrk (License): Likewise.
40650         * modules/strptime (License): Likewise.
40651         * modules/strsep (License): Likewise.
40652         * modules/sys_select (License): Likewise.
40653         * modules/sys_socket (License): Likewise.
40654         * modules/sys_stat (License): Likewise.
40655         * modules/sys_time (License): Likewise.
40656         * modules/time (License): Likewise.
40657         * modules/time_r (License): Likewise.
40658         * modules/timegm (License): Likewise.
40659         * modules/unistd (License): Likewise.
40660         * modules/vsnprintf (License): Likewise.
40661         * modules/wctype (License): Likewise.
40662
40663 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40664
40665         * modules/argz (License): LGPLv2+.
40666
40667 2007-07-15  Karl Berry  <karl@gnu.org>
40668
40669         * doc/gnulib.texi: revise node structure per new fdl.texi.
40670
40671 2007-07-14  Bruno Haible  <bruno@clisp.org>
40672
40673         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40674         the output file.
40675         * lib/uniname/uninames.h: Regenerated.
40676
40677 2007-07-14  Karl Berry  <karl@gnu.org>
40678
40679         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40680         omitting sectioning and index commands.
40681
40682 2007-07-13  Bruno Haible  <bruno@clisp.org>
40683
40684         New gnulib-tool option --more-symlinks.
40685         * gnulib-tool (func_usage): Document --more-symlinks.
40686         (do_copyrights): New variable.
40687         Recognize option --more-symlinks.
40688         (func_import): Don't add a copyright notice transform to
40689         sed_transform_lib_file if do_copyrights is empty.
40690
40691 2007-07-13  Bruno Haible  <bruno@clisp.org>
40692
40693         * lib/vasnprintf.c (decimal_point_char): Define also if
40694         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40695         && !NEED_PRINTF_DIRECTIVE_A.
40696         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40697         Gary V. Vaughan <gary@gnu.org>.
40698
40699 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40700
40701         * lib/inttypes_.h: Undo previous change, since it was fixed
40702         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40703
40704 2007-07-13  Bruno Haible  <bruno@clisp.org>
40705
40706         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40707         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40708
40709 2007-07-13  Jim Meyering  <jim@meyering.net>
40710
40711         df: Don't fail for Tru64's "file-on-file mount".
40712         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40713         so we fall through and use statfs instead.  Details here:
40714         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40715         Reported by Albert Chin.
40716
40717 2007-07-13  Bruno Haible  <bruno@clisp.org>
40718
40719         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40720         * modules/configmake (License): Likewise.
40721         * modules/gettext (License): Likewise.
40722         * modules/gettext-h (License): Likewise.
40723         * modules/include_next (License): Likewise.
40724         * modules/link-warning (License): Likewise.
40725         * modules/localcharset (License): Likewise.
40726         * modules/localename (License): Likewise.
40727         * modules/lock (License): Likewise.
40728         * modules/relocatable-lib-lgpl (License): Likewise.
40729         * modules/size_max (License): Likewise.
40730         * modules/vasnprintf (License): Likewise.
40731         * modules/wchar (License): Likewise.
40732         * modules/xsize (License): Likewise.
40733
40734 2007-07-13  Bruno Haible  <bruno@clisp.org>
40735
40736         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40737         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40738
40739 2007-07-12  Bruno Haible  <bruno@clisp.org>
40740
40741         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40742         in the modules files.
40743
40744 2007-07-11  Karl Berry  <karl@gnu.org>
40745
40746         * MODULES.html.sh (func_module): use
40747          sed -e '\|^'"${includefile}"'$|d'
40748          instead of /.../d, to avoid errors on $includefile's containing /.
40749
40750 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40751
40752         * gnulib-tool (func_import): Avoid duplication of --avoid
40753         statements
40754         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40755         names to `_' in variable names.
40756
40757 2007-07-10  Eric Blake  <ebb9@byu.net>
40758
40759         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40760         * NEWS: Document this change.
40761
40762 2007-07-08  Bruno Haible  <bruno@clisp.org>
40763
40764         Update to Unicode 5.0.
40765         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40766         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40767         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40768         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40769         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40770         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40771         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40772         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40773         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40774         U+10A3F, U+1D242..U+1D244.
40775         (nonspacing_table_ind): Update.
40776         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40777         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40778
40779 2007-07-08  Bruno Haible  <bruno@clisp.org>
40780
40781         Update to Unicode 5.0.
40782         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40783         code transform. Extend the name index field of unicode_name_to_code and
40784         unicode_code_to_name from 16 to 24 bits.
40785         * lib/uniname/uniname.c (unicode_character_name,
40786         unicode_name_character): Add the range 0x12xxx to the code transform.
40787         * lib/uniname/uninames.h: Regenerated.
40788         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40789
40790 2007-07-07  Bruno Haible  <bruno@clisp.org>
40791
40792         * modules/wcwidth-tests: New file.
40793         * tests/test-wcwidth.c: New file.
40794
40795         Work around MacOS X wcwidth() bug.
40796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40797         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40798         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40799         original wcwidth in non-UTF-8 locales.
40800         * modules/wcwidth (Depends-on): Add localcharset, streq,
40801         uniwidth/width.
40802         * doc/functions/wcwidth.texi: Update.
40803
40804 2007-07-07  Bruno Haible  <bruno@clisp.org>
40805
40806         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40807         (wcwidth): New declaration.
40808         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40809         macros.
40810         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40811         here. Prepare for creating <wchar.h> unconditionally.
40812         * modules/wchar (Depends-on): Add link-warning.
40813         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40814         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40815         * lib/wcwidth.h: Remove file.
40816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40817         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40818         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40819         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40820         (Include): Replace wcwidth.h with <wchar.h>.
40821         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40822         * lib/mbchar.h: Don't include wcwidth.h.
40823         * lib/mbswidth.c: Likewise.
40824         * NEWS: Mention the change.
40825
40826 2007-07-07  Bruno Haible  <bruno@clisp.org>
40827
40828         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40829         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40830         definition with an external declaration.
40831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40832         defined as a function. Remove AC_C_INLINE requirement.
40833         * modules/wcwidth (Files): Add lib/wcwidth.c.
40834         (Makefile.am): Remove redundant statement.
40835
40836 2007-07-07  Bruno Haible  <bruno@clisp.org>
40837
40838         * MODULES.html.sh (Unicode string functions): Add the new modules.
40839
40840         * tests/uniwidth/test-u32-strwidth.c: New file.
40841         * modules/uniwidth/u32-strwidth-tests: New file.
40842
40843         * lib/uniwidth/u32-strwidth.c: New file.
40844         * modules/uniwidth/u32-strwidth: New file.
40845
40846         * tests/uniwidth/test-u16-strwidth.c: New file.
40847         * modules/uniwidth/u16-strwidth-tests: New file.
40848
40849         * lib/uniwidth/u16-strwidth.c: New file.
40850         * modules/uniwidth/u16-strwidth: New file.
40851
40852         * tests/uniwidth/test-u8-strwidth.c: New file.
40853         * modules/uniwidth/u8-strwidth-tests: New file.
40854
40855         * lib/uniwidth/u8-strwidth.c: New file.
40856         * modules/uniwidth/u8-strwidth: New file.
40857
40858         * tests/uniwidth/test-u32-width.c: New file.
40859         * modules/uniwidth/u32-width-tests: New file.
40860
40861         * lib/uniwidth/u32-width.c: New file.
40862         * modules/uniwidth/u32-width: New file.
40863
40864         * tests/uniwidth/test-u16-width.c: New file.
40865         * modules/uniwidth/u16-width-tests: New file.
40866
40867         * lib/uniwidth/u16-width.c: New file.
40868         * modules/uniwidth/u16-width: New file.
40869
40870         * tests/uniwidth/test-u8-width.c: New file.
40871         * modules/uniwidth/u8-width-tests: New file.
40872
40873         * lib/uniwidth/u8-width.c: New file.
40874         * modules/uniwidth/u8-width: New file.
40875
40876         * tests/uniwidth/test-uc_width.c: New file.
40877         * modules/uniwidth/width-tests: New file.
40878
40879         * lib/uniwidth/width.c: New file, from GNU libiconv.
40880         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40881         * modules/uniwidth/width: New file.
40882
40883         * lib/uniwidth.h: New file, from GNU libiconv.
40884         * modules/uniwidth/base: New file.
40885
40886 2007-07-07  Bruno Haible  <bruno@clisp.org>
40887
40888         * lib/uniname.h: New file, from GNU gettext.
40889         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40890         * lib/uniname/uninames.h: New file, from GNU gettext.
40891         * lib/uniname/uniname.c: New file, from GNU gettext.
40892         * tests/uniname/test-uninames.sh: New file.
40893         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40894         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40895         * modules/uniname/base: New file.
40896         * modules/uniname/uniname: New file.
40897         * modules/uniname/uniname-tests: New file.
40898         * MODULES.html.sh (Unicode string functions): Add the new modules.
40899
40900 2007-07-06  Bruno Haible  <bruno@clisp.org>
40901
40902         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40903
40904 2007-07-06  Bruno Haible  <bruno@clisp.org>
40905
40906         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40907         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40908         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40909         include <sys/time.h>.
40910         Reported by Eric Blake.
40911
40912 2007-07-06  Eric Blake  <ebb9@byu.net>
40913
40914         Fix testing canonicalize on cygwin.
40915         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40916         Revert patch from 2007-06-19.
40917         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40918         canonicalize module is also in use.
40919         * tests/test-canonicalize.c: New file.
40920         * tests/test-canonicalize.sh: Likewise.
40921         * modules/canonicalize-tests: Likewise.
40922
40923 2007-07-06  Jim Meyering  <jim@meyering.net>
40924
40925         * lib/getugroups.c (getugroups): Detect getgrent failure.
40926         Adjust comment to reflect reality: this function may return -1.
40927
40928 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40929
40930         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40931         the new TP address.
40932         (usage): Fix typo
40933         (gnulib_mk): New variable.
40934
40935 2007-07-05  Jim Meyering  <jim@meyering.net>
40936
40937         Don't let endgrent clobber errno, no matter how improbable.
40938         * lib/getugroups.c (getugroups): Save and restore errno around
40939         endgrent call.
40940
40941         Close the group DB even when failing with 2^31 or more members.
40942         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40943
40944 2007-07-04  Jim Meyering  <jim@meyering.net>
40945
40946         * lib/getugroups.h: New file.
40947         * lib/getugroups.c: Include "getugroups.h".
40948         Remove uses of "register" keyword.
40949         Move local variable, "cp", down into scope where used.
40950         Give "username" parameter the "const" attribute.
40951         * modules/getugroups (Files): Add lib/getugroups.h
40952
40953 2007-07-04  Karl Berry  <karl@gnu.org>
40954
40955         * MODULES.html.sh (func_all_modules): Complete rename of
40956         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40957
40958 2007-07-02  Bruno Haible  <bruno@clisp.org>
40959
40960         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40961         mode, when inttypes.h comes from gnulib.
40962         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40963
40964 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40965
40966         * NEWS: Mention lgpl module name change.
40967
40968         * modules/lgpl-2.1: Renamed from lgpl.
40969
40970         * NEWS: Mention gpl module name change.
40971
40972         * modules/gpl-3.0: New file, based on gpl-2.0.
40973
40974         * modules/gpl-2.0: Renamed from gpl.
40975
40976         * modules/gpl: Fix filename, doc/gpl.texi is now found at
40977         doc/gpl-2.0.texi.
40978
40979 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40980
40981         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40982         #define __STDC_LIMIT_MACROS temporarily while including
40983         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40984         Problem reported by Joel E. Denny in
40985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40986
40987 2007-07-01  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/unistdio.h: New file.
40990         * lib/unistdio/u-asnprintf.h: New file.
40991         * lib/unistdio/u-asprintf.h: New file.
40992         * lib/unistdio/u-printf-args.c: New file.
40993         * lib/unistdio/u-printf-args.h: New file.
40994         * lib/unistdio/u-printf-parse.h: New file.
40995         * lib/unistdio/u-snprintf.h: New file.
40996         * lib/unistdio/u-sprintf.h: New file.
40997         * lib/unistdio/u-vasprintf.h: New file.
40998         * lib/unistdio/u-vsnprintf.h: New file.
40999         * lib/unistdio/u-vsprintf.h: New file.
41000         * lib/unistdio/ulc-asnprintf.c: New file.
41001         * lib/unistdio/ulc-asprintf.c: New file.
41002         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
41003         * lib/unistdio/ulc-printf-parse.c: New file.
41004         * lib/unistdio/ulc-snprintf.c: New file.
41005         * lib/unistdio/ulc-sprintf.c: New file.
41006         * lib/unistdio/ulc-vasnprintf.c: New file.
41007         * lib/unistdio/ulc-vasprintf.c: New file.
41008         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
41009         * lib/unistdio/ulc-vsnprintf.c: New file.
41010         * lib/unistdio/ulc-vsprintf.c: New file.
41011         * lib/unistdio/u8-asnprintf.c: New file.
41012         * lib/unistdio/u8-asprintf.c: New file.
41013         * lib/unistdio/u8-printf-parse.c: New file.
41014         * lib/unistdio/u8-snprintf.c: New file.
41015         * lib/unistdio/u8-sprintf.c: New file.
41016         * lib/unistdio/u8-vasnprintf.c: New file.
41017         * lib/unistdio/u8-vasprintf.c: New file.
41018         * lib/unistdio/u8-vsnprintf.c: New file.
41019         * lib/unistdio/u8-vsprintf.c: New file.
41020         * lib/unistdio/u8-u8-asnprintf.c: New file.
41021         * lib/unistdio/u8-u8-asprintf.c: New file.
41022         * lib/unistdio/u8-u8-snprintf.c: New file.
41023         * lib/unistdio/u8-u8-sprintf.c: New file.
41024         * lib/unistdio/u8-u8-vasnprintf.c: New file.
41025         * lib/unistdio/u8-u8-vasprintf.c: New file.
41026         * lib/unistdio/u8-u8-vsnprintf.c: New file.
41027         * lib/unistdio/u8-u8-vsprintf.c: New file.
41028         * lib/unistdio/u16-asnprintf.c: New file.
41029         * lib/unistdio/u16-asprintf.c: New file.
41030         * lib/unistdio/u16-printf-parse.c: New file.
41031         * lib/unistdio/u16-snprintf.c: New file.
41032         * lib/unistdio/u16-sprintf.c: New file.
41033         * lib/unistdio/u16-vasnprintf.c: New file.
41034         * lib/unistdio/u16-vasprintf.c: New file.
41035         * lib/unistdio/u16-vsnprintf.c: New file.
41036         * lib/unistdio/u16-vsprintf.c: New file.
41037         * lib/unistdio/u16-u16-asnprintf.c: New file.
41038         * lib/unistdio/u16-u16-asprintf.c: New file.
41039         * lib/unistdio/u16-u16-snprintf.c: New file.
41040         * lib/unistdio/u16-u16-sprintf.c: New file.
41041         * lib/unistdio/u16-u16-vasnprintf.c: New file.
41042         * lib/unistdio/u16-u16-vasprintf.c: New file.
41043         * lib/unistdio/u16-u16-vsnprintf.c: New file.
41044         * lib/unistdio/u16-u16-vsprintf.c: New file.
41045         * lib/unistdio/u32-asnprintf.c: New file.
41046         * lib/unistdio/u32-asprintf.c: New file.
41047         * lib/unistdio/u32-printf-parse.c: New file.
41048         * lib/unistdio/u32-snprintf.c: New file.
41049         * lib/unistdio/u32-sprintf.c: New file.
41050         * lib/unistdio/u32-vasnprintf.c: New file.
41051         * lib/unistdio/u32-vasprintf.c: New file.
41052         * lib/unistdio/u32-vsnprintf.c: New file.
41053         * lib/unistdio/u32-vsprintf.c: New file.
41054         * lib/unistdio/u32-u32-asnprintf.c: New file.
41055         * lib/unistdio/u32-u32-asprintf.c: New file.
41056         * lib/unistdio/u32-u32-snprintf.c: New file.
41057         * lib/unistdio/u32-u32-sprintf.c: New file.
41058         * lib/unistdio/u32-u32-vasnprintf.c: New file.
41059         * lib/unistdio/u32-u32-vasprintf.c: New file.
41060         * lib/unistdio/u32-u32-vsnprintf.c: New file.
41061         * lib/unistdio/u32-u32-vsprintf.c: New file.
41062         * tests/unistdio/test-ulc-asnprintf1.c: New file.
41063         * tests/unistdio/test-ulc-asnprintf1.h: New file.
41064         * tests/unistdio/test-ulc-printf1.h: New file.
41065         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
41066         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
41067         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
41068         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
41069         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
41070         * tests/unistdio/test-ulc-vasprintf1.c: New file.
41071         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
41072         * tests/unistdio/test-ulc-vsprintf1.c: New file.
41073         * tests/unistdio/test-u8-asnprintf1.c: New file.
41074         * tests/unistdio/test-u8-asnprintf1.h: New file.
41075         * tests/unistdio/test-u8-printf1.h: New file.
41076         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41077         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41078         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41079         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41080         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41081         * tests/unistdio/test-u8-vasprintf1.c: New file.
41082         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41083         * tests/unistdio/test-u8-vsprintf1.c: New file.
41084         * tests/unistdio/test-u16-asnprintf1.c: New file.
41085         * tests/unistdio/test-u16-asnprintf1.h: New file.
41086         * tests/unistdio/test-u16-printf1.h: New file.
41087         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41088         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41089         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41090         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41091         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41092         * tests/unistdio/test-u16-vasprintf1.c: New file.
41093         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41094         * tests/unistdio/test-u16-vsprintf1.c: New file.
41095         * tests/unistdio/test-u32-asnprintf1.c: New file.
41096         * tests/unistdio/test-u32-asnprintf1.h: New file.
41097         * tests/unistdio/test-u32-printf1.h: New file.
41098         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41099         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41100         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41101         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41102         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41103         * tests/unistdio/test-u32-vasprintf1.c: New file.
41104         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41105         * tests/unistdio/test-u32-vsprintf1.c: New file.
41106         * modules/unistdio/base: New file.
41107         * modules/unistdio/u-printf-args: New file.
41108         * modules/unistdio/ulc-asnprintf: New file.
41109         * modules/unistdio/ulc-asprintf: New file.
41110         * modules/unistdio/ulc-fprintf: New file.
41111         * modules/unistdio/ulc-printf-parse: New file.
41112         * modules/unistdio/ulc-snprintf: New file.
41113         * modules/unistdio/ulc-sprintf: New file.
41114         * modules/unistdio/ulc-vasnprintf: New file.
41115         * modules/unistdio/ulc-vasprintf: New file.
41116         * modules/unistdio/ulc-vfprintf: New file.
41117         * modules/unistdio/ulc-vsnprintf: New file.
41118         * modules/unistdio/ulc-vsprintf: New file.
41119         * modules/unistdio/u8-asnprintf: New file.
41120         * modules/unistdio/u8-asprintf: New file.
41121         * modules/unistdio/u8-printf-parse: New file.
41122         * modules/unistdio/u8-snprintf: New file.
41123         * modules/unistdio/u8-sprintf: New file.
41124         * modules/unistdio/u8-vasnprintf: New file.
41125         * modules/unistdio/u8-vasprintf: New file.
41126         * modules/unistdio/u8-vsnprintf: New file.
41127         * modules/unistdio/u8-vsprintf: New file.
41128         * modules/unistdio/u8-u8-asnprintf: New file.
41129         * modules/unistdio/u8-u8-asprintf: New file.
41130         * modules/unistdio/u8-u8-snprintf: New file.
41131         * modules/unistdio/u8-u8-sprintf: New file.
41132         * modules/unistdio/u8-u8-vasnprintf: New file.
41133         * modules/unistdio/u8-u8-vasprintf: New file.
41134         * modules/unistdio/u8-u8-vsnprintf: New file.
41135         * modules/unistdio/u8-u8-vsprintf: New file.
41136         * modules/unistdio/u16-asnprintf: New file.
41137         * modules/unistdio/u16-asprintf: New file.
41138         * modules/unistdio/u16-printf-parse: New file.
41139         * modules/unistdio/u16-snprintf: New file.
41140         * modules/unistdio/u16-sprintf: New file.
41141         * modules/unistdio/u16-vasnprintf: New file.
41142         * modules/unistdio/u16-vasprintf: New file.
41143         * modules/unistdio/u16-vsnprintf: New file.
41144         * modules/unistdio/u16-vsprintf: New file.
41145         * modules/unistdio/u16-u16-asnprintf: New file.
41146         * modules/unistdio/u16-u16-asprintf: New file.
41147         * modules/unistdio/u16-u16-snprintf: New file.
41148         * modules/unistdio/u16-u16-sprintf: New file.
41149         * modules/unistdio/u16-u16-vasnprintf: New file.
41150         * modules/unistdio/u16-u16-vasprintf: New file.
41151         * modules/unistdio/u16-u16-vsnprintf: New file.
41152         * modules/unistdio/u16-u16-vsprintf: New file.
41153         * modules/unistdio/u32-asnprintf: New file.
41154         * modules/unistdio/u32-asprintf: New file.
41155         * modules/unistdio/u32-printf-parse: New file.
41156         * modules/unistdio/u32-snprintf: New file.
41157         * modules/unistdio/u32-sprintf: New file.
41158         * modules/unistdio/u32-vasnprintf: New file.
41159         * modules/unistdio/u32-vasprintf: New file.
41160         * modules/unistdio/u32-vsnprintf: New file.
41161         * modules/unistdio/u32-vsprintf: New file.
41162         * modules/unistdio/u32-u32-asnprintf: New file.
41163         * modules/unistdio/u32-u32-asprintf: New file.
41164         * modules/unistdio/u32-u32-snprintf: New file.
41165         * modules/unistdio/u32-u32-sprintf: New file.
41166         * modules/unistdio/u32-u32-vasnprintf: New file.
41167         * modules/unistdio/u32-u32-vasprintf: New file.
41168         * modules/unistdio/u32-u32-vsnprintf: New file.
41169         * modules/unistdio/u32-u32-vsprintf: New file.
41170         * modules/unistdio/ulc-asnprintf-tests: New file.
41171         * modules/unistdio/ulc-vasnprintf-tests: New file.
41172         * modules/unistdio/ulc-vasprintf-tests: New file.
41173         * modules/unistdio/ulc-vsnprintf-tests: New file.
41174         * modules/unistdio/ulc-vsprintf-tests: New file.
41175         * modules/unistdio/u8-asnprintf-tests: New file.
41176         * modules/unistdio/u8-vasnprintf-tests: New file.
41177         * modules/unistdio/u8-vasprintf-tests: New file.
41178         * modules/unistdio/u8-vsnprintf-tests: New file.
41179         * modules/unistdio/u8-vsprintf-tests: New file.
41180         * modules/unistdio/u16-asnprintf-tests: New file.
41181         * modules/unistdio/u16-vasnprintf-tests: New file.
41182         * modules/unistdio/u16-vasprintf-tests: New file.
41183         * modules/unistdio/u16-vsnprintf-tests: New file.
41184         * modules/unistdio/u16-vsprintf-tests: New file.
41185         * modules/unistdio/u32-asnprintf-tests: New file.
41186         * modules/unistdio/u32-vasnprintf-tests: New file.
41187         * modules/unistdio/u32-vasprintf-tests: New file.
41188         * modules/unistdio/u32-vsnprintf-tests: New file.
41189         * modules/unistdio/u32-vsprintf-tests: New file.
41190         * MODULES.html.sh (Unicode string functions): Add the new modules.
41191
41192 2007-07-01  Bruno Haible  <bruno@clisp.org>
41193
41194         * lib/sprintf.c (sprintf): Limit the available length estimation,
41195         to avoid address wraparound.
41196         * lib/vsprintf.c (vsprintf): Likewise.
41197         * modules/sprintf-posix (Dependencies): Add stdint.
41198         * modules/vsprintf-posix (Dependencies): Likewise.
41199
41200 2007-07-01  Bruno Haible  <bruno@clisp.org>
41201
41202         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41203         Windows PATH as well. Conservative double-quoting. Comments.
41204
41205 2007-07-01  Bruno Haible  <bruno@clisp.org>
41206             Eric Blake  <ebb9@byu.net>
41207             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41208
41209         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41210         empty components in $PATH, denoting '.'.
41211
41212 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41213
41214         * gnulib-tool: Fix indentation.
41215         (func_create_megatestdir): Likewise.
41216         Report by Bruno Haible.
41217
41218 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41219
41220         Sync from Automake.
41221         * build-aux/gnupload: Fix shell portability issues with for loops.
41222         Report by Karl Berry.
41223
41224 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41225
41226         * build-aux/maint.mk (POURL): Use translationproject.org.
41227
41228 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41229             Bruno Haible  <bruno@clisp.org>
41230
41231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41232         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41233         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41234         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41235         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41236
41237 2007-06-27  Bruno Haible  <bruno@clisp.org>
41238
41239         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41240         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41241
41242 2007-06-26  Karl Berry  <karl@gnu.org>
41243
41244         * MODULES.html.sh: remove xreadlink-with-size.
41245
41246 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41247
41248         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41249         method that I hope also handles the double-include problem noted
41250         by Bruno Haible in
41251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41252
41253 2007-06-23  Bruno Haible  <bruno@clisp.org>
41254
41255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41256         Don't let the 'mostlyclean' target fail if the last subdirectory could
41257         not be removed.
41258         Reported by Karl Berry.
41259
41260 2007-06-23  Bruno Haible  <bruno@clisp.org>
41261
41262         * gnulib-tool (echo): Add a speedier workaround for ksh.
41263         * tests/test-echo.sh: Likewise.
41264
41265 2007-06-23  Bruno Haible  <bruno@clisp.org>
41266
41267         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41268         * tests/test-echo.sh: Likewise.
41269
41270 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41271
41272         * gnulib-tool (IFS): Initialize early, so we don't set it to
41273         empty later.
41274         (self_abspathname): Rewrite algorithm to set it, reindent.
41275         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41276         (func_create_megatestdir): Merge some sed scripts.
41277
41278 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41279
41280         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41281         exposed by Sun Studio 11 cc on Solaris 8.
41282
41283 2007-06-22  Bruno Haible  <bruno@clisp.org>
41284
41285         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41286         backslashes.
41287         * tests/test-echo.sh: New file.
41288
41289 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41290
41291         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41292         simplify `sed_replace_build_aux' scripts, they are portable but
41293         echoing them with `echo' is not.
41294         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41295
41296 2007-06-21  Karl Berry  <karl@gnu.org>
41297
41298         * config/srclist.txt: guess we can't handle the licenses via
41299         srclist at the moment.
41300
41301 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41302
41303         * MODULES.html.sh: Add include_next.
41304         * modules/include_next: New file.
41305
41306 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41307
41308         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41309         INCLUDE_NEXT.
41310         (gl_CHECK_NEXT_HEADERS): New macro.
41311         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41312         the obsolescent gl_ABSOLUTE_HEADER.
41313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41314         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41315         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41316         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41317         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41318         * m4/math_h.m4 (gl_MATH_H): Likewise.
41319         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41320         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41321         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41322         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41323         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41324         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41325         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41326         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41329         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41330         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41331         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41332         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41333         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41334         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41335         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41336         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41337         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41338         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41339         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41340         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41341         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41342         * lib/float_.h: Likewise.
41343         * lib/inttypes_.h: Likewise.
41344         * lib/math_.h: Likewise.
41345         * lib/search_.h: Likewise.
41346         * lib/signal_.h: Likewise.
41347         * lib/stdint_.h: Likewise.
41348         * lib/stdio_.h: Likewise.
41349         * lib/stdlib_.h: Likewise.
41350         * lib/string_.h: Likewise.
41351         * lib/sys_stat_.h: Likewise.
41352         * lib/sys_time_.h: Likewise.
41353         * lib/time_.h: Likewise.
41354         * lib/unistd_.h: Likewise.
41355         * lib/wchar_.h: Likewise.
41356         * lib/wctype_.h: Likewise.
41357         * lib/dirent_.h: Likewise.
41358         * lib/iconv_.h: Likewise.
41359         * lib/locale_.h: Likewise.
41360         * lib/netinet_in_.h: Likewise.
41361         * lib/sys_select_.h: Likewise.
41362         * lib/sys_socket_.h: Likewise.
41363         * lib/sysexits_.h: Likewise.
41364         * modules/fcntl (Depends-on): Depend on include_next, not
41365         absolute_header.
41366         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41367         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41368         * modules/fchdir: Likewise.
41369         * modules/float: Likewise.
41370         * modules/iconv_open: Likewise.
41371         * modules/inttypes: Likewise.
41372         * modules/locale: Likewise.
41373         * modules/math: Likewise.
41374         * modules/netinet_in: Likewise.
41375         * modules/search: Likewise.
41376         * modules/signal: Likewise.
41377         * modules/stdint: Likewise.
41378         * modules/stdio: Likewise.
41379         * modules/stdlib: Likewise.
41380         * modules/string: Likewise.
41381         * modules/sys_select: Likewise.
41382         * modules/sys_socket: Likewise.
41383         * modules/sys_stat: Likewise.
41384         * modules/sys_time: Likewise.
41385         * modules/sysexits: Likewise.
41386         * modules/time: Likewise.
41387         * modules/unistd: Likewise.
41388         * modules/wchar: Likewise.
41389         * modules/wctype: Likewise.
41390         * modules/sys_stat: Change maintainer to "all".
41391         * modules/unistd: Likewise.
41392
41393 2007-06-20  Karl Berry  <karl@gnu.org>
41394
41395         * config/srclist.txt: track www changes in license files.
41396
41397 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41398
41399         * build-aux/bootstrap: Remove stray dot.
41400         Make sure build_aux settings are honored when linking
41401         gnulib_extra_files.
41402
41403 2007-06-19  Eric Blake  <ebb9@byu.net>
41404
41405         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41406         Allow compilation on cygwin.
41407
41408 2007-06-19  Jim Meyering  <jim@meyering.net>
41409
41410         xreadlink-with-size: Remove module.  No longer used.
41411         Ex-callers now use xreadlink or mreadlink-with-size.
41412         * modules/xreadlink-with-size: Remove module.
41413         * lib/xreadlink-with-size.c: Remove file.
41414         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41415         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41416         just before the function definition *is* accurate.
41417
41418         Eliminate one way canonicalize_filename_mode could exit.
41419         * lib/canonicalize.c (canonicalize_filename_mode):
41420         Use mreadlink_with_size, not xreadlink_with_size.
41421
41422 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         Detect porting problems to FreeBSD/arm, which has time_t wider than
41425         long int.  Original problem reported for GNU diff by Xin Li in
41426         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41427         * modules/getdate (Depends-on): Add intprops, verify.
41428         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41429         is an integer type no wider than long int.
41430
41431 2007-06-18  Jim Meyering  <jim@meyering.net>
41432
41433         New module: mreadlink-with-size.
41434         * MODULES.html.sh: Add mreadlink-with-size.
41435         * modules/mreadlink-with-size: New module
41436         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41437         not xreadlink-with-size.
41438         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41439
41440 2007-06-16  Bruno Haible  <bruno@clisp.org>
41441
41442         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41443         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41444         Reported by Gary V. Vaughan <gary@gnu.org>.
41445
41446 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41447
41448         Revamp lchown so that it lives in unistd.h where it belongs.
41449         * lib/lchown.h: Remove.
41450         * lib/dirchownmod.c: Don't include lib/lchown.h.
41451         * lib/fchownat.c: Likewise.
41452         * lib/openat.c: Likewise.
41453         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41454         does not follow symlinks.
41455         (EOPNOTSUPP): Define if not defined.
41456         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41457         is defined to 0.
41458         (lchown): New decl.
41459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41460         Do not check for lchown decl.
41461         Set REPLACE_LCHOWN.
41462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41463         REPLACE_LCHOWN.
41464         * modules/chown: Make it clear it follows symlinks.
41465         * modules/lchown: Make it clear it doesn't follow symlinks.
41466         (Files): Remove lib/lchown.h
41467         (Depends-on): Add unistd.
41468         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41469         (Include): Include <unistd.h>, not "lchown.h".
41470         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41471         REPLACE_LCHOWN.
41472
41473 2007-06-15  Jim Meyering  <jim@meyering.net>
41474
41475         Change license (GPL to LGPL) of fsusage and dependents.
41476         * modules/fsusage (License): Change to LGPL.
41477         * modules/full-read (License): Likewise.
41478         * modules/full-write (License): Likewise.
41479         * modules/safe-read (License): Likewise.
41480         * modules/safe-write (License): Likewise.
41481
41482 2007-06-14  Ben Pfaff  <blp@gnu.org>
41483
41484         Missing part of allocsa -> malloca transition.
41485         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41486         gl_MALLOCA.
41487
41488 2007-06-12  Bruno Haible  <bruno@clisp.org>
41489
41490         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41491         to ia64, x86_64, i386.
41492         Reported by Eric Blake.
41493
41494 2007-06-12  Bruno Haible  <bruno@clisp.org>
41495
41496         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41497         cross-compiling to x86_64.
41498
41499 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41500
41501         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41502         glitch reported by Ralf Wildenhues in
41503         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41504
41505         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41506         Vin Shelton.
41507
41508 2007-06-11  Bruno Haible  <bruno@clisp.org>
41509
41510         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41511         replacement string.
41512         Reported by Eric Blake.
41513
41514 2007-06-10  Bruno Haible  <bruno@clisp.org>
41515
41516         Prepare vasnprintf code for use with Unicode strings.
41517         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41518         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41519         TYPE_U32_STRING.
41520         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41521         a_u32_string variants.
41522         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41523         * lib/printf-args.c: Don't include config.h and the specification
41524         header if PRINTF_FETCHARGS is already defined.
41525         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41526         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41527         TYPE_U16_STRING, TYPE_U32_STRING.
41528         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41529         u16_directive, u16_directives, u32_directive, u32_directives): New
41530         types.
41531         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41532         New declarations.
41533         * lib/printf-parse.c: Don't include config.h and the specification
41534         header if PRINTF_PARSE is already defined. Eliminate the set of
41535         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41536         them now. Include c-ctype.h.
41537         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41538         directive and CHAR_T_ONLY_ASCII.
41539         * lib/vasnprintf.c: Don't include config.h and the specification header
41540         if VASNPRINTF is already defined.
41541         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41542         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41543         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41544         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41545         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41546         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41547         code accordingly.
41548         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41549         pad_ourselves also in this case, with the 'c' and 's' directives, and
41550         with a different notion of "width".
41551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41552
41553 2007-06-10  Bruno Haible  <bruno@clisp.org>
41554
41555         * modules/unistr/u32-mbsnlen: New file.
41556         * lib/unistr/u32-mbsnlen.c: New file.
41557
41558         * modules/unistr/u16-mbsnlen: New file.
41559         * lib/unistr/u16-mbsnlen.c: New file.
41560
41561         * modules/unistr/u8-mbsnlen: New file.
41562         * lib/unistr/u8-mbsnlen.c: New file.
41563
41564         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41565         declarations.
41566
41567 2007-06-10  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/string_.h (mbsnlen): New declaration.
41570         * lib/mbsnlen.c: New file.
41571         * m4/mbsnlen.m4: New file.
41572         * modules/mbsnlen: New file.
41573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41574         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41575         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41576
41577 2007-06-10  Bruno Haible  <bruno@clisp.org>
41578
41579         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41580
41581 2007-06-10  Bruno Haible  <bruno@clisp.org>
41582
41583         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41584         * lib/mbuiter.h: Likewise.
41585
41586 2007-06-10  Bruno Haible  <bruno@clisp.org>
41587
41588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41589         declaration.
41590
41591 2007-06-10  Karl Berry  <karl@gnu.org>
41592
41593         * config/srclist.txt: remove gettext entries, Bruno prefers
41594         to update individually.
41595
41596 2007-06-10  Bruno Haible  <bruno@clisp.org>
41597
41598         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41599         'maxlen'. Ensure only length + width bytes are allocated, not
41600         length + 1 + width.
41601
41602 2007-06-09  Bruno Haible  <bruno@clisp.org>
41603
41604         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41605         (CHAR_T): Remove macro.
41606         (VASNPRINTF): Update.
41607
41608 2007-06-09  Bruno Haible  <bruno@clisp.org>
41609
41610         * MODULES.html.sh (Unicode string functions): Add the new modules.
41611
41612         * modules/uniconv/u32-conv-to-enc: New file.
41613         * lib/uniconv/u32-conv-to-enc.c: New file.
41614         * modules/uniconv/u32-conv-to-enc-tests: New file.
41615         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41616
41617         * modules/uniconv/u16-conv-to-enc: New file.
41618         * lib/uniconv/u16-conv-to-enc.c: New file.
41619         * lib/uniconv/u-conv-to-enc.h: New file.
41620         * modules/uniconv/u16-conv-to-enc-tests: New file.
41621         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41622
41623         * modules/uniconv/u8-conv-to-enc: New file.
41624         * lib/uniconv/u8-conv-to-enc.c: New file.
41625         * modules/uniconv/u8-conv-to-enc-tests: New file.
41626         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41627
41628         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41629         u32_conv_to_encoding): New declarations.
41630
41631 2007-06-09  Bruno Haible  <bruno@clisp.org>
41632
41633         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41634
41635 2007-06-09  Bruno Haible  <bruno@clisp.org>
41636
41637         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41638         * modules/malloca: Renamed from modules/allocsa, updated.
41639         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41640         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41641         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41642         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41643         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41644         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41645         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41646         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41647         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41648         * modules/c-strcasestr (Depends-on): Update.
41649         * lib/c-strcasestr.c: Update.
41650         * modules/c-strstr (Depends-on): Update.
41651         * lib/c-strstr.c: Update.
41652         * modules/canonicalize-lgpl (Depends-on): Update.
41653         * lib/canonicalize-lgpl.c: Update.
41654         * modules/clean-temp (Depends-on): Update.
41655         * lib/clean-temp.c: Update.
41656         * modules/csharpcomp (Depends-on): Update.
41657         * lib/csharpcomp.c: Update.
41658         * modules/csharpexec (Depends-on): Update.
41659         * lib/csharpexec.c: Update.
41660         * modules/javacomp (Depends-on): Update.
41661         * lib/javacomp.c: Update.
41662         * modules/javaexec (Depends-on): Update.
41663         * lib/javaexec.c: Update.
41664         * modules/mbscasestr (Depends-on): Update.
41665         * lib/mbscasestr.c: Update.
41666         * modules/mbsstr (Depends-on): Update.
41667         * lib/mbsstr.c: Update.
41668         * modules/setenv (Depends-on): Update.
41669         * lib/setenv.c: Update.
41670         * modules/strcasestr (Depends-on): Update.
41671         * lib/strcasestr.c: Update.
41672         * modules/striconveha (Depends-on): Update.
41673         * lib/striconveha.c: Update.
41674         * modules/relocatable-prog-wrapper (Files): Update.
41675         * lib/relocwrapper.c: Update.
41676         * build-aux/install-reloc: Update.
41677         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41678
41679 2007-06-08  Bruno Haible  <bruno@clisp.org>
41680
41681         Port to uClibc.
41682         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41683         * lib/fpurge.c (fpurge): Likewise.
41684         * lib/freading.c (freading): Likewise.
41685         * lib/fseeko.c (rpl_fseeko): Likewise.
41686         * lib/fseterr.c (fseterr): Likewise.
41687         * lib/fwriting.c (fwriting): Likewise.
41688         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41689
41690 2007-06-08  Bruno Haible  <bruno@clisp.org>
41691
41692         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41693         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41694         * modules/gettext (Files): Add m4/intlmacosx.m4.
41695
41696 2007-06-07  Bruno Haible  <bruno@clisp.org>
41697
41698         * modules/localename-tests: New file.
41699         * tests/test-localename.c: New file.
41700
41701         New module 'localename'.
41702         * lib/localename.h: New file.
41703         * lib/localename.c: New file, from GNU gettext.
41704         * m4/localename.m4: New file.
41705         * modules/localename: New file.
41706
41707 2007-06-07  Bruno Haible  <bruno@clisp.org>
41708
41709         Work around the lack of <wchar.h> on some builds of uClibc.
41710         * doc/headers/wchar.texi: Update.
41711         * lib/wchar_.h: Include <wchar.h> only if it exists.
41712         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41713         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41714         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41715         doesn't exist.
41716         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41717         * modules/mbfile (Depends-on): Add wchar.
41718         * modules/mbiter (Depends-on): Likewise.
41719         * modules/mbuiter (Depends-on): Likewise.
41720         Reported by Simon Josefsson.
41721
41722 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41723
41724         Work around problem reported by Steven M. Schweda in
41725         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41726         Tru64 5.1B with the Compaq compiler environment installed declares
41727         an 'isblank' function but does not define it in the C library.
41728         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41729         * lib/regex_internal.h (isblank): Likewise.
41730         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41731         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41732
41733 2007-06-05  Bruno Haible  <bruno@clisp.org>
41734
41735         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41736         ia64.
41737         * modules/printf-safe: New file.
41738         * modules/fprintf-posix (Depends-on): Add printf-safe.
41739         * modules/printf-posix (Depends-on): Likewise.
41740         * modules/snprintf-posix (Depends-on): Likewise.
41741         * modules/sprintf-posix (Depends-on): Likewise.
41742         * modules/vasnprintf-posix (Depends-on): Likewise.
41743         * modules/vasprintf-posix (Depends-on): Likewise.
41744         * modules/vfprintf-posix (Depends-on): Likewise.
41745         * modules/vprintf-posix (Depends-on): Likewise.
41746         * modules/vsnprintf-posix (Depends-on): Likewise.
41747         * modules/vsprintf-posix (Depends-on): Likewise.
41748         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41749         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41750         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41751         "no" on i386, x86_64, ia64.
41752         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41753         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41754         on i386, x86_64, ia64.
41755         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41756         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41757         on i386, x86_64, ia64.
41758         * tests/test-vasnprintf-posix.c: Include float.h.
41759         (LDBL80_WORDS): New macro.
41760         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41761         on i386, x86_64, ia64.
41762         * tests/test-vasprintf-posix.c: Include float.h.
41763         (LDBL80_WORDS): New macro.
41764         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41765         on i386, x86_64, ia64.
41766         * tests/test-snprintf-posix.c: Include float.h.
41767         * tests/test-sprintf-posix.c: Likewise.
41768         * tests/test-vsnprintf-posix.c: Likewise.
41769         * tests/test-vsprintf-posix.c: Likewise.
41770
41771 2007-06-05  Bruno Haible  <bruno@clisp.org>
41772
41773         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41775         non-IEEE numbers on i386, x86_64, ia64.
41776         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41777         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41778         * tests/test-isnanl.h: Include float.h.
41779         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41780
41781 2007-06-05  Bruno Haible  <bruno@clisp.org>
41782
41783         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41784         also the %a / %A. Handle the %a / %A code before this extra handling.
41785
41786 2007-06-05  Bruno Haible  <bruno@clisp.org>
41787
41788         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41789         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41790
41791 2007-06-05  Bruno Haible  <bruno@clisp.org>
41792
41793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41794         typo in variable name.
41795
41796 2007-06-05  Eric Blake  <ebb9@byu.net>
41797
41798         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41799         Reported by Simon Josefsson.
41800
41801 2007-06-04  Bruno Haible  <bruno@clisp.org>
41802
41803         Avoid test failures on some PowerPC platforms.
41804         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41805         Define differently for PowerPC.
41806         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41807         Reported by Gary V. Vaughan <gary@gnu.org>.
41808
41809 2007-06-02  Bruno Haible  <bruno@clisp.org>
41810
41811         Fix test-stdint failure on FreeBSD/ia64.
41812         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41813         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41814         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41815         * doc/headers/stdint.texi: Update.
41816
41817 2007-06-01  Bruno Haible  <bruno@clisp.org>
41818
41819         * tests/test-binary-io.c (main): Pass a third argument to open().
41820         Reported by Gary V. Vaughan <gary@gnu.org>.
41821
41822 2007-06-01  Bruno Haible  <bruno@clisp.org>
41823
41824         * doc/functions/frexpl.texi: Update for mingw.
41825
41826 2007-06-01  Bruno Haible  <bruno@clisp.org>
41827
41828         * tests/test-lseek.c (main): Disable test of errno for invalid third
41829         argument.
41830         * doc/functions/lseek.texi: Update.
41831         Reported by Gary V. Vaughan <gary@gnu.org>.
41832
41833 2007-05-28  Bruno Haible  <bruno@clisp.org>
41834
41835         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41836
41837 2007-05-31  Eric Blake  <ebb9@byu.net>
41838
41839         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41840         cross compiling.
41841
41842 2007-05-30  Eric Blake  <ebb9@byu.net>
41843         and Bruno Haible  <bruno@clisp.org>
41844
41845         Work around mingw test failures exposed by m4-1.4.9b.
41846         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41847         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41848         moment.
41849
41850 2007-05-30  Bruno Haible  <bruno@clisp.org>
41851
41852         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41853         assuming that they are closed. Needed on HP-UX 11.
41854
41855 2007-05-29  Bruno Haible  <bruno@clisp.org>
41856
41857         Fix a problem with #include_next.
41858         * lib/dirent_.h: Split the double-inclusion guard.
41859         * lib/fcntl_.h: Likewise.
41860         * lib/float_.h: Likewise.
41861         * lib/iconv_.h: Likewise.
41862         * lib/inttypes_.h: Likewise.
41863         * lib/locale_.h: Likewise.
41864         * lib/math_.h: Likewise.
41865         * lib/netinet_in_.h: Likewise.
41866         * lib/search_.h: Likewise.
41867         * lib/signal_.h: Likewise.
41868         * lib/stdint_.h: Likewise.
41869         * lib/stdio_.h: Likewise.
41870         * lib/stdlib_.h: Likewise.
41871         * lib/string_.h: Likewise.
41872         * lib/sys_select_.h: Likewise.
41873         * lib/sys_socket_.h: Likewise.
41874         * lib/sys_stat_.h: Likewise.
41875         * lib/sys_time_.h: Likewise.
41876         * lib/sysexits_.h: Likewise.
41877         * lib/time_.h: Likewise.
41878         * lib/unistd_.h: Likewise.
41879         * lib/wchar_.h: Likewise.
41880         * lib/wctype_.h: Likewise.
41881
41882 2007-05-29  Bruno Haible  <bruno@clisp.org>
41883
41884         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41885         for the moment.
41886
41887 2007-05-29  Bruno Haible  <bruno@clisp.org>
41888
41889         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41890         invocation.
41891         Reported by Eric Blake.
41892
41893 2007-05-29  Bruno Haible  <bruno@clisp.org>
41894
41895         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41896         compiling case.
41897
41898 2007-05-29  Eric Blake  <ebb9@byu.net>
41899             Bruno Haible  <bruno@clisp.org>
41900
41901         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41902         cross compiles.
41903
41904 2007-05-28  Eric Blake  <ebb9@byu.net>
41905
41906         * modules/closein-tests (test_closein_LDADD): Support test on
41907         cygwin with libtool.
41908
41909 2007-05-28  Bruno Haible  <bruno@clisp.org>
41910
41911         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41912         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41913         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41914         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41915         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41916         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41917         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41918         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41919         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41920
41921 2007-05-28  Eric Blake  <ebb9@byu.net>
41922
41923         Unconditionally include <config.h> in unit tests.
41924         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41925         * tests/test-allocsa.c, tests/test-arcfour.c,
41926         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41927         tests/test-array_list.c, tests/test-array_oset.c,
41928         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41929         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41930         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41931         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41932         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41933         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41934         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41935         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41936         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41937         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41938         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41939         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41940         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41941         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41942         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41943         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41944         test-md5.c, test-memmem.c, test-printf-posix.c,
41945         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41946         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41947         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41948         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41949         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41950         test-vasnprintf-posix2.c, test-vasnprintf.c,
41951         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41952         test-vfprintf-posix.c, test-vprintf-posix.c,
41953         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41954         test-xvasprintf.c: Likewise.
41955
41956 2007-05-28  Bruno Haible  <bruno@clisp.org>
41957
41958         * gnulib-tool (func_import): Remember the --with-tests command-line
41959         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41960         Reported by Eric Blake.
41961
41962 2007-05-28  Bruno Haible  <bruno@clisp.org>
41963
41964         * modules/ftell-tests: New file.
41965         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41966         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41967
41968         * lib/ftell.c: New file.
41969         * modules/ftell: New file.
41970         * m4/ftell.m4: New file.
41971         * doc/functions/ftell.texi: Update.
41972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41973         REPLACE_FTELL.
41974         * lib/stdio_.h (rpl_ftell): New declaration.
41975         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41976         REPLACE_FTELL.
41977
41978 2007-05-28  Eric Blake  <ebb9@byu.net>
41979
41980         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
41981
41982 2007-05-28  Bruno Haible  <bruno@clisp.org>
41983
41984         * modules/fseek-tests: New file.
41985         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41986         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41987
41988         * lib/fseek.c: New file.
41989         * modules/fseek: New file.
41990         * m4/fseek.m4: New file.
41991         * doc/functions/fseek.texi: Update.
41992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41993         REPLACE_FSEEK.
41994         * lib/stdio_.h (rpl_fseek): New declaration.
41995         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41996         REPLACE_FSEEK.
41997
41998 2007-05-28  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/stdio_.h (fflush): More comments.
42001
42002 2007-05-28  Bruno Haible  <bruno@clisp.org>
42003
42004         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
42005         runtime test.
42006
42007 2007-05-28  Eric Blake  <ebb9@byu.net>
42008
42009         Improve lseek module.
42010         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
42011         * lib/unistd_.h (lseek): Scale back link warning message.
42012         * tests/test-lseek.c: Beef up test.
42013         * tests/test-lseek.sh: Exercise more facets of lseek.
42014         Reported by Bruno Haible.
42015
42016 2007-05-28  Bruno Haible  <bruno@clisp.org>
42017
42018         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
42019         to define.
42020
42021 2007-05-27  Bruno Haible  <bruno@clisp.org>
42022
42023         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
42024
42025 2007-05-27  Bruno Haible  <bruno@clisp.org>
42026
42027         * modules/openmp: New file.
42028         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
42029         Noah Misch.
42030
42031 2007-05-26  Bruno Haible  <bruno@clisp.org>
42032
42033         * modules/chdir-long (Depends-on): Add fchdir.
42034         * modules/chdir-safer (Depends-on): Likewise.
42035         * modules/fts (Depends-on): Likewise.
42036         * modules/fts-lgpl (Depends-on): Likewise.
42037         * modules/openat (Depends-on): Likewise.
42038         * modules/savewd (Depends-on): Likewise.
42039
42040 2007-05-24  Eric Blake  <ebb9@byu.net>
42041
42042         Fix lseek on mingw.
42043         * modules/lseek: New module.
42044         * m4/lseek.m4: New file.
42045         * lib/lseek.c: New file.
42046         * modules/lseek-tests: New file.
42047         * tests/test-lseek.c: New file.
42048         * tests/test-lseek.sh: New file.
42049         * MODULES.html.sh: Document lseek module.
42050         * modules/fflush (Depends-on): Add lseek, fseeko.
42051         * modules/fseeko (Depends-on): Likewise.
42052         * modules/ftello (Depends-on): Likewise.
42053         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
42054         broken.
42055         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
42056         broken.
42057         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
42058         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
42059         * lib/ftello.c (rpl_ftello): Likewise.
42060         * tests/test-fseeko.c (main): Test this.
42061         * tests/test-fseeko.sh: Likewise.
42062         * tests/test-ftello.c (main): Likewise.
42063         * tests/test-ftello.sh: Likewise.
42064         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
42065         implies replacing fseek.
42066         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
42067         HAVE_FTELLO.
42068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
42069         * modules/unistd (Makefile.am): Likewise.
42070         * lib/unistd_.h (lseek): Declare a replacement.
42071         * doc/functions/lseek.texi (lseek): Document this fix.
42072         * doc/functions/fseek.texi (fseek): Likewise.
42073         * doc/functions/ftell.texi (ftell): Likewise.
42074
42075 2007-05-24  Bruno Haible  <bruno@clisp.org>
42076
42077         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42078         in the printed representation of a NaN.
42079         * tests/test-vasprintf-posix.c (test_function): Likewise.
42080         * tests/test-snprintf-posix.h (test_function): Likewise.
42081         * tests/test-sprintf-posix.h (test_function): Likewise.
42082         Reported by Eric Blake.
42083
42084 2007-05-23  Eric Blake  <ebb9@byu.net>
42085
42086         Fix fseeko/ftello on cygwin 1.5.24.
42087         * doc/functions/fseeko.texi (fseeko): Document the fix.
42088         * doc/functions/ftello.texi (ftello): Document the fix.
42089         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42090         * doc/functions/stdout.text (stdout): New file.
42091         * doc/functions/stderr.text (stderr): New file.
42092         * doc/gnulib.texi (Function Substitutes): Use new files.
42093         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42094         prior to 1.7.0.
42095         * tests/test-ftello.c (main): Likewise for ftello.
42096         * tests/test-fseeko.sh: New file.
42097         * tests/test-ftello.sh: New file.
42098         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42099         with seekable stdin.
42100         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42101         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42102         (gl_REPLACE_FSEEKO): New macro.
42103         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42104         * modules/fseeko (Files): Distribute fseeko.c.
42105         * modules/ftello (Files): Distribute ftello.c.
42106         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42107         mode.
42108         * lib/ftello.c (rpl_ftello): New file.
42109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42110         fseeko, ftello.
42111         (gl_STDIN_LARGE_OFFSET): New macro.
42112         * modules/stdio (Makefile.am): Perform the replacement.
42113         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42114
42115 2007-05-23  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42118         GNULIB_POSIXCHECK is defined.
42119
42120 2007-05-21  Bruno Haible  <bruno@clisp.org>
42121
42122         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42123         Check also the output for NaN arguments. When cross-compiling, guess
42124         no on IRIX.
42125         * lib/vasnprintf.c: Update comments.
42126         * tests/test-vasnprintf-posix.c (strisnan): New function.
42127         (test_function): Use it.
42128         * tests/test-vasprintf-posix.c (strisnan): New function.
42129         (test_function): Use it.
42130         * tests/test-snprintf-posix.h (strisnan): New function.
42131         (test_function): Use it.
42132         * tests/test-sprintf-posix.h (strisnan): New function.
42133         (test_function): Use it.
42134         Reported by Eric Blake.
42135
42136 2007-05-20  Bruno Haible  <bruno@clisp.org>
42137
42138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42139         numbers that fails on BeOS.
42140         * doc/functions/frexpl.texi: Update.
42141
42142 2007-05-20  Jim Meyering  <jim@meyering.net>
42143
42144         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42145         forced upon us by glibc-2.6.
42146
42147 2007-05-20  Bruno Haible  <bruno@clisp.org>
42148
42149         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42150         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42151         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42152         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42153         NEED_PRINTF_INFINITE.
42154         (is_infinitel): New function.
42155         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42157         gl_PREREQ_VASNPRINTF_INFINITE.
42158         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42159         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42160         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42161         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42162         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42163         gl_PREREQ_VASNPRINTF_INFINITE.
42164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42165         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42166         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42168         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42170         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42171         * doc/functions/fprintf.texi: Update.
42172         * doc/functions/printf.texi: Update.
42173         * doc/functions/snprintf.texi: Update.
42174         * doc/functions/sprintf.texi: Update.
42175         * doc/functions/vfprintf.texi: Update.
42176         * doc/functions/vprintf.texi: Update.
42177         * doc/functions/vsnprintf.texi: Update.
42178         * doc/functions/vsprintf.texi: Update.
42179
42180 2007-05-20  Bruno Haible  <bruno@clisp.org>
42181
42182         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42183         was not found in libc.
42184         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42185
42186 2007-05-20  Bruno Haible  <bruno@clisp.org>
42187
42188         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42189         printed as "-nan" instead of "nan".
42190         * tests/test-vasprintf-posix.c (test_function): Likewise.
42191         * tests/test-snprintf-posix.h (test_function): Likewise.
42192         * tests/test-sprintf-posix.h (test_function): Likewise.
42193         Needed for HP-UX 11.
42194
42195 2007-05-20  Jim Meyering  <jim@meyering.net>
42196
42197         Fix buggy test for the fchownat-deref bug.
42198         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42199         symlink required for the run-test.  Without it, this test would
42200         always declare that fchownat doesn't work, and client code would
42201         unnecessarily use the replacement function with fixed libc.
42202         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42203         Reported by Greg Schafer.
42204
42205 2007-05-19  Bruno Haible  <bruno@clisp.org>
42206
42207         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42208         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42209         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42210         Needed for IRIX 6.5 and Solaris 2.5.1.
42211
42212 2007-05-19  Bruno Haible  <bruno@clisp.org>
42213
42214         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42215         (test_function): Skip tests involving -0.0 on platforms where
42216         -0.0 = 0.0.
42217         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42218         (test_function): Skip tests involving -0.0 on platforms where
42219         -0.0 = 0.0.
42220         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42221         (test_function): Skip tests involving -0.0 on platforms where
42222         -0.0 = 0.0.
42223         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42224         (test_function): Skip tests involving -0.0 on platforms where
42225         -0.0 = 0.0.
42226         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42227         tests.
42228         * tests/test-printf-posix.h (test_function): Likewise.
42229         * tests/test-printf-posix.output: Remove all -0.0 related results.
42230         Needed for IRIX 6.5.
42231
42232 2007-05-19  Bruno Haible  <bruno@clisp.org>
42233
42234         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42235         printed as "nan0x7fffffff" instead of "nan".
42236         * tests/test-vasprintf-posix.c (test_function): Likewise.
42237         * tests/test-snprintf-posix.h (test_function): Likewise.
42238         * tests/test-sprintf-posix.h (test_function): Likewise.
42239         * tests/test-fprintf-posix.h (NaN): Remove macro.
42240         (test_function): Remove all NaN related tests.
42241         * tests/test-printf-posix.h (NaN): Remove macro.
42242         (test_function): Remove all NaN related tests.
42243         * tests/test-printf-posix.output: Remove all NaN related results.
42244         Needed for IRIX 6.5.
42245
42246 2007-05-19  Bruno Haible  <bruno@clisp.org>
42247
42248         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42249         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42250
42251 2007-05-19  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/float_.h: New file.
42254         * m4/float_h.m4: New file.
42255         * modules/float: New file.
42256         * modules/isnanl (Dependencies): Add float.
42257         * modules/isnanl-nolibm (Dependencies): Likewise.
42258         * modules/mathl (Dependencies): Likewise.
42259         * modules/printf-frexpl (Dependencies): Likewise.
42260         * modules/signbit (Dependencies): Likewise.
42261         * modules/vasnprintf (Dependencies): Likewise.
42262         * doc/headers/float.texi: Update.
42263
42264 2007-05-19  Jim Meyering  <jim@meyering.net>
42265
42266         * lib/utimens.c (gl_futimens): Rename from futimens,
42267         now that glibc-2.6 declares futimens.
42268         * lib/utimens.h: Likewise.
42269
42270 2007-05-19  Bruno Haible  <bruno@clisp.org>
42271
42272         Avoid test failures on mingw.
42273         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42274         * tests/test-printf-posix.sh: Likewise.
42275         * tests/test-vfprintf-posix.sh: Likewise.
42276         * tests/test-vprintf-posix.sh: Likewise.
42277
42278 2007-05-19  Bruno Haible  <bruno@clisp.org>
42279
42280         Fix *printf result for NaN, Inf, -0.0 on mingw.
42281         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42282         * lib/vasnprintf.c: Include math.h and isnan.h.
42283         (is_infinite_or_zero): New function.
42284         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42285         values in the %f, %F, %e, %E, %g, %G directives.
42286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42288         gl_PRINTF_INFINITE and test its result. Invoke
42289         gl_PREREQ_VASNPRINTF_INFINITE.
42290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42297         * doc/functions/fprintf.texi: Update.
42298         * doc/functions/printf.texi: Update.
42299         * doc/functions/snprintf.texi: Update.
42300         * doc/functions/sprintf.texi: Update.
42301         * doc/functions/vfprintf.texi: Update.
42302         * doc/functions/vprintf.texi: Update.
42303         * doc/functions/vsnprintf.texi: Update.
42304         * doc/functions/vsprintf.texi: Update.
42305
42306 2007-05-19  Bruno Haible  <bruno@clisp.org>
42307
42308         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42309         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42310         Instead of multiplying with 10^k, set extra_zeroes to k.
42311         (scale10_round_long_double): Remove function.
42312
42313 2007-05-18  Bruno Haible  <bruno@clisp.org>
42314
42315         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42316         introduced on 2007-05-06.
42317
42318 2007-05-18  Bruno Haible  <bruno@clisp.org>
42319
42320         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42321         %g directives.
42322         * tests/test-vasprintf-posix.c (test_function): Likewise.
42323         * tests/test-snprintf-posix.h (test_function): Likewise.
42324         * tests/test-sprintf-posix.h (test_function): Likewise.
42325
42326 2007-05-18  Bruno Haible  <bruno@clisp.org>
42327
42328         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42329         (strmatch): New function.
42330         (test_function): Test the %f directive on numbers of various exponents.
42331         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42332         (strmatch): New function.
42333         (test_function): Test the %f directive on numbers of various exponents.
42334         * tests/test-snprintf-posix.h (strmatch): New function.
42335         (test_function): Test the %f directive on numbers of various exponents.
42336         * tests/test-sprintf-posix.h (strmatch): New function.
42337         (test_function): Test the %f directive on numbers of various exponents.
42338         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42339         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42340         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42341         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42342
42343 2007-05-18  Bruno Haible  <bruno@clisp.org>
42344
42345         Add support for 'long double' number output.
42346         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42347         * lib/vasnprintf.c: Include math.h and float+.h.
42348         (mp_limb_t): New type.
42349         (GMP_LIMB_BITS): New macro.
42350         (mp_twolimb_t): New type.
42351         (GMP_TWOLIMB_BITS): New macro.
42352         (mpn_t): New type.
42353         (multiply, divide, convert_to_decimal, decode_long_double,
42354         scale10_round_long_double, scale10_round_decimal_long_double,
42355         floorlog10l): New functions.
42356         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42357         for the %f, %F, %e, %E, %g, %G directives.
42358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42360         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42361         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42369         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42370         * modules/snprintf-posix (Depends-on): Likewise.
42371         * modules/sprintf-posix (Depends-on): Likewise.
42372         * modules/vasnprintf-posix (Depends-on): Likewise.
42373         * modules/vasprintf-posix (Depends-on): Likewise.
42374         * modules/vfprintf-posix (Depends-on): Likewise.
42375         * modules/vsnprintf-posix (Depends-on): Likewise.
42376         * modules/vsprintf-posix (Depends-on): Likewise.
42377         * modules/vasnprintf (Files): Add lib/float+.h.
42378         * doc/functions/fprintf.texi: Update.
42379         * doc/functions/printf.texi: Update.
42380         * doc/functions/snprintf.texi: Update.
42381         * doc/functions/sprintf.texi: Update.
42382         * doc/functions/vfprintf.texi: Update.
42383         * doc/functions/vprintf.texi: Update.
42384         * doc/functions/vsnprintf.texi: Update.
42385         * doc/functions/vsprintf.texi: Update.
42386
42387 2007-05-18  Bruno Haible  <bruno@clisp.org>
42388
42389         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42390
42391 2007-05-18  Bruno Haible  <bruno@clisp.org>
42392
42393         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42394         for printing 64-bit integers. Needed for mingw.
42395
42396 2007-05-18  Bruno Haible  <bruno@clisp.org>
42397
42398         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42399         gl_FUNC_FREXPL_WORKS.
42400         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42401
42402 2007-05-18  Bruno Haible  <bruno@clisp.org>
42403
42404         * modules/frexpl-nolibm-tests: New file.
42405
42406         * modules/frexpl-nolibm: New file.
42407         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42408
42409 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42410
42411         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42412         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42413         GCC 4.2, which otherwise issues a lot of warnings.
42414         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42415         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42416         Likewise.
42417         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42418         * modules/iconv_open (iconv.h): Likewise.
42419         * modules/locale (locale.h): Likewise.
42420         * modules/netinet_in (netinet/in.h): Likewise.
42421         * modules/sys_select (sys_select.h): Likewise.
42422         * modules/sys_socket (sys/socket.h): Likewise.
42423         * modules/sys_stat (sys/stat.h): Likewise.
42424         * modules/sysexits (sysexits.h): Likewise.
42425         * modules/unistd (unistd.h): Likewise.
42426
42427 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42428
42429         * modules/closein-tests (Makefile.am): Distribute
42430         `test-closein.sh'.
42431
42432 2007-05-17  Bruno Haible  <bruno@clisp.org>
42433
42434         * tests/test-printf-posix.output: Renamed from
42435         tests/test-fprintf-posix.out.
42436         * modules/fprintf-posix-tests: Update.
42437         * modules/printf-posix-tests: Update.
42438         * modules/vfprintf-posix-tests: Update.
42439         * modules/vprintf-posix-tests: Update.
42440         * tests/test-fprintf-posix.sh: Update.
42441         * tests/test-printf-posix.sh: Update.
42442         * tests/test-vfprintf-posix.sh: Update.
42443         * tests/test-vprintf-posix.sh: Update.
42444         Reported by Ralf Wildenhues.
42445
42446 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42447
42448         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42449         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42450         GCC 4.2, which otherwise issues a lot of warnings.
42451         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42452         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42453         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42454         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42455         it should no longer be needed.
42456         * lib/string_.h: Likewise.
42457         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42458         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42459         * modules/inttypes (inttypes.h): Likewise.
42460         * modules/math (math.h): Likewise.
42461         * modules/search (search.h): Likewise.
42462         * modules/signal (signal.h): Likewise.
42463         * modules/stdint (stdint.h): Likewise.
42464         * modules/stdio (stdio.h): Likewise.
42465         * modules/stdlib (stdlib.h): Likewise.
42466         * modules/string (string.h): Likewise.
42467         * modules/sys_time (sys/time.h): Likewise.
42468         * modules/time (time.h): Likewise.
42469         * modules/wchar (wchar.h): Likewise.
42470         * modules/wctype (wtype.h): Likewise.
42471
42472 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42473
42474         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42475
42476 2007-05-13  Bruno Haible  <bruno@clisp.org>
42477
42478         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42479         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42480         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42481         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42482         (gl_PREREQ_STRTOK_R): Don't require it here.
42483
42484 2007-05-13  Bruno Haible  <bruno@clisp.org>
42485
42486         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42487         when used in C++ mode.
42488
42489 2007-05-12  Bruno Haible  <bruno@clisp.org>
42490
42491         * lib/linebuffer.h: Tweak doc.
42492         * lib/linebuffer.c: Likewise.
42493
42494 2007-05-12  James Youngman  <jay@gnu.org>
42495
42496         * lib/linebuffer.c (readlinebuffer_delim): New function,
42497         like readlinebuffer, but use a caller-specified delimiter.
42498         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42499         as the delimiter.
42500         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42501
42502 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42503
42504         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42505         * modules/openat (Files): Remove openat-die.c.
42506         (Depends-on): Add openat-die.
42507         * modules/openat-die: New module.
42508
42509 2007-05-06  Bruno Haible  <bruno@clisp.org>
42510
42511         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42512         Update with info about Cygwin.
42513         * doc/functions/fprintf.texi: Update.
42514         * doc/functions/printf.texi: Update.
42515         * doc/functions/snprintf.texi: Update.
42516         * doc/functions/sprintf.texi: Update.
42517         * doc/functions/vfprintf.texi: Update.
42518         * doc/functions/vprintf.texi: Update.
42519         * doc/functions/vsnprintf.texi: Update.
42520         * doc/functions/vsprintf.texi: Update.
42521         Reported by Eric Blake.
42522
42523 2007-05-06  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42526         padding ourselves for the floating-point directives.
42527         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42530         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42531         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42532         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42533         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42534         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42535         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42536         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42537         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42538         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42539         * tests/test-snprintf-posix.h (test_function): Also check the width
42540         and some flags in the %f directive.
42541         * tests/test-sprintf-posix.h (test_function): Likewise.
42542         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42543         * tests/test-vasprintf-posix.c (test_function): Likewise.
42544         * doc/functions/fprintf.texi: Update.
42545         * doc/functions/printf.texi: Update.
42546         * doc/functions/snprintf.texi: Update.
42547         * doc/functions/sprintf.texi: Update.
42548         * doc/functions/vfprintf.texi: Update.
42549         * doc/functions/vprintf.texi: Update.
42550         * doc/functions/vsnprintf.texi: Update.
42551         * doc/functions/vsprintf.texi: Update.
42552
42553 2007-05-06  Bruno Haible  <bruno@clisp.org>
42554
42555         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42556         pass the ' flag character to sprintf or snprintf.
42557         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42560         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42561         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42563         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42569         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42570         flag.
42571         * tests/test-sprintf-posix.h (test_function): Likewise.
42572         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42573         * tests/test-vasprintf-posix.c (test_function): Likewise.
42574         * doc/functions/fprintf.texi: Update.
42575         * doc/functions/printf.texi: Update.
42576         * doc/functions/snprintf.texi: Update.
42577         * doc/functions/sprintf.texi: Update.
42578         * doc/functions/vfprintf.texi: Update.
42579         * doc/functions/vprintf.texi: Update.
42580         * doc/functions/vsnprintf.texi: Update.
42581         * doc/functions/vsprintf.texi: Update.
42582
42583 2007-05-01  Bruno Haible  <bruno@clisp.org>
42584
42585         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42586
42587 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42588
42589         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42590         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42591
42592 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42593
42594         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42595         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42597
42598 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42599
42600         * lib/argp-help.c (struct hol_entry): New member `ord'.
42601         (HOL_ENTRY_PTRCMP): Use ord for comparison
42602         (hol_sort): Initialize ord.
42603
42604 2007-05-01  Bruno Haible  <bruno@clisp.org>
42605
42606         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42607         Reported by Eric Blake.
42608         * doc/gnulib.texi (Function Substitutes): Update.
42609
42610 2007-05-01  Bruno Haible  <bruno@clisp.org>
42611
42612         * doc/functions.texi: Remove file, now redundant through
42613         doc/functions/*.texi.
42614
42615 2007-05-01  Bruno Haible  <bruno@clisp.org>
42616
42617         * modules/argp (Depends-on): Add sleep.
42618
42619 2007-05-01  Bruno Haible  <bruno@clisp.org>
42620
42621         * modules/sleep-tests: New file.
42622         * tests/test-sleep.c: New file.
42623
42624         * modules/sleep: New file.
42625         * lib/sleep.c: New file.
42626         * m4/sleep.m4: New file.
42627         * lib/unistd_.h (sleep): New declaration.
42628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42629         HAVE_SLEEP.
42630         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42631         * doc/functions/sleep.texi: Document the sleep module.
42632
42633 2007-05-01  Bruno Haible  <bruno@clisp.org>
42634
42635         * lib/sigprocmask.h: Remove file.
42636         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42637         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42638         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42639         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42640         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42641         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42642         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42643         HAVE_SIGSET_T as a shell variable.
42644         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42645         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42646         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42647         (Depends-on): Add signal. Remove verify.
42648         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42649         (Include): Mention <signal.h> instead of sigprocmask.h.
42650         * NEWS: Mention the change.
42651         * lib/fatal-signal.c: Don't include sigprocmask.h.
42652
42653 2007-05-01  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/signal: New file.
42656         * lib/signal_.h: New file.
42657         * m4/signal_h.m4: New file.
42658
42659 2007-05-01  Bruno Haible  <bruno@clisp.org>
42660
42661         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42662         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42663         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42664         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42665
42666 2007-05-01  Bruno Haible  <bruno@clisp.org>
42667
42668         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42669         configure time.
42670         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42671         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42672         * modules/sys_stat (Makefile.am): Substitute their values into
42673         sys/stat.h.
42674
42675 2007-05-01  Bruno Haible  <bruno@clisp.org>
42676
42677         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42678         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42679         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42680
42681 2007-05-01  Bruno Haible  <bruno@clisp.org>
42682
42683         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42684         'assert' module here.
42685
42686 2007-05-01  Bruno Haible  <bruno@clisp.org>
42687
42688         * doc/functions/*.texi: New files.
42689         * doc/functions/google-ranking.txt: New file.
42690         * doc/gnulib.texi (Function Substitutes): New chapter.
42691         (ctime, inet_ntoa): Remove sections.
42692         * doc/ctime.texi: Remove file.
42693         * doc/inet_ntoa.texi: Remove file.
42694         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42695         dependencies.
42696         (%.info): New rule, specifying a --reference-limit.
42697
42698 2007-05-01  Bruno Haible  <bruno@clisp.org>
42699
42700         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42701
42702 2007-05-01  Bruno Haible  <bruno@clisp.org>
42703
42704         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42705         the portability of 'mkdir' to mingw systems.
42706
42707 2007-05-01  Bruno Haible  <bruno@clisp.org>
42708
42709         * doc/headers/google-ranking.txt: New file.
42710
42711 2007-04-30  Eric Blake  <ebb9@byu.net>
42712
42713         Prefer fseeko to fseek.
42714         * modules/getpass (Depends-on): Add fseeko.
42715         * lib/getpass.c (getpass): Use fseeko, not fseek.
42716
42717 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42718
42719         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42720         assumes the sorting is stable, while most qsort implementations
42721         are not.  Use argument addresses to ensure they never compare as
42722         equal.
42723
42724         * tests/test-argp-2.sh (usage-indent test): Fix output
42725         (func_compare): Restore diff options
42726         * tests/test-argp.c: Restore #include "progname.h"
42727
42728 2007-04-29  Bruno Haible  <bruno@clisp.org>
42729
42730         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42732         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42734         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42735         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42736         (TESTS, check_PROGRAMS): Add test-snprintf.
42737         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42738         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42739         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42740         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42741         assertions that fail on HP-UX, OSF/1, or IRIX.
42742         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42743
42744 2007-04-29  Bruno Haible  <bruno@clisp.org>
42745
42746         * MODULES.html.sh (posix_functions): Remove 'contents'.
42747
42748 2007-04-29  Karl Berry  <karl@gnu.org>
42749
42750         * config/srclist.txt (gendocs_template_min): new entry.
42751
42752 2007-04-29  Bruno Haible  <bruno@clisp.org>
42753
42754         Work around fpurge bug on BSD systems.
42755         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42756         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42757         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42758         fpurge to rpl_fpurge if the system already has this function.
42759         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42760         the case where the system already has this function. Correct invariants
42761         on BSD systems.
42762         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42763         BSD systems.
42764
42765 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42766
42767         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42768         proposed by Sven Verdoolaege.
42769
42770         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42771         options.
42772         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42773         (usage and help tests): Update
42774
42775 2007-04-29  Bruno Haible  <bruno@clisp.org>
42776
42777         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42778         Print more information in case of failure. Disable a test on BeOS.
42779
42780 2007-04-29  Bruno Haible  <bruno@clisp.org>
42781
42782         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42783         This helps debugging on systems on which no gdb is available.
42784
42785 2007-04-29  Bruno Haible  <bruno@clisp.org>
42786
42787         * lib/freading.h: Improve comments.
42788         * lib/fwriting.h: Likewise.
42789         * tests/test-freading.c (main): Don't check freading immediately after
42790         repositioning. Needed for glibc.
42791
42792 2007-04-29  Bruno Haible  <bruno@clisp.org>
42793
42794         * lib/freading.c (freading): Trivial simplification.
42795
42796 2007-04-28  Bruno Haible  <bruno@clisp.org>
42797
42798         * tests/test-fwriting.c (main): Also test the interaction between
42799         fflush and fwriting.
42800         * modules/fwriting-tests (Depends-on): Add fflush.
42801
42802         * tests/test-freading.c (main): Also test the interaction between
42803         fflush and freading.
42804         * modules/freading-tests (Depends-on): Add fflush.
42805
42806 2007-04-28  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42809         fseeko and ftello.
42810         Suggested by Eric Blake.
42811
42812 2007-04-28  Jim Meyering  <jim@meyering.net>
42813
42814         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42815         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42816         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42817
42818 2007-04-27  Eric Blake  <ebb9@byu.net>
42819
42820         * doc/headers/assert.texi (assert.h): Document assert module use.
42821
42822 2007-04-27  Bruno Haible  <bruno@clisp.org>
42823
42824         * doc/headers/*.texi: New files.
42825         * doc/gnulib.texi (Header File Substitutes): New chapter.
42826         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42827         dependencies.
42828         (standards.info ,standards.html, standards.dvi): Update dependencies.
42829         (mostlyclean, clean): New targets.
42830
42831 2007-04-27  Bruno Haible  <bruno@clisp.org>
42832
42833         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42834         * modules/sysexits (Files, Makefile.am): Update.
42835
42836         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42837         * modules/sys_socket (Files, Makefile.am): Update.
42838
42839         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42840         * modules/sys_stat (Files, Makefile.am): Update.
42841
42842 2007-04-27  Eric Blake  <ebb9@byu.net>
42843
42844         * lib/freading.h: Improve comments.
42845         * lib/fwriting.h: Likewise.
42846         * lib/fflush.c: Likewise.
42847
42848         Fix closein for mingw.
42849         * modules/closein-tests: Add tests for closein.
42850         * tests/test-closein.c: New file.
42851         * tests/test-closein.sh: Likewise.
42852         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42853         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42854
42855 2007-04-27  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42858         version is < 6.
42859         * lib/math_.h [__DECC]: Likewise.
42860         * lib/stdio_.h [__DECC]: Likewise.
42861         * lib/stdlib_.h [__DECC]: Likewise.
42862         * lib/string_.h [__DECC]: Likewise.
42863         * lib/time_.h [__DECC]: Likewise.
42864         * lib/wchar_.h [__DECC]: Likewise.
42865         * lib/wctype_.h [__DECC]: Likewise.
42866
42867 2007-04-27  Bruno Haible  <bruno@clisp.org>
42868
42869         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42870
42871 2007-04-27  Bruno Haible  <bruno@clisp.org>
42872
42873         * lib/fflush.c: Add comments.
42874         * modules/fpurge-tests (Depends-on): Add fflush.
42875         * modules/freadable-tests (Depends-on): Likewise.
42876         * modules/fwritable-tests (Depends-on): Likewise.
42877
42878 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42879
42880         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42881         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42882         Report by Bruno Haible <bruno@clisp.org>.
42883
42884 2007-04-26  Eric Blake  <ebb9@byu.net>
42885
42886         Fix fflush on mingw.
42887         * modules/fflush (Depends-on): Add freading.
42888         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42889         but unread data.
42890
42891 2007-04-26  Eric Blake  <ebb9@byu.net>
42892         and Bruno Haible  <bruno@clisp.org>
42893
42894         Implement freading and fwriting.
42895         * lib/freading.c: New file.
42896         * lib/freading.h: Likewise.
42897         * m4/freading.m4: Likewise.
42898         * modules/freading: Likewise.
42899         * modules/freading-tests: Likewise.
42900         * tests/test-freading.c: Likewise.
42901         * lib/fwriting.c: New file.
42902         * lib/fwriting.h: Likewise.
42903         * m4/fwriting.m4: Likewise.
42904         * modules/fwriting: Likewise.
42905         * modules/fwriting-tests: Likewise.
42906         * tests/test-fwriting.c: Likewise.
42907         * MODULES.html.sh (File stream based Input/Output): Mention them.
42908
42909 2007-04-26  Bruno Haible  <bruno@clisp.org>
42910
42911         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42912         'long' when we assume it.
42913         Suggested by Eric Blake.
42914
42915 2007-04-26  Bruno Haible  <bruno@clisp.org>
42916
42917         Ensure fseeko, ftello are declared on glibc systems.
42918         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42919         * modules/fseeko (configure.ac-early): Likewise.
42920         * modules/ftello (configure.ac-early): Likewise.
42921         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42922         AC_FUNC_FSEEKO for this.
42923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42924         (gl_CHECK_FSEEKO): Remove macro.
42925
42926 2007-04-26  Bruno Haible  <bruno@clisp.org>
42927
42928         * tests/test-fflush.c (main): Also check the ftell result after
42929         fflush and fseek/fseeko.
42930         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42931         file descriptor position cache in the stream.
42932         * lib/fseeko.c (rpl_fseeko): Likewise.
42933
42934 2007-04-26  Bruno Haible  <bruno@clisp.org>
42935
42936         * modules/fflush-tests (Depends-on): Add fseeko.
42937
42938 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42939             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42940
42941         * lib/argz_.h: ensure error_t definition is obtained in same
42942         mechanism system argz.h would have.
42943         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42944         argz facilities are known bad.  Err on the side of caution if
42945         cross-compiling.
42946
42947 2007-04-25  Eric Blake  <ebb9@byu.net>
42948
42949         * lib/fpurge.c (includes): Use stdlib.h for free.
42950         * tests/test-fflush.c (main): Also test fflush-fseeko.
42951
42952 2007-04-25  Bruno Haible  <bruno@clisp.org>
42953
42954         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42955         * lib/fseeko.c: New file.
42956         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42957         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42958         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42959         gl_FUNC_FSEEKO.
42960         (gl_FUNC_FSEEKO): Invoke it.
42961         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42962         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42963         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42964
42965 2007-04-25  Bruno Haible  <bruno@clisp.org>
42966
42967         * modules/fflush (Depends-on): Add ftello.
42968
42969 2007-04-25  Bruno Haible  <bruno@clisp.org>
42970
42971         * modules/ftello-tests: New file.
42972         * tests/test-ftello.c: New file.
42973
42974         * modules/ftello: New file.
42975         * m4/ftello.m4: New file.
42976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
42977         HAVE_FTELLO.
42978         * lib/stdio_.h (ftello): New declaration.
42979         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
42980         HAVE_FTELLO.
42981
42982 2007-04-25  Bruno Haible  <bruno@clisp.org>
42983
42984         * modules/fseeko-tests: New file.
42985         * tests/test-fseeko.c: New file.
42986
42987         * modules/fseeko: New file.
42988         * m4/fseeko.m4: New file.
42989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42990         HAVE_FSEEKO.
42991         * lib/stdio_.h (fseeko): New declaration.
42992         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42993         HAVE_FSEEKO.
42994
42995 2007-04-25  Bruno Haible  <bruno@clisp.org>
42996
42997         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42998
42999 2007-04-25  Bruno Haible  <bruno@clisp.org>
43000
43001         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
43002         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
43003         * tests/test-unistd.c: Likewise.
43004         * tests/test-fcntl.c: Likewise.
43005
43006 2007-04-23  Eric Blake  <ebb9@byu.net>
43007
43008         * lib/fflush.c: Fix missing include.
43009         Reported by Bruno Haible.
43010
43011 2007-04-23  Bruno Haible  <bruno@clisp.org>
43012
43013         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
43014         Reported by Eric Blake.
43015
43016 2007-04-23  Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
43019
43020 2007-04-23  Bruno Haible  <bruno@clisp.org>
43021
43022         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
43023
43024 2007-04-23  Bruno Haible  <bruno@clisp.org>
43025
43026         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
43027         Needed on HP-UX 11.
43028
43029 2007-04-16  Eric Blake  <ebb9@byu.net>
43030
43031         Make fflush rely on fpurge.
43032         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
43033         open coding all variants.
43034         * modules/fflush (Depends-on): Add fpurge and unistd.
43035         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
43036         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
43037
43038         Fix --with-tests compilation on cygwin.
43039         * modules/argmatch-tests (Makefile.am): List gnulib library first
43040         in LDADD.
43041         * modules/argp-tests (Makefile.am): Likewise.
43042         * modules/array-list-tests (Makefile.am): Likewise.
43043         * modules/array-oset-tests (Makefile.am): Likewise.
43044         * modules/avltree-list-tests (Makefile.am): Likewise.
43045         * modules/avltree-oset-tests (Makefile.am): Likewise.
43046         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43047         * modules/carray-list-tests (Makefile.am): Likewise.
43048         * modules/dirname-tests (Makefile.am): Likewise.
43049         * modules/frexp-tests (Makefile.am): Likewise.
43050         * modules/isnanl-tests (Makefile.am): Likewise.
43051         * modules/linked-list-tests (Makefile.am): Likewise.
43052         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43053         * modules/lock-tests (Makefile.am): Likewise.
43054         * modules/rbtree-list-tests (Makefile.am): Likewise.
43055         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43056         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43057         * modules/tls-tests (Makefile.am): Likewise.
43058         * modules/tsearch-tests (Makefile.am): Likewise.
43059         * modules/xvasprintf-tests (Makefile.am): Likewise.
43060
43061         Fix fpurge for cygwin.
43062         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
43063         value.
43064         * modules/fpurge-tests (Depends-on): Clean up trash.
43065
43066 2007-04-16  Simon Josefsson  <simon@josefsson.org>
43067
43068         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
43069
43070         * m4/autobuild.m4: Re-indent.
43071
43072 2007-04-13  Bruno Haible  <bruno@clisp.org>
43073
43074         * modules/fpurge-tests: New file.
43075         * tests/test-fpurge.c: New file.
43076
43077         * modules/fpurge: New file.
43078         * lib/fpurge.h: New file.
43079         * lib/fpurge.c: New file.
43080         * m4/fpurge.m4: New file.
43081
43082 2007-04-13  Bruno Haible  <bruno@clisp.org>
43083
43084         * modules/fbufmode-tests: New file.
43085         * tests/test-fbufmode.c: New file.
43086
43087         * modules/fbufmode: New file.
43088         * lib/fbufmode.h: New file.
43089         * lib/fbufmode.c: New file.
43090         * m4/fbufmode.m4: New file.
43091
43092 2007-04-13  Bruno Haible  <bruno@clisp.org>
43093
43094         * modules/fwritable-tests: New file.
43095         * tests/test-fwritable.c: New file.
43096
43097         * modules/fwritable: New file.
43098         * lib/fwritable.h: New file.
43099         * lib/fwritable.c: New file.
43100         * m4/fwritable.m4: New file.
43101
43102 2007-04-13  Bruno Haible  <bruno@clisp.org>
43103
43104         * modules/freadable-tests: New file.
43105         * tests/test-freadable.c: New file.
43106
43107         * modules/freadable: New file.
43108         * lib/freadable.h: New file.
43109         * lib/freadable.c: New file.
43110         * m4/freadable.m4: New file.
43111
43112 2007-04-13  Bruno Haible  <bruno@clisp.org>
43113
43114         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43115         MOSTLYCLEANFILES.
43116
43117 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43118
43119         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43120         gzip bootstrap.conf to avoid dragging in i18n machinery.
43121         (gnulib_tool_option): Use it.
43122
43123 2007-04-13  Bruno Haible  <bruno@clisp.org>
43124
43125         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43126         %F directives.
43127         * tests/test-vasprintf-posix.c (test_function): Likewise.
43128         * tests/test-snprintf-posix.h (test_function): Likewise.
43129         * tests/test-sprintf-posix.h (test_function): Likewise.
43130         * tests/test-fprintf-posix.h (test_function): Likewise.
43131         * tests/test-printf-posix.h (test_function): Likewise.
43132         * tests/test-fprintf-posix.out: Likewise.
43133
43134 2007-04-13  Bruno Haible  <bruno@clisp.org>
43135
43136         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43137         * modules/tls-tests (configure.ac): Likewise.
43138         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43139
43140 2007-04-13  Bruno Haible  <bruno@clisp.org>
43141
43142         * lib/tls.c (glthread_tls_get): Fix return type.
43143         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43144
43145 2007-04-12  Eric Blake  <ebb9@byu.net>
43146
43147         * modules/gettime (Depends-on): Remove gettime.
43148         Reported by Dmitry V. Levin.
43149
43150 2007-04-12  Bruno Haible  <bruno@clisp.org>
43151
43152         * modules/fflush (Include): Mention <stdio.h>.
43153         * modules/strtoimax (Include): Mention <inttypes.h>.
43154         * modules/strtoumax (Include): Likewise.
43155
43156 2007-04-12  Eric Blake  <ebb9@byu.net>
43157
43158         * .cvsignore: New file.
43159         * .gitignore: Likewise.
43160
43161 2007-04-12  Bruno Haible  <bruno@clisp.org>
43162
43163         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43164         not before, since $(LDADD) often contains libgnu.a.
43165         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43166         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43167         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43168         Needed on Cygwin.
43169
43170 2007-04-12  Eric Blake  <ebb9@byu.net>
43171
43172         Work around glibc's failure to flush stdin on fclose.
43173         * lib/closein.c (close_stdin): Flush stdin before closing.
43174
43175         Work around glibc's failure to reset seekable stdin on exit.
43176         * modules/closein: New module.
43177         * lib/closein.c: New file.
43178         * lib/closein.h: Likewise.
43179         * m4/closein.m4: Likewise.
43180         * MODULES.html.sh (File stream based Input/Output): Document it.
43181
43182 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43183
43184         * gnulib-tool: Rename generated 'autobuild' script to
43185         'do-autobuild' in --create-megatestdir output.
43186
43187         * doc/gnulib.texi (Build robot for gnulib): Fix.
43188
43189 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43190
43191         * modules/sysexits (Depends-on): Add absolute-header.
43192
43193 2007-04-12  Eric Blake  <ebb9@byu.net>
43194
43195         No need to preserve errno on success.
43196         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43197         Reported by Bruno Haible.
43198
43199 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43200
43201         * MODULES.html.sh (Support for maintaining and releasing
43202         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43203
43204 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43205
43206         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43207
43208 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43209
43210         * modules/autobuild: New module.
43211
43212         * m4/autobuild.m4: New file.
43213
43214 2007-04-11  Bruno Haible  <bruno@clisp.org>
43215
43216         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43217         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43218         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43220         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43221         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43222         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43224         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43225         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43226         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43227         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43228         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43230         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43231         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43232         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43236         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43237         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43239         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43240         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43242         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43243         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43244         Reported by Eric Blake.
43245
43246 2007-04-11  Bruno Haible  <bruno@clisp.org>
43247
43248         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43249
43250 2007-04-10  Bruno Haible  <bruno@clisp.org>
43251
43252         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43253         for NaN and Infinity. Needed on FreeBSD 6.1.
43254         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43255         regarding results for "%010a" of Infinity and NaN.
43256         * tests/test-vasprintf-posix.c (test_function): Likewise.
43257         * tests/test-snprintf-posix.h (test_function): Likewise.
43258         * tests/test-sprintf-posix.h (test_function): Likewise.
43259         * tests/test-fprintf-posix.h (test_function): Likewise.
43260         * tests/test-printf-posix.h (test_function): Likewise.
43261         * tests/test-fprintf-posix.out: Likewise.
43262
43263 2007-04-10  Bruno Haible  <bruno@clisp.org>
43264
43265         * modules/locale-tests: New file.
43266         * tests/test-locale.c: New file.
43267
43268         * modules/locale: New file.
43269         * lib/locale_.h: New file.
43270         * m4/locale_h.m4: New file.
43271
43272 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43273             Bruno Haible  <bruno@clisp.org>
43274
43275         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43276         be determined, test for availability of the copysignf, copysign,
43277         copysignl functions.
43278         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43279         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43280         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43281
43282 2007-04-09  Eric Blake  <ebb9@byu.net>
43283
43284         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43285         * modules/stdio (Makefile.am): Support fflush.
43286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43287         * modules/fflush: New file.
43288         * lib/fflush.c: Likewise.
43289         * m4/fflush.m4: Likewise.
43290         * modules/fflush-tests: New test.
43291         * tests/test-fflush.c: Likewise.
43292         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43293
43294 2007-04-06  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43297         (VASNPRINTF): Use signbit for faster determination whether to print a
43298         minus sign.
43299         * modules/vasnprintf (Files): Remove lib/float+.h.
43300         * modules/fprintf-posix (Depends-on): Add signbit.
43301         * modules/snprintf-posix (Depends-on): Likewise.
43302         * modules/sprintf-posix (Depends-on): Likewise.
43303         * modules/vasnprintf-posix (Depends-on): Likewise.
43304         * modules/vasprintf-posix (Depends-on): Likewise.
43305         * modules/vfprintf-posix (Depends-on): Likewise.
43306         * modules/vsnprintf-posix (Depends-on): Likewise.
43307         * modules/vsprintf-posix (Depends-on): Likewise.
43308
43309 2007-04-06  Bruno Haible  <bruno@clisp.org>
43310
43311         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43312         * tests/test-frexpl.c (main): Likewise.
43313         * tests/test-ldexpl.c (main): Likewise.
43314         * modules/frexp-tests (Depends-on): Add signbit.
43315         * modules/frexpl-tests (Depdends-on): Likewise.
43316         * modules/ldexpl-tests (Depdends-on): Likewise.
43317
43318 2007-04-06  Bruno Haible  <bruno@clisp.org>
43319
43320         * modules/signbit-tests: New file.
43321         * tests/test-signbit.c: New file.
43322
43323         * modules/signbit: New file.
43324         * lib/signbitf.c: New file.
43325         * lib/signbitd.c: New file.
43326         * lib/signbitl.c: New file.
43327         * m4/signbit.m4: New file.
43328         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43329         (signbit): New macro.
43330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43331         REPLACE_SIGNBIT.
43332         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43333         REPLACE_FREXPL into math.h.
43334
43335 2007-04-06  Bruno Haible  <bruno@clisp.org>
43336
43337         * modules/isnanf-nolibm-tests: New file.
43338         * tests/test-isnanf.c: New file.
43339
43340         * modules/isnanf-nolibm: New file.
43341         * lib/isnanf.h: New file.
43342         * lib/isnanf.c: New file.
43343         * lib/isnan.c: Consider the USE_FLOAT macro.
43344         * m4/isnanf.m4: New file.
43345
43346 2007-04-06  Bruno Haible  <bruno@clisp.org>
43347
43348         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43349         (Link): New section.
43350
43351         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43352
43353 2007-04-06  Bruno Haible  <bruno@clisp.org>
43354
43355         Assume the 'long double' type.
43356         * m4/longdouble.m4: Remove file.
43357         * config/srclist.txt: Don't mention longdouble.m4.
43358         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43359         * lib/float+.h: Likewise.
43360         * lib/frexp.c: Likewise.
43361         * lib/printf-args.h: Likewise.
43362         * lib/printf-args.c: Likewise.
43363         * lib/printf-frexp.c: Likewise.
43364         * lib/printf-parse.c: Likewise.
43365         * lib/vasnprintf.c: Likewise.
43366         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43367         * m4/intl.m4: Likewise.
43368         * m4/isnanl.m4: Likewise.
43369         * m4/printf.m4: Likewise.
43370         * m4/printf-frexpl.m4: Likewise.
43371         * m4/vasnprintf.m4: Likewise.
43372         * modules/allocsa (Files): Remove m4/longdouble.m4.
43373         * modules/gettext (Files): Likewise.
43374         * modules/relocatable-prog-wrapper (Files): Likewise.
43375         * modules/vasnprintf (Files): Likewise.
43376         * modules/isnanl (Files): Likewise.
43377         (Include): Simplify.
43378         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43379         (Include): Simplify.
43380         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43381         (Include): Simplify.
43382         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43383         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43384         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43385         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43386         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43387         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43388         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43389         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43390         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43391         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43392         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43393         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43394         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43395         * tests/test-isnanl.c: Likewise.
43396         * tests/test-snprintf-posix.h: Likewise.
43397         * tests/test-sprintf-posix.h: Likewise.
43398         * tests/test-vasnprintf-posix.c: Likewise.
43399         * tests/test-vasnprintf-posix2.c: Likewise.
43400         * tests/test-vasprintf-posix.c: Likewise.
43401
43402 2007-04-06  Bruno Haible  <bruno@clisp.org>
43403
43404         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43405         * lib/math_.h [__DECC]: Include the overridden include file through
43406         #include_next, outside the double-inclusion guard.
43407         * lib/stdio_.h [__DECC]: Likewise.
43408         * lib/stdlib_.h [__DECC]: Likewise.
43409         * lib/string_.h [__DECC]: Likewise.
43410         * lib/time_.h [__DECC]: Likewise.
43411         * lib/wchar_.h [__DECC]: Likewise.
43412         * lib/wctype_.h [__DECC]: Likewise.
43413         * lib/inttypes_.h [__DECC]: Likewise.
43414         Reported by Albert Chin <china@thewrittenword.com> in
43415         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43416
43417 2007-04-04  Eric Blake  <ebb9@byu.net>
43418
43419         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43420         1.5.x.
43421
43422 2007-04-04  Bruno Haible  <bruno@clisp.org>
43423
43424         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43425         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43426
43427 2007-04-04  Bruno Haible  <bruno@clisp.org>
43428
43429         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43430         results for "%010a" of Infinity and NaN.
43431         * tests/test-vasprintf-posix.c (test_function): Likewise.
43432         * tests/test-snprintf-posix.h (test_function): Likewise.
43433         * tests/test-sprintf-posix.h (test_function): Likewise.
43434         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43435         * tests/test-printf-posix.h (test_function): Likewise.
43436         * tests/test-fprintf-posix.out: Update.
43437         Needed for FreeBSD 6.1.
43438
43439 2007-04-04  Bruno Haible  <bruno@clisp.org>
43440
43441         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43442         directly used by the gnulib modules nor by gnulib-tool.
43443
43444 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43445
43446         * DEPENDENCIES: Give overall description of version dependency
43447         desirability.  Use more-typical names for apps.
43448         Add shell, coreutils, diffutils, grep, tar, gzip.
43449
43450 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43451
43452         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43453
43454 2007-04-04  Karl Berry  <karl@gnu.org>
43455
43456         * MODULES.html.sh (func_module): missing '.
43457
43458 2007-04-03  Bruno Haible  <bruno@clisp.org>
43459
43460         * modules/argmatch-tests (Makefile.am): New variable
43461         test_argmatch_LDADD.
43462         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43463         * modules/array-list-tests (Makefile.am): New variable
43464         test_array_list_LDADD.
43465         * modules/array-oset-tests (Makefile.am): New variable
43466         test_array_oset_LDADD.
43467         * modules/avltree-list-tests (Makefile.am): New variable
43468         test_avltree_list_LDADD.
43469         * modules/avltree-oset-tests (Makefile.am): New variable
43470         test_avltree_oset_LDADD.
43471         * modules/avltreehash-list-tests (Makefile.am): New variable
43472         test_avltreehash_list_LDADD.
43473         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43474         test_canonicalize_lgpl_LDADD.
43475         * modules/carray-list-tests (Makefile.am): New variable
43476         test_carray_list_LDADD.
43477         * modules/dirname-tests (Makefile.am): New variable
43478         test_dirname_LDADD.
43479         * modules/linked-list-tests (Makefile.am): New variable
43480         test_linked_list_LDADD.
43481         * modules/linkedhash-list-tests (Makefile.am): New variable
43482         test_linkedhash_list_LDADD.
43483         * modules/rbtree-list-tests (Makefile.am): New variable
43484         test_rbtree_list_LDADD.
43485         * modules/rbtree-oset-tests (Makefile.am): New variable
43486         test_rbtree_oset_LDADD.
43487         * modules/rbtreehash-list-tests (Makefile.am): New variable
43488         test_rbtreehash_list_LDADD.
43489         * modules/xvasprintf-tests (Makefile.am): New variable
43490         test_xvasprintf_LDADD.
43491         Reported by Eric Blake.
43492
43493 2007-04-03  Eric Blake  <ebb9@byu.net>
43494
43495         * DEPENDENCIES: Weaken m4 requirements.
43496
43497 2007-04-03  Bruno Haible  <bruno@clisp.org>
43498
43499         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43500         * modules/isnanl-tests (configure.ac): Likewise.
43501
43502 2007-04-03  Ben Pfaff  <blp@gnu.org>
43503
43504         * modules/iconv_open: Add $(srcdir)/ to source directory
43505         references in Makefile fragments that call gperf, to fix VPATH
43506         builds.
43507
43508 2007-04-03  Bruno Haible  <bruno@clisp.org>
43509
43510         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43511         * lib/ldexpl.c: Undo last change.
43512
43513 2007-04-03  Bruno Haible  <bruno@clisp.org>
43514
43515         * modules/printf-frexpl (Depends-on): Undo last change.
43516         (Files): Add m4/ldexpl.m4.
43517
43518 2007-04-03  Bruno Haible  <bruno@clisp.org>
43519
43520         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43521         * modules/isnanl (Link): New section.
43522
43523         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43524         * modules/frexp (Link): New section.
43525
43526         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43527         * modules/frexpl (Link): New section.
43528
43529         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43530         * modules/ldexpl (Link): New section.
43531
43532 2007-04-03  Bruno Haible  <bruno@clisp.org>
43533
43534         * modules/TEMPLATE-EXTENDED: New file.
43535         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43536
43537 2007-04-03  Bruno Haible  <bruno@clisp.org>
43538
43539         * DEPENDENCIES: New file.
43540         Suggested by Simon Josefsson.
43541
43542 2007-04-03  Bruno Haible  <bruno@clisp.org>
43543
43544         * doc/gnulib.texi: Escape @.
43545
43546 2007-04-03  James Youngman  <jay@gnu.org>
43547         and Paul Eggert  <eggert@cs.ucla.edu>
43548
43549         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43550         birthtime on all systems that have birthtime, not just those which
43551         use st_birthtimensec rather than st_birthtim.  Putting zero in
43552         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43553         that the birth time is not available for files on an NFS mount.
43554
43555 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43556
43557         * modules/memxor: Move back from crypto/, suggested by Bruno.
43558         * modules/crypto/hmac-sha1: Fix memxor dependency.
43559
43560         * modules/crypto/gc: Moved from ../.
43561
43562 2007-04-02  Eric Blake  <ebb9@byu.net>
43563
43564         * lib/ldexpl.c (includes): Avoid libm.
43565
43566         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43567
43568 2007-04-02  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43571         on IRIX.
43572
43573 2007-04-02  Bruno Haible  <bruno@clisp.org>
43574
43575         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43576         x86 or x86_64 platforms running MacOS X.
43577         Reported by Ryan Schmidt <@ryandesign.com>.
43578
43579 2007-04-02  Bruno Haible  <bruno@clisp.org>
43580
43581         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43582         i386.
43583
43584 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43585
43586         * modules/crypto/arcfour: Moved from ../.
43587         * modules/crypto/arcfour-tests: Moved from ../.
43588         * modules/crypto/arctwo: Moved from ../.
43589         * modules/crypto/arctwo-tests: Moved from ../.
43590         * modules/crypto/des: Moved from ../.
43591         * modules/crypto/des-tests: Moved from ../.
43592         * modules/crypto/gc-arcfour: Moved from ../.
43593         * modules/crypto/gc-arcfour-tests: Moved from ../.
43594         * modules/crypto/gc-arctwo: Moved from ../.
43595         * modules/crypto/gc-arctwo-tests: Moved from ../.
43596         * modules/crypto/gc-des: Moved from ../.
43597         * modules/crypto/gc-des-tests: Moved from ../.
43598         * modules/crypto/gc-hmac-md5: Moved from ../.
43599         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43600         * modules/crypto/gc-hmac-sha1: Moved from ../.
43601         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43602         * modules/crypto/gc-md2: Moved from ../.
43603         * modules/crypto/gc-md2-tests: Moved from ../.
43604         * modules/crypto/gc-md4: Moved from ../.
43605         * modules/crypto/gc-md4-tests: Moved from ../.
43606         * modules/crypto/gc-md5: Moved from ../.
43607         * modules/crypto/gc-md5-tests: Moved from ../.
43608         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43609         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43610         * modules/crypto/gc-random: Moved from ../.
43611         * modules/crypto/gc-rijndael: Moved from ../.
43612         * modules/crypto/gc-rijndael-tests: Moved from ../.
43613         * modules/crypto/gc-sha1: Moved from ../.
43614         * modules/crypto/gc-sha1-tests: Moved from ../.
43615         * modules/crypto/gc-tests: Moved from ../.
43616         * modules/crypto/hmac-md5: Moved from ../.
43617         * modules/crypto/hmac-md5-tests: Moved from ../.
43618         * modules/crypto/hmac-sha1: Moved from ../.
43619         * modules/crypto/hmac-sha1-tests: Moved from ../.
43620         * modules/crypto/md2: Moved from ../.
43621         * modules/crypto/md2-tests: Moved from ../.
43622         * modules/crypto/md4: Moved from ../.
43623         * modules/crypto/md4-tests: Moved from ../.
43624         * modules/crypto/md5: Moved from ../.
43625         * modules/crypto/md5-tests: Moved from ../.
43626         * modules/crypto/memxor: Moved from ../.
43627         * modules/crypto/rijndael: Moved from ../.
43628         * modules/crypto/rijndael-tests: Moved from ../.
43629         * modules/crypto/sha1: Moved from ../.
43630
43631 2007-03-30  James Youngman  <jay@gnu.org>
43632
43633         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43634         rename() to change the ctime of a file (because ctime is unaffected
43635         by rename on jfs2 on AIX 5.1).
43636         (main): Start by doing cleanup, in case a previous run failed leaving
43637         test files behind.
43638
43639 2007-03-31  Bruno Haible  <bruno@clisp.org>
43640
43641         Support old proprietary implementations of iconv.
43642         * modules/iconv_open: New file.
43643         * lib/iconv_.h: New file.
43644         * m4/iconv_h.m4: New file.
43645         * lib/iconv_open.c: New file.
43646         * lib/iconv_open-aix.gperf: New file.
43647         * lib/iconv_open-hpux.gperf: New file.
43648         * lib/iconv_open-irix.gperf: New file.
43649         * lib/iconv_open-osf.gperf: New file.
43650         * m4/iconv_open.m4: New file.
43651         * modules/linebreak (Depends-on): Add iconv_open.
43652         * modules/striconv (Depends-on): Likewise.
43653         * modules/striconveh (Depends-on): Likewise.
43654         * modules/unicodeio (Depends-on): Likewise.
43655         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43656         (iconv_t)(-1).
43657         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43658         conversion if cd is (iconv_t)(-1).
43659         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43660         is not possible.
43661
43662 2007-03-31  Bruno Haible  <bruno@clisp.org>
43663
43664         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43665         work on Solaris either. Protect also second use of "autodetect_jp".
43666
43667 2007-03-31  Bruno Haible  <bruno@clisp.org>
43668
43669         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43670         the function is not present.
43671
43672 2007-03-31  Bruno Haible  <bruno@clisp.org>
43673
43674         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43675         the function is not present.
43676
43677 2007-03-31  Bruno Haible  <bruno@clisp.org>
43678
43679         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43680         a bug in HP-UX iconv_open().
43681
43682 2007-03-31  Bruno Haible  <bruno@clisp.org>
43683
43684         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43685         (Mathematics <math.h>): New section, add fpieee.
43686         (Input/output <stdio.h>): Add fseterr.
43687         (Mathematics <math.h>): New section, add printf-frexp.
43688         (Container data structures): Add sublist.
43689         (Core language properties): Add fpucw, inline.
43690         (Functions for greatest-width integer types <inttypes.h>): Add
43691         imaxabs, imaxdiv, inttypes.
43692         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43693         isnanl-nolibm, ldexp.
43694         (Mathematics <math.h>): New section, add printf-frexpl.
43695         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43696         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43697         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43698         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43699         (Unicode string functions): Add unistr/u*-mbtoucr.
43700         (Java): Add javacomp-script, javaexec-script.
43701         (C#): Add csharpcomp-script, csharpexec-script.
43702         (Support for building libraries and executables): Add havelib,
43703         relocatable-*.
43704         (Support for maintaining and releasing projects): Renamed from
43705         'Support for maintaining and release projects'. Add announce-gen.
43706
43707 2007-03-31  Bruno Haible  <bruno@clisp.org>
43708
43709         * README: Talk primarily about git.
43710         (git and CVS): Renamed from CVS.
43711         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43712         gnulib is available through git.
43713         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43714
43715 2007-03-30  Bruno Haible  <bruno@clisp.org>
43716
43717         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43718         * lib/poll_.h: Likewise.
43719         * lib/stat_.h: Likewise.
43720         * lib/sys_time_.h: Likewise.
43721         * lib/sysexit_.h: Likewise.
43722         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43723         * lib/stdbool_.h: Likewise.
43724         * lib/byteswap_.h: Add double-inclusion guard.
43725
43726 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43727
43728         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43729
43730 2007-03-30  Karl Berry  <karl@gnu.org>
43731
43732         * config/srclist-update: double space after USA in the license
43733         substitution, since that's how it's usually (?) written.
43734
43735 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43736
43737         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43738         reported by Bruno Haible.
43739
43740 2007-03-29  Bruno Haible  <bruno@clisp.org>
43741
43742         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43743         a bug in AIX iconv().
43744
43745 2007-03-29  Bruno Haible  <bruno@clisp.org>
43746
43747         * modules/ldexpl-tests: New file.
43748         * tests/test-ldexpl.c: New file.
43749
43750 2007-03-29  Bruno Haible  <bruno@clisp.org>
43751
43752         * lib/ldexpl.c: Include fpucw.h.
43753         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43754         multiplication.
43755         * modules/ldexpl (Depends-on): Add fpucw.
43756
43757 2007-03-29  Bruno Haible  <bruno@clisp.org>
43758
43759         * modules/ldexpl: New file.
43760         * m4/ldexpl.m4: New file.
43761         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43762         set.
43763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43764         REPLACE_LDEXPL.
43765         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43766         REPLACE_LDEXPL.
43767         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43768         gl_FUNC_LDEXPL_WORKS.
43769         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43770         * modules/mathl (Files): Remove lib/ldexpl.c.
43771         (Depends-on): Add ldexpl.
43772
43773 2007-03-29  Bruno Haible  <bruno@clisp.org>
43774
43775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43776
43777 2007-03-29  Bruno Haible  <bruno@clisp.org>
43778
43779         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43780         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43781         and possibly also HP-UX.
43782         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43783         work on AIX, IRIX, HP-UX, OSF/1.
43784         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43785         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43786         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43787         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43788         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43789         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43790
43791 2007-03-29  Bruno Haible  <bruno@clisp.org>
43792
43793         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43794
43795 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43796
43797         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43798         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43799
43800 2007-03-29  Eric Blake  <ebb9@byu.net>
43801
43802         * lib/acl-internal.h: Remove redundant include.
43803         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43804         Cygwin when a file is locked.
43805
43806 2007-03-29  Bruno Haible  <bruno@clisp.org>
43807
43808         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43809         file.
43810         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43811
43812 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43813
43814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43815         try to remove a parent directory if the child couldn't be removed
43816         (except for the first rmdir, which could fail because the child
43817         doesn't exist).  Problem reported by Jeff Blaine in
43818         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43819
43820 2007-03-28  Bruno Haible  <bruno@clisp.org>
43821
43822         * lib/striconveh.c (utf8conv_carefully): New function.
43823         (mem_cd_iconveh_internal): Invoke it.
43824
43825 2007-03-28  Bruno Haible  <bruno@clisp.org>
43826
43827         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43828         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43829         input.
43830         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43831         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43832         unistr/u8-uctomb.
43833
43834 2007-03-28  Bruno Haible  <bruno@clisp.org>
43835
43836         * modules/unistr/u8-mbtoucr: New file.
43837         * lib/unistr/u8-mbtoucr.c: New file.
43838         * modules/unistr/u16-mbtoucr: New file.
43839         * lib/unistr/u16-mbtoucr.c: New file.
43840         * modules/unistr/u16-mbtoucr: New file.
43841         * lib/unistr/u16-mbtoucr.c: New file.
43842         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43843
43844 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43845             Bruno Haible  <bruno@clisp.org>
43846
43847         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43848         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43849         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43850
43851         * m4/stdio_h.m4: Add stubs for vasprintf too.
43852
43853         * modules/stdio: Support vasprintf in sed command.
43854
43855         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43856         vasprintf.h.  Add stdio module indicator.
43857
43858         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43859         vasprintf.h.
43860
43861         * lib/vasprintf.h: File removed.
43862
43863         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43864         * lib/vasprintf.c: Ditto.
43865         * lib/xvasprintf.c: Ditto.
43866         * tests/test-vasprintf-posix.c: Ditto.
43867         * tests/test-vasprintf.c: Ditto.
43868
43869 2007-03-27  Bruno Haible  <bruno@clisp.org>
43870
43871         Make vasnprintf multithread-safe.
43872         * lib/vasnprintf.c (decimal_point_char): New function.
43873         (VASNPRINTF): Use it.
43874         Suggested by Simon Josefsson.
43875
43876 2007-03-27  Eric Blake  <ebb9@byu.net>
43877
43878         Support sub-second birthtime on cygwin.
43879         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43880         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43881         (get_stat_birthtime): Also work with st_birthtim.
43882
43883 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43884
43885         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43886         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43887         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43888         (get_stat_birthtime_ns): Simplify compile-time tests.
43889         (get_stat_birthtime): Change the API to look like
43890         get_stat_mtime etc., except return a negative tv_nsec on error.
43891         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43892         Don't check for "spare" fields.
43893         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43894         or for struct stat.st_birthtime, as these tests aren't used.
43895         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43896
43897 2007-03-27  Bruno Haible  <bruno@clisp.org>
43898
43899         * lib/stat-time.h: Include <sys/stat.h>.
43900
43901 2007-03-27  James Youngman  <jay@gnu.org>
43902
43903         * lib/stat-time.h (get_stat_birthtime): New function for
43904           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43905         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43906           and its variants.
43907         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43908         * modules/stat-time-test: New file.
43909         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43910
43911 2007-03-26  Bruno Haible  <bruno@clisp.org>
43912
43913         Better support of signalling NaNs.
43914         * lib/atanl.c: Include isnanl.h.
43915         (atanl): Perform test for NaN at the beginning of the function and
43916         through a call to isnanl.
43917         * lib/cosl.c: Include isnanl.h.
43918         (cosl): Perform test for NaN at the beginning of the function and
43919         through a call to isnanl.
43920         * lib/ldexpl.c: Include isnanl.h.
43921         (ldexpl): Perform test for NaN through a call to isnanl.
43922         * lib/logl.c: Include isnanl.h.
43923         (logl): Perform test for NaN at the beginning of the function and
43924         through a call to isnanl.
43925         * lib/sinl.c: Include isnanl.h.
43926         (sinl): Perform test for NaN at the beginning of the function and
43927         through a call to isnanl.
43928         * lib/sqrtl.c: Include isnanl.h.
43929         (sqrtl): Perform test for NaN at the beginning of the function and
43930         through a call to isnanl.
43931         * lib/tanl.c: Include isnanl.h.
43932         (tanl): Perform test for NaN at the beginning of the function and
43933         through a call to isnanl.
43934         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43935         * modules/mathl (Depends-on): Add isnanl.
43936
43937 2007-03-26  Eric Blake  <ebb9@byu.net>
43938
43939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43940         regression in logic sense of previous patch.
43941
43942 2007-03-26  Bruno Haible  <bruno@clisp.org>
43943
43944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43945         unportable shell command "if ! ...".
43946         Reported by Ralf Wildenhues.
43947
43948 2007-03-25  Bruno Haible  <bruno@clisp.org>
43949
43950         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43951         <sysexits.h> file, and only add EX_CONFIG.
43952         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43953         absolute file name and whether it is sufficient. Substitute also
43954         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43955         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43956         ABSOLUTE_SYSEXITS_H into sysexits.h.
43957
43958 2007-03-25  Bruno Haible  <bruno@clisp.org>
43959
43960         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43961         hints is NULL.
43962
43963 2007-03-25  Bruno Haible  <bruno@clisp.org>
43964
43965         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43966         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43967
43968 2007-03-25  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/vasnprintf.c: Include langinfo.h.
43971         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43972         multithread-safe.
43973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43974         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43976         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43977         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43978         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43979         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43980         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
43981         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43982         Reported by Simon Josefsson.
43983
43984 2007-03-25  Bruno Haible  <bruno@clisp.org>
43985
43986         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43987         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43988         * modules/vasnprintf (Depends-on): Add stdint.
43989
43990 2007-03-25  Bruno Haible  <bruno@clisp.org>
43991
43992         * modules/fpieee: New file.
43993         * m4/fpieee.m4: New file.
43994         * modules/isnan-nolibm (Depends-on): Add fpieee.
43995         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43996         * modules/isnanl (Depends-on): Add fpieee.
43997
43998 2007-03-25  Bruno Haible  <bruno@clisp.org>
43999
44000         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
44001
44002 2007-03-25  Bruno Haible  <bruno@clisp.org>
44003
44004         Avoid test failures on IRIX 6.5.
44005         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
44006         (main): Use it.
44007         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
44008         macros.
44009         (main): Use them.
44010
44011 2007-03-25  Bruno Haible  <bruno@clisp.org>
44012
44013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
44014         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
44015         exists but doesn't work.
44016         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
44017         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
44018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
44019         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
44020
44021 2007-03-25  Bruno Haible  <bruno@clisp.org>
44022
44023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
44024         returns inf. Needed on IRIX 6.5.
44025
44026 2007-03-25  Bruno Haible  <bruno@clisp.org>
44027
44028         * tests/test-frexpl.c: Include isnanl-nolibm.h.
44029         (main): Use isnanl instead of x != x idiom.
44030         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
44031
44032         * tests/test-frexp.c: Include isnan.h.
44033         (main): Use isnan instead of x != x idiom.
44034         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
44035
44036 2007-03-25  Bruno Haible  <bruno@clisp.org>
44037
44038         * tests/test-frexp.c (NaN): New function/macro.
44039         (main): Use it instead of 0.0 / 0.0.
44040         * tests/test-isnan.c (NaN): New function/macro.
44041         (main): Use it instead of 0.0 / 0.0.
44042         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
44043         (test_function): Use it instead of 0.0 / 0.0.
44044         * tests/test-vasprintf-posix.c (NaN): New function/macro.
44045         (test_function): Use it instead of 0.0 / 0.0.
44046         * tests/test-snprintf-posix.h (NaN): New function/macro.
44047         (test_function): Use it instead of 0.0 / 0.0.
44048         * tests/test-sprintf-posix.h (NaN): New function/macro.
44049         (test_function): Use it instead of 0.0 / 0.0.
44050         * tests/test-fprintf-posix.h (NaN): New function/macro.
44051         (test_function): Use it instead of 0.0 / 0.0.
44052         * tests/test-printf-posix.h (NaN): New function/macro.
44053         (test_function): Use it instead of 0.0 / 0.0.
44054
44055         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
44056
44057 2007-03-25  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
44060
44061 2007-03-25  Bruno Haible  <bruno@clisp.org>
44062
44063         * lib/regexec.c (merge_state_with_log): Make static.
44064
44065 2007-03-25  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/trigl.c (kernel_rem_pio2): Make static.
44068
44069 2007-03-25  Bruno Haible  <bruno@clisp.org>
44070
44071         * lib/sincosl.c (sincosl_table): Make static.
44072
44073 2007-03-25  Bruno Haible  <bruno@clisp.org>
44074
44075         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
44076         if the compiler does not support C99.
44077
44078 2007-03-25  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/time (Makefile.am): Ensure all rule action lines start with a
44081         tab.
44082
44083 2007-03-24  Bruno Haible  <bruno@clisp.org>
44084
44085         * modules/tsearch-tests: New file.
44086         * tests/test-tsearch.sh: New file.
44087         * tests/test-tsearch.c: New file, mostly copied from glibc.
44088
44089         * modules/search-tests: New file.
44090         * tests/test-search.c: New file.
44091
44092         * modules/search: New file.
44093         * lib/search_.h: New file, incorporating lib/tsearch.h.
44094         * m4/search_h.m4: New file.
44095         * lib/tsearch.h: Remove file.
44096         * lib/tsearch.c: Include search.h instead of tsearch.h.
44097         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44098         HAVE_TSEARCH.
44099         * modules/tsearch (Files): Remove lib/tsearch.h.
44100         (Depends-on): Add search.
44101         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44102         (Include): Change tsearch.h into search.h.
44103
44104 2007-03-24  Bruno Haible  <bruno@clisp.org>
44105
44106         * modules/fpucw: New file.
44107         * lib/fpucw.h: New file.
44108         * lib/frexp.c: Include fpucw.h.
44109         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44110         (FUNC): Use them.
44111         * lib/printf-frexp.c: Include fpucw.h.
44112         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44113         (FUNC): Use them.
44114         * lib/vasnprintf.c: Include fpucw.h.
44115         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44116         'long double' calculations.
44117         * tests/test-frexpl.c: Include fpucw.h.
44118         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44119         * tests/test-printf-frexpl.c: Include fpucw.h.
44120         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44121         * modules/frexpl (Depends-on): Add fpucw.
44122         * modules/printf-frexpl (Depends-on): Likewise.
44123         * modules/fprintf-posix (Depends-on): Likewise.
44124         * modules/snprintf-posix (Depends-on): Likewise.
44125         * modules/sprintf-posix (Depends-on): Likewise.
44126         * modules/vasnprintf-posix (Depends-on): Likewise.
44127         * modules/vasprintf-posix (Depends-on): Likewise.
44128         * modules/vfprintf-posix (Depends-on): Likewise.
44129         * modules/vsnprintf-posix (Depends-on): Likewise.
44130         * modules/vsprintf-posix (Depends-on): Likewise.
44131         * modules/frexpl-tests (Depends-on): Likewise.
44132         * modules/printf-frexpl-tests (Depends-on): Likewise.
44133
44134 2007-03-24  Bruno Haible  <bruno@clisp.org>
44135
44136         * lib/float+.h: New file.
44137         * lib/isnan.c: Include float+.h.
44138         (SIZE): New macro.
44139         (FUNC): Compare only SIZE bytes of the value.
44140         * lib/vasnprintf.c: Include float+.h.
44141         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44142         SIZEOF_LDBL or SIZEOF_DBL bytes.
44143         * modules/isnan-nolibm (Files): Add lib/float+.h.
44144         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44145         * modules/isnanl (Files): Add lib/float+.h.
44146         * modules/vasnprintf (Files): Add lib/float+.h.
44147
44148 2007-03-24  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44151         include isnanl-nolibm.h.
44152
44153 2007-03-24  Bruno Haible  <bruno@clisp.org>
44154
44155         * tests/test-read-file.c (main): Don't produce spurious output for
44156         expected situations. Make the test fail if it encountered unexpected
44157         results.
44158
44159 2007-03-24  Bruno Haible  <bruno@clisp.org>
44160
44161         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44162         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44163
44164 2007-03-24  Bruno Haible  <bruno@clisp.org>
44165
44166         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44167
44168 2007-03-24  Bruno Haible  <bruno@clisp.org>
44169
44170         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44171         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44172
44173         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44174         * modules/utf8-ucs4: Turn into a symbolic link to module
44175         unistr/u8-mbtouc.
44176
44177         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44178         utf8-ucs4-unsafe.
44179         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44180         unistr/u8-mbtouc-unsafe.
44181
44182         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44183         * modules/utf16-ucs4: Turn into a symbolic link to module
44184         unistr/u16-mbtouc.
44185
44186         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44187         utf16-ucs4-unsafe.
44188         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44189         unistr/u16-mbtouc-unsafe.
44190
44191         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44192         * modules/ucs4-utf8: Turn into a symbolic link to module
44193         unistr/u8-ubtomb.
44194
44195         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44196         * modules/ucs4-utf16: Turn into a symbolic link to module
44197         unistr/u16-ubtomb.
44198
44199 2007-03-24  Bruno Haible  <bruno@clisp.org>
44200
44201         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44202         Enable the function only if HAVE_INLINE.
44203         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44204         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44205         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44206         Enable the function only if HAVE_INLINE.
44207         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44208         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44209         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44210         Enable the function only if HAVE_INLINE.
44211         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44212         Enable the function only if HAVE_INLINE.
44213         * modules/utf8-ucs4: Update.
44214         * modules/utf8-ucs4-unsafe: Update.
44215         * modules/utf16-ucs4: Update.
44216         * modules/utf16-ucs4-unsafe: Update.
44217         * modules/ucs4-utf8: Update.
44218         * modules/ucs4-utf16: Update.
44219
44220 2007-03-24  Bruno Haible  <bruno@clisp.org>
44221
44222         * lib/utf8-ucs4.h: Remove file.
44223         * lib/utf8-ucs4-unsafe.h: Remove file.
44224         * lib/utf16-ucs4.h: Remove file.
44225         * lib/utf16-ucs4-unsafe.h: Remove file.
44226         * lib/ucs4-utf8.h: Remove file.
44227         * lib/ucs4-utf16.h: Remove file.
44228         * lib/unistr.h: Include their previous contents.
44229         * m4/utf-ucs4.m4: Remove file.
44230         * m4/ucs4-utf.m4: Remove file.
44231         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44232         (Depends-on): Add unistr/base.
44233         (configure.ac): Remove gl_UTF_UCS4.
44234         (Makefile.am): Update.
44235         (Include): Change to unistr.h.
44236         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44237         (Depends-on): Add unistr/base.
44238         (configure.ac): Remove gl_UTF_UCS4.
44239         (Makefile.am): Update.
44240         (Include): Change to unistr.h.
44241         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44242         (Depends-on): Add unistr/base.
44243         (configure.ac): Remove gl_UTF_UCS4.
44244         (Makefile.am): Update.
44245         (Include): Change to unistr.h.
44246         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44247         (Depends-on): Add unistr/base.
44248         (configure.ac): Remove gl_UTF_UCS4.
44249         (Makefile.am): Update.
44250         (Include): Change to unistr.h.
44251         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44252         (Depends-on): Add unistr/base.
44253         (configure.ac): Remove gl_UCS4_UTF.
44254         (Makefile.am): Update.
44255         (Include): Change to unistr.h.
44256         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44257         (Depends-on): Add unistr/base.
44258         (configure.ac): Remove gl_UCS4_UTF.
44259         (Makefile.am): Update.
44260         (Include): Change to unistr.h.
44261         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44262         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44263         utf8-ucs4-unsafe.h.
44264         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44265         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44266         utf16-ucs4-unsafe.h.
44267         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44268         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44269         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44270         * lib/unistr/u8-strchr.c: Likewise.
44271         * lib/unistr/u8-strrchr.c: Likewise.
44272         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44273         * lib/unistr/u16-strchr.c: Likewise.
44274         * lib/unistr/u16-strrchr.c: Likewise.
44275         * lib/striconveh.c: Update.
44276         * lib/linebreak.c: Update.
44277
44278 2007-03-24  Bruno Haible  <bruno@clisp.org>
44279
44280         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44281         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44282
44283 2007-03-22  Bruno Haible  <bruno@clisp.org>
44284
44285         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44286
44287 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         * MODULES.html.sh (File system functions): New module write-any-file.
44290         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44291         * m4/write-any-file.m4: New files.
44292
44293 2007-03-23  Eric Blake  <ebb9@byu.net>
44294
44295         * gnulib-tool: Rearrange space-tab sequences, since some editors
44296         like to eat them.
44297
44298 2007-03-23  Eric Blake  <ebb9@byu.net>
44299
44300         * lib/version-etc.c (version_etc_va): Update license wording to
44301         be more concise.  Recommended by Richard Stallman.
44302
44303 2007-03-22  Bruno Haible  <bruno@clisp.org>
44304
44305         * lib/poll.c (MSG_PEEK): New fallback definition.
44306
44307 2007-03-22  Bruno Haible  <bruno@clisp.org>
44308
44309         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44310         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44311         (main): Update.
44312         Fixes a compilation error on BeOS.
44313
44314 2007-03-22  Bruno Haible  <bruno@clisp.org>
44315
44316         * modules/frexpl-tests: New file.
44317         * tests/test-frexpl.c: New file.
44318
44319         * modules/frexpl: New file.
44320         * m4/frexpl.m4: New file.
44321         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44322         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44324         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44325         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44326         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44327
44328 2007-03-22  Bruno Haible  <bruno@clisp.org>
44329
44330         * lib/frexpl.c: Share code with lib/frexp.c.
44331         * modules/mathl (Files): Add lib/frexp.c.
44332         (Depends-on): Add isnanl-nolibm.
44333
44334 2007-03-22  Bruno Haible  <bruno@clisp.org>
44335
44336         * modules/printf-frexp (Files): Add m4/frexp.m4.
44337         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44338         only if the found frexp function actually works.
44339
44340 2007-03-22  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/frexp.c: Remove older implementation that uses divisions.
44343
44344 2007-03-21  Bruno Haible  <bruno@clisp.org>
44345
44346         * modules/frexp-tests: New file.
44347         * tests/test-frexp.c: New file.
44348
44349         * modules/frexp: New file.
44350         * lib/frexp.c: New file.
44351         * m4/frexp.m4: New file.
44352         * lib/math_.h (frexp): New declaration.
44353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44354         REPLACE_FREXP.
44355         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44356
44357 2007-03-21  Bruno Haible  <bruno@clisp.org>
44358
44359         * modules/isnanl-tests: New file.
44360         * tests/test-isnanl.c: New file.
44361
44362         * modules/isnanl: New file.
44363         * lib/isnanl.h: New file.
44364         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44365         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44366         gl_FUNC_ISNANL_WORKS.
44367         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44368         New macros.
44369
44370 2007-03-21  Bruno Haible  <bruno@clisp.org>
44371
44372         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44373         lib/isnanl.h.
44374         (Include): Update.
44375         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44376         * lib/vasnprintf.c: Update.
44377         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44378         tests/test-isnanl.h, remove tests/test-isnanl.c.
44379         (Makefile.am): Update.
44380         * tests/test-isnanl-nolibm.c: New file.
44381         * tests/test-isnanl.h: New file.
44382         * tests/test-isnanl.c: Remove file.
44383
44384 2007-03-21  Jim Meyering  <jim@meyering.net>
44385
44386         When trying to open ".", treat ESTALE like EACCES.
44387         * lib/savewd.c (savewd_save): Resort to forking not just upon
44388         failure with EACCES, but also when errno is ESTALE.
44389
44390 2007-03-20  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44393         Needed on AIX 5.1. Reported by Matthew Woehlke.
44394
44395 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44396
44397         Suggestions by Bruno Haible:
44398         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44399         our own.
44400         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44401         * modules/acl (Depends-on): Add gettext.
44402
44403 2007-03-19  Bruno Haible  <bruno@clisp.org>
44404
44405         * modules/iconvme: Remove file.
44406         * lib/iconvme.h: Remove file.
44407         * lib/iconvme.c: Remove file.
44408         * m4/iconvme.m4: Remove file.
44409
44410 2007-03-19  Bruno Haible  <bruno@clisp.org>
44411
44412         * doc/relocatable-maint.texi: Break long shell script line.
44413         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44414
44415 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44416
44417         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44418         handle file_has_acl.
44419         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44420         * lib/acl.c: Move header inclusions and related macro defns into
44421         lib/acl-internal.h.
44422         (S_ISLNK): Remove defn, since that's now done for us.
44423         (file_has_acl): Move to lib/file-has-acl.c.
44424         Call acl_trivial if available.  This is the crucial part of the fix.
44425         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44426         shared within the library.  Rewrite a bit, partly to make it compatible
44427         with the GNU coding style.
44428         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44429         Remove unnecessary double-quotes.
44430         Don't test for acl_to_text; the build will catch that.
44431         Replace acl_entries if it doesn't exist and it is needed.
44432         Check for -lsec and acl_trivial (as used on Solaris 10).
44433         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44434         lib/file-has-acl.c.
44435         (Depends-on): Add sys_stat, for S_ISLNK.
44436
44437 2007-03-19  Ben Pfaff  <blp@gnu.org>
44438
44439         * doc/gnulib.texi: Fix typos.
44440         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44441
44442 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44443
44444         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44445         If size is zero here, buf must be zero.
44446
44447 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44448
44449         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44450         <bruno@clisp.org>.
44451
44452 2007-03-18  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44455         Suggested by Eric Blake.
44456
44457 2007-03-18  Ben Pfaff  <blp@gnu.org>
44458
44459         * doc/relocatable.texi: Recommend using as prefix a directory
44460         that does not exist and will never be created.  Based on
44461         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44462         and others.
44463
44464 2007-03-17  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/fchownat.c: Include lchown.h.
44467
44468 2007-03-17  Bruno Haible  <bruno@clisp.org>
44469
44470         Fix endless loop when the given allocated size was > INT_MAX.
44471         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44472         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44473         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44474         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44475         * lib/sprintf.c (sprintf): Likewise.
44476
44477 2007-03-17  Bruno Haible  <bruno@clisp.org>
44478
44479         * tests/test-argp-2.sh (func_compare): Output a context diff.
44480
44481 2007-03-17  Bruno Haible  <bruno@clisp.org>
44482
44483         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44484         locale's decimal-point character.
44485
44486 2007-03-17  Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44489         before comparing it. Needed because on some platforms (e.g. x86) a
44490         'long double' occupies less bytes than sizeof (long double).
44491
44492 2007-03-17  Bruno Haible  <bruno@clisp.org>
44493
44494         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44495         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44496         * tests/test-getaddrinfo.c (simple): Likewise.
44497         * tests/test-read-file.c (main): Likewise.
44498
44499 2007-03-17  Bruno Haible  <bruno@clisp.org>
44500
44501         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44502
44503 2007-03-17  Bruno Haible  <bruno@clisp.org>
44504
44505         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44506         unused variable.
44507
44508 2007-03-17  Bruno Haible  <bruno@clisp.org>
44509
44510         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44511         * tests/test-c-strncasecmp.c: Likewise.
44512
44513 2007-03-17  Bruno Haible  <bruno@clisp.org>
44514
44515         * modules/stdlib (Depends-on): Add unistd.
44516         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44517         Needed for MacOS X 10.3.
44518
44519 2007-03-17  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44522
44523 2007-03-17  Bruno Haible  <bruno@clisp.org>
44524
44525         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44526
44527 2007-03-17  Bruno Haible  <bruno@clisp.org>
44528
44529         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44530         to reflect files copied from gnulib (with or without modifications).
44531         Suggested by Jim Meyering.
44532
44533 2007-03-17  Eric Blake  <ebb9@byu.net>
44534
44535         * NEWS: Document stdlib change from 2007-02-18.
44536
44537 2007-03-17  Jim Meyering  <jim@meyering.net>
44538
44539         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44540         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44541         someone uses a name containing shell meta-characters.
44542         Reported by Alfred M. Szmidt.
44543
44544         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44545
44546 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44547
44548         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44549         and copy gettext configuration files only if configure.ac contains
44550         a use of AM_GNU_GETTEXT_VERSION.
44551
44552 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44553
44554         * build-aux/bootstrap (gnulib_name): New variable.
44555         (gnulib_tool_options): Use it.
44556
44557 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44558
44559         * tests/test-des.c: Use new namespace.
44560
44561 2007-03-15  Bruno Haible  <bruno@clisp.org>
44562
44563         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44564         Reported by James Youngman <jay@gnu.org>.
44565
44566 2007-03-15  Bruno Haible  <bruno@clisp.org>
44567
44568         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44569         declared prototype. Needed with cc on OSF/1 5.1.
44570
44571 2007-03-15  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44574         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44575         (struct gl_list_implementation): Add dispose_fn argument to the
44576         'create_empty', 'create' methods.
44577         (struct gl_list_impl_base): Add field 'dispose_fn'.
44578         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44579         argument.
44580         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44581         dispose_fn argument.
44582         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44583         dispose_fn on the dropped values.
44584         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44585         dispose_fn argument.
44586         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44587         dropped values.
44588         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44589         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44590         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44591         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44592         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44593         argument.
44594         (gl_tree_list_free): Call dispose_fn on the dropped values.
44595         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44596         the dropped values.
44597         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44598         Add dispose_fn argument.
44599         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44600         Call dispose_fn on the dropped values.
44601         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44602         Add dispose_fn argument.
44603         (gl_sublist_create): Initialize the 'dispose_fn' field.
44604         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44605         * tests/test-array_list.c (main): Update.
44606         * tests/test-carray_list.c (main): Update.
44607         * tests/test-avltree_list.c (main): Update.
44608         * tests/test-rbtree_list.c (main): Update.
44609         * tests/test-avltreehash_list.c (main): Update.
44610         * tests/test-rbtreehash_list.c (main): Update.
44611         * tests/test-linked_list.c (main): Update.
44612         * tests/test-linkedhash_list.c (main): Update.
44613         * tests/test-array_oset.c (main): Update.
44614
44615 2007-03-15  Bruno Haible  <bruno@clisp.org>
44616
44617         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44618         (gl_oset_create_empty): Add dispose_fn argument.
44619         (struct gl_oset_implementation): Add dispose_fn argument to
44620         'create_empty' method.
44621         (struct gl_oset_impl_base): Add dispose_fn field.
44622         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44623         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44624         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44625         values.
44626         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44627         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44628         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44629         dropped value.
44630         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44631         dropped value.
44632         * tests/test-array_oset.c (main): Update.
44633         * tests/test-avltree_oset.c (main): Update.
44634         * tests/test-rbtree_oset.c (main): Update.
44635         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44636
44637 2007-03-13  Bruno Haible  <bruno@clisp.org>
44638
44639         * tests/test-stdbool.c (i): Update after last patch.
44640
44641 2007-03-12  Bruno Haible  <bruno@clisp.org>
44642
44643         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44644         the iswprint macro. Needed on Solaris 2.5.1.
44645
44646 2007-03-12  Bruno Haible  <bruno@clisp.org>
44647
44648         * tests/test-printf-frexp.c (main): Declare x as volatile.
44649
44650 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44651
44652         * doc/gnulib.texi (Build robot for gnulib): New section.
44653
44654 2007-03-12  Jim Meyering  <jim@meyering.net>
44655
44656         * build-aux/bootstrap: New file.
44657         * build-aux/bootstrap.conf: New file, from coreutils.
44658
44659 2007-03-11  Bruno Haible  <bruno@clisp.org>
44660
44661         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44662
44663 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44664
44665         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44666         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44667         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44668
44669 2007-03-11  Bruno Haible  <bruno@clisp.org>
44670
44671         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44672         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44673
44674 2007-03-11  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44677         formula. Needed for SunPRO C 5.0.
44678
44679 2007-03-11  Bruno Haible  <bruno@clisp.org>
44680
44681         * modules/long-options (Depends-on): Add getopt.
44682
44683 2007-03-11  Bruno Haible  <bruno@clisp.org>
44684
44685         * modules/modechange (Depends-on): Add stdbool.
44686
44687 2007-03-11  Bruno Haible  <bruno@clisp.org>
44688
44689         * modules/i-ring (Depends-on): Add stdbool.
44690
44691 2007-03-11  Bruno Haible  <bruno@clisp.org>
44692
44693         * modules/gc-des (Depends-on): Add stdbool.
44694
44695 2007-03-11  Bruno Haible  <bruno@clisp.org>
44696
44697         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44698
44699 2007-03-11  Bruno Haible  <bruno@clisp.org>
44700
44701         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44702
44703 2007-03-11  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44706
44707 2007-03-11  Bruno Haible  <bruno@clisp.org>
44708
44709         * lib/vasnprintf.c (sprintf): Undefine.
44710
44711 2007-03-11  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44714         initializers in SunPRO C and Compaq C compilers.
44715
44716 2007-03-11  Bruno Haible  <bruno@clisp.org>
44717
44718         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44719         decrementing code ANSI C compliant.
44720
44721 2007-03-11  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44724         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44725
44726 2007-03-11  Bruno Haible  <bruno@clisp.org>
44727
44728         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44729         <stdbool.h> substitute doesn't pass.
44730
44731 2007-03-11  Bruno Haible  <bruno@clisp.org>
44732
44733         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44734
44735 2007-03-11  Bruno Haible  <bruno@clisp.org>
44736
44737         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44738         script, for submission to autobuild.josefsson.org.
44739
44740 2007-03-10  Bruno Haible  <bruno@clisp.org>
44741
44742         * modules/canonicalize-lgpl-tests: New file.
44743         * tests/test-canonicalize-lgpl.sh: New file.
44744         * tests/test-canonicalize-lgpl.c: New file.
44745
44746         * modules/c-strcase-tests: New file.
44747         * tests/test-c-strcase.sh: New file.
44748         * tests/test-c-strcasecmp.c: New file.
44749         * tests/test-c-strncasecmp.c: New file.
44750
44751         * modules/atexit-tests: New file.
44752         * tests/test-atexit.sh: New file.
44753         * tests/test-atexit.c: New file.
44754
44755 2007-03-10  Bruno Haible  <bruno@clisp.org>
44756
44757         * tests/test-binary-io.sh: Use temporary filenames that are not so
44758         likely to clash with those of other tests (in a parallel make).
44759         * tests/test-binary-io.c: Likewise.
44760
44761 2007-03-10  Bruno Haible  <bruno@clisp.org>
44762
44763         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44764         fallback; use #error instead.
44765         Suggested by Simon Josefsson.
44766
44767 2007-03-10  Bruno Haible  <bruno@clisp.org>
44768
44769         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44770         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44771         first and the last.
44772
44773 2007-03-10  Bruno Haible  <bruno@clisp.org>
44774
44775         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44776
44777 2007-03-10  Bruno Haible  <bruno@clisp.org>
44778
44779         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44780         "make distcheck".
44781         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44782         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44783         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44784
44785 2007-03-10  Bruno Haible  <bruno@clisp.org>
44786
44787         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44788         variable.
44789         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44790         variable.
44791
44792 2007-03-09  Eric Blake  <ebb9@byu.net>
44793         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44794
44795         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44796         types are not being provided by gnulib.
44797         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44798         types are supported.
44799
44800 2007-03-10  Bruno Haible  <bruno@clisp.org>
44801
44802         * lib/stdio_.h (__attribute__): New macro.
44803         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44804         vsprintf): Specify __attribute__ __format__ for GCC.
44805         Suggested by Eric Blake.
44806
44807 2007-03-09  Bruno Haible  <bruno@clisp.org>
44808
44809         * modules/printf-posix-tests: New file.
44810         * tests/test-printf-posix.sh: New file.
44811         * tests/test-printf-posix.c: New file.
44812
44813         * modules/printf-posix: New file.
44814         * lib/printf.c: New file.
44815         * m4/printf-posix-rpl.m4: New file.
44816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44817         REPLACE_PRINTF.
44818         * lib/stdio_.h (printf): New declaration.
44819         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44820         ____strfmon____): New macros.
44821         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44822         REPLACE_PRINTF.
44823
44824 2007-03-09  Bruno Haible  <bruno@clisp.org>
44825
44826         * tests/test-vasnprintf-posix2.sh: New file.
44827         * tests/test-vasnprintf-posix2.c: New file.
44828         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44829         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44830         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44831
44832         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44833         a locale dependent decimal point, rather than always '.'.
44834
44835 2007-03-09  Eric Blake  <ebb9@byu.net>
44836
44837         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44838         spite of platforms like Tandem/NSK that define it to -1.
44839
44840 2007-03-08  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/vprintf-posix-tests: New file.
44843         * tests/test-vprintf-posix.sh: New file.
44844         * tests/test-vprintf-posix.c: New file.
44845         * tests/test-printf-posix.h: New file.
44846
44847         * modules/vprintf-posix: New file.
44848         * lib/vprintf.c: New file.
44849         * m4/vprintf-posix.m4: New file.
44850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44851         REPLACE_VPRINTF.
44852         * lib/stdio_.h (vprintf): New declaration.
44853         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44854         REPLACE_VPRINTF.
44855
44856 2007-03-08  Bruno Haible  <bruno@clisp.org>
44857
44858         * modules/fprintf-posix-tests: New file.
44859         * tests/test-fprintf-posix.sh: New file.
44860         * tests/test-fprintf-posix.c: New file.
44861
44862         * modules/fprintf-posix: New file.
44863         * lib/fprintf.c: New file.
44864         * m4/fprintf-posix.m4: New file.
44865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44866         REPLACE_FPRINTF.
44867         * lib/stdio_.h (fprintf): New declaration.
44868         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44869         REPLACE_FPRINTF.
44870
44871 2007-03-08  Bruno Haible  <bruno@clisp.org>
44872
44873         * modules/vfprintf-posix-tests: New file.
44874         * tests/test-vfprintf-posix.sh: New file.
44875         * tests/test-vfprintf-posix.c: New file.
44876         * tests/test-fprintf-posix.h: New file.
44877         * tests/test-fprintf-posix.out: New file.
44878
44879         * modules/vfprintf-posix: New file.
44880         * lib/vfprintf.c: New file.
44881         * m4/vfprintf-posix.m4: New file.
44882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44883         REPLACE_VFPRINTF.
44884         * lib/stdio_.h (vfprintf): New declaration.
44885         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44886         REPLACE_VFPRINTF.
44887
44888 2007-03-08  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44891
44892 2007-03-08  Bruno Haible  <bruno@clisp.org>
44893
44894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44895         instead of 'expr' invocations.
44896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44897         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44901         Suggested by Paul Eggert.
44902
44903 2007-03-08  Bruno Haible  <bruno@clisp.org>
44904
44905         * modules/fseterr-tests: New file.
44906         * tests/test-fseterr.c: New file.
44907
44908         * modules/fseterr: New file.
44909         * lib/fseterr.h: New file.
44910         * lib/fseterr.c: New file.
44911
44912 2007-03-08  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44915         * lib/getopt_.h: Likewise.
44916         * lib/mbswidth.h: Likewise.
44917         * lib/setenv.h: Likewise.
44918         * lib/vasnprintf.h: Likewise.
44919         * lib/vasprintf.h: Likewise.
44920         * lib/verror.h: Likewise.
44921         * lib/xsetenv.h: Likewise.
44922         * lib/xvasprintf.h: Likewise.
44923
44924 2007-03-08  Jim Meyering  <jim@meyering.net>
44925
44926         * users.txt: Add parted.
44927
44928         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44929
44930 2007-03-07  Bruno Haible  <bruno@clisp.org>
44931
44932         * m4/printf.m4: Make the shell script snippets copy&pastable.
44933
44934 2007-03-02  Bruno Haible  <bruno@clisp.org>
44935
44936         * lib/netinet_in_.h: New file.
44937         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44938         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44939         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44940         (Depends-on): Add absolute-header.
44941         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44942         into netinet/in.h.
44943
44944 2007-03-03  Bruno Haible  <bruno@clisp.org>
44945
44946         * lib/sys_select_.h: New file.
44947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44948         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44949         * modules/sys_select (Files): Add lib/sys_select_.h.
44950         (Depends-on): Add absolute-header.
44951         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44952         into sys/select.h.
44953
44954 2007-03-02  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44957         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44958         values.
44959         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44960         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44961         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44962         * modules/sys_socket (Depends-on): Add absolute-header.
44963         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44964         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44965         (Include): Remove requirement of inclusion of <sys/types.h>.
44966
44967 2007-03-02  Bruno Haible  <bruno@clisp.org>
44968
44969         * lib/byteswap_.h (bswap_32): Fix formula.
44970
44971 2007-03-06  Bruno Haible  <bruno@clisp.org>
44972
44973         * modules/sprintf-posix-tests: New file.
44974         * tests/test-sprintf-posix.c: New file.
44975
44976         * modules/sprintf-posix: New file.
44977         * lib/sprintf.c: New file.
44978         * m4/sprintf-posix.m4: New file.
44979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
44980         REPLACE_SPRINTF.
44981         * lib/stdio_.h (sprintf): New declaration.
44982         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44983         REPLACE_SPRINTF.
44984
44985 2007-03-06  Bruno Haible  <bruno@clisp.org>
44986
44987         * modules/vsprintf-posix-tests: New file.
44988         * tests/test-vsprintf-posix.c: New file.
44989         * tests/test-sprintf-posix.h: New file.
44990
44991         * modules/vsprintf-posix: New file.
44992         * lib/vsprintf.c: New file.
44993         * m4/vsprintf-posix.m4: New file.
44994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44995         REPLACE_VSPRINTF.
44996         * lib/stdio_.h (vsprintf): New declaration.
44997         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44998         REPLACE_VSPRINTF.
44999
45000 2007-03-06  Bruno Haible  <bruno@clisp.org>
45001
45002         * modules/vsnprintf (Depend-on): Remove minmax.
45003
45004 2007-03-06  Bruno Haible  <bruno@clisp.org>
45005
45006         * modules/snprintf-posix-tests: New file.
45007         * tests/test-snprintf-posix.c: New file.
45008
45009         * modules/snprintf-posix: New file.
45010         * m4/snprintf-posix.m4: New file.
45011         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
45012         gl_FUNC_SNPRINTF.
45013         (gl_FUNC_SNPRINTF): Invoke it.
45014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
45015         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
45016         is set.
45017         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
45018
45019 2007-03-06  Bruno Haible  <bruno@clisp.org>
45020
45021         * modules/vsnprintf-posix-tests: New file.
45022         * tests/test-vsnprintf-posix.c: New file.
45023         * tests/test-snprintf-posix.h: New file.
45024
45025         * modules/vsnprintf-posix: New file.
45026         * m4/vsnprintf-posix.m4: New file.
45027         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
45028         gl_FUNC_VSNPRINTF.
45029         (gl_FUNC_VSNPRINTF): Invoke it.
45030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
45031         * lib/stdio_.h (vsnprintf): Define as a replacement if
45032         REPLACE_VSNPRINTF is set.
45033         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
45034
45035 2007-03-06  Bruno Haible  <bruno@clisp.org>
45036
45037         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
45038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
45039
45040 2007-03-06  Bruno Haible  <bruno@clisp.org>
45041
45042         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
45043         (asinl): Declare also if HAVE_DECL_ASINL is set.
45044         (atanl): Declare also if HAVE_DECL_ATANL is set.
45045         (ceill): Declare also if HAVE_DECL_CEILL is set.
45046         (cosl): Declare also if HAVE_DECL_COSL is set.
45047         (expl): Declare also if HAVE_DECL_EXPL is set.
45048         (floorl): Declare also if HAVE_DECL_FLOORL is set.
45049         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
45050         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
45051         (logl): Declare also if HAVE_DECL_LOGL is set.
45052         (sinl): Declare also if HAVE_DECL_SINL is set.
45053         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
45054         (tanl): Declare also if HAVE_DECL_TANL is set.
45055         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
45056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
45057         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
45058         declaration of frexpl, ldexpl.
45059         * modules/printf-frexpl (Depends-on): Add math.
45060         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
45061
45062 2007-03-05  Bruno Haible  <bruno@clisp.org>
45063
45064         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
45065         frexpl and ldexpl are declared.
45066         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
45067
45068 2007-03-05  Bruno Haible  <bruno@clisp.org>
45069
45070         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
45071         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
45072
45073 2007-03-05  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/stdio_.h: Include <stddef.h>.
45076
45077 2007-03-05  Bruno Haible  <bruno@clisp.org>
45078
45079         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45080
45081 2007-03-05  Bruno Haible  <bruno@clisp.org>
45082
45083         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45084         NetBSD 4, from Ralf Wildenhues.
45085
45086 2007-03-04  Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/vasprintf.h: Update #if logic for the case when the functions
45089         exist but are overridden.
45090
45091 2007-03-04  Bruno Haible  <bruno@clisp.org>
45092
45093         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45094         implementations: glibc-2.4 and MacOS X 10.3.
45095         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45096         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45097         * tests/test-vasprintf-posix.c (test_function): Likewise.
45098
45099 2007-03-04  Bruno Haible  <bruno@clisp.org>
45100
45101         * modules/vasprintf-posix-tests: New file.
45102         * tests/test-vasprintf-posix.c: New file.
45103
45104         * modules/vasprintf-posix: New file.
45105         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45106         defined.
45107         * m4/vasprintf-posix.m4: New file.
45108         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45109         gl_FUNC_VASPRINTF.
45110         (gl_FUNC_VASPRINTF): Invoke it.
45111         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45112         here.
45113         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45114
45115 2007-03-04  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45118         REPLACE_GETTIMEOFDAY.
45119         * modules/sys_time (Makefile.am): Likewise.
45120         * m4/sys_time_h.m4: Likewise.
45121         * m4/gettimeofday.m4: Likewise.
45122
45123 2007-03-04  Bruno Haible  <bruno@clisp.org>
45124
45125         * modules/vasnprintf-posix-tests: New file.
45126         * tests/test-vasnprintf-posix.c: New file.
45127
45128         * modules/vasnprintf-posix: New file.
45129         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45130         printf-frexpl.h.
45131         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45132         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45133         REPLACE_VASNPRINTF is defined.
45134         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45135         gl_FUNC_VASNPRINTF.
45136         (gl_FUNC_VASNPRINTF): Invoke it.
45137         * m4/vasnprintf-posix.m4: New file.
45138         * m4/printf.m4: New file.
45139
45140 2007-03-04  Bruno Haible  <bruno@clisp.org>
45141
45142         Compile progreloc.c only if --enable-relocatable is specified.
45143         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45144         if --enable-relocatable was specified.
45145         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45146         lib_SOURCES.
45147
45148 2007-03-04  Jim Meyering  <jim@meyering.net>
45149
45150         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45151         Use it consistently, rather than enumerating errno constants.
45152
45153 2007-03-04  Bruno Haible  <bruno@clisp.org>
45154
45155         * modules/xvasprintf-tests: New file.
45156         * tests/test-xvasprintf.c: New file.
45157
45158         * modules/vasprintf-tests: New file.
45159         * tests/test-vasprintf.c: New file.
45160
45161         * modules/vasnprintf-tests: New file.
45162         * tests/test-vasnprintf.c: New file.
45163
45164         * modules/vsnprintf-tests: New file.
45165         * tests/test-vsnprintf.c: New file.
45166
45167         * modules/snprintf-tests: New file.
45168         * tests/test-snprintf.c: New file.
45169
45170 2007-03-04  Bruno Haible  <bruno@clisp.org>
45171
45172         Compile relocatable.c only if --enable-relocatable is specified.
45173         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45174         gl_RELOCATABLE_LIBRARY.
45175         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45176         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45177         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45178         gl_RELOCATABLE_LIBRARY.
45179         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45180         (Makefile.am): Remove lib_SOURCES.
45181         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45182         gl_RELOCATABLE_LIBRARY.
45183         (Makefile.am): Remove lib_SOURCES.
45184         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45185         always.
45186         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45187         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45188
45189 2007-03-04  Bruno Haible  <bruno@clisp.org>
45190
45191         * modules/argmatch-tests: New file.
45192         * tests/test-argmatch.c: New file.
45193
45194         * tests/test-allocsa.c (main): Halve the number of loop runs.
45195
45196         * modules/alloca-opt-tests: New file.
45197         * tests/test-alloca-opt.c: New file.
45198
45199 2007-03-04  Jim Meyering  <jim@meyering.net>
45200
45201         Work around difference between Linux ACLs and Solaris 10 ZFS.
45202         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45203         for EINVAL.
45204
45205 2007-03-03  Bruno Haible  <bruno@clisp.org>
45206
45207         * modules/relocatable-prog (Depends-on): Add back progreloc's
45208         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45209
45210 2007-03-03  Bruno Haible  <bruno@clisp.org>
45211
45212         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45213         * modules/relocatable-lib: New file.
45214
45215 2007-03-03  Bruno Haible  <bruno@clisp.org>
45216
45217         * modules/relocatable-prog: Renamed from modules/relocatable.
45218         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45219
45220 2007-03-03  Bruno Haible  <bruno@clisp.org>
45221
45222         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45223         m4/relocatable-lib.m4.
45224         (Depends-on): Remove 'relocatable'.
45225         (configure.ac): Add gl_RELOCATABLE_NOP.
45226
45227 2007-03-03  Bruno Haible  <bruno@clisp.org>
45228
45229         * modules/relocatable-prog-wrapper: New file.
45230         * modules/relocatable (Depends-on): Add it. Remove all other
45231         dependencies except progname.
45232         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45233
45234         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45235         (gl_FUNC_STRERROR): Nop.
45236         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45237
45238         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45239         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45240
45241         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45242         (gl_FUNC_READLINK): Update.
45243
45244         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45245
45246 2007-03-03  Bruno Haible  <bruno@clisp.org>
45247
45248         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45249         * modules/xreadlink (Depends-on): Add unistd.
45250         * modules/xreadlink-with-size (Depends-on): Likewise.
45251
45252 2007-03-03  Bruno Haible  <bruno@clisp.org>
45253
45254         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45255         extracted from gt_FUNC_SETENV.
45256         (gt_FUNC_SETENV): Remove macro.
45257         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45258         remove gt_FUNC_SETENV.
45259
45260 2007-03-03  Bruno Haible  <bruno@clisp.org>
45261
45262         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45263         ENABLE_RELOCATABLE here.
45264         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45265
45266 2007-03-03  Bruno Haible  <bruno@clisp.org>
45267
45268         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45269         * tests/test-rbtreehash_list.c: Include progname.h.
45270         (main): Call set_program_name.
45271
45272         * modules/rbtree-oset-tests (Depends-on): Add progname.
45273         * tests/test-rbtree_oset.c: Include progname.h.
45274         (main): Call set_program_name.
45275
45276         * modules/rbtree-list-tests (Depends-on): Add progname.
45277         * tests/test-rbtree_list.c: Include progname.h.
45278         (main): Call set_program_name.
45279
45280         * modules/linked-list-tests (Depends-on): Add progname.
45281         * tests/test-linked_list.c: Include progname.h.
45282         (main): Call set_program_name.
45283
45284 2007-03-03  Bruno Haible  <bruno@clisp.org>
45285
45286         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45287         All uses of __restrict changed to _Restrict_.
45288         * lib/glob_.h (__restrict): Remove macro.
45289
45290 2007-03-02  Bruno Haible  <bruno@clisp.org>
45291
45292         * modules/gettext (configure.ac): Require gettext infrastructure
45293         from version 0.16.1.
45294
45295 2007-03-02  Bruno Haible  <bruno@clisp.org>
45296
45297         * modules/linkedhash-list-tests (Depends-on): Add progname.
45298         * tests/test-linkedhash_list.c: Include progname.h.
45299         (main): Call set_program_name.
45300
45301         * modules/carray-list-tests (Depends-on): Add progname.
45302         * tests/test-carray_list.c: Include progname.h.
45303         (main): Call set_program_name.
45304
45305         * modules/avltreehash-list-tests (Depends-on): Add progname.
45306         * tests/test-avltreehash_list.c: Include progname.h.
45307         (main): Call set_program_name.
45308
45309         * modules/avltree-oset-tests (Depends-on): Add progname.
45310         * tests/test-avltree_oset.c: Include progname.h.
45311         (main): Call set_program_name.
45312
45313         * modules/avltree-list-tests (Depends-on): Add progname.
45314         * tests/test-avltree_list.c: Include progname.h.
45315         (main): Call set_program_name.
45316
45317         * modules/array-oset-tests (Depends-on): Add progname.
45318         * tests/test-array_oset.c: Include progname.h.
45319         (main): Call set_program_name.
45320
45321         * modules/array-list-tests (Depends-on): Add progname.
45322         * tests/test-array_list.c: Include progname.h.
45323         (main): Call set_program_name.
45324
45325         * modules/argp-tests (Depends-on): Add progname.
45326         * tests/test-argp.c: Include argp.h first. Include progname.h.
45327         (main): Call set_program_name.
45328
45329 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45330
45331         * doc/gnulib-tool.texi (Initial import): Reword description of
45332         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45333         limited effect even if defined after the first system include.
45334
45335 2007-03-01  Bruno Haible  <bruno@clisp.org>
45336
45337         * build-aux/config.libpath: Update to libtool-1.5.22.
45338         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45339
45340 2007-03-01  Bruno Haible  <bruno@clisp.org>
45341
45342         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45343         foo_CFLAGS.
45344         Reported by Ralf Wildenhues.
45345
45346 2007-03-01  Bruno Haible  <bruno@clisp.org>
45347
45348         * build-aux/install-reloc: Remove object files left over by some
45349         compilers.
45350         Reported by Ralf Wildenhues.
45351
45352 2007-03-01  Bruno Haible  <bruno@clisp.org>
45353
45354         * build-aux/install-reloc: Break long lines.
45355
45356 2007-03-01  Bruno Haible  <bruno@clisp.org>
45357
45358         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45359         Reported by Ralf Wildenhues.
45360
45361 2007-03-01  Bruno Haible  <bruno@clisp.org>
45362
45363         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45364         include ordering constraints.
45365
45366 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45367
45368         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45369         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45370         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45371         as another example.
45372         * lib/time_.h: Fix misspelling.
45373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45374         Require gl_HEADER_TIME_H_DEFAULTS.
45375         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45376         * m4/time_r.m4 (gl_TIME_R): Likewise.
45377         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45378
45379 2007-03-01  Bruno Haible  <bruno@clisp.org>
45380
45381         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45382         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45383
45384 2007-03-01  Jim Meyering  <jim@meyering.net>
45385
45386         * modules/xreadlink (Maintainer): Add my name.
45387         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45388
45389 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45390             Bruno Haible  <bruno@clisp.org>
45391
45392         * build-aux/install-reloc: Compile also c-ctype.c.
45393         * build-aux/relocatable.sh.in: New file.
45394         * doc/relocatable.texi: New file.
45395         * doc/relocatable-maint.texi: New file.
45396         * doc/gnulib.texi: Include relocatable-maint.texi.
45397         * lib/progreloc.c: Include unistd.h unconditionally.
45398         * lib/relocwrapper.c: Include unistd.h unconditionally.
45399         Include c-ctype.h.
45400         (add_dotbin): Use c_tolower.
45401         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45402         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45403         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45404         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45405         to m4/relocatable-lib.m4.
45406         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45407         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45408         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45409         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45410         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45411         * modules/relocatable: New file.
45412         * modules/relocatable-lib: New file.
45413         * modules/relocatable-script: New file.
45414
45415 2007-02-28  Bruno Haible  <bruno@clisp.org>
45416
45417         Import --enable-relocatable infrastructure.
45418         * build-aux/config.libpath: New file, from GNU gettext.
45419         * build-aux/install-reloc: New file, from GNU gettext.
45420         * build-aux/reloc-ldflags: New file, from GNU gettext.
45421         * lib/relocatable.h: New file, from GNU gettext.
45422         * lib/relocatable.c: New file, from GNU gettext.
45423         * lib/relocwrapper.c: New file, from GNU gettext.
45424         * m4/relocatable.m4: New file, from GNU gettext.
45425
45426 2007-02-28  Bruno Haible  <bruno@clisp.org>
45427
45428         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45429
45430         * modules/xreadlink: New file, from GNU gettext with modifications.
45431         * lib/xreadlink.c: New file, from GNU gettext.
45432         * lib/xreadlink.h: Add comments.
45433         (xreadlink): New declaration.
45434
45435         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45436         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45437         lib/xreadlink-with-size.c.
45438         (configure.ac): Remove gl_XREADLINK invocation.
45439         (Makefile.am): Augment lib_SOURCES.
45440         * m4/xreadlink.m4: Remove file.
45441         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45442         (xreadlink_with_size): Renamed from xreadink.
45443         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45444         * modules/canonicalize (Depends-on): Replace xreadlink with
45445         xreadlink-with-size.
45446         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45447
45448 2007-02-25  Jim Meyering  <jim@meyering.net>
45449
45450         * build-aux/announce-gen: When complaining about excess arguments,
45451         list them.
45452
45453 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45454
45455         * README: Document signed integer overflow situation more
45456         accurately.
45457
45458 2007-02-25  Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45461         'a' or 'A' conversion.
45462
45463 2007-02-25  Bruno Haible  <bruno@clisp.org>
45464
45465         * modules/filename: Renamed from modules/pathname.
45466         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45467         lib/concatpath.c with lib/concat-filename.c.
45468         (Makefile.am): Update.
45469         (Include): Replace pathname.h with filename.h.
45470         * lib/filename.h: Renamed from lib/pathname.h.
45471         (concatenated_filename): Renamed from concatenated_pathname.
45472         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45473         (concatenated_filename): Renamed from concatenated_pathname.
45474         * lib/findprog.c: Include filename.h instead of pathname.h.
45475         (find_in_path): Update.
45476         * lib/javacomp.c: Include filename.h instead of pathname.h.
45477         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45478         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45479         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45480         is_oldgcj_14_13_usable, is_javac_usable): Update.
45481         * lib/javaexec.c: Include filename.h instead of pathname.h.
45482         (execute_java_class): Update.
45483         * modules/findprog: Update.
45484         * modules/javacomp: Update.
45485         * modules/javaexec: Update.
45486         * MODULES.html.sh (File system functions): Add 'filename', remove
45487         'pathname'.
45488
45489 2007-02-25  Bruno Haible  <bruno@clisp.org>
45490
45491         * modules/printf-frexpl-tests: New file.
45492         * tests/test-printf-frexpl.c: New file.
45493
45494         * modules/printf-frexpl: New file.
45495         * lib/printf-frexpl.h: New file.
45496         * lib/printf-frexpl.c: New file.
45497         * m4/printf-frexpl.m4: New file.
45498
45499 2007-02-25  Bruno Haible  <bruno@clisp.org>
45500
45501         * modules/printf-frexp-tests: New file.
45502         * tests/test-printf-frexp.c: New file.
45503
45504         * modules/printf-frexp: New file.
45505         * lib/printf-frexp.h: New file.
45506         * lib/printf-frexp.c: New file.
45507         * m4/printf-frexp.m4: New file.
45508
45509 2007-02-25  Bruno Haible  <bruno@clisp.org>
45510
45511         Assume automake >= 1.10 for the tests.
45512         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45513         * modules/arctwo-tests: Likewise.
45514         * modules/argp-tests: Likewise.
45515         * modules/avltree-list-tests: Likewise.
45516         * modules/avltree-oset-tests: Likewise.
45517         * modules/avltreehash-list-tests: Likewise.
45518         * modules/carray-list-tests: Likewise.
45519         * modules/crc-tests: Likewise.
45520         * modules/des-tests: Likewise.
45521         * modules/gc-arcfour-tests: Likewise.
45522         * modules/gc-arctwo-tests: Likewise.
45523         * modules/gc-des-tests: Likewise.
45524         * modules/gc-hmac-md5-tests: Likewise.
45525         * modules/gc-hmac-sha1-tests: Likewise.
45526         * modules/gc-md2-tests: Likewise.
45527         * modules/gc-md4-tests: Likewise.
45528         * modules/gc-md5-tests: Likewise.
45529         * modules/gc-pbkdf2-sha1-tests: Likewise.
45530         * modules/gc-rijndael-tests: Likewise.
45531         * modules/gc-sha1-tests: Likewise.
45532         * modules/gc-tests: Likewise.
45533         * modules/getaddrinfo-tests: Likewise.
45534         * modules/hmac-md5-tests: Likewise.
45535         * modules/hmac-sha1-tests: Likewise.
45536         * modules/linked-list-tests: Likewise.
45537         * modules/linkedhash-list-tests: Likewise.
45538         * modules/lock-tests: Likewise.
45539         * modules/md2-tests: Likewise.
45540         * modules/md4-tests: Likewise.
45541         * modules/md5-tests: Likewise.
45542         * modules/rbtree-list-tests: Likewise.
45543         * modules/rbtree-oset-tests: Likewise.
45544         * modules/rbtreehash-list-tests: Likewise.
45545         * modules/read-file-tests: Likewise.
45546         * modules/rijndael-tests: Likewise.
45547         * modules/stdint-tests: Likewise.
45548         * modules/tls-tests: Likewise.
45549
45550 2007-02-24  Bruno Haible  <bruno@clisp.org>
45551
45552         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45553         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45554         function; instead check whether isnan with a double argument links.
45555         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45556         function; instead check whether isnan with a 'long double' argument
45557         links.
45558         Reported by Eric Blake <ebb9@byu.net>.
45559
45560 2007-02-24  Bruno Haible  <bruno@clisp.org>
45561
45562         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45563         defined.
45564         * lib/isnanl.c: Remove all code. Just include isnan.c.
45565         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45566
45567 2007-02-25  Jim Meyering  <jim@meyering.net>
45568
45569         Avoid conflicting types for 'unsetenv' on FreeBSD.
45570         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45571         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45572         in stdlib.h.
45573
45574 2007-02-24  Bruno Haible  <bruno@clisp.org>
45575
45576         * modules/isnanl-nolibm-tests: New file.
45577         * tests/test-isnanl.c: New file.
45578
45579         * modules/isnanl-nolibm: New file.
45580         * lib/isnanl.h: New file.
45581         * lib/isnanl.c: New file.
45582         * m4/isnanl.m4: New file.
45583
45584 2007-02-24  Bruno Haible  <bruno@clisp.org>
45585
45586         * modules/isnan-nolibm-tests: New file.
45587         * tests/test-isnan.c: New file.
45588
45589         * modules/isnan-nolibm: New file.
45590         * lib/isnan.h: New file.
45591         * lib/isnan.c: New file.
45592         * m4/isnan.m4: New file.
45593
45594 2007-02-24  Bruno Haible  <bruno@clisp.org>
45595
45596         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45597         assume that an exponent fits in 20 bits.
45598
45599 2007-02-24  Jim Meyering  <jim@meyering.net>
45600
45601         * m4/regex.m4: Update the description of the configure-time option,
45602         --without-included-regex, to state accurately what the defaults are,
45603         and perhaps to give people an idea why using this option is risky.
45604
45605 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45606
45607         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45608         loops on small arguments.  This attempts to avoid the problem
45609         Bruno Haible reported for AIX 4.3.2 in
45610         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45611
45612 2007-02-23  Bruno Haible  <bruno@clisp.org>
45613
45614         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45615         Needed for help2man.
45616
45617 2007-02-23  Karl Berry  <karl@gnu.org>
45618
45619         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45620         exists, foo.h should be cvs-ignored, not committed.
45621
45622 2007-02-23  Eric Blake  <ebb9@byu.net>
45623
45624         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45625         * lib/stat-time.h (includes): Likewise.
45626         * lib/utimecmp.c (includes): Likewise.
45627         * lib/utimens.h (includes): Likewise.
45628         * lib/getdate.y (includes): Also include "timespec.h" for use
45629         internal to the module.
45630         * modules/utimens (Depends-on): Revert yesterday's patch.
45631         * modules/nanosleep (Depends-on): Add missing dependency.
45632
45633 2007-02-22  Bruno Haible  <bruno@clisp.org>
45634
45635         * lib/glob.c: Don't include getlogin_r.h.
45636
45637 2007-02-22  Jim Meyering  <jim@meyering.net>
45638
45639         * modules/utimens (Depends-on): Add timespec, required for
45640         utimens.h's inclusion of timespec.h.
45641
45642 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45643
45644         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45645         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45646         Schwab in
45647         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45648         I'll try to think of a better way to fix the Solaris problem.
45649
45650         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45651         like glibc; on Solaris 10, it fails with errno == EINVAL.
45652         POSIX says the behavior is unspecified if the first argument is NULL,
45653         so play it safe and never pass NULL to the system getcwd.
45654
45655 2007-02-21  Jim Meyering  <jim@meyering.net>
45656
45657         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45658         of gettimeofday.  It would conflict with the one now always
45659         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45660         an IRIX 6.5 build failure.
45661
45662 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45663
45664         Minor fixups to port to Solaris 10 with Sun C 5.8.
45665         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45666         * modules/getcwd (Depends-on): Add dirfd.
45667         * lib/putenv.c (putenv): #undef it.
45668         (rpl_putenv): New decl.
45669         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45670
45671 2007-02-20  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/stdio-tests: New file.
45674         * tests/test-stdio.c: New file.
45675
45676         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45677         (Depends-on): Add stdio.
45678         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45679         (Include): Use <stdio.h> instead of vsnprintf.h.
45680         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45681         HAVE_DECL_VSNPRINTF.
45682         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45683
45684         * modules/snprintf (Files): Remove lib/snprintf.h.
45685         (Depends-on): Add stdio.
45686         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45687         (Include): Use <stdio.h> instead of snprintf.h.
45688         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45689         HAVE_DECL_SNPRINTF.
45690         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45691         * lib/getaddrinfo.c: Likewise.
45692
45693         * modules/stdio: New file.
45694         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45695         * lib/snprintf.h: Remove file.
45696         * lib/vsnprintf.h: Remove file.
45697         * lib/.cppi-disable: Remove snprintf.h.
45698         * m4/stdio_h.m4: New file.
45699         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45700
45701 2007-02-20  Jim Meyering  <jim@meyering.net>
45702
45703         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45704         used by e.g., mingw.  From Bruno Haible.
45705
45706 2007-02-19  Bruno Haible  <bruno@clisp.org>
45707
45708         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45709         warnings.
45710         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45711
45712 2007-02-19  Bruno Haible  <bruno@clisp.org>
45713
45714         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45715         from mingw users.
45716
45717 2007-02-19  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45720         warnings.
45721         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45722
45723 2007-02-19  Jim Meyering  <jim@meyering.net>
45724
45725         Don't use FD after a successful "fdopendir (fd)".
45726         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45727         Reset it by calling dirfd on the just-obtained DIR*.
45728
45729         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45730         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45731
45732 2007-02-18  Bruno Haible  <bruno@clisp.org>
45733
45734         * lib/readlink.c: Include <unistd.h>.
45735         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45736         HAVE_READLINK.
45737         * modules/readlink (Depends-on): Add unistd.
45738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45739         (Include): Add <unistd.h>.
45740
45741         * lib/getlogin_r.h: Remove file.
45742         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45743         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45744         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45745         HAVE_DECL_GETLOGIN_R.
45746         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45748         (Include): Use <unistd.h> instead of getlogin_r.h.
45749
45750         * lib/getcwd.h: Remove file.
45751         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45752         * lib/xgetcwd.c: Likewise.
45753         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45754         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45755         * modules/getcwd (Files): Remove lib/getcwd.h.
45756         (Depends-on): Add unistd.
45757         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45758         (Include): Use <unistd.h> instad of getcwd.h.
45759
45760         * lib/ftruncate.c: Include <unistd.h> first.
45761         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45762         Set HAVE_FTRUNCATE.
45763         * modules/ftruncate (Depends-on): Add unistd.
45764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45765
45766         * lib/fchdir.c: Include <unistd.h> first.
45767         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45769         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45770         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45771         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45772
45773         * lib/dup2.c: Include <unistd.h> first.
45774         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45775         HAVE_DUP2.
45776         * modules/dup2 (Depends-on): Add unistd.
45777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45778
45779         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45780         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45781         REPLACE_CHOWN. Don't define chown as a macro here.
45782         * modules/chown (Depends-on): Add unistd.
45783         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45784
45785         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45786         Add definition for GL_LINK_WARNING.
45787         (chown, dup2): New declarations.
45788         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45789         link warning.
45790         (ftruncate): New declaration.
45791         (getcwd): New declaration, taken from old getcwd.h.
45792         (getlogin_r): New declaration, taken from old getlogin_r.h.
45793         (readlink): New declaration.
45794         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45795         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45796         (gl_PREREQ_UNISTD): Remove macro.
45797         (gl_UNISTD_MODULE_INDICATOR): New macro.
45798         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45799         many new variables. Don't set UNISTD_H.
45800         * modules/unistd (Description): Change.
45801         (Depends-on): Add link-warning.
45802         (configure.ac): Update.
45803         (Makefile.am): Create unistd.h always. Substitute many new variables
45804         into it.
45805
45806 2007-02-18  Bruno Haible  <bruno@clisp.org>
45807
45808         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45809         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45810         HAVE_GETSUBOPT.
45811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45812         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45813         * lib/getsubopt.h: Remove file.
45814         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45815         (Depends-on): Add stdlib.
45816         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45817         (Includes): Use <stdlib.h> instead of getsubopt.h.
45818         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45819         Set HAVE_GETSUBOPT.
45820         * lib/getsubopt.c: Don't include getsubopt.h.
45821
45822 2007-02-18  Bruno Haible  <bruno@clisp.org>
45823
45824         * modules/fchdir (Depends-on): Add dup2.
45825
45826 2007-02-18  Bruno Haible  <bruno@clisp.org>
45827
45828         * lib/stdlib_.h: Handle glibc's special invocation convention
45829         specially.
45830
45831 2007-02-18  Bruno Haible  <bruno@clisp.org>
45832
45833         * modules/stdlib-tests: New file.
45834         * tests/test-stdlib.c: New file.
45835
45836         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45837         (Depends-on): Add stdlib.
45838         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45839         (Includes): Use <stdlib.h> instead of mkstemp.h.
45840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45841         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45842         * lib/mkstemp.c: Don't include mkstemp.h.
45843         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45844         * lib/stdlib--.h: Don't include mkstemp.h.
45845
45846         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45847         (Depends-on): Add stdlib.
45848         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45849         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45850         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45851         HAVE_MKDTEMP.
45852         * lib/mkdtemp.c: Don't include mkdtemp.h.
45853         * lib/clean-temp.c: Don't include mkdtemp.h.
45854
45855         * modules/exit (Files): Remove lib/exit.h.
45856         (Depends-on): Add stdlib.
45857         (Makefile.am): Remove lib_SOURCES.
45858         (Include): Use <stdlib.h> instead of exit.h.
45859         * lib/argmatch.c: Don't include exit.h.
45860         * lib/execute.c: Likewise.
45861         * lib/pagealign_alloc.c: Likewise.
45862         * lib/pipe.c: Likewise.
45863         * lib/wait-process.c: Likewise.
45864         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45865         * lib/exitfail.c: Likewise.
45866         * lib/savewd.c: Likewise.
45867         * lib/xsetenv.c: Likewise.
45868
45869         * modules/stdlib: New file.
45870         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45871         and extra comments about mkstemp().
45872         * lib/exit.h: Remove file.
45873         * lib/mkdtemp.h: Remove file.
45874         * lib/mkstemp.h: Remove file.
45875         * m4/stdlib_h.m4: New file.
45876         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45877
45878 2007-02-18  Bruno Haible  <bruno@clisp.org>
45879
45880         * modules/math-tests: New file.
45881         * tests/test-math.c: New file.
45882
45883         * modules/math: New file.
45884         * modules/mathl (Files): Remove lib/mathl.h.
45885         (Depends-on): Add math.
45886         (Makefile.am): Don't mention mathl.h.
45887         (Include): Use <math.h> instead of mathl.h.
45888         * lib/math_.h: New file.
45889         * lib/mathl.h: Remove file.
45890         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45891         mathl.h.
45892         * lib/asinl.c: Likewise.
45893         * lib/atanl.c: Likewise.
45894         * lib/ceill.c: Likewise.
45895         * lib/cosl.c: Likewise.
45896         * lib/expl.c: Likewise.
45897         * lib/floorl.c: Likewise.
45898         * lib/frexpl.c: Likewise.
45899         * lib/ldexpl.c: Likewise.
45900         * lib/logl.c: Likewise.
45901         * lib/sincosl.c: Likewise.
45902         * lib/sinl.c: Likewise.
45903         * lib/sqrtl.c: Likewise.
45904         * lib/tanl.c: Likewise.
45905         * lib/trigl.c: Likewise.
45906         * m4/math_h.m4: New file.
45907         * MODULES.html.sh (Mathematics): Add math.
45908
45909 2007-02-17  Bruno Haible  <bruno@clisp.org>
45910
45911         * modules/wctype-tests: New file.
45912         * tests/test-wctype.c: New file.
45913
45914         * modules/wchar-tests: New file.
45915         * tests/test-wchar.c: New file.
45916
45917         * modules/unistd-tests: New file.
45918         * tests/test-unistd.c: New file.
45919
45920         * modules/time-tests: New file.
45921         * tests/test-time.c: New file.
45922
45923         * modules/sysexits-tests: New file.
45924         * tests/test-sysexits.c: New file.
45925
45926         * modules/sys_time-tests: New file.
45927         * tests/test-sys_time.c: New file.
45928
45929         * modules/sys_stat-tests: New file.
45930         * tests/test-sys_stat.c: New file.
45931
45932         * modules/sys_socket-tests: New file.
45933         * tests/test-sys_socket.c: New file.
45934
45935         * modules/sys_select-tests: New file.
45936         * tests/test-sys_select.c: New file.
45937
45938         * modules/string-tests: New file.
45939         * tests/test-string.c: New file.
45940
45941         * modules/stdbool-tests: New file.
45942         * tests/test-stdbool.c: New file.
45943
45944         * modules/netinet_in-tests: New file.
45945         * tests/test-netinet_in.c: New file.
45946
45947         * modules/inttypes-tests: New file.
45948         * tests/test-inttypes.c: New file.
45949
45950         * modules/fcntl-tests: New file.
45951         * tests/test-fcntl.c: New file.
45952
45953         * modules/byteswap-tests: New file.
45954         * tests/test-byteswap.c: New file.
45955
45956         * modules/arpa_inet-tests: New file.
45957         * tests/test-arpa_inet.c: New file.
45958
45959 2007-02-17  Bruno Haible  <bruno@clisp.org>
45960
45961         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45962         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45963         if the corresponding module is not enabled. Emit link warnings if
45964         the function is used nevertheless.
45965         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45966         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45967         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45968         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45969         * modules/inttypes (Depends-on): Add link-warning.
45970         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45971         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45972         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45973         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45974         * modules/imaxdiv (configure.ac): Likewise.
45975         * modules/strtoimax (configure.ac): Likewise.
45976         * modules/strtoumax (configure.ac): Likewise.
45977
45978 2007-02-17  Bruno Haible  <bruno@clisp.org>
45979
45980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
45981         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45982         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45983         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45984
45985 2007-02-17  Bruno Haible  <bruno@clisp.org>
45986
45987         * modules/link-warning: New file.
45988         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45989         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45990         * modules/string (Depends-on): Add link-warning.
45991         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45992         string.h.
45993         * MODULES.html.sh (Support for building libraries and executables): Add
45994         link-warning.
45995
45996 2007-02-17  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45999         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
46000         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
46001         long lines.
46002
46003 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
46004             Bruno Haible  <bruno@clisp.org>
46005
46006         * modules/tmpfile: New file.
46007         * lib/tmpfile.c: New file.
46008         * m4/tmpfile.m4: New file.
46009         * MODULES.html.sh (func_all_modules): New section "Input/output".
46010
46011 2007-02-15  Bruno Haible  <bruno@clisp.org>
46012
46013         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
46014         (supports_delete_on_close): New function.
46015         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
46016
46017 2007-02-14  Bruno Haible  <bruno@clisp.org>
46018
46019         * modules/mbspcasecmp-tests: New file.
46020         * tests/test-mbspcasecmp.sh: New file.
46021         * tests/test-mbspcasecmp.c: New file.
46022
46023         New module mbspcasecmp.
46024         * modules/mbspcasecmp: New file.
46025         * lib/mbspcasecmp.c: New file.
46026         * lib/string_.h (strncasecmp): Change warning message.
46027         (mbspcasecmp): New declaration.
46028         * m4/mbspcasecmp.m4: New file.
46029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46030         GNULIB_MBSPCASECMP.
46031         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
46032         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
46033
46034 2007-02-14  Bruno Haible  <bruno@clisp.org>
46035
46036         * modules/mbsncasecmp-tests: New file.
46037         * tests/test-mbsncasecmp.sh: New file.
46038         * tests/test-mbsncasecmp.c: New file.
46039
46040         New module mbsncasecmp.
46041         * modules/mbsncasecmp: New file.
46042         * lib/mbsncasecmp.c: New file.
46043         * lib/string_.h (mbsncasecmp): New declaration.
46044         * m4/mbsncasecmp.m4: New file.
46045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46046         GNULIB_MBSNCASECMP.
46047         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
46048         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
46049
46050 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46051
46052         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
46053         Verify that it doesn't overlap with our flags.
46054         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
46055         do not have the desired effect in multibyte locales; instead, use
46056         mbscasecmp.
46057         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
46058         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
46059         we don't require GNU fnmatch ourselves (if our users require it, they
46060         should do so explicitly).
46061
46062         Fix regex code so it doesn't rely on strcasecmp.
46063         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
46064         Otherwise, include gnulib's langinfo.h.
46065         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
46066         undesirable behavior in non-C locales.  Instead, rely on localecharset.
46067         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
46068         * modules/regex (FILES): Remove m4/codeset.m4.
46069         (Depends-on): Add localcharset.  Remove strcase.
46070
46071 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46072
46073         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
46074         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46075
46076 2007-02-13  Bruno Haible  <bruno@clisp.org>
46077
46078         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46080
46081 2007-02-12  Bruno Haible  <bruno@clisp.org>
46082
46083         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46084         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46085         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46086         time warning rather than a link error.
46087
46088 2007-02-12  Bruno Haible  <bruno@clisp.org>
46089
46090         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46091         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46093
46094 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46095
46096         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46097         args, not 2.
46098
46099 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46100
46101         New module 'time', so that apps can include <time.h> as per
46102         POSIX and GNU instead of separate include files like time_r.h
46103         and timegm.h.  This implementation tries out a simpler approach
46104         for replacing decls in standard include files (as compared to
46105         the string module), somewhat as an experiment.
46106
46107         * config/srclist.txt: Comment out mktime.c for now.
46108         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46109         since it doesn't apply any more.  Use generic wording instead.
46110         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46111         'time'.
46112         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46113         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46114         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46115         Don't include <sys/types.h>; no longer needed since we assume C89.
46116         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46117         * lib/strftime.c: Likewise.
46118         * lib/time_r.c: Likewise.
46119         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46120         * lib/nanosleep.c: Include <time.h> first, to check interface.
46121         * lib/strptime.c: Likewise.
46122         * lib/time_r.c: Likewise.
46123         * lib/timegm.c: Likewise.
46124         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46125         needed.
46126         * lib/timegm.c: Don't include timegm.h; no longer needed.
46127         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46128         time.h now handles any problems in that area.
46129         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46130         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46131         that time.h defines struct timespec.
46132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46133         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46134         handles that.
46135         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46136         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46137         needed.  Set REPLACE_LOCALTIME.
46138         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46139         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46140         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46141         nanosleep; time_h.m4 now does that.  Don't require
46142         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46143         module handles this now.
46144         * modules/getdate (Depends-on): Remove timespec.  Add time.
46145         * modules/nanosleep (Depends-on): Likewise.
46146         * modules/stat-time (Depends-on): Likewise.
46147         * modules/nanosleep (Include): Include time.h, not timespec.h.
46148         * modules/strptime (Files): Remove lib/strptime.h.
46149         (Depends-on): Add extensions, time.
46150         (Include): Include time.h, not strptime.h.
46151         * modules/time_r (Files): Remove lib/time_r.h.
46152         (Depends-on): Add time.
46153         (Include): Include time.h, not time_r.h.
46154         * modules/timegm: Likewise.
46155         * modules/timespec (Description): Now does timespec-related decls
46156         of our own, instead of struct timespec itself.
46157         (Depends-on): Add time; remove extensions.
46158         (Maintainer): Add self.
46159         * modules/utimecmp (Depends-on): Add time; remove timespec.
46160         * modules/utimens (Depends-on): Likewise.
46161         * modules/xnanosleep (Depends-on): Likewise.
46162
46163 2007-02-11  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/c-strstr.c: Include allocsa.h.
46166         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46167         * lib/c-strcasestr.c: Include allocsa.h.
46168         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46169         * lib/strcasestr.c: Include allocsa.h.
46170         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46171         * lib/mbsstr.c: Include allocsa.h.
46172         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46173         allocsa/freesa instead of malloc/free.
46174         * lib/mbscasestr.c: Include allocsa.h.
46175         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46176         allocsa/freesa instead of malloc/free.
46177         * modules/c-strstr (Depends-on): Add allocsa.
46178         * modules/c-strcasestr (Depends-on): Likewise.
46179         * modules/strcasestr (Depends-on): Likewise.
46180         * modules/mbsstr (Depends-on): Likewise.
46181         * modules/mbscasestr (Depends-on): Likewise.
46182
46183 2007-02-11  Bruno Haible  <bruno@clisp.org>
46184
46185         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46186
46187         * modules/mbsspn-tests: New file.
46188         * tests/test-mbsspn.sh: New file.
46189         * tests/test-mbsspn.c: New file.
46190
46191 2007-02-11  Bruno Haible  <bruno@clisp.org>
46192
46193         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46194
46195         * modules/mbspbrk-tests: New file.
46196         * tests/test-mbspbrk.sh: New file.
46197         * tests/test-mbspbrk.c: New file.
46198
46199 2007-02-11  Bruno Haible  <bruno@clisp.org>
46200
46201         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46202         unneeded cast.
46203
46204         * modules/mbscspn-tests: New file.
46205         * tests/test-mbscspn.sh: New file.
46206         * tests/test-mbscspn.c: New file.
46207
46208 2007-02-11  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/mbscasecmp-tests: New file.
46211         * tests/test-mbscasecmp.sh: New file.
46212         * tests/test-mbscasecmp.c: New file.
46213
46214 2007-02-11  Bruno Haible  <bruno@clisp.org>
46215
46216         Ensure O(n) worst-case complexity of mbscasestr.
46217         * lib/mbscasestr.c: Include stdbool.h.
46218         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46219         functions.
46220         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46221         the bookkeeping indicates that it's worth it.
46222         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46223
46224         * modules/mbscasestr-tests: New file.
46225         * tests/test-mbscasestr1.c: New file.
46226         * tests/test-mbscasestr2.sh: New file.
46227         * tests/test-mbscasestr2.c: New file.
46228         * tests/test-mbscasestr3.sh: New file.
46229         * tests/test-mbscasestr3.c: New file.
46230         * tests/test-mbscasestr4.sh: New file.
46231         * tests/test-mbscasestr4.c: New file.
46232         * m4/locale-tr.m4: New file.
46233
46234 2007-02-11  Bruno Haible  <bruno@clisp.org>
46235
46236         Ensure O(n) worst-case complexity of mbsstr.
46237         * lib/mbsstr.c: Include stdbool.h.
46238         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46239         functions.
46240         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46241         bookkeeping indicates that it's worth it.
46242         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46243
46244         * modules/mbsstr-tests: New file.
46245         * tests/test-mbsstr1.c: New file.
46246         * tests/test-mbsstr2.sh: New file.
46247         * tests/test-mbsstr2.c: New file.
46248         * tests/test-mbsstr3.sh: New file.
46249         * tests/test-mbsstr3.c: New file.
46250         * m4/locale-fr.m4: New file.
46251
46252 2007-02-11  Bruno Haible  <bruno@clisp.org>
46253
46254         * lib/mbsrchr.c (mbsrchr): Fix bug.
46255
46256         * modules/mbsrchr-tests: New file.
46257         * tests/test-mbsrchr.sh: New file.
46258         * tests/test-mbsrchr.c: New file.
46259
46260 2007-02-11  Bruno Haible  <bruno@clisp.org>
46261
46262         * lib/mbschr.c (mbschr): Fix bug.
46263
46264         * modules/mbschr-tests: New file.
46265         * tests/test-mbschr.sh: New file.
46266         * tests/test-mbschr.c: New file.
46267         * m4/locale-zh.m4: New file.
46268
46269 2007-02-11  Bruno Haible  <bruno@clisp.org>
46270
46271         Support for copying multibyte string iterators.
46272         * lib/mbiter.h: Include <string.h>.
46273         (mbiter_multi_copy): New function.
46274         (mbi_copy): New macro.
46275         * lib/mbuiter.h: Include <string.h>.
46276         (mbuiter_multi_copy): New function.
46277         (mbui_copy): New macro.
46278
46279 2007-02-11  Bruno Haible  <bruno@clisp.org>
46280
46281         New module mbslen.
46282         * modules/mbslen: New file.
46283         * lib/mbslen.c: New file.
46284         * lib/string_.h (mbslen): New declaration.
46285         * m4/mbslen.m4: New file.
46286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46287         GNULIB_MBSLEN.
46288         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46289         * MODULES.html.sh (Internationalization functions): Add mbslen.
46290
46291 2007-02-11  Bruno Haible  <bruno@clisp.org>
46292
46293         Ensure O(n) worst-case complexity of strcasestr substitute.
46294         * lib/strcasestr.c: Include stdbool.h.
46295         (knuth_morris_pratt): New function.
46296         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46297         bookkeeping indicates that it's worth it.
46298         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46299
46300         * modules/strcasestr-tests: New file.
46301         * tests/test-strcasestr.c: New file.
46302
46303 2007-02-11  Bruno Haible  <bruno@clisp.org>
46304
46305         Ensure O(n) worst-case complexity of c_strcasestr.
46306         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46307         (knuth_morris_pratt): New function.
46308         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46309         the bookkeeping indicates that it's worth it.
46310         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46311
46312         * modules/c-strcasestr-tests: New file.
46313         * tests/test-c-strcasestr.c: New file.
46314
46315 2007-02-11  Bruno Haible  <bruno@clisp.org>
46316
46317         Ensure O(n) worst-case complexity of c_strstr.
46318         * lib/c-strstr.c: Include stdbool.h, string.h.
46319         (knuth_morris_pratt): New function.
46320         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46321         bookkeeping indicates that it's worth it.
46322         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46323
46324         * lib/c-strstr.c: Complete rewrite for maintainability.
46325
46326         * modules/c-strstr-tests: New file.
46327         * tests/test-c-strstr.c: New file.
46328
46329 2007-02-11  Bruno Haible  <bruno@clisp.org>
46330
46331         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46332         5.2.1 and earlier, whereby \055 was treated just like the range
46333         delimiter '-'.
46334         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46335
46336 2007-02-08  Bruno Haible  <bruno@clisp.org>
46337
46338         * modules/regex (Depends-on): Add stdbool.
46339         Reported by Dalibor Topic <robilad@kaffe.org>.
46340
46341 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46342
46343         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46344         Prefer returning from main to exiting from it.
46345         Remove unnecessary parens after sizeof.
46346
46347 2007-02-05  Bruno Haible  <bruno@clisp.org>
46348
46349         New module mbssep.
46350         * modules/mbssep: New file.
46351         * lib/mbssep.c: New file.
46352         * lib/string_.h (strsep): Add a conditional link warning.
46353         (mbssep): New declaration.
46354         * m4/mbssep.m4: New file.
46355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46356         GNULIB_MBSSEP.
46357         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46358         * MODULES.html.sh (Internationalization functions): Add mbssep.
46359
46360 2007-02-05  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46363         Optimize search in case of 1 delimiter.
46364
46365 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46366
46367         * lib/acl.h: Include sys/types.h before sys/acl.h.
46368
46369 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46370
46371         Merge upstream fix for glibc bugzilla #3957:
46372
46373         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46374
46375         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46376         bit for RE_HAT_LISTS_NOT_NEWLINE.
46377         (build_charclass_op): Remove bogus comment.
46378
46379 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46380
46381         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46382
46383 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46384
46385         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46386         * lib/memmem.c [!defined _LIBC]: Include config.h.
46387
46388 2007-02-04  Bruno Haible  <bruno@clisp.org>
46389
46390         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46391         warning message.
46392
46393 2007-02-04  Bruno Haible  <bruno@clisp.org>
46394
46395         New module mbstok_r.
46396         * modules/mbstok_r: New file.
46397         * lib/mbstok_r.c: New file.
46398         * lib/string_.h (strtok_r): Change argument names to match the
46399         comments. Add a conditional link warning.
46400         (mbstok_r): New declaration.
46401         * m4/mbstok_r.m4: New file.
46402         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46403         GNULIB_MBSTOK_R.
46404         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46405         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46406
46407 2007-02-04  Bruno Haible  <bruno@clisp.org>
46408
46409         New module mbsspn.
46410         * modules/mbsspn: New file.
46411         * lib/mbsspn.c: New file.
46412         * lib/string_.h (strspn): Add a conditional link warning.
46413         (mbsspn): New declaration.
46414         * m4/mbsspn.m4: New file.
46415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46416         GNULIB_MBSSPN.
46417         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46418         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46419
46420 2007-02-04  Bruno Haible  <bruno@clisp.org>
46421
46422         New module mbspbrk.
46423         * modules/mbspbrk: New file.
46424         * lib/mbspbrk.c: New file.
46425         * lib/string_.h (strpbrk): Add a conditional link warning.
46426         (mbspbrk): New declaration.
46427         * m4/mbspbrk.m4: New file.
46428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46429         GNULIB_MBSPBRK.
46430         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46431         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46432
46433 2007-02-04  Bruno Haible  <bruno@clisp.org>
46434
46435         New module mbscspn.
46436         * modules/mbscspn: New file.
46437         * lib/mbscspn.c: New file.
46438         * lib/string_.h (strcspn): Add a conditional link warning.
46439         (mbscspn): New declaration.
46440         * m4/mbscspn.m4: New file.
46441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46442         GNULIB_MBSCSPN.
46443         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46444         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46445
46446 2007-02-04  Bruno Haible  <bruno@clisp.org>
46447
46448         New module mbscasestr, reduced goal of strcasestr.
46449         * modules/mbscasestr: New file.
46450         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46451         (mbscasestr): Renamed from strcasestr.
46452         * lib/strcasestr.c: Don't include mbuiter.h.
46453         (strcasestr): Remove support for multibyte locales.
46454         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46455         Change the conditional link warning.
46456         (mbscasestr): New declaration.
46457         * m4/mbscasestr.m4: New file.
46458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46459         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46460         REPLACE_STRCASESTR.
46461         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46463         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46464         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46465         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46466         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46467         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46468         (Depends-on): Remove mbuiter.
46469         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46470
46471 2007-02-04  Bruno Haible  <bruno@clisp.org>
46472
46473         Simplify handling of strncasecmp.
46474         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46475         the conditional link warning.
46476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46477         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46478         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46479         * modules/strcase (configure.ac): Don't invoke
46480         gl_STRING_MODULE_INDICATOR.
46481         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46482
46483 2007-02-04  Bruno Haible  <bruno@clisp.org>
46484
46485         New module mbscasecmp, reduced goal of strcasecmp.
46486         * modules/mbscasecmp: New file.
46487         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46488         (mbscasecmp): Renamed from strcasecmp.
46489         * lib/strcasecmp.c: Don't include mbuiter.h.
46490         (strcasecmp): Remove support for multibyte locales.
46491         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46492         Change the conditional link warning.
46493         (mbscasecmp): New declaration.
46494         * m4/mbscasecmp.m4: New file.
46495         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46496         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46497         REPLACE_STRCASECMP.
46498         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46499         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46500         GNULIB_MBSCASECMP.
46501         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46502         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46503         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46504         (Depends-on): Remove mbuiter.
46505         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46506
46507 2007-02-04  Bruno Haible  <bruno@clisp.org>
46508
46509         New module mbsstr. Remove module strstr.
46510         * modules/mbsstr: New file.
46511         * modules/strstr: Remove file.
46512         * lib/mbsstr.c: Renamed from lib/strstr.c.
46513         (mbsstr): Renamed from strstr.
46514         * lib/string_.h (strstr): Remove declaration. Change the conditional
46515         link warning.
46516         (mbsstr): New declaration.
46517         * m4/mbsstr.m4: New file.
46518         * m4/strstr.m4: Remove file.
46519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46520         REPLACE_STRSTR.
46521         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46522         Don't initialize GNULIB_STRSTR.
46523         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46524         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46525         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46526         (Support for systems lacking ANSI C 89): Remove strstr.
46527
46528 2007-02-04  Bruno Haible  <bruno@clisp.org>
46529
46530         New module mbsrchr.
46531         * modules/mbsrchr: New file.
46532         * lib/mbsrchr.c: New file.
46533         * lib/string_.h (strrchr): Add a conditional link warning.
46534         (mbsrchr): New declaration.
46535         * m4/mbsrchr.m4: New file.
46536         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46537         GNULIB_MBSRCHR.
46538         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46539         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46540
46541 2007-02-04  Bruno Haible  <bruno@clisp.org>
46542
46543         New module mbschr.
46544         * modules/mbschr: New file.
46545         * lib/mbschr.c: New file.
46546         * lib/string_.h (strchr): Add a conditional link warning.
46547         (mbschr): New declaration.
46548         * m4/mbschr.m4: New file.
46549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46550         GNULIB_MBSCHR.
46551         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46552         * MODULES.html.sh (Internationalization functions): Add mbschr.
46553
46554 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46555
46556         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46557
46558         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46559
46560 2007-02-04  Bruno Haible  <bruno@clisp.org>
46561
46562         New module description section 'configure.ac-early'.
46563         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46564         (func_get_autoconf_early_snippet): New function.
46565         (func_import, func_create_testdir): Use it. Remove special cases for
46566         modules 'extensions' and 'lock'.
46567         * modules/extensions (configure.ac-early): Require
46568         gl_USE_SYSTEM_EXTENSIONS.
46569         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46570
46571 2007-02-04  Bruno Haible  <bruno@clisp.org>
46572
46573         Make use of gcj-4.3's -fsource and -ftarget option.
46574         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46575         and if so try the options -fsource and -ftarget.
46576         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46577         source_version, ftarget_option, target_version arguments.
46578         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46579         (is_envjavac_oldgcj_14_14_usable): Renamed from
46580         is_envjavac_gcj_14_14_usable.
46581         (is_envjavac_oldgcj_14_13_usable): Renamed from
46582         is_envjavac_gcj_14_13_usable.
46583         (is_gcj_present): Update.
46584         (is_gcj_43, is_gcj43_usable): New functions.
46585         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46586         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46587         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46588         try the options -fsource and -ftarget.
46589
46590 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46591
46592         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46593         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46594         larger value.
46595
46596 2007-02-03  Jim Meyering  <jim@meyering.net>
46597
46598         Give tools a better chance to allocate space for very large buffers.
46599         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46600
46601         Make pwd and readlink work also when run with an unreadable parent dir
46602         on systems with openat support.
46603         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46604         provided getcwd function, even when we have openat support.
46605         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46606
46607 2007-02-02  Bruno Haible  <bruno@clisp.org>
46608
46609         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46610         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46611         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46612         portability problems if one of these functions is only used on specific
46613         platforms.
46614         Reported by Paul Eggert.
46615
46616 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46617
46618         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46619         is causing more trouble than it's curing.
46620         * lib/regex_internal.h (__mempcpy): Remove.
46621         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46622         (and make the code a tad smaller to boot).
46623         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46624
46625 2007-02-02  Jim Meyering  <jim@meyering.net>
46626
46627         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46628         section, not in the Makefile.am: one.
46629
46630 2007-02-02  Eric Blake  <ebb9@byu.net>
46631
46632         * lib/strchrnul.c: Always include config.h first.
46633
46634         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46635         gnulib strstr is not necessary here.
46636
46637 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46638
46639         * m4/socklen.m4: Fix typo.
46640
46641 2007-02-02  Eric Blake  <ebb9@byu.net>
46642
46643         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46644         * modules/netinet_in (Makefile.am): Likewise.
46645
46646 2007-02-01  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/string_.h (GL_LINK_WARNING): New macro.
46649         (strcasecmp, strstr, strcasestr): If provided by the system,
46650         conditionally define as a macro that leads to a warning instead of to
46651         an error.
46652         (strncasecmp): Conditionally define as a macro that leads to a warning.
46653
46654 2007-02-01  Karl Berry  <karl@gnu.org>
46655
46656         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46657
46658 2007-02-01  Bruno Haible  <bruno@clisp.org>
46659
46660         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46661         renamings.
46662
46663 2007-02-01  Eric Blake  <ebb9@byu.net>
46664
46665         * modules/regex (Depends-on): Revert dependence on mempcpy.
46666         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46667         module's definition of mempcpy.
46668         Reported by Paul Eggert.
46669
46670 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46671
46672         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46673         the symbol XYZ before redefining it.  This fixes a problem with
46674         programs that don't use XYZ, when compiled on systems that define
46675         XYZ to something else.
46676
46677 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46680         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46681         writeable to group or other and (2) is intended to have a special
46682         mode bit that is set or cleared.  In such a case, the directory
46683         should be neither group- nor other-writeable until the special
46684         mode bits are right.
46685
46686 2007-01-31  Eric Blake  <ebb9@byu.net>
46687
46688         * modules/mountlist (Depends-on): Add strstr.
46689
46690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46691         bug.
46692         * modules/string (Makefile.am): Remove redundant replacement.
46693         * modules/regex (Depends-on): Add mempcpy.
46694
46695 2007-01-31  Bruno Haible  <bruno@clisp.org>
46696
46697         New module description field 'Link'.
46698         * gnulib-tool (func_usage): Document --extract-link-directive.
46699         (sed_extract_prog): Recognize 'Link' directive.
46700         (func_get_link_directive): New function.
46701         (func_import): Show summary of link directives.
46702         Handle --extract-link-directive option.
46703         * modules/acl (Link): New section.
46704         * modules/clock-time (Link): New section.
46705         * modules/euidaccess (Link): New section.
46706         * modules/gettext (Link): New section.
46707         * modules/iconv (Link): New section.
46708         * modules/lock (Link): New section.
46709         * modules/nanosleep (Link): New section.
46710         * modules/readline (Link): New section.
46711
46712 2007-01-27  Bruno Haible  <bruno@clisp.org>
46713
46714         Enforce the use of gnulib modules for unportable <string.h> functions.
46715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46716         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46717         (gl_HEADER_STRING_H_BODY): Require it.
46718         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46719         the symbol XYZ to one that gives a link error.
46720         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46721         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46722         * modules/mempcpy (configure.ac): Likewise.
46723         * modules/memrchr (configure.ac): Likewise.
46724         * modules/stpcpy (configure.ac): Likewise.
46725         * modules/stpncpy (configure.ac): Likewise.
46726         * modules/strcase (configure.ac): Likewise.
46727         * modules/strcasestr (configure.ac): Likewise.
46728         * modules/strchrnul (configure.ac): Likewise.
46729         * modules/strdup (configure.ac): Likewise.
46730         * modules/strndup (configure.ac): Likewise.
46731         * modules/strnlen (configure.ac): Likewise.
46732         * modules/strpbrk (configure.ac): Likewise.
46733         * modules/strsep (configure.ac): Likewise.
46734         * modules/strstr (configure.ac): Likewise.
46735         * modules/strtok_r (configure.ac): Likewise.
46736
46737 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46738
46739         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46740
46741 2007-01-30  Jim Meyering  <jim@meyering.net>
46742
46743         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46744
46745 2007-01-29  Bruno Haible  <bruno@clisp.org>
46746
46747         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46748         * lib/execute.c: Likewise.
46749         * lib/pipe.c: Likewise.
46750         * lib/printf-args.h: Likewise.
46751         * lib/printf-args.c: Likewise.
46752         * lib/printf-parse.c: Likewise.
46753         * lib/vasnprintf.c: Likewise.
46754
46755 2007-01-29  Eric Blake  <ebb9@byu.net>
46756
46757         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46758         declaration.
46759
46760 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46761
46762         * lib/strptime.h (strptime): Use 'restrict' for args where
46763         POSIX requires this.
46764         * lib/strptime.c (strptime): Likewise.
46765         Change license notice from LGPL to GPL, since gnulib-tool will
46766         change this as needed.
46767         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46768         defined.
46769         Include "strptime.h" first, to check interface.
46770         Do not #undef _LIBC and _NL_CURRENT.
46771         Do not include <stdlib.h>; no longer needed.
46772         Include "time_r.h" and declare ptime_locale_status
46773         only if _LIBC is not defined.
46774         (__P): Remove unused macro.
46775         (match_string): Bring back glibc version, but use it only if _LIBC
46776         is defined.
46777         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46778         Remove unnecessary assertion and abort() call.
46779         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46780         * m4/strptime.m4: Fix serial number comment.
46781         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46782         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46783         (Depends-on): Add time_r.
46784
46785 2007-01-29  Bruno Haible  <bruno@clisp.org>
46786
46787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46788         strptime.
46789         * modules/strptime (Depends-on): Add stdbool.
46790         * lib/strptime.h: Include <time.h> always. Add comments.
46791
46792 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46793
46794         * modules/strptime: New file.
46795         * lib/strptime.h: New file.
46796         * lib/strptime.c: New file.
46797         * m4/strptime.m4: New file.
46798
46799 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46800
46801         * MODULES.html.sh: New module mpsort.
46802         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46803
46804         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46805         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46806         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46807         All uses changed.
46808         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46809         All uses changed.
46810         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46811         to _Restrict_.
46812         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46813         the parameter matches the prototype.
46814
46815 2007-01-28  Jim Meyering  <jim@meyering.net>
46816
46817         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46818         sys/time.h here, reverting that part of the previous patch:
46819         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46820
46821 2007-01-28  Bruno Haible  <bruno@clisp.org>
46822
46823         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46824         value of $(SYS_TIME_H).
46825         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46826         remove it conditionally, too. [added by Jim Meyering]
46827         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46829         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46830         GETTIMEOFDAY_REPLACEMENT to 1.
46831
46832 2007-01-28  Bruno Haible  <bruno@clisp.org>
46833
46834         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46835         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46837         Set UNISTD_H instead of UNISTD_H2.
46838         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46839
46840 2007-01-28  Bruno Haible  <bruno@clisp.org>
46841
46842         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46843         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46844
46845 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46846
46847         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46848         (func_create_testdir): Ensure C locale for `grep' and `tr'
46849         character ranges.
46850         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46851         ACLOCAL_AMFLAGS parsing state machine.
46852
46853 2007-01-27  Bruno Haible  <bruno@clisp.org>
46854
46855         * modules/unistr/base: Update.
46856
46857 2007-01-27  Bruno Haible  <bruno@clisp.org>
46858
46859         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46860         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46861         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46862         modules/unistr/u32-mbtouc.
46863         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46864         * lib/unistr.h: Update.
46865         * lib/linebreak.c: Update.
46866         * modules/unistr/u32-mbtouc: Renamed from
46867         modules/unistr/u32-mbtouc-safe.
46868         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46869         * lib/unistr.h: Update.
46870         * lib/unistr/u32-to-u8.c: Update.
46871         * lib/unistr/u32-to-u16.c: Update.
46872
46873 2007-01-27  Bruno Haible  <bruno@clisp.org>
46874
46875         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46876         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46877         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46878         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46879         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46880         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46881         modules/unistr/u16-mbtouc.
46882         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46883         * lib/unistr.h: Update.
46884         * lib/linebreak.c: Update.
46885         * modules/linebreak: Update.
46886         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46887         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46888         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46889         * modules/unistr/u16-mbtouc: Renamed from
46890         modules/unistr/u16-mbtouc-safe.
46891         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46892         * lib/unistr.h: Update.
46893         * lib/unistr/u16-to-u8.c: Update.
46894         * modules/unistr/u16-to-u8: Update.
46895         * lib/unistr/u16-to-u32.c: Update.
46896         * modules/unistr/u16-to-u32: Update.
46897
46898 2007-01-27  Bruno Haible  <bruno@clisp.org>
46899
46900         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46901         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46902         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46903         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46904         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46905         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46906         modules/unistr/u8-mbtouc.
46907         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46908         * lib/unistr.h: Update.
46909         * lib/striconveh.c: Update.
46910         * modules/striconveh: Update.
46911         * lib/linebreak.c: Update.
46912         * modules/linebreak: Update.
46913         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46914         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46915         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46916         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46917         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46918         * lib/unistr.h: Update.
46919         * lib/striconveh.c: Update.
46920         * modules/striconveh: Update.
46921         * lib/unistr/u8-to-u16.c: Update.
46922         * modules/unistr/u8-to-u16: Update.
46923         * lib/unistr/u8-to-u32.c: Update.
46924         * modules/unistr/u8-to-u32: Update.
46925
46926 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46927
46928         Sync from Libtool.
46929         * lib/argz.c: Do not include strings.h nor memory.h, include
46930         string.h unconditionally.  Patch by Simon Josefsson.
46931
46932 2007-01-27  Bruno Haible  <bruno@clisp.org>
46933
46934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46935         from gl_HEADER_STRING_H_BODY.
46936         (gl_HEADER_STRING_H_BODY): Require it.
46937         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46938         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46939         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46940         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46942         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46944         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46945         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46946         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46947         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46948         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46949         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46950         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46951         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46952
46953 2007-01-27  Bruno Haible  <bruno@clisp.org>
46954
46955         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46956         check_PROGRAMS into noinst_PROGRAMS.
46957         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46958         check_PROGRAMS in this case.
46959         (func_import): Set for_test to false.
46960         (func_create_testdir): Set for_test to true.
46961
46962 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46963             Bruno Haible  <bruno@clisp.org>
46964
46965         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46966         (Depends-on): Add string.
46967         (Includes): Use <string.h> instead of strcasestr.h.
46968         * modules/string (Makefile.am): Also substitute the value of
46969         REPLACE_STRCASESTR.
46970         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46971         assume strcasestr is declared in <string.h> not <strings.h>. Also
46972         set REPLACE_STRCASESTR.
46973         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46974         REPLACE_STRCASESTR.
46975         * lib/strcasestr.h: Remove file.
46976         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
46977         * lib/string_.h (strcasestr): New declaration.
46978
46979 2007-01-27  Bruno Haible  <bruno@clisp.org>
46980
46981         * lib/string_.h: Use 'extern'.
46982
46983 2007-01-27  Jim Meyering  <jim@meyering.net>
46984
46985         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46986         of set-but-not-used local, "q".
46987
46988         * lib/mempcpy.c: Include <config.h> before <string.h>.
46989         This fixes a compilation error on HP-UX, due to the system's
46990         "restrict"-using mempcpy prototype.
46991
46992 2007-01-26  Bruno Haible  <bruno@clisp.org>
46993
46994         Small optimization.
46995         * lib/javacomp.c: Include c-strstr.h.
46996          (is_envjavac_gcj): Use c_strstr instead of strstr.
46997         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46998
46999 2007-01-26  Bruno Haible  <bruno@clisp.org>
47000
47001         * MODULES.html.sh (Unicode string functions): Add the new modules.
47002
47003         * modules/uniconv/u32-strconv-to-locale: New file.
47004         * lib/uniconv/u32-strconv-to-locale.c: New file.
47005
47006         * modules/uniconv/u16-strconv-to-locale: New file.
47007         * lib/uniconv/u16-strconv-to-locale.c: New file.
47008
47009         * modules/uniconv/u8-strconv-to-locale: New file.
47010         * lib/uniconv/u8-strconv-to-locale.c: New file.
47011
47012         * modules/uniconv/u32-strconv-from-locale: New file.
47013         * lib/uniconv/u32-strconv-from-locale.c: New file.
47014
47015         * modules/uniconv/u16-strconv-from-locale: New file.
47016         * lib/uniconv/u16-strconv-from-locale.c: New file.
47017
47018         * modules/uniconv/u8-strconv-from-locale: New file.
47019         * lib/uniconv/u8-strconv-from-locale.c: New file.
47020
47021         * modules/uniconv/u32-strconv-to-enc: New file.
47022         * lib/uniconv/u32-strconv-to-enc.c: New file.
47023         * modules/uniconv/u32-strconv-to-enc-tests: New file.
47024         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
47025
47026         * modules/uniconv/u16-strconv-to-enc: New file.
47027         * lib/uniconv/u16-strconv-to-enc.c: New file.
47028         * lib/uniconv/u-strconv-to-enc.h: New file.
47029         * modules/uniconv/u16-strconv-to-enc-tests: New file.
47030         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
47031
47032         * modules/uniconv/u8-strconv-to-enc: New file.
47033         * lib/uniconv/u8-strconv-to-enc.c: New file.
47034         * modules/uniconv/u8-strconv-to-enc-tests: New file.
47035         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
47036
47037         * modules/uniconv/u32-strconv-from-enc: New file.
47038         * lib/uniconv/u32-strconv-from-enc.c: New file.
47039         * modules/uniconv/u32-strconv-from-enc-tests: New file.
47040         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
47041
47042         * modules/uniconv/u16-strconv-from-enc: New file.
47043         * lib/uniconv/u16-strconv-from-enc.c: New file.
47044         * modules/uniconv/u16-strconv-from-enc-tests: New file.
47045         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
47046
47047         * modules/uniconv/u8-strconv-from-enc: New file.
47048         * lib/uniconv/u8-strconv-from-enc.c: New file.
47049         * lib/uniconv/u-strconv-from-enc.h: New file.
47050         * modules/uniconv/u8-strconv-from-enc-tests: New file.
47051         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
47052
47053         * modules/uniconv/u32-conv-from-enc: New file.
47054         * lib/uniconv/u32-conv-from-enc.c: New file.
47055         * modules/uniconv/u32-conv-from-enc-tests: New file.
47056         * tests/uniconv/test-u32-conv-from-enc.c: New file.
47057
47058         * modules/uniconv/u16-conv-from-enc: New file.
47059         * lib/uniconv/u16-conv-from-enc.c: New file.
47060         * lib/uniconv/u-conv-from-enc.h: New file.
47061         * modules/uniconv/u16-conv-from-enc-tests: New file.
47062         * tests/uniconv/test-u16-conv-from-enc.c: New file.
47063
47064         * modules/uniconv/u8-conv-from-enc: New file.
47065         * lib/uniconv/u8-conv-from-enc.c: New file.
47066         * modules/uniconv/u8-conv-from-enc-tests: New file.
47067         * tests/uniconv/test-u8-conv-from-enc.c: New file.
47068
47069         * modules/uniconv/base: New file.
47070         * lib/uniconv.h: New file.
47071
47072 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * doc/gnulib-tool.texi (Initial import): Update to match current
47075         behavior with strdup module.
47076         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47077         * lib/memmem.h: Remove; all uses removed.  This is now done
47078         by <string.h>.
47079         * lib/mempcpy.h: Likewise.
47080         * lib/memrchr.h: Likewise.
47081         * lib/stpcpy.h: Likewise.
47082         * lib/stpncpy.h: Likewise.
47083         * lib/strcase.h: Likewise.
47084         * lib/strchrnul.h: Likewise.
47085         * lib/strdup.h: Likewise.
47086         * lib/strndup.h: Likewise.
47087         * lib/strnlen.h: Likewise.
47088         * lib/strpbrk.h: Likewise.
47089         * lib/strsep.h: Likewise.
47090         * lib/strstr.h: Likewise.
47091         * lib/strtok_r.h: Likewise.
47092         * lib/string_.h: New file.
47093         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47094         Rely on <string.h> instead.
47095         * lib/canon-host.c: Likewise.
47096         * lib/chdir-long.c: Likewise.
47097         * lib/concatpath.c: Likewise.
47098         * lib/exclude.c: Likewise.
47099         * lib/fchdir.c: Likewise.
47100         * lib/getaddrinfo.c: Likewise.
47101         * lib/getcwd.c: Likewise.
47102         * lib/getsubopt.c: Likewise.
47103         * lib/glob.c: Likewise.
47104         * lib/hard-locale.c: Likewise.
47105         * lib/iconvme.c: Likewise.
47106         * lib/javacomp.c: Likewise.
47107         * lib/mempcpy.c: Likewise.
47108         * lib/memrchr.c: Likewise.
47109         * lib/regex_internal.h: Likewise.
47110         * lib/stpncpy.c: Likewise.
47111         * lib/strcasecmp.c: Likewise.
47112         * lib/strchrnul.c: Likewise.
47113         * lib/strdup.c: Likewise.
47114         * lib/striconv.c: Likewise.
47115         * lib/striconveh.c: Likewise.
47116         * lib/striconveha.c: Likewise.
47117         * lib/strncasecmp.c: Likewise.
47118         * lib/strndup.c: Likewise.
47119         * lib/strnlen.c: Likewise.
47120         * lib/strsep.c: Likewise.
47121         * lib/strstr.c: Likewise.
47122         * lib/strtok_r.c: Likewise.
47123         * lib/userspec.c: Likewise.
47124         * lib/w32spawn.h: Likewise.
47125         * lib/xstrndup.c: Likewise.
47126         * lib/mountlist.c (strstr): Remove decl.
47127         * m4/string_h.m4: New file.
47128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47129         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47130         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47131         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47132         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47133         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47134         Set REPLACE_STRCASECMP if necessary.
47135         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47136         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47137         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47138         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47139         HAVE_DECL_STRDUP if necessary.
47140         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47141         since gl_FUNC_STRNDUP does that now.
47142         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47143         Check for decl here...
47144         (gl_PREREQ_STRNLEN): ... not here.
47145         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47146         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47147         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47148         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47149         necessary.
47150         * modules/string: New file.
47151         * modules/memmem (Files): Remove special-purpose include file.
47152         (Depends-on): Add string.
47153         (Include): Include <string.h>, not the removed file.
47154         * modules/mempcpy: Likewise.
47155         * modules/memrchr: Likewise.
47156         * modules/stpcpy: Likewise.
47157         * modules/stpncpy: Likewise.
47158         * modules/strcase: Likewise.
47159         * modules/strchrnul: Likewise.
47160         * modules/strdup: Likewise.
47161         * modules/strndup: Likewise.
47162         * modules/strnlen: Likewise.
47163         * modules/strpbrk: Likewise.
47164         * modules/strsep: Likewise.
47165         * modules/strstr: Likewise.
47166         * modules/strtok_r: Likewise.
47167         * tests/test-dirname.c: Don't include "strdup.h", since
47168         <string.h> now suffices.
47169         * tests/test-memmem.c: Don't include "memmem.h", since
47170         <string.h> now suffices.
47171
47172 2007-01-25  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47175         *resultp is 0.
47176
47177         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47178         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47179         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47180         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47181
47182         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47183         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47184         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47185         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47186         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47187         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47188
47189 2007-01-24  Bruno Haible  <bruno@clisp.org>
47190
47191         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47193         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47194         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47195         gl_FUNC_FTS_CORE.
47196         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47197         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47198         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47199         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47200         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47201         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47202         gl_FUNC_FCHOWNAT.
47203         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47204         gl_FUNC_STRFTIME.
47205         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47206         Reported by Ralf Wildenhues.
47207
47208 2007-01-24  Bruno Haible  <bruno@clisp.org>
47209
47210         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47211         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47212         gl_GETADDRINFO.
47213         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47214         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47215         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47216
47217 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47218
47219         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47220         Don't use 'exit'; just return from 'main'.
47221         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47222
47223         * lib/fnmatch_.h: Readjust white space and comments to match
47224         glibc, to avoid spurious diffs.
47225
47226 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47227
47228         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47229         2004-12-01 change by Jakub Jelinek, since this code won't compile
47230         if !LIBC.  Problem reported by Bob Proulx.
47231
47232 2007-01-23  Bruno Haible  <bruno@clisp.org>
47233
47234         * lib/striconveh.c: Include c-strcaseeq.h.
47235         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47236         * modules/striconveh (Depends-on): Add c-strcaseeq.
47237
47238 2007-01-23  Bruno Haible  <bruno@clisp.org>
47239
47240         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47241
47242         * modules/c-strcaseeq: New file.
47243         * lib/c-strcaseeq.h: New file.
47244
47245         * modules/streq: New file.
47246         * lib/streq.h: New file.
47247
47248 2007-01-23  Bruno Haible  <bruno@clisp.org>
47249
47250         * modules/striconveha-tests: New file.
47251         * tests/test-striconveha.c: New file.
47252
47253         * lib/striconveha.h: Include <stdbool.h>.
47254         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47255         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47256         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47257         (mem_iconveha): New function.
47258         (str_iconveha_notranslit): Renamed from str_iconveha.
47259         (str_iconveha): New function.
47260         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47261         c-strcase.
47262
47263 2007-01-23  Bruno Haible  <bruno@clisp.org>
47264
47265         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47266         encodings without forgiving before trying any encoding with handler.
47267         (str_iconveha): Try all encodings without forgiving before trying any
47268         encoding with handler.
47269
47270 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47271
47272         Import the following changes from libc.
47273
47274         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47275
47276         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47277
47278         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47279
47280         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47281         normal_bracket label.
47282
47283         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47284
47285         [BZ #361]
47286         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47287         to normal_bracket after fetching the next character.
47288
47289 2007-01-22  Bruno Haible  <bruno@clisp.org>
47290
47291         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47292         argument.
47293         * lib/striconveh.c (iconv_carefully_1): New function.
47294         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47295         argument.
47296         (str_cd_iconveh): Update.
47297         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47298         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47299         * tests/test-striconveh.c (MAGIC): New macro.
47300         (new_offsets): New function.
47301         (main): Test call with and without offsets.
47302
47303 2007-01-22  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47306         * modules/sys_select (Makefile.am): Likewise.
47307         * modules/sys_socket (Makefile.am): Likewise.
47308         * modules/sys_time (Makefile.am): Likewise.
47309
47310 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47311
47312         * modules/gettimeofday (License): Change from GPL to LGPL, since
47313         gettimeofday is a library function.
47314
47315 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47316
47317         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47318
47319 2007-01-21  Bruno Haible  <bruno@clisp.org>
47320
47321         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47322
47323 2007-01-21  Bruno Haible  <bruno@clisp.org>
47324
47325         * modules/striconveha: New file.
47326         * lib/striconveha.h: New file.
47327         * lib/striconveha.c: New file.
47328         * MODULES.html.sh (Internationalization functions): Add striconveha.
47329         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47330         string.
47331         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47332
47333 2007-01-21  Bruno Haible  <bruno@clisp.org>
47334
47335         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47336         * lib/striconveh.c (str_iconveh): Likewise.
47337
47338 2007-01-21  Bruno Haible  <bruno@clisp.org>
47339
47340         * lib/striconveh.h (mem_iconveh): New declaration.
47341         * lib/striconveh.c (mem_iconveh): New function.
47342         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47343
47344 2007-01-21  Bruno Haible  <bruno@clisp.org>
47345
47346         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47347
47348         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47349         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47350         original result buffer.
47351         (str_cd_iconveh): Update.
47352         * tests/test-striconveh.c (main): Update.
47353
47354         * lib/striconv.h (mem_cd_iconv): Change specification.
47355         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47356         result buffer.
47357         (str_cd_iconv): Update.
47358         * tests/test-striconv.c (main): Update.
47359
47360 2007-01-21  Bruno Haible  <bruno@clisp.org>
47361
47362         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47363
47364 2007-01-20  Jim Meyering  <jim@meyering.net>
47365
47366         * lib/userspec.c (parse_with_separator): If a user or group string
47367         starts with "+", skip the corresponding name-to-ID look-up, since
47368         such a look-up must fail: user and group names may not include "+".
47369
47370 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47371
47372         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47373         since we now assume the sys_time module.
47374         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47375         check for sys/time.h; no longer needed.
47376         * modules/poll (Depends-on): Depend on sys_time.
47377
47378 2007-01-18  Bruno Haible  <bruno@clisp.org>
47379
47380         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47381         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47382
47383         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47384         gettimeofday.
47385
47386         * tests/test-gettimeofday.c: Include <time.h>.
47387         (dummy): Remove variable.
47388
47389         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47390         gl_HEADER_SYS_TIME_H.
47391         (gl_HEADER_SYS_TIME_H): New macro.
47392
47393         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47394         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47396         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47397         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47398         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47399         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47400         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47401         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47402         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47403         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47404
47405         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47406         last change; it caused a compilation error when cross-compiling to
47407         Cygwin.
47408
47409 2007-01-18  Jim Meyering  <jim@meyering.net>
47410
47411         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47412         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47413         than the race-prone "test -d sys || mkdir sys".
47414         (configure.ac): Use AC_PROG_MKDIR_P.
47415         * modules/sys_select: Likewise.
47416         * modules/sys_socket: Likewise.
47417         * modules/sys_time: Likewise.
47418
47419 2007-01-18  Eric Blake  <ebb9@byu.net>
47420
47421         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47422         replace gettimeofday.
47423         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47424         name, to avoid infinite recursion.
47425
47426 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47427
47428         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47429         module sys_time.
47430         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47431         assume timespec.h defines struct timeval.
47432         * lib/settime.c: Likewise.
47433         * lib/utimens.c: Likewise.
47434         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47435         since we now assume the gettimeofday module.
47436         * lib/tempname.c (__gen_tempname): Likewise.
47437         * lib/gettimeofday.h: Remove.
47438         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47439         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47440         Include <time.h>, for 'time()'.
47441         (localtime_buffer_addr): Also use this workaround if
47442         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47443         to simplify the uses.  All uses changed.
47444         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47445         that #undef is inside {}, and 'const' follows type name consistently.
47446         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47447         (gettimeofday): Do not use the maximum possible value for
47448         tv->tv_usec, since that might break usages other than ls.c.
47449         Instead, we'll leave ls.c alone.  This undoes today's patch
47450         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47451         we've never observed the problem but might as well keep the
47452         canary.
47453         * lib/nanosleep.c: Include timespec.h first, for interface check.
47454         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47455         now assume the sys_time module.
47456         * lib/tempname.c: Likewise.
47457         * lib/timespec.h: Likewise.
47458         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47459         needed.
47460         * lib/strftime.c: Likewise.
47461         * lib/timespec.h: Likewise.
47462         * lib/posixtm.c: Include posixtm.h first, for interface check.
47463         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47464         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47465         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47466         * lib/sys_time_.h: New file.
47467         * lib/timespec.h (struct timespec): Use long int, not long.
47468         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47469         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47470         Remove obsolescent call to AC_HEADER_TIME.
47471         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47474         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47475         Likewise.
47476         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47477         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47479         into the sys_time module.  Check for gettimeofday just once.
47480         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47481         for gettimeofday signature to just check the signature.  Merely
47482         compile it, since linking doesn't test signature.  Improve test for
47483         whether gettimeofday.o is actually needed.
47484         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47485         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47486         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47487         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47488         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47489         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47490         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47491         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47492         than worrying about sys/time.h.
47493         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47494         Don't bother worrying about TIME_WITH_SYS_TIME.
47495         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47496         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47497         * m4/sys_time_h.m4: New file.
47498         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47499         Don't include sys/time.h.  Return from main rather than exiting.
47500         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47501         all uses changed.
47502         * modules/gethrxtime (Depends-on): Add sys_time.
47503         * modules/gettime (Depends-on): Likewise.
47504         * modules/gettimeofday (Depends-on): Likewise.
47505         * modules/nanosleep (Depends-on): Likewise.
47506         * modules/settime (Depends-on): Likewise.
47507         * modules/tempname (Depends-on): Likewise.
47508         * modules/utimens (Depends-on): Likewise.
47509         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47510         (Include:) Change back to <sys/time.h>.
47511         (Maintainer:) Add self.
47512         * modules/sys_time: New file.
47513         * modules/tempname (Depends-on): Add gettimeofday.
47514         * tests/test-gettimeofday.c: Include <sys/time.h>
47515         rather than gettimeofday.h.
47516
47517 2007-01-17  Bruno Haible  <bruno@clisp.org>
47518
47519         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47520         the license default to GPL.
47521         (func_create_testdir): Don't complain if a module is LGPL and its
47522         tests module depends on GPLed modules.
47523
47524 2007-01-17  Bruno Haible  <bruno@clisp.org>
47525
47526         * lib/gettimeofday.c (gettimeofday): Add code for the case
47527         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47528         maximum possible value for tv->tv_usec, rather than the minimum one.
47529
47530 2005-10-08  Martin Lambers  <marlam@marlam.de>
47531 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47532 2007-01-16  Bruno Haible  <bruno@clisp.org>
47533
47534         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47535         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47536         gl_FUNC_GETTIMEOFDAY.
47537         (Include): Add gettimeofday.h.
47538         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47539         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47540         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47541         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47542         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47543         * lib/gettimeofday.h: New file.
47544         * lib/gettimeofday.c: Include <sys/timeb.h>.
47545         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47546         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47547         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47548         fall back on time().
47549
47550         * tests/test-gettimeofday.c: New file.
47551         * modules/gettimeofday-tests: New file.
47552
47553 2007-01-16  Eric Blake  <ebb9@byu.net>
47554
47555         * modules/fnmatch (Depends-on): Depend on wchar.
47556         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47557         * m4/fnmatch.m4: Likewise.
47558         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47559         * m4/mbchar.m4: Likewise.
47560         * modules/mbswidth (Depends-on): Depend on wchar.
47561         * lib/mbswidth.c: Assume <wchar.h>.
47562         * m4/mbswidth.m4: Likewise.
47563         * modules/quotearg (Depends-on): Depend on wchar.
47564         * lib/quotearg.c: Assume <wchar.h>.
47565         * m4/quotearg.m4: Likewise.
47566         * modules/regex (Depends-on): Depend on wchar.
47567         * lib/regex_internal.h: Assume <wchar.h>.
47568         * m4/regex.m4: Likewise.
47569         * modules/stdint (Depends-on): Depend on wchar.
47570         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47571         * m4/stdint.m4: Likewise.
47572         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47573         * modules/strftime (Depends-on): Depend on wchar.
47574         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47575         * modules/strtol (Depends-on): Depend on wchar.
47576         * lib/strtol.c: Assume <wchar.h>.
47577         * modules/wcwidth (Depends-on): Depend on wchar.
47578         * lib/wcwidth.h: Assume <wchar.h>.
47579         * m4/wcwidth.m4: Likewise.
47580
47581 2007-01-16  Bruno Haible  <bruno@clisp.org>
47582
47583         * modules/csharpexec-script: New, created from...
47584         * modules/csharpexec: ... this.
47585
47586 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47587
47588         * modules/javaexec-script: New, created from...
47589         * modules/javaexec: ... this.
47590
47591 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47592
47593         * modules/poll (Dependencies): Add sys_select.
47594
47595 2007-01-15  Jim Meyering  <jim@meyering.net>
47596
47597         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47598         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47599         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47600         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47601
47602 2007-01-15  Bruno Haible  <bruno@clisp.org>
47603
47604         * modules/striconveh: New file.
47605         * lib/striconveh.h: New file.
47606         * lib/striconveh.c: New file.
47607         * MODULES.html.sh (Internationalization functions): Add striconveh.
47608
47609         * modules/striconveh-tests: New file.
47610         * tests/test-striconveh.c: New file.
47611
47612 2007-01-15  Bruno Haible  <bruno@clisp.org>
47613
47614         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47615         not from GNU libiconv or GNU libc.
47616
47617 2007-01-15  Bruno Haible  <bruno@clisp.org>
47618
47619         * doc/gnulib-intro.texi (Copyright): Explain the different license
47620         terms for module descriptions, autoconf macros, tests, documentation.
47621
47622 2007-01-14  Bruno Haible  <bruno@clisp.org>
47623
47624         * modules/striconv-tests: New file.
47625         * tests/test-striconv.c: New file.
47626
47627 2007-01-14  Bruno Haible  <bruno@clisp.org>
47628
47629         * modules/iconv-tests: New file.
47630         * tests/test-iconv.c: New file.
47631
47632 2007-01-14  Bruno Haible  <bruno@clisp.org>
47633
47634         * gnulib-tool (func_get_license): For test modules, use the license of
47635         the main module.
47636
47637 2007-01-14  Bruno Haible  <bruno@clisp.org>
47638
47639         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47640         if iconv is found to exist.
47641
47642 2007-01-14  Bruno Haible  <bruno@clisp.org>
47643
47644         * modules/c-ctype-tests: New file.
47645         * tests/test-c-ctype.c: New file.
47646
47647 2007-01-14  Bruno Haible  <bruno@clisp.org>
47648
47649         * modules/binary-io-tests: New file.
47650         * tests/test-binary-io.sh: New file.
47651         * tests/test-binary-io.c: New file.
47652
47653 2007-01-14  Bruno Haible  <bruno@clisp.org>
47654
47655         * modules/array-oset-tests: New file.
47656         * tests/test-array_oset.c: New file.
47657
47658 2007-01-14  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/array-list-tests: New file.
47661         * tests/test-array_list.c: New file.
47662
47663 2007-01-14  Bruno Haible  <bruno@clisp.org>
47664
47665         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47666         and make.
47667         Reported by Simon Josefsson in
47668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47669
47670 2007-01-14  Bruno Haible  <bruno@clisp.org>
47671
47672         * modules/allocsa-tests: New file.
47673         * tests/test-allocsa.c: New file.
47674
47675 2007-01-14  Bruno Haible  <bruno@clisp.org>
47676
47677         * modules/fchdir (Depends-on): Add absolute-header.
47678         * modules/unistd (Depends-on): Likewise.
47679
47680 2006-12-30  Bruno Haible  <bruno@clisp.org>
47681
47682         * modules/fchdir: New file.
47683         * modules/unistd (Files): Add lib/unistd_.h.
47684         (Makefile.am): Generate unistd.h from unistd_.h.
47685         * lib/fchdir.c: New file.
47686         * lib/dirent_.h: New file.
47687         * lib/unistd_.h: New file.
47688         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47689         * m4/fchdir.m4: New file.
47690         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47691         (gl_HEADER_UNISTD): Invoke it.
47692         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47693         function.
47694         * lib/backupfile.c (opendir, closedir): Undefine.
47695         * lib/chown.c (open, close): Undefine.
47696         * lib/clean-temp.c (open, close): Undefine.
47697         * lib/copy-file.c (open, close): Undefine.
47698         * lib/execute.c (open, close): Undefine.
47699         * lib/fsusage.c (open, close): Undefine.
47700         * lib/gc-gnulib.c (open, close): Undefine.
47701         * lib/getcwd.c (opendir, closedir): Undefine.
47702         * lib/glob.c (opendir, closedir): Undefine.
47703         * lib/javacomp.c (open, close): Undefine.
47704         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47705         * lib/openat-proc.c (open, close): Undefine.
47706         * lib/pagealign_alloc.c (open, close): Undefine.
47707         * lib/pipe.c (open, close): Undefine.
47708         * lib/progreloc.c (open, close): Undefine.
47709         * lib/savedir.c (opendir, closedir): Undefine.
47710         * lib/utime.c (open, close): Undefine.
47711         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47712
47713 2007-01-10  Bruno Haible  <bruno@clisp.org>
47714
47715         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47716
47717 2007-01-12  Eric Blake  <ebb9@byu.net>
47718
47719         Provide a robust <wchar.h>.  Further simplifications are now
47720         possible in other modules, but not included here.
47721         * modules/wchar: New module.
47722         * m4/wchar.m4: New file.
47723         * lib/wchar_.h: Likewise.
47724         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47725         of the new module.
47726         * MODULES.html.sh (Extended multibyte and wide character utilities):
47727         New section.
47728
47729 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47730
47731         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47732         to a reasonable default for memory allocation.
47733         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47734         file system that reports garbage st_size values for symlinks.
47735         Problem reported by Liyang Hu.
47736
47737 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47738
47739         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47740         Emacs .#* auto-save files).
47741
47742 2007-01-11  Bruno Haible  <bruno@clisp.org>
47743
47744         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47745         directory.
47746
47747 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47748
47749         Use @...@ consistently in lib/wctype_.h.
47750         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47751         on it being set to 1 or 0.
47752         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47753         go back to AC_SUBSTing it.
47754         * modules/wctype (Makefile.am): Undo previous change.
47755
47756 2007-01-10  Eric Blake  <ebb9@byu.net>
47757
47758         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47759         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47760         * modules/wctype (Makefile.am): Likewise.
47761         Reported by Chris McGuire.
47762
47763 2007-01-10  Jim Meyering  <jim@meyering.net>
47764
47765         fts.c: a small readability/maintainability improvement
47766         * lib/fts.c (fts_read): Make this code slightly more readable and
47767         maintainable by hoisting the "sp->fts_cur = p" assignments to
47768         immediately follow the statements that set P.  Derived from
47769         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47770
47771 2007-01-10  Eric Blake  <ebb9@byu.net>
47772
47773         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47774         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47776         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47777         Reported by Chris McGuire.
47778
47779 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47780
47781         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47782         in sed script.
47783
47784 2007-01-09  Bruno Haible  <bruno@clisp.org>
47785
47786         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47787         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47788         variables.
47789         (func_module): Use them.
47790
47791 2007-01-09  Bruno Haible  <bruno@clisp.org>
47792
47793         * modules/unistr/base: New file.
47794         * lib/unistr.h: New file.
47795
47796         * modules/unistr/u8-to-u16: New file.
47797         * lib/unistr/u8-to-u16.c: New file.
47798
47799         * modules/unistr/u8-to-u32: New file.
47800         * lib/unistr/u8-to-u32.c: New file.
47801
47802         * modules/unistr/u16-to-u8: New file.
47803         * lib/unistr/u16-to-u8.c: New file.
47804
47805         * modules/unistr/u16-to-u32: New file.
47806         * lib/unistr/u16-to-u32.c: New file.
47807
47808         * modules/unistr/u32-to-u8: New file.
47809         * lib/unistr/u32-to-u8.c: New file.
47810
47811         * modules/unistr/u32-to-u16: New file.
47812         * lib/unistr/u32-to-u16.c: New file.
47813
47814         * modules/unistr/u8-check: New file.
47815         * modules/unistr/u16-check: New file.
47816         * modules/unistr/u32-check: New file.
47817         * lib/unistr/u8-check.c: New file.
47818         * lib/unistr/u16-check.c: New file.
47819         * lib/unistr/u32-check.c: New file.
47820
47821         * modules/unistr/u8-chr: New file.
47822         * modules/unistr/u16-chr: New file.
47823         * modules/unistr/u32-chr: New file.
47824         * lib/unistr/u8-chr.c: New file.
47825         * lib/unistr/u16-chr.c: New file.
47826         * lib/unistr/u32-chr.c: New file.
47827
47828         * modules/unistr/u8-cmp: New file.
47829         * modules/unistr/u16-cmp: New file.
47830         * modules/unistr/u32-cmp: New file.
47831         * lib/unistr/u8-cmp.c: New file.
47832         * lib/unistr/u16-cmp.c: New file.
47833         * lib/unistr/u32-cmp.c: New file.
47834
47835         * modules/unistr/u8-cpy: New file.
47836         * modules/unistr/u16-cpy: New file.
47837         * modules/unistr/u32-cpy: New file.
47838         * lib/unistr/u8-cpy.c: New file.
47839         * lib/unistr/u16-cpy.c: New file.
47840         * lib/unistr/u32-cpy.c: New file.
47841         * lib/unistr/u-cpy.h: New file.
47842
47843         * modules/unistr/u8-cpy-alloc: New file.
47844         * modules/unistr/u16-cpy-alloc: New file.
47845         * modules/unistr/u32-cpy-alloc: New file.
47846         * lib/unistr/u8-cpy-alloc.c: New file.
47847         * lib/unistr/u16-cpy-alloc.c: New file.
47848         * lib/unistr/u32-cpy-alloc.c: New file.
47849         * lib/unistr/u-cpy-alloc.h: New file.
47850
47851         * modules/unistr/u8-endswith: New file.
47852         * modules/unistr/u16-endswith: New file.
47853         * modules/unistr/u32-endswith: New file.
47854         * lib/unistr/u8-endswith.c: New file.
47855         * lib/unistr/u16-endswith.c: New file.
47856         * lib/unistr/u32-endswith.c: New file.
47857         * lib/unistr/u-endswith.h: New file.
47858
47859         * modules/unistr/u8-mblen: New file.
47860         * modules/unistr/u16-mblen: New file.
47861         * modules/unistr/u32-mblen: New file.
47862         * lib/unistr/u8-mblen.c: New file.
47863         * lib/unistr/u16-mblen.c: New file.
47864         * lib/unistr/u32-mblen.c: New file.
47865
47866         * modules/unistr/u8-mbtouc: New file.
47867         * modules/unistr/u16-mbtouc: New file.
47868         * modules/unistr/u32-mbtouc: New file.
47869         * lib/unistr/u8-mbtouc.c: New file.
47870         * lib/unistr/u16-mbtouc.c: New file.
47871         * lib/unistr/u32-mbtouc.c: New file.
47872
47873         * modules/unistr/u8-mbtouc-safe: New file.
47874         * modules/unistr/u16-mbtouc-safe: New file.
47875         * modules/unistr/u32-mbtouc-safe: New file.
47876         * lib/unistr/u8-mbtouc-safe.c: New file.
47877         * lib/unistr/u16-mbtouc-safe.c: New file.
47878         * lib/unistr/u32-mbtouc-safe.c: New file.
47879
47880         * modules/unistr/u8-move: New file.
47881         * modules/unistr/u16-move: New file.
47882         * modules/unistr/u32-move: New file.
47883         * lib/unistr/u8-move.c: New file.
47884         * lib/unistr/u16-move.c: New file.
47885         * lib/unistr/u32-move.c: New file.
47886         * lib/unistr/u-move.h: New file.
47887
47888         * modules/unistr/u8-next: New file.
47889         * modules/unistr/u16-next: New file.
47890         * modules/unistr/u32-next: New file.
47891         * lib/unistr/u8-next.c: New file.
47892         * lib/unistr/u16-next.c: New file.
47893         * lib/unistr/u32-next.c: New file.
47894
47895         * modules/unistr/u8-prev: New file.
47896         * modules/unistr/u16-prev: New file.
47897         * modules/unistr/u32-prev: New file.
47898         * lib/unistr/u8-prev.c: New file.
47899         * lib/unistr/u16-prev.c: New file.
47900         * lib/unistr/u32-prev.c: New file.
47901
47902         * modules/unistr/u8-set: New file.
47903         * modules/unistr/u16-set: New file.
47904         * modules/unistr/u32-set: New file.
47905         * lib/unistr/u8-set.c: New file.
47906         * lib/unistr/u16-set.c: New file.
47907         * lib/unistr/u32-set.c: New file.
47908         * lib/unistr/u-set.h: New file.
47909
47910         * modules/unistr/u8-startswith: New file.
47911         * modules/unistr/u16-startswith: New file.
47912         * modules/unistr/u32-startswith: New file.
47913         * lib/unistr/u8-startswith.c: New file.
47914         * lib/unistr/u16-startswith.c: New file.
47915         * lib/unistr/u32-startswith.c: New file.
47916         * lib/unistr/u-startswith.h: New file.
47917
47918         * modules/unistr/u8-stpcpy: New file.
47919         * modules/unistr/u16-stpcpy: New file.
47920         * modules/unistr/u32-stpcpy: New file.
47921         * lib/unistr/u8-stpcpy.c: New file.
47922         * lib/unistr/u16-stpcpy.c: New file.
47923         * lib/unistr/u32-stpcpy.c: New file.
47924         * lib/unistr/u-stpcpy.h: New file.
47925
47926         * modules/unistr/u8-stpncpy: New file.
47927         * modules/unistr/u16-stpncpy: New file.
47928         * modules/unistr/u32-stpncpy: New file.
47929         * lib/unistr/u8-stpncpy.c: New file.
47930         * lib/unistr/u16-stpncpy.c: New file.
47931         * lib/unistr/u32-stpncpy.c: New file.
47932         * lib/unistr/u-stpncpy.h: New file.
47933
47934         * modules/unistr/u8-strcat: New file.
47935         * modules/unistr/u16-strcat: New file.
47936         * modules/unistr/u32-strcat: New file.
47937         * lib/unistr/u8-strcat.c: New file.
47938         * lib/unistr/u16-strcat.c: New file.
47939         * lib/unistr/u32-strcat.c: New file.
47940         * lib/unistr/u-strcat.h: New file.
47941
47942         * modules/unistr/u8-strchr: New file.
47943         * modules/unistr/u16-strchr: New file.
47944         * modules/unistr/u32-strchr: New file.
47945         * lib/unistr/u8-strchr.c: New file.
47946         * lib/unistr/u16-strchr.c: New file.
47947         * lib/unistr/u32-strchr.c: New file.
47948
47949         * modules/unistr/u8-strcmp: New file.
47950         * modules/unistr/u16-strcmp: New file.
47951         * modules/unistr/u32-strcmp: New file.
47952         * lib/unistr/u8-strcmp.c: New file.
47953         * lib/unistr/u16-strcmp.c: New file.
47954         * lib/unistr/u32-strcmp.c: New file.
47955
47956         * modules/unistr/u8-strcpy: New file.
47957         * modules/unistr/u16-strcpy: New file.
47958         * modules/unistr/u32-strcpy: New file.
47959         * lib/unistr/u8-strcpy.c: New file.
47960         * lib/unistr/u16-strcpy.c: New file.
47961         * lib/unistr/u32-strcpy.c: New file.
47962         * lib/unistr/u-strcpy.h: New file.
47963
47964         * modules/unistr/u8-strcspn: New file.
47965         * modules/unistr/u16-strcspn: New file.
47966         * modules/unistr/u32-strcspn: New file.
47967         * lib/unistr/u8-strcspn.c: New file.
47968         * lib/unistr/u16-strcspn.c: New file.
47969         * lib/unistr/u32-strcspn.c: New file.
47970         * lib/unistr/u-strcspn.h: New file.
47971
47972         * modules/unistr/u8-strdup: New file.
47973         * modules/unistr/u16-strdup: New file.
47974         * modules/unistr/u32-strdup: New file.
47975         * lib/unistr/u8-strdup.c: New file.
47976         * lib/unistr/u16-strdup.c: New file.
47977         * lib/unistr/u32-strdup.c: New file.
47978         * lib/unistr/u-strdup.h: New file.
47979
47980         * modules/unistr/u8-strlen: New file.
47981         * modules/unistr/u16-strlen: New file.
47982         * modules/unistr/u32-strlen: New file.
47983         * lib/unistr/u8-strlen.c: New file.
47984         * lib/unistr/u16-strlen.c: New file.
47985         * lib/unistr/u32-strlen.c: New file.
47986         * lib/unistr/u-strlen.h: New file.
47987
47988         * modules/unistr/u8-strmblen: New file.
47989         * modules/unistr/u16-strmblen: New file.
47990         * modules/unistr/u32-strmblen: New file.
47991         * lib/unistr/u8-strmblen.c: New file.
47992         * lib/unistr/u16-strmblen.c: New file.
47993         * lib/unistr/u32-strmblen.c: New file.
47994
47995         * modules/unistr/u8-strmbtouc: New file.
47996         * modules/unistr/u16-strmbtouc: New file.
47997         * modules/unistr/u32-strmbtouc: New file.
47998         * lib/unistr/u8-strmbtouc.c: New file.
47999         * lib/unistr/u16-strmbtouc.c: New file.
48000         * lib/unistr/u32-strmbtouc.c: New file.
48001
48002         * modules/unistr/u8-strncat: New file.
48003         * modules/unistr/u16-strncat: New file.
48004         * modules/unistr/u32-strncat: New file.
48005         * lib/unistr/u8-strncat.c: New file.
48006         * lib/unistr/u16-strncat.c: New file.
48007         * lib/unistr/u32-strncat.c: New file.
48008         * lib/unistr/u-strncat.h: New file.
48009
48010         * modules/unistr/u8-strncmp: New file.
48011         * modules/unistr/u16-strncmp: New file.
48012         * modules/unistr/u32-strncmp: New file.
48013         * lib/unistr/u8-strncmp.c: New file.
48014         * lib/unistr/u16-strncmp.c: New file.
48015         * lib/unistr/u32-strncmp.c: New file.
48016
48017         * modules/unistr/u8-strncpy: New file.
48018         * modules/unistr/u16-strncpy: New file.
48019         * modules/unistr/u32-strncpy: New file.
48020         * lib/unistr/u8-strncpy.c: New file.
48021         * lib/unistr/u16-strncpy.c: New file.
48022         * lib/unistr/u32-strncpy.c: New file.
48023         * lib/unistr/u-strncpy.h: New file.
48024
48025         * modules/unistr/u8-strnlen: New file.
48026         * modules/unistr/u16-strnlen: New file.
48027         * modules/unistr/u32-strnlen: New file.
48028         * lib/unistr/u8-strnlen.c: New file.
48029         * lib/unistr/u16-strnlen.c: New file.
48030         * lib/unistr/u32-strnlen.c: New file.
48031         * lib/unistr/u-strnlen.h: New file.
48032
48033         * modules/unistr/u8-strpbrk: New file.
48034         * modules/unistr/u16-strpbrk: New file.
48035         * modules/unistr/u32-strpbrk: New file.
48036         * lib/unistr/u8-strpbrk.c: New file.
48037         * lib/unistr/u16-strpbrk.c: New file.
48038         * lib/unistr/u32-strpbrk.c: New file.
48039         * lib/unistr/u-strpbrk.h: New file.
48040
48041         * modules/unistr/u8-strrchr: New file.
48042         * modules/unistr/u16-strrchr: New file.
48043         * modules/unistr/u32-strrchr: New file.
48044         * lib/unistr/u8-strrchr.c: New file.
48045         * lib/unistr/u16-strrchr.c: New file.
48046         * lib/unistr/u32-strrchr.c: New file.
48047
48048         * modules/unistr/u8-strspn: New file.
48049         * modules/unistr/u16-strspn: New file.
48050         * modules/unistr/u32-strspn: New file.
48051         * lib/unistr/u8-strspn.c: New file.
48052         * lib/unistr/u16-strspn.c: New file.
48053         * lib/unistr/u32-strspn.c: New file.
48054         * lib/unistr/u-strspn.h: New file.
48055
48056         * modules/unistr/u8-strstr: New file.
48057         * modules/unistr/u16-strstr: New file.
48058         * modules/unistr/u32-strstr: New file.
48059         * lib/unistr/u8-strstr.c: New file.
48060         * lib/unistr/u16-strstr.c: New file.
48061         * lib/unistr/u32-strstr.c: New file.
48062         * lib/unistr/u-strstr.h: New file.
48063
48064         * modules/unistr/u8-strtok: New file.
48065         * modules/unistr/u16-strtok: New file.
48066         * modules/unistr/u32-strtok: New file.
48067         * lib/unistr/u8-strtok.c: New file.
48068         * lib/unistr/u16-strtok.c: New file.
48069         * lib/unistr/u32-strtok.c: New file.
48070         * lib/unistr/u-strtok.h: New file.
48071
48072         * modules/unistr/u8-uctomb: New file.
48073         * modules/unistr/u16-uctomb: New file.
48074         * modules/unistr/u32-uctomb: New file.
48075         * lib/unistr/u8-uctomb.c: New file.
48076         * lib/unistr/u16-uctomb.c: New file.
48077         * lib/unistr/u32-uctomb.c: New file.
48078
48079         * MODULES.html.sh (Unicode string functions): Add the new modules.
48080
48081 2007-01-08  Bruno Haible  <bruno@clisp.org>
48082
48083         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48084         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48085         subdirectories.
48086
48087 2007-01-08  Karl Berry  <karl@gnu.org>
48088
48089         * doc/error.texi: mention that main() fns must set program_name
48090         when progname is used.
48091
48092 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48093
48094         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48095         WCTYPE_H is empty, for the benefit of builds from non-distclean
48096         directories.  Problem reported by Eric Blake in
48097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48098
48099 2007-01-08  Bruno Haible  <bruno@clisp.org>
48100
48101         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48102         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48103         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48104         PROVIDE_CANONICALIZE_FILENAME_MODE.
48105         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48106
48107 2007-01-08  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48110         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48111         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48112         * lib/fts.c: Likewise.
48113         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48114
48115 2006-12-25  Bruno Haible  <bruno@clisp.org>
48116
48117         * modules/utf8-ucs4-safe: New file.
48118         * lib/utf8-ucs4-safe.h: New file.
48119         * lib/unistr/utf8-ucs4-safe.c: New file.
48120
48121         * modules/utf16-ucs4-safe: New file.
48122         * lib/utf16-ucs4-safe.h: New file.
48123         * lib/unistr/utf16-ucs4-safe.c: New file.
48124
48125         * MODULES.html.sh (Unicode string functions): Add the new modules.
48126
48127 2007-01-08  Bruno Haible  <bruno@clisp.org>
48128
48129         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48130         (Depends-on): Add unitypes.
48131         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48132         (u8_mbtouc_aux): Move out to separate file.
48133         (u8_mbtouc): Use ucs4_t, uint8_t types.
48134         * lib/unistr/utf8-ucs4.c: New file.
48135
48136         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48137         (Depends-on): Add unitypes.
48138         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48139         (u16_mbtouc_aux): Move out to separate file.
48140         (u16_mbtouc): Use ucs4_t, uint16_t types.
48141         * lib/unistr/utf16-ucs4.c: New file.
48142
48143         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48144         (Depends-on): Add unitypes.
48145         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48146         (u8_uctomb_aux): Move out to separate file.
48147         (u8_uctomb): Use ucs4_t, uint8_t types.
48148         * lib/unistr/ucs4-utf8.c: New file.
48149
48150         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48151         (Depends-on): Add unitypes.
48152         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48153         (u16_uctomb_aux): Move out to separate file.
48154         (u16_uctomb): Use ucs4_t, uint16_t types.
48155         * lib/unistr/ucs4-utf16.c: New file.
48156
48157 2006-12-25  Bruno Haible  <bruno@clisp.org>
48158
48159         * modules/unitypes: New file.
48160         * lib/unitypes.h: New file.
48161         * MODULES.html.sh (func_all_modules): New section "Unicode string
48162         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48163         this section. Add unitypes.
48164
48165 2007-01-08  Bruno Haible  <bruno@clisp.org>
48166
48167         Avoid variable names that conflict with those from libtool.
48168         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48169         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48170         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48171         library_names_spec to acl_library_names_spec, hardcode_* to
48172         acl_hardcode_*.
48173         Reported by Ralf Wildenhues.
48174
48175 2007-01-08  Bruno Haible  <bruno@clisp.org>
48176
48177         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48178         definition.
48179         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48180         definition.
48181         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48182         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48183         definition.
48184         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48185         definition.
48186         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48187         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48188         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48189         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48190         definition.
48191         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48192         definition.
48193         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48194         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48195         GC_USE_<algorithm>.
48196         * lib/gc-libgcrypt.c: Likewise.
48197         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48198         * modules/gc-arctwo (configure.ac): Likewise.
48199         * modules/gc-des (configure.ac): Likewise.
48200         * modules/gc-hmac-md5 (configure.ac): Likewise.
48201         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48202         * modules/gc-md2 (configure.ac): Likewise.
48203         * modules/gc-md4 (configure.ac): Likewise.
48204         * modules/gc-md5 (configure.ac): Likewise.
48205         * modules/gc-random (configure.ac): Likewise.
48206         * modules/gc-rijndael (configure.ac): Likewise.
48207         * modules/gc-sha1 (configure.ac): Likewise.
48208
48209 2007-01-08  Bruno Haible  <bruno@clisp.org>
48210
48211         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48212         macro definition.
48213         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48214         definition.
48215         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48216         definition.
48217         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48218         * modules/fcntl-safer (configure.ac): Likewise.
48219         * modules/fopen-safer (configure.ac): Likewise.
48220         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48221         GNULIB_FWRITEERROR macro definition.
48222
48223 2007-01-08  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/gnulib-common.m4: New file.
48226         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48227         (func_get_filelist): Add m4/gnulib-common.m4.
48228
48229 2007-01-08  Bruno Haible  <bruno@clisp.org>
48230
48231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48232         command.
48233
48234 2007-01-08  Jim Meyering  <jim@meyering.net>
48235
48236         Use a more robust test for a "can't happen" condition.
48237         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48238         narrowed the st_size value.  Presuming the "can't happen" condition
48239         is true, that narrowing could conceivably convert an invalid st_size
48240         value into a valid one.  Instead, use a change based on Matthew
48241         Woehlke's original patch.
48242
48243         Slight readability improvement: use an assert-like macro
48244         in place of literal "abort ()" uses.
48245         * lib/fts.c (fts_assert): Define.
48246         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48247         Use this macro instead of a bare 'abort'.
48248
48249 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48250
48251         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48252         simply work around them.
48253         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48254         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48255         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48256         declaring.
48257         Don't bother to define as macros, since the standard doesn't require it.
48258         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48259         longer worry about IRIX 5.3.
48260         (HAVE_WCTYPE_CTMP_BUG): Remove.
48261
48262 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48263
48264         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48265         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48266         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48267         Problems reported by Georg Schwarz for IRIX 5.3.
48268
48269         * gnulib-tool (autoconf_minversion): Take the maximum version number
48270         found, not the minimum.  Problem reported by James Youngman.
48271
48272 2007-01-03  Karl Berry  <karl@gnu.org>
48273
48274         * doc/error.texi: new file, explaining interaction with progname.
48275         * doc/gnulib.texi: include it.  Update copyright.
48276
48277 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48278
48279         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48280         AC_CANONICAL_HOST, to improve autobuild outputs.
48281
48282 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48283             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48284
48285         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48286         sockets, server sockets, and other file descriptors.  Count errors
48287         to compute the return value.  Reorder the code a bit to be easier
48288         to follow.  Don't set event bits that were not requested (except
48289         POLLERR and POLLHUP).
48290
48291 2007-01-01  Bruno Haible  <bruno@clisp.org>
48292
48293         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48294
48295 2007-01-03  Jim Meyering  <jim@meyering.net>
48296
48297         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48298
48299 2007-01-02  Bruno Haible  <bruno@clisp.org>
48300
48301         * modules/settime (Include): Require timespec.h.
48302         * modules/nanosleep (Include): Likewise.
48303
48304 2007-01-01  Bruno Haible  <bruno@clisp.org>
48305
48306         * gnulib-tool (func_emit_copyright_notice): Bump year.
48307         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48308
48309 2007-01-01  Bruno Haible  <bruno@clisp.org>
48310
48311         Improve support for OpenBSD.
48312         * build-aux/config.rpath (libname_spec): Export.
48313         (library_names_spec): New variable. Export.
48314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48315         library_names_spec from the config.rpath output. Locate shared library
48316         through the name pattern in library_names_spec.
48317
48318 2007-01-01  Eric Blake  <ebb9@byu.net>
48319
48320         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48321
48322 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48325         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48326         assume the C locale, and avoid an "eval" that could cause trouble.
48327         Problem with SORT reported by Bob Proulx.
48328
48329         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48330         Define.  Trivial patch from Henning Nielsen Lund, originally
48331         sent to bug-grep@gnu.org today.
48332
48333 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48334
48335         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48336         struct stat.  Problem reported by Henning Nielsen Lund.
48337         * lib/acl.c: Include acl.h first, to check interface.  Don't
48338         bother to include sys/types.h and sys/stat.h again.
48339
48340 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48341
48342         Import the following change from libc; problem reported by
48343         Sven Verdoolaege.
48344
48345         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48346
48347         [BZ #1373]
48348         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48349
48350 2006-12-28  Jim Meyering  <jim@meyering.net>
48351
48352         * build-aux/announce-gen: Do not assume that the package
48353         builds any of tar.gz, tar.bz2, and .xdelta files.
48354         Suggestion from Simon Josefsson.
48355
48356 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48357
48358         * modules/announce-gen: New file.
48359
48360 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48361
48362         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48363         handles its gotchas now.
48364         * lib/mbswidth.c: Likewise.
48365         * lib/wcwidth.h: Likewise.
48366         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48367         and iswcntrl; the wctype module does this stuff now.
48368         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48370         * modules/mbchar (Depends-on): Add wctype.
48371         * modules/mbswidth (Depends-on): Likewise.
48372         * modules/wcwidth (Depends-on): Likewise.
48373
48374 2006-12-27  Eric Blake  <ebb9@byu.net>
48375
48376         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48377         module uses more than what <wctype.h> is required to provide.
48378
48379 2006-12-26  Eric Blake  <ebb9@byu.net>
48380
48381         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48382
48383 2006-12-26  Eric Blake  <ebb9@byu.net>
48384
48385         * modules/absolute-header: New module.
48386         * modules/fcntl (Depends-on): Depend on it.
48387         * modules/inttypes (Depends-on): Likewise.
48388         * modules/stdint (Depends-on): Likewise.
48389         * modules/sys_stat (Depends-on): Likewise.
48390         * modules/wctype (Depends-on): Likewise.
48391         * MODULES.html.sh (Support for building libraries and
48392         executables): Document it.
48393
48394 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48395
48396         * gnulib-tool (SED): Remove, undoing previous change.
48397         The problem was that it broke coreutils on Solaris, because
48398         "sed --posix" leaked into a makefile.
48399         (sed): New alias, if 'alias' and GNU sed.
48400
48401 2006-12-24  Jim Meyering  <jim@meyering.net>
48402
48403         Work around an fchownat bug in glibc-2.4:
48404         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48405         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48406         in spite of the -P option.
48407         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48408         New macros.
48409         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48410         * modules/openat (Files): Add lib/fchownat.c.
48411         * lib/openat.c (fchownat): Don't define here.  Move to...
48412         * lib/fchownat.c: ...this new file.
48413
48414 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48415
48416         Fix bug reported by Bruno Haible in
48417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48418         where quotearg.c didn't compile on Mac OS X 10.2 because it
48419         lacks <wchar.h> and wint_t.
48420         * lib/wctype_.h (__wctype_wint_t): New type.
48421         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48422         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48423         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48424         Arg is now of type __wctype_wint_t, not wint_t.
48425         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48426         substitute HAVE_WINT_T.
48427         * modules/wctype (Files): Add m4/wint_t.m4.
48428         (wctype.h): Substitute HAVE_WINT_T.
48429
48430 2006-12-23  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48433
48434 2006-12-23  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48437         S_ISLNK.
48438         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48439         mingw.
48440
48441 2006-12-22  Bruno Haible  <bruno@clisp.org>
48442
48443         * lib/copy-file.c: Include acl.h.
48444         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48445         Close the file descriptors only after being done with copy_acl.
48446         * modules/copy-file (Depends-on): Add acl.
48447
48448 2006-12-22  Bruno Haible  <bruno@clisp.org>
48449
48450         * gnulib-tool (SED): New variable.
48451         Use $SED instead of sed everywhere.
48452
48453 2006-12-22  Bruno Haible  <bruno@clisp.org>
48454
48455         * modules/no-c++: New file.
48456         * m4/no-c++.m4: New file.
48457         * MODULES.html.sh (Support for building libraries and executables):
48458         Add no-c++.
48459
48460 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48461
48462         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48463         Include <limits.h>, and use its INT_MAX to rewrite the
48464         j loop so that it does not overflow 'int'.  Problem reported by
48465         Ralf Wildenhues in
48466         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48467         Play it safe by shifting left by 1 rather than multiplying by 2,
48468         as GCC is less likely to optimize this away when the value
48469         is signed (when it assumes overflow leads to undefined behavior).
48470         Also, don't assume time_t uses two's complement.
48471
48472 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48473
48474         * MODULES.html.sh: New module wctype.
48475         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48476         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48477         <wctype.h>, since the new wctype module should fix this.
48478         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48479         the wctype module should arrange for it.
48480         * lib/regex_internal.h: Likewise.
48481         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48482         since the wctype module should handle this now.
48483         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48484         * modules/fnmatch (Depends-on): Add wctype.
48485         * modules/quotearg (Depends-on): Likewise.
48486         * modules/regex (Depends-on): Likewise.
48487
48488 2006-12-19  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48491         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48492
48493 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48494
48495         * modules/savewd (Depends-on): Fix dependency on fcntl.
48496
48497 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48498
48499         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48500         conforms to C99, rather than relying on the user's environment
48501         setting of STDINT_H.
48502
48503 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48504         and Eric Blake  <ebb9@byu.net>
48505
48506         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48507         This is more consistent with the other defines here.
48508         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48509         Port to z/OS.  Problem reported by Paul Gilmartin.
48510         Change local vars to use gl_ prefix rather than ac_.
48511         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48512         with other defines.
48513         * modules/double-slash-root: New module.
48514         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48515         (Depends-on): Add double-slash-root.
48516         * MODULES.html.sh (File system functions): Mention new module.
48517
48518 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48519
48520         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48521         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48522         This is for the benefit of gzip, which doesn't do i18n.
48523
48524 2006-12-12  Jim Meyering  <jim@meyering.net>
48525
48526         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48527         Reported by Andreas Schwab <schwab@suse.de>.
48528
48529 2006-12-12  Bruno Haible  <bruno@clisp.org>
48530
48531         Merge these changes.
48532         2006-09-05  Bruno Haible  <bruno@clisp.org>
48533         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48534         iconv_alloc succeeded.
48535         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48536         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48537         test for " && dest " at the end - dest is always != NULL there. Call
48538         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48539         with 2xNULL arguments, also to flush the state storage. Handle the
48540         IRIX iconv behaviour. Realloc the final result, to throw away unused
48541         memory.
48542
48543 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48544
48545         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48546         and fchmodat unconditionally, since glibc 2.4 has them.
48547         Problem reported by Arkadiusz Miskiewicz.
48548
48549 2006-12-10  Bruno Haible  <bruno@clisp.org>
48550
48551         * gnulib-tool (func_import): Show the include files only for those
48552         modules that are copied and specified.
48553         Reported by Karl Berry.
48554
48555 2006-12-08  Jim Meyering  <jim@meyering.net>
48556
48557         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48558         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48559
48560         * build-aux/announce-gen: Add two new options, both optional:
48561         --bootstrap-tools=TOOL_LIST
48562               a comma-separated list of tools, e.g.,
48563               autoconf,automake,bison,gnulib
48564         --gnulib-snapshot-date=DATE
48565               if gnulib is in the bootstrap tool list,
48566               then report this as the snapshot date.
48567               If not specified, use the current date/time.
48568               If you specify a date here, be sure it's UTC.
48569
48570 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48571
48572         * tests/test-argp-2.sh: Fix test to match actual output.
48573         (func_compare): Fix sed script to be portable.
48574
48575 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48576
48577         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48578         workaround for this case.  It is not autoconfigured now; offhand
48579         it's hard to see how to autoconfigure it.
48580
48581 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48584         a directory that is about to be chowned.  Such a directory's
48585         initial file permissions should permit the owner only and this
48586         should not be changed until after the chown, since the group and
48587         other bits would be incorrect if they granted permission before
48588         the chown.
48589
48590         Fix porting problem for iswctype reported by Georg Schwarz in:
48591         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48592         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48593         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48594         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48595         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48596
48597 2006-12-03  Jim Meyering  <jim@meyering.net>
48598
48599         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48600         p->fts_statp may not yet be defined.
48601         (fts_read): Instead, set it in the caller, once p->fts_statp is
48602         sure to be defined, and corresponds to a top-level directory.
48603         This bug made du -x fail.  Here's the coreutils test case:
48604         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48605         Reported by Mike Frysinger.
48606
48607 2006-12-01  Jim Meyering  <jim@meyering.net>
48608
48609         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48610         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48611         Reported by Simon Josefsson.
48612
48613 2006-11-30  Jim Meyering  <jim@meyering.net>
48614
48615         * m4/warning.m4: Use the all-permissive copyright notice
48616         recommended by RMS (rather than LGPL).
48617         * m4/vararrays.m4: Likewise.
48618         * m4/flexmember.m4: Likewise.
48619
48620 2006-11-29  Bruno Haible  <bruno@clisp.org>
48621
48622         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48623         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48624         using +=.
48625         Reported by Simon Josefsson <simon@josefsson.org>.
48626
48627 2006-11-28  James Youngman <jay@gnu.org>
48628
48629         * README: Advise users that they might find the bug-gnulib@gnu.org
48630         and autotools-announce@gnu.org mailing lists useful.
48631
48632 2006-11-28  Bruno Haible  <bruno@clisp.org>
48633
48634         * m4/ptrdiff_max.m4: Remove file.
48635
48636 2006-11-21  Bruno Haible  <bruno@clisp.org>
48637
48638         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48639         _AC_COMPUTE_INT.
48640         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48641         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48642         _AC_COMPUTE_INT.
48643         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48644         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48645         _AC_COMPUTE_INT.
48646         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48647
48648 2006-11-28  Jim Meyering  <jim@meyering.net>
48649
48650         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48651         warning from "gcc -Wshadow" about shadowing the builtin.
48652
48653 2006-11-27  Bruno Haible  <bruno@clisp.org>
48654
48655         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48656         _AC_COMPUTE_INT.
48657         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48658
48659 2006-11-27  Bruno Haible  <bruno@clisp.org>
48660             Paul Eggert  <eggert@cs.ucla.edu>
48661
48662         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48663
48664 2006-11-26  Bruno Haible  <bruno@clisp.org>
48665
48666         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48667         noinst_LTLIBRARIES.
48668
48669 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48670             Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48673         if compiling with "gcc -ansi".
48674
48675 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48676
48677         Fix some incompatibilities with gcc -ansi -pedantic.
48678         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48679         if compiling pedantically with GCC, unless it's C99 or later.
48680         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48681         it mishandles gcc -ansi -pedantic as well.
48682         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48683         if gcc -pedantic.
48684         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48685         initializers for struct if -pedantic, unless it's C99 or later.
48686
48687 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48688
48689         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48690         Don't close an fd more than once. Identical atimes indicate
48691         success, not failure.
48692
48693 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48694
48695         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48696
48697 2006-11-23  Jim Meyering  <jim@meyering.net>
48698
48699         * build-aux/announce-gen: New file.  From coreutils.
48700
48701 2006-11-22  Jim Meyering  <jim@meyering.net>
48702
48703         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48704         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48705         (fts_read): Use a temporary to narrow the overused st_size member
48706         before using it in a switch statement.  Reported by Matthew Woehlke.
48707
48708         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48709         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48710
48711 2006-11-20  Bruno Haible  <bruno@clisp.org>
48712
48713         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48714         changequote instead of pairs of brackets.
48715         Reported by Andreas Schwab <schwab@suse.de>.
48716
48717 2006-11-21  Jim Meyering  <jim@meyering.net>
48718
48719         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48720         so as to remain compatible with older compilers.
48721         Patch from Michael Deutschmann.
48722
48723 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48724
48725         * MODULES.html.sh (File system functions): Add openat.
48726
48727         * lib/openat.h (rpl_fstatat): New macro, if
48728         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48729         (fstatat): Define to rpl_fstatat under the same conditions,
48730         unless COMPILING_FSTATAT.
48731         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48732         seems to have the bug.
48733         * lib/fstatat.c: New file.
48734         * modules/openat (Files): Add it.
48735
48736 2006-11-20  Bruno Haible  <bruno@clisp.org>
48737
48738         * Makefile: New file.
48739
48740 2006-11-20  Jim Meyering  <jim@meyering.net>
48741
48742         The beginnings of syntax-related checks for gnulib.
48743         * lib/Makefile: New file.
48744         * lib/t-idcache: New script.  Ensure that the two halves of
48745         idcache.c stay in sync.
48746
48747         * lib/idcache.c: Adjust comments in user- and group- portions to
48748         be more accurate, and to be consistent with one another.
48749
48750 2006-11-20  Jim Meyering  <jim@meyering.net>
48751
48752         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48753         continue using the flexible array member (thus, this module performs
48754         half as many malloc calls), with the addition that...
48755         (getgroup, getuser): Consistently record a non-match via an empty
48756         "name" string, and map an empty string match to a NULL return value.
48757         * modules/idcache (Depends-on): Re-add flexmember.
48758
48759         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48760         (getuidbyname, getgroup, getgidbyname): Likewise.
48761
48762         Use cleaner syntax: NULL rather than 0.
48763         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48764
48765 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48766
48767         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48768         It mishandled the case where the group was missing.
48769         Problem reported by Greg Schafer.
48770         * modules/idcache: Likewise.
48771
48772 2006-11-18  Jim Meyering  <jim@meyering.net>
48773
48774         * check-module (%exempt_header): Add exception for some
48775         conditionally-included headers.
48776
48777         * modules/i-ring (Depends-on): Add verify.
48778         (License): Change to LGPL.
48779
48780 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48781
48782         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48783         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48784         and inttostr.h.  Use snprintf rather than uinttostr, so that
48785         LGPLed code doesn't depend on GPLed.
48786
48787 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48788
48789         * modules/inline (License): Change from GPL to LGPL.
48790
48791 2006-11-17  Jim Meyering  <jim@meyering.net>
48792
48793         * modules/d-type (License): Switch to LGPL.
48794
48795 2006-11-15  Bruno Haible  <bruno@clisp.org>
48796
48797         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48798
48799 2006-11-15  Eric Blake  <ebb9@byu.net>
48800
48801         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48802         the module dependency.
48803
48804 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48805             Bruno Haible  <bruno@clisp.org>
48806
48807         * gnulib-tool (func_create_testdir): Add license consistency check.
48808
48809 2006-11-15  Eric Blake  <ebb9@byu.net>
48810
48811         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48812         random "(cached)" in configure output.
48813
48814 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48815
48816         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48817         test for conforming inttypes.h is both announced and cached.
48818
48819         * MODULES.html.sh (seen_modules, seen_files): New variables.
48820         (func_module): Rewrite to use a few less gnulib-tool and sed
48821         invocations.  Avoid a couple of quadratic algorithms for ...
48822         (missed_modules, missed_files): ... these, with ...
48823         (func_append, func_tmpdir): ... these new functions, from
48824         gnulib-tool.  Analogously, install traps for cleanup.
48825
48826         * tests/test-gc.c (main): Remove unused variables.
48827         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48828
48829 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48830
48831         * modules/inttostr (License): Change to LGPL.
48832
48833 2006-11-14  Eric Blake  <ebb9@byu.net>
48834
48835         * modules/tempname (License): Change to LGPL.
48836
48837 2006-11-14  Eric Blake  <ebb9@byu.net>
48838
48839         * doc/functions.texi (Function Portability): *printf functions on
48840         Cygwin now understand all POSIX size specifiers.
48841
48842 2006-11-14  Bruno Haible  <bruno@clisp.org>
48843
48844         * modules/c-ctype (License): Change to LGPL.
48845
48846 2006-11-12  Bruno Haible  <bruno@clisp.org>
48847
48848         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48849         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48850         for GNOME libraries, for which the include files are installed in
48851         subdirectories of $prefix/include.
48852
48853 2006-11-12  Bruno Haible  <bruno@clisp.org>
48854
48855         * m4/lib-link.m4: Require at least autoconf-2.54.
48856         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48857         name to underscores for the --with option.
48858
48859 2006-11-13  Bruno Haible  <bruno@clisp.org>
48860
48861         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48862         the tests directory.
48863         Reported by Ralf Wildenhues.
48864
48865 2006-11-13  Bruno Haible  <bruno@clisp.org>
48866
48867         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48868         (func_emit_initmacro_end): Undo the override here.
48869         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48870         Works around the famous automake error in coreutils.
48871
48872 2006-11-13  Eric Blake  <ebb9@byu.net>
48873
48874         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48875         element, not its node.
48876
48877 2006-11-12  Bruno Haible  <bruno@clisp.org>
48878
48879         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48880         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48881
48882 2006-11-12  Bruno Haible  <bruno@clisp.org>
48883
48884         * gnulib-tool: New option --local-symlink.
48885         (func_usage): Document it.
48886         (lsymbolic): New variable.
48887         (func_import, func_create_testdir): If --symlink was not specified,
48888         test whether --local-symlink was specified and the file comes from
48889         the local_gnulib_dir.
48890
48891 2006-11-12  Bruno Haible  <bruno@clisp.org>
48892
48893         * gnulib-tool (func_ln): New function.
48894         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48895
48896 2006-11-12  Bruno Haible  <bruno@clisp.org>
48897
48898         Finish support for source files in subdirectories.
48899         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48900         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48901         AUTOMAKE_OPTIONS.
48902         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48903
48904 2006-11-12  Bruno Haible  <bruno@clisp.org>
48905
48906         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48907         EXTRA_lib_SOURCES augmentation.
48908         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48909
48910 2006-11-12  Jim Meyering  <jim@meyering.net>
48911
48912         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48913         file descriptors.  This also averts a failure on systems with
48914         native openat support when a traversed directory lacks "x" access.
48915         * lib/fts_.h: Include "i-ring.h"
48916         (struct FTS) [fts_fd_ring]: New member.
48917         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48918         (FCHDIR): Add parentheses.
48919         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48920         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48921         When descending, rather than simply closing the previous
48922         fts_cwd_fd value, push that file descriptor onto the ring.
48923         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48924         (fts_open): Initialize the new fd_ring member.
48925         (fts_close): Clear the ring.
48926         (fts_safe_changedir): When possible, use our new fd_ring to skip
48927         the diropen and fstat and dev/ino comparison that would normally
48928         accompany a virtual `chdir ("..")'.
48929
48930         * modules/fts (Depends-on): Add i-ring.
48931         * modules/i-ring: New module.
48932         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48933         * m4/i-ring.m4: New file.
48934
48935 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48936
48937         * gnulib-tool (func_create_testdir): Fix replacement of
48938         `build-aux' in configure.ac.  Run autotools in gltests
48939         subdirectory.
48940         (func_create_testdir, func_create_megatestdir, test): There is
48941         no need for '--force' in most autotool invocations in a new
48942         tree.  Actually fail the whole test if any of the tools, or the
48943         configure or make stages fail.
48944
48945         Sync from Automake.
48946         * build-aux/gnupload: Revert last change.  Add pointer to upload
48947         instructions of the GNU Maintenance Instructions.
48948         Suggestion by Karl Berry.
48949
48950 2006-11-10  Jim Meyering  <jim@meyering.net>
48951
48952         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48953
48954 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48955
48956         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48957         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48958         (bind_textdomain_codeset) [! ENABLE_NLS]:
48959         Evaluate all the arguments.  That way, callers get compatible behavior
48960         if the arguments have side effects.  Also, it avoids some GCC
48961         diagnostics in some cases; Joel E. Denny reported problems when Bison
48962         was configured with --enable-gcc-warnigs.
48963
48964 2006-11-10  Jim Meyering  <jim@meyering.net>
48965
48966         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48967         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48968         account.
48969
48970 2006-11-10  Jim Meyering  <jim@meyering.net>
48971
48972         * modules/inline: New file/module.
48973         * modules/xalloc (Files): Remove m4/inline.m4.
48974         (Depends-on): Add inline, instead.
48975         * modules/oset: Likewise.
48976         * modules/list: Likewise.
48977
48978 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
48981         Problem reported by Matthew Woehlke.
48982
48983 2006-11-09  Bruno Haible  <bruno@clisp.org>
48984
48985         * lib/tempname.c (gen_tempname): Remove variant that invokes
48986         __gen_tempname.
48987         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48988         __gen_tempname.
48989
48990 2006-11-08  Bruno Haible  <bruno@clisp.org>
48991
48992         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48993         to 'yes' instead of 'cross-compiling'.
48994
48995 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48996
48997         * lib/quotearg.h (quotearg_free): New decl.
48998         * lib/quotearg.c (quotearg_free): New function.
48999         (slot0, nslots, slotvec0, slotvec):
49000         Now file-scope so that quotearg_free can get at them.
49001
49002 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49003
49004         Sync from Automake.
49005         * build-aux/gnupload: Add missing 'gnu' to example URL.
49006         Report by Karl Berry.
49007
49008 2006-11-08  Bruno Haible  <bruno@clisp.org>
49009
49010         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
49011         Suggested by Paul Eggert.
49012
49013 2006-11-08  Jim Meyering  <jim@meyering.net>
49014
49015         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
49016         It's already included if !_LIBC.
49017         (fts_safe_changedir): Add a comment.
49018
49019 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49020
49021         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
49022         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
49023         Matthew Woehlke.
49024
49025         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
49026         definitions up, to avoid colliding with change below.
49027         (static_inline) [HAVE_INLINE]: New macro.
49028         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
49029         Provide extern decls when !HAVE_INLINE.  Do not define unless
49030         static_inline is defined, either by us or by xmalloc.c.  Use
49031         static_inline rather than static inline.
49032         (XCALLOC): Optimize sizeof(T) = 1 case.
49033         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
49034
49035 2006-11-07  Bruno Haible  <bruno@clisp.org>
49036
49037         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
49038         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
49039         AC_C_INLINE.
49040         * modules/xalloc (Files): Add m4/inline.m4.
49041
49042 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49043
49044         * README: Fix typo.
49045         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
49046         (Miscellanous Notes): ...from this.
49047
49048 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49049
49050         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
49051         Mention that offsetof should be used instead of sizeof.
49052         From Bruno Haible.
49053
49054 2006-11-07  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
49057
49058 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49059
49060         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49061         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
49062         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49063         (gl_tree_add_before, gl_tree_add_after):
49064         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
49065         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
49066         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49067         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
49068         (gl_linked_add_after, gl_linked_add_at): Likewise.
49069         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
49070         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49071         (gl_tree_add_before, gl_tree_add_after): Likewise.
49072         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
49073         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
49074         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
49075
49076 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49077
49078         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49079
49080 2006-11-06  Bruno Haible  <bruno@clisp.org>
49081
49082         * m4/inline.m4: New file.
49083         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49084         * modules/list (Files): Add m4/inline.m4.
49085         * modules/oset (Files): Likewise.
49086
49087 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49088
49089         * lib/idcache.c: Include <stddef.h>, for offsetof.
49090         (struct userid.name): Change from char * to a flexible array member.
49091         All uses changed.
49092         * modules/idcache (Depends-on): Add flexmember.
49093
49094         * MODULES.html.sh (Core language properties): New module flexmember.
49095         * modules/flexmember, m4/flexmember.m4: New files.
49096
49097         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49098         inline functions that are identical with the old xnmalloc_inline,
49099         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49100         that we can avoid some unnecessary integer multiplications and
49101         divisions in the common case where the element size is known at
49102         compile time.
49103         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49104         needed.
49105         (xnboundedmalloc): Remove.
49106         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49107         arguments, for consistency with rest of this header.
49108         (xcharalloc): Rewrite using XNMALLOC.
49109         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49110         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49111         versions have been moved to lib/xalloc.h and renamed to be the
49112         non-*_inline versions.
49113         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49114         and xnrealloc functions, since those functions are now inline and
49115         now call us.
49116         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49117         renaming described above.
49118         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49119         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49120         captures the dependency in AC_C_INLINE.
49121
49122         New module canonicalize-lgpl, proposed by Charles Wilson in
49123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49124         with a few small changes afterwards.
49125         * MODULES.html.sh (File system functions): New module
49126         canonicalize-lgpl.
49127         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49128         and canonicalize_file_name.
49129         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49130         * modules/canonicalize-lgpl: New files.
49131
49132 2006-11-05  Bruno Haible  <bruno@clisp.org>
49133
49134         * gnulib-tool (func_import, func_create_testdir): Create directories
49135         also for files in subdirectories of lib/.
49136
49137 2006-11-05  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49140         ANSI C compliant.
49141
49142 2006-11-03  Bruno Haible  <bruno@clisp.org>
49143
49144         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49145         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49146         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49147         (xnboundedmalloc): New inline function.
49148         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49149         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49150         xmalloc.
49151         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49152         xmalloc.
49153         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49154         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49155         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49156         xmalloc.
49157         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49158         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49159         xmalloc.
49160         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49161         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49162         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49163         xmalloc.
49164         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49165         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49166         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49167         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49168         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49169         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49170         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49171
49172 2006-11-03  Bruno Haible  <bruno@clisp.org>
49173
49174         * lib/c-ctype.h [C++]: Define functions without name mangling.
49175         * lib/fwriteerror.h [C++]: Likewise.
49176         * lib/gcd.h [C++]: Likewise.
49177         * lib/linebreak.h [C++]: Likewise.
49178
49179 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49180
49181         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49182         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49183         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49184         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49185         Check for functions and headers just once.
49186         Check for declaration of canonicalize_file_name.
49187         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49188
49189 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49190
49191         * gnulib-tool (func_import): Fix typo in actioncmd.
49192
49193 2006-11-02  Bruno Haible  <bruno@clisp.org>
49194
49195         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49196         newline sequence in the Makefile.am snippet as a space, like "make"
49197         does.
49198         Reported by Roger Persson <perrog@gmail.com>.
49199
49200 2006-11-01  Bruno Haible  <bruno@clisp.org>
49201
49202         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49203         already declared in <string.h>.
49204         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49205
49206 2006-11-01  Bruno Haible  <bruno@clisp.org>
49207
49208         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49209         * lib/strcase.h: Include <string.h>.
49210         (strcasecmp): Define to rpl_strcasecmp here.
49211
49212 2006-11-01  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49215
49216 2006-11-01  Eric Blake  <ebb9@byu.net>
49217
49218         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49219
49220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49221
49222 2006-10-29  Bruno Haible  <bruno@clisp.org>
49223
49224         Make it compile in C++ mode.
49225         * lib/full-write.c (full_rw): Add a cast.
49226
49227 2006-11-01  Bruno Haible  <bruno@clisp.org>
49228
49229         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49230         be POSIX compliant.
49231         Reported by Roger Persson <perrog@gmail.com>.
49232
49233 2006-11-01  Eric Blake  <ebb9@byu.net>
49234
49235         * lib/getopt_.h: Fix comments.
49236
49237 2006-10-31  Eric Blake  <ebb9@byu.net>
49238
49239         * modules/tmpdir (Depends-on): Add sys_stat.
49240         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49241         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49242         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49243         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49244         tempname.
49245
49246 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49247
49248         Avoid some C++ diagnostics reported by Bruno Haible.
49249         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49250         xmalloc.
49251         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49252         (struct slotvec): Move to top level.
49253         (quotearg_n_options): Rewrite to avoid xmalloc.
49254         * lib/xalloc.h (xcharalloc): New function.
49255         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49256         [defined __cplusplus]: Add function template that provides result
49257         type propagation.  This part of the change is from Bruno Haible.
49258
49259 2006-10-29  Bruno Haible  <bruno@clisp.org>
49260
49261         Make it compile in C++ mode.
49262         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49263         * lib/strnlen1.c (strnlen1): Cast memchr result.
49264         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49265         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49266         (create_temp_dir): Rename local variable 'template'.
49267         (compile_csharp_using_sscli): Add cast.
49268         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49269         * lib/findprog.c (find_in_path): Likewise.
49270         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49271         * lib/wait-process.c (register_slave_subprocess): Likewise.
49272
49273 2006-10-22  Bruno Haible  <bruno@clisp.org>
49274
49275         * modules/tsearch: New file.
49276         * lib/tsearch.h: New file.
49277         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49278         * m4/tsearch.m4: New file.
49279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49280
49281 2006-10-29  Eric Blake  <ebb9@byu.net>
49282
49283         * lib/arcfour.c: Assume config.h.
49284         * lib/arctwo.c: Likewise.
49285         * lib/base64.c: Likewise.
49286         * lib/check-version.c: Likewise.
49287         * lib/crc.c: Likewise.
49288         * lib/des.c: Likewise.
49289         * lib/gc-gnulib.c: Likewise.
49290         * lib/gc-libgcrypt.c: Likewise.
49291         * lib/gc-pbkdf2-sha1.c: Likewise.
49292         * lib/getaddrinfo.c: Likewise.
49293         * lib/getdelim.c: Likewise.
49294         * lib/getline.c: Likewise.
49295         * lib/hmac-md5.c: Likewise.
49296         * lib/hmac-sha1.c: Likewise.
49297         * lib/iconvme.c: Likewise.
49298         * lib/md2.c: Likewise.
49299         * lib/md4.c: Likewise.
49300         * lib/memxor.c: Likewise.
49301         * lib/read-file.c: Likewise.
49302         * lib/readline.c: Likewise.
49303         * lib/rijndael-alg-fst.c: Likewise.
49304         * lib/rijndael-api-fst.c: Likewise.
49305         * lib/xgetdomainname.c: Likewise.
49306
49307 2006-10-28  Eric Blake  <ebb9@byu.net>
49308
49309         * lib/xstrndup.c: Assume config.h.
49310
49311 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49312
49313         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49314         stat-macros.h is now for our own macros, whereas stat_h is for
49315         macros in the <sys/stat.h> name space.
49316         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49317         (STAT_MACROS_H): Remove.
49318         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49319         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49320         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49321         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49322         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49323         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49324         Move these macros to ...
49325         * lib/stat_.h: here.  Don't include stat-macros.h.
49326         * lib/canonicalize.c: Don't include stat-macros.h.
49327         * lib/chown.c: Likewise.
49328         * lib/euidaccess.c: Likewise.
49329         * lib/file-type.c: Likewise.
49330         * lib/filemode.c: Likewise.
49331         * lib/glob.c: Likewise.
49332         * lib/isapipe.c: Likewise.
49333         * lib/lchown.c: Likewise.
49334         * lib/lstat.c: Likewise.
49335         * lib/mkdir-p.c: Likewise.
49336         * lib/rmdir.c: Likewise.
49337         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49339         unless mkdir isn't declared, to speed up 'configure'.
49340         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49341         would define all the S_* symbols.
49342         * modules/canonicalize (Depends-on):
49343         Depend on sys_stat, not stat-macros.
49344         * modules/chown: Likewise.
49345         * modules/euidaccess: Likewise.
49346         * modules/filemode: Likewise.
49347         * modules/file-type: Likewise.
49348         * modules/glob: Likewise.
49349         * modules/isapipe: Likewise.
49350         * modules/lchown: Likewise.
49351         * modules/lstat: Likewise.
49352         * modules/mkancesdirs: Likewise.
49353         * modules/rmdir: Likewise.
49354         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49355         * modules/modechange: Likewise.
49356         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49357         (configure.ac): Remove gl_STAT_MACROS.
49358         * modules/sys_stat (Depends-on): Remove stat-macros.
49359
49360 2006-10-27  Bruno Haible  <bruno@clisp.org>
49361
49362         * m4/signed.m4: Remove file.
49363         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49364         invocation.
49365         * modules/vasnprintf (Files): Remove m4/signed.m4.
49366
49367 2006-10-27  Bruno Haible  <bruno@clisp.org>
49368
49369         Update to GNU gettext 0.16.
49370         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49371         m4/inttypes-h.m4, m4/signed.m4.
49372         * m4/gettext.m4: Update to GNU gettext 0.16.
49373         * m4/intl.m4: New file, from GNU gettext.
49374         * m4/intldir.m4: New file, from GNU gettext.
49375         * config/srclist.txt: Update
49376
49377 2006-10-27  Eric Blake  <ebb9@byu.net>
49378
49379         * MODULES.html.sh: Document tempname.
49380         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49381         dependencies.
49382         (Files): Move lib/tempname.c...
49383         * modules/tempname: ...to this new module.
49384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49385         (gl_PREREQ_TEMPNAME): Move...
49386         * m4/tempname.m4: ...to this new file.
49387         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49388         * modules/sys_stat (Depends-on): Add stat-macros.
49389         * lib/stat_.h (includes): Pick up stat macros.
49390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49391         if stat macros are broken.
49392         * lib/tempname.c (includes): No need to include "stat-macros.h".
49393         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49394         (direxists, __path_search) [!_LIBC]: Don't compile these in
49395         gnulib; the tmpdir module covers that.
49396         * lib/tempname.h: New file.
49397
49398 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49399
49400         * COPYING: Explain how gnulib-tool converts licence headers.
49401         Almost all wording by Eric Blake.
49402
49403 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49404
49405         * lib/mbchar.h (is_basic_table): Make read-only.
49406         * lib/mbchar.c (is_basic_table): Likewise.
49407         Reported by John Darrington.
49408
49409 2006-10-25  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/progname.h (set_program_name): Undefine before defining.
49412
49413 2006-10-25  Bruno Haible  <bruno@clisp.org>
49414
49415         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49416         false for non-gcc C++ compilers.
49417         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49418
49419 2006-10-24  Bruno Haible  <bruno@clisp.org>
49420
49421         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49422         iconv implementations like Irix iconv.
49423
49424 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49425
49426         * modules/vararrays: New file.
49427         * m4/vararrays.m4: New file, taken from diffutils.
49428         * MODULES.html.sh: New module vararrays.
49429
49430 2006-10-24  Karl Berry  <karl@gnu.org>
49431
49432         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49433         Don't call GNU Unix.
49434
49435 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49436
49437         * users.txt: Add Libtool.
49438
49439         Sync from Libtool:
49440
49441         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49442
49443         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49444         to gnulib's policy of including config.h unconditionally.
49445
49446 2006-10-24  Bruno Haible  <bruno@clisp.org>
49447
49448         * modules/wcwidth (Files): Add m4/wint_t.m4.
49449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49450         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49451
49452 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49453
49454         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49455         to pacify GCC with some -W flags enabled.  Problem reported by
49456         Bruno Haible.
49457
49458 2006-10-24  Jim Meyering  <jim@meyering.net>
49459
49460         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49461         Reported by Karl Berry.
49462
49463 2006-10-23  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49466
49467 2006-10-24  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/gl_list.h: Use C comment style, not C++ comment style.
49470
49471 2006-10-23  Eric Blake  <ebb9@byu.net>
49472
49473         * lib/getaddrinfo.c (includes): Add missing include.
49474
49475 2006-10-23  Bruno Haible  <bruno@clisp.org>
49476             Paul Eggert  <eggert@cs.ucla.edu>
49477
49478         Ability to rename obstack_free.
49479         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49480         obstack_free.
49481         (obstack_free): Invoke the __obstack_free macro.
49482         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49483
49484 2006-10-23  Bruno Haible  <bruno@clisp.org>
49485             Paul Eggert  <eggert@cs.ucla.edu>
49486
49487         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49488         __argc, __argv from the declaration. (They are defined as macros on
49489         mingw.)
49490
49491 2006-10-22  Bruno Haible  <bruno@clisp.org>
49492
49493         * doc/gnulib-intro.texi: New file.
49494         * doc/gnulib.texi: Include it.
49495
49496 2006-10-21  Bruno Haible  <bruno@clisp.org>
49497
49498         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49499         "Introduction", "Miscellanous Notes", "Particular Modules".
49500
49501 2006-10-21  Bruno Haible  <bruno@clisp.org>
49502
49503         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49504         Change mostlyclean-local rule to avoid sh syntax error from bash
49505         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49506
49507 2006-10-23  Jim Meyering  <jim@meyering.net>
49508
49509         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49510         in place of snprintf.
49511
49512         * modules/inttostr (Files): Add lib/uinttostr.c.
49513         * lib/uinttostr.c (inttostr): New file/function.
49514         * lib/inttostr.h (uinttostr): Declare.
49515         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49516         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49517         Add uinttostr.
49518         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49519
49520 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49521
49522         * lib/canonicalize.c (ELOOP): Define if not already defined.
49523         Problem reported by Bruno Haible in
49524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49525
49526 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49527
49528         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49529         Problem reported by Perry Smith and Ville Laurikari.
49530
49531         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49532         uses.
49533
49534 2006-10-19  Bruno Haible  <bruno@clisp.org>
49535
49536         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49537         for mingw.
49538
49539 2006-10-19  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49542         Needed for mingw.
49543
49544 2006-10-19  Bruno Haible  <bruno@clisp.org>
49545
49546         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49547
49548 2006-10-19  Bruno Haible  <bruno@clisp.org>
49549
49550         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49551         it.
49552
49553 2006-10-19  Bruno Haible  <bruno@clisp.org>
49554
49555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49556         invocation.
49557
49558 2006-10-19  Bruno Haible  <bruno@clisp.org>
49559
49560         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49561         mountlist by default.
49562
49563 2006-10-16  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/c-strstr.c: Include c-strstr.h.
49566
49567 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49568
49569         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49570         in a slash.
49571
49572 2006-10-18  Bruno Haible  <bruno@clisp.org>
49573
49574         * lib/lock.h [C++]: Wrap definitions in extern "C".
49575
49576 2006-10-18  Bruno Haible  <bruno@clisp.org>
49577
49578         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49579         gl_LIBOBJS list.
49580
49581 2006-10-18  Bruno Haible  <bruno@clisp.org>
49582
49583         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49584
49585 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49586
49587         * lib/xstrtol.h: Include gettext.h.
49588         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49589         Problem reported by Eric Blake.
49590         * modules/xstrtol (Depends-on): Add gettext-h.
49591
49592 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49593
49594         * lib/strftime.c (advance): New macro.
49595         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49596         incomplete type, so you can't add 0 to it.  Problem and patch
49597         reported by Eelco Dolstra for dietlibc.
49598
49599 2006-10-18  Jim Meyering  <jim@meyering.net>
49600
49601         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49602         type for a local, and rename it: s/up/user_proc/.
49603
49604 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49605
49606         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49607         READ_UTMP_USER_PROCESS.
49608         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49609
49610 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49611
49612         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49613         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49614
49615 2006-10-17  Eric Blake  <ebb9@byu.net>
49616
49617         * lib/sigprocmask.c (sigprocmask): Fix typo.
49618
49619         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49620
49621         * modules/clean-temp (Makefile.am): Don't add to make output...
49622         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49623         config.h.
49624
49625 2006-10-17  Bruno Haible  <bruno@clisp.org>
49626
49627         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49628         differently if DEFAULT_TEXT_DOMAIN is set.
49629
49630 2006-10-16  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/clean-temp.c: Include fwriteerror.h.
49633
49634 2006-10-16  Bruno Haible  <bruno@clisp.org>
49635
49636         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49637
49638 2006-10-16  Bruno Haible  <bruno@clisp.org>
49639
49640         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49641         * lib/sigprocmask.h: Include <sys/types.h>.
49642         (sigset_t): Use the system's definition if present.
49643
49644 2006-10-17  Eric Blake  <ebb9@byu.net>
49645
49646         * lib/xvasprintf.c (includes): Assume config.h.
49647         * lib/xasprintf.c (includes): Likewise.
49648
49649 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49650
49651         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49652         at least as wide as intmax_t.
49653
49654 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49655
49656         (Imported from Automake.)
49657         * build-aux/gnupload: Update to version 1.1 of directive file.
49658
49659 2006-10-16  Eric Blake  <ebb9@byu.net>
49660
49661         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49662         match Automake 1.10a.
49663
49664 2006-10-14  Bruno Haible  <bruno@clisp.org>
49665
49666         * modules/sigprocmask: New file.
49667         * lib/sigprocmask.h: New file.
49668         * lib/sigprocmask.c: New file.
49669         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49670         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49671         request sigprocmask.o.
49672         (gl_PREREQ_SIGPROCMASK): New macro.
49673         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49674         (Depends-on): Add sigprocmask.
49675         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49676         gt_SIGNALBLOCKING. Test for 'raise' only once.
49677         * lib/fatal-signal.c: Include sigprocmask.h.
49678         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49679         unblock_fatal_signals): Define always.
49680         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49681         sigprocmask.
49682
49683 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49684
49685         Sync from Automake.
49686         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49687         which incorrectly sets the mode of an existing destination
49688         directory.  In some cases the unpatched install-sh could do the
49689         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49690         system.  We hope this is rare in practice, but it's clearly worth
49691         fixing.  Problem reported by Alex Unleashed in
49692         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49693         Also, don't bother to check for -m bugs unless we're using -m;
49694         suggested by Stepan Kasal.
49695
49696 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49697
49698         Sync from Automake.
49699         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49700         `-c' flag, so they appear at the same position as in %FASTDEP%
49701         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49702         which ignores unknown options only after the first non-option.
49703         Bug report against M4 by Nelson H. F. Beebe.
49704
49705 2006-10-13  Jim Meyering  <jim@meyering.net>
49706
49707         Fix a bug in yesterday's change.
49708         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49709         p->fts_statp->st_dev would be used uninitialized.
49710         Ensures that we always call fts_stat on the very first entry.
49711         Miklos Szeredi reported that find -xdev stopped working.
49712
49713 2006-10-12  Bruno Haible  <bruno@clisp.org>
49714
49715         * gnulib-tool (func_get_automake_snippet): Append an automatically
49716         computed EXTRA_DIST augmentation.
49717         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49718         * modules/alloca-opt (Makefile.am): Likewise.
49719         * modules/allocsa (Makefile.am): Likewise.
49720         * modules/arcfour (Makefile.am): Likewise.
49721         * modules/arctwo (Makefile.am): Likewise.
49722         * modules/argmatch (Makefile.am): Likewise.
49723         * modules/argz (Makefile.am): Likewise.
49724         * modules/atexit (Makefile.am): Likewise.
49725         * modules/backupfile (Makefile.am): Likewise.
49726         * modules/byteswap (Makefile.am): Likewise.
49727         * modules/c-strtod (Makefile.am): Likewise.
49728         * modules/c-strtold (Makefile.am): Likewise.
49729         * modules/calloc (Makefile.am): Likewise.
49730         * modules/canon-host (Makefile.am): Likewise.
49731         * modules/canonicalize (Makefile.am): Likewise.
49732         * modules/chdir-long (Makefile.am): Likewise.
49733         * modules/chdir-safer (Makefile.am): Likewise.
49734         * modules/check-version (Makefile.am): Likewise.
49735         * modules/chown (Makefile.am): Likewise.
49736         * modules/cloexec (Makefile.am): Likewise.
49737         * modules/close-stream (Makefile.am): Likewise.
49738         * modules/closeout (Makefile.am): Likewise.
49739         * modules/crc (Makefile.am): Likewise.
49740         * modules/csharpexec (Makefile.am): Likewise.
49741         * modules/cycle-check (Makefile.am): Likewise.
49742         * modules/des (Makefile.am): Likewise.
49743         * modules/dev-ino (Makefile.am): Likewise.
49744         * modules/dirfd (Makefile.am): Likewise.
49745         * modules/dirname (Makefile.am): Likewise.
49746         * modules/dup2 (Makefile.am): Likewise.
49747         * modules/eealloc (Makefile.am): Likewise.
49748         * modules/error (Makefile.am): Likewise.
49749         * modules/euidaccess (Makefile.am): Likewise.
49750         * modules/exclude (Makefile.am): Likewise.
49751         * modules/exitfail (Makefile.am): Likewise.
49752         * modules/fcntl-safer (Makefile.am): Likewise.
49753         * modules/fcntl (Makefile.am): Likewise.
49754         * modules/file-type (Makefile.am): Likewise.
49755         * modules/fileblocks (Makefile.am): Likewise.
49756         * modules/filemode (Makefile.am): Likewise.
49757         * modules/filenamecat (Makefile.am): Likewise.
49758         * modules/fnmatch (Makefile.am): Likewise.
49759         * modules/fopen-safer (Makefile.am): Likewise.
49760         * modules/fpending (Makefile.am): Likewise.
49761         * modules/fprintftime (Makefile.am): Likewise.
49762         * modules/free (Makefile.am): Likewise.
49763         * modules/fsusage (Makefile.am): Likewise.
49764         * modules/ftruncate (Makefile.am): Likewise.
49765         * modules/fts (Makefile.am): Likewise.
49766         * modules/gc-arcfour (Makefile.am): Likewise.
49767         * modules/gc-des (Makefile.am): Likewise.
49768         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49769         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49770         * modules/gc-md4 (Makefile.am): Likewise.
49771         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49772         * modules/gc-sha1 (Makefile.am): Likewise.
49773         * modules/gc (Makefile.am): Likewise.
49774         * modules/getaddrinfo (Makefile.am): Likewise.
49775         * modules/getcwd (Makefile.am): Likewise.
49776         * modules/getdelim (Makefile.am): Likewise.
49777         * modules/getdomainname (Makefile.am): Likewise.
49778         * modules/getgroups (Makefile.am): Likewise.
49779         * modules/gethostname (Makefile.am): Likewise.
49780         * modules/gethrxtime (Makefile.am): Likewise.
49781         * modules/getline (Makefile.am): Likewise.
49782         * modules/getloadavg (Makefile.am): Likewise.
49783         * modules/getlogin_r (Makefile.am): Likewise.
49784         * modules/getndelim2 (Makefile.am): Likewise.
49785         * modules/getopt (Makefile.am): Likewise.
49786         * modules/getpagesize (Makefile.am): Likewise.
49787         * modules/getpass-gnu (Makefile.am): Likewise.
49788         * modules/getpass (Makefile.am): Likewise.
49789         * modules/getsubopt (Makefile.am): Likewise.
49790         * modules/gettime (Makefile.am): Likewise.
49791         * modules/gettimeofday (Makefile.am): Likewise.
49792         * modules/getugroups (Makefile.am): Likewise.
49793         * modules/getusershell (Makefile.am): Likewise.
49794         * modules/glob (Makefile.am): Likewise.
49795         * modules/group-member (Makefile.am): Likewise.
49796         * modules/hard-locale (Makefile.am): Likewise.
49797         * modules/hash (Makefile.am): Likewise.
49798         * modules/hmac-md5 (Makefile.am): Likewise.
49799         * modules/hmac-sha1 (Makefile.am): Likewise.
49800         * modules/human (Makefile.am): Likewise.
49801         * modules/idcache (Makefile.am): Likewise.
49802         * modules/imaxabs (Makefile.am): Likewise.
49803         * modules/imaxdiv (Makefile.am): Likewise.
49804         * modules/inet_ntop (Makefile.am): Likewise.
49805         * modules/inet_pton (Makefile.am): Likewise.
49806         * modules/intprops (Makefile.am): Likewise.
49807         * modules/inttostr (Makefile.am): Likewise.
49808         * modules/inttypes (Makefile.am): Likewise.
49809         * modules/isapipe (Makefile.am): Likewise.
49810         * modules/javaversion (Makefile.am): Likewise.
49811         * modules/lchmod (Makefile.am): Likewise.
49812         * modules/lchown (Makefile.am): Likewise.
49813         * modules/localcharset (Makefile.am): Likewise.
49814         * modules/long-options (Makefile.am): Likewise.
49815         * modules/lstat (Makefile.am): Likewise.
49816         * modules/malloc (Makefile.am): Likewise.
49817         * modules/mathl (Makefile.am): Likewise.
49818         * modules/mbchar (Makefile.am): Likewise.
49819         * modules/md2 (Makefile.am): Likewise.
49820         * modules/md4 (Makefile.am): Likewise.
49821         * modules/md5 (Makefile.am): Likewise.
49822         * modules/memcasecmp (Makefile.am): Likewise.
49823         * modules/memchr (Makefile.am): Likewise.
49824         * modules/memcmp (Makefile.am): Likewise.
49825         * modules/memcoll (Makefile.am): Likewise.
49826         * modules/memcpy (Makefile.am): Likewise.
49827         * modules/memmem (Makefile.am): Likewise.
49828         * modules/memmove (Makefile.am): Likewise.
49829         * modules/mempcpy (Makefile.am): Likewise.
49830         * modules/memrchr (Makefile.am): Likewise.
49831         * modules/memset (Makefile.am): Likewise.
49832         * modules/memxor (Makefile.am): Likewise.
49833         * modules/mkancesdirs (Makefile.am): Likewise.
49834         * modules/mkdir-p (Makefile.am): Likewise.
49835         * modules/mkdir (Makefile.am): Likewise.
49836         * modules/mkdtemp (Makefile.am): Likewise.
49837         * modules/mkstemp (Makefile.am): Likewise.
49838         * modules/mktime (Makefile.am): Likewise.
49839         * modules/modechange (Makefile.am): Likewise.
49840         * modules/mountlist (Makefile.am): Likewise.
49841         * modules/nanosleep (Makefile.am): Likewise.
49842         * modules/obstack (Makefile.am): Likewise.
49843         * modules/openat (Makefile.am): Likewise.
49844         * modules/pagealign_alloc (Makefile.am): Likewise.
49845         * modules/pathmax (Makefile.am): Likewise.
49846         * modules/physmem (Makefile.am): Likewise.
49847         * modules/poll (Makefile.am): Likewise.
49848         * modules/posixtm (Makefile.am): Likewise.
49849         * modules/posixver (Makefile.am): Likewise.
49850         * modules/putenv (Makefile.am): Likewise.
49851         * modules/quote (Makefile.am): Likewise.
49852         * modules/quotearg (Makefile.am): Likewise.
49853         * modules/raise (Makefile.am): Likewise.
49854         * modules/read-file (Makefile.am): Likewise.
49855         * modules/readline (Makefile.am): Likewise.
49856         * modules/readlink (Makefile.am): Likewise.
49857         * modules/readtokens (Makefile.am): Likewise.
49858         * modules/readutmp (Makefile.am): Likewise.
49859         * modules/realloc (Makefile.am): Likewise.
49860         * modules/regex (Makefile.am): Likewise.
49861         * modules/rename-dest-slash (Makefile.am): Likewise.
49862         * modules/rename (Makefile.am): Likewise.
49863         * modules/rijndael (Makefile.am): Likewise.
49864         * modules/rmdir (Makefile.am): Likewise.
49865         * modules/rpmatch (Makefile.am): Likewise.
49866         * modules/safe-read (Makefile.am): Likewise.
49867         * modules/safe-write (Makefile.am): Likewise.
49868         * modules/same-inode (Makefile.am): Likewise.
49869         * modules/same (Makefile.am): Likewise.
49870         * modules/save-cwd (Makefile.am): Likewise.
49871         * modules/savedir (Makefile.am): Likewise.
49872         * modules/setenv (Makefile.am): Likewise.
49873         * modules/settime (Makefile.am): Likewise.
49874         * modules/sha1 (Makefile.am): Likewise.
49875         * modules/sig2str (Makefile.am): Likewise.
49876         * modules/snprintf (Makefile.am): Likewise.
49877         * modules/stat-macros (Makefile.am): Likewise.
49878         * modules/stat-time (Makefile.am): Likewise.
49879         * modules/stdbool (Makefile.am): Likewise.
49880         * modules/stdint (Makefile.am): Likewise.
49881         * modules/stdlib-safer (Makefile.am): Likewise.
49882         * modules/stpcpy (Makefile.am): Likewise.
49883         * modules/stpncpy (Makefile.am): Likewise.
49884         * modules/strcase (Makefile.am): Likewise.
49885         * modules/strcasestr (Makefile.am): Likewise.
49886         * modules/strchrnul (Makefile.am): Likewise.
49887         * modules/strcspn (Makefile.am): Likewise.
49888         * modules/strdup (Makefile.am): Likewise.
49889         * modules/strerror (Makefile.am): Likewise.
49890         * modules/strftime (Makefile.am): Likewise.
49891         * modules/strndup (Makefile.am): Likewise.
49892         * modules/strnlen (Makefile.am): Likewise.
49893         * modules/strpbrk (Makefile.am): Likewise.
49894         * modules/strsep (Makefile.am): Likewise.
49895         * modules/strstr (Makefile.am): Likewise.
49896         * modules/strtod (Makefile.am): Likewise.
49897         * modules/strtoimax (Makefile.am): Likewise.
49898         * modules/strtok_r (Makefile.am): Likewise.
49899         * modules/strtol (Makefile.am): Likewise.
49900         * modules/strtoll (Makefile.am): Likewise.
49901         * modules/strtoul (Makefile.am): Likewise.
49902         * modules/strtoull (Makefile.am): Likewise.
49903         * modules/strtoumax (Makefile.am): Likewise.
49904         * modules/strverscmp (Makefile.am): Likewise.
49905         * modules/sys_socket (Makefile.am): Likewise.
49906         * modules/sys_stat (Makefile.am): Likewise.
49907         * modules/sysexits (Makefile.am): Likewise.
49908         * modules/time_r (Makefile.am): Likewise.
49909         * modules/timegm (Makefile.am): Likewise.
49910         * modules/timespec (Makefile.am): Likewise.
49911         * modules/tmpfile-safer (Makefile.am): Likewise.
49912         * modules/trim (Makefile.am): Likewise.
49913         * modules/unistd-safer (Makefile.am): Likewise.
49914         * modules/unlinkdir (Makefile.am): Likewise.
49915         * modules/unlocked-io (Makefile.am): Likewise.
49916         * modules/userspec (Makefile.am): Likewise.
49917         * modules/utime (Makefile.am): Likewise.
49918         * modules/utimecmp (Makefile.am): Likewise.
49919         * modules/utimens (Makefile.am): Likewise.
49920         * modules/vasnprintf (Makefile.am): Likewise.
49921         * modules/vasprintf (Makefile.am): Likewise.
49922         * modules/vsnprintf (Makefile.am): Likewise.
49923         * modules/xalloc (Makefile.am): Likewise.
49924         * modules/xgetcwd (Makefile.am): Likewise.
49925         * modules/xnanosleep (Makefile.am): Likewise.
49926         * modules/xreadlink (Makefile.am): Likewise.
49927         * modules/xstrtod (Makefile.am): Likewise.
49928         * modules/xstrtol (Makefile.am): Likewise.
49929         * modules/xstrtold (Makefile.am): Likewise.
49930         * modules/yesno (Makefile.am): Likewise.
49931         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49932
49933 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         * modules/error (Makefile.am): Distribute files through
49936         EXTRA_DIST, not lib_SOURCES.
49937
49938 2006-10-12  Eric Blake  <ebb9@byu.net>
49939
49940         * modules/error (Makefile.am): Distribute files in /lib.
49941         * modules/obstack (Makefile.am): Likewise.
49942
49943 2006-10-12  Bruno Haible  <bruno@clisp.org>
49944
49945         * modules/acl (Makefile.am): Distribute all files in lib/ through
49946         EXTRA_DIST.
49947         * modules/arcfour (Makefile.am): Likewise.
49948         * modules/arctwo (Makefile.am): Likewise.
49949         * modules/argmatch (Makefile.am): Likewise.
49950         * modules/argz (Makefile.am): Likewise.
49951         * modules/atexit (Makefile.am): Likewise.
49952         * modules/backupfile (Makefile.am): Likewise.
49953         * modules/c-strtod (Makefile.am): Likewise.
49954         * modules/c-strtold (Makefile.am): Likewise.
49955         * modules/calloc (Makefile.am): Likewise.
49956         * modules/canon-host (Makefile.am): Likewise.
49957         * modules/canonicalize (Makefile.am): Likewise.
49958         * modules/chdir-long (Makefile.am): Likewise.
49959         * modules/chdir-safer (Makefile.am): Likewise.
49960         * modules/check-version (Makefile.am): Likewise.
49961         * modules/chown (Makefile.am): Likewise.
49962         * modules/cloexec (Makefile.am): Likewise.
49963         * modules/close-stream (Makefile.am): Likewise.
49964         * modules/closeout (Makefile.am): Likewise.
49965         * modules/crc (Makefile.am): Likewise.
49966         * modules/cycle-check (Makefile.am): Likewise.
49967         * modules/des (Makefile.am): Likewise.
49968         * modules/dirfd (Makefile.am): Likewise.
49969         * modules/dirname (Makefile.am): Likewise.
49970         * modules/dup2 (Makefile.am): Likewise.
49971         * modules/euidaccess (Makefile.am): Likewise.
49972         * modules/exclude (Makefile.am): Likewise.
49973         * modules/exitfail (Makefile.am): Likewise.
49974         * modules/fcntl-safer (Makefile.am): Likewise.
49975         * modules/file-type (Makefile.am): Likewise.
49976         * modules/fileblocks (Makefile.am): Likewise.
49977         * modules/filemode (Makefile.am): Likewise.
49978         * modules/filenamecat (Makefile.am): Likewise.
49979         * modules/fnmatch (Makefile.am): Likewise.
49980         * modules/fopen-safer (Makefile.am): Likewise.
49981         * modules/fpending (Makefile.am): Likewise.
49982         * modules/fprintftime (Makefile.am): Likewise.
49983         * modules/free (Makefile.am): Likewise.
49984         * modules/fsusage (Makefile.am): Likewise.
49985         * modules/ftruncate (Makefile.am): Likewise.
49986         * modules/fts (Makefile.am): Likewise.
49987         * modules/gc (Makefile.am): Likewise.
49988         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49989         * modules/getaddrinfo (Makefile.am): Likewise.
49990         * modules/getcwd (Makefile.am): Likewise.
49991         * modules/getdelim (Makefile.am): Likewise.
49992         * modules/getdomainname (Makefile.am): Likewise.
49993         * modules/getgroups (Makefile.am): Likewise.
49994         * modules/gethostname (Makefile.am): Likewise.
49995         * modules/gethrxtime (Makefile.am): Likewise.
49996         * modules/getline (Makefile.am): Likewise.
49997         * modules/getloadavg (Makefile.am): Likewise.
49998         * modules/getlogin_r (Makefile.am): Likewise.
49999         * modules/getopt (Makefile.am): Likewise.
50000         * modules/getpass (Makefile.am): Likewise.
50001         * modules/getpass-gnu (Makefile.am): Likewise.
50002         * modules/getsubopt (Makefile.am): Likewise.
50003         * modules/gettime (Makefile.am): Likewise.
50004         * modules/gettimeofday (Makefile.am): Likewise.
50005         * modules/getugroups (Makefile.am): Likewise.
50006         * modules/getusershell (Makefile.am): Likewise.
50007         * modules/glob (Makefile.am): Likewise.
50008         * modules/group-member (Makefile.am): Likewise.
50009         * modules/hard-locale (Makefile.am): Likewise.
50010         * modules/hash (Makefile.am): Likewise.
50011         * modules/hmac-md5 (Makefile.am): Likewise.
50012         * modules/hmac-sha1 (Makefile.am): Likewise.
50013         * modules/human (Makefile.am): Likewise.
50014         * modules/idcache (Makefile.am): Likewise.
50015         * modules/imaxabs (Makefile.am): Likewise.
50016         * modules/imaxdiv (Makefile.am): Likewise.
50017         * modules/inet_ntop (Makefile.am): Likewise.
50018         * modules/inet_pton (Makefile.am): Likewise.
50019         * modules/inttostr (Makefile.am): Likewise.
50020         * modules/isapipe (Makefile.am): Likewise.
50021         * modules/lchown (Makefile.am): Likewise.
50022         * modules/long-options (Makefile.am): Likewise.
50023         * modules/lstat (Makefile.am): Likewise.
50024         * modules/malloc (Makefile.am): Likewise.
50025         * modules/mathl (Makefile.am): Likewise.
50026         * modules/mbchar (Makefile.am): Likewise.
50027         * modules/md2 (Makefile.am): Likewise.
50028         * modules/md4 (Makefile.am): Likewise.
50029         * modules/md5 (Makefile.am): Likewise.
50030         * modules/memcasecmp (Makefile.am): Likewise.
50031         * modules/memchr (Makefile.am): Likewise.
50032         * modules/memcmp (Makefile.am): Likewise.
50033         * modules/memcoll (Makefile.am): Likewise.
50034         * modules/memcpy (Makefile.am): Likewise.
50035         * modules/memmem (Makefile.am): Likewise.
50036         * modules/memmove (Makefile.am): Likewise.
50037         * modules/mempcpy (Makefile.am): Likewise.
50038         * modules/memrchr (Makefile.am): Likewise.
50039         * modules/memset (Makefile.am): Likewise.
50040         * modules/memxor (Makefile.am): Likewise.
50041         * modules/mkancesdirs (Makefile.am): Likewise.
50042         * modules/mkdir (Makefile.am): Likewise.
50043         * modules/mkdir-p (Makefile.am): Likewise.
50044         * modules/mkdtemp (Makefile.am): Likewise.
50045         * modules/mkstemp (Makefile.am): Likewise.
50046         * modules/mktime (Makefile.am): Likewise.
50047         * modules/modechange (Makefile.am): Likewise.
50048         * modules/mountlist (Makefile.am): Likewise.
50049         * modules/nanosleep (Makefile.am): Likewise.
50050         * modules/openat (Makefile.am): Likewise.
50051         * modules/pagealign_alloc (Makefile.am): Likewise.
50052         * modules/physmem (Makefile.am): Likewise.
50053         * modules/poll (Makefile.am): Likewise.
50054         * modules/posixtm (Makefile.am): Likewise.
50055         * modules/posixver (Makefile.am): Likewise.
50056         * modules/putenv (Makefile.am): Likewise.
50057         * modules/quote (Makefile.am): Likewise.
50058         * modules/quotearg (Makefile.am): Likewise.
50059         * modules/raise (Makefile.am): Likewise.
50060         * modules/read-file (Makefile.am): Likewise.
50061         * modules/readline (Makefile.am): Likewise.
50062         * modules/readlink (Makefile.am): Likewise.
50063         * modules/readtokens (Makefile.am): Likewise.
50064         * modules/readutmp (Makefile.am): Likewise.
50065         * modules/realloc (Makefile.am): Likewise.
50066         * modules/regex (Makefile.am): Likewise.
50067         * modules/rename (Makefile.am): Likewise.
50068         * modules/rename-dest-slash (Makefile.am): Likewise.
50069         * modules/rijndael (Makefile.am): Likewise.
50070         * modules/rmdir (Makefile.am): Likewise.
50071         * modules/rpmatch (Makefile.am): Likewise.
50072         * modules/safe-read (Makefile.am): Likewise.
50073         * modules/safe-write (Makefile.am): Likewise.
50074         * modules/same (Makefile.am): Likewise.
50075         * modules/save-cwd (Makefile.am): Likewise.
50076         * modules/savedir (Makefile.am): Likewise.
50077         * modules/setenv (Makefile.am): Likewise.
50078         * modules/settime (Makefile.am): Likewise.
50079         * modules/sha1 (Makefile.am): Likewise.
50080         * modules/sig2str (Makefile.am): Likewise.
50081         * modules/snprintf (Makefile.am): Likewise.
50082         * modules/stdlib-safer (Makefile.am): Likewise.
50083         * modules/stpcpy (Makefile.am): Likewise.
50084         * modules/stpncpy (Makefile.am): Likewise.
50085         * modules/strcase (Makefile.am): Likewise.
50086         * modules/strcasestr (Makefile.am): Likewise.
50087         * modules/strchrnul (Makefile.am): Likewise.
50088         * modules/strcspn (Makefile.am): Likewise.
50089         * modules/strdup (Makefile.am): Likewise.
50090         * modules/strerror (Makefile.am): Likewise.
50091         * modules/strftime (Makefile.am): Likewise.
50092         * modules/strndup (Makefile.am): Likewise.
50093         * modules/strnlen (Makefile.am): Likewise.
50094         * modules/strpbrk (Makefile.am): Likewise.
50095         * modules/strsep (Makefile.am): Likewise.
50096         * modules/strstr (Makefile.am): Likewise.
50097         * modules/strtod (Makefile.am): Likewise.
50098         * modules/strtoimax (Makefile.am): Likewise.
50099         * modules/strtok_r (Makefile.am): Likewise.
50100         * modules/strtol (Makefile.am): Likewise.
50101         * modules/strtoll (Makefile.am): Likewise.
50102         * modules/strtoul (Makefile.am): Likewise.
50103         * modules/strtoull (Makefile.am): Likewise.
50104         * modules/strtoumax (Makefile.am): Likewise.
50105         * modules/strverscmp (Makefile.am): Likewise.
50106         * modules/time_r (Makefile.am): Likewise.
50107         * modules/timegm (Makefile.am): Likewise.
50108         * modules/tmpfile-safer (Makefile.am): Likewise.
50109         * modules/unistd-safer (Makefile.am): Likewise.
50110         * modules/unlinkdir (Makefile.am): Likewise.
50111         * modules/userspec (Makefile.am): Likewise.
50112         * modules/utime (Makefile.am): Likewise.
50113         * modules/utimecmp (Makefile.am): Likewise.
50114         * modules/utimens (Makefile.am): Likewise.
50115         * modules/vasnprintf (Makefile.am): Likewise.
50116         * modules/vasprintf (Makefile.am): Likewise.
50117         * modules/vsnprintf (Makefile.am): Likewise.
50118         * modules/xalloc (Makefile.am): Likewise.
50119         * modules/xgetcwd (Makefile.am): Likewise.
50120         * modules/xnanosleep (Makefile.am): Likewise.
50121         * modules/xreadlink (Makefile.am): Likewise.
50122         * modules/xstrtod (Makefile.am): Likewise.
50123         * modules/xstrtol (Makefile.am): Likewise.
50124         * modules/xstrtold (Makefile.am): Likewise.
50125         * modules/yesno (Makefile.am): Likewise.
50126
50127 2006-10-12  Jim Meyering  <jim@meyering.net>
50128
50129         * m4/getloadavg.m4: Revert the change below.
50130
50131         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50132         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50133         fail with a symlink, which is what coreutils' ./bootstrap now
50134         creates by default.
50135
50136 2006-10-12  Bruno Haible  <bruno@clisp.org>
50137
50138         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50139         mingw.
50140         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50141         MSVC and mingw explicitly.
50142
50143 2006-10-11  Simon Josefsson  <jas@extundo.com>
50144             Bruno Haible  <bruno@clisp.org>
50145
50146         Add support for multiple gnulib-tool invocations in the scope of a
50147         single configure.ac file.
50148         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50149         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50150         with the same contents as the _LIBADD variable.
50151         (func_emit_initmacro_start, func_emit_initmacro_end,
50152         func_emit_initmacro_done): New functions.
50153         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50154         gl_LIBOBJS and gl_LTLIBOBJS.
50155
50156 2006-10-11  Bruno Haible  <bruno@clisp.org>
50157
50158         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50159         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50160         autoreconf. Instead, invoke autopoint explicitly but move back the
50161         *.m4 files from gnulib.
50162
50163 2006-10-11  Bruno Haible  <bruno@clisp.org>
50164
50165         * gnulib-tool (func_usage): Make module names after --create-testdir
50166         optional.
50167         (func_create_testdir): If no module was specified, use nearly all
50168         modules.
50169
50170 2006-10-12  Jim Meyering  <jim@meyering.net>
50171
50172         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50173         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50174         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50175         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50176         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50177         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50178         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50179         (fts_set_stat_required): New function.
50180         (fts_open): Defer the calls to fts_stat, if possible or requested.
50181         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50182         into fts_stat itself.
50183         (fts_read): Perform any required (deferred) fts_stat call.
50184         (fts_build): Likewise, for the directory we're about to open and read.
50185         In the readdir loop, carefully decide whether each entry will require
50186         an eventual call to fts_stat, using dirent.d_type info if available.
50187         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50188         a command line argument into this function.  Update all callers.
50189         Map a return value of FTS_DOT to FTS_D for a command line argument.
50190         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50191         Thanks to Miklos Szeredi for his tenacity and for the initial
50192         bug report about "find" failing on a FUSE-based file system.
50193
50194         * lib/fts.c (fts_open): Use consistent indentation.
50195
50196 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50197
50198         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50199         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50200         reported by Jim Meyering.  All uses of cache variables renamed
50201         to match Autoconf's.
50202         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50203         the other one.
50204
50205         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50206         Fix misspelling in diagnostic.
50207
50208 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50209
50210         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50211         defined.  Problem reported by Matthew Woehlke.
50212
50213         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50214         Add support for Tandem NonStop R series.
50215         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50216         Use new macro.
50217
50218         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50219         (has_trailing_slash): Omit size arg; all callers changed.
50220         Omit 'inline', since it doesn't help performance and we'd
50221         need to configure it.
50222         Don't count //, ///, etc. as having a trailing slash.
50223         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50224         (rpl_rename_dest_slash): On failure, use rename's errno rather
50225         than (in some cases) an incorrect or junk errno.
50226         Simplify code by removing need to compute length; this does
50227         cause it to make two passes instead of one over the file name,
50228         but it's worth it.
50229
50230         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50231         change, since Autoconf's version may no longer be appropriate now
50232         that we are using CVS Autoconf's version.  Add support for Tandem.
50233
50234 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50235             Bruno Haible  <bruno@clisp.org>
50236
50237         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50238         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50239         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50240         gl_AC_TYPE_LONG_LONG.
50241
50242         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50243         instead of HAVE_LONG_LONG.
50244         * lib/printf-args.c (printf_fetchargs): Likewise.
50245         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50246         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50247         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50248         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50249         gl_AC_TYPE_LONG_LONG.
50250
50251 2006-10-11  Bruno Haible  <bruno@clisp.org>
50252
50253         * m4/longlong.m4: Add comments.
50254         * m4/ulonglong.m4: Likewise.
50255
50256 2006-10-10  Bruno Haible  <bruno@clisp.org>
50257
50258         Make it possible to #define stpcpy, strdup to aliases.
50259         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50260         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50261
50262 2006-10-10  Bruno Haible  <bruno@clisp.org>
50263
50264         Make it possible to #define gcd to an alias.
50265         * lib/gcd.c: Include config.h.
50266
50267 2006-10-10  Bruno Haible  <bruno@clisp.org>
50268
50269         Make it possible to #define c_isascii to an alias.
50270         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50271         defined. Undefine the macros before defining them, to avoid gcc
50272         warnings.
50273         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50274         define NO_C_CTYPE_MACROS early.
50275
50276 2006-10-10  Bruno Haible  <bruno@clisp.org>
50277
50278         Make it possible to #define set_program_name to an alias.
50279         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50280         ENABLE_RELOCATABLE early.
50281
50282 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50283
50284         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50285         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50286         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50287         More generally, don't assume that 64-bit signed int is available
50288         if unsigned int is, and vice versa.
50289         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50290         unsigned symbols, not on their signed counterparts.
50291         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50292         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50293         (UINT64_C, UINTMAX_C):
50294         Likewise.
50295         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50296         unsigned counterparts.
50297         (Have_long_long, Unsigned): New macros.
50298         (Int): Renamed from INT.
50299         (strtoimax): Use the new macros.
50300         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50301         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50302         * modules/inttypes (inttypes.h): Substitute
50303         HAVE_UNSIGNED_LONG_LONG_INT.
50304         * modules/stdint (stdint.h): Likewise.
50305         (Files): Add m4/ulonglong.m4.
50306
50307 2006-10-10  Bruno Haible  <bruno@clisp.org>
50308
50309         Fix a gcc -Wshadow warning.
50310         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50311         to 'bucket'.
50312         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50313         gl_linked_indexof_from_to): Likewise.
50314         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50315         Likewise.
50316         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50317         Likewise.
50318         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50319         Reported by Eric Blake.
50320
50321 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50322
50323         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50324         for NetBSD.  Problem reported by Bruno Haible.
50325
50326 2006-10-09  Jim Meyering  <jim@meyering.net>
50327
50328         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50329         Patch from Bruno Haible.
50330
50331 2006-10-09  Jim Meyering  <jim@meyering.net>
50332
50333         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50334         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50335         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50336
50337 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50338
50339         Don't include <config.h> twice; this doesn't work in some cases,
50340         e.g., when config.h has "#define intmax_t long long int" and
50341         we include <config.h>, <inttypes.h>, <config.h> in that order.
50342         Problem reported by Matthew Woehlke in:
50343         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50344         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50345         * lib/fts-cycle.c: Don't include config.h.
50346         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50347         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50348         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50349         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50350         inttypes.h.
50351         * lib/xstrtoumax.c: Likewise.
50352         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50353         __strtol and the like, so that this module is more like its siblings.
50354         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50355         Remove; no longer needed now that we assume gnulib inttypes.h.
50356
50357 2006-10-08  Bruno Haible  <bruno@clisp.org>
50358
50359         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50360         option.
50361
50362 2006-10-07  Jim Meyering  <jim@meyering.net>
50363
50364         * modules/inttypes (inttypes.h): Revert what seems to have been
50365         an inadvertent part of today's change: use "|", not "/" in the
50366         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50367
50368 2006-10-07  Bruno Haible  <bruno@clisp.org>
50369
50370         * modules/sublist: New file.
50371
50372 2006-10-07  Bruno Haible  <bruno@clisp.org>
50373
50374         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50375         * modules/argz (argz.h): Likewise.
50376         * modules/arpa_inet (arpa/inet.h): Likewise.
50377         * modules/byteswap (byteswap.h): Likewise.
50378         * modules/configmake (configmake.h): Likewise.
50379         * modules/fcntl (fcntl.h): Likewise.
50380         * modules/fnmatch (fnmatch.h): Likewise.
50381         * modules/getopt (getopt.h): Likewise.
50382         * modules/glob (glob.h): Likewise.
50383         * modules/inttypes (inttypes.h): Likewise.
50384         * modules/netinet_in (netinet/in.h): Likewise.
50385         * modules/poll (poll.h): Likewise.
50386         * modules/stdbool (stdbool.h): Likewise.
50387         * modules/stdint (stdint.h): Likewise.
50388         * modules/sys_select (sys/select.h): Likewise.
50389         * modules/sys_socket (sys/socket.h): Likewise.
50390         * modules/sys_stat (sys/stat.h): Likewise.
50391         * modules/sysexits (sysexits.h): Likewise.
50392         * modules/unistd (unistd.h): Likewise.
50393         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50394         Add a "DO NOT EDIT" comment to the generated file.
50395         (func_import): Likewise for gnulib-comp.m4.
50396
50397 2006-10-07  Bruno Haible  <bruno@clisp.org>
50398
50399         * lib/gl_sublist.h: New file.
50400         * lib/gl_sublist.c: New file.
50401
50402 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50403
50404         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50405         name (relative to the original working directory) and the file
50406         name component (relative to the temporary working directory).  All
50407         callers changed.
50408         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50409         * lib/mkdir-p.c (make_dir_parents): Likewise.
50410         * lib/mkdir-p.h (make_dir_parents): Likewise.
50411
50412 2006-10-06  Eric Blake  <ebb9@byu.net>
50413
50414         Define several macros for use by the clean-temp module.
50415         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50416         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50417         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50418
50419         * lib/clean-temp.h (close_stream_temp): New declaration.
50420         * lib/clean-temp.c (includes): Pull in headers according to what
50421         other modules are in use.
50422         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50423
50424 2006-10-06  Bruno Haible  <bruno@clisp.org>
50425
50426         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50427         instead of fopen, fwriteerror.
50428
50429 2006-10-06  Bruno Haible  <bruno@clisp.org>
50430
50431         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50432         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50433         int.
50434         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50435         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50436         Return an error indicator.
50437         Suggested by Eric Blake.
50438
50439 2006-10-06  Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50442         Reported by Eric Blake.
50443
50444 2006-10-06  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/closeout (Description): Mention stderr too.
50447
50448 2006-10-06  Bruno Haible  <bruno@clisp.org>
50449         and Paul Eggert  <eggert@cs.ucla.edu>
50450
50451         * lib/closeout.c (close_stdout): Also close stderr.
50452         * lib/closeout.h: Update comment.
50453
50454 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50455
50456         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50457         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50458         * lib/dirchownmod.c: Include lchown.h.
50459         * lib/lchown.c: Don't include files that lchown.h now includes.
50460         Don't declare chown, since lchown.h now does that.
50461         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50462         (lchown): Define to rpl_chown if lchown is declared but
50463         does not exist.  Declare using a prototype if lchown is not
50464         declared.  Add a copyright notice.
50465         * lib/mkstemp.h: Include <unistd.h>.
50466         * lib/openat.c: Include lchown.h.
50467
50468         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50469         we now test for that separately.
50470         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50471         rather than O_NOFOLLOW, when testing whether it's possible to
50472         avoid a race condition reliably.
50473         * lib/savewd.c (savewd_chdir): Likewise.
50474
50475         Remove macros that are no longer needed now that stdint.h is
50476         reliable.
50477         * lib/fsusage.c (UINTMAX_MAX): Remove.
50478         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50479         * lib/utimecmp.c (SIZE_MAX): Remove.
50480
50481         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50482
50483         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50484         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50485         O_NOATIME works.
50486
50487 2006-10-05  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/gl_list.h (gl_sortedlist_search_from_to,
50490         gl_sortedlist_indexof_from_to): New declarations.
50491         (gl_list_implementation): New fields sortedlist_search_from_to,
50492         sortedlist_indexof_from_to.
50493         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50494         inline functions.
50495         * lib/gl_list.c (gl_sortedlist_search_from_to,
50496         gl_sortedlist_indexof_from_to): New functions.
50497         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50498         function.
50499         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50500         (gl_array_sortedlist_search_from_to): New function.
50501         (gl_array_list_implementation): Update.
50502         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50503         function.
50504         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50505         (gl_carray_sortedlist_search_from_to): New function.
50506         (gl_carray_list_implementation): Update.
50507         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50508         gl_linked_sortedlist_indexof_from_to): New functions.
50509         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50510         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50511         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50512         gl_tree_sortedlist_indexof_from_to): New functions.
50513         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50514         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50515         Update.
50516         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50517         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50518         Update.
50519
50520 2006-10-05  Bruno Haible  <bruno@clisp.org>
50521
50522         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50523         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50524         (struct gl_list_implementation): Add fields search_from_to,
50525         indexof_from_to. Remove fields search, indexof.
50526         (gl_list_search): Use the search_from_to method.
50527         (gl_list_search_from, gl_list_search_from_to): New functions.
50528         (gl_list_indexof): Use the indexof_from_to method.
50529         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50530         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50531         (gl_list_search_from, gl_list_search_from_to): New functions.
50532         (gl_list_indexof): Use the indexof_from_to method.
50533         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50534         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50535         gl_array_indexof. Add start_index, end_index arguments.
50536         (gl_array_search_from_to): Renamed from gl_array_search. Add
50537         start_index, end_index arguments.
50538         (gl_array_remove, gl_array_list_implementation): Update.
50539         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50540         gl_carray_indexof. Add start_index, end_index arguments.
50541         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50542         start_index, end_index arguments.
50543         (gl_carray_remove, gl_carray_list_implementation): Update.
50544         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50545         gl_linked_search. Add start_index, end_index arguments.
50546         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50547         start_index, end_index arguments.
50548         (gl_linked_remove): Update.
50549         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50550         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50551         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50552         field to 'size_t'.
50553         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50554         gl_tree_search. Add start_index, end_index arguments.
50555         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50556         start_index, end_index arguments.
50557         (gl_tree_remove): Update.
50558         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50559         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50560         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50561         function.
50562         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50563         gl_tree_search. Add start_index, end_index arguments.
50564         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50565         start_index, end_index arguments.
50566         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50567         Update.
50568         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50569
50570 2006-10-05  Bruno Haible  <bruno@clisp.org>
50571
50572         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50573
50574         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50575         fwriteerror_temp): New declarations.
50576         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50577         (descriptors): New variable.
50578         (cleanup): First, close the descriptors.
50579         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50580         fclose_temp, fwriteerror_temp): New functions.
50581
50582 2006-10-04  Jim Meyering  <jim@meyering.net>
50583
50584         * lib/fts.c (fts_open): Tiny comment change.
50585
50586 2006-10-04  Bruno Haible  <bruno@clisp.org>
50587
50588         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50589         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50590         gl_LOCK_BODY.
50591         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50592         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50593         gl_LOCK_EARLY_BODY.
50594         (gl_LOCK): Require gl_LOCK_BODY.
50595
50596 2006-10-04  Bruno Haible  <bruno@clisp.org>
50597
50598         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50599         (gl_oset_search_atleast): New declaration.
50600         (struct gl_oset_implementation): Add field 'search_atleast'.
50601         (gl_oset_search_atleast): New inline function.
50602         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50603         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50604         (gl_array_oset_implementation): Update.
50605         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50606         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50607         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50608
50609 2006-10-04  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50612
50613 2006-10-03  Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50616         from gl_avltreehash_list_implementation.
50617
50618 2006-10-03  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/gl_oset.c (gl_oset_add): Fix return type.
50621
50622 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50623
50624         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50625
50626 2006-10-02  Eric Blake  <ebb9@byu.net>
50627
50628         * modules/strnlen (Depends-on): Add extensions.
50629
50630 2006-10-02  Eric Blake  <ebb9@byu.net>
50631
50632         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50633         definition in 2.60+.
50634
50635 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50636
50637         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50638         checks.
50639
50640 2006-10-02  Bruno Haible  <bruno@clisp.org>
50641
50642         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50643         to the AUTOMAKE_OPTIONS.
50644         Reported by Jim Meyering.
50645
50646 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50647
50648         Work around bug in Solaris 10 /proc file system:
50649         /proc/self/fd/NNN/.. isn't the parent directory of
50650         the directory whose file descriptor is NNN.  This needs to
50651         be worked around at run time, not compile time, since a
50652         program might be built on Solaris 8, where things work, and
50653         run on Solaris 10.
50654         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50655         to use the following interface instead:
50656         (OPENAT_BUFFER_SIZE): New macro.
50657         (openat_proc_name): New function.
50658         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50659         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50660         Likewise.
50661         * lib/openat-proc.c: New file.
50662         * modules/openat (Files): Add lib/openat-proc.c.
50663         (Depends-on): Add same-inode, stdbool.
50664         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50665
50666 2006-09-29  Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50669         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50670         argument. Set stdout_closed before testing for ferror, not after.
50671         (fwriteerror, fwriteerror_no_ebadf): New functions.
50672
50673 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50674
50675         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50676
50677 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50678
50679         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50680         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50681
50682 2006-09-28  Jim Meyering  <jim@meyering.net>
50683
50684         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50685         Include <unistd.h>.
50686
50687 2006-09-28  Bruno Haible  <bruno@clisp.org>
50688
50689         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50690         * modules/linkedhash-list (Depends-on): Likewise.
50691         * modules/rbtreehash-list (Depends-on): Likewise.
50692
50693 2006-09-28  Bruno Haible  <bruno@clisp.org>
50694
50695         * lib/strndup.h: Simplify the redefinition of strndup.
50696         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50698
50699 2006-09-28  Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50702         * lib/gl_linkedhash_list.c: Likewise.
50703         * lib/gl_rbtreehash_list.c: Likewise.
50704
50705 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50708         getaddrinfo.
50709
50710         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50711         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50712         it causes <stdio_ext.h> to cause a compile-time error.
50713         Problem reported by Nelson H. F. Beebe.
50714         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50715         of HAVE_DECL___PENDING.
50716
50717         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50718         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50719         declaration.
50720
50721 2006-09-27  Jim Meyering  <jim@meyering.net>
50722
50723         This file could end up with a definition for a function
50724         named __strndup, rather than rpl_strndup on a system with
50725         incomplete weak_alias support.
50726         * lib/strndup.c (strndup): Rename from __strndup.
50727         Remove #defines that used to map __strndup to strndup.
50728         Don't use K&R prototypes.
50729         Remove LIBC-related code, since this file is not sync'd with glibc.
50730         * lib/strndup.h: Revamp, accordingly.
50731         * m4/strndup.m4: Modernize.
50732
50733 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50734
50735         * modules/savewd (Depends-on): Add 'raise'.
50736         * lib/savewd.c: Include <signal.h>, for 'raise'.
50737
50738 2006-09-26  Jim Meyering  <jim@meyering.net>
50739
50740         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50741         when we detect Darwin 8.7.0's acl_get_file bug.
50742         Rearrange to perform the new (below) run-test while $LIBS
50743         contains any acl-related library.  Set USE_ACL at the end.
50744         (gl_ACL_GET_FILE): New function.
50745
50746 2006-09-26  Eric Blake  <ebb9@byu.net>
50747
50748         * lib/verror.c: Include <config.h> unconditionally.
50749
50750 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50751
50752         * modules/clock-time (Maintainer): Add self.
50753         * modules/getlogin_r (Depends-on): Add extensions.
50754
50755 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50756
50757         * modules/clock-time: New module.
50758         * modules/nanosleep (Depends-on): Add clock-time.
50759         * modules/gethrxtime (Depends-on): Likewise.
50760         * modules/gettime (Depends-on): Likewise.
50761         * modules/settime (Depends-on): Likewise.
50762
50763         * modules/fts-lgpl: Depend on openat.
50764         * modules/mkancesdirs: Depend on savewd.
50765         * modules/mkdir-p: Likewise.
50766
50767 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50768
50769         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50770
50771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50772         `gl_have_arbitrary_file_name_length_limit' to
50773         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50774         actually works between configure runs.
50775
50776 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50777             Bruno Haible  <bruno@clisp.org>
50778
50779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50780
50781 2006-09-25  Jim Meyering  <jim@meyering.net>
50782
50783         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50784         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50785
50786 2006-09-25  Eric Blake  <ebb9@byu.net>
50787
50788         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50789         exec's in 2006-09-18 patch when shuffling fds.
50790
50791 2006-09-25  Bruno Haible  <bruno@clisp.org>
50792
50793         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50794         Reported by Jim Meyering.
50795
50796 2006-09-24  Jim Meyering  <jim@meyering.net>
50797
50798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50799         compare a pointer against a literal "0".  That caused failures with
50800         at least HP-UX's hpcc.
50801
50802 2006-09-22  Simon Josefsson  <jas@extundo.com>
50803
50804         * modules/gc-sha1:
50805         * modules/gc-md4:
50806         * modules/gc-hmac-sha1:
50807         * modules/gc-hmac-md5:
50808         * modules/gc-des:
50809         * modules/gc-arcfour: Distribute more files.
50810
50811 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50812
50813         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50814         (gl_linked_iterator_from_to): Initialize struct completely.
50815         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50816         (gl_tree_iterator_from_to): Likewise
50817         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50818         * lib/gl_array_list.c [lint] (gl_array_iterator)
50819         (gl_array_iterator_from_to): Likewise.
50820         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50821         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50822         (gl_carray_iterator_from_to): Likewise.
50823
50824         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50825         * lib/md4.c (md4_process_block): Remove unused variable.
50826         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50827         parentheses for clarity.
50828
50829 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50830
50831         * modules/bison-i18n (Depends-on): Add gettext.
50832
50833 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50834
50835         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50836         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50837         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50838         also add missing comma that caused broken test.
50839         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50840         stdlib.h, for `abort'.
50841         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50842         variables.
50843         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50844         include unistd.h if present, for `rmdir'.
50845         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50846         variables.
50847         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50848         in the process include standard headers for prototypes.
50849         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50850         gets declared on GNU/Linux.
50851         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50852         unistd.h, for `rmdir'.
50853         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50854
50855         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50856         always true.
50857         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50858
50859         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50860
50861 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50862
50863         * gnulib-tool (func_version): Create output all at once.  This
50864         may help avoid triggering unnecessary SIGPIPEs, and at any
50865         rate it doesn't hurt.
50866
50867 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50868             Bruno Haible  <bruno@clisp.org>
50869
50870         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50871         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50872         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50873
50874         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50875         (gl_FUNC_VASPRINTF): Invoke it.
50876
50877 2006-09-22  Bruno Haible  <bruno@clisp.org>
50878
50879         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50880         getloadavg.c as first argument.
50881
50882 2006-09-22  Bruno Haible  <bruno@clisp.org>
50883
50884         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50885         at the beginning of the gl_INIT macro.
50886         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50887         gl_GETLOADAVG.
50888
50889 2006-09-22  Bruno Haible  <bruno@clisp.org>
50890
50891         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50892         module.
50893         Suggested by Ralf Wildenhues.
50894
50895 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         Import this patch from libc:
50898
50899         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50900
50901         * lib/regex_internal.c (re_string_reconstruct): Handle
50902         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50903         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50904         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50905         re_string_context_at.
50906
50907         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50908         now requires it.
50909         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50910         gl_REGEX now does it for us.
50911         (gl_REGEX): Add test taken from
50912         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50913
50914         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50915         Check that large offsets work.  Modernize Autoconf usages.
50916         Prefer "yes" to mean a good thing rather than a bad.
50917         Don't put "#define mkstemp" in config.h, as this might interfere
50918         with standard system headers that "#define mkstemp mkstemp64".
50919
50920         * modules/mkstemp (Depends-on): Add extensions, so that
50921         mkstemp is visible on some platforms.
50922         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50923         (Include): Change to "mkstemp.h" from <stdlib.h>.
50924         (Files): Add mkstemp.h.
50925
50926         * lib/mkstemp.h: New file, since some standard headers
50927         #define mkstemp.
50928         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50929         Include "mkstemp.h".
50930         Make the _LIBC code resemble glibc original more,
50931         e.g., use K&R style.
50932         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50933         (mkstemp): Remove, since mkstemp.h does this for us.
50934         * lib/stdlib--.h: Include mkstemp.h.
50935
50936         Import this patch from libc:
50937
50938         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50939
50940         * lib/tempname.c (__gen_tempname): Change attempts_min
50941         into a macro.  Use preprocessor to decide how to initialize
50942         attempts [Coverity CID 67].
50943
50944 2006-09-20  Bruno Haible  <bruno@clisp.org>
50945
50946         * lib/mkdtemp.c: Import from libc.
50947         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50948                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50949                 attempts_min into a macro.  Use preprocessor to decide how to
50950                 initialize attempts [Coverity CID 67].
50951         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50952                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50953                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50954
50955 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50956
50957         * gnulib-tool (func_exit): New function, to allow to pass the
50958         exit status portably through the trap.  Use everywhere.
50959         (--help, --version): Signal a write error.
50960         (trap): catch SIGPIPE, for write errors.
50961         Exit at the end of the trap, with the correct exit status.
50962
50963 2006-09-19  Karl Berry  <karl@gnu.org>
50964
50965         * doc/gnulib.texi: note about the license texinfo files.
50966
50967 2006-09-19  Eric Blake  <ebb9@byu.net>
50968
50969         * gnulib-tool: Avoid space-tab.
50970
50971 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50972
50973         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50974         that prevented coreutils 6.1 from building.  Problem reported
50975         by Petter Reinholdtsen.
50976
50977 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * gnulib-tool (avoidlist): Fix typo that broke options like
50980         --avoid=lock that are used by coreutils bootstrap.
50981
50982 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50983
50984         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50985         more systematically.
50986
50987 2006-09-18  Jim Meyering  <jim@meyering.net>
50988
50989         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50990
50991 2006-09-18  Bruno Haible  <bruno@clisp.org>
50992
50993         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50994
50995 2006-09-18  Bruno Haible  <bruno@clisp.org>
50996
50997         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50998         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50999         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
51000         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
51001         * m4/gettext.m4: Require autoconf >= 2.52.
51002         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
51003         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
51004         of gl_cv_header_inttypes_h.
51005
51006 2006-09-18  Bruno Haible  <bruno@clisp.org>
51007
51008         * lib/javaversion.c: Include configmake.h.
51009
51010 2006-09-18  Bruno Haible  <bruno@clisp.org>
51011
51012         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
51013         avoid that the while loops be executed in a subshell.
51014
51015 2006-09-18  Bruno Haible  <bruno@clisp.org>
51016
51017         * MODULES.html.sh (func_module): Break long lines.
51018         Suggested by Bruce Korb <bkorb@gnu.org>.
51019
51020 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51021
51022         Speed up by a factor of 1.12.
51023         * gnulib-tool (nl): New variable.
51024         (func_import): Rewrite include directive extraction to only read each
51025         directive once.
51026
51027 2006-09-17  Bruno Haible  <bruno@clisp.org>
51028
51029         * modules/javaversion (Makefile.am): Remove DEFS setting.
51030         (Depends-on): Add configmake, for PKGDATADIR definition.
51031
51032 2006-09-17  Bruno Haible  <bruno@clisp.org>
51033
51034         * gnulib-tool (func_create_testdir): Rewrite all files at once.
51035
51036 2006-09-17  Bruno Haible  <bruno@clisp.org>
51037
51038         * gnulib-tool (func_append): New function, stolen from libtool.m4.
51039         (func_modules_transitive_closure, func_modules_add_dummy,
51040         func_modules_to_filelist, func_import, func_create_testdir,
51041         func_create_megatestdir, ...): Use it wherever possible.
51042         Suggested by Ralf Wildenhues.
51043
51044 2006-09-16  Karl Berry  <karl@gnu.org>
51045
51046         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
51047         to avoid sectioning errors.
51048         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
51049         [ifinfo]: blank line after @center-ed titles.
51050         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
51051         Spell FSF address consistently with others.
51052         (These changes approved by rms.)
51053
51054 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51055
51056         Speed up by a factor of 1.61.
51057         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
51058         already checked module names again.
51059
51060 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51061
51062         Speed up by a factor of 1.13.
51063         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
51064         for new_files, and the input to func_add_or_update.
51065
51066 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51067
51068         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
51069         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
51070
51071 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51072
51073         * modules/mkancesdirs (Depends-on): Add fcntl.
51074         * modules/savewd: New file.
51075         * MODULES.html.sh (File system functions): Add savewd.
51076
51077         * modules/configmake (Makefile.am): Add support for the
51078         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51079
51080 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51081
51082         * m4/savewd.m4: New file.
51083
51084 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51085
51086         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51087         (dirchownmod): New arg FD.  All callers changed.
51088         Use FD rather than opening the directory ourself, as opening is
51089         now the caller's responsibility.
51090         * lib/dirchownmod.h: Likewise.
51091         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51092         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51093         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51094         (test_dir): Remove.
51095         (mkancesdirs): Return length of prefix of FILE that has already
51096         been made, or -2 if there is a child doing the work.  Redo
51097         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51098         ".", and treat ".." specially since it might stray back into
51099         already-created areas.  Use a subprocess if necessary.  New arg
51100         WD; all users changed.  MAKE_DIR function should now return 1
51101         if it creates a directory that is not readable.  Return -2 if
51102         a child process is spun off.
51103         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51104         Adjust signature to match code.
51105         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51106         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51107         all users changed.
51108         * lib/savewd.c, lib/savewd.h: New files.
51109
51110 2006-09-15  Jim Meyering  <jim@meyering.net>
51111
51112         * modules/rename-dest-slash: New module.
51113         * MODULES.html.sh (posix_compat): Add it here.
51114
51115         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51116
51117 2006-09-15  Jim Meyering  <jim@meyering.net>
51118
51119         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51120         file.
51121
51122         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51123
51124 2006-09-15  Jim Meyering  <jim@meyering.net>
51125
51126         * lib/rename-dest-slash.c (has_trailing_slash): Use
51127         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51128         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51129         test before testing whether SRC is a directory.
51130         Suggestions from Bruno Haible.
51131
51132         Avoid a warning about an unused variable.
51133         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51134         into the #ifdef block where it's used.
51135
51136         * lib/rename-dest-slash.c: New file.
51137
51138 2006-09-14  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/allocsa.c: Include <config.h> unconditionally.
51141         * lib/asnprintf.c: Likewise.
51142         * lib/asprintf.c: Likewise.
51143         * lib/c-strcasecmp.c: Likewise.
51144         * lib/c-strcasestr.c: Likewise.
51145         * lib/c-strncasecmp.c: Likewise.
51146         * lib/c-strstr.c: Likewise.
51147         * lib/classpath.c: Likewise.
51148         * lib/clean-temp.c: Likewise.
51149         * lib/concatpath.c: Likewise.
51150         * lib/copy-file.c: Likewise.
51151         * lib/csharpcomp.c: Likewise.
51152         * lib/csharpexec.c: Likewise.
51153         * lib/execute.c: Likewise.
51154         * lib/fatal-signal.c: Likewise.
51155         * lib/findprog.c: Likewise.
51156         * lib/fwriteerror.c: Likewise.
51157         * lib/gl_array_list.c: Likewise.
51158         * lib/gl_array_oset.c: Likewise.
51159         * lib/gl_avltree_list.c: Likewise.
51160         * lib/gl_avltree_oset.c: Likewise.
51161         * lib/gl_avltreehash_list.c: Likewise.
51162         * lib/gl_carray_list.c: Likewise.
51163         * lib/gl_linked_list.c: Likewise.
51164         * lib/gl_linkedhash_list.c: Likewise.
51165         * lib/gl_list.c: Likewise.
51166         * lib/gl_oset.c: Likewise.
51167         * lib/gl_rbtree_list.c: Likewise.
51168         * lib/gl_rbtree_oset.c: Likewise.
51169         * lib/gl_rbtreehash_list.c: Likewise.
51170         * lib/imaxabs.c: Likewise.
51171         * lib/imaxdiv.c: Likewise.
51172         * lib/javacomp.c: Likewise.
51173         * lib/javaexec.c: Likewise.
51174         * lib/javaversion.c: Likewise.
51175         * lib/linebreak.c: Likewise.
51176         * lib/localcharset.c: Likewise.
51177         * lib/lock.c: Likewise.
51178         * lib/mbchar.c: Likewise.
51179         * lib/mbswidth.c: Likewise.
51180         * lib/mkdtemp.c: Likewise.
51181         * lib/pipe.c: Likewise.
51182         * lib/printf-args.c: Likewise.
51183         * lib/printf-parse.c: Likewise.
51184         * lib/progname.c: Likewise.
51185         * lib/progreloc.c: Likewise.
51186         * lib/readlink.c: Likewise.
51187         * lib/sh-quote.c: Likewise.
51188         * lib/stpcpy.c: Likewise.
51189         * lib/stpncpy.c: Likewise.
51190         * lib/strcasecmp.c: Likewise.
51191         * lib/strcasestr.c: Likewise.
51192         * lib/strcspn.c: Likewise.
51193         * lib/striconv.c: Likewise.
51194         * lib/strncasecmp.c: Likewise.
51195         * lib/strnlen1.c: Likewise.
51196         * lib/strstr.c: Likewise.
51197         * lib/strtok_r.c: Likewise.
51198         * lib/tls.c: Likewise.
51199         * lib/tmpdir.c: Likewise.
51200         * lib/unicodeio.c: Likewise.
51201         * lib/unsetenv.c: Likewise.
51202         * lib/vasnprintf.c: Likewise.
51203         * lib/vasprintf.c: Likewise.
51204         * lib/wait-process.c: Likewise.
51205         * lib/xallocsa.c: Likewise.
51206         * lib/xsetenv.c: Likewise.
51207         * lib/xstriconv.c: Likewise.
51208
51209 2006-09-13  Simon Josefsson  <jas@extundo.com>
51210
51211         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51212         that internally, suggested by Ralf Wildenhues
51213         <Ralf.Wildenhues@gmx.de>.
51214
51215 2006-09-13  Simon Josefsson  <jas@extundo.com>
51216
51217         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51218         @LIBOBJS@.
51219         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51220
51221 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51222
51223         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51224         longer worry about uses that don't define HAVE_CONFIG_H.
51225         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51226         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51227         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51228         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51229         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51230         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51231         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51232         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51233         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51234         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51235         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51236         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51237         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51238         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51239         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51240         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51241         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51242         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51243         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51244         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51245         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51246         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51247         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51248         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51249         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51250         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51251         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51252         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51253         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51254         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51255         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51256         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51257         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51258         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51259         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51260         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51261         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51262         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51263         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51264         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51265         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51266         Likewise.
51267
51268 2006-09-13  Eric Blake  <ebb9@byu.net>
51269
51270         * lib/getopt.c: Fix typo in last commit.
51271
51272 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51273
51274         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51275         dgettext.
51276
51277 2006-09-12  Jim Meyering  <jim@meyering.net>
51278
51279         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51280         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51281         Reported by Nelson H. F. Beebe.
51282
51283 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51284
51285         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51286         program_invocation_name and program_invocation_short_name are
51287         initialized.
51288         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51289         and program_invocation_short_name to argp.h, so they are visible
51290         to user programs.
51291         * lib/argp.h: Likewise
51292
51293 2006-09-10  Bruno Haible  <bruno@clisp.org>
51294
51295         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51296         m4/inttypes_h.m4, m4/uintmax_t.m4.
51297
51298 2006-09-10  Bruno Haible  <bruno@clisp.org>
51299
51300         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51301         gl_AC_TYPE_UINTMAX_T.
51302
51303 2006-09-10  Bruno Haible  <bruno@clisp.org>
51304
51305         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51306
51307 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51308
51309         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51310         convention.  Text proposed by Bruno Haible.
51311         (struct argp_option): Document the use of N_() wrappers.
51312
51313         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51314         '\v', and translate the two parts separately, instead of feeding
51315         the whole string to gettext.  This allows to exclude
51316         '\v' from the strings visible to the translator by writing doc
51317         strings as N_("..") "\v" N_("..").
51318
51319 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51320
51321         * config/srclist.txt: Undo latest change; the bug was fixed.
51322
51323 2006-09-09  Bruno Haible  <bruno@clisp.org>
51324
51325         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51326         assignments if building a library without libtool.
51327         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51328         in func_emit_lib_Makefile_am.
51329         (func_import): When building a static library libfoo.a, arrange to
51330         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51331         (func_create_testdir): Likewise.
51332         * modules/gc (configure.ac, Makefile.am): If building statically,
51333         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51334         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51335         * modules/striconv (configure.ac, Makefile.am): Likewise.
51336         Based on a suggestion by Ralf Wildenhues.
51337
51338 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51339
51340         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51341         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51342         Also:
51343
51344         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51345         Add year_2050_test to catch glibc bug 2821
51346         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51347
51348         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51349         Prefer #ifdef to #if.
51350
51351         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51352         Return from 'main' instead of calling 'exit'.
51353
51354 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51355
51356         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51357         returned the maximum time_t value rather than (time_t) -1.
51358         Problem originally reported by William Bardwell
51359         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51360
51361         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51362         Moved to here ...
51363         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51364         ... from here.
51365
51366 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51367
51368         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51369         2821 is fixed.
51370
51371 2006-09-08  Jim Meyering  <jim@meyering.net>
51372
51373         Don't make generated files read-only.  That would bother too many
51374         people.  However, do retain the ability to work when targets are
51375         read-only: remove the destination and temporary files before writing
51376         them (when generated via sed or echo), or by using the -f option for
51377         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51378         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51379         * modules/byteswap, modules/configmake, modules/fcntl:
51380         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51381         * modules/localcharset, modules/netinet_in, modules/poll:
51382         * modules/stdbool, modules/stdint, modules/sys_select:
51383         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51384
51385 2006-09-08  Jim Meyering  <jim@meyering.net>
51386
51387         Avoid new build failure on FreeBSD 6.0.
51388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51389         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51390         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51391
51392 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51393
51394         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51395
51396 2006-09-07  Jim Meyering  <jim@meyering.net>
51397
51398         Fix global typo in last change: use chmod u-w, not chmod u-x.
51399         Spotted by Paul Eggert and Bruce Korb.
51400         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51401         * modules/byteswap, modules/configmake, modules/fcntl:
51402         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51403         * modules/localcharset, modules/netinet_in, modules/poll:
51404         * modules/stdbool, modules/stdint, modules/sys_select:
51405         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51406
51407 2006-09-06  Jim Meyering  <jim@meyering.net>
51408
51409         Make generated files be read-only.
51410         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51411         Ensure that each generated file is now read-only.
51412         * modules/argz: Likewise.
51413         * modules/arpa_inet: Likewise.
51414         * modules/byteswap: Likewise.
51415         * modules/configmake: Likewise.
51416         * modules/fcntl: Likewise.
51417         * modules/fnmatch: Likewise.
51418         * modules/getopt: Likewise.
51419         * modules/glob: Likewise.
51420         * modules/inttypes: Likewise.
51421         * modules/netinet_in: Likewise.
51422         * modules/poll: Likewise.
51423         * modules/stdbool: Likewise.
51424         * modules/stdint: Likewise.
51425         * modules/sys_select: Likewise.
51426         * modules/sys_socket: Likewise.
51427         * modules/sys_stat: Likewise.
51428         * modules/sysexits: Likewise.
51429         * modules/localcharset: Same as above, but continue using temporary
51430         file named "t-$@" (why different?) rather than the "$@-t" used
51431         everywhere else.
51432
51433         * modules/sysexits (Makefile.am): Replace literal occurrences
51434         of "sysexit.h" more readable, and more consistent, "$@".
51435
51436 2006-09-06  Bruno Haible  <bruno@clisp.org>
51437
51438         * modules/striconv: New file.
51439         * modules/xstriconv: New file.
51440         * MODULES.html.sh (Internationalization functions): Add striconv,
51441         xstriconv.
51442
51443 2006-09-06  Bruno Haible  <bruno@clisp.org>
51444
51445         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51446         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51447         not using libtool correctly.
51448
51449 2006-09-06  Bruno Haible  <bruno@clisp.org>
51450
51451         * lib/striconv.h: New file.
51452         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51453         iconvstring.c.
51454         * lib/xstriconv.h: New file.
51455         * lib/xstriconv.c: New file.
51456
51457 2006-09-06  Bruno Haible  <bruno@clisp.org>
51458
51459         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51460         lib_..._LDFLAGS.
51461
51462 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51463
51464         * lib/argz_.h: Sync from Libtool.
51465
51466         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51467                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51468
51469         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51470
51471 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51472
51473         * modules/trim: New file.
51474
51475 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51476
51477         * lib/trim.h: New file.
51478         * lib/trim.c: New file.
51479
51480 2006-09-05  Bruno Haible  <bruno@clisp.org>
51481
51482         * MODULES.html.sh (String handling): Add trim.
51483
51484 2006-09-04  Karl Berry  <karl@gnu.org>
51485
51486         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51487         until next release.
51488
51489 2006-09-03  Bruno Haible  <bruno@clisp.org>
51490
51491         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51492         correctly.
51493
51494 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51495
51496         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51497         not gl_GETLOADAVG.  Omit unneeded semicolons.
51498         Problems reported by Ralf Wildenhues in
51499         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51500         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51501         at the end, which is the usual gnulib style.
51502
51503         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51504         of doing all the work ourselves.
51505         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51506         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51507
51508 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51509
51510         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51511         Problem reported by Ralf Wildenhues in
51512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51513
51514         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51515         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51516
51517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51518
51519         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51520         yesterday's patch by changing test -n to test -z.
51521
51522 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51523
51524         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51525         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51526         the former is now obsolescent.
51527
51528         * modules/chdir-long (Depends-on): Add fcntl.
51529
51530 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51531
51532         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51533         obsolescent, and programs should use gnulib instead.
51534         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51535         but with prefixes changed.
51536
51537 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51538
51539         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51540         or stdbool.h, because they might not exist while configuring.
51541
51542         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51543         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51544         does that for us.
51545         (O_DIRECTORY): Remove.
51546
51547 2006-08-31  Eric Blake  <ebb9@byu.net>
51548
51549         * gnulib-tool: Don't let emacs change spaces to TAB.
51550
51551 2006-08-31  Bruno Haible  <bruno@clisp.org>
51552
51553         * gnulib-tool: When calling func_import more than once, do it in a
51554         subshell.
51555         Reported by Eric Blake <ebb9@byu.net>.
51556
51557 2006-08-31  Bruno Haible  <bruno@clisp.org>
51558
51559         * gnulib-tool (nl): Remove variable.
51560         (sed_transform_lib_file): Use more robust test for config-h module.
51561         (func_import): Fix typo in 2006-08-25 patch.
51562
51563 2006-08-31  Bruno Haible  <bruno@clisp.org>
51564
51565         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51566         specified, augment Makefile.am variables instead of assigning them.
51567
51568 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51569
51570         Work around a bug in both the Linux and SunOS 64-bit kernels:
51571         nanosleep mishandles sleeps for longer than 2**31 seconds.
51572         Problem reported by Frank v Waveren in
51573         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51575         Check for nanosleep bug.
51576         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51577
51578 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         Work around a bug in both the Linux and SunOS 64-bit kernels:
51581         nanosleep mishandles sleeps for longer than 2**31 seconds.
51582         Problem reported by Frank v Waveren in
51583         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51584         * lib/nanosleep.c (BILLION): New constant.
51585         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51586         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51587         implementation.
51588
51589 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51590
51591         * modules/nanosleep (Depends-on): Add gettime.
51592
51593 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51594         and Simon Josefsson  <jas@extundo.com>
51595         and Oskar Liljeblad  <oskar@osk.mine.nu>
51596
51597         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51598         * gnulib-tool (func_import): New license type 'unmodifiable license
51599         text'.
51600         * modules/fdl: Use it.  Longer description.
51601         * module/gpl, module/lgpl: New files.
51602
51603 2006-08-30  Jim Meyering  <jim@meyering.net>
51604
51605         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51606         shadowing the parameter.
51607
51608 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51609
51610         Sync from Libtool:
51611
51612         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51613
51614         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51615         sharing with gnulib.  Report by Eric Blake.
51616
51617 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51618
51619         * modules/isapipe: New file.
51620         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51621
51622 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51623
51624         * modules/configmake (Makefile.am): Add a comment, and omit
51625         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51626         by Bruno Haible.
51627
51628 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51629
51630         * m4/isapipe.m4: New file.
51631
51632 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51633
51634         * lib/isapipe.c, lib/isapipe.h: New files.
51635
51636 2006-08-29  Jim Meyering  <jim@meyering.net>
51637
51638         * modules/configmake (Makefile.am): Make configmake.h depend on
51639         Makefile.  Otherwise, a stale configmake.h could hang around.
51640
51641 2006-08-29  Eric Blake  <ebb9@byu.net>
51642
51643         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51644         resolution of upstream bug 3044.
51645
51646 2006-08-29  Bruno Haible  <bruno@clisp.org>
51647
51648         * modules/localcharset (Depends-on): Add configmake.
51649         (Makefile.am): Remove setting of LIBDIR through DEFS.
51650
51651 2006-08-29  Bruno Haible  <bruno@clisp.org>
51652
51653         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51654         defined.
51655
51656 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51657
51658         * modules/fcntl: New file.
51659         * modules/chdir-safer (Depends-on): Add fcntl.
51660         * modules/fts: Likewise.
51661         * modules/mkdir-p: Likewise.
51662
51663         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51664         This undoes the most recent change, since we're now addressing the
51665         problem in a different way.
51666
51667         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51668         into output, since the output might be called Makefile.am even
51669         if $makefile_name is something different.
51670         (func_import): Use $makefile_am rather than
51671         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51672         empty.
51673
51674         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51675
51676 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51679         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51680         recent change to stdint.m4, since we're now addressing the problem in a
51681         different way.
51682
51683 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51684
51685         * m4/fcntl_h.m4: New file.
51686
51687 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51688
51689         * lib/fcntl_.h: New file.
51690         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51691         the fcntl module.
51692         * lib/dirchownmod.c: Likewise.
51693         * lib/fts.c: Likewise.
51694
51695         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51696         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51697         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51698         just before including <inttypes.h>, to avoid circular inclusion.
51699
51700 2006-08-28  Jim Meyering  <jim@meyering.net>
51701
51702         * doc/visibility.texi: Actually read and correct the grammar of the
51703         sentence affected by yesterday's change.
51704
51705 2006-08-28  Eric Blake  <ebb9@byu.net>
51706
51707         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51708         needs wrapper.
51709
51710 2006-08-28  Eric Blake  <ebb9@byu.net>
51711
51712         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51713
51714 2006-08-28  Eric Blake  <ebb9@byu.net>
51715
51716         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51717
51718 2006-08-28  Bruno Haible  <bruno@clisp.org>
51719
51720         * modules/c-strstr: New file, from GNU gettext.
51721         * MODULES.html.sh (String handling): Add c-strstr.
51722
51723 2006-08-28  Bruno Haible  <bruno@clisp.org>
51724
51725         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51726         macros.
51727         Reported by Eric Blake.
51728
51729 2006-08-28  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51732         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51733         * lib/vasprintf.c: Include errno.h, limits.h.
51734         (EOVERFLOW): New fallback definition.
51735         (vasprintf): Test here whether the string length is > INT_MAX.
51736         * lib/vsnprintf.c: Include errno.h, limits.h.
51737         (EOVERFLOW): New fallback definition.
51738         (vsnprintf): Fix bug when generated string was too long for the buffer.
51739         Test here whether the string length is > INT_MAX.
51740
51741 2006-08-28  Bruno Haible  <bruno@clisp.org>
51742
51743         * lib/inttypes_.h (SCNX*): Remove definitions.
51744         Reported by Eric Blake.
51745
51746 2006-08-28  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/c-strstr.h: New file, from GNU gettext.
51749         * lib/c-strstr.c: New file, from GNU gettext.
51750
51751 2006-08-28  Bruno Haible  <bruno@clisp.org>
51752
51753         * gnulib-tool: Reorder some statements.
51754
51755 2006-08-28  Bruno Haible  <bruno@clisp.org>
51756
51757         * gnulib-tool: New option --makefile-name.
51758         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51759         $makefile_name.
51760         (func_import): Write $makefile_name to the cache file, and read it from
51761         there unless explicitly specified. Use $makefile_name as file name
51762         instead of Makefile.am. Adjust the recommendations accordingly.
51763
51764 2006-08-28  Bruno Haible  <bruno@clisp.org>
51765
51766         * gnulib-tool (func_verify_module): Check against misapplying patch.
51767
51768 2006-08-28  Bruno Haible  <bruno@clisp.org>
51769
51770         * gnulib-tool (func_relativize, func_relconcat): New functions.
51771         Give an error if --local-dir is given with --update.
51772         Remove trailing slashes from $local_gnulib_dir.
51773         (func_import): Store the relativized $local_gnulib_dir in
51774         gnulib-cache.m4, and read it from there if not specified explicitly.
51775
51776 2006-08-28  Bruno Haible  <bruno@clisp.org>
51777
51778         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51779         is the current directory. Respect also $local_gnulib_dir.
51780
51781 2006-08-28  Bruno Haible  <bruno@clisp.org>
51782             Simon Josefsson  <jas@extundo.com>
51783
51784         BeOS portability.
51785         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51786
51787 2006-08-27  Jim Meyering  <jim@meyering.net>
51788
51789         * doc/visibility.texi: Remove duplicate word: "pointer".
51790
51791 2006-08-26  Bruno Haible  <bruno@clisp.org>
51792
51793         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51794         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51795         (Makefile.am): Create inttypes.h from inttypes_.h.
51796         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51797
51798         * modules/imaxabs: New file.
51799
51800         * modules/imaxdiv: New file.
51801
51802 2006-08-26  Bruno Haible  <bruno@clisp.org>
51803
51804         * m4/inttypes.m4: New file.
51805         * m4/_inttypes_h.m4: Remove file.
51806         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51807         PRI_MACROS_BROKEN.
51808         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51809
51810         * m4/imaxabs.m4: New file.
51811
51812         * m4/imaxdiv.m4: New file.
51813
51814 2006-08-26  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/inttypes_.h: New file.
51817         * lib/inttypes.h: Remove file.
51818         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51819
51820         * lib/imaxabs.c: New file.
51821
51822         * lib/imaxdiv.c: New file.
51823
51824 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51825
51826         New config-h module, so that "make" output needn't be cluttered
51827         by -DHAVE_CONFIG_H.
51828         * MODULES.html.sh (Support for building libraries and executables):
51829         Add config-h.
51830         * modules/config-h: New file.
51831         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51832         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51833         the config-h module is used.
51834
51835         New configmake module, so that "make" output needn't be cluttered
51836         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51837         * MODULES.html.sh (Support for building libraries and executables):
51838         Add configmake.
51839         * modules/configmake: New file.
51840
51841 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * m4/config-h.m4: New file.
51844
51845 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51846
51847         * config/srclist.txt: Add elisp-comp.
51848
51849 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51850
51851         * MODULES.html.sh (Support for building libraries and executables):
51852         Add elisp-comp.
51853         * build-aux/elisp-comp: New file.
51854         * modules/elisp-comp: New file.
51855
51856 2006-08-24  Bruno Haible  <bruno@clisp.org>
51857
51858         * gnulib-tool (func_create_testdir): Use non-default values of
51859         sourcebase and m4base.
51860
51861 2006-08-24  Bruno Haible  <bruno@clisp.org>
51862
51863         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51864         HTML structure.
51865
51866 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * modules/openat (Depends-on): Add lchown.
51869
51870 2006-08-23  Bruno Haible  <bruno@clisp.org>
51871
51872         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51873         of gl_LOCK_EARLY instead of gl_LOCK.
51874
51875 2006-08-23  Bruno Haible  <bruno@clisp.org>
51876
51877         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51878         on OSF/1 to no.
51879         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51880
51881 2006-08-23  Bruno Haible  <bruno@clisp.org>
51882
51883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51884         as unusable.
51885
51886         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51887         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51888         (gl_LOCK): New macro.
51889
51890 2006-08-22  Simon Josefsson  <jas@extundo.com>
51891
51892         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51893         to md5 module.
51894
51895 2006-08-22  Simon Josefsson  <jas@extundo.com>
51896
51897         * MODULES.html.sh: Add "Support for maintaining and release
51898         projects".
51899
51900         * build-aux/gnupload: New file, from coreutils.
51901
51902 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51903
51904         Avoid the need for AC_LIBSOURCES in m4 macros.
51905         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51906         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51907         * modules/check-version (EXTRA_DIST): Add check-version.h.
51908         * modules/crc (EXTRA_DIST): Add crc.h.
51909         * modules/des (EXTRA_DIST): Add des.h.
51910         * modules/gc (EXTRA_DIST): Add gc.h.
51911         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51912         * modules/getline (EXTRA_DIST): Add getline.h.
51913         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51914         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51915         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51916         * modules/md2 (EXTRA_DIST): Add md2.h.
51917         * modules/md4 (EXTRA_DIST): Add md4.h.
51918         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51919         * modules/read-file (EXTRA_DIST): Add read-file.h.
51920         * modules/readline (EXTRA_DIST): Add readline.h.
51921         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51922         rijndael-api-fst.h.
51923
51924 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         * m4/rijndael.m4 (gl_ARCFOUR):
51927         * m4/arctwo.m4 (gl_ARCTWO):
51928         * m4/check-version.m4 (gl_CHECK_VERSION):
51929         * m4/crc.m4 (gl_CRC):
51930         * m4/des.m4 (gl_DES):
51931         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51932         * m4/gc.m4 (gl_GC):
51933         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51934         * m4/getline.m4 (gl_FUNC_GETLINE):
51935         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51936         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51937         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51938         * m4/md2.m4 (gl_MD2):
51939         * m4/md4.m4 (gl_MD4):
51940         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51941         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51942         * m4/readline.m4 (gl_FUNC_READLINE):
51943         * m4/rijndael.m4 (gl_RIJNDAEL):
51944         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51945         to get the necessary .h files and whatnot.
51946
51947 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51950         gnulib rather than the other way around.
51951         * config/srclistvars.sh (COREUTILS): Remove.
51952
51953 2006-08-22  Jim Meyering  <jim@meyering.net>
51954
51955         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51956
51957         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51958
51959 2006-08-22  Eric Blake  <ebb9@byu.net>
51960
51961         * modules/regexprops-generic: New file.
51962         * MODULES.html.sh (Support for building documentation): List it.
51963
51964 2006-08-22  Eric Blake  <ebb9@byu.net>
51965
51966         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51967         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51968         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51969         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51970
51971 2006-08-22  Bruno Haible  <bruno@clisp.org>
51972
51973         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51974         and lib_LTLIBRARIES like the other lib_* variables.
51975
51976 2006-08-22  Bruno Haible  <bruno@clisp.org>
51977
51978         * build-aux/x-to-1.in: New file, from GNU gettext.
51979
51980 2006-08-22  Bruno Haible  <bruno@clisp.org>
51981
51982         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51983         <utmpx.h> exists.
51984
51985 2006-08-22  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51988         <utmpx.h> exists.
51989
51990 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51991
51992         BeOS portability.
51993         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51994         exist.
51995         Problem reported by Bruno Haible.
51996
51997 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51998
51999         Avoid the need for AC_LIBSOURCES in m4 macros.
52000         * modules/acl (EXTRA_DIST): Add acl.h.
52001         * modules/argmatch (Files): Add m4/argmatch.m4.
52002         (configure.ac): Add gl_ARGMATCH.
52003         (EXTRA_DIST): Renamed from lib_SOURCES, for
52004         consistency with the other modules.  Remove argmatch.c.
52005         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
52006         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
52007         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
52008         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
52009         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
52010         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
52011         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
52012         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
52013         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
52014         * modules/closeout (EXTRA_DIST): Add closeout.h.
52015         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
52016         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
52017         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
52018         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
52019         dirname.h; remove basename.c and stripslash.c.
52020         * modules/exclude (EXTRA_DIST): Add exclude.h.
52021         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
52022         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
52023         * modules/file-type (EXTRA_DIST): Add file-type.h.
52024         * modules/filemode (EXTRA_DIST): Add filemode.h.
52025         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
52026         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52027         * modules/fpending (EXTRA_DIST): Add __fpending.h.
52028         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
52029         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
52030         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
52031         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
52032         * modules/getdate (EXTRA_DIST): Add getdate.c.
52033         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
52034         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
52035         * modules/getpass (EXTRA_DIST): Add getpass.h.
52036         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
52037         * modules/group-member (EXTRA_DIST): Add group-member.h.
52038         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
52039         * modules/hash (EXTRA_DIST): Add hash.h.
52040         * modules/human (EXTRA_DIST): Add human.h.
52041         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
52042         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
52043         * modules/lchown (EXTRA_DIST): Add lchown.h.
52044         * modules/long-options (EXTRA_DIST): Add long-options.h.
52045         * modules/lstat (EXTRA_DIST): Add lstat.h.
52046         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
52047         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
52048         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
52049         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
52050         * modules/memxor (EXTRA_DIST): Add memxor.h.
52051         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
52052         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
52053         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
52054         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
52055         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
52056         * modules/physmem (EXTRA_DIST): Add physmem.h.
52057         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
52058         * modules/posixver (EXTRA_DIST): Add posixver.h.
52059         * modules/quote (EXTRA_DIST): Add quote.h.
52060         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
52061         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
52062         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
52063         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
52064         regex_internal.h regexec.c.
52065         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
52066         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
52067         * modules/same (EXTRA_DIST): Add same.h.
52068         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
52069         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
52070         * modules/savedir (EXTRA_DIST): Add savedir.h.
52071         * modules/sha1 (EXTRA_DIST): Add sha1.h.
52072         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
52073         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
52074         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
52075         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
52076         * modules/strdup (EXTRA_DIST): Add strdup.h.
52077         * modules/strftime (EXTRA_DIST): Add strftime.h.
52078         * modules/strndup (EXTRA_DIST): Add strndup.h.
52079         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52080         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52081         * modules/time_r (EXTRA_DIST): Add time_r.h.
52082         * modules/timespec (EXTRA_DIST): Add timespec.h.
52083         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52084         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52085         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52086         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52087         * modules/userspec (EXTRA_DIST): Add userspec.h.
52088         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52089         * modules/utimens (EXTRA_DIST): Add utimens.h.
52090         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52091         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52092         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52093         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52094         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52095         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52096         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52097         * modules/yesno (EXTRA_DIST): Add yesno.h.
52098
52099 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52100
52101         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52102
52103         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52104         * m4/dev-ino.m4, same-inode.m4: Remove.
52105
52106         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52107         * m4/acl.m4 (AC_FUNC_ACL):
52108         * m4/backupfile.m4 (gl_BACKUPFILE):
52109         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52110         * m4/canon-host.m4 (gl_CANON_HOST):
52111         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52112         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52113         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52114         * m4/cloexec.m4 (gl_CLOEXEC):
52115         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52116         * m4/closeout.m4 (gl_CLOSEOUT):
52117         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52118         * m4/dirname.m4 (gl_DIRNAME):
52119         * m4/exclude.m4 (gl_EXCLUDE):
52120         * m4/exitfail.m4 (gl_EXITFAIL):
52121         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52122         * m4/file-type.m4 (gl_FILE_TYPE):
52123         * m4/filemode.m4 (gl_FILEMODE):
52124         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52125         * m4/fpending.m4 (gl_FUNC_FPENDING):
52126         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52127         * m4/fts.m4 (gl_FUNC_FTS):
52128         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52129         * m4/getdate.m4 (gl_GETDATE):
52130         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52131         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52132         * m4/getpass.m4 (gl_FUNC_GETPASS):
52133         * m4/gettime.m4 (gl_GETTIME):
52134         * m4/getugroups.m4 (gl_GETUGROUPS):
52135         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52136         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52137         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52138         * m4/hash.m4 (gl_HASH):
52139         * m4/idcache.m4 (gl_IDCACHE):
52140         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52141         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52142         * m4/long-options.m4 (gl_LONG_OPTIONS):
52143         * m4/lstat.m4 (gl_FUNC_LSTAT):
52144         * m4/md5.m4 (gl_MD5):
52145         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52146         * m4/memcoll.m4 (gl_MEMCOLL):
52147         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52148         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52149         * m4/memxor.m4 (gl_MEMXOR):
52150         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52151         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52152         * m4/modechange.m4 (gl_MODECHANGE):
52153         * m4/mountlist.m4 (gl_MOUNTLIST):
52154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52155         * m4/openat.m4 (gl_FUNC_OPENAT):
52156         * m4/pathmax.m4 (gl_PATHMAX):
52157         * m4/physmem.m4 (gl_PHYSMEM):
52158         * m4/posixtm.m4 (gl_POSIXTM):
52159         * m4/posixver.m4 (gl_POSIXVER):
52160         * m4/quote.m4 (gl_QUOTE):
52161         * m4/quotearg.m4 (gl_QUOTEARG):
52162         * m4/readtokens.m4 (gl_READTOKENS):
52163         * m4/readutmp.m4 (gl_READUTMP):
52164         * m4/regex.m4 (gl_REGEX):
52165         * m4/safe-read.m4 (gl_SAFE_READ):
52166         * m4/safe-write.m4 (gl_SAFE_WRITE):
52167         * m4/same.m4 (gl_SAME):
52168         * m4/save-cwd.m4 (gl_SAVE_CWD):
52169         * m4/savedir.m4 (gl_SAVEDIR):
52170         * m4/settime.m4 (gl_SETTIME):
52171         * m4/sha1.m4 (gl_SHA1):
52172         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52173         * m4/stat-macros.m4 (gl_STAT_MACROS):
52174         * m4/stat-time.m4 (gl_STAT_TIME):
52175         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52176         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52177         * m4/strdup.m4 (gl_FUNC_STRDUP):
52178         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52179         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52180         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52181         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52182         * m4/time_r.m4 (gl_TIME_R):
52183         * m4/timespec.m4 (gl_TIMESPEC):
52184         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52185         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52186         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52187         * m4/userspec.m4 (gl_USERSPEC):
52188         * m4/utimecmp.m4 (gl_UTIMECMP):
52189         * m4/utimens.m4 (gl_UTIMENS):
52190         * m4/xalloc.m4 (gl_XALLOC):
52191         * m4/xgetcwd.m4 (gl_XGETCWD):
52192         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52193         * m4/xreadlink.m4 (gl_XREADLINK):
52194         * m4/xstrtod.m4 (gl_XSTRTOD):
52195         * m4/yesno.m4 (gl_YESNO):
52196         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52197         to get the necessary .h files and whatnot.
52198
52199 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52200             Bruno Haible  <bruno@clisp.org>
52201
52202         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52203         /bin/sh understanding of '!' conditional negation.
52204
52205 2006-08-21  Jim Meyering  <jim@meyering.net>
52206
52207         * modules/openat (Depends-on): Really alphabetize.
52208
52209         * modules/acl (Depends-on): Add error and quote.
52210
52211         * check-module (find_included_lib_files): Add at-func.c to the
52212         ok-to-include-more-than-once white list.
52213
52214         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52215
52216 2006-08-21  Bruno Haible  <bruno@clisp.org>
52217
52218         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52219         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52220         Reported by Martin Lambers <marlam@marlam.de>.
52221
52222 2006-08-21  Bruno Haible  <bruno@clisp.org>
52223
52224         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52225         specify an installation location, don't emit a noinst_LIBRARIES or
52226         noinst_LTLIBRARIES assignment.
52227
52228 2006-08-21  Bruno Haible  <bruno@clisp.org>
52229
52230         BeOS portability.
52231         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52232         BeOS has mbrtowc() but no <wctype.h>.
52233
52234 2006-08-21  Bruno Haible  <bruno@clisp.org>
52235
52236         BeOS portability.
52237         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52238         exist.
52239
52240 2006-08-21  Bruno Haible  <bruno@clisp.org>
52241
52242         BeOS portability.
52243         * lib/mbchar.h: Include <wctype.h> only if it exists.
52244
52245 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52246
52247         Remove files that are no longer needed by their respective modules.
52248         * m4/obstack.m4: Remove.
52249         * m4/strerror_r.m4: Remove.
52250         * m4/uint32_t.m4: Remove.
52251         * m4/uintptr_t.m4: Remove.
52252         * m4/ullong_max.m4: Remove.
52253         * m4/xstrtoimax.m4: Remove.
52254         * m4/xstrtoumax.m4: Remove.
52255
52256         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52257         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52258         dependencies now capture this.
52259
52260         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52261         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52262         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52263         * m4/human.m4 (gl_HUMAN): Likewise.
52264         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52265         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52266
52267         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52268
52269         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52270         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52271         stdint.
52272         * m4/human.m4 (gl_HUMAN): Likewise.
52273         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52274         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52275         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52276         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52277         * m4/xstrtol (gl_XSTRTOL): Likewise.
52278
52279         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52280         AC_TYPE_LONG_LONG_INT.
52281         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52282         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52283         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52284         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52285
52286         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52287         on stdbool.
52288
52289         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52290         (gl_PREREQ_XSTRTOUL): Remove.
52291
52292         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52293
52294         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52295         mode.
52296
52297 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         Add and change modules to make it easier for coreutils to use
52300         gnulib-tool.
52301         * modules/backupfile (Files): Remove m4/d-ino.m4.
52302         (Depends-on): Add d-ino.
52303         * modules/cycle-check (Depends-on): Add stdint.
52304         (lib_SOURCES): Add cycle-check.h.
52305         * modules/d-ino: New module.
52306         * modules/d-type: New module.
52307         * modules/error (Files): Remove m4/strerror_r.m4.
52308         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52309         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52310         m4/inttypes_h.m4, m4/uintmax_t.m4.
52311         (Depends-on): Add stdint.
52312         (lib_SOURCES): Add fsusage.h.
52313         * modules/getcwd (Files): Remove d-ino.m4.
52314         (Depends-on): Add d-ino.
52315         * modules/getndelim2 (Depends-on): Add stdint.
52316         * modules/glob (Files): Remove m4/d-type.m4.
52317         (Depends-on): Add d-type.
52318         * modules/host-os: New module.
52319         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52320         m4/inttypes_h.m4, m4/uintmax_t.m4.
52321         * Depends-on: Add stdint.
52322         (lib_SOURCES): Add human.h.
52323         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52324         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52325         m4/uintmax_t.m4, m4/ulonglong.m4.
52326         (Depends-on): Add stdint.
52327         (EXTRA_DIST): Add inttostr.h.
52328         * modules/lchmod: New module.
52329         * modules/link-follow: New module.
52330         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52331         (Depends-on): Add lchmod.
52332         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52333         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52334         (Depends-on): Add stdint.
52335         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52336         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52337         (Depends-on): Add stdint.
52338         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52339         * modules/perl: New module.
52340         * modules/regex (Depends-on): Add stdint.
52341         * modules/rmdir-errno: New module.
52342         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52343         m4/intmax_t.m4.
52344         (Depends-on): Add stdint.
52345         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52346         m4/uintmax_t.m4.
52347         (Depends-on): Add stdint.
52348         * modules/unlink-busy: New module.
52349         * modules/utimecmp (Depends-on): Add stdint.
52350         * modules/uptime: New module.
52351         * modules/winsz-ioctl: New module.
52352         * modules/winsz-termios: New module.
52353         * modules/xnanosleep (Depends-on): Add nanosleep.
52354         * modules/ullong_max: Remove.
52355         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52356         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52357         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52358         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52359         (Depends-on): Add inttypes.
52360         (lib_SOURCES): Add xstrtol.h.
52361         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52362         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52363         * MODULES.html.sh: Move 'assert' into the assert section.
52364         Move 'dummy' into the linking section.
52365         Remove ullong_max.
52366         Add section for compatibility checks for POSIX:2001 functions,
52367         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52368         winsz-ioctl, and winsz-termios into it.
52369         Add lchmod.
52370         Add top-level Misc section and put host-os, perl, and uptime
52371         into it.
52372
52373 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52374
52375         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52376         now assume the stdint module.  Do not include inttypes.h.
52377         * lib/fsusage.h: Likewise.
52378         * lib/getndelim2.c: Likewise.
52379         * lib/human.h: Likewise.
52380         * lib/inttostr.h: Likewise.
52381         * lib/obstack.c: Likewise.
52382         * lib/regex_internal.h: Likewise.
52383         * lib/tempname.c: Likewise.
52384         * lib/utimecmp.c: Likewise.
52385         * lib/xstrtol.h: Likewise.
52386
52387         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52388
52389         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52390         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52391         * lib/xtime.h: Likewise.
52392
52393 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52394
52395         * modules/openat (Files): Add lib/fchmodat.c.
52396         Fixes problem reported by Jay Youngman.
52397
52398 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52399
52400         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52401         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52402
52403 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52404             Bruno Haible  <bruno@clisp.org>
52405
52406         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52407         and is a script that invokes bison. Tighten the code. Add comments.
52408
52409 2006-08-18  Jim Meyering  <jim@meyering.net>
52410
52411         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52412         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52413         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52414         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52415
52416 2006-08-18  Bruno Haible  <bruno@clisp.org>
52417
52418         * modules/bison-i18n: New file.
52419         * MODULES.html.sh (Internationalization functions): Add it.
52420
52421 2006-08-18  Bruno Haible  <bruno@clisp.org>
52422
52423         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52424         sys/statvfs.h. When getmntinfo was found, check its declaration and
52425         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52426
52427 2006-08-18  Bruno Haible  <bruno@clisp.org>
52428
52429         * m4/bison-i18n.m4: New file, from bison.
52430
52431 2006-08-18  Bruno Haible  <bruno@clisp.org>
52432
52433         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52434         (ME_DUMMY): Treat "kernfs" as a dummy.
52435         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52436
52437 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52438
52439         Update from coreutils.
52440
52441         2006-08-15  Jim Meyering  <jim@meyering.net>
52442
52443         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52444
52445         2006-01-17  Jim Meyering  <jim@meyering.net>
52446
52447         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52448
52449         2006-01-11  Jim Meyering  <jim@meyering.net>
52450
52451         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52452         Check for the lchmod function.
52453
52454 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52455
52456         Update from coreutils.
52457
52458         * lib/__fpending.h: Add copyright notice.
52459         * lib/fprintftime.h: Likewise.
52460         * lib/savedir.c: Use (C) in copyright notice.
52461         * lib/savedir.h: Likewise.
52462
52463         2006-08-15  Jim Meyering  <jim@meyering.net>
52464
52465         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52466         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52467         in support of the EXPECTED_ERRNO macro.
52468         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52469         definitions.  Instead, define the appropriate symbols and include
52470         "at-func.c".
52471         * lib/mkdirat.c (mkdirat): Likewise.
52472         * lib/fchmodat.c (fchmodat): Likewise.
52473         (ENOSYS): Remove definition.
52474         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52475         it.  Don't include "unistd--.h" -- it wasn't ever used.
52476
52477         2006-01-17  Jim Meyering  <jim@meyering.net>
52478
52479         Rewrite fts.c not to change the current working directory,
52480         by using openat, fstatat, fdopendir, etc..
52481
52482         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52483         (HAVE_OPENAT_SUPPORT): Define.
52484         [_LIBC] (fchdir): Don't undef or define; no longer used.
52485         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52486         Now, this `function' always succeeds, and consumes its file descriptor
52487         parameter -- so callers must not close such FDs.  Update callers.
52488         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52489         (diropen): Add parameter, SP.  Adjust all callers.
52490         Implement using diropen_fd, rather than open.
52491         (fts_open): Initialize new member, fts_cwd_fd.
52492         Remove fts_rft-setting code.
52493         (fts_close): Close fts_cwd_fd, if necessary.
52494         (__opendir2): Define in terms of opendir or opendirat,
52495         depending on whether the FST_NOCHDIR flag is set.
52496         (fts_build): Since fts_safe_changedir consumes its FD, and since
52497         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52498         and close the dup'd file descriptor upon failure.
52499         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52500         (fts_safe_changedir): Tweak semantics to reflect that this function
52501         now calls cwd_advance_fd and hence consumes its FD argument.
52502         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52503         [struct FTS] (fts_rft): Remove now-unused member.
52504         [struct FTS] (fts_cycle.state): Improve comment.
52505
52506         * lib/openat.c (openat_needs_fchdir): New function.
52507         * lib/openat.h (openat_needs_fchdir): Declare it.
52508
52509 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52510
52511         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52512         Problem and fix reported by Pádraig Brady in
52513         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52514
52515 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52516
52517         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52518
52519 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52520
52521         * lib/memcoll.c (memcoll): Optimize for the common case where the
52522         arguments are bytewise equal.
52523
52524 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52525
52526         * doc/regexprops-generic.texi: Add a copyright notice.
52527
52528 2006-08-15  Bruno Haible  <bruno@clisp.org>
52529
52530         * modules/tmpdir (License): Change to LGPL.
52531
52532 2006-08-15  Bruno Haible  <bruno@clisp.org>
52533
52534         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52535         module.
52536
52537 2006-08-14  Simon Josefsson  <jas@extundo.com>
52538
52539         * config/srclist.txt: Add gnupload.
52540
52541 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         Change copyright notice from LGPL 2 to GPL 2, since that's the
52544         standard form used in the gnulib repository.
52545         * tests/test-lock.c: Likewise.
52546         * tests/test-stdint.c: Likewise.
52547         * tests/test-tls.c: Likewise.
52548
52549         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52550         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52551         Add copyright notice.
52552
52553         * check-module: Add copyright notice.  Output a copyright
52554         notice if "--version" is specified.
52555         * modules/COPYING: New file.
52556         * tests/test-getaddrinfo.c: Add copyright notice.
52557         * tests/test-verify.c: Likewise.
52558
52559 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52560
52561         Change copyright notice from LGPL 2 to GPL 2, since that's the
52562         standard form used in the gnulib repository.
52563         * lib/lock.c: LGPL -> GPL.
52564         * lib/lock.h: Likewise.
52565         * lib/strnlen1.c: Likewise.
52566         * lib/strnlen1.h: Likewise.
52567         * lib/tls.c: Likewise.
52568         * lib/tls.h: Likewise.
52569         * lib/tmpdir.c: Likewise.
52570
52571         * lib/TODO: Remove; this belongs only in coreutils.
52572
52573 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52574
52575         Add copyright notices to long-enough files that lack them, since
52576         otherwise the files aren't clearly free.  Use the same notice that
52577         getdate.texi already uses.
52578         * doc/alloca-opt.texi: Add copyright notice.
52579         * doc/alloca.texi: Likewise.
52580         * doc/ctime.texi: Likewise.
52581         * doc/functions.texi: Likewise.
52582         * doc/gcd.texi: Likewise.
52583         * doc/gnulib-tool.texi: Likewise.
52584         * doc/inet_ntoa.texi: Likewise.
52585         * doc/visibility.texi: Likewise.
52586
52587         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52588         * doc/quote.texi: Add copyright notice.
52589
52590         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52591         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52592         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52593         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52594         is now obsolete, and give a pointer to the Sun list.
52595         Add copyright notice.
52596
52597 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52598
52599         * config/srclistvars.sh: Add copyright notice.
52600
52601 2006-08-14  Eric Blake  <ebb9@byu.net>
52602
52603         Import the following change from libc:
52604
52605         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52606
52607         Upstream bug 2997.
52608         * lib/misc/error.c: Add space between program name and message if file
52609         name is missing.
52610
52611 2006-08-12  Karl Berry  <karl@gnu.org>
52612
52613         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52614         remove, these originate in gnulib now.
52615
52616 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52617
52618         * doc/Makefile (standards.info standards.html standards.dvi):
52619         Also depend on make-stds.texi.
52620
52621 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52622
52623         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52624         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52625
52626         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52627         in wchar_t.  Problem reported by Eric Blake.
52628
52629         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52630         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52631         Also, help the compiler to keep LEN in a register.
52632
52633 2006-08-11  Eric Blake  <ebb9@byu.net>
52634
52635         * users.txt: Sort.  Add tar.
52636
52637 2006-08-11  Bruno Haible  <bruno@clisp.org>
52638
52639         * users.txt: New file.
52640
52641 2006-08-11  Bruno Haible  <bruno@clisp.org>
52642
52643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52644         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52645
52646 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52647
52648         * modules/snprintf (Depends-on): Remove minmax.
52649         (Maintainer): Add self and Bruno.
52650
52651 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52652
52653         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52654         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52655         (EOVERFLOW): Define if the system does not.
52656         Do not include "minmax.h"; it wasn't used.
52657         (snprintf): Don't assume size_t promotes to an unsigned type.
52658         Fix bug when generated string was too long for the buffer: the
52659         buffer's contents are supposed to be the initial prefix of the
52660         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52661         exceeds INT_MAX; do the check ourselves.
52662
52663         Import the following changes from libc:
52664
52665         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52666
52667         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52668         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52669         set wc to the byte which couldn't be converted.
52670         (re_string_reconstruct): Don't clear valid_raw_len before calling
52671         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52672         tip_context using re_string_context_at.
52673
52674         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52675
52676         * lib/posix/regex.h: g++ still cannot handled [restrict].
52677
52678         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52679
52680         * lib/posix/regex.h: Remove special handling for VMS.
52681
52682 2006-08-10  Jim Meyering  <jim@meyering.net>
52683
52684         * modules/same-inode: New module.
52685         * modules/dev-ino: New module.
52686         * modules/cycle-check: Depend on these modules, rather than simply
52687         including their .h files.
52688         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52689         required via m4/cycle-check.m4.
52690         * modules/same: Depend on new same-inode module, rather than
52691         including same-inode.h.
52692         * modules/chdir-safer: New file.
52693
52694         * modules/chown (Depends-on): Add stat-macros.
52695
52696 2006-08-10  Jim Meyering  <jim@meyering.net>
52697
52698         * m4/cycle-check.m4: New file.
52699         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52700         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52701
52702 2006-08-10  Eric Blake  <ebb9@byu.net>
52703
52704         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52705         in from original proposal.
52706
52707 2006-08-10  Eric Blake  <ebb9@byu.net>
52708         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52709
52710         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52711         namespace.
52712
52713 2006-08-10  Bruno Haible  <bruno@clisp.org>
52714
52715         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52716         as well.
52717
52718 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52719
52720         Sync from coreutils.
52721
52722         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52723
52724         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52725         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52726
52727 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52728
52729         * modules/restrict: Remove; no longer needed now that we assume
52730         Autoconf 2.59 or later.
52731         * MODULES.html.sh: Remove 'restrict'.
52732         * modules/argp (Depends-on): Remove 'restrict'.
52733         * modules/base64 (Depends-on): Likewise.
52734         * modules/gc (Depends-on): Likewise.
52735         * modules/getaddrinfo (Depends-on): Likewise.
52736         * modules/glob (Depends-on): Likewise.
52737         * modules/inet_ntop (Depends-on): Likewise.
52738         * modules/inet_pton (Depends-on): Likewise.
52739         * modules/memxor (Depends-on): Likewise.
52740         * modules/regex (Depends-on): Likewise.
52741         * modules/strtok_r (Depends-on): Likewise.
52742         * modules/time_r (Depends-on): Likewise.
52743
52744 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52745
52746         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52747         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52748         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52749         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52750         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52751         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52752         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52753         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52754
52755         Merge from coreutils.
52756         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52757         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52758         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52759         * m4/time_r.m4 (gl_TIME_R): Likewise.
52760
52761 2006-08-09  Karl Berry  <karl@gnu.org>
52762
52763         * config/srclist.txt: no more gettext-tools, per Bruno.
52764
52765 2006-08-08  Eric Blake  <ebb9@byu.net>
52766
52767         * modules/verror: New module.
52768         * MODULES.html.sh: Document it.
52769
52770 2006-08-08  Eric Blake  <ebb9@byu.net>
52771
52772         * lib/verror.h, lib/verror.c: New files.
52773
52774 2006-08-08  Eric Blake  <ebb9@byu.net>
52775
52776         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52777         verror_at_line output complies with GNU Coding Standards even when
52778         file is NULL.
52779
52780 2006-08-07  Bruno Haible  <bruno@clisp.org>
52781
52782         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52783         versions of AIX.
52784         Reported by Ralf Wildenhues.
52785
52786 2006-08-07  Bruno Haible  <bruno@clisp.org>
52787
52788         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52789         in an AC_DEFUN. Needed so that the autoconf snippets can use
52790         AC_REQUIRE.
52791
52792 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52793
52794         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52795         Initialize pkgdata_DATA.
52796         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52797         overriding it.
52798
52799 2006-08-06  Eric Blake  <ebb9@byu.net>
52800
52801         * lib/error.h: Fold in some upstream changes from glibc.
52802         * lib/error.c: Likewise.
52803
52804 2006-08-04  Bruno Haible  <bruno@clisp.org>
52805
52806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52807         Make the mostlyclean-local rule depend on mostlyclean-generic.
52808         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52809
52810 2006-07-31  Bruno Haible  <bruno@clisp.org>
52811
52812         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52813         <stdlib.h>, <string.h>.
52814
52815 2006-07-30  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/readlink (License): Change to LGPL.
52818
52819 2006-07-30  Bruno Haible  <bruno@clisp.org>
52820
52821         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52822         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52823         set PKGDATADIR to point to it.
52824
52825 2006-07-30  Bruno Haible  <bruno@clisp.org>
52826
52827         * modules/csharpexec (configure.ac): Comment out macro invocation.
52828         * modules/javaexec (configure.ac): Likewise.
52829         * modules/javacomp-script (configure.ac): Likewise.
52830
52831         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52832
52833 2006-07-30  Bruno Haible  <bruno@clisp.org>
52834
52835         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52836         linked-list.
52837
52838 2006-07-30  Bruno Haible  <bruno@clisp.org>
52839
52840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52841
52842 2006-07-30  Bruno Haible  <bruno@clisp.org>
52843
52844         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52845         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52846         get removed.
52847
52848 2006-07-29  Bruno Haible  <bruno@clisp.org>
52849
52850         Make it possible for gnulib-tool to work with locally modified or
52851         augmented gnulib repositories.
52852         * gnulib-tool (func_usage): Document --local-dir option.
52853         (local_gnulib_dir): New variable.
52854         Handle --local-dir option.
52855         (func_lookup_file): New function.
52856         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52857         (func_get_description, func_get_filelist, func_get_description,
52858         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52859         func_get_automake_snippet, func_get_include_directive,
52860         func_get_license, func_get_maintainer): Use func_lookup_file.
52861         (func_import, func_create_testdir): Use func_lookup_file.
52862
52863 2006-07-29  Bruno Haible  <bruno@clisp.org>
52864
52865         * modules/setenv (Depends-on): Add unistd.
52866
52867 2006-07-29  Bruno Haible  <bruno@clisp.org>
52868
52869         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52870
52871 2006-07-29  Bruno Haible  <bruno@clisp.org>
52872
52873         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52874
52875 2006-07-29  Bruno Haible  <bruno@clisp.org>
52876
52877         * gnulib-tool (import, update): If there is no Makefile.am, look at
52878         aclocal.m4, instead of bailing out.
52879
52880 2006-07-29  Bruno Haible  <bruno@clisp.org>
52881
52882         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52883         Categorize the options by when they are useful.
52884
52885 2006-07-29  Bruno Haible  <bruno@clisp.org>
52886
52887         * gnulib-tool (func_usage): Document option --no-libtool.
52888         Handle option --no-libtool.
52889         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52890         for changed semantics of $libtool variable.
52891         (func_import): Likewise. If libtool is not used, show this through
52892         an option --no-libtool.
52893         (func_create_testdir): Update.
52894
52895 2006-07-29  Bruno Haible  <bruno@clisp.org>
52896
52897         * gnulib-tool (func_import): Extend error message about missing
52898         --doc-base.
52899
52900 2006-07-29  Bruno Haible  <bruno@clisp.org>
52901
52902         * gnulib-tool (func_import): Don't create the $docbase directory if
52903         there is no file to store there.
52904
52905 2006-07-29  Bruno Haible  <bruno@clisp.org>
52906
52907         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52908         relevant, look for configure.ac there, not in the current directory.
52909         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52910
52911 2006-07-29  Bruno Haible  <bruno@clisp.org>
52912
52913         * gnulib-tool (SORT): New variable.
52914         (func_usage): Undocument --assume-autoconf option.
52915         Remove --assume-autoconf option handling.
52916         (autoconf_minversion): Determine from the contents of configure.ac.
52917         (func_import): Remove autoconf_minversion handling.
52918         Suggested by Eric Blake.
52919
52920 2006-07-29  Bruno Haible  <bruno@clisp.org>
52921
52922         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52923
52924 2006-07-29  Bruno Haible  <bruno@clisp.org>
52925
52926         * config/srclist.txt (*setenv.[ch]): Remove rules.
52927
52928 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52929
52930         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52931
52932 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52933
52934         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52935         arpa/inet.h.
52936
52937 2006-07-28  Simon Josefsson  <jas@extundo.com>
52938
52939         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52940         * modules/inet_pton (Depends-on): Likewise.
52941
52942 2006-07-28  Simon Josefsson  <jas@extundo.com>
52943
52944         * m4/netinet_in_h.m4: New file.
52945
52946 2006-07-28  Simon Josefsson  <jas@extundo.com>
52947
52948         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52949         #include's.
52950
52951 2006-07-28  Simon Josefsson  <jas@extundo.com>
52952
52953         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52954         #include's.
52955
52956 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52959         setgid on directories only if they set these bits.
52960         * lib/modechange.h: Remove obsolete comment about masks.
52961
52962 2006-07-28  Eric Blake  <ebb9@byu.net>
52963
52964         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52965         macro expansion.
52966
52967 2006-07-28  Bruno Haible  <bruno@clisp.org>
52968
52969         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52970
52971 2006-07-28  Bruno Haible  <bruno@clisp.org>
52972
52973         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52974
52975 2006-07-28  Bruno Haible  <bruno@clisp.org>
52976
52977         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52978         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52979         Define fallbacks.
52980         Avoids link error on FreeBSD 4.x.
52981         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52982
52983         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52984         encoding.
52985         * lib/mbswidth.c (iswcntrl): Likewise.
52986
52987 2006-07-27  Bruno Haible  <bruno@clisp.org>
52988
52989         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52990         test.
52991
52992 2006-07-27  Bruno Haible  <bruno@clisp.org>
52993
52994         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52995         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52996         defined.
52997
52998 2006-07-26  Eric Blake  <ebb9@byu.net>
52999
53000         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
53001
53002 2006-07-26  Eric Blake  <ebb9@byu.net>
53003
53004         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
53005         like mingw that lack mkstemp.
53006         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
53007         avoid compilation warning on mingw.
53008
53009 2006-07-26  Bruno Haible  <bruno@clisp.org>
53010
53011         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
53012         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
53013         INT_FAST*_MIN, INTPTR_MIN.
53014
53015 2006-07-25  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/version-etc (Depends-on): Add stdarg.
53018
53019 2006-07-25  Bruno Haible  <bruno@clisp.org>
53020
53021         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
53022         complex commands.
53023
53024 2006-07-25  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
53027         defined in <stdarg.h> or config.h.
53028
53029 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53030
53031         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
53032         (gl_STDIO_SAFER): Remove.
53033
53034 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53035
53036         * MODULES.html.sh (File stream based Input/Output):
53037         Add fopen-safer, tmpfile-safer; remove stdio-safer.
53038         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
53039         * modules/fopen-safer, modules/tmpfile-safer: New files.
53040         * modules/stdio-safer: Remove.
53041
53042 2006-07-24  Bruno Haible  <bruno@clisp.org>
53043
53044         * modules/tmpdir: New file.
53045         * MODULES.html.sh (File system functions): Add it.
53046
53047 2006-07-24  Bruno Haible  <bruno@clisp.org>
53048
53049         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
53050         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
53051
53052 2006-07-24  Bruno Haible  <bruno@clisp.org>
53053
53054         * modules/clean-temp: New file.
53055
53056 2006-07-24  Bruno Haible  <bruno@clisp.org>
53057
53058         * m4/tmpdir.m4: New file, from GNU gettext.
53059
53060 2006-07-24  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/tmpdir.h: New file, from GNU gettext.
53063         * lib/tmpdir.c: New file, from GNU gettext.
53064
53065 2006-07-24  Bruno Haible  <bruno@clisp.org>
53066
53067         * lib/clean-temp.h: New file, from GNU gettext.
53068         * lib/clean-temp.c: New file, from GNU gettext.
53069
53070 2006-07-23  Eric Blake  <ebb9@byu.net>
53071
53072         * modules/stdio-safer (Files): Add tmpfile-safer.c.
53073         (Depends-on): Add binary-io.
53074
53075 2006-07-23  Eric Blake  <ebb9@byu.net>
53076
53077         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53078
53079 2006-07-23  Eric Blake  <ebb9@byu.net>
53080
53081         * lib/tmpfile-safer.c: New file.
53082         * lib/stdio-safer.h (fopen_safer): Add prototype.
53083         * lib/stdio--.h (tmpfile): Make safer.
53084
53085 2006-07-23  Bruno Haible  <bruno@clisp.org>
53086
53087         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53088         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53089         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53090         gl_linked_remove_at): Use it.
53091
53092 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53093         and Simon Josefsson <jas@extundo.com>
53094
53095         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53096
53097         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53098
53099 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53100
53101         * modules/close-stream: New file.
53102         * modules/closeout (Description): Make it clear that it exits
53103         with a diagnostic on error.
53104         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53105         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53106
53107 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53108
53109         * m4/close-stream.m4: New file.
53110
53111 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53112
53113         * lib/close-stream.c, lib/close-stream.h: New files.
53114
53115 2006-07-22  Bruno Haible  <bruno@clisp.org>
53116
53117         Merge from GNU gettext 0.15.
53118
53119         2006-05-01  Bruno Haible  <bruno@clisp.org>
53120
53121                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53122
53123         2006-07-22  Bruno Haible  <bruno@clisp.org>
53124
53125                 * modules/javaversion: New file.
53126                 * MODULES.html.sh (Java): Add javaversion.
53127
53128         2006-03-12  Bruno Haible  <bruno@clisp.org>
53129
53130                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53131
53132         2005-12-04  Bruno Haible  <bruno@clisp.org>
53133
53134                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53135                 (untested).
53136
53137         2006-06-21  Bruno Haible  <bruno@clisp.org>
53138
53139                 Avoid warnings from recent versions of mcs.
53140                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53141                 -o, -L, -r any more. Use options documented since mcs-1.0
53142                 instead. Similarly for -g.
53143
53144         2005-12-04  Bruno Haible  <bruno@clisp.org>
53145
53146                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53147                 .resources, not .resource.
53148
53149         2005-07-09  Bruno Haible  <bruno@clisp.org>
53150
53151                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53152                 add a .dll suffix.
53153                 Reported by Mark Junker <mjscod@gmx.de>.
53154
53155         2006-07-22  Bruno Haible  <bruno@clisp.org>
53156
53157                 * modules/gettext: Upgrade to gettext-0.15.
53158                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53159                 m4/visibility.m4.
53160                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53161
53162 2006-07-22  Bruno Haible  <bruno@clisp.org>
53163
53164         Merge from GNU gettext 0.15.
53165
53166         2006-03-25  Bruno Haible  <bruno@clisp.org>
53167
53168                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53169
53170         2006-07-21  Bruno Haible  <bruno@clisp.org>
53171
53172                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53173                 "1.1".
53174
53175         2006-05-09  Bruno Haible  <bruno@clisp.org>
53176
53177                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53178                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53179                 for the conftestver execution.
53180
53181         2006-05-01  Bruno Haible  <bruno@clisp.org>
53182
53183                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53184                 optional target-version argument. Verify that the compiler
53185                 groks source of the specified source-version, or add -source
53186                 option as necessary. Verify that the compiler produces
53187                 bytecode in the specified target-version, or add -target and
53188                 -source options as necessary. Make the result of the test
53189                 available as variable CONF_JAVAC. Also log error output in
53190                 config.log.
53191
53192         2006-03-11  Bruno Haible  <bruno@clisp.org>
53193
53194                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53195
53196         2006-05-09  Bruno Haible  <bruno@clisp.org>
53197
53198                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53199                 CLASSPATH_SEPARATOR to a semicolon.
53200
53201         2006-03-12  Bruno Haible  <bruno@clisp.org>
53202
53203                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53204                 available as variable CONF_JAVA, for subsequent autoconf
53205                 tests. Also log error output in config.log.
53206
53207         2006-07-19  Bruno Haible  <bruno@clisp.org>
53208
53209                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53210                 that getline works on glibc2 systems. Needed to avoid trouble
53211                 in relocatable.c.
53212                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53213
53214         2005-12-04  Bruno Haible  <bruno@clisp.org>
53215
53216                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53217                 launcher (untested).
53218
53219         2005-12-04  Bruno Haible  <bruno@clisp.org>
53220
53221                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53222
53223         2006-07-22  Bruno Haible  <bruno@clisp.org>
53224
53225                 * gettext.m4: Update from GNU gettext-0.15.
53226                 * nls.m4: Likewise.
53227                 * po.m4: Likewise.
53228                 * inttypes-pri.m4: Likewise.
53229                 * inttypes-h.m4: Renamed from inttypes.m4.
53230                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53231
53232 2006-07-22  Bruno Haible  <bruno@clisp.org>
53233
53234         Merge from GNU gettext 0.15.
53235
53236         2005-07-05  Bruno Haible  <bruno@clisp.org>
53237
53238                 * printf-args.c (printf_fetchargs): Work around broken
53239                 definition of wint_t on mingw.
53240
53241         2005-02-12  Bruno Haible  <bruno@clisp.org>
53242
53243                 * xallocsa.h: Add extern "C" for C++.
53244
53245         2006-05-17  Bruno Haible  <bruno@clisp.org>
53246
53247                 Cygwin portability.
53248                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53249
53250         2006-04-30  Bruno Haible  <bruno@clisp.org>
53251
53252                 * progreloc.c: Include <mach-o/dyld.h> if available.
53253                 (find_executable): Use _NSGetExecutablePath when possible.
53254
53255         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53256
53257                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53258                 function.
53259
53260         2005-12-29  Bruno Haible  <bruno@clisp.org>
53261
53262                 * progreloc.c (set_program_name_and_installdir): Fix
53263                 compilation error.
53264
53265         2005-12-04  Bruno Haible  <bruno@clisp.org>
53266
53267                 Cygwin portability.
53268                 * progreloc.c: Include <windows.h> also on Cygwin.
53269                 (find_executable): Add support for Cygwin.
53270                 (set_program_name_and_installdir): Handle also platforms with
53271                 nonempty EXEEXT.
53272
53273         2006-07-11  Bruno Haible  <bruno@clisp.org>
53274
53275                 * javacomp.c: Fix a comment.
53276                 Reported by Jim Meyering.
53277
53278         2006-04-30  Bruno Haible  <bruno@clisp.org>
53279
53280                 * javacomp.h (compile_java_class): Add source_version,
53281                 target_version arguments.
53282                 * javacomp.c: Rewritten to choose only a compiler that
53283                 respects the specified source_version and target_version.
53284
53285         2006-06-27  Bruno Haible  <bruno@clisp.org>
53286
53287                 Assume correct S_ISDIR macro.
53288                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53289
53290         2006-07-22  Bruno Haible  <bruno@clisp.org>
53291
53292                 * javaversion.h: New file, from GNU gettext.
53293                 * javaversion.c: New file, from GNU gettext.
53294                 * javaversion.java: New file, from GNU gettext.
53295                 * javaversion.class: New file, from GNU gettext.
53296
53297         2006-05-17  Bruno Haible  <bruno@clisp.org>
53298
53299                 Cygwin portability.
53300                 * javaexec.c (execute_java_class): Test for jview program
53301                 also on Cygwin.
53302
53303         2006-04-09  Bruno Haible  <bruno@clisp.org>
53304
53305                 * fatal-signal.c: Don't include string.h.
53306                 (at_fatal_signal): Use a copying loop instead of memcpy.
53307
53308         2005-12-04  Bruno Haible  <bruno@clisp.org>
53309
53310                 * csharpexec.c: Add support for 'clix' launcher (untested).
53311                 (execute_csharp_using_sscli): New function.
53312                 (execute_csharp_program): Call it.
53313
53314         2006-06-21  Bruno Haible  <bruno@clisp.org>
53315
53316                 Avoid warnings from recent versions of mcs.
53317                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53318                 -o, -L, -r any more. Use options documented since mcs-1.0
53319                 instead. Similarly for -g.
53320
53321         2005-07-09  Bruno Haible  <bruno@clisp.org>
53322
53323                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53324                 add a .dll suffix.
53325                 Reported by Mark Junker <mjscod@gmx.de>.
53326
53327         2006-06-17  Bruno Haible  <bruno@clisp.org>
53328
53329                 * config.charset: Update for NetBSD 3.0.
53330
53331         2006-05-17  Bruno Haible  <bruno@clisp.org>
53332
53333                 Cygwin portability.
53334                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53335
53336         2006-05-16  Bruno Haible  <bruno@clisp.org>
53337
53338                 * localcharset.c [CYGWIN]: Include <windows.h>.
53339                 (get_charset_aliases): For Cygwin, return the same CPxxx
53340                 aliases list as under WIN32.
53341                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53342                 the environment variables. Fall back to GetACP().
53343
53344         2006-04-05  Bruno Haible  <bruno@clisp.org>
53345
53346                 * config.charset: Update Juan Manuel Guerrero's address.
53347
53348         2005-02-12  Bruno Haible  <bruno@clisp.org>
53349
53350                 * allocsa.h: Add extern "C" for C++.
53351
53352         2005-02-10  Bruno Haible  <bruno@clisp.org>
53353
53354                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53355                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53356
53357         2006-07-22  Bruno Haible  <bruno@clisp.org>
53358
53359                 * gettext.h: Update to GNU gettext-0.15.
53360
53361 2006-07-22  Bruno Haible  <bruno@clisp.org>
53362
53363         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53364         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53365         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53366
53367 2006-07-21  Eric Blake  <ebb9@byu.net>
53368
53369         * modules/stdlib-safer: New file.
53370         * MODULES.html.sh (File stream based Input/Output): Add
53371         stdlib-safer.
53372
53373 2006-07-21  Eric Blake  <ebb9@byu.net>
53374
53375         * lib/stdlib-safer.h: New file from coreutils, required by
53376         stdlib--.h.
53377
53378 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53379
53380         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53381
53382 2006-07-20  Bruno Haible  <bruno@clisp.org>
53383
53384         * gnulib-tool: Recognize new option --assume-autoconf.
53385         (autoconf_minversion): New variable.
53386         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53387
53388 2006-07-20  Bruno Haible  <bruno@clisp.org>
53389
53390         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53391
53392 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53393
53394         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53395         Reindent and repaginate.
53396
53397 2006-07-19  Derek Price  <derek@ximbiot.com>
53398
53399         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53400         Correct grammar.
53401
53402 2006-07-17  Bruno Haible  <bruno@clisp.org>
53403
53404         * modules/list: New file.
53405         * modules/array-list: New file.
53406         * modules/carray-list, modules/carray-list-tests: New files.
53407         * modules/linked-list, modules/linked-list-tests: New files.
53408         * modules/avltree-list, modules/avltree-list-tests: New files.
53409         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53410         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53411         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53412         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53413         * modules/oset: New file.
53414         * modules/array-oset: New file.
53415         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53416         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53417         * tests/test-carray_list.c: New file.
53418         * tests/test-linked_list.c: New file.
53419         * tests/test-avltree_list.c: New file.
53420         * tests/test-rbtree_list.c: New file.
53421         * tests/test-linkedhash_list.c: New file.
53422         * tests/test-avltreehash_list.c: New file.
53423         * tests/test-rbtreehash_list.c: New file.
53424         * tests/test-avltree_oset.c: New file.
53425         * tests/test-rbtree_oset.c: New file.
53426         * MODULES.html.sh (Container data structures): New section.
53427
53428 2006-07-17  Bruno Haible  <bruno@clisp.org>
53429
53430         * m4/gl_list.m4: New file.
53431
53432 2006-07-17  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/gl_list.h: New file.
53435         * lib/gl_list.c: New file.
53436         * lib/gl_array_list.h: New file.
53437         * lib/gl_array_list.c: New file.
53438         * lib/gl_carray_list.h: New file.
53439         * lib/gl_carray_list.c: New file.
53440         * lib/gl_linked_list.h: New file.
53441         * lib/gl_linked_list.c: New file.
53442         * lib/gl_anylinked_list1.h: New file.
53443         * lib/gl_anylinked_list2.h: New file.
53444         * lib/gl_avltree_list.h: New file.
53445         * lib/gl_avltree_list.c: New file.
53446         * lib/gl_anyavltree_list1.h: New file.
53447         * lib/gl_anyavltree_list2.h: New file.
53448         * lib/gl_rbtree_list.h: New file.
53449         * lib/gl_rbtree_list.c: New file.
53450         * lib/gl_anyrbtree_list1.h: New file.
53451         * lib/gl_anyrbtree_list2.h: New file.
53452         * lib/gl_anytree_list1.h: New file.
53453         * lib/gl_anytree_list2.h: New file.
53454         * lib/gl_linkedhash_list.h: New file.
53455         * lib/gl_linkedhash_list.c: New file.
53456         * lib/gl_anyhash_list1.h: New file.
53457         * lib/gl_anyhash_list2.h: New file.
53458         * lib/gl_avltreehash_list.h: New file.
53459         * lib/gl_avltreehash_list.c: New file.
53460         * lib/gl_rbtreehash_list.h: New file.
53461         * lib/gl_rbtreehash_list.c: New file.
53462         * lib/gl_anytreehash_list1.h: New file.
53463         * lib/gl_anytreehash_list2.h: New file.
53464
53465         * lib/gl_oset.h: New file.
53466         * lib/gl_oset.c: New file.
53467         * lib/gl_array_oset.h: New file.
53468         * lib/gl_array_oset.c: New file.
53469         * lib/gl_avltree_oset.h: New file.
53470         * lib/gl_avltree_oset.c: New file.
53471         * lib/gl_rbtree_oset.h: New file.
53472         * lib/gl_rbtree_oset.c: New file.
53473         * lib/gl_anytree_oset.h: New file.
53474
53475 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53476
53477         * m4/mkancesdirs.m4: New file.
53478         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53479         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53480         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53481         it.
53482
53483 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53484
53485         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53486         * lib/mkancesdirs.h: New files.
53487         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53488         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53489         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53490         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53491         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53492         callers changed.  Revamp internals significantly, by not
53493         attempting to create directories that are temporarily more
53494         permissive than the final results.  Do not attempt to use
53495         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53496         This removes some race conditions, fixes some bugs, and simplifies
53497         things.  Use new dirchownmod function to do owner and mode changes.
53498         * lib/mkdir-p.h: Likewise.
53499         * lib/modechange.c (octal_to_mode): New function.
53500         (struct mode_change): New member mentioned.
53501         (make_node_op_equals): New arg mentioned.  All callers changed.
53502         (mode_compile): Keep track of which mode bits the user has explicitly
53503         mentioned.
53504         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53505         New arg PMODE_BITS, to keep track of which mode bits the user
53506         mentioned; it treats S_ISUID and S_ISGID speciall.
53507         All callers changed.
53508         * lib/modechange.h: Likewise.
53509
53510 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53511
53512         * MODULES.html.sh: Add mkancestors.
53513         * modules/mkancesdirs: New module.
53514         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53515         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53516         The chdir-safer and afs files are now orphans; I'll remove them
53517         unless someone speaks up.
53518         Add lib/dirchownmod.c, lib/dirchownmod.h.
53519         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53520         Add lchown, mkancesdirs.
53521         (Maintainer): Add self.
53522
53523 2006-07-15  Karl Berry  <karl@gnu.org>
53524
53525         * gnulib-tool: help message wording/arrangement.
53526
53527 2006-07-14  Simon Josefsson  <jas@extundo.com>
53528
53529         * doc/gnulib.texi (Libtool and Windows): New section.
53530
53531 2006-07-12  Simon Josefsson  <jas@extundo.com>
53532
53533         * modules/gendocs (License): Fix license, approved by Karl.
53534
53535 2006-07-12  Eric Blake  <ebb9@byu.net>
53536
53537         * MODULES.html.sh: Add gendocs.
53538
53539 2006-07-11  Eric Blake  <ebb9@byu.net>
53540
53541         * modules/fdl: New module, to install doc/fdl.texi.
53542         * MODULES.html.sh: Add new section for documentation modules.
53543         * gnulib-tool: Avoid space-tab.
53544         (--doc-base): New option, to manage files from doc.
53545
53546 2006-07-11  Eric Blake  <ebb9@byu.net>
53547
53548         * m4/absolute-header.m4: Fix comments to match recent change.
53549
53550 2006-07-11  Eric Blake  <ebb9@byu.net>
53551
53552         * gnulib-tool: List --doc-base before --tests-base.
53553
53554 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53555
53556         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53557
53558 2006-07-11  Bruno Haible  <bruno@clisp.org>
53559
53560         * README: Mention where to put documentation.
53561
53562 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53563
53564         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53565
53566 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53567
53568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53569         to stdint.m4.
53570
53571 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53574         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53575         "no/such/file/stdint.h" when there is no such file, so that
53576         the resulting C code can be parsed by dodgy compilers.
53577         Problems reported by Bob Proulx.
53578
53579 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53580
53581         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53582         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53583         macros into the GNU _D_EXACT_NAMLEN.
53584         * lib/savedir.c:  Likewise.
53585         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53586
53587 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53588         and Paul Eggert  <eggert@cs.ucla.edu>
53589
53590         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53591         * m4/savedir.m4:
53592         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53593         macros into the GNU _D_EXACT_NAMLEN.
53594
53595 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53598         around the absolute name, to work around a problem with the HP-UX
53599         11.23 native C compiler, reported by Bob Proulx.
53600
53601 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * doc/maintain.texi, make-stds.texi: Sync from
53604         <http://savannah.gnu.org/projects/gnustandards>.
53605
53606 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53609
53610 2006-07-09  Jim Meyering  <jim@meyering.net>
53611
53612         * m4/glob.m4: Remove a doubled word in a comment.
53613
53614 2006-07-09  Jim Meyering  <jim@meyering.net>
53615
53616         * lib/argp-pv.c: Remove a doubled word in a comment.
53617         * lib/check-version.c (check_version): Likewise.
53618         * lib/javacomp.c (compile_java_class): Likewise.
53619
53620 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53621
53622         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53623         for the benefit of people using Autoconf 2.60.  If you want to
53624         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53625         (or m4/onceonly.m4, if pre-2.57) manually.
53626
53627 2006-07-08  Jim Meyering  <jim@meyering.net>
53628
53629         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53630         comment.
53631         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53632         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53633         comment.
53634
53635 2006-07-08  Jim Meyering  <jim@meyering.net>
53636
53637         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53638
53639 2006-07-07  Simon Josefsson  <jas@extundo.com>
53640
53641         * tests/test-crc.c: Change expected crc value, the test vector
53642         were probably computed using the old broken crc.c?
53643
53644 2006-07-06  Simon Josefsson  <jas@extundo.com>
53645
53646         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53647         now the canonical place for the M4 file).
53648
53649         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53650         from the sys_socket dependency now.
53651
53652         * modules/inet_pton (Files): Ditto.
53653
53654         * modules/inet_ntop (Files): Ditto.
53655
53656 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53657
53658         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53659         not gl_PREREQ_GETUSERSHELL.
53660
53661 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53662
53663         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53664         with only one argument, for Autoconf 2.60.
53665         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53666         expand to nothing, so add a shell command to avoid syntax error.
53667         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53668
53669 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53670
53671         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53672
53673 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53674
53675         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53676         no longer needed.  Check for isblank decl.
53677         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53678         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53679         of existence.
53680
53681 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         * lib/getloadavg.c: Use __VMS, not VMS.
53684         * lib/getopt.c: Likewise.
53685         * lib/getpagesize.h: Likewise.
53686         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53687         and probably does not work.
53688
53689 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * lib/.cppi-disable: Add wcwidth.
53692         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53693         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53694         (ISGRAPH): Remove.  All uses changed to isgraph.
53695         (FOLD) [!defined _LIBC]: Remove special case.
53696         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53697         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53698         HAVE_ISBLANK.
53699         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53700         case.
53701
53702 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53703
53704         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53705         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53706         brackets.  Other minor changes to suppress some compiler
53707         warnings.
53708
53709 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53710         and Paul Eggert  <eggert@cs.ucla.edu>
53711
53712         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53713         of invoking obsolescent AC_HEADER_DIRENT macro.
53714         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53715         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53716         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53718         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53719         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53720         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53721         * m4/readdir.m4: Remove; no longer needed.
53722
53723 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53724         and Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53727         Don't worry about this obsolete case any more.
53728         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53729         directories.
53730         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53731         worry about this obsolete case any more.
53732         * lib/fts.c: Likewise.
53733         * lib/getcwd.c: Likewise.
53734         * lib/glob.h: Likewise.
53735         * lib/savedir.c: Likewise.
53736
53737 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53738
53739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53740         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53741         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53742         needed.
53743         All uses removed.
53744         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53745         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53746         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53747         needed.
53748         * m4/getdate.m4 (gl_GETDATE): Likewise.
53749         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53750         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53751         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53752         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53753         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53754         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53755         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53756         needed.
53757
53758 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53759
53760         * lib/memcasecmp.c: Include <limits.h>.
53761         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53762         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53763         Don't assume isdigit succeeds only on '0' through '9'.
53764
53765 2006-07-05  Eric Blake  <ebb9@byu.net>
53766
53767         * modules/getaddrinfo (Depends-on): Add snprintf.
53768
53769 2006-07-05  Eric Blake  <ebb9@byu.net>
53770
53771         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53772         to avoid 'header present but could not be compiled' on cygwin.
53773
53774 2006-07-05  Eric Blake  <ebb9@byu.net>
53775
53776         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53777         missing from netdb.h.
53778         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53779
53780 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53781
53782         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53783         no longer needed.
53784         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53785         * m4/getdate.m4 (gl_GETDATE): Likewise.
53786         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53787         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53788         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53789         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53791
53792 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53793
53794         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53795         All uses of is_space replaced by isspace.
53796         * lib/exit.h: Don't talk about STDC_HEADERS.
53797         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53798         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53799         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53800         replaced by isprint etc.
53801         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53802         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53803         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53804         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53805         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53806         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53807
53808 2006-07-05  Bruno Haible  <bruno@clisp.org>
53809
53810         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53811         the function exists, before testing against AIX.
53812         Reported by Martin Lambers <marlam@marlam.de>.
53813
53814 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53815
53816         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53817         From Mark D. Baushke.
53818
53819 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53820
53821         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53822         to the absolute name, not just one, to bypass Sun C 5.8's
53823         "warning: #include of /usr/include/... may be non-portable".
53824
53825 2006-07-04  Eric Blake  <ebb9@byu.net>
53826
53827         * modules/dirname-tests: New test module.
53828         * tests/test-dirname.c: New file, replacing dirname.c
53829         TEST_DIRNAME section that was recently deleted.
53830
53831 2006-07-04  Bruno Haible  <bruno@clisp.org>
53832
53833         Assume ANSI C header files and <ctype.h> functions.
53834         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53835         (mbsnwidth): Use isprint, iscntrl instead.
53836
53837 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         Merge from coreutils.
53840         * MODULES.html.sh: Add xstrtold.
53841         * modules/xstrtold: New file.
53842         * modules/cycle-check (Files): Add lib/same-inode.h.
53843         * modules/dirname (Files): Add m4/double-slash-root.m4.
53844         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53845         * modules/mkdir-p (Files): Add lib/same-inode.h.
53846         * modules/same (Files): Add lib/same-inode.h.
53847
53848 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53849
53850         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53851         This is to keep the terminology clean; POSIX talks about
53852         "absolute pathnames", not "full pathnames", but the GNU
53853         Coding Standards say to use "path" for something else;
53854         so use "absolute" to keep both sides happy.
53855         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53856         Set gl_absolute_header, not gl_full_header_path.
53857         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53858         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53859         All uses changed.
53860
53861         Merge from coreutils.
53862
53863         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53864
53865         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53866         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53867         want to require the building of c-strtod.o.
53868         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53869         needs -lm directly.
53870         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53871
53872         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53873
53874         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53875         --as-needed option if available.  Problem reported by Albert Chin in
53876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53877         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53878         cc merely issues a bunch of annoying warnings for --as-needed
53879         (this problem was reported by Bob Proulx).  Also, try linking with
53880         -lm to detect a bug in binutils 2.16 (this problem was reported
53881         by Ralf Wildenhues).
53882
53883         2006-06-18  Jim Meyering  <jim@meyering.net>
53884
53885         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53886         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53887         macro.
53888         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53889         also check for glibc-2.4's abort-inducing bug.
53890
53891         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53892         Low-probability clean-up should be to use rmdir to get rid of
53893         the just-created directory, not unlink.
53894
53895         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53896         configure fail, and request a bug report to inform us about it.
53897         Add a comment that, barring reports to the contrary, in 2007 we'll
53898         assume ftruncate is universally available.
53899
53900         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53903
53904         2006-03-12  Jim Meyering  <jim@meyering.net>
53905
53906         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53907         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53908         * m4/same.m4 (gl_SAME): Likewise.
53909         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53910
53911         2006-03-11  Eric Blake  <ebb9@byu.net>
53912
53913         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53914         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53915         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53916         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53917
53918 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53919
53920         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53921         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53922         reported by Mark D. Baushke, one in
53923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53924
53925         Merge from coreutils.
53926
53927         * lib/.cppi-disable: Add stdint_.h.
53928         * lib/.cvsignore: Add stdint.h.
53929
53930         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53933         both double and long double versions.
53934         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53935         * lib/xstrtold.c: New file.
53936         * lib/xstrtod.h (xstrtold): New decl.
53937
53938         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53939
53940         * lib/filemode.c (setst): Remove.
53941         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53942         (arguably) clearer, and the generated code is a bit smaller on my
53943         Debian GNU/Linux stable x86 host.
53944
53945         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53946
53947         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53948         Assume that filemode.h includes sys/types.h and sys/stat.h.
53949         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53950         (ftypelet): Reorder to put common cases first, for efficiency.
53951         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53952         to do 'M'.
53953         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53954         of 10, for compatibility with FreeBSD.  All callers changed.
53955         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53956         types that can't be deduced solely from st_mode.  First arg is now a
53957         const pointer.
53958         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53959         (strmode): Renamed from mode_string.
53960         (filemodestring): New decl.
53961         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53962         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53963         needed.
53964         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53965
53966         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53967
53968         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53969         fsusage.h now does that.  Include fsusage.h first, to test interface.
53970         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53971         at most one method (the old code could have generated decls that
53972         didn't conform to C89, not that this was ever exercised).
53973         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53974
53975         2006-03-19  Jim Meyering  <jim@meyering.net>
53976
53977         Work even in a chroot where d_ino values for entries in "/"
53978         don't match the stat.st_ino values for the same names.
53979         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
53980         number, iterate through all entries again, using lstat instead.
53981         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53982         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53983
53984         * lib/getcwd.c (__getcwd): Clarify a comment.
53985         Use memcpy in place of a call to strcpy.
53986
53987         2006-03-12  Jim Meyering  <jim@meyering.net>
53988
53989         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53990         matches that of the current directory (which we're about to chdir ".."
53991         out of), then save the dev-ino of the parent, instead.
53992
53993         * lib/same-inode.h (SAME_INODE): New file/macro.
53994         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53995         Include "same-inode.h", instead.
53996         * lib/same.c: Likewise.
53997         * lib/cycle-check.h: Include "same-inode.h".
53998         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53999         * lib/cycle-check.c (SAME_INODE): Remove definition.
54000         * lib/root-dev-ino.h: Include "same-inode.h".
54001
54002         2006-03-11  Eric Blake  <ebb9@byu.net>
54003
54004         * lib/same.c (same_name): s/base_name/last_component/
54005         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
54006         * lib/filenamecat.c (file_name_concat): Likewise.
54007
54008         2006-03-11  Eric Blake  <ebb9@byu.net>,
54009                     Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
54012         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
54013         drive prefix.
54014         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
54015         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
54016         (last_component): New method.
54017         * lib/dirname.c (dir_len): Determine when drive letters need a
54018         subsequent slash.  Preserve // when it is special.
54019         (dir_name): Don't append dot when drive letter is absolute.
54020         [TEST_DIRNAME]: Move into a full-blown gnulib test.
54021         * lib/basename.c (base_name): New semantics - malloc the result.
54022         Preserve // when it is special.  Preserve relative files that look
54023         like drive letters.
54024         (base_len): Preserve // when it is special.
54025         (last_component): New method, similar to old base_name semantics.
54026         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
54027         base_name.  Strip redundant slashes from ///.
54028
54029 2006-07-03  Jim Meyering  <jim@meyering.net>
54030
54031         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
54032         macro is used before the first cycle_check call.
54033
54034 2006-07-03  Eric Blake  <ebb9@byu.net>
54035
54036         * modules/dirname (Depends-on): Add xstrndup.
54037
54038 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
54041         test cases, so that config.log is a bit easier to follow.
54042
54043 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
54046         both are 64 bits, since this seems to be the tradition, and this
54047         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
54048         we ever run into a host that prefers long long to long in this
54049         case, we'll need another configure-time test.  Problem reported by
54050         Jim Meyering.
54051
54052 2006-07-02  Eric Blake  <ebb9@byu.net>
54053
54054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
54055
54056 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54057
54058         * modules/inttypes (Depends-on): No longer depends on stdint.
54059         * modules/stdint (Description): Say more about assumptions.
54060         Say that the fast types might differ.  Say macros are used.
54061         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
54062         (Makefile.am): Revise list of substituted symbols to match
54063         new stdint.m4.
54064         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
54065         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
54066         * tests/test-stdint.c (verify_same_types)
54067         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
54068         the code conforms to C99/C89.
54069         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
54070         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
54071
54072 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
54075         but fix a bug, by requiring at least 64 bits.
54076         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54077         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54078         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54079         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54080
54081         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54082         changes.  Make 2.59 a prerequisite.  Check and substitute for
54083         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54084         inttypes.h.  Do not use special include files; just use the
54085         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54086         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54087         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54088         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54089         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54090         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54091         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54092         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54093         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54094         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54095         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54096         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54097         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54098         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54099         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54100         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54101         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54102         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54103         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54104         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54105         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54106         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54107         not check for things that C99 does not require, e.g., int8_t.  If
54108         a test isn't needed unless <stdint.h> isn't working, and is
54109         unlikely to be needed for any other reason, then don't do it
54110         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54111         size_t, since we assume C89 freestanding at least.  Do not check
54112         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54113         the right thing even if the types are not defined.  Instead use:
54114         (gl_STDINT_TYPE_PROPERTIES): New macro.
54115         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54116         testing whether <sys/types.h> clashes, as Autoconf does this for
54117         us now.  All uses removed.
54118         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54119         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54120         (gl_CHECK_TYPE_SAME):
54121         Remove; no longer needed.
54122         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54123         exists, since we'll return 0 anyway in that case.
54124         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54125
54126 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54127
54128         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54129         possible collision with system files.
54130         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54131         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54132         WCHAR_MIN and WCHAR_MAX in this case.
54133         (<stddef.h>): Do not include; no longer needed.
54134         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54135         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54136         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54137         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54138         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54139         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54140         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54141         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54142         !defined(__c99))]: Include in this case too, since it's harmless
54143         now.
54144         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54145         dangerous to do so.
54146         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54147         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54148         (_STDINT_MIN, _STDINT_MAX): New macros.
54149         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54150         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54151         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54152         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54153         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54154         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54155         macros, not typedefs; this simplifies things quite a bit.
54156         Use long int for all types narrower than int64_t.
54157         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54158         Define in terms of long long int or int64_t or long int,
54159         not int64_t or int32_t.  This saves some compile-time testing.
54160         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54161         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54162         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54163         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54164         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54165         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54166         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54167         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54168         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54169         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54170         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54171         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54172         undef any previous version and define our own version, for
54173         simplicity and consistency with the new macros for types.
54174         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54175         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54176         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54177         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54178         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54179         @WINT_T_SUFFIX@ to keep things simple here.
54180         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54181         Simplify by assuming typical 8/16/32/64 host, since we're
54182         already doing that elsewhere anyway.
54183         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54184         and assume long long int is 64 bits if available.  This
54185         speeds up 'configure'.
54186
54187 2006-07-01  Eric Blake  <ebb9@byu.net>
54188
54189         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54190         Reported by Andreas Buening.
54191
54192 2006-07-01  Eric Blake  <ebb9@byu.net>
54193
54194         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54195
54196 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54197
54198         * lib/getaddrinfo.c: fixed typo
54199
54200 2006-06-29  Jim Meyering  <jim@meyering.net>
54201
54202         * modules/strftime (Maintainer): Add my name, since with the
54203         FPRINTFTIME changes strftime.c has forked from glibc.
54204
54205 2006-06-29  Eric Blake  <ebb9@byu.net>
54206
54207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54208
54209 2006-06-29  Eric Blake  <ebb9@byu.net>
54210
54211         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54212
54213 2006-06-29  Eric Blake  <ebb9@byu.net>
54214
54215         * lib/stat_.h: New file.
54216
54217 2006-06-29  Eric Blake  <ebb9@byu.net>
54218
54219         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54220         unused static function.
54221
54222 2006-06-29  Eric Blake  <ebb9@byu.net>
54223
54224         * doc/functions.texi (Function Portability): Document missing lstat
54225         on mingw.
54226
54227 2006-06-29  Eric Blake  <ebb9@byu.net>
54228
54229         * MODULES.html.sh: Add sys_stat.
54230         * modules/sys_stat: New module.
54231         * modules/mkstemp (Depends-on): Add sys_stat.
54232
54233 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54234
54235         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54236
54237 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54238
54239         * m4/c-bs-a.m4: Removed.
54240
54241 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54242
54243         * lib/strftime.c: Assume strftime() exists.
54244
54245 2006-06-29  Derek Price  <derek@ximbiot.com>
54246
54247         * modules/c-bs-a: Removed - \a is C89.
54248         * MODULES.html.sh: Remove c-bs-a.
54249
54250 2006-06-29  Bruno Haible  <bruno@clisp.org>
54251
54252         * modules/wcwidth (License): Change to LGPL.
54253
54254 2006-06-28  Simon Josefsson  <jas@extundo.com>
54255
54256         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54257         on _WIN32.
54258
54259         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54260         getnameinfo.
54261
54262 2006-06-28  Simon Josefsson  <jas@extundo.com>
54263
54264         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54265
54266 2006-06-28  Simon Josefsson  <jas@extundo.com>
54267
54268         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54269         functions there.  It will succeed on Windows XP, but on Windows
54270         2000 and (presumably) earlier, it will fail, and use the internal
54271         re-implementation.
54272         (use_win32_p): New function.
54273         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54274         Support AI_NUMERICSERV to disable getservbyname.
54275         (getnameinfo): New function, only supports
54276         NI_NUMERICHOST|NI_NUMERICSERV for now.
54277
54278         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54279         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54280         getnameinfo.
54281
54282 2006-06-28  Eric Blake  <ebb9@byu.net>
54283
54284         * modules/wcwidth: New file.
54285         * modules/mbchar (Depends-on): Add wcwidth.
54286         * modules/mbswidth (Depends-on): Add wcwidth.
54287         * MODULES.html.sh: Add wcwidth.
54288
54289 2006-06-28  Eric Blake  <ebb9@byu.net>
54290
54291         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54293
54294 2006-06-28  Eric Blake  <ebb9@byu.net>
54295
54296         * lib/xvasprintf.h: Fix comments.
54297
54298 2006-06-28  Eric Blake  <ebb9@byu.net>
54299
54300         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54301         * lib/mbswidth.c (wcwidth): Move from here...
54302         * lib/wcwidth.h: ...to this new file.
54303
54304 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54305
54306         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54307
54308         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54309         it's obsolete.
54310         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54311
54312 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54313
54314         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54315         Autoconf 2.60 says this stuff was obsolete.
54316
54317 2006-06-28  Bruno Haible  <bruno@clisp.org>
54318
54319         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54320
54321 2006-06-28  Bruno Haible  <bruno@clisp.org>
54322
54323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54324         gt_TYPE_WCHAR_T.
54325
54326 2006-06-28  Bruno Haible  <bruno@clisp.org>
54327
54328         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54329         declaration for wcwidth.
54330         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54331
54332 2006-06-28  Bruno Haible  <bruno@clisp.org>
54333
54334         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54335         (mkdir): Define using _mkdir.
54336
54337 2006-06-28  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/getaddrinfo.h: Fix POSIX URL.
54340         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54341         _WIN32.
54342         (use_win32_p): Make static.
54343         (getaddrinfo): Reject service name if it is empty or does not consist
54344         solely of decimal digits, or if its value is > 65535.
54345         (getnameinfo): Remove useless casts.
54346
54347 2006-06-27  Simon Josefsson  <jas@extundo.com>
54348
54349         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54350         Eggert and Martin Lambers.
54351
54352 2006-06-27  Simon Josefsson  <jas@extundo.com>
54353
54354         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54355         Eggert and Martin Lambers.
54356
54357 2006-06-27  Bruno Haible  <bruno@clisp.org>
54358
54359         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54360         result to 0, not to empty.
54361         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54362
54363 2006-06-27  Bruno Haible  <bruno@clisp.org>
54364
54365         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54366
54367 2006-06-26  Simon Josefsson  <jas@extundo.com>
54368
54369         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54370         present.
54371
54372 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54373
54374         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54375         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54376         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54377
54378 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54379
54380         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54381
54382 2006-06-26  Bruno Haible  <bruno@clisp.org>
54383
54384         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54385
54386 2006-06-26  Bruno Haible  <bruno@clisp.org>
54387
54388         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54389
54390 2006-06-26  Bruno Haible  <bruno@clisp.org>
54391
54392         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54393         SGI C compiler in pre-C99 mode.
54394         Suggested by Mark D. Baushke and Larry Jones.
54395
54396 2006-06-26  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54399         WCHAR_MAX.
54400         Reported by Mark D. Baushke and Larry Jones.
54401
54402 2006-06-26  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54405         in pre-C99 mode.
54406         Suggested by Mark D. Baushke and Larry Jones.
54407
54408 2006-06-23  Simon Josefsson  <jas@extundo.com>
54409             Bruno Haible  <bruno@clisp.org>
54410
54411         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54412         Emit mostlyclean-local rule.
54413         (func_emit_tests_Makefile_am): Likewise.
54414         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54415
54416 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54417
54418         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54419
54420 2006-06-23  Bruno Haible  <bruno@clisp.org>
54421
54422         * tests/test-stdint.c: Update to match ISO C 99 Technical
54423         Corrigendum 1.
54424
54425 2006-06-23  Bruno Haible  <bruno@clisp.org>
54426
54427         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54428
54429 2006-06-23  Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/stdint_.h: Treat IRIX like OpenBSD.
54432
54433 2006-06-23  Bruno Haible  <bruno@clisp.org>
54434
54435         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54436         ISO C 99 Technical Corrigendum 1.
54437
54438 2006-06-22  Simon Josefsson  <jas@extundo.com>
54439
54440         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54441         MinGW.
54442
54443 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54446         needed.  Some compiler complained about some of them.  Problem reported
54447         by Larry Jones in
54448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54449
54450 2006-06-21  Simon Josefsson  <jas@extundo.com>
54451
54452         * tests/test-getaddrinfo.c: New file.
54453
54454         * modules/getaddrinfo-tests: New file.
54455
54456         * MODULES.html.sh: Add inet_pton.
54457
54458         * modules/inet_pton: New file.
54459
54460 2006-06-21  Simon Josefsson  <jas@extundo.com>
54461
54462         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54463         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54464         of using the (limited) gnulib implementation on Windows XP.
54465
54466         * m4/inet_pton.m4: New file.
54467
54468 2006-06-21  Simon Josefsson  <jas@extundo.com>
54469
54470         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54471         variable.
54472
54473         * lib/socket_.h: Don't define WINVER.
54474
54475         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54476         slightly modified to work in gnulib.
54477
54478 2006-06-21  Simon Josefsson  <jas@extundo.com>
54479
54480         * doc/gnulib.texi (Windows sockets): Add.
54481
54482 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * lib/read-file.c (fread_file): Start with buffer allocation of
54485         0 bytes rather than 1 byte; this simplifies the code.
54486         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54487         code to free buffer and save/restore errno.
54488         (internal_read_file): Remove unused local.
54489
54490 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54493         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54494         Problem reported by Denis Excoffier in
54495         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54496
54497 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54498
54499         * modules/sys_socket, modules/socklen: Include sys/types since
54500         FreeBSD 4.x's sys/socket.h needs it.
54501
54502 2006-06-19  Simon Josefsson  <jas@extundo.com>
54503
54504         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54505
54506 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54507
54508         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54509
54510 2006-06-19  Bruno Haible  <bruno@clisp.org>
54511
54512         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54513         and FULL_PATH_INTTYPES_H in angle brackets.
54514         Reported by Mark D. Baushke <mdb@gnu.org>.
54515
54516 2006-06-17  Eric Blake  <ebb9@byu.net>
54517
54518         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54519         errno.
54520
54521 2006-06-17  Bruno Haible  <bruno@clisp.org>
54522
54523         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54524         <sys/inttypes.h>.
54525
54526 2006-06-17  Bruno Haible  <bruno@clisp.org>
54527
54528         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54529         whether errno is declared. Assume <errno.h> declares errno.
54530
54531 2006-06-17  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54534
54535 2006-06-17  Bruno Haible  <bruno@clisp.org>
54536
54537         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54538         problem on Solaris 2.5.1.
54539
54540 2006-06-16  Eric Blake  <ebb9@byu.net>
54541
54542         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54543         * lib/unicodeio.c [!defined errno]: Likewise.
54544         * lib/strtol.c [!defined errno]: Likewise.
54545         * lib/strtod.c [!defined errno]: Likewise.
54546
54547 2006-06-15  Eric Blake  <ebb9@byu.net>
54548
54549         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54550
54551 2006-06-15  Eric Blake  <ebb9@byu.net>
54552
54553         * config/srclist.txt (ssize_t.m4): Lose sync.
54554
54555 2006-06-15  Bruno Haible  <bruno@clisp.org>
54556
54557         * modules/stdint (Files): Include m4/full-header-path.m4,
54558         m4/size_max.m4, m4/wchar_t.m4.
54559         (Makefile.am): Many more substitutions.
54560         * modules/stdint-tests: New file.
54561         * tests/test-stdint.c: New file.
54562
54563 2006-06-15  Bruno Haible  <bruno@clisp.org>
54564
54565         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54566         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54567         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54568         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54569         gl_CHECK_TYPE_SAME): New macros.
54570
54571 2006-06-15  Bruno Haible  <bruno@clisp.org>
54572
54573         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54574
54575 2006-06-15  Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/stdint_.h: Rewritten to be fully auto-configured.
54578         Fixes bug on HP-UX/IA64.
54579
54580 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54581
54582         * lib/getdate.y (__attribute__): Don't define if already defined.
54583         Problem reported by Larry Jones.
54584         * lib/utimens.c (__attribute__): Likewise.
54585
54586 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54587
54588         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54589         reported by Andreas Schwab.
54590
54591 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54592             Bruno Haible  <bruno@clisp.org>
54593
54594         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54595         check for the declaration of strnlen and a run test that exposes the
54596         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54597         rpl_strndup.
54598
54599 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54600             Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54603
54604 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54605
54606         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54607         compile test, for Tru64 4.0D.
54608
54609 2006-05-28  Karl Berry  <karl@gnu.org>
54610
54611         * config/srclist.txt (printf-args.c): lose sync.
54612
54613 2006-05-26  Martin Lambers  <marlam@marlam.de>
54614
54615         * lib/getpass.c: Updates the test for the native W32 API, and adds
54616         missing includes, thus fixing compilation warnings.
54617
54618 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54619
54620         * lib/exclude.c (exclude_fnmatch): New function.
54621         (excluded_file_name): Call exclude_fnmatch.
54622         * lib/exclude.h (excluded_file_name): New prototype
54623
54624 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         * lib/tempname.c (small_open, large_open): New macros.
54627         (__open, __open64) [!_LIBC]: Remove.
54628         (__gen_tempname): Use small_open and large_open instead of __open
54629         and __open64.  This fixes a portability bug on HP-UX 11.11i
54630         reported by Simon Wing-Tang in
54631         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54632
54633 2006-05-24  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54636         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54637         Reported by Thorsten Maerz <torte@netztorte.de> via
54638         Aaron Stone <aaron@serendipity.cx>.
54639
54640 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54641
54642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54643         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54644         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54645         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54646         not really conditional on the cache.
54647         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54648
54649 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54652         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54653         (my_usleep): Don't mishandle maximum value.
54654
54655 2006-05-19  Jim Meyering  <jim@meyering.net>
54656
54657         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54658
54659 2006-05-17  Bruno Haible  <bruno@clisp.org>
54660
54661         Cygwin portability.
54662         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54663
54664 2006-05-17  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/stdint_.h: Fix recognition of Cygwin.
54667
54668 2006-05-15  Bruno Haible  <bruno@clisp.org>
54669
54670         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54671         on libtool patch by Ralf Wildenhues.
54672
54673 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54674
54675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54676         test for C99 conformance; (bool) 0.5 is an integer constant
54677         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54678         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54679
54680 2006-05-11  Simon Josefsson  <jas@extundo.com>
54681
54682         * m4/xvasprintf.m4: Fix obvious typo.
54683
54684 2006-05-11  Jim Meyering  <jim@meyering.net>
54685
54686         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54687         James Lemley.
54688
54689 2006-05-10  Simon Josefsson  <jas@extundo.com>
54690
54691         * lib/md4.c: Typo fix, update copyright years.
54692         (K1, K2): Don't use L because it turn computations into 64-bit on
54693         64-bit platforms.
54694
54695 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54696
54697         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54698         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54699         unwanted sign propagation, e.g., on hosts with 64-bit int.
54700         There still are some problems with reeelly weird theoretical hosts
54701         (e.g., 33-bit int) but it's not worth worrying about now.
54702         * lib/sha1.c (rol): Likewise.
54703         (K1, K2, K3, K4): Remove unnecessary L suffix.
54704
54705 2006-05-10  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/des.c: Cast to avoid warnings.
54708
54709 2006-05-09  Bruno Haible  <bruno@clisp.org>
54710
54711         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54712         (Depends-on): Depend also on xsize, stdarg.
54713         (configure.ac): Add gl_XVASPRINTF.
54714
54715 2006-05-09  Bruno Haible  <bruno@clisp.org>
54716
54717         * m4/xvasprintf.m4: New file.
54718
54719 2006-05-09  Bruno Haible  <bruno@clisp.org>
54720
54721         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54722         (EOVERFLOW): Define fallback value.
54723         (xstrcat): New function.
54724         (xvasprintf): Recognize the special case of a string concatenation.
54725
54726 2006-05-08  Eric Blake  <ebb9@byu.net>
54727
54728         * gnulib-tool (func_version): Base copyright year on CVS date.
54729         (func_emit_copyright_notice): New function.
54730         (func_emit_lib_Makefile_am): Use it.
54731         (func_emit_tests_Makefile_am): Likewise.
54732         (func_import): Likewise.
54733
54734 2006-05-08  Bruno Haible  <bruno@clisp.org>
54735
54736         * modules/stdarg: New file.
54737         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54738
54739 2006-05-08  Bruno Haible  <bruno@clisp.org>
54740
54741         * m4/stdarg.m4: New file, from GNU gettext.
54742
54743 2006-05-08  Bruno Haible  <bruno@clisp.org>
54744
54745         * config/srclist.txt (build-aux/config.rpath): different from latest
54746         release.
54747
54748 2006-05-08  Bruno Haible  <bruno@clisp.org>
54749
54750         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54751
54752 2006-05-05  Jim Meyering  <jim@meyering.net>
54753
54754         * m4/warning.m4: New file, derived from bison's file by the same name.
54755
54756 2006-05-03  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/stdint_.h: Shorter URL.
54759         * lib/inttypes.h: Likewise.
54760
54761 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54764
54765 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54766
54767         * lib/verify.h: Document the internals better.  Most of this change
54768         was written by Bruno Haible.
54769
54770 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54771
54772         * doc/verify.texi: New file, partly based on a proposal by
54773         Bruno Haible.
54774
54775 2006-05-02  Bruno Haible  <bruno@clisp.org>
54776
54777         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54778         test from here...
54779         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54780
54781 2006-04-29  Bruno Haible  <bruno@clisp.org>
54782
54783         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54784         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54785
54786 2006-04-29  Bruno Haible  <bruno@clisp.org>
54787
54788         * gnulib-tool: Make --update option actually work.
54789
54790 2006-04-29  Bruno Haible  <bruno@clisp.org>
54791
54792         * doc/gcd.texi: New file.
54793         * doc/gnulib.texi: Include it.
54794
54795 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54796
54797         * lib/getdate.y (get_date): When adding relative date, start with the
54798         initial time, not with the result of the first mktime call.
54799
54800 2006-04-25  Bruno Haible  <bruno@clisp.org>
54801
54802         * gnulib-tool (func_import): Output the include directives in three
54803         blocks, sorted separately.
54804         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54805
54806 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54809         to define main with arguments, for C++.  Reported by Eric Blake.
54810         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54811         Prefer 'int main ()' to 'int main (void)', for C++.
54812         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54813         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54814         for 'main', for C99 and C++.
54815
54816 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54817
54818         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54819         Don't assume that exit status -1 is valid.
54820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54821         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54822         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54823         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54824         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54825         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54826         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54827         functions can be used without declaring them, or that you can
54828         exit with status -1.
54829         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54830
54831 2006-04-24  Karl Berry  <karl@gnu.org>
54832
54833         * config/srclist.txt (longdouble.m4): sync lost.
54834
54835 2006-04-24  Eric Blake  <ebb9@byu.net>
54836
54837         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54838
54839 2006-04-24  Bruno Haible  <bruno@clisp.org>
54840
54841         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54842         poll() implementation in AIX.
54843         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54844
54845 2006-04-24  Bruno Haible  <bruno@clisp.org>
54846
54847         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54848         assigned exactly once.
54849
54850 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54851             Bruno Haible  <bruno@clisp.org>
54852
54853         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54854         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54855         for AM_CPPFLAGS.
54856
54857 2006-04-23  Bruno Haible  <bruno@clisp.org>
54858
54859         * modules/copy-file: Depend on unistd.
54860         * modules/execute: Likewise.
54861         * modules/fatal-signal: Likewise.
54862         * modules/findprog: Likewise.
54863         * modules/mkdtemp : Likewise.
54864         * modules/pipe: Likewise.
54865         * modules/wait-process: Likewise.
54866
54867 2006-04-23  Bruno Haible  <bruno@clisp.org>
54868
54869         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54870         condition was already detected.
54871         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54872
54873 2006-04-23  Bruno Haible  <bruno@clisp.org>
54874
54875         * lib/copy-file.c: Include <unistd.h> unconditionally.
54876         * lib/execute.c: Likewise.
54877         * lib/fatal-signal.c: Likewise.
54878         * lib/findprog.c: Likewise.
54879         * lib/mkdtemp.c: Likewise.
54880         * lib/pipe.h: Likewise.
54881         * lib/pipe.c: Likewise.
54882         * lib/wait-process.h: Likewise.
54883
54884 2006-04-23  Bruno Haible  <bruno@clisp.org>
54885
54886         * gnulib-tool (func_usage): Fix --import description. Document
54887         --update.
54888         (func_import): Create temporary file in a temporary directory, if
54889         --dry-run is specified. Silence errors from 'grep' when there are no
54890         m4 files in $m4dir.
54891         (func_create_testdir): Silence errors from 'grep' when there are no
54892         m4 files in $m4dir.
54893         Reported by Karl Berry <karl@freefriends.org>.
54894
54895 2006-04-20  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54898         one argument, so that the code will be portable to Autoconf 2.60.
54899         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54900         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54901         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54902
54903 2006-04-19  Derek Price  <derek@ximbiot.com>
54904             Eric Blake  <ebb9@byu.net>
54905
54906         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54907         rather than "/full/path.h".  Update comment to match.  Shorten &
54908         generalize m4_translit call via AS_TR_CPP.
54909
54910 2006-04-19  Derek Price  <derek@ximbiot.com>
54911             Eric Blake  <ebb9@byu.net>
54912
54913         * lib/inttypes.h: Correct grammar in comment.
54914
54915 2006-04-18  Derek Price  <derek@ximbiot.com>
54916             Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         * modules/inttypes: New file.
54919         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54920
54921 2006-04-18  Derek Price  <derek@ximbiot.com>
54922             Paul Eggert  <eggert@cs.ucla.edu>
54923
54924         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54925         New files.
54926
54927 2006-04-18  Derek Price  <derek@ximbiot.com>
54928             Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         * lib/inttypes.h: New file.
54931         * lib/strtoimax.c: Assume <inttypes.h>.
54932
54933 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54936         isn't mounted.  Problem reported by Kir Kolyshkin.
54937
54938 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54939
54940         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54941         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54942         Derek R. Price.
54943         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54944         implementation.
54945
54946 2006-04-12  Eric Blake  <ebb9@byu.net>
54947
54948         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54949         is now done automatically by the corresponding Autoconf macro.
54950
54951 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54952
54953         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54954         time_r.h.
54955
54956 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54957
54958         Merge regex changes from libc, removing some of our
54959         POSIX-conformance changes that were rejected and redoing them in a
54960         less-intrusive way.
54961
54962         * lib/regcomp.c (re_compile_internal, init_dfa):
54963         Length arg is now size_t, not Idx.  All uses changed.
54964         (peek_token): Forward decl now says internal_function.
54965         (__re_error_msgid, __re_error_msgid_idx):
54966         Now static rather than extern with attribute_hidden.
54967         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54968         For some reason libc prefers K&R style defns for external functions.
54969         (regerror) [!defined _LIBC]: Likewise.
54970         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54971         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54972         (build_range_exp, build_collating_symbol):
54973         Use K&R-style defn.
54974         (re_compile_fastmap): Use '\0' to memset, not 0.
54975         (utf8_sb_map): Make the calculations more obvious.
54976         (init_dfa, parse_bracket_exp, build_charclass_op):
54977         Call calloc and cast result, as glibc does.
54978         (init_word_char, fetch_token, peek_token, peek_token_bracket):
54979         (build_range_exp, build_collating_symbol):
54980         Now internal functions.
54981
54982         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54983
54984         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54985         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54986         Don't depend on VMS; depend on __VMS instead, for POSIX
54987         namespace cleanness.
54988         (regoff_t): Define to ssize_t, not long int.
54989
54990         Remove the REG_ macros named below.  Instead, make the old names
54991         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54992         __USE_GNU_REGEX.
54993         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54994         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54995         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54996         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54997         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54998         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54999         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
55000         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
55001         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
55002         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
55003         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
55004         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
55005         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
55006         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
55007         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
55008         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
55009         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
55010         (REG_NREGS):
55011         Remove.  All uses replaced by the old RE_* names.
55012         (RE_BACKSLASH_ESCAPE_IN_LISTS):
55013         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
55014         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
55015         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
55016         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
55017         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
55018         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
55019         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
55020         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
55021         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
55022         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
55023         Don't bother having these macros be independent of each others'
55024         values, since they no longer exist in the POSIX name space.
55025
55026         Rename the following member names back to their old names,
55027         unless !__USE_GNU_REGEX.  All uses changed back.
55028         (buffer): Renamed from re_buffer.
55029         (allocated): Renamed from re_allocated.
55030         (used): Renamed from re_used.
55031         (syntax): Renamed from re_syntax.
55032         (fastmap): Renamed from re_fastmap.
55033         (translate): Renamed from re_translate.
55034         (can_be_null): Renamed from re_can_be_null.
55035         (regs_allocated): Renamed from re_regs_allocated.
55036         (fastmap_accurate): Renamed from re_fastmap_accurate.
55037         (no_sub): Renamed from re_no_sub.
55038         (not_bol): Renamed from re_not_bol.
55039         (not_eol): Renamed from re_not_eol.
55040         (newline_anchor): Renamed from re_newline_anchor.
55041         (num_regs): Renamed from rm_num_regs.
55042         (start): Renamed from rm_start.
55043         (end): Renamed from rm_end.
55044
55045         (free_state): Move up a bit.
55046
55047         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
55048         #define to be empty.
55049         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
55050         when that is what is intended.
55051         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
55052         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
55053         (MAX): New macro.
55054         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
55055         All uses changed back to re_malloc, etc.  It's now the caller's
55056         responsibility to check for overflow; all callers changed.
55057         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
55058         (re_x2nrealloc): Remove.
55059         (free_state): Remove decl.
55060
55061         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
55062         (re_set_registers, re_exec):
55063         Use K&R-style defn.
55064
55065         2006-01-31  Roland McGrath  <roland@redhat.com>
55066
55067         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
55068         Reported by Mike Frysinger <vapier@gentoo.org>.
55069
55070         2006-01-15  Andreas Jaeger  <aj@suse.de>
55071
55072         [BZ #1950]
55073         * lib/regex_internal.c (re_string_reconstruct): Adjust for
55074         build_wcs_upper_buffer change.
55075         (build_wcs_upper_buffer): Change return type.
55076
55077         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55078
55079         * lib/regex_internal.h: Include <stdint.h> if available.
55080
55081         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55082
55083         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55084
55085         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55086
55087         * lib/regcomp.c: Adjust for changed secondary hash function.
55088
55089         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55090
55091         * lib/regex.h: Pretty printing.
55092         Clean up namespace a bit.
55093
55094         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55095
55096         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55097         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55098
55099         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55100                     Ulrich Drepper  <drepper@redhat.com>
55101
55102         [BZ #1302]
55103         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55104         changed.
55105         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55106
55107         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55108
55109         [BZ #281]
55110         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55111         * lib/regcomp.c: Remove unnecessary uses of
55112         unsigned RE_TRANSLATE_TYPE.
55113         * lib/regex_internal.h: Likewise.
55114         * lib/regex_internal.c: Likewise.
55115         * lib/regexec.c: Likewise.
55116         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55117
55118         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55119
55120         * lib/regexec.c (find_recover_state): Remove unnecessary
55121         initialization.
55122         (transit_state_bkref): Make DFA a const pointer.
55123         (get_subexp): Likewise.
55124         (check_arrival): Likewise.
55125         (update_cur_sifted_state): Likewise.
55126         (re_search_internal): Likewise.
55127         (prune_impossible_nodes): Likewise.
55128         (acquire_init_state_context): Likewise.
55129         (proceed_next_node): Likewise.
55130         (set_regs): Likewise.
55131         (free_fail_stack_return): Likewise.
55132         (check_arrival_expand_ecl): Mark DFA parameter as const.
55133         (check_arrival_expand_ecl_sub): Likewise.
55134         (check_subexp_limits): Likewise.
55135         (sub_epsilon_src_nodes):  Likewise.
55136         (add_epsilon_src_nodes):  Likewise.
55137         (merge_state_array): Likewise.
55138         (update_regs): Likewise.
55139         (build_trtable): Likewise.
55140         (sift_states_backward): Mark MCTX parameter as const.
55141         (build_sifted_states): Likewise.
55142         (update_cur_sifted_state): Likewise.
55143         (sift_states_mkref): Likewise.
55144         (check_arrival_expand_ecl): Mark eclosure as const.
55145         (check_dst_limits_calc_pos_1): Likewise.
55146         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55147         pointer.
55148
55149         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55150
55151         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55152         (transit_state_sb): Likewise.
55153         (transit_state_mb): Likewise.
55154         (sift_states_iter_mb): Likewise.
55155         (check_arrival_add_next_nodes): Likewise.
55156         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55157         [_LIBC] (re_search_2_stub): Use mempcpy.
55158
55159         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55160         mbrtowc for very simple UTF-8 case.
55161
55162         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55163         a pointer-to-const.
55164         (re_acquire_state_context): Likewise.
55165         * lib/regex_internal.h: Adjust prototypes.
55166
55167         * lib/regex.c: Prevent using C++ compilers.
55168
55169         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55170         (re_acquire_state_context): Likewise.
55171
55172 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * modules/regex (Depends-on): Add ssize_t.
55175
55176 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55179         translation table.
55180
55181 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55182
55183         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55184
55185 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55186             Bruno Haible  <bruno@clisp.org>
55187
55188         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55189         <sys/types.h> and <inttypes.h>.
55190
55191 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55192
55193         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55194         `__error_t_defined', so argp.h will not typedef the former.
55195
55196 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55197
55198         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55199         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55200         glibc names.  Even if glibc is changed to conform to POSIX, the
55201         traditional names will be available anyway, since regex depends on
55202         the extensions module.  Also, fix a longstanding typo in the
55203         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55204         reported by Emanuele Giaquinta.  Also, change sense of cached
55205         variable, so that the message makes sense.
55206
55207 2006-03-24  Simon Josefsson  <jas@extundo.com>
55208
55209         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55210         including some doc fixes.
55211         (base64_encode_alloc): Fix +1 bug on allocation failures.
55212
55213 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55214
55215         * lib/base64.c (base64_encode): Do not read past end of array with
55216         unsanitized input on systems with CHAR_BIT > 8.
55217
55218 2006-03-24  Eric Blake  <ebb9@byu.net>
55219
55220         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55221
55222 2006-03-22  Karl Berry  <karl@gnu.org>
55223
55224         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55225         * config/srclistvars.sh (COREUTILS): new var.
55226
55227 2006-03-17  Jim Meyering  <jim@meyering.net>
55228
55229         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55230         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55231
55232 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55233
55234         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55235         no longer needs it.  Instead, check that regoff_t is as least
55236         as wide as ptrdiff_t.
55237
55238         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55239         so that our regex.h stays compatible with the installed regex.
55240         This is helpful for installers who configure --without-included-regex.
55241         Problem reported by Emanuele Giaquinta.
55242
55243 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55244
55245         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55246         Typedef to long int, not to off_, as POSIX will likely change
55247         in that direction.
55248
55249 2006-03-15  Eric Blake  <ebb9@byu.net>
55250
55251         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55252
55253 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55254
55255         * lib/argp-help.c (validate_uparams): Fix typo
55256         * lib/argp-parse.c (argp_default_options): Consistently begin help
55257         messages with a lowercase letter.
55258
55259 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55260
55261         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55262         overrun buffers and shouldn't be used (much as gets shouldn't be
55263         used).
55264         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55265
55266 2006-03-08  Simon Josefsson  <jas@extundo.com>
55267
55268         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55269         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55270
55271 2006-03-08  Simon Josefsson  <jas@extundo.com>
55272
55273         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55274         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55275
55276 2006-03-08  Simon Josefsson  <jas@extundo.com>
55277
55278         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55279         signal that configure disabled the device.
55280
55281 2006-03-08  Simon Josefsson  <jas@extundo.com>
55282
55283         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55284         languages.
55285
55286 2006-03-07  Simon Josefsson  <jas@extundo.com>
55287
55288         * modules/getopt (Depends-on): Add unistd.
55289
55290         * modules/unistd: New file.
55291
55292 2006-03-07  Simon Josefsson  <jas@extundo.com>
55293
55294         * modules/gc-random: New file.
55295
55296 2006-03-07  Simon Josefsson  <jas@extundo.com>
55297
55298         * m4/unistd_h.m4: New file.
55299
55300 2006-03-07  Simon Josefsson  <jas@extundo.com>
55301
55302         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55303         test to be side-effect free by storing the result in the cache
55304         variable gl_cv_lib_readline, and moving the assignment of
55305         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55306         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55307
55308 2006-03-07  Simon Josefsson  <jas@extundo.com>
55309
55310         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55311         error on missing devices (the functions will return an error).
55312
55313         * m4/gc.m4: Move random stuff to gc-random.m4
55314
55315 2006-03-07  Simon Josefsson  <jas@extundo.com>
55316
55317         * lib/unistd_.h: New file.
55318
55319 2006-03-07  Simon Josefsson  <jas@extundo.com>
55320
55321         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55322
55323 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55324
55325         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55326         Problem reported by Juan Manuel Guerrero.
55327
55328 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55329
55330         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55331         the unistd module.
55332         * lib/getlogin_r.c: Likewise.
55333         * lib/getlogin_r.h: Likewise.
55334         * lib/glob.c: Likewise.
55335         * lib/pagealign_alloc.c: Likewise.
55336         * lib/unistd_.h: Remove; no longer needed.
55337
55338 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55341         Add unistd.
55342         * modules/c-stack (Depends-on): Add unistd.
55343         * modules/getlogin_r: Likewise.
55344         * modules/glob: Likewise.
55345         * modules/pagealign_alloc: Likewise.
55346         * modules/unistd (Files): Remove lib/unistd_.h.
55347         (EXTRA_DIST): Remove.
55348         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55349         need unistd_.h.
55350         (MOSTLYCLEANFILES): Remove unistd.h-t.
55351
55352 2006-03-03  Simon Josefsson  <jas@extundo.com>
55353
55354         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55355
55356 2006-03-03  Simon Josefsson  <jas@extundo.com>
55357
55358         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55359         libidn and bison.
55360
55361 2006-03-03  Simon Josefsson  <jas@extundo.com>
55362
55363         * build-aux/maint.mk: Add indent target.
55364
55365 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55366
55367         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55368         our replacement poll.h in any case, to avoid a differing
55369         declaration from a system header.  Seen on AIX.
55370
55371 2006-03-01  Simon Josefsson  <jas@extundo.com>
55372
55373         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55374         <kasal@ucw.cz>.
55375
55376 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55377
55378         * modules/gettime (Depends-on): Add extensions module.
55379         * modules/nanosleep (Depends-on): Likewise.
55380         * modules/settime (Depends-on): Likewise.
55381
55382 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55385         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55386         pedantically.
55387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55388         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55389
55390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55391         not "==".  Reported by Ralf Wildenhues.
55392
55393 2006-03-01  Karl Berry  <karl@gnu.org>
55394
55395         * doc/Copyright/request-*: new files, synced from gnuorg.
55396
55397 2006-03-01  Karl Berry  <karl@gnu.org>
55398
55399         * config/srclist.txt (Copyright/*): new entries.
55400
55401 2006-02-28  Simon Josefsson  <jas@extundo.com>
55402
55403         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55404
55405 2006-02-27  Simon Josefsson  <jas@extundo.com>
55406
55407         * lib/base64.h: Indent #define's.  From Jim Meyering
55408         <jim@meyering.net>.
55409
55410 2006-02-27  Jim Meyering  <jim@meyering.net>
55411
55412         Revert the change of 2006-02-24, so these files can continue
55413         to be sync'd from gettext.
55414         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55415         of `config.h'.
55416
55417 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55418
55419         * modules/intprops: New file.
55420         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55421         Add intprops.
55422         * modules/getloadavg (Files): Remove lib/intprops.h.
55423         (Depends-on): Add intprops.
55424         * modules/human: Likewise.
55425         * modules/inttostr: Likewise.
55426         * modules/openat: Likewise.
55427         * modules/sig2str: Likewise.
55428         * modules/userspec: Likewise.
55429         * modules/utimecmp: Likewise.
55430         * modules/xnanosleep: Likewise.
55431         * modules/xstrtol: Likewise.
55432
55433 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55434
55435         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55436         * modules/lock-tests (TESTS): Use $(EXEEXT).
55437         * modules/tls-tests: Likewise.
55438         * modules/argp-tests: Likewise.
55439         (check_PROGRAMS): New var, replacing...
55440         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55441
55442 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55443
55444         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55445         `config.h'.
55446
55447 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55448
55449         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55450
55451 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55452
55453         Sync from coreutils.
55454         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55455         gl_CHDIR_SAFER.
55456
55457 2006-02-22  Jim Meyering  <jim@meyering.net>
55458
55459         Sync from coreutils.
55460         * m4/chdir-safer.m4: New file.
55461
55462 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55463
55464         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55465         AT_FDCWD exceeds INT_MAX.
55466         * lib/openat.h (AT_FDCWD): Likewise.
55467
55468 2006-02-17  Eric Blake  <address@hidden>
55469
55470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55471
55472 2006-02-16  Simon Josefsson  <jas@extundo.com>
55473
55474         * modules/getaddrinfo (Depends-on): Add sys_socket.
55475
55476 2006-02-15  Simon Josefsson  <jas@extundo.com>
55477
55478         * build-aux/maint.mk: Add dsyntax-check rule.
55479
55480 2006-02-15  Eric Blake  <ebb9@byu.net>
55481
55482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55483         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55484         'present but cannot compile' warnings on cygwin.
55485         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55486         use ws2tcpip.h if sys/socket.h works.
55487         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55488         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55489
55490 2006-02-14  Simon Josefsson  <jas@extundo.com>
55491
55492         * modules/maintainer-makefile (Files): Rename.
55493
55494         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55495         and (the local) Makefile.cfg to maint-cfg.mk.
55496
55497         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55498         to the latter.
55499
55500         * modules/maintainer-makefile: New module.
55501
55502         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55503         severaly stripped to make it possible to build it up from scratch
55504         with reliable tests.
55505
55506         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55507         fixes to permit overriding the default actions when configure and
55508         makefile are not available.
55509
55510 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55511
55512         Sync from coreutils.
55513         * modules/lstat (Depends-on): Don't depend on xalloc.
55514         (License): Change from GPL to LGPL, since this is now simply a
55515         replacement for a libc function.
55516
55517 2006-02-14  Jim Meyering  <jim@meyering.net>
55518
55519         Sync from coreutils.
55520
55521         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55522         failure on deficient systems, and simplify gnulib lgpl dependencies.
55523         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55524         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55525
55526         * lib/xalloc-die.c: Remove unused definition of N_.
55527
55528 2006-02-14  Jim Meyering  <jim@meyering.net>
55529
55530         Sync from coreutils.
55531         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55532         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55533         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55534         double-quote uses of that variable, to accommodate the rare case in
55535         which getmntent is available in none of the libraries checked.  This
55536         happens at least on FreeBSD 5.0.
55537
55538 2006-02-13  Simon Josefsson  <jas@extundo.com>
55539
55540         * gnulib-tool (Usage): Fix --import, from
55541         karl@freefriends.org (Karl Berry).
55542
55543 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55544
55545         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55546
55547 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55548
55549         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55550         "autoupdate" on 2005-12-12.
55551
55552 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         * modules/closeout (Depends-on): Remove atexit.
55555
55556 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55557
55558         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55559         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55560
55561 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55564         __EXTENSIONS__ if this causes compilation to fail.  Problem
55565         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55566         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55567
55568 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55569
55570         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55571         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55573         All uses changed.
55574
55575 2006-01-26  Simon Josefsson  <jas@extundo.com>
55576
55577         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55578         prototype is visible on mingw32.
55579
55580         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55581         for mingw32.
55582
55583         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55584         mingw32).
55585
55586 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55587
55588         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55589         attempt to open for write; this always fails, at least on POSIX
55590         hosts.  This reinstates the 2006-01-09 change, which was
55591         inadvertently removed.
55592
55593 2006-01-26  Bruno Haible  <bruno@clisp.org>
55594
55595         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55596         Reported by Paul Eggert.
55597
55598 2006-01-26  Bruno Haible  <bruno@clisp.org>
55599             Paul Eggert  <eggert@cs.ucla.edu>
55600
55601         * lib/stdbool_.h (_Bool)
55602         [(! (defined __cplusplus || defined __BEOS__)
55603           && !defined __GNUC__
55604           && !(defined __HP_cc || defined __xlc__
55605                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55606                || defined __sgi))]:
55607         #define to signed char in these cases too; this simplifies
55608         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55609         etc., separately) and makes it more conservative.
55610
55611 2006-01-25  Simon Josefsson  <jas@extundo.com>
55612
55613         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55614         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55615         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55616
55617 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55618
55619         * lib/argp-namefrob.h: Bugfix. Remove stray #
55620
55621 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55622
55623         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55624         so that we test the test.
55625         Check for yet another HP-UX cc bug involving *bool |= bool.
55626
55627 2006-01-25  Karl Berry  <karl@gnu.org>
55628
55629         * config/srclist.txt (vasnprintf.c): sync lost.
55630
55631 2006-01-25  Jim Meyering  <jim@meyering.net>
55632
55633         Sync from the stable (b5) branch of coreutils:
55634
55635         * lib/fts.c (fts_children): Don't let close() clobber errno from
55636         failed fchdir().
55637
55638         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55639         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55640         a dangling symlink.  That can also happen at least for ELOOP.
55641         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55642         FYI, this bug predates the inclusion of fts.c in coreutils.
55643
55644         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55645         in their own block, so pre-c99 compilers don't object.
55646
55647         Avoid the double-free (first in fts_read, second in fts_close) that
55648         would occur when an `active' directory is made inaccessible (e.g.,
55649         via chmod a-x) during a traversal.
55650         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55651         before returning.  Reproduce this failure by
55652         mkdir -p a/b; cd a; chmod a-x . b
55653         Reported by Stavros Passas.
55654
55655 2006-01-25  Jim Meyering  <jim@meyering.net>
55656
55657         * lib/fileblocks.c: Remove more useless parentheses.
55658         * lib/readutmp.h: Likewise.
55659
55660 2006-01-25  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55663         warnings.
55664         Reported by Paul Eggert.
55665
55666 2006-01-25  Bruno Haible  <bruno@clisp.org>
55667
55668         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55669         rid of a trap command. For Solaris sh.
55670         Reported by Mark D. Baushke <mdb@gnu.org>.
55671
55672 2006-01-24  Simon Josefsson  <jas@extundo.com>
55673
55674         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55675         Bruno.
55676
55677 2006-01-24  Karl Berry  <karl@gnu.org>
55678
55679         * config/srclist.txt (argp-namefrob.h): sync lost.
55680
55681 2006-01-24  Jim Meyering  <jim@meyering.net>
55682
55683         * modules/openat (Files): Add lib/intprops.h.
55684         From Mark D. Baushke.
55685
55686 2006-01-24  Jim Meyering  <jim@meyering.net>
55687
55688         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55689         Reported by Mark D. Baushke.
55690
55691 2006-01-24  Jim Meyering  <jim@meyering.net>
55692
55693         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55694
55695 2006-01-24  Bruno Haible  <bruno@clisp.org>
55696
55697         * modules/strnlen (Maintainer): Change from glibc to all.
55698
55699 2006-01-24  Bruno Haible  <bruno@clisp.org>
55700
55701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55702         Patch by Paul Eggert.
55703
55704 2006-01-24  Bruno Haible  <bruno@clisp.org>
55705
55706         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55707         already has it.
55708         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55709         2005-11-26.
55710
55711         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55712         'signed char' to avoid problems with the built-in _Bool type.
55713         Reported by Paul Eggert on 2005-11-26.
55714
55715 2006-01-24  Bruno Haible  <bruno@clisp.org>
55716
55717         * gnulib-tool (func_import): Avoid constructing complicated sed
55718         expressions inside backquote.
55719         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55720
55721 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55722
55723         These changes imported from libc.
55724         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55725         test and two separate function calls.
55726         * lib/strndup.c (__strndup): Add libc_hidden_def.
55727
55728 2006-01-23  Simon Josefsson  <jas@extundo.com>
55729
55730         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55731         Remove the test_*_SOURCES variable: automake infers it by default.
55732         * modules/tls-tests: Likewise.
55733
55734 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55735
55736         Work around porting bugs reported by Dieter in
55737         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55738         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55739         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55740         Include "getopt.h" first, to check interface.
55741         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55742         !HAVE_DECL_GETENV.
55743         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55744         (__strndup): Revert to K&R-style function dfns, the glibc style.
55745         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55746         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55747         Include strnlen.h first, to get prototype properly.
55748         (strnlen): Renamed from __strnlen.
55749         Remove weak alias.
55750
55751 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55754
55755 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55756
55757         * config/srclist.txt: Adjust to reflect glibc reorganization.
55758         This affects only comments.
55759
55760 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55761
55762          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55763          Reported by Bruce Korb <bkorb@gnu.org>.
55764
55765 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55766
55767         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55768         to pacify gcc -Wswitch-default.
55769
55770 2006-01-22  Bruno Haible  <bruno@clisp.org>
55771
55772         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55773         temporary buffer for sprintf, take into account the precision also
55774         for 'd', 'i', 'u', 'o', 'x', 'X'.
55775
55776 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55777
55778         * modules/argp-tests: New module
55779         * tests/test-argp.c: New file
55780         * tests/test-argp-2.sh: New file
55781
55782 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55783
55784         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55785         (__argp_base_name): Removed
55786         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55787         typo.
55788         (__argp_base_name): Provide macro definition or extern declaration
55789         depending on the configuration
55790
55791 2006-01-20  Simon Josefsson  <jas@extundo.com>
55792
55793         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55794
55795 2006-01-20  Simon Josefsson  <jas@extundo.com>
55796
55797         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55798
55799 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55800
55801         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55802         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55803         Suggested by Bruno Haible.
55804
55805 2006-01-20  Karl Berry  <karl@gnu.org>
55806
55807         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55808         until changes propagate, I guess.
55809
55810 2006-01-19  Simon Josefsson  <jas@extundo.com>
55811
55812         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55813
55814 2006-01-19  Simon Josefsson  <jas@extundo.com>
55815
55816         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55817
55818 2006-01-19  Simon Josefsson  <jas@extundo.com>
55819
55820         * gnulib-tool: Set check_PROGRAMS.
55821
55822         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55823         modules/des-tests, modules/gc-arcfour-tests,
55824         modules/gc-arctwo-tests, modules/gc-des-tests,
55825         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55826         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55827         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55828         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55829         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55830         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55831         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55832         test_*_SOURCES.
55833
55834 2006-01-18  Simon Josefsson  <jas@extundo.com>
55835
55836         * modules/socklen (Depends-on): Depend on sys_socket.
55837
55838 2006-01-18  Simon Josefsson  <jas@extundo.com>
55839
55840         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55841         modules/des-tests, modules/gc-arcfour-tests,
55842         modules/gc-arctwo-tests, modules/gc-des-tests,
55843         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55844         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55845         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55846         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55847         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55848         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55849         $(EXEEXT) to automake TESTS variable, for mingw32.
55850
55851 2006-01-17  Simon Josefsson  <jas@extundo.com>
55852
55853         * modules/socklen (Include): Need sys/socket.h.
55854
55855 2006-01-17  Bruno Haible  <bruno@clisp.org>
55856
55857         * modules/ssize_t (Include): Add <sys/types.h>.
55858
55859 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55862         it's not portable and it doesn't work with cross-compiles.
55863         Problem reported by Bruno Haible.  Fix missing-$ typo in
55864         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55865         -zignore from being used with Sun's C compiler.
55866
55867 2006-01-12  Simon Josefsson  <jas@extundo.com>
55868
55869         * lib/base64.c: Fix warning, reported by Bruno Haible
55870         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55871
55872 2006-01-12  Bruno Haible  <bruno@clisp.org>
55873
55874         * modules/ldd: New file.
55875         * build-aux/ldd.sh.in: New file.
55876         * MODULES.html.sh (Support for building libraries and executables): Add
55877         ldd.
55878
55879 2006-01-12  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/ldd.m4: New file.
55882
55883 2006-01-12  Bruno Haible  <bruno@clisp.org>
55884
55885         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55886         endless loop while replacing $auxdir with build-aux.
55887
55888 2006-01-11  Simon Josefsson  <jas@extundo.com>
55889
55890         * lib/stdint_.h (SIZE_MAX): Add missing (.
55891
55892 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55893
55894         Sync from coreutils.
55895         * lib/md5.c: Fix commentary typos.
55896         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55897         * lib/md5.h (__attribute__): Remove; unused.
55898         * lib/sha1.c: Fix commentary to match md5 better.
55899         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55900         so that we don't need to worry about alignment.  All uses changed.
55901         This merges the 2005-10-28 md5 change into sha1.
55902
55903 2006-01-11  Jim Meyering  <jim@meyering.net>
55904
55905         Sync from coreutils.
55906         * lib/md5.c (OP): Fix spacing.
55907
55908 2006-01-11  Bruno Haible  <bruno@clisp.org>
55909
55910         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55911         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55912         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55913
55914 2006-01-11  Bruno Haible  <bruno@clisp.org>
55915
55916         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55917         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55918         the "early" section as well.
55919
55920 2006-01-11  Bruno Haible  <bruno@clisp.org>
55921
55922         Avoid "ar: no archive members specified" error on MacOS X.
55923         * gnulib-tool (func_modules_add_dummy): New function.
55924         (func_import, func_create_testdir): Invoke it.
55925
55926 2006-01-11  Bruno Haible  <bruno@clisp.org>
55927
55928         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55929         with $auxdir in AC_CONFIG_FILES statements.
55930
55931 2006-01-11  Bruno Haible  <bruno@clisp.org>
55932
55933         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55934         Initialize also noinst_HEADERS to empty.
55935
55936 2006-01-11  Bruno Haible  <bruno@clisp.org>
55937
55938         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55939         variables.
55940         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55941         autoreconf.
55942
55943 2006-01-11  Bruno Haible  <bruno@clisp.org>
55944
55945         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55946         overridable by the user.
55947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55948
55949 2006-01-10  Simon Josefsson  <jas@extundo.com>
55950
55951         * modules/sys_socket: New file.
55952
55953 2006-01-10  Simon Josefsson  <jas@extundo.com>
55954
55955         * m4/sys_socket_h.m4: New file.
55956
55957 2006-01-10  Simon Josefsson  <jas@extundo.com>
55958
55959         * lib/socket_.h: New file.
55960
55961 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55962
55963         * modules/readutmp (Maintainer): Add myself.
55964
55965 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55968         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55969         People who are still concerned with buggy memcmp implementations
55970         can invoke gl_FUNC_MEMCMP themselves.
55971
55972 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55973
55974         * lib/regex_internal.h (BITSET_WORD_BITS):
55975         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55976         preprocessor mishandles large unsigned values as if they were signed.
55977         Problem reported by Claudio Fontana in
55978         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
55979
55980 2006-01-10  Jim Meyering  <jim@meyering.net>
55981
55982         Avoid the double-free (first in fts_read, second in fts_close) that
55983         would occur when an `active' directory is made inaccessible (e.g.,
55984         via chmod a-x) during a traversal.
55985         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55986         before returning.  Reproduce this failure by
55987         mkdir -p a/b; cd a; chmod a-x . b
55988         Reported by Stavros Passas.
55989
55990         Sync from coreutils.
55991         * lib/sha1.c: Tweak grammar in a comment.
55992
55993 2006-01-10  Jim Meyering  <jim@meyering.net>
55994
55995         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55996         Patch by Joerg Sonnenberger.
55997
55998 2006-01-10  Bruno Haible  <bruno@clisp.org>
55999
56000         * modules/readutmp: Depend on module free.
56001         * modules/strtok_r: Depend on module restrict.
56002
56003 2006-01-10  Bruno Haible  <bruno@clisp.org>
56004
56005         * modules/gettext (configure.ac): Add an invocation of
56006         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
56007
56008 2006-01-10  Bruno Haible  <bruno@clisp.org>
56009
56010         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
56011         Reported by Werner Lemberg <wl@gnu.org>.
56012
56013 2006-01-10  Bruno Haible  <bruno@clisp.org>
56014
56015         * lib/localcharset.c: Update from GNU gettext.
56016
56017 2006-01-10  Bruno Haible  <bruno@clisp.org>
56018
56019         * lib/argp.h (__const): Remove macro. Use const instead.
56020         * lib/argp-fmtstream.h (__const): Likewise.
56021         * lib/glob_.h (__const): Remove macro.
56022         * lib/glob-libc.h: Use const instead of __const.
56023
56024 2006-01-10  Bruno Haible  <bruno@clisp.org>
56025
56026         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
56027         variable.
56028         Needed to avoid an automake error regarding the 'gettext' module.
56029
56030 2006-01-09  Simon Josefsson  <jas@extundo.com>
56031
56032         * modules/inet_ntop (Depends-on): Add restrict.
56033
56034 2006-01-09  Simon Josefsson  <jas@extundo.com>
56035
56036         * modules/gc-rijndael-tests (License): Put under LGPL.
56037
56038         * modules/gc-des-tests (License): Likewise.
56039
56040         * modules/gc-arcfour-tests (License): Likewise.
56041
56042         * modules/gc-arctwo-tests (License): Likewise.
56043
56044         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
56045
56046         * modules/gc-hmac-sha1-tests (Files): Likewise.
56047
56048         * modules/gc-hmac-md5-tests (License): Likewise.
56049
56050         * modules/gc-sha1-tests (License): Likewise.
56051
56052         * modules/gc-md5-tests (License): Likewise.
56053
56054         * modules/gc-md4-tests (License): Likewise.
56055
56056         * modules/gc-md2-tests (License): Likewise.
56057
56058         * modules/gc-tests (License): Likewise.
56059
56060         * modules/des-tests (License): Likewise.
56061
56062         * modules/md4-tests (License): Likewise.
56063
56064         * modules/md2-tests (License): Likewise.
56065
56066 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56067
56068         Sync from coreutils:
56069
56070         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
56071         * modules/lib-ignore: New file.
56072         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
56073         chdir-safer.m4, lchmod.m4.
56074         * modules/openat: Add mkdirat.c, openat-priv.h.
56075
56076 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         Sync from coreutils.
56079         * m4/lib-ignore.m4: New file.
56080         * m4/lchmod.m4: New file.
56081
56082 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56083
56084         Sync from coreutils.
56085         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56086         for write access: POSIX says that must fail.
56087         * lib/fts.c (diropen): Likewise.
56088         * lib/save-cwd.c (save_cwd): Likewise.
56089         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56090         well, for minor improvements on hosts that lack O_DIRECTORY.
56091         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56092         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56093         Fall back on chown if open failed with EACCES.
56094
56095         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56096         Report an error at compile-time if only a 1-second nominal clock
56097         resolution is found.
56098
56099         * lib/lchmod.h: New file.
56100         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56101         (make_dir_parents): Use lchown rather than chown, and
56102         lchmod rather than chmod.
56103
56104         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56105         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56106         "proc" reported by n0dalus.
56107
56108         * lib/mountlist.c: Include <limits.h>.
56109         (dev_from_mount_options)
56110         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56111         New function.  It no longer assumes "dev=" has the System V meaning
56112         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56113         (read_file_system_list)
56114         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56115         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56116         dev= in that case.
56117
56118         * lib/posixtm.h (PDS_PRE_2000): New macro.
56119         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56120         allow_century.  All usages changed.  Reject dates outside the range
56121         1969-1999 if PDS_PRE_2000 is used.
56122
56123 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56124
56125         Sync from coreutils.
56126         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56127         (Time of day items): Mention the possibility of leap seconds.
56128         Problem reported by Dr. David Alan Gilbert.
56129
56130 2006-01-09  Jim Meyering  <jim@meyering.net>
56131
56132         Sync from coreutils.
56133
56134         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56135
56136         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56137
56138         * lib/modechange.c (mode_compile): Reject an invalid mode string
56139         that starts with an octal digit.  From Andreas Gruenbacher.
56140
56141         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56142         and dup to open_safer and dup_safer, respectively.
56143         (openat_permissive): Fix typo in comment.
56144
56145         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56146         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56147         (_): Remove; no longer needed.
56148         (openat): Renamed from rpl_openat; no need for rpl_openat
56149         since openat.h renames openat for us.
56150         Replace most of the body with a call to openat_permissive,
56151         to avoid duplicate code.
56152         Port to (probably hypothetical) environments were mode_t is
56153         wider than int.
56154         (openat_permissive): Require mode arg, so that we can check
56155         types better.  Put it just after flags.  Change cwd failure
56156         indicator from pointer-to-bool to pointer-to-errno-value.
56157         All callers changed.
56158         Invoke openat_save_fail and/or openat_restore_fail if
56159         cwd_errno is null, so that openat can call us.
56160         (openat_permissive, fdopendir, fstatat, unlinkat):
56161         Simplify errno handling to avoid some duplicate code,
56162         as it's OK to set errno on success.
56163         * lib/openat.h: Revamp code so that function macros depend on
56164         __OPENAT_PREFIX only, not also on AT_FDCWD.
56165         (openat_ro): Remove.  Caller changed to use openat_permissive.
56166         (openat_permissive): Now a macro, if not a function.
56167         (openat_restore_fail, openat_save_fail): Now always functions,
56168         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56169
56170         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56171         and openat.c.
56172         * lib/mkdirat.c: Include openat-priv.h.
56173         Remove definitions of macros defined therein.
56174         * lib/openat.c: Likewise.
56175
56176         * lib/mkdirat.c (mkdirat): New file and function.
56177         * lib/openat.h (mkdirat): Declare.
56178
56179         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56180
56181         * lib/openat.h (openat_permissive): Declare.
56182         (openat_ro): Define.
56183
56184         * lib/openat.c (EXPECTED_ERRNO): New macro.
56185         (openat_permissive): New function -- used in remove.c rewrite.
56186         (all functions): Set errno just before returning, only if there
56187         was an actual failure.
56188         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56189
56190         Emulate openat-family functions using Linux's procfs, if possible.
56191         Idea and some code based on Ulrich Drepper's glibc changes.
56192
56193         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56194         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56195         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56196         before falling back on save_cwd and restore_cwd.
56197         (fdopendir, fstatat, unlinkat): Likewise.
56198
56199         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56200         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56201
56202         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56203         as second argument to va_arg.  Otherwise, some versions of gcc
56204         warn that `if this code is reached, the program will abort'.
56205
56206 2006-01-09  Jim Meyering  <jim@meyering.net>
56207
56208         Sync from coreutils.
56209         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56210         Require openat-priv.h.
56211
56212 2006-01-09  Bruno Haible  <bruno@clisp.org>
56213
56214         * modules/strnlen (Include): Use strnlen.h.
56215
56216 2006-01-09  Bruno Haible  <bruno@clisp.org>
56217
56218         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56219
56220 2006-01-09  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/sysexit_.h (EX_OK): New macro.
56223         Suggested by Martin Lambers <marlam@marlam.de>.
56224
56225 2006-01-09  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56228         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56229
56230 2006-01-09  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56233         numbers.
56234
56235 2006-01-09  Bruno Haible  <bruno@clisp.org>
56236
56237         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56238         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56239         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56240         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56241
56242 2006-01-09  Bruno Haible  <bruno@clisp.org>
56243
56244         * build-aux/javacomp.sh.in: New file, moved from lib/.
56245         * modules/javacomp-script (Files): Update.
56246         (configure.ac): Add AC_CONFIG_FILES invocation.
56247         (EXTRA_DIST): Remove variable.
56248
56249         * build-aux/javaexec.sh.in: New file, moved from lib/.
56250         * modules/javaexec (Files): Update.
56251         (configure.ac): Add AC_CONFIG_FILES invocation.
56252         (EXTRA_DIST): Remove javaexec.sh.in.
56253
56254         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56255         * modules/csharpcomp-script (Files): Update.
56256         (configure.ac): Add AC_CONFIG_FILES invocation.
56257         (EXTRA_DIST): Remove variable.
56258
56259         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56260         * modules/csharpexec (Files): Update.
56261         (configure.ac): Add AC_CONFIG_FILES invocation.
56262         (EXTRA_DIST): Remove csharpexec.sh.in.
56263
56264 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56265
56266         Sync from coreutils.
56267
56268         Add POSIX ACL support
56269         * lib/acl.h (copy_acl, set_acl): Add declarations.
56270         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56271         systems other than Linux.
56272         (chmod_or_fchmod): New function: use fchmod when possible,
56273         and chmod otherwise.
56274         (file_has_acl): Add a POSIX ACL implementation, with a
56275         Linux-specific subcase.
56276         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56277         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56278         acls are unsupported.
56279         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56280         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56281         are unsupported.
56282
56283 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56284
56285         Sync from coreutils.
56286         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56287
56288 2006-01-07  Bruno Haible  <bruno@clisp.org>
56289
56290         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56291         gl_EARLY.
56292
56293 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56294
56295         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56296         Problem reported for Mingw by Mark Junker.
56297
56298 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56299
56300         * README: Gnulib normally doesn't generate a tarball.
56301
56302 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56305         long int, not int, for nanosecond counts, so that people who are
56306         used to POSIX struct timespec won't be surprised.  Reported by Jim
56307         Meyering.
56308
56309 2005-12-28  Bruno Haible  <bruno@clisp.org>
56310
56311         * build-aux/config.rpath: Update from GNU gettext.
56312
56313 2005-12-16  Jim Meyering  <jim@meyering.net>
56314
56315         * modules/fprintftime: New module.
56316         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56317
56318 2005-12-16  Jim Meyering  <jim@meyering.net>
56319
56320         * m4/fprintftime.m4: New file.
56321
56322 2005-12-16  Jim Meyering  <jim@meyering.net>
56323
56324         * lib/fprintftime.c, lib/fprintftime.h: New files.
56325
56326 2005-12-15  Simon Josefsson  <jas@extundo.com>
56327
56328         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56329         new m4/socklen.m4.
56330
56331 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56332
56333         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56334         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56335
56336 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56337
56338         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56339         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56340         struct uparams is valid. Fall back to the default values if it is
56341         not.
56342
56343 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56344
56345         * modules/argp (Files): Add argp-pin.c
56346         (Depends-on): dirname
56347         (lib_SOURCES): Add argp-pin.c
56348
56349 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56350
56351         * m4/argp.m4:  Check if program_invocation_name and
56352         program_invocation_short_name are declared and define appropriate
56353         macros if they are not.
56354
56355 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56356
56357         * lib/argp-help.c (__argp_base_name): New function
56358         (__argp_short_program_name): Rewrite using __argp_base_name
56359         * lib/argp-namefrob.h: Define program_invocation_name and
56360         program_invocation_short_name if requested
56361         (__argp_base_name): Add prototype
56362         * lib/argp-parse.c (argp_def): Use gettext wrappers
56363         (argp_default_parser): Use __argp_base_name
56364         * lib/argp-pin.c: New file. Defines program_invocation_name and
56365         program_invocation_short_name on systems that lack them.
56366
56367 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56368
56369         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56370         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56371         porting problem reported by Georg Schwarz in
56372         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56373
56374 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56375
56376         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56377         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56378         porting problem reported by Georg Schwarz in
56379         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56380
56381 2005-12-05  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56384         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56385         Reported by Mark Junker <mjscod@gmx.de>.
56386
56387 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56390         Use implementation from Albert Chin, with some
56391         comments/corrections by Stepan Kasal and myself.
56392
56393 2005-12-02  Bruno Haible  <bruno@clisp.org>
56394
56395         * gnulib-tool (func_import): Accept GPLed build tool modules when
56396         --lgpl is given.
56397         * modules/csharpcomp-script: New file.
56398         * modules/csharpcomp: Depend on it.
56399         * modules/javacomp-script: New file.
56400         * modules/javacomp: Depend on it.
56401         Suggested by Simon Josefsson.
56402
56403 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56404
56405         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56406         statement, to work around an HP-UX 10.20 compiler bug reported by
56407         Peter O'Gorman.
56408
56409 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         * modules/savedir (Depends-on): Add openat.
56412
56413 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56416         (uintmax_t) [defined uintmax_t]: Do not declare.
56417         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56418         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56419         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56420         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56421         sake of portability to weird hosts that C allows (though we don't
56422         know of any practical examples).
56423
56424         * lib/savedir.h (fdsavedir): New decl.
56425         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56426         contains most of the former guts of savedir.
56427         (savedir): Use savedirstream.
56428         Include "openat.h".
56429
56430 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56431
56432         * modules/obstack (Files): Add m4/ulonglong.m4.
56433         Problem reported by Davide Angelocola.
56434
56435 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56436
56437         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56438         coreutils no longer futzes with rounding modes.
56439
56440 2005-11-14  Jim Meyering  <jim@meyering.net>
56441
56442         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56443         replacement of mkstemp.
56444
56445 2005-11-10  Simon Josefsson  <jas@extundo.com>
56446
56447         * lib/readline.c: Remove EOL.
56448
56449 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56450
56451         * modules/gethrxtime (Depends-on): Add gettime.
56452
56453 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56454
56455         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56456         or gettimeofday; no longer needed.
56457
56458 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56461         time business.
56462         (gethrxtime) [! (HAVE_NANOUPTIME
56463         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56464         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56465         our own approximation.
56466
56467 2005-11-08  Eric Blake  <ebb9@byu.net>
56468
56469         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56470
56471 2005-11-08  Eric Blake  <ebb9@byu.net>
56472
56473         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56474
56475 2005-11-04  Bruno Haible  <bruno@clisp.org>
56476
56477         * gnulib-tool: Implement --update mode.
56478
56479 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56480
56481         Fix porting problem reported by Theodoros V. Kalamatianos.
56482         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56483         Don't assume that futimes failing means we must fail.
56484
56485 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56488         variables to suggest the intended function of the PATH_MAX check.
56489
56490 2005-10-30  Kean Johnston  <jkj@sco.com>
56491
56492         Trivial changes to support SCO systems.
56493         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56494         as PATH_MAX.
56495         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56496         where __ptr is null when no I/O is pending.
56497
56498 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56499
56500         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56501         leave errno alone.  Problem reported by Dmitry V. Levin.
56502
56503 2005-10-28  Simon Josefsson  <jas@extundo.com>
56504
56505         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56506         Test more.
56507
56508         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56509
56510         * modules/md2, modules/md2-tests: New files.
56511
56512 2005-10-28  Simon Josefsson  <jas@extundo.com>
56513
56514         * m4/inet_ntop.m4: More tests.
56515
56516         * m4/gc-md2.m4, md2.m4: New file.
56517
56518 2005-10-28  Simon Josefsson  <jas@extundo.com>
56519
56520         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56521         "restrict" keywords, as per POSIX.  Protect the function
56522         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56523         Don't use K&R prototypes.  Check the sprintf return values.
56524         Re-define EAFNOSUPPORT if not present.  Indent.
56525
56526         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56527         suggested by Bruno Haible <bruno@clisp.org>.
56528
56529         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56530
56531         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56532
56533         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56534         libgcrypt).
56535
56536         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56537
56538         * lib/md2.h, lib/md2.c: New files.
56539
56540 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56541
56542         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56543         errno alone.  Problem reported by Frederic Jolliton.
56544
56545 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         * modules/verify (License): Change from GPL to LGPL.  This is a
56548         tiny module and there are apparently near-equivalents that are
56549         under the BSD license.
56550
56551 2005-10-24  Simon Josefsson  <jas@extundo.com>
56552
56553         * modules/sha1: Relicense to LGPL.
56554
56555 2005-10-24  Simon Josefsson  <jas@extundo.com>
56556
56557         * lib/md4.h: Shrink buffer size, now that we changed the type.
56558
56559 2005-10-23  Simon Josefsson  <jas@extundo.com>
56560
56561         * gnulib-tool (func_import): Fix --tests-base.
56562
56563 2005-10-22  Simon Josefsson  <jas@extundo.com>
56564
56565         * modules/arcfour (Depends-on): Need stdint.
56566
56567 2005-10-22  Simon Josefsson  <jas@extundo.com>
56568
56569         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56570         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56571
56572 2005-10-22  Simon Josefsson  <jas@extundo.com>
56573
56574         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56575         suggested by Bruno Haible <bruno@clisp.org>.
56576
56577 2005-10-22  Simon Josefsson  <jas@extundo.com>
56578
56579         * lib/crc.h: Include stddef.h, for size_t.
56580
56581 2005-10-22  Simon Josefsson  <jas@extundo.com>
56582
56583         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56584         arcfour_context struct (simplify test vector testing in GNU
56585         Shishi).
56586
56587 2005-10-21  Simon Josefsson  <jas@extundo.com>
56588
56589         * modules/des, modules/des-tests: New files.
56590
56591         * modules/gc-des, modules/gc-des-tests: New files.
56592
56593         * tests/test-des.c, tests/test-gc-des.c: New file.
56594
56595 2005-10-21  Simon Josefsson  <jas@extundo.com>
56596
56597         * modules/arctwo, modules/arctwo-tests: New files.
56598
56599         * tests/test-arctwo.c: New file.
56600
56601         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56602
56603         * tests/test-gc-arctwo.c: New file.
56604
56605 2005-10-21  Simon Josefsson  <jas@extundo.com>
56606
56607         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56608         Bruno Haible <bruno@clisp.org>.
56609
56610         * m4/gc-des.m4: New file.
56611
56612 2005-10-21  Simon Josefsson  <jas@extundo.com>
56613
56614         * m4/arctwo.m4: New file.
56615
56616         * m4/gc-arctwo.m4: New file.
56617
56618 2005-10-21  Simon Josefsson  <jas@extundo.com>
56619
56620         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56621         block.
56622
56623 2005-10-21  Simon Josefsson  <jas@extundo.com>
56624
56625         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56626         <bruno@clisp.org>.
56627
56628         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56629
56630         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56631         Bruno Haible <bruno@clisp.org>.
56632
56633         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56634         <bruno@clisp.org>.
56635
56636 2005-10-21  Simon Josefsson  <jas@extundo.com>
56637
56638         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56639
56640 2005-10-21  Simon Josefsson  <jas@extundo.com>
56641
56642         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56643
56644 2005-10-21  Simon Josefsson  <jas@extundo.com>
56645
56646         * lib/des.h, lib/des.c: New files.
56647
56648         * lib/gc-gnulib.c: Support DES.c
56649
56650 2005-10-21  Simon Josefsson  <jas@extundo.com>
56651
56652         * lib/arctwo.h, lib/arctwo.c: New files.
56653
56654         * lib/gc-gnulib.c: Support ARCTWO.
56655
56656 2005-10-21  Simon Josefsson  <jas@extundo.com>
56657
56658         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56659         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56660
56661 2005-10-21  Simon Josefsson  <jas@extundo.com>
56662
56663         * gnulib-tool (func_import, func_create_testdir): Define automake
56664         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56665         Makefile.am snippet),
56666         suggested by Bruno Haible <bruno@clisp.org>.
56667
56668         * modules/gc (Makefile.am): Use it.
56669
56670 2005-10-21  Bruno Haible  <bruno@clisp.org>
56671
56672         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56673         patch.
56674
56675 2005-10-19  Simon Josefsson  <jas@extundo.com>
56676
56677         * tests/test-gc-rijndael.c: New file.
56678
56679         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56680
56681 2005-10-19  Simon Josefsson  <jas@extundo.com>
56682
56683         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56684         interface too.
56685
56686 2005-10-19  Simon Josefsson  <jas@extundo.com>
56687
56688         * tests/test-gc-arcfour.c: New file.
56689
56690         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56691
56692 2005-10-19  Simon Josefsson  <jas@extundo.com>
56693
56694         * modules/gc-md4, modules/gc-md4-tests: New file.
56695
56696         * tests/test-gc-md4.c: New file.
56697
56698 2005-10-19  Simon Josefsson  <jas@extundo.com>
56699
56700         * m4/gc-md4.m4: New file.
56701
56702 2005-10-19  Simon Josefsson  <jas@extundo.com>
56703
56704         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56705         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56706         <kasal@ucw.cz>.
56707
56708 2005-10-19  Simon Josefsson  <jas@extundo.com>
56709
56710         * m4/gc-arcfour.m4: New file.
56711
56712         * m4/gc-rijndael.m4: New file.
56713
56714 2005-10-19  Simon Josefsson  <jas@extundo.com>
56715
56716         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56717
56718 2005-10-19  Simon Josefsson  <jas@extundo.com>
56719
56720         * lib/gc-gnulib.c: Support ARCFOUR.
56721
56722 2005-10-19  Simon Josefsson  <jas@extundo.com>
56723
56724         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56725         support.
56726
56727         * lib/gc.h: Add ECB enum type.
56728
56729         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56730
56731 2005-10-18  Simon Josefsson  <jas@extundo.com>
56732
56733         * tests/test-md5.c: New file.
56734
56735         * modules/md5-tests: New file.
56736
56737 2005-10-18  Simon Josefsson  <jas@extundo.com>
56738
56739         * tests/test-md4.c: New file.
56740
56741         * modules/md4, modules/md4-tests: New files.
56742
56743 2005-10-18  Simon Josefsson  <jas@extundo.com>
56744
56745         * m4/md4.m4: New file.
56746
56747 2005-10-18  Simon Josefsson  <jas@extundo.com>
56748
56749         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56750
56751 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56752
56753         * gnulib-tool (func_create_testdir): Omit the second check whether
56754         BUILT_SOURCES in nonempty.
56755
56756 2005-10-17  Simon Josefsson  <jas@extundo.com>
56757
56758         * tests/test-rijndael.c: New file.
56759
56760 2005-10-17  Simon Josefsson  <jas@extundo.com>
56761
56762         * modules/sha1: Depend on stdint instead of md5.
56763
56764         * modules/md5: Depend on stdint, remove uint32_t.
56765
56766 2005-10-17  Simon Josefsson  <jas@extundo.com>
56767
56768         * modules/gc-sha1-tests: New file.
56769
56770         * tests/test-gc-sha1.c: New file.
56771
56772 2005-10-17  Simon Josefsson  <jas@extundo.com>
56773
56774         * m4/md5.m4: Remove call to uint32_t.m4.
56775
56776 2005-10-17  Simon Josefsson  <jas@extundo.com>
56777
56778         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56779
56780         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56781         md5.h.
56782
56783         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56784
56785         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56786
56787 2005-10-17  Simon Josefsson  <jas@extundo.com>
56788
56789         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56790
56791 2005-10-17  Simon Josefsson  <jas@extundo.com>
56792
56793         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56794
56795 2005-10-17  Simon Josefsson  <jas@extundo.com>
56796
56797         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56798
56799         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56800
56801 2005-10-17  Bruno Haible  <bruno@clisp.org>
56802
56803         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56804         that it can also be used in a test.
56805
56806 2005-10-16  Bruno Haible  <bruno@clisp.org>
56807
56808         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56809         TESTS_ENVIRONMENT, so that individual tests can augment it.
56810
56811         * gnulib-tool (func_create_testdir): Use an intermediate target for
56812         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56813         macros, like $(ALLOCA_H), which cannot be passed through the command
56814         line.
56815
56816 2005-10-15  Simon Josefsson  <jas@extundo.com>
56817
56818         * modules/rijndael-tests: New file.
56819
56820         * modules/rijndael: New file.
56821
56822 2005-10-15  Simon Josefsson  <jas@extundo.com>
56823
56824         * m4/rijndael.m4: New file.
56825
56826 2005-10-15  Simon Josefsson  <jas@extundo.com>
56827
56828         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56829
56830         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56831
56832 2005-10-14  Simon Josefsson  <jas@extundo.com>
56833
56834         * tests/test-arcfour.c: New file.
56835
56836         * modules/arcfour, modules/arcfour-tests: New files.
56837
56838 2005-10-14  Simon Josefsson  <jas@extundo.com>
56839
56840         * m4/arcfour.m4: New file.
56841
56842 2005-10-14  Simon Josefsson  <jas@extundo.com>
56843
56844         * lib/arcfour.h, lib/arcfour.c: New files.
56845
56846 2005-10-14  Roland McGrath  <roland@redhat.com>
56847
56848         Import from libc.  [BZ #1331]
56849         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56850         macro argument.
56851         Reported by Matej Vela <vela@debian.org>.
56852
56853 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56854
56855         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56856         include <wchar.h>; no longer needed.
56857
56858 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56859
56860         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56861
56862 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56863         and  Ulrich Drepper  <drepper@redhat.com>
56864
56865         Import from libc.
56866         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56867         instead of inline stream orientation test and two separate
56868         function calls.  Pay no attention to USE_IN_LIBIO.
56869
56870 2005-10-13  Simon Josefsson  <jas@extundo.com>
56871
56872         * modules/gc-hmac-md5-tests: New file.
56873
56874         * tests/test-gc-hmac-sha1.c: New file.
56875
56876         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56877
56878         * modules/gc-hmac-md5-tests: New file.
56879
56880         * tests/test-gc-md5.c: New file.
56881
56882         * modules/gc-md5-tests: New file.
56883
56884 2005-10-13  Simon Josefsson  <jas@extundo.com>
56885
56886         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56887         Move memory allocation outside of loop.
56888
56889 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56890
56891         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56892         intermediate directory is in a read-only file system.  Problem
56893         reported by Eric Blake.
56894
56895 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56896
56897         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56898
56899 2005-10-12  Simon Josefsson  <jas@extundo.com>
56900
56901         * tests/test-hmac-sha1.c: New file.
56902
56903         * modules/hmac-sha1-tests: New file.
56904
56905         * modules/hmac-sha1: New file.
56906
56907 2005-10-12  Simon Josefsson  <jas@extundo.com>
56908
56909         * modules/gc-sha1: New file.
56910
56911 2005-10-12  Simon Josefsson  <jas@extundo.com>
56912
56913         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56914
56915         * tests/test-gc-pbkdf2-sha1.c: New file.
56916
56917 2005-10-12  Simon Josefsson  <jas@extundo.com>
56918
56919         * modules/gc-md5, modules/gc-hmac-md5: New files.
56920
56921         * modules/gc (Files): Remove md5, memxor and hmac files.
56922
56923 2005-10-12  Simon Josefsson  <jas@extundo.com>
56924
56925         * m4/gc-pbkdf2-sha1.m4: New file.
56926
56927         * m4/gc-hmac-sha1.m4: New file.
56928
56929         * m4/gc-sha1: New file.
56930
56931         * m4/hmac-sha1.m4: New file.
56932
56933 2005-10-12  Simon Josefsson  <jas@extundo.com>
56934
56935         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56936
56937         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56938
56939 2005-10-12  Simon Josefsson  <jas@extundo.com>
56940
56941         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56942         suggested by Bruno Haible <bruno@clisp.org>.
56943
56944 2005-10-12  Simon Josefsson  <jas@extundo.com>
56945
56946         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56947
56948 2005-10-12  Simon Josefsson  <jas@extundo.com>
56949
56950         * lib/gc-pbkdf2-sha1.c: New file.
56951
56952         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56953
56954 2005-10-12  Simon Josefsson  <jas@extundo.com>
56955
56956         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56957
56958         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56959
56960 2005-10-12  Simon Josefsson  <jas@extundo.com>
56961
56962         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56963         GC_USE_HMAC_MD5, respectively.
56964
56965         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56966         (gc_md5): Fix typo.
56967
56968         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56969
56970         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56971
56972         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56973
56974 2005-10-12  Bruno Haible  <bruno@clisp.org>
56975
56976         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
56977         Reported by Stepan Kasal <kasal@ucw.cz>.
56978
56979 2005-10-11  Simon Josefsson  <jas@extundo.com>
56980
56981         * tests/test-crc.c: New file.
56982
56983         * modules/crc, modules/crc-tests: New files.
56984
56985 2005-10-11  Simon Josefsson  <jas@extundo.com>
56986
56987         * m4/crc.m4: New file.
56988
56989 2005-10-11  Simon Josefsson  <jas@extundo.com>
56990
56991         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56992
56993         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56994
56995         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56996
56997 2005-10-11  Simon Josefsson  <jas@extundo.com>
56998
56999         * lib/crc.h, lib/crc.c: New files.
57000
57001         * lib/gc.h (gc_hash_buffer): Add doc.
57002
57003 2005-10-11  Bruno Haible  <bruno@clisp.org>
57004
57005         * modules/c-strcasestr: New file.
57006         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
57007
57008 2005-10-11  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/c-strcase: New file.
57011         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
57012
57013 2005-10-11  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/strcasecmp.c: Include limits.h.
57016         (strcasecmp): Avoid integer overflow on exotic platforms.
57017         * lib/strncasecmp.c: Include limits.h.
57018         (strncasecmp): Avoid integer overflow on exotic platforms.
57019         Reported by Paul Eggert.
57020
57021 2005-10-11  Bruno Haible  <bruno@clisp.org>
57022
57023         * lib/c-strcasestr.h: New file, from GNU gettext.
57024         * lib/c-strcasestr.c: New file, from GNU gettext.
57025
57026 2005-10-11  Bruno Haible  <bruno@clisp.org>
57027
57028         * lib/c-strcase.h: New file, from GNU gettext.
57029         * lib/c-strcasecmp.c: New file, from GNU gettext.
57030         * lib/c-strncasecmp.c: New file, from GNU gettext.
57031
57032 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57033
57034         * modules/mempcpy (License): GPL -> LGPL.
57035         * modules/strchrnul (License): Likewise.
57036         * modules/sysexits (License): Likewise.
57037
57038 2005-10-08  Simon Josefsson  <jas@extundo.com>
57039
57040         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
57041
57042 2005-10-07  Simon Josefsson  <jas@extundo.com>
57043
57044         * m4/memxor.m4: Remove gl_C_RESTRICT call.
57045
57046 2005-10-06  Simon Josefsson  <jas@extundo.com>
57047
57048         * tests/test-hmac-md5.c: New file.
57049
57050         * modules/hmac-md5-tests: New file.
57051
57052         * modules/hmac-md5: New file.
57053
57054 2005-10-06  Simon Josefsson  <jas@extundo.com>
57055
57056         * m4/hmac-md5.m4: New file.
57057
57058         * m4/memxor.m4: Require gl_C_RESTRICT.
57059
57060 2005-10-06  Simon Josefsson  <jas@extundo.com>
57061
57062         * lib/memxor.c (memxor): Avoid casts and warnings.
57063
57064 2005-10-06  Simon Josefsson  <jas@extundo.com>
57065
57066         * lib/hmac-md5.c: New file.
57067
57068         * lib/hmac.h: New file.
57069
57070 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
57073         promotes to int, not unsigned int, to catch the AIX 5.3
57074         compiler bug.
57075
57076 2005-10-05  Simon Josefsson  <jas@extundo.com>
57077
57078         * modules/memxor: New file.
57079
57080         * modules/iconv (Files): Move config.rpath to havelib, it is used
57081         there.
57082
57083         * modules/havelib (Files): Add config.rpath.
57084
57085 2005-10-05  Simon Josefsson  <jas@extundo.com>
57086
57087         * m4/memxor.m4: New file.
57088
57089 2005-10-05  Simon Josefsson  <jas@extundo.com>
57090
57091         * lib/memxor.c (memxor): Fix compiler error.
57092
57093         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57094         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57095
57096         * lib/memxor.h, lib/memxor.c: New files.
57097
57098         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57099         we assume all systems have it, suggested by Jim Meyering
57100         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57101         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57102         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57103         same reasons.
57104
57105 2005-10-05  Simon Josefsson  <jas@extundo.com>
57106
57107         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57108
57109 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57110
57111         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57112         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57113         needed, since the source code now assumes these .h files.
57114
57115 2005-10-05  Derek Price  <derek@ximbiot.com>
57116
57117         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57118
57119 2005-10-05  Bruno Haible  <bruno@clisp.org>
57120
57121         * modules/stdint (License): Change to LGPL.
57122
57123 2005-10-04  Simon Josefsson  <jas@extundo.com>
57124
57125         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57126         D. Baushke" <mdb@gnu.org>.
57127
57128 2005-10-04  Bruno Haible  <bruno@clisp.org>
57129
57130         * lib/verify.h (verify_true): Provide alternative definition for C++.
57131
57132 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57135         (SSIZE_MAX): New macro, if not already defined.
57136         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57137         than 2 GiB.
57138
57139 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57140
57141         Sync from coreutils.
57142         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57143         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57144         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57145         ULLONG_MAX doesn't work with 2.7.2.1.
57146
57147 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57148
57149         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57150         From Ben Pfaff.
57151
57152         * modules/exclude (Depends-on): Depend on verify.
57153         * modules/strtoimax (Depends-on): Likewise.
57154         * modules/utimecmp (Depends-on): Likewise.
57155
57156 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57157
57158         * lib/exclude.c: Include verify.h.
57159         (verify): Remove.  All callers changed to use verify.h's version.
57160         * lib/strtoimax.c: Likewise.
57161         * lib/utimecmp.c: Likewis.e
57162
57163         Sync from coreutils.
57164         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57165         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57166         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57167         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57168         bother returning ENOSYS if settimeofday or stime fails; just let
57169         them return whatever errno they want to return.
57170         * lib/utimens.c: Include unistd.h, for dup2.
57171         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57172         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57173
57174 2005-10-02  Jim Meyering  <jim@meyering.net>
57175
57176         Sync from coreutils.
57177         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57178         from glibc-2.2.5 that fails for read-only files.
57179
57180 2005-10-02  Jim Meyering  <jim@meyering.net>
57181
57182         Sync from coreutils.
57183         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57184         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57185         `#if HAVE_CONFIG_H'.
57186         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57187         Remove AT_FDCWD test.
57188         Do not consume the fd unless successful.
57189         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57190         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57191         block, so that we don't even try to compile it if settimeofday is
57192         available.  This works around a compilation failure on OSF1 V5.1,
57193         due to stime requiring a `long int*' while tv_sec is `int'.
57194
57195 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57196
57197         Sync from coreutils.
57198         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57199         against `yes', rather than just testing for nonempty.
57200
57201 2005-10-01  Simon Josefsson  <jas@extundo.com>
57202
57203         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57204         and Darwin.
57205
57206         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57207         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57208         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57209         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57210         Check if struct addrinfo is declared.
57211
57212 2005-10-01  Simon Josefsson  <jas@extundo.com>
57213
57214         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57215         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57216         AI_* and EAI_* definitions.  Protect function declarations.
57217
57218 2005-10-01  Jim Meyering  <jim@meyering.net>
57219
57220         Sync from coreutils.
57221
57222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57223         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57224         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57226         in the inet and nsl libraries.  Required on Solaris 5.7.
57227
57228 2005-10-01  Jim Meyering  <jim@meyering.net>
57229
57230         Sync from coreutils.
57231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57232         in the inet and nsl libraries.  Required on Solaris 5.7.
57233
57234 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57235
57236         * lib/getdelim.c (getdelim): Remove unused variables.
57237
57238 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57241         so that the code works even with ancient cpp.  Portability problem
57242         with GCC 2.7.2.1 reported by Thomas M.Ott.
57243
57244 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57245
57246         * modules/regex (Depends-on): Add strcase.
57247
57248         * modules/gethostname (Licence): Change from GPL to LGPL, since
57249         gethostname.c is a trivial implementation of a standard library
57250         function.
57251         * modules/poll (License): Change from GPL to LGPL, since it's
57252         derived from LGPL code.
57253
57254 2005-09-27  Jim Meyering  <jim@meyering.net>
57255
57256         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57257         HAVE_CONFIG_H.
57258
57259         * lib/intprops.h (signed_type_or_expr__): Define.
57260         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57261         for unsigned types.
57262
57263 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57264
57265         * lib/verify.h (verify_expr): Remove, replacing with:
57266         (verify_true): New macro that returns true instead of void.
57267         (verify_type__): Remove.
57268         (verify): Use verify_true rather than verify_type__.
57269
57270 2005-09-26  Bruno Haible  <bruno@clisp.org>
57271
57272         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57273         is necessary.
57274         (lib_SOURCES): Remove mbchar.c.
57275         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57276         (Files): Add m4/mbrtowc.m4.
57277         * modules/mbiter: Likewise.
57278         * modules/mbuiter: Likewise.
57279
57280 2005-09-26  Bruno Haible  <bruno@clisp.org>
57281
57282         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57283         compile mbchar.c if they are not both present.
57284         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57285         * m4/mbiter.m4 (gl_MBITER): Likewise.
57286         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57287         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57288         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57289
57290 2005-09-25  Jim Meyering  <jim@meyering.net>
57291
57292         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57293         also uses socklen_t.
57294
57295 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57296
57297         * lib/utimens.c (ENOSYS): Define if not already defined.
57298         (futimens): Support having a null PATH if the file descriptor
57299         is nonnegative.
57300
57301         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57302         Remove.
57303         (__attribute): Define to empty unless GCC 3.1 or later.
57304         This works around a core dump on OpenBSD 3.4, which has GCC
57305         2.95.3, which dumps core when given __attribute__(()).  It also
57306         simplifies other tests, since we really don't want to bother with
57307         worrying about which ancient version of GCC supported what.
57308         Original problem reported by Yoann Vandoorselaere, with part of
57309         the fix suggested by Derek Price.
57310
57311 2005-09-24  Jim Meyering  <jim@meyering.net>
57312
57313         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57314         so we can once again use a positive bitfield width of 1 -- now we
57315         don't have to explain why we were using a bitfield width of 2.
57316
57317 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57318
57319         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57320         and similarly for the other external symbols.  Problem reported
57321         by James Gallager.
57322
57323         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57324         bug reported by Jim Meyering.
57325
57326         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57327         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57328         not needed, since socklen is a prerequisite module.
57329
57330 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57331
57332         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57333         Problem reported by Eric Blake.
57334         (getaddrinfo): Initialize se so that it's not garbage.
57335         Redo internal storage allocation so that it doesn't make unportable
57336         assumptions about alignment.
57337         Fix a memory leak.
57338
57339         * lib/utimens.c (futimens): Use futimesat if available.
57340         Prefer it to futimes since it doesn't have the futimes bug.
57341
57342         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57343         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57344         Instead, declare a function that returns a pointer to an array,
57345         and use verify_type__ to declare the size of the array.
57346         Problem and germ of a solution reported by Bruno Haible.
57347         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57348         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57349
57350 2005-09-23  Jim Meyering  <jim@meyering.net>
57351
57352         Sync from coreutils.
57353         Correct build failure (socklen_t not defined) on at least
57354         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57356
57357 2005-09-23  Jim Meyering  <jim@meyering.net>
57358
57359         * modules/getaddrinfo (Depends-on): Add socklen.
57360
57361 2005-09-23  Bruno Haible  <bruno@clisp.org>
57362
57363         * tests/test-verify.c: New file.
57364
57365 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57366
57367         Sync from coreutils.
57368
57369         * modules/argmatch (Depends-on): Add verify.
57370         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57371         unistd-safer.
57372         * modules/save-cwd (Depends-on): Likewise.
57373
57374         * modules/openat (Files): Add lib/openat-die.c.
57375         (Depends-on): Remove error, exitfail.
57376         Add dirname.
57377
57378         * modules/verify: New file.
57379         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57380         with "verify" module.
57381
57382 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57383
57384         Sync from coreutils.
57385
57386         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57387         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57388         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57389         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57390         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57391         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57392         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57393         Don't bother checking for string.h, stdlib.h, unistd.h.
57394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57395         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57396         module's job.
57397         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57398         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57399
57400         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57401         (gl_GETDATE): Use it.
57402
57403         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57404
57405 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         Sync from coreutils.
57408
57409         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57410         stat-time.h.
57411         * lib/argmatch.h: Include verify.h
57412         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57413         (ARGMATCH_ASSERT): Remove; unused.
57414         * lib/canonicalize.c: Assume STDC_HEADERS.
57415         * lib/exclude.c: Include "strcase.h".
57416         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57417         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57418         and stdio-safer.h.
57419         (getusershell): Call fopen, not fopen_safer.
57420         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57421         Do not include unistd-safer.h.
57422         (save_cwd): Don't call fd_safer; no longer needed
57423         now that we include fcntl--.h.
57424
57425         * lib/getdate.y (relative_time): New type.
57426         (RELATIVE_TIME_0): New constant.
57427         (parser_control): Use relative_time instead of doing it ourselves.
57428         (%union): Add new relative_time rel member.
57429         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57430         Now typeless.
57431         (relunit, relunit_snumber): Now of type rel.
57432         (zone, rel, relunit, get_date): Adjust to above changes.
57433
57434         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57435         Do not include unistd-safer.h.
57436         (getloadavg): Don't call fd_safer; no longer needed
57437         now that we include fcntl--.h.
57438
57439         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57440         (make_dir_parents): Treat ENOSYS like EEXIST.
57441
57442         Improve quality of diagnostics on restore_cwd failure.
57443         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57444         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57445         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57446         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57447         each time through the loop.  Do not diagnose restore_cwd failure;
57448         that is the caller's job (and perhaps the caller does not care).
57449
57450         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57451         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57452         If the file already exists but is not a directory, don't bother
57453         to try to make its parents.
57454         Close potential file descriptor leak if we can't chdir("/") (!).
57455         Don't always return true if chdir($PWD) fails; return true only
57456         if the requested action was done successfully (except for the
57457         chdir($PWD)).
57458         Don't log final directory unless we actually made it.
57459         Refactor to avoid duplicate code to fix up permissions.
57460         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57461
57462         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57463         to make it a bit faster and (I hope) clearer.
57464         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57465         Fix bug in formats like %2N.
57466
57467         * lib/verify.h: New file.
57468
57469 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57470
57471         Sync from coreutils.
57472         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57473
57474 2005-09-22  Jim Meyering  <jim@meyering.net>
57475
57476         Sync from coreutils.
57477
57478         * m4/lstat.m4 (gl_FUNC_LSTAT):
57479         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57480         Remove obsolete comment.
57481         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57482         * m4/xstrtod.m4: Likewise.
57483
57484         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57485
57486 2005-09-22  Jim Meyering  <jim@meyering.net>
57487
57488         Sync from coreutils.
57489
57490         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57491
57492         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57493         the .tm_year member, since otherwise gcc-4.0 would now warn about
57494         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57495
57496         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57497         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57498
57499         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57500         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57501         when run in a time zone for which daylight savings time is in effect
57502         for the starting date.
57503
57504         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57505         stop us from restricting permissions of just-created absolute-named
57506         directories.
57507         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57508         to restore initial working directory.
57509         * lib/mkdir-p.c (make_dir_parents): New parameter:
57510         different_working_dir, to tell caller if/when we change the working
57511         directory and are unable to return to the initial one.
57512         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57513         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57514         `return false'.  This fixes a bug introduced on 2004-07-30.
57515
57516         * lib/openat.c (fdopendir): Be sure to close the supplied
57517         file descriptor before returning.  This makes our replacement
57518         implementation a little closer to Solaris's, where fdopendir
57519         ties the file descriptor to the returned DIR* pointer.
57520         * lib/openat.c (unlinkat): New function.
57521         * lib/openat.h (unlinkat): Add prototype.
57522         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57523         (openat_restore_fail): Rename from openat_restore_die.
57524         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57525
57526         Provide an alternative to exiting immediately upon save_cwd or
57527         restore_cwd failure.  Now, an application can arrange e.g.,
57528         to perform a longjump in that case.
57529         * lib/openat.c: Include dirname.h.
57530         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57531         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57532         and openat_restore_die rather than calling error directly.
57533         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57534
57535         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57536         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57537         define.
57538
57539         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57540         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57541                             int utc, int nanoseconds);
57542         Background:
57543         date should not have to allocate a megabyte of virtual memory to
57544         handle a format argument like +%1048575T.  When implemented with
57545         strftime, it must allocate such a buffer, use strftime to fill it
57546         in, print it, then free it.
57547         With fprintftime, it simply prints everything and exits.
57548         With no need for memory allocation, that's one fewer way to fail.
57549         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57550         optional field width, not before, so we accept %9:z, not %:9z.
57551         (my_strftime): Be sure to use L_('x') for literals.
57552
57553         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57554         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57555         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57556         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57557         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57558         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57559         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57560         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57561         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57562         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57563         * lib/xgethostname.c, lib/xreadlink.c:
57564         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57565
57566         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57567         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57568         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57569         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57570         and don't include <sys/file.h>).
57571
57572 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57573
57574         Sync from coreutils.
57575
57576         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57577         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57578         [!LDAV_DONE]: Avoid unused variable warning.
57579
57580 2005-09-21  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/unicodeio.h (unicode_to_mb): New declaration.
57583
57584 2005-09-20  Derek Price  <derek@ximbiot.com>
57585
57586         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57587         getaddrinfo.h.
57588
57589 2005-09-20  Bruno Haible  <bruno@clisp.org>
57590
57591         * gnulib-tool: Remove trailing slashes from the values specified for
57592         --source-base, --m4-base, --tests-base, --aux-dir.
57593         Suggested by Simon Josefsson <jas@extundo.com>.
57594
57595 2005-09-20  Bruno Haible  <bruno@clisp.org>
57596
57597         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57598         func_modules_to_filelist, func_import, func_create_testdir): Make all
57599         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57600         change when gnulib-tool is invoked in a different locale.
57601
57602 2005-09-19  Simon Josefsson  <jas@extundo.com>
57603
57604         * m4/socklen.m4: Fix typo.
57605
57606 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57607
57608         Use a consistent style for including <config.h>.
57609         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57610         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57611         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57612         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57613         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57614         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57615         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57616         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57617         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57618         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57619         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57620         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57621         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57622         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57623         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57624         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57625         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57626         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57627         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57628         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57629         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57630         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57631         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57632         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57633         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57634         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57635         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57636         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57637         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57638         lib/xstrtoumax.c, lib/yesno.c:
57639         Standardize inclusion of config.h.
57640         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57641         lib/inttostr.h:  Removed inclusion of config.h from header files.
57642         * lib/inttostr.c:  Adjusted in-tree users.
57643         * lib/timespec.h: Remove superfluous warning to include config.h.
57644         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57645         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57646         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57647         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57648         config.h with HAVE_CONFIG_H.
57649
57650 2005-09-19  Jim Meyering  <jim@meyering.net>
57651
57652         * modules/pathmax (License): Change to LGPL.
57653
57654 2005-09-19  Derek Price  <derek@ximbiot.com>
57655
57656         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57657
57658 2005-09-19  Bruno Haible  <bruno@clisp.org>
57659
57660         * gnulib-tool (import): Provide default for --tests-base.
57661
57662 2005-09-19  Bruno Haible  <bruno@clisp.org>
57663
57664         * doc/quote.texi: New file, extracted from gnulib.texi.
57665         * doc/ctime.texi: New file, extracted from gnulib.texi.
57666         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57667         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57668         * doc/gnulib.texi: Include them.
57669
57670 2005-09-18  Bruno Haible  <bruno@clisp.org>
57671
57672         Portability fix.
57673         * gnulib-tool (func_readlink): New function.
57674         (func_ln_if_changed): Use it.
57675
57676 2005-09-18  Bruno Haible  <bruno@clisp.org>
57677
57678         * gnulib-tool: Support --with-tests also with --import.
57679         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57680         (func_import): Use variables $testsbase and $inctests. Emit a
57681         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57682         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57683         SUBDIRS += $testsdir.
57684         (func_create_testdir): Update.
57685
57686 2005-09-18  Bruno Haible  <bruno@clisp.org>
57687
57688         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57689         instead of $dry_run.
57690         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57691         (func_ln_if_changed): Don't handle dry-run here.
57692         (func_import): In dry-run mode, detect more precisely which actions
57693         would be performed, and don't use "...ing" verbs.
57694
57695 2005-09-18  Bruno Haible  <bruno@clisp.org>
57696
57697         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57698         (func_import): Use join on two temporary files instead of three nested
57699         loops, in order to determine which files are new or old.
57700
57701 2005-09-18  Bruno Haible  <bruno@clisp.org>
57702
57703         * gnulib-tool (func_import): Comment out code that spits out the
57704         new files with --dry-run.
57705
57706 2005-09-18  Bruno Haible  <bruno@clisp.org>
57707
57708         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57709
57710 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57711
57712         * lib/stat-time.h: New file.
57713         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57714         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57715         in a different way.
57716         (timespec_cmp): New function.
57717         * lib/utimecmp.c: Include stat-time.h.
57718         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57719         members exist, not on the obsolescent ST_MTIM_NSEC.
57720         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57721
57722 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57723
57724         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57725
57726 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57727
57728         * MODULES.html.sh (File system functions): Add stat-time.
57729         * modules/stat-time: New file.
57730         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57731         is now done in a different way, by the stat-time module.
57732         * modules/utimecmp (Depends-on): Add stat-time.
57733
57734 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57735
57736         * m4/st_mtim.m4: Remove.  Superseded by...
57737         * m4/stat-time.m4: New file.
57738         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57739         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57740
57741 2005-09-15  Derek Price  <derek@ximbiot.com>
57742
57743         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57744
57745 2005-09-15  Derek Price  <derek@ximbiot.com>
57746
57747         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57748         * lib/regex_internal.c: Ditto, using this...
57749         (__GNUC_PREREQ): ...new macro.
57750         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57751         using...
57752         (__GNUC_PREREQ): ...this new macro.
57753
57754         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57755
57756 2005-09-15  Derek Price  <derek@ximbiot.com>
57757             Paul Eggert  <eggert@cs.ucla.edu>
57758
57759         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57760         changes, consolidating in...
57761         * lib/regex_internal.h: ...this file.
57762
57763 2005-09-13  Jim Meyering  <jim@meyering.net>
57764
57765         * lib/canon-host.c: Filter through gnu indent and reword comments
57766         slightly.
57767         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57768
57769 2005-09-13  Derek Price  <derek@ximbiot.com>
57770
57771         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57772         failure.
57773         Reported by Jim Meyering  <jim@meyering.net>.
57774
57775 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57776
57777         * lib/base64.c: Typo.
57778         (base64_encode): Put b64str in initialized data section.
57779
57780 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57781
57782         Merge glibc and coreutils changes into gnulib, plus a few
57783         extra fixes.
57784         * lib/md5.c: Use #error rather than a string.
57785         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57786         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57787         (__attribute__): Define to empty for non recent-GCC.
57788         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57789         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57790         Renamed from their non-__ counterparts, with new macros replacing
57791         them if not _LIBC.  Add __THROW attribute.
57792         (rol): Remove.
57793         (struct md5_ctx): Align buffer if using GCC.
57794         * lib/sha1.h (struct sha1_ctx): Likewise.
57795         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57796         The old name was backwards.
57797         (NOTSWAP): Remove; not used.
57798         (rol): New macro, moved here from md5.h.
57799         (sha1_process_block): Remove a FIXME that doesn't make sense.
57800
57801 2005-09-12  Derek Price  <derek@ximbiot.com>
57802
57803         Return usable errors from canon-host.
57804         * lib/canon-host.h: New file.
57805         * lib/canon-host.c (canon_host): Wrap...
57806         (canon_host_r): ...this new function, which now relies exclusively on
57807         getaddrinfo.
57808         (ch_strerror): New function.
57809         (last_cherror): New global.
57810         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57811         interface.
57812         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57813         void *.
57814         (freeaddrinfo): Free ai->ai_canonname when set.
57815
57816 2005-09-12  Derek Price  <derek@ximbiot.com>
57817
57818         Make canon-host require getaddrinfo.
57819         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57820         AC_LIBSOURCE canon-host.h.  Call...
57821         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57822         gl_GETADDRINFO.
57823         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57824
57825 2005-09-12  Derek Price  <derek@ximbiot.com>
57826
57827         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57828         LGPL.
57829         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57830
57831 2005-09-12  Derek Price  <derek@ximbiot.com>
57832
57833         * lib/gai_strerror.c: Include config.h when available.  Include
57834         getaddrinfo.h before other headers to test interface.
57835         Reported by Larry Jones <lawrence.jones@ugs.com>.
57836
57837 2005-09-12  Derek Price  <derek@ximbiot.com>
57838             Paul Eggert  <eggert@cs.ucla.edu>
57839
57840         * modules/glob (Files): Add glob-libc.h.
57841
57842 2005-09-12  Derek Price  <derek@ximbiot.com>
57843             Paul Eggert  <eggert@cs.ucla.edu>
57844
57845         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57846         glob_.h, glob-libc.h.
57847         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57848
57849 2005-09-12  Derek Price  <derek@ximbiot.com>
57850             Paul Eggert  <eggert@cs.ucla.edu>
57851
57852         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57853         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57854         protecting things that should be done only in gnulib contexts.
57855         * lib/glob_.h: New file, containing only the glob things needed for
57856         gnulib.
57857         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57858         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57859         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57860         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57861         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57862         and to respect the namespace rules better.
57863
57864 2005-09-08  Simon Josefsson  <jas@extundo.com>
57865
57866         * modules/socklen: New file.
57867
57868 2005-09-08  Simon Josefsson  <jas@extundo.com>
57869
57870         * m4/socklen.m4: New file.
57871
57872 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         * modules/utimens (Files): Add m4/utimbuf.m4, since
57875         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57876         Reported by Sergey Poznyakoff.
57877
57878 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57879
57880         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57881         definitions, since that's the preferred style in glibc.
57882         Fix a minor spacing issue, and update copyright notice to match
57883         glibc's.
57884
57885 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57886
57887         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57888
57889 2005-09-06  Simon Josefsson  <jas@extundo.com>
57890
57891         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57892         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57893
57894 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57895
57896         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57897         warning.
57898
57899 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57900
57901         * config/srclist.txt: Add glibc bug 1302.
57902
57903 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57904
57905         Change bitset word type from unsigned int to unsigned long int,
57906         as this has better performance on typical 64-bit hosts.
57907         Port bitset code to hosts with unusual word sizes.
57908         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57909         (build_collating_symbol):
57910         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57911         argument is a bitset.  This is merely a style issue, but it makes
57912         it clearer that an entire array is expected.
57913         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57914         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57915         Port to the case where bitset_word is not the same as unsigned int.
57916         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57917         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57918         Likewise.
57919         * lib/regexec.c (check_dst_limits_calc_pos_1,
57920         check_subexp_matching_top):
57921         (build_trtable, group_nodes_into_DFAstates):
57922         Likewise.
57923         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57924         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57925         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57926         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57927         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57928         * lib/regcomp.c (optimize_subexps, lower_subexp):
57929         Work even if bitset_word has holes in its bitwise representation.
57930         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57931         * lib/regexec.c (check_dst_limits_calc_pos_1,
57932         check_subexp_matching_top):
57933         Likewise.
57934         * lib/regex_internal.c (re_string_reconstruct):
57935         Don't assume UCHAR_MAX == 255.
57936         * lib/regex_internal.h (bitset_set_all): Likewise.
57937         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57938         All uses changed.
57939         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57940         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57941         All uses changed.
57942         (BITSET_WORD_MAX): New macro.
57943         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57944         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57945         (bitset_empty, bitset_copy):
57946         Prefer sizeof (bitset) to multiplying it out ourselves.
57947         (bitset_not_merge): Remove; unused.
57948         (bitset_contain): Return bool, not unsigned int with one bit on.
57949         All callers changed.
57950         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57951         alignment than re_node_set; do this by defining a new internal
57952         type struct dests_alloc and using it to allocate memory.
57953
57954 2005-09-05  Bruno Haible  <bruno@clisp.org>
57955
57956         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57957         links.
57958
57959 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57960
57961         * modules/size_max (Makefile.am): Add size_max.h
57962
57963 2005-09-04  Derek Price  <derek@ximbiot.com>
57964
57965         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57966
57967 2005-09-03  Simon Josefsson  <jas@extundo.com>
57968
57969         * gnulib-tool: Fix typo.
57970
57971 2005-09-03  Simon Josefsson  <jas@extundo.com>
57972
57973         * config/srclist.txt: Add glibc bug 1293.
57974
57975 2005-09-03  Derek Price  <derek@ximbiot.com>
57976
57977         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
57978         From Larry Jones <lawrence.jones@ugs.com>.
57979
57980 2005-09-02  Simon Josefsson  <jas@extundo.com>
57981
57982         * modules/socklen: New file.
57983
57984 2005-09-02  Simon Josefsson  <jas@extundo.com>
57985
57986         * modules/havelib: New module.
57987
57988         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57989         Use havelib.
57990
57991 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57992
57993         Check for arithmetic overflow when calculating sizes, to prevent
57994         some buffer-overflow issues.  These patches are conservative, in the
57995         sense that when I couldn't determine whether an overflow was possible,
57996         I inserted a run-time check.
57997         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57998         macros.
57999         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
58000         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
58001         (re_xnrealloc, re_x2nrealloc): New inline functions.
58002         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
58003         parse_bracket_exp):
58004         (build_equiv_class, build_charclass): Check for arithmetic overflow
58005         in size expression calculations.
58006         * lib/regex_internal.c (re_string_realloc_buffers):
58007         (build_wcs_upper_buffer, re_node_set_add_intersect):
58008         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
58009         (re_dfa_add_node, register_state): Likewise.
58010         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
58011         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
58012         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
58013         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
58014
58015 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58018         m4/ulonglong.m4.  Problem reported by Martin Lambers.
58019
58020 2005-09-02  Bruno Haible  <bruno@clisp.org>
58021
58022         Support for lib vs. lib64 distinction on biarch platforms.
58023         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
58024         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
58025         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
58026
58027 2005-09-02  Bruno Haible  <bruno@clisp.org>
58028
58029         * gnulib-tool (import): In the other first-use case, provide defaults
58030         as well.
58031
58032 2005-09-02  Bruno Haible  <bruno@clisp.org>
58033
58034         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
58035         patches not yet found in the latest gettext release.
58036
58037 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58038
58039         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
58040         to avoid a collision with bits/local_lim.h in glibc.
58041         All uses changed.  Problem reported by Dmitry V. Levin in
58042         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
58043
58044         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
58045         bugs in int versus size_t comparisons.
58046         (re_string_context_at): Fix bug where the code assumed that
58047         Idx is signed.
58048
58049         Use bool where appropriate.
58050         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
58051         All callers changed.
58052         (calc_eclosure_iter): Likewise, for ROOT arg.
58053         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
58054         (build_charclass_op): Likewise, for NON_MATCH arg.
58055         * lib/regex_internal.c (re_string_allocate, re_string_construct):
58056         (re_string_construct_common): Likewise, for ICASE arg.
58057         * lib/regexec.c (re_search_2_stub, re_search_stub):
58058         Likewise, for RET_LEN arg.
58059         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
58060         (set_regs): Likewise, for FL_BACKTRACK arg.
58061         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
58062         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
58063         (calc_eclosure_iter, parse_bracket_exp):
58064         Use bool for internal variables that are booleans.
58065         * lib/regexec.c (re_search_internal, check_matching,
58066         proceed_next_node):
58067         (set_regs, build_sifted_states, sift_states_bkref):
58068         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
58069         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58070         (find_collation_sequence_value):
58071         Likewise.
58072         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
58073         (re_node_set_compare):
58074         Return bool, not int. All callers changed.
58075         * lib/regexec.c (check_halt_node_context, check_dst_limits):
58076         (build_trtable, check_node_accept): Likewise.
58077         * lib/regex_internal.h: Include stdbool.h.
58078
58079         Fix bugs uncovered when converting to bool.
58080         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58081         failure instead of charging ahead blindly.
58082         * lib/regex_internal.c (register_state): Likewise.
58083         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58084         for freeing internal storage.
58085         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58086         bitset pieces used as boolean, to avoid undefined behavior
58087         on hosts that do int overflow checking.
58088
58089 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58090
58091         * config/srclist.txt: Add glibc bugs 1285-1287.
58092
58093 2005-09-01  Jim Meyering  <jim@meyering.net>
58094
58095         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58096         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58097         Require gl_STAT_MACROS, too.
58098
58099 2005-09-01  Bruno Haible  <bruno@clisp.org>
58100
58101         * gnulib-tool (import): In the first-use case, provide defaults.
58102
58103 2005-09-01  Bruno Haible  <bruno@clisp.org>
58104
58105         * gnulib-tool (func_import): Remove the .tmp files.
58106
58107 2005-09-01  Bruno Haible  <bruno@clisp.org>
58108
58109         * gnulib-tool (func_import): Fix handling of symbolic links.
58110
58111 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58112
58113         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58114         old glibc regex code mishandles strings longer than 2**31 bytes.
58115         This patch fixes this when the regex code is used in gnulib
58116         (i.e., outside glibc).
58117
58118         This patch should not affect the use of the regex code inside
58119         glibc.  No doubt this problem also needs to be handled for glibc
58120         as well, but the result will be an incompatible change to the
58121         glibc ABI, and the old ABI will have to be supported too.  That
58122         can be the the subject for another patch.
58123
58124         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58125         governing whether the rest of this patch is active.  By default,
58126         the macro is disabled and the patch has no effect.
58127         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58128         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58129         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58130         (re_match_2, re_set_registers): Use the new types.
58131         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58132         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58133         New macros.
58134         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58135         (re_string_context_at, bin_tree_t, re_dfastate_t):
58136         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58137         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58138         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58139         (re_string_char_size_at, re_string_wchar_at):
58140         (re_string_elem_size_at):
58141         Use the new types and macros to port to 64-bit hosts.
58142         Use unsigned types for internal values, so that the code
58143         mostly works even for arrays larger than SSIZE_MAX.
58144         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58145         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58146         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58147         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58148         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58149         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58150         (calc_inveclosure, parse_dup_op, build_range_exp):
58151         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58152         (fetch_number, create_token_tree, mark_opt_subexp):
58153         Likewise.
58154         * lib/regex_internal.c (re_string_construct_common,
58155         create_ci_newstate):
58156         (create_cd_newstate, re_string_allocate, re_string_construct):
58157         (re_string_realloc_buffers, build_wcs_upper_buffer):
58158         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58159         (re_string_reconstruct, re_string_peek_byte_case):
58160         (re_string_fetch_byte_case, re_string_context_at):
58161         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58162         (re_node_set_init_copy, re_node_set_add_intersect):
58163         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58164         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58165         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58166         (re_acquire_state, re_acquire_state_context, register_state):
58167         Likewise.
58168         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58169         search_cur_bkref_entry):
58170         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58171         (re_search_internal, re_search_2_stub, re_search_stub)
58172         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58173         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58174         (update_cur_sifted_state, check_dst_limits):
58175         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58176         (check_subexp_limits, sift_states_bkref, merge_state_array):
58177         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58178         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58179         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58180         (expand_bkref_cache, check_node_accept_bytes):
58181         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58182         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58183         (acquire_init_state_context, check_halt_node_context):
58184         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58185         (sift_states_backward, clean_state_log_if_needed):
58186         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58187         (find_recover_state, transit_state_sb, transit_state_mb):
58188         (transit_state_bkref, build_trtable, match_ctx_clean):
58189         Likewise.
58190         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58191         to work around an assumption that REG_MISSING is negative.
58192
58193         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58194         (seek_collating_symbol_entry) [defined _LIBC]:
58195         (lookup_collation_sequence_value) [defined _LIBC]:
58196         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58197         Use prototypes rather than old-style function definitions.
58198         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58199         (transit_state_sb) [0]:
58200         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58201
58202         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58203         rm_eo.
58204
58205         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58206         (optimize_subexps, lower_subexp):
58207         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58208         since the signed shift might overflow.  Use 1u<<31 instead.
58209         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58210         Likewise.
58211         * lib/regexec.c (check_dst_limits_calc_pos_1,
58212         check_subexp_matching_top): Likewise.
58213
58214         * lib/regcomp.c (optimize_subexps, lower_subexp):
58215         Use CHAR_BIT rather than 8, for clarity.
58216         * lib/regexec.c (check_dst_limits_calc_pos_1):
58217         (check_subexp_matching_top): Likewise.
58218         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58219         have to worry about portability issues when shifting it left.
58220         Remove no-longer-needed test for table_size > 0.
58221         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58222         in a word, as the resulting behavior is undefined.
58223         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58224         in one case, a <= should have been an <, and in another case the
58225         whole test was missing.
58226         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58227         the standard name CHAR_BIT.
58228         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58229         this is not true on one's complement and signed-magnitude hosts.
58230
58231         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58232         next_last_offset.
58233         (struct re_dfa_t): Remove unused member states_alloc.
58234         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58235
58236 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58237
58238         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58239         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58240         and large-file glibc and in 32-bit large-file Solaris.
58241
58242 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58245         lengths fit in regoff_t; this isn't true if regoff_t is the same
58246         width as size_t.
58247         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58248         (= START + RANGE) instead of RANGE.  This avoids overflow
58249         problems when regoff_t is the same width as size_t.
58250         All callers changed.
58251         (re_search_2_stub): Check for overflow when adding the
58252         sizes of the two strings.
58253         (re_search_stub): Check for overflow when adding START
58254         to RANGE; if it occurs, substitute the extreme value.
58255
58256 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58259
58260 2005-08-31  Jim Meyering  <jim@meyering.net>
58261
58262         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58263         a pointer-to-const.
58264         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58265         (register_state): Likewise.
58266         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58267         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58268         (group_nodes_into_DFAstates): Likewise.
58269
58270 2005-08-31  Jim Meyering  <jim@meyering.net>
58271
58272         * check-module: Add a FIXME comment.
58273
58274 2005-08-31  Eric Blake  <ebb9@byu.net>
58275
58276         * modules/unistd-safer (Files): Add unistd--.h.
58277         * modules/stdio-safer (Files): Add stdio--.h.
58278
58279 2005-08-31  Derek Price  <derek@ximbiot.com>
58280
58281         * lib/getdelim.c (getdelim): Return EOF on EOF.
58282         Reported by Larry Jones <lawrence.jones@ugs.com>.
58283
58284 2005-08-31  Bruno Haible  <bruno@clisp.org>
58285
58286         Avoid unnecessary diffs in the generated lib/Makefile.am.
58287         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58288         the generated files.
58289         (func_import): Don't set cmd.
58290
58291 2005-08-31  Bruno Haible  <bruno@clisp.org>
58292
58293         * lib/strstr.c: Include <stddef.h>, for NULL.
58294         * lib/strcasestr.c: Likewise.
58295         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58296
58297 2005-08-31  Bruno Haible  <bruno@clisp.org>
58298
58299         * gnulib-tool: New option --macro-prefix.
58300         (func_import): Use macro_prefix.
58301         (import): Handle option --macro-prefix.
58302
58303 2005-08-31  Bruno Haible  <bruno@clisp.org>
58304
58305         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58306         Also use new variables cached_lgpl, cached_libtool.
58307
58308 2005-08-31  Bruno Haible  <bruno@clisp.org>
58309
58310         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58311         always instantiating them.
58312
58313 2005-08-31  Bruno Haible  <bruno@clisp.org>
58314
58315         * gnulib-tool (func_import): Read the previous cached settings
58316         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58317         earlier added by gnulib but are now dropped. Warn when a gnulib file
58318         overwrites a non-gnulib file.
58319
58320 2005-08-31  Bruno Haible  <bruno@clisp.org>
58321
58322         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58323         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58324         projects that don't keep autogenerated files in CVS. Put into
58325         actioncmd only the specified modules, not the transitive closure.
58326
58327 2005-08-31  Bruno Haible  <bruno@clisp.org>
58328
58329         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58330         Create directories that shall be filled.
58331         (import): Don't look for gl_* macros in configure.ac. Recurse across
58332         all directories containing a gnulib-cache.m4 files, if meaningful.
58333
58334 2005-08-31  Bruno Haible  <bruno@clisp.org>
58335
58336         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58337         (import): Set seen_libtool when we see gl_LIBTOOL.
58338
58339 2005-08-31  Bruno Haible  <bruno@clisp.org>
58340
58341         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58342         declaration macro definitions from generated gnulib.m4.
58343
58344 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58345
58346         * lib/iconvme.h: Add prototype for iconv_alloc.
58347
58348 2005-08-29  Simon Josefsson  <jas@extundo.com>
58349
58350         * lib/iconvme.c: Fix errno.
58351
58352 2005-08-29  Bruno Haible  <bruno@clisp.org>
58353
58354         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58355         that it works when the directory contains spaces.
58356
58357 2005-08-29  Bruno Haible  <bruno@clisp.org>
58358
58359         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58360
58361 2005-08-29  Bruno Haible  <bruno@clisp.org>
58362
58363         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58364         Emit more advice.
58365
58366 2005-08-29  Bruno Haible  <bruno@clisp.org>
58367         and Stepan Kasal  <kasal@ucw.cz>
58368
58369         * check-module: If more parameters are given, check each of them
58370         separately; add more exceptions, as noted by Jim Meyering.
58371         (check_module): New procedure.
58372         (%exempt_header): Now contains all exceptions.
58373
58374 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58375
58376         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58377
58378 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58379
58380         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58381
58382 2005-08-28  Bruno Haible  <bruno@clisp.org>
58383
58384         * m4/gnulib-tool.m4: New file.
58385
58386 2005-08-27  Jim Meyering  <jim@meyering.net>
58387
58388         * modules/unistd-safer (Files): Add pipe-safer.c.
58389         * modules/fcntl-safer (Files): Add creat-safer.c.
58390
58391 2005-08-27  Jim Meyering  <jim@meyering.net>
58392
58393         * m4/stdlib-safer.m4: New file.  From coreutils.
58394         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58395         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58396         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58397         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58398         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58399
58400 2005-08-27  Jim Meyering  <jim@meyering.net>
58401
58402         * lib/fopen-safer.c: Merge minor changes from coreutils.
58403         * lib/dup-safer.c: Likewise.
58404         * lib/fd-safer.c: Likewise.
58405
58406         Merge from coreutils.
58407         * lib/stdio--.h: New file.
58408         * lib/stdlib--.h: New file.
58409         * lib/mkstemp-safer.c: New file.
58410
58411         GNU tar needs these.
58412         * lib/pipe-safer.c: New file.
58413         * lib/creat-safer.c: New file.
58414         * lib/fcntl--.h (creat): Define to creat_safer.
58415         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58416         * lib/unistd--.h (pipe): Define to pipe_safer.
58417         * lib/unistd-safer.h: Declare pipe_safer.
58418
58419 2005-08-26  Simon Josefsson  <jas@extundo.com>
58420
58421         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58422         Haible <bruno@clisp.org>.
58423
58424 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58425
58426         * lib/regex_internal.h: Remove all references to
58427         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58428         or better.
58429         (bitset_not, bitset_merge, bitset_not_merge):
58430         (bitset_mask, re_string_allocate, re_string_construct):
58431         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58432         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58433         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58434         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58435         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58436         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58437         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58438         (re_acquire_state_context):
58439         Remove unnecessary forward decls.
58440         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58441         Put __attribute at function definition,
58442         now that the function decl has been removed.
58443         * lib/regex_internal.c (re_string_peek_byte_case):
58444         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58445         Likewise.
58446
58447 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58448
58449         * m4/regex.m4: Add AC_PREREQ(2.50).
58450         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58451
58452 2005-08-25  Simon Josefsson  <jas@extundo.com>
58453
58454         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58455         __fsetlocking.
58456
58457 2005-08-25  Simon Josefsson  <jas@extundo.com>
58458
58459         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58460         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58461         GLIBC specific code.
58462
58463 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         Make regex safe for g++.  This fixes one real bug (an "err"
58466         that should have been "*err").  g++ problem reported by
58467         Sam Steingold.
58468         * lib/regex_internal.h (re_calloc): New macro, consistent with
58469         re_malloc etc.  All callers of calloc changed to use re_calloc.
58470         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58471         not int.  All callers changed.
58472         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58473         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58474         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58475         (find_recover_state): Change "err" to "*err"; this fixes what
58476         appears to be a real bug.
58477         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58478         versus int.
58479
58480 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58481
58482         * modules/regex (Depends-on): Add malloc, since the code
58483         assumes that !malloc(0) means failure.
58484
58485 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58488
58489         alloca modernization/simplification for regex.
58490         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58491         needs to be at the start of the file, and can be moved into
58492         regex_internal.h and simplified.
58493         * lib/regex_internal.h: Include <alloca.h>.
58494         (__libc_use_alloca) [!defined _LIBC]: New macro.
58495         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58496         now works outside glibc.
58497
58498 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58499
58500         * config/srclist.txt: Add glibc bugs 1241, 1245.
58501
58502 2005-08-25  Jim Meyering  <jim@meyering.net>
58503
58504         * lib/open-safer.c: Include <config.h>.
58505         Otherwise, we'd lose LARGEFILE support in any file using
58506         e.g. "fcntl--.h"
58507
58508 2005-08-25  Bruno Haible  <bruno@clisp.org>
58509
58510         * m4/minmax.m4: Require autoconf 2.52.
58511         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58512         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58513         alternatives of translit over the alphabet.
58514         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58515
58516 2005-08-24  Simon Josefsson  <jas@extundo.com>
58517
58518         * tests/test-getpass.c: New file.
58519
58520 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58521
58522         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58523         for GNU regex features.
58524
58525 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58528         * lib/regex.h (regerror): Likewise.
58529
58530         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58531         requires this.  (The code never needed it.)
58532
58533         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58534         All uses of recently-renamed identifiers changed to use the new,
58535         POSIX-compliant names.  The code will build and run just fine
58536         without these changes, but it's better to eat our own dog food
58537         and use the standard-conforming names.
58538
58539         * lib/regex.h: Fix a multitude of POSIX name space violations.
58540         These changes have an effect only for programs that define
58541         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58542         do not change anything for programs compiled in the normal way.
58543         Also, there is no effect on the ABI.
58544
58545         (_REGEX_SOURCE): New macro.
58546         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58547         defined and _GNU_SOURCE is not; this fixes a name space violation.
58548
58549         Rename the following macros to obey POSIX requirements.
58550         The old names are still visible as macros if _REGEX_SOURCE is defined.
58551         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58552         RE_BACKSLASH_ESCAPE_IN_LISTS.
58553         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58554         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58555         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58556         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58557         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58558         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58559         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58560         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58561         (REG_INTERVALS): renamed from RE_INTERVALS.
58562         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58563         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58564         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58565         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58566         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58567         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58568         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58569         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58570         RE_UNMATCHED_RIGHT_PAREN_ORD.
58571         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58572         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58573         (REG_DEBUG): renamed from RE_DEBUG.
58574         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58575         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58576         unusual, since we can't clash with the POSIX REG_ICASE.
58577         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58578         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58579         (REG_NO_SUB): renamed from RE_NO_SUB.
58580         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58581         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58582         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58583         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58584         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58585         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58586         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58587         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58588         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58589         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58590         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58591         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58592         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58593         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58594         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58595         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58596         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58597         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58598         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58599         (REG_FIXED): Renamed from REGS_FIXED.
58600         (REG_NREGS): Renamed from RE_NREGS.
58601
58602         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58603         of other REG_* macros, since POSIX says the user is allowed to
58604         #undef these macros selectively.
58605
58606         (reg_errcode_t): Update comment stating what other tables need
58607         to be consistent.
58608
58609         Rename the following enum values to obey POSIX requirements.
58610         The old names are still visible as macros.
58611         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58612         is not defined, since GNU is supposed to be a superset of POSIX as
58613         much as possible, and since we want reg_errcode_t to be a signed
58614         type for implementation consistency.
58615         (_REG_NOERROR): Renamed from REG_NOERROR.
58616         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58617         (_REG_BADPAT): Renamed from REG_BADPAT.
58618         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58619         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58620         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58621         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58622         (_REG_EBRACK): Renamed from REG_EBRACK.
58623         (_REG_EPAREN): Renamed from REG_EPAREN.
58624         (_REG_EBRACE): Renamed from REG_EBRACE.
58625         (_REG_BADBR): Renamed from REG_BADBR.
58626         (_REG_ERANGE): Renamed from REG_ERANGE.
58627         (_REG_ESPACE): Renamed from REG_ESPACE.
58628         (_REG_BADRPT): Renamed from REG_BADRPT.
58629         (_REG_EEND): Renamed from REG_EEND.
58630         (_REG_ESIZE): Renamed from REG_ESIZE.
58631         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58632         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58633         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58634         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58635         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58636
58637         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58638         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58639         changed.  But support the old name if the new one is not defined
58640         and if _REGEX_SOURCE.
58641
58642         Change the following member names in struct re_pattern_buffer.
58643         The old names are still supported if !_REGEX_SOURCE.
58644         The new names are always supported, regardless of _REGEX_SOURCE.
58645         (re_buffer): Renamed from buffer.
58646         (re_allocated): Renamed from allocated.
58647         (re_used): Renamed from used.
58648         (re_syntax): Renamed from syntax.
58649         (re_fastmap): Renamed from fastmap.
58650         (re_translate): Renamed from translate.
58651         (re_can_be_null): Renamed from can_be_null.
58652         (re_regs_allocated): Renamed from regs_allocated.
58653         (re_fastmap_accurate): Renamed from fastmap_accurate.
58654         (re_no_sub): Renamed from no_sub.
58655         (re_not_bol): Renamed from not_bol.
58656         (re_not_eol): Renamed from not_eol.
58657         (re_newline_anchor): Renamed from newline_anchor.
58658
58659         Change the following member names in struct re_registers.
58660         The old names are still supported if !_REGEX_SOURCE.
58661         The new names are always supported, regardless of _REGEX_SOURCE.
58662         (rm_num_regs): Renamed from num_regs.
58663         (rm_start): Renamed from start.
58664         (rm_end): Renamed from end.
58665
58666         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58667         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58668         Prepend __ to parameter names.
58669
58670         Undo yesterday's changes.
58671
58672 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58673
58674         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58675         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58676         lib/regex.c.
58677
58678 2005-08-24  Jim Meyering  <jim@meyering.net>
58679
58680         Sync from coreutils.
58681         * m4/fcntl-safer.m4: New file.
58682
58683         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58684         and object files for this module.
58685
58686 2005-08-24  Jim Meyering  <jim@meyering.net>
58687
58688         Sync from coreutils.
58689         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58690
58691 2005-08-24  Jim Meyering  <jim@meyering.net>
58692
58693         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58694         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58695
58696 2005-08-24  Jim Meyering  <jim@meyering.net>
58697
58698         * modules/fcntl-safer: New module.
58699         * modules/fts (Depends-on): Add fcntl-safer.
58700         * MODULES.html.sh (File descriptor based Input/Output):
58701         Add fcntl-safer.
58702
58703 2005-08-24  Bruno Haible  <bruno@clisp.org>
58704
58705         Support for unit test modules.
58706         * modules/README: Mention tests modules.
58707         * modules/TEMPLATE-TESTS: New file.
58708         * gnulib-tool: New options --extract-tests-module, --with-tests and
58709         --tests-base (unused for the moment).
58710         (testsbase, inctests): New variables.
58711         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58712         (func_verify_module): Exclude TEMPLATE-TESTS.
58713         (func_verify_nontests_module, func_verify_tests_module): New functions.
58714         (func_get_dependencies): Add implicit dependency for tests modules.
58715         (func_get_tests_module): New function.
58716         (func_modules_transitive_closure): When --with-tests was specified,
58717         include the unit tests as well, unless explicitly avoided.
58718         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58719         (func_emit_tests_Makefile_am): New function.
58720         (func_create_testdir): When --with-tests was specified, emit a
58721         tests/ directory.
58722         * MODULES.html.sh (Future developments): Update.
58723
58724 2005-08-24  Bruno Haible  <bruno@clisp.org>
58725
58726         * modules/tls-tests: New file.
58727         * tests/test-tls.c: New file, from GNU gettext.
58728
58729 2005-08-24  Bruno Haible  <bruno@clisp.org>
58730
58731         * modules/lock-tests: New file.
58732         * tests/test-lock.c: New file, from GNU gettext.
58733
58734 2005-08-24  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/lock.h: Add multiple inclusion guard.
58737         * lib/tls.h: Add multiple inclusion guard.
58738
58739 2005-08-24  Bruno Haible  <bruno@clisp.org>
58740
58741         * gnulib-tool: Add support for the --aux-dir option to
58742         --create-testdir, --create-megatestdir, --test, --megatest.
58743         (func_create_testdir, func_create_megatestdir): Optionally emit a
58744         AC_CONFIG_AUX_DIR directive.
58745         (create-testdir, create-megatestdir, test, megatest): Provide a
58746         default value for $auxdir.
58747
58748 2005-08-24  Bruno Haible  <bruno@clisp.org>
58749
58750         * gnulib-tool (import): Use compound statement instead of subshell
58751         where possible.
58752
58753 2005-08-24  Bruno Haible  <bruno@clisp.org>
58754
58755         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58756
58757 2005-08-24  Bruno Haible  <bruno@clisp.org>
58758
58759         * gnulib-tool (func_version): Update.
58760
58761 2005-08-24  Bruno Haible  <bruno@clisp.org>
58762
58763         * gnulib-tool (func_import, func_create_testdir,
58764         func_create_megatestdir): Quote all autoconf macro arguments.
58765
58766 2005-08-24  Bruno Haible  <bruno@clisp.org>
58767
58768         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58769         option --force, because --force causes the aclocal.m4 of each
58770         subdirectory to be newer than the corresponding config.h.in.
58771
58772 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58773
58774         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58775         All contents moved to gl_REGEX.
58776         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58777         assume that it does.
58778
58779 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * lib/regex.h (REG_NOSYS)
58782         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58783         Define, since POSIX requires it as of 2001.
58784         (_REG_ENOSYS)
58785         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58786         New private symbol, used to keep the enum signed in all cases.
58787         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58788         Youngman in
58789         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58790
58791         * lib/regex_internal.c (re_string_skip_chars, register_state):
58792         (calc_state_hash):
58793         Remove forward decls; no longer needed now that we use prototypes.
58794         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58795         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58796         (clean_state_log_if_needed): Likewise.
58797
58798 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * config/srclist.txt: Add glibc bugs 1231-1233.
58801
58802 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58803
58804         Fix problems reported by Sam Steingold in
58805         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58806         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58807         assumed that reg_errcode_t is a signed type, which is not
58808         necessarily true if _XOPEN_SOURCE is not defined.
58809         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58810         since some compilers warn about it otherwise.
58811
58812 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58815         (init_word_char, create_initial_state, duplicate_node_closure):
58816         (fetch_token, peek_token_bracket, build_range_exp):
58817         (build_collating_symbol): Remove forward decls; no longer needed
58818         now that we use prototypes.
58819
58820         * lib/regcomp.c:
58821         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58822         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58823         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58824         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58825         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58826         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58827         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58828         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58829         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58830         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58831         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58832         (build_charclass, build_charclass_op, fetch_number, create_tree):
58833         (create_token_tree, mark_opt_subexp, duplicate_tree):
58834         Use prototypes rather than old-style definitions.
58835
58836         * lib/regex_internal.c:
58837         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58838         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58839         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58840         (re_string_reconstruct, re_string_peek_byte_case):
58841         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58842         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58843         (re_node_set_init_copy, re_node_set_add_intersect):
58844         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58845         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58846         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58847         (re_acquire_state, re_acquire_state_context, register_state):
58848         (create_ci_newstate, create_cd_newstate, free_state):
58849         Likewise.
58850         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58851         re_search_2):
58852         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58853         (re_search_internal, prune_impossible_nodes):
58854         (acquire_init_state_context, check_matching, static):
58855         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58856         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58857         (update_regs, sift_states_backward, build_sifted_states):
58858         (clean_state_log_if_needed, merge_state_array):
58859         (update_cur_sifted_state, add_epsilon_src_nodes):
58860         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58861         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58862         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58863         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58864         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58865         (check_arrival, check_arrival_add_next_nodes):
58866         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58867         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58868         (check_node_accept_bytes, check_node_accept, extend_buffers):
58869         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58870         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58871         (sift_ctx_init):
58872         Likewise.
58873
58874         * lib/regex_internal.h:
58875         (re_string_allocate, re_string_construct, re_string_reconstruct):
58876         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58877         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58878         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58879         (re_string_context_at, re_string_peek_byte_case):
58880         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58881         is defined, since we now use prototypes always.
58882
58883         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58884         C89 or better.  All uses removed.
58885
58886 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         * config/srclist.txt: Add glibc bugs 1220-1227.
58889
58890 2005-08-20  Jim Meyering  <jim@meyering.net>
58891
58892         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58893         of unused local, dfa.
58894
58895 2005-08-20  Bruno Haible  <bruno@clisp.org>
58896
58897         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58898
58899 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58900
58901         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58902         (re_node_set_insert_last, re_dfa_add_node):
58903         Rename local variables to avoid GCC shadowing warnings.
58904
58905 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58906
58907         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58908         [defined lint]: Suppress bogus uninitialized-variable warnings.
58909
58910         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58911         and let the caller return REG_ESPACE if out of space.  This
58912         removes an uninitialied-variable warning with GCC 4.0.1, and also
58913         avoids taking the address of a local variable.  All callers
58914         changed.
58915
58916 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58919         $LIBCSRC/posix/regexec.c.
58920         Add glibc bug 1217 for regcomp.c.
58921
58922 2005-08-19  Jim Meyering  <jim@meyering.net>
58923
58924         * lib/regexec.c (proceed_next_node): Redo local variables to
58925         avoid GCC shadowing warnings.
58926
58927 2005-08-18  Bruno Haible  <bruno@clisp.org>
58928
58929         * lib/strstr.c (strstr): Fix return value in multibyte case.
58930         * lib/strcasestr.c (strcasestr): Likewise.
58931
58932 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58933
58934         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58935
58936 2005-08-17  Jim Meyering  <jim@meyering.net>
58937
58938         Make the %s format (seconds since the epoch) work for a negative
58939         number and when used with a zero-padded field width, e.g. %015s.
58940
58941         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58942         label so that it precedes the code to set `digits'.  Otherwise,
58943         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58944         print `00-22'.  Now, it prints `-0022', as it should.
58945
58946 2005-08-17  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/strstr (Files): Add m4/mbrtowc.m4.
58949         (Depends-on): Add mbuiter.
58950
58951 2005-08-17  Bruno Haible  <bruno@clisp.org>
58952
58953         * modules/strcasestr: New file.
58954         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58955         strcasestr.
58956
58957 2005-08-17  Bruno Haible  <bruno@clisp.org>
58958
58959         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58960
58961 2005-08-17  Bruno Haible  <bruno@clisp.org>
58962
58963         * modules/mbuiter: New file.
58964         * MODULES.html.sh (Extended multibyte and wide character utilities):
58965         Add mbuiter.
58966
58967 2005-08-17  Bruno Haible  <bruno@clisp.org>
58968
58969         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58970         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58971
58972 2005-08-17  Bruno Haible  <bruno@clisp.org>
58973
58974         * m4/strcasestr.m4: New file.
58975
58976 2005-08-17  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
58979         * lib/strstr.c: Completely rewritten, with multibyte locale support.
58980
58981 2005-08-17  Bruno Haible  <bruno@clisp.org>
58982
58983         * lib/strcasestr.h: New file.
58984         * lib/strcasestr.c: New file.
58985
58986 2005-08-17  Bruno Haible  <bruno@clisp.org>
58987
58988         * lib/strcasecmp.c: Use mbuiter.h.
58989
58990 2005-08-17  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/mbuiter.h: New file.
58993
58994 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58997         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58998         and gl_GETOPT are both invoked via different paths (as happens
58999         with GNU tar CVS because it uses both argp and getopt), the former
59000         wins.
59001
59002 2005-08-16  Bruno Haible  <bruno@clisp.org>
59003
59004         * modules/tls: New file.
59005         * MODULES.html.sh (Multithreading): Add tls.
59006
59007 2005-08-16  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/strnlen1: New file.
59010         * MODULES.html.sh (String handling): Add strnlen1.
59011
59012 2005-08-16  Bruno Haible  <bruno@clisp.org>
59013
59014         * modules/strcase (Files): Add m4/mbrtowc.m4.
59015         (Depends-on): Add strnlen1, mbchar.
59016
59017 2005-08-16  Bruno Haible  <bruno@clisp.org>
59018
59019         * modules/mbiter: New file.
59020         * MODULES.html.sh (Extended multibyte and wide character utilities):
59021         Add mbiter.
59022
59023 2005-08-16  Bruno Haible  <bruno@clisp.org>
59024
59025         * modules/mbfile: New file.
59026         * MODULES.html.sh (Extended multibyte and wide character utilities):
59027         Add mbfile.
59028
59029 2005-08-16  Bruno Haible  <bruno@clisp.org>
59030
59031         * modules/mbchar: New file.
59032         * MODULES.html.sh (Extended multibyte and wide character utilities):
59033         New section.
59034
59035 2005-08-16  Bruno Haible  <bruno@clisp.org>
59036
59037         * m4/tls.m4: New file, from GNU gettext.
59038
59039 2005-08-16  Bruno Haible  <bruno@clisp.org>
59040
59041         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
59042         always.
59043         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
59044
59045 2005-08-16  Bruno Haible  <bruno@clisp.org>
59046
59047         * m4/mbiter.m4: New file.
59048
59049 2005-08-16  Bruno Haible  <bruno@clisp.org>
59050
59051         * m4/mbfile.m4: New file.
59052
59053 2005-08-16  Bruno Haible  <bruno@clisp.org>
59054
59055         * m4/mbchar.m4: New file.
59056
59057 2005-08-16  Bruno Haible  <bruno@clisp.org>
59058
59059         * lib/tls.h: New file, from GNU gettext.
59060         * lib/tls.c: New file, from GNU gettext.
59061
59062 2005-08-16  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/strnlen1.h: New file.
59065         * lib/strnlen1.c: New file.
59066
59067 2005-08-16  Bruno Haible  <bruno@clisp.org>
59068
59069         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
59070         (mbi_init): Update.
59071         (mbi_avail, mbi_advance): Let the iteration end before the terminating
59072         NUL byte, not after it.
59073
59074 2005-08-16  Bruno Haible  <bruno@clisp.org>
59075
59076         * lib/strcase.h (strcasecmp): Add note in comments.
59077         * lib/strncasecmp.c: Use code from strcasecmp.c.
59078         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59079         (strcasecmp): Work correctly in multibyte locales.
59080
59081 2005-08-16  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/mbiter.h: New file.
59084
59085 2005-08-16  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/mbfile.h: New file.
59088
59089 2005-08-16  Bruno Haible  <bruno@clisp.org>
59090
59091         * lib/mbchar.h: New file.
59092         * lib/mbchar.c: New file.
59093
59094 2005-08-16  Bruno Haible  <bruno@clisp.org>
59095
59096         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59097         the valid ones. Makes the comparison operations transitive:
59098         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59099         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59100
59101 2005-08-15  Simon Josefsson  <jas@extundo.com>
59102
59103         * modules/ssize_t (License): Change to 'unlimited'.
59104
59105         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59106
59107 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59110         Add comments for each pending glibc patch.
59111
59112 2005-08-15  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59115         __cplusplus is defined.
59116
59117 2005-08-14  Jim Meyering  <jim@meyering.net>
59118
59119         Sync from coreutils.
59120
59121         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59122         Use the hash-table-based cycle-detection code not just when
59123         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59124         Reported by James Youngman in
59125         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59126         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59127         FTS_TIGHT_CYCLE_CHECK.
59128         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59129         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59130         once again.
59131         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59132         * lib/fts.c (fd_safer): Remove decl.
59133         Include fcntl--.h rather than unistd-safer.h
59134         (fts_safe_changedir): Don't call fd_safer; no longer needed
59135         now that we include fcntl--.h.
59136
59137 2005-08-12  Simon Josefsson  <jas@extundo.com>
59138
59139         * modules/getndelim2: Use ssize_t module.
59140         * modules/getnline: Likewise.
59141         * modules/safe-read: Likewise.
59142         * modules/xreadlink: Likewise.
59143
59144         * modules/ssize_t: New file.
59145
59146 2005-08-12  Simon Josefsson  <jas@extundo.com>
59147
59148         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59149
59150 2005-08-12  Simon Josefsson  <jas@extundo.com>
59151
59152         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59153         ssize_t.
59154
59155 2005-08-12  Simon Josefsson  <jas@extundo.com>
59156
59157         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59158         readline, getdelim and check_version.
59159         (Support for systems lacking ISO C 99: Sizes of integer types):
59160         Add size_max.
59161
59162 2005-08-12  Bruno Haible  <bruno@clisp.org>
59163
59164         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59165
59166 2005-08-11  Simon Josefsson  <jas@extundo.com>
59167
59168         * modules/readline: New file.
59169
59170         * modules/strnlen (Files): Add strnlen.h.
59171
59172 2005-08-11  Simon Josefsson  <jas@extundo.com>
59173
59174         * m4/readline.m4: New file.
59175
59176 2005-08-11  Simon Josefsson  <jas@extundo.com>
59177
59178         * lib/readline.h, readline.c: New file.
59179
59180 2005-08-11  Simon Josefsson  <jas@extundo.com>
59181
59182         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59183         gl_AVOID.
59184
59185 2005-08-11  Bruno Haible  <bruno@clisp.org>
59186
59187         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59188
59189 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59190
59191         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59192
59193 2005-08-10  Simon Josefsson  <jas@extundo.com>
59194
59195         * tests/test-iconvme.c: New file.
59196
59197 2005-08-10  Simon Josefsson  <jas@extundo.com>
59198
59199         * m4/strnlen.m4: New file.
59200
59201         * m4/strndup.m4: Don't check for strnlen declaration, done in
59202         strnlen.m4.
59203
59204 2005-08-10  Simon Josefsson  <jas@extundo.com>
59205
59206         * lib/strndup.c: Use strnlen.h.
59207
59208         * lib/strnlen.h: New file.
59209
59210 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59211
59212         * README: Typos.
59213
59214 2005-08-02  Simon Josefsson  <jas@extundo.com>
59215
59216         * modules/readline: New file.
59217
59218 2005-08-02  Simon Josefsson  <jas@extundo.com>
59219
59220         * modules/getdelim: New file.
59221
59222         * modules/getline: Rewrite, don't use getndelim2.
59223
59224 2005-08-02  Simon Josefsson  <jas@extundo.com>
59225
59226         * m4/getline.m4: Separate out getdelim stuff into separate module.
59227
59228         * m4/getdelim.m4: New file.
59229
59230 2005-08-02  Simon Josefsson  <jas@extundo.com>
59231
59232         * lib/getline.h, getline.c: Rewrite.
59233
59234         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59235
59236 2005-07-31  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/lock.h (gl_lock_initializer): New macro.
59239         (gl_lock_define_initialized): Use it.
59240         (gl_rwlock_initializer): New macro.
59241         (gl_rwlock_define_initialized): Use it.
59242         (gl_recursive_lock_initializer): New macro.
59243         (gl_recursive_lock_define_initialized): Use it.
59244
59245 2005-07-30  Karl Berry  <karl@gnu.org>
59246
59247         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59248         Report from Ben Pfaff, regarding getopt.
59249
59250 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59251
59252         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59253         normal way.
59254         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59255         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59256         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59257         (gl_GETOPT): Use the new macros.  Most of the implementation
59258         is moved to the new macros.  This is for programs like Emacs
59259         that don't want all the functionality of gl_GETOPT.
59260
59261 2005-07-26  Bruno Haible  <bruno@clisp.org>
59262
59263         * m4/lock.m4: Update from GNU gettext.
59264
59265 2005-07-26  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/lock.h: Update from GNU gettext.
59268         * lib/lock.c: Update from GNU gettext.
59269
59270 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59271
59272         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59273         obsolescent AC_TRY_RUN.  Include the default includes files, for
59274         'exit'.
59275
59276 2005-07-24  Bruno Haible  <bruno@clisp.org>
59277
59278         * modules/visibility: New file.
59279         * MODULES.html.sh (Misc): Add visibility.
59280
59281 2005-07-24  Bruno Haible  <bruno@clisp.org>
59282
59283         * m4/visibility.m4: New file.
59284
59285 2005-07-24  Bruno Haible  <bruno@clisp.org>
59286
59287         * doc/visibility.texi: New file.
59288
59289 2005-07-22  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59292         $(ALLOCA_H), redundant through BUILT_SOURCES.
59293         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59294         redundant through BUILT_SOURCES.
59295         * modules/byteswap (Makefile.am): Remove explicit dependency on
59296         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59297         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59298         $(FNMATCH_H), redundant through BUILT_SOURCES.
59299         * modules/getopt (Makefile.am): Remove explicit dependency on
59300         $(GETOPT_H), redundant through BUILT_SOURCES.
59301         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59302         redundant through BUILT_SOURCES.
59303         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59304         redundant through BUILT_SOURCES.
59305         * modules/stdbool (Makefile.am): Remove explicit dependency on
59306         $(STDBOOL_H), redundant through BUILT_SOURCES.
59307         * modules/stdint (Makefile.am): Remove explicit dependency on
59308         $(STDINT_H), redundant through BUILT_SOURCES.
59309         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59310         Remove explicit dependency on $(SYSEXITS_H).
59311         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59312
59313 2005-07-18  Simon Josefsson  <jas@extundo.com>
59314
59315         * lib/check-version.c (check_version): Accept identical versions too.
59316
59317 2005-07-18  Bruno Haible  <bruno@clisp.org>
59318
59319         * modules/lock: New file.
59320         * MODULES.html.sh (Multithreading): New section.
59321
59322 2005-07-18  Bruno Haible  <bruno@clisp.org>
59323
59324         * m4/lock.m4: New file, from GNU gettext.
59325
59326 2005-07-18  Bruno Haible  <bruno@clisp.org>
59327
59328         * lib/lock.h: New file, from GNU gettext.
59329         * lib/lock.c: New file, from GNU gettext.
59330
59331 2005-07-18  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/lock.h (gl_once_t): New type.
59334         (gl_once_define, gl_once): New macros.
59335         * lib/lock.c (fresh_once): New variable.
59336         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59337         functions.
59338
59339 2005-07-16  Simon Josefsson  <jas@extundo.com>
59340
59341         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59342         workaround, suggested by Bruno.
59343
59344 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59345
59346         * modules/xalloc (Depends-on): Add xalloc-die.
59347         * modules/xvasprintf (Depends-on): Add xalloc-die.
59348
59349 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59350
59351         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59352         with a minor change.
59353
59354 2005-07-15  Bruno Haible  <bruno@clisp.org>
59355
59356         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59357         When using lib/poll.c, define poll as rpl_poll.
59358
59359 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59360
59361         * modules/argp (Depends-on): Remove unlocked-io.
59362
59363 2005-07-14  Derek Price  <derek@ximbiot.com>
59364
59365         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59366         for glob symlink bug.
59367
59368 2005-07-14  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59371         Instead, test for *_unlocked function declarations directly.
59372
59373 2005-07-11  Simon Josefsson  <jas@extundo.com>
59374
59375         * modules/size_max: New file.
59376
59377         * modules/xsize: Depend on size_max module for size_max.m4.
59378
59379 2005-07-11  Simon Josefsson  <jas@extundo.com>
59380
59381         * lib/size_max.h: New file.
59382
59383 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59384
59385         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59386         copyright symbol and the year.
59387         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59388         (version_etc_va): Use parameterized copyright notice.
59389         Reword to conform to the current GNU coding standards.
59390
59391 2005-07-11  Karl Berry  <karl@gnu.org>
59392
59393         * doc/gnulib.texi (Quoting): new node.
59394         (Initial import): more info, from Patrice.
59395
59396 2005-07-11  Bruno Haible  <bruno@clisp.org>
59397
59398         * gnulib-tool (func_usage): Document option --avoid.
59399         (Command line options): Handle --avoid.
59400         (func_acceptable): New function.
59401         (func_modules_transitive_closure): Use it.
59402
59403 2005-07-11  Bruno Haible  <bruno@clisp.org>
59404
59405         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59406         Reported by Jim Meyering.
59407
59408 2005-07-10  Bruno Haible  <bruno@clisp.org>
59409
59410         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59411         Needed when size_t is smaller than 'unsigned int'.
59412         Reported by Paul Eggert.
59413
59414 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59415
59416         * modules/argp (Depends-on): Add unlocked-io
59417
59418 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59419
59420         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59421         block of defines.
59422
59423 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59426         fix now.
59427
59428 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59429         and Paul Eggert  <eggert@cs.ucla.edu>
59430
59431         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59432         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59433
59434 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59435
59436         * modules/regex (Files): Add lib/regex_internal.c,
59437         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59438         (Depends-on): Add extensions.
59439         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59440
59441 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59444         pathconf.
59445         * m4/same.m4 (gl_SAME): Likewise.
59446         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59447
59448         * m4/regex.m4: Adjust to new libc regex implementation.
59449         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59450         all the .c and .h parts of (the new) regex.
59451         Quote the m4 stuff better.
59452         Check for RE_ICASE bug of old gnulib.
59453         Check for REG_STARTEND of recent libc.
59454         Rename local variables from jm_* to gl_*.
59455         Quote operand of "test -f".
59456         Say "recent enough" version of libc, not "version 2".
59457         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59458         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59459         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59460         Remove check for btowc, isascii.
59461         Require AM_LANGINFO_CODESET.
59462
59463 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59464
59465         * lib/regex.c, regex.h: Sync from libc.
59466         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59467         * lib/regexec.c:
59468         New files, synced from libc, except that regex_internal.h
59469         currently has a small porting fix.
59470
59471 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59472
59473         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59474         regex_internal.c, regexec.c.
59475         Add regex_internal.h too, but as a comment, since the libc version
59476         is currently broken in gnulib mode.
59477
59478 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         Support programs like Emacs that use gnulib but not gettext.
59481         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59482         * modules/gettext-h: New file.
59483         * modules/gettext (Files): Remove lib/gettext.h.
59484         (Depends-on): Add gettext-h.
59485         (Makefile.am): Remove lib_SOURCES.
59486         * modules/argmatch, modules/c-stack, modules/closeout:
59487         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59488         * modules/execute, modules/file-type, modules/getaddrinfo:
59489         * modules/getopt, modules/human, modules/javacomp:
59490         * modules/javaexec, modules/mkdir-p, modules/obstack:
59491         * modules/openat, modules/pagealign_alloc, modules/pipe:
59492         * modules/quotearg, modules/regex, modules/rpmatch:
59493         * modules/unicodeio, modules/userspec, modules/version-etc:
59494         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59495         * modules/xsetenv:
59496         Depend on gettext-h, not gettext.
59497
59498 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59499
59500         * gnulib-tool (func_import): Add support for 'public domain' license.
59501         * modules/alloca, modules/atexit, modules/memmove:
59502         Now public domain, not GPL.
59503         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59504         * modules/realloc, modules/strerror, modules/strtod:
59505         Now LGPL, not GPL.
59506
59507 2005-07-05  Bruno Haible  <bruno@clisp.org>
59508
59509         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59510         autoconf CVS. Needed for mingw.
59511
59512 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         Remove the dependency of the strftime module on the tzset module.
59515         * modules/strftime (Depends-on): Remove dependency on tzset.
59516
59517 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         Remove the dependency of the strftime module on the tzset module.
59520         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59521         gl_FUNC_TZSET_CLOBBER.
59522
59523 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59524
59525         Remove the dependency of the strftime module on the tzset module.
59526         * lib/strftime.c (my_strftime)
59527         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59528         Copy the input structure, to work around some of the bug with
59529         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59530         Solaris releases, you should also use the tzset module, but we won't
59531         require it as a dependency any more since we don't want LGPLed code
59532         to depend on GPLed code.
59533
59534 2005-07-02  Jim Meyering  <jim@meyering.net>
59535
59536         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59537         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59538         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59539         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59540
59541 2005-07-02  Jim Meyering  <jim@meyering.net>
59542
59543         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59544
59545 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59548         declares only 'struct timespec;' (!).
59549
59550 2005-07-01  Jim Meyering  <jim@meyering.net>
59551
59552         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59553         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59554         * lib/save-cwd.c, tempname.c:
59555         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59556         and don't include <sys/file.h>).
59557
59558 2005-06-29  Jim Meyering  <jim@meyering.net>
59559
59560         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59561         type name.  Use the variable name instead.
59562         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59563         Likewise.
59564
59565 2005-06-28  Simon Josefsson  <jas@extundo.com>
59566
59567         * modules/check-version (Files): Add check-version.m4.
59568
59569 2005-06-28  Simon Josefsson  <jas@extundo.com>
59570
59571         * m4/check-version.m4: New file, suggested by Jim Meyering
59572         <jim@meyering.net>.
59573
59574 2005-06-28  Simon Josefsson  <jas@extundo.com>
59575
59576         * lib/check-version.h, lib/check-version.c: New files.
59577
59578 2005-06-28  Simon Josefsson  <jas@extundo.com>
59579
59580         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59581         collision with global variable.  Better indentation.  Don't
59582         increment buffer pointer beyond buffer end.  Based on comments
59583         from Paul Eggert <eggert@cs.ucla.edu>.
59584
59585         * lib/base64.h: Indent.
59586
59587 2005-06-28  Simon Josefsson  <jas@extundo.com>
59588
59589         * doc/gnulib.texi (Library version handling): New section.
59590
59591 2005-06-28  Jim Meyering  <jim@meyering.net>
59592
59593         * check-module (find_included_lib_files): Hard-code another
59594         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59595         but modules/fts-lgpl (correctly) does not list those files.
59596
59597         * modules/canonicalize (Files): Add lib/pathmax.h.
59598
59599 2005-06-25  Simon Josefsson  <jas@extundo.com>
59600
59601         * modules/check-version: New file.
59602
59603 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59606         initializer of struct addrinfo, as an indication that we don't
59607         care how many members the structure has.
59608
59609 2005-06-24  Derek Price  <derek@ximbiot.com>
59610         and Bruno Haible  <bruno@clisp.org>
59611
59612         Remove stat module & update lstat.
59613         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59614         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59615         * m4/stat.m4: Remove this file.
59616
59617 2005-06-24  Derek Price  <derek@ximbiot.com>
59618         and Bruno Haible  <bruno@clisp.org>
59619
59620         Remove stat module & update lstat.
59621         * lib/stat.c: Remove this file...
59622         (slash_aware_lstat): ...moving this content and its support...
59623         * lib/lstat.c (rpl_lstat): ...into here.
59624         * lib/lstat.h: New file.
59625
59626 2005-06-24  Derek Price  <derek@ximbiot.com>
59627         and Bruno Haible  <bruno@clisp.org>
59628
59629         Remove stat module & update lstat.
59630         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
59637         * MODULES.html: Regenerated.
59638         * modules/lstat (Description): Correct function name.
59639         (Files): Add "lstat.h".
59640         (Depends-on): Remove stat, add xalloc, stat-macros.
59641         * modules/stat: Remove this file.
59642         (Include): Add "lstat.h", remove <sys/stat.h>.
59643
59644 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59647         (ranged_convert): Don't save conversion in a temporary struct.
59648         This causes a warning with GCC 4.0.0, and anyway in the typical
59649         case it's not worth the extra 100 bytes or so of code.
59650         (ranged_convert, __mktime_internal): When calling a function via a
59651         pointer P, use P () rather than (*P) (), as we now assume C89 or
59652         better.
59653
59654 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59657         "who -r" failed to give output.  Problem reported by Tim Waugh.
59658
59659         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59660         (xcalloc): Use it to avoid needless tests.
59661         Problem reported by Jim Meyering.
59662
59663 2005-06-20  Derek Price  <derek@ximbiot.com>
59664
59665         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59666         unnecessary for Autoconfs > 2.59c.
59667
59668 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59669
59670         * lib/argp.h (__option_is_short): Check upper limit of
59671         __key. Isprint() requires its argument to have the value
59672         of an unsigned char or EOF.
59673
59674 2005-06-16  Jim Meyering  <jim@meyering.net>
59675
59676         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59677         when either N or S is zero.
59678
59679 2005-06-16  Derek Price  <derek@ximbiot.com>
59680
59681         * m4/bison.m4: Declare YACC & YFLAGS precious.
59682
59683 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59684
59685         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59686         multibyte string or pattern, fall back on unibyte matching.
59687         Problem reported by James Youngman.
59688
59689 2005-06-08  Bruno Haible  <bruno@clisp.org>
59690
59691         * modules/csharpcomp: New file.
59692         * MODULES.html.sh (C#): Add csharpcomp.
59693
59694 2005-06-08  Bruno Haible  <bruno@clisp.org>
59695
59696         * m4/csharpcomp.m4: New file, from GNU gettext.
59697
59698 2005-06-08  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/csharpcomp.h: New file, from GNU gettext.
59701         * lib/csharpcomp.c: New file, from GNU gettext.
59702         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59703
59704 2005-06-08  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59707         warning on mingw.
59708
59709 2005-06-07  Derek Price  <derek@ximbiot.com>
59710
59711         Sync from CVS.
59712         * lib/glob_.h: Indent nested #ifdef.
59713
59714 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         Sync from coreutils.
59717         Use "file name" when talking about file names, instead of "filename"
59718         or "path", as per the GNU coding standards.
59719         * lib/mkdir-p.c: Renamed from makepath.c.
59720         (make_dir_parents): Renamed from make_path.  All callers changed.
59721         * lib/mkdir-p.h: Likewise.  All includers changed.
59722         * lib/filenamecat.c: Renamed from path-concat.c.
59723         (file_name_concat): Renamed from path_concat.  All callers changed.
59724         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59725         * lib/filenamecat.h: Likewise.  All includers changed.
59726         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59727         in comments or local variable names.
59728         * lib/basename.c: Likewise.
59729         * lib/canonicalize.c, canonicalize.h: Likewise.
59730         * lib/dirname.c, dirname.h: Likewise.
59731         * lib/euidaccess.c: Likewise.
59732         * lib/exclude.c: Likewise
59733         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59734         * lib/fsusage.c, fsuage.h: Likewise.
59735         * lib/fts.c, fts_.h: Likewise.
59736         * lib/getcwd.c: Likewise.
59737         * lib/getloadavg.c: Likewise.
59738         * lib/mkstemp.c: Likewise.
59739         * lib/mountlist.c, mountlist.h: Likewise.
59740         * lib/openat.c, openat.h: Likewise.
59741         * lib/readlink-stub.c: Likewise.
59742         * lib/readutmp.c, readutmp.h: Likewise.
59743         * lib/rename.c: Likewise.
59744         * lib/rmdir.c: Likewise.
59745         * lib/same.c: Likewise.
59746         * lib/savedir.c: Likewise.
59747         * lib/stripslash.c: Likewise.
59748         * lib/tempname.c: Likewise.
59749         * lib/xreadlink.c: Likewise.
59750         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59751         All uses changed.
59752         * lib/exclude.h: Likewise.
59753
59754         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59755         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59756         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59757         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59758         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59759         files have been getting away with it for years (MORE/BSD 4.3
59760         is extinct now).
59761         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59762         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59763
59764         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59765         Define to 256, not 255, as per modern POSIX.
59766
59767 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         Sync from coreutils.
59770         Use "file name" when talking about file names, instead of "filename"
59771         or "path", as per the GNU coding standards.
59772         * MODULES.html.sh: mkdir-p renamed from makepath.
59773         filenamecat renamed from path-concat.
59774         * modules/filenamecat: Renamed from modules/path-concat.
59775         (Files): filenamecat.h and filenamecat.c renamed from
59776         path-concat.h and path-concat.c.
59777         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59778         (Include): filenamecat.h, not path-concat.h.
59779         * modules/mkdir-p: Renamed from modules/makepath.
59780         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59781         makepath.c.
59782         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59783         (Include): mkdir-p.h, not makepath.h.
59784
59785 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         Sync from coreutils.
59788         * m4/mkdir-p.m4: Renamed from makepath.m4.
59789         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59790         Rename files from makepath.c to mkdir-p.c, and from
59791         makepath.h to mkdir-p.h.
59792         * m4/filenamecat.m4: Renamed from path-concat.m4.
59793         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59794         Rename files from path-concat.c to filenamecat.c,
59795         and from path-concat.h to filenamecat.h.
59796         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59797         "file name" in local variables or comments.
59798         * m4/rename.m4: Likewise.
59799
59800 2005-06-01  Bruno Haible  <bruno@clisp.org>
59801
59802         * modules/csharpexec: New file.
59803         * MODULES.html.sh (C#): New section.
59804
59805 2005-06-01  Bruno Haible  <bruno@clisp.org>
59806
59807         * m4/csharp.m4: New file, from GNU gettext.
59808         * m4/csharpexec.m4: New file, from GNU gettext.
59809
59810 2005-06-01  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/csharpexec.h: New file, from GNU gettext.
59813         * lib/csharpexec.c: New file, from GNU gettext.
59814         * lib/csharpexec.sh.in: New file, from GNU gettext.
59815
59816 2005-05-31  Derek Price  <derek@ximbiot.com>
59817             Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         Sync from cvs.
59820         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59821
59822 2005-05-31  Derek Price  <derek@ximbiot.com>
59823             Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         Sync from cvs.
59826         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59827
59828 2005-05-29  Derek Price  <derek@ximbiot.com>
59829
59830         * config/srclist.txt (glob_.h, glob.c): Add these files.
59831
59832 2005-05-29  Derek Price  <derek@ximbiot.com>
59833
59834         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59835         * modules/glob: New file.
59836         * modules/getlogin_r: Add link to POSIX spec in description.
59837
59838 2005-05-29  Derek Price  <derek@ximbiot.com>
59839             Paul Eggert  <eggert@cs.ucla.edu>
59840
59841         * m4/glob.m4: New file.
59842
59843 2005-05-29  Derek Price  <derek@ximbiot.com>
59844             Paul Eggert  <eggert@cs.ucla.edu>
59845
59846         * lib/glob_.h, lib/glob.c: New files.
59847
59848 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59849
59850         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59851         * modules/fts-lgpl (Depends-on): Remove gettext.
59852
59853 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59854
59855         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59856         and don't require gt_INTTYPES_PRI.
59857
59858 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59859
59860         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59861
59862         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59863         the configuration hassle isn't worth it.
59864         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59865         (LONGEST_MODIFIER, PRIuMAX): Remove.
59866
59867 2005-05-27  Bruno Haible  <bruno@clisp.org>
59868
59869         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59870
59871 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59874         _POSIX_PTHREAD_SEMANTICS for Solaris.
59875
59876 2005-05-25  Derek Price  <derek@ximbiot.com>
59877
59878         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59879
59880 2005-05-25  Derek Price  <derek@ximbiot.com>
59881             Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59884         * lib/getlogin_r.c, getlogin_r.h: New files.
59885
59886 2005-05-25  Bruno Haible  <bruno@clisp.org>
59887             Derek Price  <derek@ximbiot.com>
59888
59889         * lib/getlogin_r.h: Simplify API documentation.
59890
59891 2005-05-23  Derek Price  <derek@ximbiot.com>
59892
59893         * modules/minmax (Files): Add m4/minmax.m4.
59894         (configure.ac): Add gl_MINMAX.
59895
59896 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59897
59898         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59899         so that unistd-safer.h (GPL'ed code) need not be included.
59900
59901 2005-05-22  Bruno Haible  <bruno@clisp.org>
59902
59903         * m4/minmax.m4: New file.
59904         Based on a patch by Derek Price <derek@ximbiot.com>.
59905
59906 2005-05-22  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59909         (INT64_MIN): Fix definition.
59910         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59911
59912         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59913         NEED_SIGNED_INT_TYPES.
59914
59915         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59916         HAVE_SYSTEM_INTTYPES.
59917
59918 2005-05-22  Bruno Haible  <bruno@clisp.org>
59919
59920         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59921         Also include <sys/param.h> if it defines MIN, MAX.
59922         Based on a patch by Derek Price <derek@ximbiot.com>.
59923
59924 2005-05-21  Jim Meyering  <jim@meyering.net>
59925
59926         * modules/fts (Files): Add m4/inttypes-pri.m4.
59927         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59928
59929 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59930
59931         New fts module.
59932         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59933         (setup_dir, free_dir): New functions.
59934         (enter_dir, leave_dir): Define trivial
59935         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59936         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59937         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59938         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59939         Move to fts-cycle.c.
59940         (fts_open): Use setup_dir.
59941         (fts_close): Use free_dir.
59942         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59943         This adds a label and some gotos, but the alternatives were messier.
59944         Check for memory allocation failure when entering a dir.
59945         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59946         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59947         (FTS): New member fts_cycle, that is a union that contains the
59948         old active_dir_ht and cycle_state.  All uses changed to mention
59949         fts_cycle.ht and fts_cycle.state.
59950         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59951         fts.c, with the following changes:
59952         (setup_dir, free_dir): New functions.
59953         (enter_dir): Now returns bool.  Return true if successful, false
59954         if memory exhausted.  All callers changed.
59955         Do not bother partly cleaning up on
59956         memory allocation failure; that is free_dir's job.
59957         However, free ad if hash_insert fails, to avoid memory leak.
59958         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59959         fts->fts_options to see which union member to use.
59960
59961 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59962
59963         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59964         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59965
59966 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59967
59968         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59969
59970 2005-05-20  Jim Meyering  <jim@meyering.net>
59971
59972         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59973         Now a macro, to pacify GCC.
59974
59975 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59976
59977         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
59978         of -1.
59979
59980 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59981
59982         * lib/chown.c (rpl_chown): Return -1 on failure.
59983
59984 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59985
59986         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59987         Don't check for stddef.h.
59988         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59989         don't use its results.
59990         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59991         since we include them unconditionally.  Don't require
59992         AM_STDBOOL_H, since stdbool is a prerequisite.
59993         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59994         since we assume C89 or better.
59995         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59996         as we don't use their results.
59997         Don't check for fchdir, memmove, memset, strrchr, as we use
59998         them unconditionally.
59999         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
60000         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
60001
60002 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60003
60004         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
60005         Include <stddef.h> unconditionally, since we assume C89 now.
60006         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
60007         * lib/fts.c: Include fts_.h first, to check interface.
60008         Do not include intprops.h; no longer needed.
60009         Include cycle-check.h and hash.h, since fts_.h no longer does.
60010         Remove unnecessary casts of closedir to void.
60011         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
60012         decide whether to decrement nlinks.
60013         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
60014         (FTS): Use struct hash_table * instead of Hash_table, so that
60015         we no longer need to include hash.h here.
60016
60017 2005-05-18  Jim Meyering  <jim@meyering.net>
60018
60019         * modules/dirfd (License): Change to LGPL.  Most of the code
60020         is already in the public domain.
60021
60022 2005-05-18  Jim Meyering  <jim@meyering.net>
60023
60024         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
60025         Reported by Yoann Vandoorselaere.
60026
60027 2005-05-17  Jim Meyering  <jim@meyering.net>
60028
60029         * m4/fts.m4: New file, from coreutils.
60030
60031 2005-05-17  Jim Meyering  <jim@meyering.net>
60032
60033         * lib/fts.c, lib/fts_.h: New files, from coreutils.
60034
60035 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         Sync from coreutils.
60038         * m4/unlinkdir.m4: New file.
60039
60040 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         Sync from coreutils.
60043         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
60044         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
60045         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
60046         White space changes only.
60047         * lib/makepath.c (make_path): Port to hosts where leading "//" is
60048         special.
60049         * lib/yesno.c: Include getline.h, not ctype.h.
60050         (yesno): Don't remove leading white space; POSIX doesn't allow it.
60051         Use getline to remove arbitrary restriction on response length.
60052
60053 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60054
60055         * config/srclist-update: Spell out "Street" in FSF postal
60056         mail address; this is the style the FSF seems to prefer.
60057
60058         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
60059         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
60060         this updates FSF postal mail address.
60061
60062         Sync from coreutils.
60063         * modules/unlinkdir: New file.
60064         * modules/yesno (Depends-on): Add getline.
60065         * MODULES.html.sh (File system functions): Add unlinkdir.
60066
60067 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
60070         lib/strsep.h:
60071         Change the initial comment to refer to GPL, not LGPL.
60072         gnulib-tool will change it to LGPL as needed.
60073
60074         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
60075         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
60076         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60077         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60078         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60079         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60080         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60081         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60082         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60083         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60084         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60085         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60086         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60087         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60088         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60089         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60090         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60091         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60092         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60093         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60094         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60095         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60096         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60097         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60098         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60099         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60100         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60101         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60102         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60103         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60104         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60105         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60106         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60107         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60108         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60109         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60110         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60111         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60112         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60113         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60114         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60115         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60116         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60117         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60118         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60119         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60120         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60121         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60122         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60123         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60124         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60125         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60126         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60127         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60128         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60129         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60130         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60131         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60132         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60133         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60134         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60135         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60136         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60137         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60138         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60139         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60140         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60141         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60142         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60143         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60144         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60145         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60146         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60147         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60148         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60149         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60150         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60151         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60152         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60153         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60154         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60155         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60156         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60157         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60158         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60159         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60160         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60161         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60162         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60163         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60164         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60165         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60166         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60167         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60168         lib/yesno.c, lib/yesno.h:
60169         Update FSF postal mail address.
60170
60171 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60172
60173         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60174         tests/test-memmem.c, tests/test-stpncpy.c:
60175         Update FSF postal mail address.
60176
60177 2005-05-13  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60180         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60181         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60182         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60183         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60184         Add support for 64-bit integers in the MSVC compiler.
60185
60186 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60187
60188         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60189
60190 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60191
60192         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60193
60194 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         * doc/getdate.texi (General date syntax): Don't say that date
60197         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60198         Problem reported by Nic Ferrier.
60199
60200 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60201
60202         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60203         specified in ai_socktype. Fix invalid ai_protocol
60204         check. ai_protocol is usually set to 0 or depending on
60205         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60206         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60207         ai_socktype / ai_protocol in the returned addrinfo structure.
60208
60209 2005-05-10  Simon Josefsson  <jas@extundo.com>
60210
60211         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60212         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60213
60214 2005-05-10  Karl Berry  <karl@gnu.org>
60215
60216         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60217         (from http://www.gnu.org/licenses).
60218         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60219         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60220         fdl.texi suffices.
60221
60222 2005-05-10  Karl Berry  <karl@gnu.org>
60223
60224         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60225         (COPYING.DOC): remove.
60226
60227         * config/srclist-update: new FSF address.
60228
60229 2005-05-10  Derek Price  <derek@ximbiot.com>
60230
60231         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60232         possible.
60233
60234 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60235             Bruno Haible  <bruno@clisp.org>
60236
60237         * modules/inet_ntop: New file.
60238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60239         inet_ntop.
60240
60241 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60242             Bruno Haible  <bruno@clisp.org>
60243
60244         * m4/inet_ntop.m4: New file.
60245
60246 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60247             Bruno Haible  <bruno@clisp.org>
60248
60249         * lib/inet_ntop.h: New file.
60250         * lib/inet_ntop.c: New file, from glibc with modifications.
60251
60252 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60253
60254         * modules/time_r (License): Change to LGPL.
60255         * modules/extensions (License): Change to LGPL.  Actually,
60256         the license is more permissive than that, but currently gnulib-tool
60257         doesn't know how to handle more-permissive licenses.
60258
60259         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60260         Problem reported by Dave Love.
60261
60262 2005-05-08  Jim Meyering  <jim@meyering.net>
60263
60264         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60265         blank.
60266
60267 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * modules/argmatch (Depends-on): Add stdbool.
60270         * modules/backupfile (Depends-on): Likewise.
60271         * modules/chdir-long (Depends-on): Likewise.
60272         * modules/closeout (Depends-on): Likewise.
60273         * modules/cycle-check (Depends-on): Likewise.
60274         * modules/dirname (Depends-on): Likewise.
60275         * modules/fnmatch (Depends-on): Likewise.
60276         * modules/fsusage (Depends-on): Likewise.
60277         * modules/fwriteerror (Depends-on): Likewise.
60278         * modules/getcwd (Depends-on): Likewise.
60279         * modules/getloadavg (Depends-on): Likewise.
60280         * modules/hard-locale (Depends-on): Likewise.
60281         * modules/makepath (Depends-on): Likewise.
60282         * modules/mountlist (Depends-on): Likewise.
60283         * modules/nanosleep (Depends-on): Likewise.
60284         * modules/posixtm (Depends-on): Likewise.
60285         * modules/quotearg (Depends-on): Likewise.
60286         * modules/readtokens (Depends-on): Likewise.
60287         * modules/readtokens0 (Depends-on): Likewise.
60288         * modules/readutmp (Depends-on): Likewise.
60289         * modules/save-cwd (Depends-on): Likewise.
60290         * modules/strftime (Depends-on): Likewise.
60291         * modules/userspec (Depends-on): Likewise.
60292         * modules/utimecmp (Depends-on): Likewise.
60293         * modules/xgetcwd (Depends-on): Likewise.
60294         * modules/xnanosleep (Depends-on): Likewise.
60295         * modules/xstrtod (Depends-on): Likewise.
60296         * modules/yesno (Depends-on): Likewise.
60297
60298 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60301         needless checks.
60302
60303 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         Merge from coreutils.  Among other things,
60306         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60307         * lib/fd-safer.c: New file.
60308         * lib/fcntl-safer.h, open-safer.c: Remove.
60309         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60310         * lib/dup-safer.c: Include unistd-safer.h first.
60311         Don't include errno.h.
60312         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60313         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60314         * lib/file-type.c: Rely on file-type.h change.
60315         * lib/getloadavg.c: Include unistd-safer.h.
60316         (getloadavg): Use safer open.
60317         * lib/getusershell.c: Include "stdio-safer.h".
60318         (getusershell): Use safer fopen.
60319         * lib/long-options.c (long_options): Use NULL rather than 0.
60320         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60321         'free'.
60322         * lib/modechange.c: Likewise.
60323         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60324         (MODE_DONE): New constant.
60325         (struct mode_change): Remove 'next' member.
60326         (make_node_op_equals): New function; like the old one of the
60327         same name, except it allocates an array.
60328         (mode_compile, mode_create_from_ref): Use it.
60329         (mode_compile): Allocate result as an array, not a linked list.
60330         Parse octal string ourself, so that we catch mistakes like "+0".
60331         (mode_adjust): Arg is an array, not a linked list.
60332         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60333         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60334         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60335         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60336         Remove.  This is now stat-macros.h's job.
60337         (talloc): Remove.  All callers replaced by xalloc, so that
60338         our invokers don't have to worry about reporting memory failures.
60339         (make_node_op_equals): Remove.
60340         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60341         New constants.
60342         (struct mode_change): Moved here from modechange.h.
60343         (mode_append_entry): Remove.
60344         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60345         apps to have incorrect behavior.  Use simpler algorithm for head
60346         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60347         Detect more invalid usages rather than having somewhat-random behavior.
60348         Don't insert an "a=" action, as that leads to incorrect behavior.
60349         (mode_compile, mode_create_from_ref): Return NULL on error instead
60350         of an enum, since now there's only one way to have an error.  All
60351         callers changed.
60352         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60353         at the correct time.  Simplify calculation of "+u" and its ilk.
60354         Don't mishandle "+X".
60355         (mode_free): Remove "register" and localize decls.
60356         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60357         (struct mode_change): Move to modechange.c; callers don't
60358         need to see this stuff.
60359         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60360         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60361         (mode_change, mode_adjust): Reflect the new signatures noted above.
60362         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60363         that might redefine system include files.
60364         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60365         (my_usleep): Use NULL rather than (void *) 0.
60366         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60367         Use siginterrupt to specify that system calls should be interrupted.
60368         (rpl_nanosleep): Move initialization of suspended closer to call of
60369         my_usleep.
60370         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60371         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60372         (desirable_utmp_entry): New function.
60373         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60374         using x2nrealloc, to simplify logic.
60375         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60376         size calculation.  Do not assume utmp file is a regular file.
60377         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60378         (READ_UTMP_CHECK_PIDS): New constant.
60379         * lib/save-cwd.c: Include unistd-safer.h.
60380         (save_cwd): Use fd_safer.
60381         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60382         [!_LIBC] Include "stat-macros.h" instead.
60383         * lib/unistd-safer.h (fd_safer): New decl.
60384
60385 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         * modules/getloadavg (Depends-on): Add unistd-safer.
60388         * modules/getusershell (Depends-on): Add stdio-safer.
60389         * modules/lstat (Depends-on): Remove xalloc.
60390         * modules/mkstemp (Depends-on): Add stat-macros.
60391         * modules/modechange (Depends-on): Remove xstrtol.
60392         Add stat-macros, xalloc.
60393         * modules/save-cwd (Depends-on): Add unistd-safer.
60394         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60395         * modules/unistd-safer (Files): Add lib/fd-safer.c
60396         (Makefile.am): Remove lib_SOURCES.
60397
60398         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60399         Remove fcntl-safer; unistd-safer supersedes it.
60400
60401 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60404         AC_HEADER_STAT.
60405         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60406         (gl_PREREQ_CHOWN): Remove.
60407         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60408         it.  Don't require AC_HEADER_STAT.
60409         (gl_PREREQ_LSTAT): Remove.
60410         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60411         Don't require AC_HEADER_STAT.
60412         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60413         (gl_PREREQ_RMDIR): Remove.
60414         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60415         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60416         the stat-macros module a prerequisite.
60417         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60418         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60419         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60420         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60421         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60422         variable names.
60423         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60424         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60425         variable prefixes.
60426         * m4/fcntl-safer.m4: Remove.
60427         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60428         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60429         Invoke gl_PREREQ_FD_SAFER.
60430         (gl_PREREQ_FD_SAFER): New macro.
60431         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60432         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60433         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60434         Remove duplicate call to AC_LIBOBJ(readutmp).
60435         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60436
60437         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60438         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60439
60440 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60441
60442         * MODULES.html.sh (Misc): Add byteswap.
60443
60444 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60445
60446         * modules/getcwd (Depends-on): Add extensions.
60447         * modules/openat (Depends-on): Likewise.
60448
60449 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60450
60451         * modules/byteswap: New file.
60452
60453 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60454
60455         * m4/byteswap.m4: New file.
60456
60457 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60458
60459         * lib/byteswap_.h: New file.
60460
60461 2005-04-25  Karl Berry  <karl@gnu.org>
60462
60463         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60464
60465 2005-04-25  Albert Chin  <china@thewrittenword.com>
60466
60467         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60468         Toolkit C bug.
60469
60470 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60471
60472         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60473         (func_ln_if_changed) Remove forcibly for no error message
60474         in case file does not exist.
60475
60476 2005-04-19  Simon Josefsson  <jas@extundo.com>
60477
60478         * gnulib-tool (Options): Make --symlink mean --symbolic.
60479
60480 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60481
60482         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60483
60484 2005-04-16  Simon Josefsson  <jas@extundo.com>
60485
60486         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60487
60488 2005-04-15  Simon Josefsson  <jas@extundo.com>
60489
60490         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60491
60492 2005-04-15  Simon Josefsson  <jas@extundo.com>
60493
60494         * gnulib-tool: Rename --symlink to --symbolic.
60495
60496 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60497
60498         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60499         symbolic links to files instead of copying/moving.  Add --aux-dir,
60500         specifying directory relative --dir where auxiliary build tools
60501         are placed.
60502
60503 2005-04-14  Bruno Haible  <bruno@clisp.org>
60504
60505         * modules/allocsa (License): Change to LGPL.
60506         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60507
60508 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60509
60510         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60511         that "UTC +1 second" continues to work.  Problem reported
60512         by Dmitry V. Levin.
60513         (relunit_snumber): New rule.
60514         (relunit): Use it.
60515
60516 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60517
60518         * lib/getdate.y (universal_time_zone_table): New constant.
60519         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60520         universal_time_zone_table.
60521         (lookup_zone): Prefer universal_time_zone_table to
60522         local_time_zone_table, so that "GMT" time stamps are allowed in
60523         London during the summer.  Problem reported by Ian Abbott.
60524
60525 2005-04-12  Jim Meyering  <jim@meyering.net>
60526
60527         * lib/human.c (humblock): Set *options even when returning due to
60528         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60529         warning from gcc-4.
60530
60531 2005-04-09  Jim Meyering  <jim@meyering.net>
60532
60533         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60534         -Wuninitialized: initialize tm0.tm_year.
60535
60536 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60537
60538         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60539         count, since there's no maximum.  All uses changed.
60540         Add member dsts_seen.
60541         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60542         not being INT_MAX.
60543         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60544         Use pc_rels_seen to decide whther a date is absolute.
60545
60546         * lib/getdate.y (number): Don't overwrite year.
60547         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60548         check.
60549
60550 2005-04-02  Simon Josefsson  <jas@extundo.com>
60551
60552         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60553         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60554
60555 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60556
60557         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60558         where no absolute path name can be longer than PATH_MAX.
60559
60560 2005-03-27  Jim Meyering  <jim@meyering.net>
60561
60562         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60563
60564 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60567         "one's complement" -> "ones' complement" in comment, as per Knuth.
60568         "value of type" -> "type or expression" in comment.
60569         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60570
60571 2005-03-26  Jim Meyering  <jim@meyering.net>
60572
60573         Comment nits.
60574         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60575         Correct typos: s/or/of/.
60576
60577 2005-03-26  Jim Meyering  <jim@meyering.net>
60578
60579         * modules/check-include-files: Move to ../ and rename to...
60580         * check-module: ...this.
60581
60582 2005-03-25  Jim Meyering  <jim@meyering.net>
60583
60584         * modules/xvasprintf (Files): Add xalloc.h.
60585
60586 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60587
60588         * modules/gettext (Files): config/config.rpath ->
60589         build-aux/config.rpath
60590         * modules/iconv (Files): Likewise.
60591         Problem reported by Oskar Liljeblad.
60592
60593 2005-03-23  Jim Meyering  <jim@meyering.net>
60594
60595         * modules/check-include-files: New script to check for
60596         missing dependencies, multiple includes, etc.
60597
60598         * modules/c-strtold (Depends-on): Add xalloc.
60599         * modules/c-strtod (Depends-on): Add xalloc.
60600         * modules/hash (Depends-on): Add xalloc.
60601         (Files): Remove lib/xalloc.h.
60602
60603         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60604         * modules/userspec (Files): Add lib/inttostr.h.
60605
60606 2005-03-23  Jim Meyering  <jim@meyering.net>
60607
60608         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60609
60610 2005-03-22  Jim Meyering  <jim@meyering.net>
60611
60612         * modules/stat-macros: New module.
60613         * modules/canonicalize, modules/euidaccess, modules/file-type,
60614         * modules/filemode, modules/lchown, modules/makepath,
60615         * modules/rmdir, modules/stat: Depend on new stat-macros module
60616         rather than listing lib/stat-macros.h manually.
60617         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60618
60619 2005-03-22  Jim Meyering  <jim@meyering.net>
60620
60621         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60622
60623 2005-03-22  Bruno Haible  <bruno@clisp.org>
60624
60625         * config/srclist.txt: Replace target directory 'config' with
60626         'build-aux'.
60627         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60628         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60629         ../build-aux/.
60630
60631 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60632
60633         * modules/chdir-long (Depends-on): Add mempcpy.
60634
60635         * modules/acl, modules/backupfile, modules/c-strtod,
60636         modules/c-strtold, modules/canon-host, modules/canonicalize,
60637         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60638         modules/exclude, modules/exitfail, modules/file-type,
60639         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60640         modules/getdate, modules/getline, modules/getpagesize,
60641         modules/getpass, modules/getugroups, modules/group-member,
60642         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60643         modules/inttostr, modules/long-options, modules/makepath,
60644         modules/md5, modules/memcasecmp, modules/memcoll,
60645         modules/modechange, modules/mountlist, modules/path-concat,
60646         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60647         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60648         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60649         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60650         modules/strftime, modules/strndup, modules/strverscmp,
60651         modules/timespec, modules/unlocked-io, modules/userspec,
60652         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60653         modules/yesno:
60654         Remove lib_SOURCES line from Makefile.am section, as this is now
60655         done automatically by the corresponding Autoconf macro.
60656
60657 2005-03-21  Jim Meyering  <jim@meyering.net>
60658
60659         Changes imported from coreutils.
60660
60661         * lib/cycle-check.c: Don't include xalloc.h.
60662
60663         * lib/path-concat.c: Don't include assert.h.
60664         (path_concat): Remove assertion that would have triggered
60665         for ABASE starting with more than one slash.
60666         Reported by Andreas Schwab.
60667
60668         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60669         properly when ABASE is an absolute file name.
60670         Correct the description of this function.
60671         Include <assert.h>.
60672         Add an assertion and a test driver.
60673         This fixes a bug introduced on 2004-07-02.
60674         Andreas Schwab reported the resulting failure of cp --parents:
60675         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60676
60677 2005-03-21  Jim Meyering  <jim@meyering.net>
60678
60679         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60680         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60681
60682 2005-03-21  Jim Meyering  <jim@meyering.net>
60683         and  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60686         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60687         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60688         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60689         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60690         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60691         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60692         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60693         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60694         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60695         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60696         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60697         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60698         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60699         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60700         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60701         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60702         for these modules.
60703
60704 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60705
60706         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60707         (which shouldn't happen), generate nothing instead of returning 0
60708         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60709
60710 2005-03-16  Bruno Haible  <bruno@clisp.org>
60711
60712         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60713         HAVE_LONGLONG_64BIT.
60714
60715 2005-03-16  Bruno Haible  <bruno@clisp.org>
60716
60717         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60718         HAVE_LONGLONG_64BIT.
60719
60720 2005-03-16  Bruno Haible  <bruno@clisp.org>
60721
60722         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60723         HAVE_LONGLONG_64BIT.
60724
60725 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60726
60727         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60728         reliably distinguish strftime failure from empty output on POSIX
60729         hosts.
60730
60731 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60734         (iconv_string): Don't guess a size-zero buffer, as that might cause
60735         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60736         result would be 'too large', where 'too large' is (heuristically)
60737         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60738         overflow concerns.  This will prevent some unwanted malloc failures
60739         when the inputs are very large.
60740
60741 2005-03-15  Karl Berry  <karl@gnu.org>
60742
60743         * config/srclist.txt (config.rpath): from gettext.
60744         * config/config.rpath: update.
60745
60746 2005-03-15  Bruno Haible  <bruno@clisp.org>
60747
60748         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60749         to 'negate'.
60750
60751         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60752         variable.
60753
60754         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60755         results.
60756
60757 2005-03-14  Simon Josefsson  <jas@extundo.com>
60758
60759         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60760         <fx@gnu.org>.
60761
60762 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60765         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60766         intprops.h.
60767         * lib/strtol.c: Likewise.
60768
60769 2005-03-14  Jim Meyering  <jim@meyering.net>
60770
60771         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60772         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60773         to be nonzero so that we (and caller) can detect the difference
60774         between a valid zero-length expansion and an error return, even
60775         when the underlying strftime fails before writing anything into
60776         that location.
60777
60778 2005-03-14  Bruno Haible  <bruno@clisp.org>
60779
60780         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60781         Update from GNU gettext 0.14.3.
60782
60783 2005-03-10  Jim Meyering  <jim@meyering.net>
60784
60785         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60786
60787 2005-03-10  Jim Meyering  <jim@meyering.net>
60788
60789         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60790         so that this module works on systems without fchdir.
60791
60792 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60793
60794         Factor int-properties macros into a single file, except for
60795         glibc-related files.
60796         * lib/intprops.h: New file.
60797         * lib/getloadavg.c: Include it instead of limits.h.
60798         (INT_STRLEN_BOUND): Remove.
60799         * lib/human.c: Include intprops.h.
60800         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60801         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60802         302/1000.
60803         * lib/inttostr.h: Include intprops.h instead of limits.h.
60804         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60805         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60806         for consistency with intprops.h.
60807         (time_t_is_integer, twos_complement_arithmetic): Use them.
60808         * lib/sig2str.h: Include <signal.h>, intprops.h.
60809         (INT_STRLEN_BOUND): Remove.
60810         * lib/strftime.c (TYPE_SIGNED): Remove.
60811         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60812         * lib/strtol.c: Adjust comments to match intprops.h.
60813         * lib/userspec.c: Include intprops.h.
60814         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60815         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60816         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60817         instead of rolling our own expressions.
60818         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60819
60820         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60821         instead of int.
60822         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60823         the right thing even if adding 1900 would overflow.  Similarly
60824         for tm_mon + 1 and tm_yday + 1.
60825         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60826         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60827         (DO_SIGNED_NUMBER): New macro.
60828         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60829
60830 2005-03-07  Bruno Haible  <bruno@clisp.org>
60831
60832         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60833
60834 2005-03-07  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60837
60838 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60839
60840         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60841         (func_import): Only replace files via --import when they have actually
60842         changed.
60843
60844 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60845
60846         * m4/mmap-anon.m4: New file.
60847         * m4/pagealign_alloc.m4: New file.
60848
60849 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60850             Bruno Haible  <bruno@clisp.org>
60851
60852         * modules/pagealign_alloc: New file.
60853         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60854
60855 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60856             Bruno Haible  <bruno@clisp.org>
60857
60858         * lib/pagealign_alloc.h: New file.
60859         * lib/pagealign_alloc.c: New file.
60860
60861 2005-03-03  Bruno Haible  <bruno@clisp.org>
60862
60863         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60864         Use an all-permissive copyright notice, recommended by RMS.
60865
60866 2005-03-02  Bruno Haible  <bruno@clisp.org>
60867
60868         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60869         of AIX, the replacement has to be done only after <string.h> is
60870         included, therefore not in config.h. stpncpy.h does the replacement,
60871         and stpncpy.c uses it.
60872
60873 2005-03-02  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60876         stpncpy.c uses it.
60877
60878 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60879
60880         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60881         The workaround isn't strictly needed for POSIX conformance, and
60882         it's too much of a pain to configure and maintain.  We'll ask
60883         people to fix their kernels instead.
60884         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60885         (NANOSLEEP_BUG_WORKAROUND): Remove.
60886         (xnanosleep): Remove the workaround.
60887
60888 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60889
60890         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60891         Reported by Derek Price.
60892         (Include): Add "timespec.h".
60893
60894         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60895
60896 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60897
60898         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60899         to detect nanosleep bug.
60900
60901 2005-03-01  Bruno Haible  <bruno@clisp.org>
60902
60903         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60904
60905 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60906
60907         * modules/gethrxtime: New file.
60908         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60909         (Depends-on): Add gethrxtime.
60910         (configure.ac): Add gl_XNANOSLEEP.
60911         (Makefile.am): Remove lib_SOURCES line.
60912
60913 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60916         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60917
60918 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60921         * lib/timespec.h (gettime): Return void, since it always
60922         succeeds now.  All uses changed.
60923         * lib/gettime.c (gettime) Likewise.
60924         [HAVE_NANOTIME]: Prefer nanotime.
60925         Assume gettimeofday succeeds, as POSIX requires.
60926         Assime time () succeeds, since other code already does.
60927         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60928         (timespec_subtract): Remove.
60929         (NANOSLEEP_BUG_WORKAROUND): New constant.
60930         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60931         things considerably.  Use it only on GNU/Linux hosts, since the
60932         workaround shouldn't be needed elsewhere.
60933
60934 2005-02-24  Bruno Haible  <bruno@clisp.org>
60935
60936         * modules/gettext (Files): Add m4/glibc2.m4.
60937
60938 2005-02-24  Bruno Haible  <bruno@clisp.org>
60939
60940         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60941         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60942         * m4/progtest.m4:
60943         Update from GNU gettext 0.14.2.
60944         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60945
60946 2005-02-24  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60949         * lib/config.charset: Update from GNU gettext 0.14.2.
60950
60951 2005-02-24  Bruno Haible  <bruno@clisp.org>
60952
60953         * lib/gettext.h: Update from GNU gettext 0.14.2.
60954
60955 2005-02-23  Simon Josefsson  <jas@extundo.com>
60956
60957         * m4/iconvme.m4: New file.
60958
60959 2005-02-23  Jim Meyering  <jim@meyering.net>
60960
60961         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60962         change.
60963         Thanks to Bruno Haible for catching it.
60964
60965 2005-02-22  Simon Josefsson  <jas@extundo.com>
60966
60967         * modules/iconvme: New file.
60968
60969         * MODULES.html.sh: Add iconvme.
60970
60971 2005-02-22  Simon Josefsson  <jas@extundo.com>
60972
60973         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60974
60975 2005-02-22  Simon Josefsson  <jas@extundo.com>
60976
60977         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
60978
60979 2005-02-22  Jim Meyering  <jim@meyering.net>
60980
60981         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60982         s/ifndef/ifdef/.
60983
60984 2005-02-20  Neil Conway  <neilc@samurai.com>
60985
60986         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60987         returned by OSX/Darwin if the specified buffer is not large
60988         enough for the hostname.
60989
60990 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60991
60992         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60993         pass it to _help, otherwise the latter coredumps trying to
60994         dereference state.root_argp.
60995
60996 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         * modules/chdir-long (Depends-on): Add memrchr.
60999         * modules/memrchr (Files): Add lib/memrchr.h.
61000         (Include): "memrchr.h".
61001
61002 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
61005
61006 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * lib/memrchr.h: New file.
61009         * lib/chdir-long.c: Include it.
61010         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
61011         Don't bother including stddef.h.
61012
61013 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
61016         inclusion.
61017         Include <sys/types.h>, for dev_t.
61018         (ME_DUMMY, ME_REMOTE): Move from here....
61019         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
61020         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
61021         Dmitry V. Levin.
61022         Include mountlist.h first, to test the interface.
61023
61024 2005-01-29  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/progname.c (program_name): Initialize.
61027         Needed when linking statically on MacOS X.
61028
61029 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         Sync from coreutils.
61032         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
61033         (Depends-on): Add c-strtod.
61034         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
61035
61036 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         Sync from coreutils.
61039         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
61040
61041         Remove files that are specific to coreutils.
61042         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
61043
61044 2005-01-28  Bruno Haible  <bruno@clisp.org>
61045
61046         * modules/javacomp: New file.
61047         * MODULES.html.sh (Java): Add javacomp.
61048
61049 2005-01-28  Bruno Haible  <bruno@clisp.org>
61050
61051         * m4/javacomp.m4: New file, from GNU gettext.
61052
61053 2005-01-28  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/javacomp.sh.in: New file, from GNU gettext.
61056         * lib/javacomp.h: New file, from GNU gettext.
61057         * lib/javacomp.c: New file, from GNU gettext.
61058
61059 2005-01-26  Simon Josefsson  <jas@extundo.com>
61060
61061         * lib/gai_strerror.c: Use GPL in header.
61062
61063 2005-01-26  Bruno Haible  <bruno@clisp.org>
61064
61065         * modules/javaexec: New file.
61066         * MODULES.html.sh (Java): Add javaexec.
61067
61068 2005-01-26  Bruno Haible  <bruno@clisp.org>
61069
61070         * m4/javaexec.m4: New file, from GNU gettext.
61071
61072 2005-01-26  Bruno Haible  <bruno@clisp.org>
61073
61074         * lib/javaexec.sh.in: New file, from GNU gettext.
61075         * lib/javaexec.h: New file, from GNU gettext.
61076         * lib/javaexec.c: New file, from GNU gettext.
61077
61078 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61079
61080         * modules/lchown (Depends-on): Remove lchown.h
61081
61082 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61083
61084         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61085         must be defined if the header file was not found, in order
61086         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61087
61088 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61089
61090         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61091         initializers for struct pentry_state.
61092         (__argp_error): Check return value of __asprintf
61093         (__argp_failure): Translate error message
61094
61095         * lib/argp-parse.c: Removed braces around the expansion of N_()
61096
61097 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61098
61099         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61100         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61101         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61102         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61103         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61104         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61105         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61106         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61107         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61108         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61109         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61110         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61111         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61112         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61113         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61114         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61115         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61116         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61117         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61118         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61119         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61120         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61121         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61122         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61123         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61124         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61125         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61126         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61127         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61128         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61129         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61130         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61131         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61132         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61133         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61134         Use an all-permissive copyright notice, recommended by RMS.
61135
61136 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * modules/chdir-long (Depends-on): Remove mempcpy.
61139
61140 2005-01-21  Jim Meyering  <jim@meyering.net>
61141
61142         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61143         same value as for Solaris 9.
61144
61145         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61146         component length.  This included changing the parameter to be
61147         of type `char *' rather than `char const *'.
61148         * lib/chdir-long.h (chdir_long): Update prototype.
61149
61150         * lib/openat.c (fdopendir, fstatat): New functions.
61151         * lib/openat.h: Include headers required for use of DIR and struct
61152         stat.
61153         [AT_SYMLINK_NOFOLLOW]: Define.
61154         (fdopendir, fstatat): Add prototypes.
61155
61156 2005-01-21  Bruno Haible  <bruno@clisp.org>
61157
61158         * modules/classpath: New file.
61159         * MODULES.html.sh (Java): Add classpath.
61160
61161 2005-01-21  Bruno Haible  <bruno@clisp.org>
61162
61163         * lib/classpath.h: New file, from GNU gettext.
61164         * lib/classpath.c: New file, from GNU gettext.
61165
61166 2005-01-20  Simon Josefsson  <jas@extundo.com>
61167
61168         * modules/version-etc-fsf: New file.
61169
61170 2005-01-20  Simon Josefsson  <jas@extundo.com>
61171
61172         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61173         * lib/version-etc.c: Remove version_etc_copyright.
61174         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61175         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61176
61177 2005-01-20  Simon Josefsson  <jas@extundo.com>
61178
61179         * lib/base64.h (isbase64): Add.
61180
61181         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61182         using a unsigned prototype, don't inline.
61183         (base64_decode): Use it.
61184
61185 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61186
61187         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61188         it.
61189
61190 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         * lib/save-cwd.c (save_cwd): Remove code to support the case
61193         where fchdir is missing or flaky.
61194
61195 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61198
61199 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61200
61201         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61202         AC_LIBSOURCES now does this.
61203         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61204         with new ullong_max module.
61205
61206 2005-01-19  Bruno Haible  <bruno@clisp.org>
61207
61208         * modules/sh-quote: New file.
61209         * MODULES.html.sh (Executing programs): Add sh-quote.
61210
61211 2005-01-19  Bruno Haible  <bruno@clisp.org>
61212
61213         * lib/sh-quote.h: New file, from GNU gettext.
61214         * lib/sh-quote.c: New file, from GNU gettext.
61215
61216 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61217
61218         Merge from coreutils.
61219         * m4/ullong_max.m4: New file.
61220         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61221         (gl_MACROS): Assume localeconv exists.
61222
61223 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61224
61225         Merge changes from coreutils, as described below in several
61226         changelogs dated today.
61227
61228         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61229         (O_DIRECTORY): Remove; not needed here, since "." must be
61230         a directory.  All uses removed.
61231         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61232         universal on Suns, and we also need to test for IRIX.
61233         Revamp code to use 'if' rather than '#if'.
61234         Avoid unnecessary comparison of cwd->desc to 0.
61235
61236         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61237         for known valid error numbers rather than observed invalid ones.
61238
61239 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         * modules/ullong_max: New file.
61242
61243         * modules/chdir-long, modules/openat: New files.
61244         * modules/save-cwd (Depends-on): Depend on chdir-long.
61245         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61246
61247 2005-01-18  Jim Meyering  <jim@meyering.net>
61248
61249         Merge from coreutils.
61250         * m4/chdir-long.m4, m4/openat.m4: New files.
61251         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61252         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61253         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61254         is sane and DOES follow symlinks.  Besides, testing 20 different
61255         systems found no broken chown implementations.
61256         Prompted by a change in rsync's copy of this macro.
61257         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61258
61259         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61260
61261         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61262         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61263         NULL-means-set-to-current-time semantics.
61264         Remove temporary file immediately, rather than waiting
61265         for configure's at-exit trap code to do it.
61266
61267 2005-01-18  Jim Meyering  <jim@meyering.net>
61268
61269         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61270
61271         * lib/utimens.c (futimens): Account for the fact that futimes
61272         can also fail with errno == ENOSYS or errno == ENOENT.
61273         Patch from Dmitry V. Levin.
61274
61275         Change the name of the robust chdir function from chdir to chdir_long.
61276         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61277         (restore_cwd): Use chdir_long, not chdir.
61278         * lib/chdir-long.c: Renamed from chdir.c.
61279         * lib/chdir-long.h: Renamed from chdir.h.
61280         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61281         Hurd.
61282
61283 2005-01-18  Bruno Haible  <bruno@clisp.org>
61284
61285         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61286         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61287         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61288         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61289         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61290         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61291         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61292         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61293         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61294         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61295         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61296         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61297         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61298         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61299         Use an all-permissive copyright notice, recommended by RMS.
61300
61301 2005-01-18  Bob Proulx  <bob@proulx.com>
61302
61303         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61304         simplify offsetof() macro construct to avoid compile failure with
61305         native HP-UX 11.0 ANSI C compiler.
61306
61307 2005-01-17  Bruno Haible  <bruno@clisp.org>
61308
61309         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61310         redundant because stpncpy.m4 takes care of it.
61311
61312 2005-01-17  Bruno Haible  <bruno@clisp.org>
61313
61314         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61315
61316 2005-01-17  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61319         used.
61320
61321 2005-01-17  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/fwriteerror.h (fwriteerror): Change specification to include
61324         fclose.
61325         * lib/fwriteerror.c: Include <stdbool.h>.
61326         (fwriteerror): At the end, close the file stream. Record whether
61327         stdout was already closed.
61328
61329 2005-01-17  Bruno Haible  <bruno@clisp.org>
61330
61331         * lib/execute.c (environ): Declare if needed.
61332         * lib/pipe.c (environ): Likewise.
61333         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61334
61335 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61336
61337         * modules/argp: Depend on vsnprintf
61338
61339 2005-01-10  Jim Meyering  <jim@meyering.net>
61340
61341         * modules/closeout (Depends-on): Add atexit.
61342
61343 2005-01-06  Bruno Haible  <bruno@clisp.org>
61344
61345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61346
61347 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61350         definitions to be after all include files, to avoid collisions.
61351         Problem reported by Bob Proulx.
61352
61353 2005-01-04  Jim Meyering  <jim@meyering.net>
61354
61355         Changes imported from coreutils.
61356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61357         as the mkstemp template, use a temporary directory and an
61358         8.3-friendly template to avoid trouble on systems like DJGPP.
61359         Reported by Juan M. Guerrero via Stepan Kasal.
61360         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61361         close. Remove the temporary directory right away, rather than waiting
61362         for configure's at-exit trap code to do it.
61363         Suggestion from Stepan Kasal.
61364
61365 2005-01-01  Simon Josefsson  <jas@extundo.com>
61366
61367         * gnulib-tool: Print #include directives when --import'ing.
61368
61369 2004-12-28  Simon Josefsson  <jas@extundo.com>
61370
61371         * tests/test-base64.c: Include required header files.  Remove
61372         unused variables.
61373
61374 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         * modules/error (Depends-on): Remove gettext.
61377
61378 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61379
61380         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61381         not needed.  This removes a dependency on the gettext module.
61382         [defined _LIBC]: Do not include <libintl.h>; not needed.
61383
61384 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61387         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61388
61389 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61390
61391         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61392         HAVE_DECL_STRTOLD.
61393
61394 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * modules/getdate (Depends-on): Remove alloca-opt.
61397
61398 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61399
61400         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61401
61402 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61403
61404         * lib/argp-parse.c: Include <stddef.h>.
61405         (alignof, alignto): New macros.
61406         (parser_init): Don't assume that void * is aligned sufficiently
61407         for struct option.
61408
61409         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61410         need to extend the stack.
61411         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61412         large.
61413
61414 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61415
61416         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61417
61418 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61421         (2004-10-24) change.  Apparently this was a false alarm.
61422
61423         * modules/getdate: Depend on alloca-opt, not alloca.
61424
61425 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61428         Remove now-obsolete comment about AIX.
61429         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61430         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61431         (YYMAXDEPTH): New macro.
61432
61433 2004-12-18  Simon Josefsson  <jas@extundo.com>
61434
61435         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61436
61437 2004-12-18  Bruno Haible  <bruno@clisp.org>
61438
61439         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61440
61441 2004-12-18  Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/fatal-signal.c (fatal_signals): Make non-const.
61444         (init_fatal_signals): New function.
61445         (uninstall_handlers, install_handlers): Ignore signals that were set to
61446         SIG_IGN.
61447         (at_fatal_signal): Call init_fatal_signals.
61448         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61449         SIG_IGN.
61450         Reported by Paul Eggert.
61451
61452 2004-12-18  Bruno Haible  <bruno@clisp.org>
61453
61454         * doc/alloca.texi: New file.
61455         * doc/alloca-opt.texi: New file.
61456
61457 2004-12-17  Jim Meyering  <jim@meyering.net>
61458
61459         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61460         Otherwise, install-sh could exit with improper exit status when
61461         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61462
61463 2004-12-16  Simon Josefsson  <jas@extundo.com>
61464
61465         * tests/test-base64.c: Add license.
61466
61467 2004-12-15  Stepan Kasal  <address@hidden>
61468
61469         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61470
61471 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61472
61473         * modules/getcwd (Files): Add m4/d-ino.m4.
61474         Suggested by Mark D. Baushke.
61475
61476 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61477
61478         * lib/getdate.y (textint): New member "negative".
61479         (time_zone_hhmm): New function.
61480         Expect 14 shift-reduce conflicts, not 13.
61481         (o_colon_minutes): New rule.
61482         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61483         (yylex): Set the "negative" member of signed numbers.
61484
61485 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61486
61487         * doc/getdate.texi (Time of day items, Time zone items):
61488         Describe new formats +00:00, UTC+00:00.
61489
61490 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61491
61492         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61493         spurious "-l"s.  Problem reported by Stepan Kasal.
61494
61495 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61498         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61499
61500 2004-12-04  Simon Josefsson  <jas@extundo.com>
61501
61502         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61503         Vandoorselaere <yoann@prelude-ids.org>.
61504
61505 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         Changes imported from coreutils.
61508         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61509         exist.
61510         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61511
61512 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61513
61514         Changes imported from coreutils.
61515         * lib/hard-locale.c: Assume <locale.h> exists.
61516         Include "strdup.h".
61517         (GLIBC_VERSION): New macro.
61518         (hard_locale): Assume setlocale exists.
61519         Rewrite to avoid #ifdef.
61520         Use strdup rather than malloc + strcpy.
61521         * lib/human.c: Assume <locale.h> exists.
61522         (human_readable): Assume localeconv exists.
61523
61524 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * modules/hard-locale (Depends-on): Add strdup.
61527
61528 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61529
61530         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61531         convert T2, not T.  (Imported from libc.)
61532
61533 2004-11-30  Simon Josefsson  <jas@extundo.com>
61534
61535         * modules/restrict (License): Change to LGPL.
61536
61537 2004-11-30  Simon Josefsson  <jas@extundo.com>
61538
61539         * m4/restrict.m4: Add copyright and copying conditions.
61540
61541 2004-11-30  Simon Josefsson  <jas@extundo.com>
61542
61543         * m4/base64.m4: New file.
61544
61545 2004-11-30  Simon Josefsson  <jas@extundo.com>
61546
61547         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61548         base64.
61549
61550         * tests/test-base64.c: New file.
61551
61552         * modules/base64: New file.
61553
61554 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61555
61556         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61557         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61558
61559         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61560
61561 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61562
61563         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61564         (__getcwd.c): Don't restore errno; glibc doesn't.
61565         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61566         first, falling back to our code only if its results look suspicious.
61567         Ensure that the resulting buffer is only as large as necessary.
61568
61569         * lib/readutmp.c: Include readutmp.h first.
61570         Include <errno.h>, since readutmp.h no longer does that.
61571         * lib/readutmp.h: Don't include <errno.h>,
61572         <sys/param.h>, <time.h>; not needed to establish interface.
61573         (errno): Remove decl.
61574         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61575         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61576         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61577
61578 2004-11-28  Simon Josefsson  <jas@extundo.com>
61579
61580         * lib/base64.h, base64.c: New file.
61581
61582 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61583
61584         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61585
61586 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61587
61588         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61589         (Depends-on): Remove pathmax, same.  Add mempcpy.
61590         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61591         (Makefile.am): Append getcwd.h to lib_SOURCES.
61592         (Include): Add getcwd.h.
61593         (Maintainer): Change from Jim Meyering to "all, glibc",
61594         since getdate now uses intended-for-glibc code.
61595         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61596         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61597
61598 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61601         HP's ANSI C compiler.
61602         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61603         Declaring int functions causes warnings on some modern systems and
61604         shouldn't be needed to compile on ancient ones.
61605         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61606         defined.
61607
61608         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61609         with the following changes.
61610         (__set_errno): Parenthesize properly.
61611         Include <stdbool.h>.
61612         (MIN, MAX, MATCHING_INO): New macros.
61613         (__getcwd): Define with prototype, not K&R form.
61614         Use heuristics to allocate default buffer on stack if possible.
61615         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61616         behavior, and to avoid the PATH_MAX limit when computing
61617         ../../../../...
61618         Use MATCHING_INO to compare inode number to file.
61619         Check for arithmetic overflow in size calculations.
61620         Fix bug in reallocation of dot array that caused getcwd to fail
61621         on directories nested deeper than 75.
61622         Be more careful about saving errno on error.
61623         Do not use realloc; use only free+malloc, as this is a bit
61624         more flexible and avoids a needless copy operation.
61625         Do not inspect st_dev and st_ino for symbolic links; POSIX
61626         doesn't specify the latter.
61627         Check for closedir errors.
61628         Avoid needless casts.
61629         Use "#ifdef weak_alias" around weak_alias, to be like other
61630         glibc code.
61631         The following changes to getcwd.c have effect only when used in
61632         gnulib; they have no effect inside glibc proper.
61633         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61634         as alloca isn't used.
61635         (alloca, __alloca): Likewise.
61636         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61637         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61638         unconditionally, as gnulib assumes C89 or better.
61639         Do not include <sys/param.h>.
61640         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61641         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61642         better.
61643         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61644         Include <dirent.h> in a way that is compatible with modern Autoconf.
61645         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61646         New macros, if not already defined.
61647         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61648         Use "_LIBC", not "defined _LIBC", for consistency.
61649         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61650         a mempcpy module.
61651         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61652         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61653         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61654         credit only to Jim Meyering and adjust the copyright dates.
61655         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61656         <stdlib.h>, <unistd.h>, "pathmax.h".
61657         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61658         (INITIAL_BUFFER_SIZE): Remove.
61659         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61660
61661 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61662
61663         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61664         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61665         Use the _ONCE methods, for efficiency.
61666         Check for fcntl.h.  In test program, include <errno.h>
61667         and <fcntl.h> if available.  Remove old K&R cruft from
61668         test program.  Check for common errors in GNU/Linux,
61669         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61670         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61671         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61672         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61673         name accordingly.
61674         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61675         accommodate new getcwd.c.
61676         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61677         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61678         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61679         that's all we need now.
61680
61681 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61682
61683         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61684         argp-parse.c depends on getopt internals, that means we should
61685         always use our getopt, to be on the safe side.
61686         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61687         order not to spoil the result of an eventual previous invocation
61688         of gl_GETOPT_SUBSTITUTE.
61689
61690 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61691
61692         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61693         redefinition warnings. To avoid them, include the defines
61694         in `#if !defined __need_getopt ... #endif'. The only place
61695         where __getopt_argv_const is used is in definitions
61696         of getopt_long and getopt_long_only below, which are as well
61697         protected by `#ifndef __need_getopt'.
61698         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61699         __need_getopt after including <stdio.h> and <unistd.h> These
61700         headers might have defined it.
61701
61702 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61703
61704         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61705
61706 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61709         (futimens): New function, which uses futimes if available.
61710         (futimens, utimens): Support timespec==NULL, with same semantics
61711         as utime and utimens.
61712         * lib/utimens.h (futimens): New decl.
61713
61714 2004-11-23  Jim Meyering  <jim@meyering.net>
61715
61716         * lib/getopt_.h: Remove trailing blanks.
61717
61718 2004-11-23  Jim Meyering  <jim@meyering.net>
61719
61720         * lib/__fpending.c: Add comment.
61721
61722 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         * modules/canonicalize (Depends-on): Add xreadlink.
61725         Problem reported by James Youngman.
61726
61727 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61728
61729         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61730         New macros.
61731         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61732         optopt): Use them instead of invoking ## directly; otherwise, the
61733         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61734
61735 2004-11-19  Bruno Haible  <bruno@clisp.org>
61736
61737         * lib/strtok_r.c: Move comments from here...
61738         * lib/strtok_r.h: ... to here.
61739
61740 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61741
61742         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61743         implementations that mishandle size_t overflow.
61744
61745 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61748         might fail.  Problem reported by Yoann Vandoorselaere.
61749         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61750         implementations that mishandle size_t overflow.
61751
61752 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61753
61754         * modules/canon-host (Depends-on): Add strdup.
61755
61756 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61759
61760 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61761
61762         * lib/canon-host.c: Include "strdup.h".
61763         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61764         Use strdup instead of malloc/strcpy to duplicate strings.
61765
61766         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61767         (human_space_before_unit): New constant.
61768         * lib/human.c (human_readable): Support it.
61769
61770         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61771         (xgetcwd): Set errno correctly when failing.
61772         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61773         the failure is actually due to a PATH_MAX problem.
61774
61775         Further getopt changes to make it more likely that glibc will
61776         buy the changes back.
61777         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61778         (getopt): Use it, so to preserve glibc semantic
61779         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61780         when compiling for libc.
61781         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61782         (getopt_long, getopt_long_only): Use it.
61783
61784         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61785         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61786         (getopt): Argv is now char * const *, as per standard.
61787         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61788         not char *__getopt_argv_const *.
61789         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61790         _getopt_long_only_r): Likewise.
61791         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61792         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61793         _getopt_long_r, _getopt_long_only_r): Likewise.
61794         * lib/getopt_.h (__getopt_argv_const): Remove.
61795         (getopt): Argv is now char * const *, as per standard.
61796
61797         * lib/getdate.y (tORDINAL): New token.
61798         (day, relunit): Allow it for relative times.
61799         (relative_time_table): Use tORDINAL for ordinals.
61800
61801 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61804         Document that "second" isn't allowed as an ordinal number.
61805
61806 2004-11-16  Jim Meyering  <jim@meyering.net>
61807
61808         * modules/closeout (Depends-on): Add fpending.
61809
61810 2004-11-15  Jim Meyering  <jim@meyering.net>
61811
61812         * lib/closeout.c: Include "__fpending.h" once again.
61813         Include <stdbool.h>.
61814         (close_stdout): Don't fail just because stdout was closed initially,
61815         since some programs don't write to stdout in the normal course of
61816         operation (other than --version and --help), and we don't want this
61817         function to make e.g. `touch file >&-' fail.
61818         But do fail if it was closed and someone has tried to write to it.
61819         E.g., `printf foo >&-' must fail.
61820
61821 2004-11-13  Jim Meyering  <jim@meyering.net>
61822
61823         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61824
61825 2004-11-12  Simon Josefsson  <jas@extundo.com>
61826
61827         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61828         small doc fix is still pending.
61829
61830 2004-11-11  Simon Josefsson  <jas@extundo.com>
61831
61832         * modules/strtok_r: New file.
61833
61834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61835         strtok_r.
61836
61837 2004-11-11  Simon Josefsson  <jas@extundo.com>
61838
61839         * m4/strtok_r.m4: New file.
61840
61841         * m4/getopt.m4: Replace opterr.
61842
61843 2004-11-11  Simon Josefsson  <jas@extundo.com>
61844
61845         * lib/strtok_r.h, strtok_r.c: New file.
61846
61847 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61850         of replacing opterr, getopt, etc.  This should handle the
61851         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61852
61853 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61854
61855         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61856         we can stop lying to compilers about the constness of argv when we
61857         are compiled outside glibc.
61858         (getopt, getopt_long, getopt_long_only): Use it.
61859         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61860         _getopt_internal, getopt): Likewise.
61861         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61862         _getopt_long_only_r): Likewise.
61863         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61864         _getopt_long_r, _getopt_long_only_r): Likewise.
61865
61866         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61867         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61868         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61869         the other external symbols.
61870         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61871         declaration, since the above renaming now works around collisions.
61872
61873 2004-11-11  Jim Meyering  <jim@meyering.net>
61874
61875         * lib/linebreak.c: Remove trailing blanks.
61876         * lib/alloca_.h: Likewise.
61877         * lib/acosl.c: Likewise.
61878         * lib/euidaccess.c: Likewise.
61879         * lib/allocsa.h: Likewise.
61880
61881 2004-11-10  Simon Josefsson  <jas@extundo.com>
61882
61883         * m4/getaddrinfo.m4: New file.
61884
61885 2004-11-10  Simon Josefsson  <jas@extundo.com>
61886
61887         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61888
61889 2004-11-10  Simon Josefsson  <jas@extundo.com>
61890
61891         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61892         getaddrinfo.
61893
61894         * modules/getaddrinfo: New file.
61895
61896 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61897
61898         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61899
61900 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61901
61902         * lib/mktime.c (SHR): New macro, which is a portable
61903         substitute for >> that should work even on Crays.
61904         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61905         Problem reported by Mark D. Baushke in
61906         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61907         * lib/getdate.y (SHR): Likewise.
61908         (tm_diff): Use it.
61909         * lib/strftime.c (SHR): Likewise.
61910         (tm_diff): Use it.
61911         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61912         quote_these_too, so that right shifts are well defined.  All uses
61913         changed.
61914
61915 2004-11-10  Jim Meyering  <jim@meyering.net>
61916
61917         Ensure that no close failure goes unreported.
61918         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61919         return early when it seems there's nothing to flush.
61920         Don't include __fpending.h.
61921
61922 2004-11-10  Jim Meyering  <jim@meyering.net>
61923
61924         * modules/closeout (Depends-on): Remove fpending.
61925
61926 2004-11-10  Jim Meyering  <jim@meyering.net>
61927
61928         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61929
61930 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61931
61932         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61933         gl_FUNC_STRFTIME.
61934         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61935         and AC_REQUIRE when possible, to avoid duplicate checks.
61936         Check for <wchar.h>.
61937
61938 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61941
61942 2004-11-09  Bruno Haible  <bruno@clisp.org>
61943
61944         * m4/sockpfaf.m4: New file.
61945
61946 2004-11-05  Bruno Haible  <bruno@clisp.org>
61947
61948         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61949         Reported by Mark D. Baushke <mdb@cvshome.org>.
61950
61951 2004-11-04  Bruno Haible  <bruno@clisp.org>
61952
61953         2004-09-11  Bruno Haible  <bruno@clisp.org>
61954                 * allocsa.valgrind: New file.
61955         2004-02-06  Bruno Haible  <bruno@clisp.org>
61956                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61957                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61958                 Reported by Christopher Seip <chris.seip@hp.com>.
61959
61960 2004-11-04  Bruno Haible  <bruno@clisp.org>
61961
61962         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61963         (Makefile.am): Distribute it.
61964
61965 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61968         with errno == ERANGE if the buffer is too small.
61969         Problem reported by Mark D. Baushke.
61970
61971 2004-11-03  Albert Chin  <china@thewrittenword.com>
61972             Paul Eggert  <eggert@cs.ucla.edu>
61973
61974         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61975         equivalent, substitute $ac_type for equivalent type rather than
61976         blindly using uint32_t *always* which won't work if uint32_t is not
61977         available.  Define _UINT32_T to work around typedef of uint32_t if
61978         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
61979         2.5.1.
61980
61981 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61982
61983         * m4/jm-macros.m4: Sync from coreutils.
61984         (gl_MACROS): Check for mbrlen, for pathchk.
61985         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61986
61987 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         * lib/xreadlink.c (MAXSIZE): New macro.
61990         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61991         size does not exceed MAXSIZE.  Avoid cast.
61992         As suggested by Mark D. Baushke in
61993         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61994         if readlink fails with buffer size just under MAXSIZE, try again
61995         with MAXSIZE.
61996
61997 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
62000
62001 2004-11-02  Derek R. Price  <derek@ximbiot.com>
62002         and  Paul Eggert  <eggert@cs.ucla.edu>
62003
62004         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
62005         (get_date): Overparenthesize to avoid GCC warning.
62006
62007 2004-11-02  Bruno Haible  <bruno@clisp.org>
62008
62009         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
62010         returns void.
62011
62012 2004-11-02  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
62015         function returns void.
62016
62017 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62018
62019         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
62020         fflush_unlocked, flockfile, funlockfile, funlockfile,
62021         fputs_unlocked, putc_unlocked.
62022
62023 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62026         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
62027         already declared.
62028
62029 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62030
62031         * modules/getdate (Files): Add doc/getdate.texi.
62032         (Depends-on): Add setenv, xalloc.
62033
62034 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62035
62036         * lib/getdate.y: Add support for TZ="foo" within a date string.
62037         Fix some bugs near time_t boundaries.  Reject dates with
62038         out-of-range components, e.g., "Sept 31".
62039         Include <stdlib.h>, "setenv.h", "xalloc.h".
62040         (ISDIGIT_LOCALE): Remove; unused.
62041         Note that the TZ and time functions used here are not reentrant.
62042         (mktime_ok, get_tz): New functions.
62043         (TZBUFSIZE): New constant.
62044         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
62045         This requires that we sometimes generate our own TZ="XXX..." setting.
62046
62047 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * doc/getdate.texi: New file, from coreutils with modifications for
62050         the new TZ parsing.
62051
62052 2004-10-27  Derek R. Price  <derek@ximbiot.com>
62053
62054         * lib/mktime.c (not_equal_tm): Remove redundant check.
62055
62056 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62057
62058         * modules/regex (lib_SOURCES): Add regex.c.
62059         Reported by James Youngman in
62060         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
62061
62062 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62063
62064         * lib/getdate.y: Use Bison 1.875 features, and some minor
62065         code cleanups.  This change does not affect semantics.
62066         Don't include <stdlib.h>; no longer needed.
62067         Don't include unlocked-io.h; only the "#if TEST" code uses
62068         stdio, and performance isn't crucial there.
62069         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
62070         Bison 1.875 features as described below.
62071         All uses of "PC." replaced by "pc->".
62072         (YYSTYPE): Add a forward declaration.
62073         (yylex, yyerror): Use full prototypes in forward decls.
62074         Use "%pure-parser" rather than obsolescent "%pure_parser".
62075         Use %parse-param and %lex-param instead of obsolescent
62076         YYPARSE_PARAM and YYLEX_PARAM.
62077         (meridian_table, month_and_day_table, time_units_table,
62078         relative_time_table, time_zone_table, military_table,
62079         lookup_zone, lookup_word, get_date):
62080         Use NULL instead of 0 where appropriate.
62081         (to_hour): Avoid abort (), to avoid a dependency on
62082         stdlib.h.
62083         (yyerror, yylex): Now accepts parser_control * arg.
62084         (main) [TEST]: Use '\0' rather than 0 for char.
62085
62086 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62087
62088         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62089
62090 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62091
62092         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62093         It's now the caller's responsibility to handle the case where
62094         !HAVE_GETPAGESIZE && !defined getpagesize.
62095
62096         * lib/mktime.c (leapyear): Arg is long int, not int.
62097
62098 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62099
62100         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62101
62102 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62103
62104         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62105         missing.  Problem reported by James Youngman.
62106
62107 2004-10-16  Simon Josefsson  <jas@extundo.com>
62108
62109         * gnulib-tool: Fix comments.  Fix parse problem.
62110         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62111
62112 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62115         implementation of getopt_long.  Problem reported by Alexander Taler in:
62116         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62117
62118 2004-10-15  Bruno Haible  <bruno@clisp.org>
62119
62120         * gnulib-tool: Untabify. Initialize supplied_libname.
62121         (func_usage): More homogenous output.
62122         (func_modules_transitive_closure, func_modules_to_filelist,
62123         func_emit_lib_Makefile_am): New functions.
62124         (func_import): New function, extracted from big case statement. Use
62125         func_get_license, func_modules_transitive_closure,
62126         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62127         opt_lgpl. Don't use test -a, as it's not portable.
62128         (func_create_testdir): Use func_modules_transitive_closure,
62129         func_modules_to_filelist, func_emit_lib_Makefile_am.
62130
62131 2004-10-15  Bruno Haible  <bruno@clisp.org>
62132
62133         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62134
62135 2004-10-15  Bruno Haible  <bruno@clisp.org>
62136
62137         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62138         the portions belonging to each module.
62139         Suggested by Derek Robert Price <derek@ximbiot.com>.
62140
62141 2004-10-12  Simon Josefsson  <jas@extundo.com>
62142
62143         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62144         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62145         to real functions.
62146
62147 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62148
62149         * modules/vsnprintf: New file.
62150
62151 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62152
62153         * m4/vsnprintf.m4: New file.
62154
62155 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62156
62157         * lib/vsnprintf.h: New file.
62158         * lib/vsnprintf.c: New file.
62159
62160 2004-10-11  Bruno Haible  <bruno@clisp.org>
62161
62162         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62163         vsnprintf.
62164
62165 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62168
62169 2004-10-07  Bruno Haible  <bruno@clisp.org>
62170
62171         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62172         fits into the provided buffer.
62173
62174 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * lib/diacrit.c, diacrit.h: Add GPL notice.
62177
62178         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62179         notice.
62180         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62181         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62182         This avoids a potential constant-folding bug.
62183
62184 2004-10-05  Bruno Haible  <bruno@clisp.org>
62185
62186         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62187         for the declaration of strsep.
62188
62189 2004-10-05  Bruno Haible  <bruno@clisp.org>
62190
62191         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62192
62193 2004-10-04  Simon Josefsson  <jas@extundo.com>
62194
62195         * modules/memmem: New file.
62196         * tests/test-memmem.c: New file.
62197         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62198
62199 2004-10-04  Simon Josefsson  <jas@extundo.com>
62200
62201         * m4/memmem.m4: New file.
62202
62203 2004-10-04  Simon Josefsson  <jas@extundo.com>
62204
62205         * lib/memmem.h: New file.
62206         * lib/memmem.c: New file, taken from glibc.
62207
62208 2004-10-04  Simon Josefsson  <jas@extundo.com>
62209
62210         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62211         '#ifdef USE_UNLOCKED_IO'.
62212
62213 2004-10-04  Simon Josefsson  <jas@extundo.com>
62214
62215         * config/srclist.txt: Add memmem from glibc.
62216
62217 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62218
62219         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62220
62221         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62222         modules/exclude, modules/getdate, modules/getline,
62223         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62224         modules/getusershell, modules/linebuffer, modules/md5,
62225         modules/mountlist, modules/posixtm, modules/readtokens,
62226         modules/readutmp, modules/regex, modules/sha1,
62227         modules/version-etc, modules/yesno:
62228         Remove dependency on unlocked-io.
62229
62230 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62231
62232         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62233
62234         * m4/unlocked-io.m4: Add copyright notice.
62235         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62236
62237 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62238
62239         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62240         * lib/xmalloc.c (xmemdup): Likewise.
62241         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62242         XFREE): Remove these long-obsolescent macros.
62243         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62244         * lib/xstrdup.c: Remove.
62245
62246         * lib/regex.c (re_comp): Cast gettext return value to char *,
62247         Problem reported by Martin Neitzel via Mark D. Baushke.
62248
62249 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62252         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62253         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62254         regex.c, sha1.c, version-etc.c, yesno.c:
62255         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62256         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62257         the includer's responsibility.
62258
62259         Sync from coreutils.
62260
62261         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62262         points to the start of a string, as the C Standard says the
62263         resulting behavior is undefined.
62264
62265         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62266         simple -> simple_backups, numbered_existing ->
62267         numbered_existing_backups, numbered -> numbered_backups
62268         to avoid shadowing problems.  All uses changed.
62269         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62270         * lib/backupfile.c (check_extension, numbered_backup):
62271         Rename locals to avoid shadowing 'basename'.
62272         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62273         once.
62274
62275         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62276         * lib/.cvsignore: Add getopt.h.
62277
62278 2004-10-04  Bruno Haible  <bruno@clisp.org>
62279
62280         * modules/README: New file.
62281         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62282         not a module.
62283
62284 2004-10-02  Jim Meyering  <jim@meyering.net>
62285
62286         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62287
62288 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62289
62290         * modules/strsep: New file.
62291
62292 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62293
62294         * m4/strsep.m4: New file.
62295
62296 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62297
62298         * lib/strsep.h: New file.
62299         * lib/strsep.c: New file.
62300
62301 2004-10-01  Simon Josefsson  <jas@extundo.com>
62302
62303         * lib/snprintf.c (snprintf): Handle size==0.
62304
62305 2004-10-01  Simon Josefsson  <jas@extundo.com>
62306             Bruno Haible  <bruno@clisp.org>
62307
62308         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62309         (snprintf): Declare 'args'.
62310
62311 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62312
62313         * lib/snprintf.c: Remove comments as to why each header is needed.
62314
62315 2004-10-01  Bruno Haible  <bruno@clisp.org>
62316
62317         * MODULES.html.sh: Add strsep.
62318
62319 2004-09-30  Simon Josefsson  <jas@extundo.com>
62320
62321         * modules/snprintf: New file.
62322
62323 2004-09-30  Simon Josefsson  <jas@extundo.com>
62324
62325         * m4/snprintf.m4: New file.
62326
62327 2004-09-30  Simon Josefsson  <jas@extundo.com>
62328
62329         * lib/snprintf.h, lib/snprintf.c: New files.
62330
62331 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62332
62333         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62334         (hol_entry_help): Never translate an empty string.
62335         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62336         * lib/argp.h (OPTION_NO_TRANS): New option.
62337
62338 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         * modules/argp (Maintainer): Replace Simon Josefsson
62341         by Sergey Poznyakoff.
62342
62343 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62346         changes merged back into glibc.
62347
62348 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62349
62350         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62351
62352 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62353
62354         * lib/xvasprintf.c: Include xalloc.h.
62355         (xvasprintf): Use xalloc_die, not xmalloc_die.
62356
62357 2004-09-29  Bruno Haible  <bruno@clisp.org>
62358
62359         * modules/alloca-opt: New file, derived from modules/alloca.
62360         * modules/allocsa: Depend on alloca-opt instead of alloca.
62361         * modules/setenv: Likewise.
62362         * modules/vasnprintf: Likewise.
62363         * MODULES.html.sh: Add alloca-opt.
62364
62365 2004-09-28  Simon Josefsson  <jas@extundo.com>
62366
62367         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62368         LGPL, and to replace license template from GPL to LGPL.
62369
62370 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62371
62372         * modules/dummy: Change license to LGPL.
62373
62374 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62375
62376         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62377
62378 2004-09-24  Simon Josefsson  <jas@extundo.com>
62379
62380         * modules/minmax (License): Change from GPL to LGPL.
62381
62382 2004-09-23  Simon Josefsson  <jas@extundo.com>
62383
62384         * gnulib-tool (--import): Typo.
62385
62386 2004-09-23  Simon Josefsson  <jas@extundo.com>
62387
62388         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62389
62390 2004-09-22  Bruno Haible  <bruno@clisp.org>
62391
62392         * modules/*: Add 'License' field.
62393         * gnulib-tool: Accept --extract-license option.
62394         (func_get_license): New function.
62395
62396 2004-09-21  Bruno Haible  <bruno@clisp.org>
62397
62398         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62399         Reported by Simon Josefsson.
62400
62401 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62404         gl_AC_TYPE_LONG_LONG.
62405
62406 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62407
62408         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62409
62410 2004-09-18  Simon Josefsson  <jas@extundo.com>
62411         and  Paul Eggert  <eggert@cs.ucla.edu>
62412
62413         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62414         calls with autoreconf.  Define GL_LIB.
62415
62416 2004-09-14  Karl Berry  <karl@gnu.org>
62417
62418         * config/srclist.txt: unsync setenv.c, sigh.
62419
62420 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62421
62422         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62423         Problem reported by Bruno Haible in:
62424         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62425
62426 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62427
62428         * config/srclist.txt: Comment out argp-pvh.c.
62429
62430 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62433         in case some system header has #define'd it.  Problem reported by
62434         Soeren D. Schulze in
62435         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62436
62437 2004-09-09  Karl Berry  <karl@gnu.org>
62438
62439         * regex.[ch]: delete from the root.  These were supposed to be
62440                 synced with emacs cvs, but this has not happened for about
62441                 a year, and anyway nothing else uses emacs regex.[ch].
62442                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62443                 lib/regex[.ch] is untouched.
62444
62445 2004-09-09  Bruno Haible  <bruno@clisp.org>
62446
62447         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62448
62449 2004-09-09  Bruno Haible  <bruno@clisp.org>
62450
62451         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62452         modifications.
62453         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62454
62455 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62456
62457         * modules/xvasprintf: New file.
62458         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62459
62460 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62461
62462         * lib/xvasprintf.h: New file.
62463         * lib/xvasprintf.c: New file.
62464         * lib/xasprintf.c: New file.
62465
62466 2004-09-08  Bruno Haible  <bruno@clisp.org>
62467
62468         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62469
62470 2004-09-08  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62473         length is > INT_MAX.
62474         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62475         more.
62476
62477 2004-09-08  Bruno Haible  <bruno@clisp.org>
62478
62479         * lib/stdint_.h: New file, taken from GNU clisp.
62480
62481 2004-09-08  Bruno Haible  <bruno@clisp.org>
62482             Oskar Liljeblad  <oskar@osk.mine.nu>
62483
62484         * modules/stdint: New file.
62485         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62486
62487 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62488
62489         Import from coreutils.
62490         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62491         strings on unbounded length.  alloca's performance benefits aren't
62492         that important here.
62493         (V_STRDUP): Remove.
62494         (parse_with_separator): New function, with most of the internals
62495         of the old parse_user_spec.  Allow user to omit both user and group,
62496         for compatibility with FreeBSD.
62497         Clone only the user name, not the entire spec.
62498         Do not set *uid, *gid unless entirely successful.
62499         Avoid memory leak in some failing cases.
62500         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62501         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62502         (parse_user_spec): Rewrite to use parse_with_separator.
62503
62504 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         * modules/userspec: Don't depend on alloca.
62507
62508 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62511
62512 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62515         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62516         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62517
62518 2004-08-16  Simon Josefsson  <jas@extundo.com>
62519
62520         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62521         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62522         Add --dry-run for --import.
62523         Let user provided command line parameters override configure.ac
62524         settings.
62525
62526 2004-08-12  Simon Josefsson  <jas@extundo.com>
62527
62528         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62529         as discussed with Paul Eggert in threads rooted at
62530         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62531         and
62532         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62533         Before, the test was empty, and relied on ELIDE_CODE in source
62534         code.)
62535         (gl_PREREQ_GETOPT): New macro.
62536         (gl_GETOPT): Use them.
62537
62538 2004-08-12  Simon Josefsson  <jas@extundo.com>
62539
62540         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62541         * lib/getopt_.h: Renamed from getopt.h.
62542
62543 2004-08-12  Simon Josefsson  <jas@extundo.com>
62544
62545         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62546         Change default library name from libfoo to libgnu.
62547         Now, if you have a configure.ac that says:
62548                 gl_SOURCE_BASE(gl)
62549                 gl_M4_BASE(gl/m4)
62550                 gl_MODULES(error getopt etcetera)
62551                 gl_INIT
62552         you can import all you need by running:
62553                 ../gnulib/gnulib-tool --import
62554
62555         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62556         (Makefile.am): Rewrite, use logic from argz.
62557         (Include): Use <getopt.h> instead of "getopt.h".
62558
62559 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62560
62561         * modules/argp (Files): Add m4/unlocked-io.m4.
62562         (Depends-on): Add extensions.
62563
62564 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62567         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62568         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62569         Check for program_invocation_name, program_invocation_short_name,
62570         flockfile, funlockfile, features.h, _getopt_long_only_r.
62571
62572 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62573
62574         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62575         its complicated substitute.
62576         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62577         and program_invocation_name.
62578         (__argp_basename) [!_LIBC]: Remove; the only use was
62579         replaced by its body.
62580         (__argp_short_program_name): Change condition from
62581         !defined __argp_short_program_name to
62582         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62583         to match argp-namefrob.h.
62584         (__argp_failure): Don't assume strerror_r returns char *.
62585         * lib/argp-parse.c (N_): Define unconditionally.
62586         (argp_default_options): Fill out initializers with 0 to avoid
62587         gcc warnings.
62588
62589 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62590
62591         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62592         getopt1.c.
62593
62594 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62595
62596         Merge from coreutils.
62597
62598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62599
62600         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62601         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62602
62603 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         Merge from coreutils.
62606
62607         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62608         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62609         for Reliant Unix 5.43.
62610
62611         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62612         (union fooround): Use uintmax_t, not long int.
62613         The rest is a merge from libc:
62614         [defined _LIBC]: Include <shlib-compat.h>.
62615         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62616
62617         * lib/settime.c (settime): Recode to avoid warning with
62618         Sun Forte C 6U2.
62619
62620         * lib/strverscmp.c: Convert to UTF-8.
62621
62622 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62625         m4/uintmax_t.m4.
62626
62627 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62628
62629         * modules/xalloc-die: New file.
62630         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62631
62632         * modules/md5 (Files): Add m4/uint32_t.m4.
62633         * modules/sha1: Renamed from modules/sha.
62634         (Files):
62635         Rename lib/sha.h to lib/sha1.h.
62636         Rename lib/sha.c to lib/sha1.c.
62637         Rename m4/sha.m4 to m4/sha1.m4.
62638         (lib_SOURCES): Likewise.
62639         (configure.ac): Rename gl_SHA to gl_SHA1.
62640         (Include): sha.h -> sha1.h.
62641
62642 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62645         * m4/sha1.m4: Renamed from sha.m4.
62646         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62647
62648 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62649
62650         * lib/obstack.h (obstack_empty_p):
62651         Don't assume that chunk->contents is suitably aligned.
62652         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62653         Likewise. Problem reported by Benno in
62654         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62655
62656         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62657         readable.  This could be improved further but it'd take some work.
62658
62659 2004-08-08  Simon Josefsson  <jas@extundo.com>
62660
62661         * modules/xgethostname (Depends-on): Remove exit and error (not
62662         used).
62663
62664         * modules/getpass-gnu: Add getpass.h.
62665         (Depends-on): Add stdbool.
62666         * modules/getpass: Add getpass.h.
62667
62668 2004-08-08  Simon Josefsson  <jas@extundo.com>
62669
62670         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62671         Check getpass declaration.
62672
62673 2004-08-08  Simon Josefsson  <jas@extundo.com>
62674
62675         * lib/xgethostname.c: Don't include error.h (not used).
62676
62677         * lib/getpass.h: Add.
62678         * lib/getpass.c: Include getpass.h first.
62679
62680 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62681
62682         * lib/xalloc-die.c: New file.
62683         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62684         All uses removed.
62685         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62686         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62687         xalloc-die.c.
62688         (_, N_, xalloc_die): Move to xalloc-die.c.
62689         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62690         so that we needn't mess with xalloc_msg_memory_exhausted.
62691
62692         * lib/sha1.h: Renamed from sha.h.
62693         (SHA1_H): Renamed from _SHA_H.
62694         (sha1_ctx): Renamed from sha_ctx.
62695         (sha1_init_ctx): Renamed from sha_init_ctx.
62696         (sha1_process_block): Renamed from sha_process_block.
62697         (sha1_process_bytes): Renamed from sha_process_bytes.
62698         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62699         (sha1_read_ctx): Renamed from sha_read_ctx.
62700         (sha1_stream): Renamed from sha_stream.
62701         (sha1_buffer): Renamed from sha_buffer.
62702         * lib/sha1.c: Likewise; renamed from sha.c.
62703         Do not include <sys/types.h>.
62704         Include <stddef.h> rather than <stdlib.h>.
62705
62706 2004-08-08  Bruno Haible  <bruno@clisp.org>
62707
62708         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62709         FILESYSTEM_PREFIX_LEN.
62710         * lib/progreloc.c: Likewise.
62711         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62712
62713 2004-08-06  Simon Josefsson  <jas@extundo.com>
62714
62715         * modules/progname (Depends-on): Don't depend on stdbool.
62716
62717 2004-08-06  Simon Josefsson  <jas@extundo.com>
62718
62719         * modules/getsubopt: New file.
62720         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62721         getsubopt.
62722
62723 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62724
62725         More merge from coreutils.
62726
62727         * m4/utimens.m4, m4/utimecmp.m4: New files.
62728         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62729         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62730         prereq.m4, sha.m4: Import changes from coreutils.
62731
62732 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62733
62734         More merge from coreutils.
62735         * modules/raise, modules/readtokens0, modules/utimens:
62736         * modules/utimecmp, module/xnanosleep: New files.
62737         * modules/strftime: Add lib/strftime.h.
62738         Change include from <time.h> to "strftime.h".
62739         * modules/yesno: Add lib/yesno.h.
62740         * modules/backupfile: Remove lib/addext.c.
62741         * modules/euidaccess: Add stat-macros.h.
62742         * modules/canonicalize, modules/euidaccess,
62743         modules/filemode, modules/lchown, modules/makepath,
62744         modules/rmdir, modules/stat: Likewise.
62745
62746 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62747
62748         Merge from tar.
62749         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62750         SIZE_MAX is a valid preprocessor constant.
62751         (__argp_basename): Change from "#ifndef _LIBC"
62752         to "#ifndef __argp_short_program_name", so that
62753         we don't compile these functions for tar.
62754
62755         More merges from coreutils.
62756         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62757         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62758         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62759         * lib/addext.c: Remove; no longer needed.
62760         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62761         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62762         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62763         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62764         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62765         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62766         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62767         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62768         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62769         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62770         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62771         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62772         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62773         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62774         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62775         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62776         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62777         Import changes from coreutils.
62778
62779 2004-08-05  Simon Josefsson  <jas@extundo.com>
62780
62781         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62782
62783 2004-08-05  Simon Josefsson  <jas@extundo.com>
62784
62785         * m4/getsubopt.m4: New file.
62786
62787 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         Merge from coreutils.
62790
62791         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62792         * m4/getcwd-path-max.m4: New files.
62793
62794         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62795         FILESYSTEM_PREFIX_LEN ->
62796         FILE_SYSTEM_PREFIX_LEN.
62797         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62798         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62799         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62800         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62801
62802         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62803         prerequisite modules now handle the DOS stuff.
62804         Don't check for unistd.h.
62805
62806 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62807
62808         Merge from coreutils.
62809
62810         * lib/.gdb-history: Remove; this doesn't belong here.
62811
62812         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62813         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62814         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62815         * lib/getcwd.c: New files.
62816
62817         * lib/dirname.h: Include <stdbool.h>.
62818         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62819         for consistency with POSIX terminology.  All uses changed.
62820         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62821         (strip_trailing_slashes): Use bool for booleans.
62822         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62823
62824         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62825         sometimes returns a positive errno value even when it succeeds.
62826         (print_errno_message) [!LIBC]: Fall back on strerror if
62827         __strerror_r fails.
62828
62829         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62830         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62831         (longest_relative_suffix): New function.
62832         (path_concat): Use it.  Assume first argument is not NULL.
62833         Port to DOS.  Omit redundant separators.
62834         Report an error instead of returning NULL.
62835         Use mempcpy instead of memcpy.
62836         (xpath_concat): Remove: not declared or used.
62837
62838         * lib/same.h: Include <stdbool.h>
62839         (same_name): Return bool, not int.
62840         * lib/same.c (same_name): Likewise.
62841         (errno): Don't declare; we assume C89 or better now.
62842
62843         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62844         if not already defined.
62845
62846         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62847         * lib/dup-safer.c (errno): Likewise.
62848
62849 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         Merge from coreutils.
62852         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62853         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62854         * modules/path-concat: Don't depend on strdup.
62855
62856 2004-08-03  Simon Josefsson  <jas@extundo.com>
62857
62858         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62859         * lib/progname.h: Don't include stdbool.h.
62860
62861 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62862
62863         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62864         * MODULES.html.sh (func_all_modules): Remove fatal.
62865
62866 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62867
62868         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62869
62870 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62871
62872         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62873         working.
62874
62875 2004-08-02  Simon Josefsson  <jas@extundo.com>
62876
62877         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62878         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62879         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62880
62881 2004-08-01  Simon Josefsson  <jas@extundo.com>
62882
62883         * lib/xgetdomainname.c: Include stdlib.h, for free().
62884
62885 2004-07-19  Bruno Haible  <bruno@clisp.org>
62886
62887         * MODULES.html.sh (func_all_modules): Add dummy.
62888
62889 2004-07-16  Simon Josefsson  <jas@extundo.com>
62890
62891         * modules/dummy: New file.
62892
62893 2004-07-16  Simon Josefsson  <jas@extundo.com>
62894
62895         * lib/dummy.c: New file.
62896
62897 2004-07-16  Bruno Haible  <bruno@clisp.org>
62898
62899         * lib/backupfile.h: Add extern "C" for C++.
62900         * lib/closeout.h: Likewise.
62901         * lib/copy-file.h: Likewise.
62902         * lib/findprog.h: Likewise.
62903         * lib/full-write.h: Likewise.
62904         * lib/pathname.h: Likewise.
62905         * lib/progname.h: Likewise.
62906         * lib/stpcpy.h: Likewise.
62907         * lib/stpncpy.h: Likewise.
62908         * lib/strcase.h: Likewise.
62909         * lib/strstr.h: Likewise.
62910         * lib/xalloc.h: Likewise.
62911
62912         * lib/mbswidth.h: Add extern "C" for C++.
62913         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62914
62915 2004-07-13  Robert Millan  <robertmh@gnu.org>
62916
62917         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62918
62919 2004-07-09  Simon Josefsson  <jas@extundo.com>
62920
62921         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62922         failed without this.)
62923
62924 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62925
62926         * modules/chown (Files): Add lib/fchown-stub.c, since
62927         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62928
62929 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         * lib/fchown-stub.c: New file.
62932
62933 2004-06-24  Jim Meyering  <jim@meyering.net>
62934
62935         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62936
62937 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * modules/argz: Omit "#include".
62940
62941         * MODULES.html.sh (func_all_modules): Add calloc, to match
62942         2004-06-01 addition of calloc module.
62943
62944 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62945
62946         * m4/argz.m4: New file, which is autoupdated from libtool.
62947
62948 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62949
62950         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62951         libtool.
62952
62953 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62954
62955         * config/srclist-update: Don't insist on "USA." before the
62956         close-comment, as libtool omits the period and puts the */ on a
62957         separate line.
62958         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62959         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62960
62961 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62962
62963         * modules/argz: New file.
62964         * MODULES.html.sh (func_all_modules): Add argz.
62965
62966 2004-06-12  Jim Meyering  <jim@meyering.net>
62967         and  Paul Eggert  <eggert@cs.ucla.edu>
62968
62969         * modules/hash (Files): Add lib/xalloc.h.
62970         * modules/pipe (Depends-on): Add wait-process.
62971         * modules/stat (Depends-on): Add xalloc.
62972         * modules/userspec (Files): Add lib/userspec.h.
62973         * modules/xstrto
62974
62975         Upgrade from gettext-0.13.
62976         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
62977         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
62978         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
62979
62980 2004-06-10  Jim Meyering  <jim@meyering.net>
62981
62982         * lib/calloc.c: New file.
62983
62984 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         * lib/getdate.y (yylex): Allow space between sign and number.
62987         Problem reported by Dan Jacobson.
62988
62989 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62990
62991         Merge from coreutils CVS.
62992
62993         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62994         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62995         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62996         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62997         xstrtol.m4: Fix copyright date and/or serial number.
62998
62999         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
63000         See if we need an fchown replacement.
63001         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
63002         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
63003         and use the replacement function if we detect either defect.
63004
63005         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
63006         gl_UTIMECMP.
63007
63008 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63009         and  Jim Meyering  <jim@meyering.net>
63010
63011         Merge from coreutils CVS.
63012
63013         * lib/stat-macros.h: New file, with contents from file-type.h
63014         and coreutils' system.h.
63015         * lib/file-type.c: Include "stat-macros.h".
63016         * lib/file-type.h (file_type): Move all macro definitions to new file,
63017         stat-macros.h.
63018
63019         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
63020         Wrap old code with this conditional.
63021         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
63022         function that does not dereference symlinks.
63023         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
63024
63025         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
63026         dependency problems.
63027         (xreadlink): Accept new arg SIZE, for efficiency.
63028         All decls and uses changed.
63029         * lib/xreadlink.h: Include <stddef.h>, for size_t.
63030
63031         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
63032         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
63033
63034         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
63035         sysexits.h.
63036
63037 2004-06-01  Jim Meyering  <jim@meyering.net>
63038
63039         * m4/calloc.m4: New file.
63040
63041 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
63044         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
63045         Also, fix a typo in a diagnostic.
63046
63047 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
63050         or AC_FUNC_REALLOC.
63051
63052 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
63055         macros to be defined.
63056         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
63057         the allocator returns NULL because the requested size is zero.
63058
63059 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
63062         var.  Add comment explaining why libc still defines it.  This
63063         merges the following patch from glibc:
63064         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
63065
63066 2004-05-20  Andreas Schwab  <schwab@suse.de>
63067
63068         * m4/free.m4: Replace free if it not known to work, not the other
63069         way round.
63070
63071 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63072
63073         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
63074         present in glibc since revision 1.1 of this file.
63075         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
63076         obstack_alignment_mask, obstack_alloc, obstack_base,
63077         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63078         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63079         obstack_grow0, obstack_init, obstack_int_grow,
63080         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63081         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63082         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63083         nonexistent functions.
63084
63085 2004-05-18  Karl Berry  <karl@gnu.org>
63086
63087         * config/srclist.txt: break link for vasnprintf.c.
63088
63089 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         Port obstack to the AS/400, where pointers are 16 bytes wide and
63092         you cannot cast an integer to a valid pointer.  This patch is
63093         currently waiting to be integrated into glibc; see
63094         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63095
63096         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63097         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63098         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63099         (struct obstack): temp member is now a union of a pointer and
63100         an integer, instead of an integer.  All integer uses changed.
63101         This does not affect the physical layout of struct obstack,
63102         except on hosts (like the AS/400) where the size or alignment of
63103         void * is greater than that of ptrdiff_t.
63104         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63105         __STDC__)]: Store temporary in pointer member of union, not
63106         integer member.
63107         * lib/obstack.c: Include <stddef.h>, for offsetof.
63108         (struct fooalign): Remove; it doesn't need a name.
63109         (union fooround): Change double to long double, and add void *.
63110         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63111         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63112         not a macro.  Hence the values are always int; so remove all
63113         casts-to-int in uses.
63114
63115 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63118         we can get this patch merged into glibc.
63119
63120 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63121             Paul Eggert  <eggert@cs.ucla.edu>
63122
63123         * m4/argp: Depend on alloca.
63124
63125 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63126             Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63129         freecoding.
63130
63131 2004-05-17  Bruno Haible  <bruno@clisp.org>
63132
63133         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63134         precision that consists of a '.' followed by an empty digit string.
63135         Patch by Tor Lillqvist <tml@iki.fi>.
63136
63137 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63138
63139         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63140         for backward compatibility with older code.  We need our own
63141         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63142         it under some other name, and our alloca.h will define it.
63143
63144 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63145             Derek Price  <derek@ximbiot.com>
63146
63147         * lib/alloca.c: Include <alloca.h>, to get our interface.
63148         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63149         include <alloca.h> first.  Use C89 prototype for alloca; this
63150         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63151         Use #elif for simplicity, since we can assume C89 now.
63152         Don't try to source the system alloca.h since it will not be found
63153         and to prevent recursively including its replacement.
63154         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63155         * lib/regex.c: Likewise.
63156
63157 2004-05-16  Derek Price  <derek@ximbiot.com>
63158             Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         getline cleanup.  This changes the getndelim2 API: both order of
63161         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63162         no delimiter).
63163
63164         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63165         interface does that.
63166         (getline): Always use getdelim, so that we don't have two
63167         copies of this code.
63168         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63169         if available.
63170         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63171         (GETNDELIM2_MAXIMUM): New macro.
63172         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63173         instead of the old practice of delim2==0.  All callers changed.
63174         Return -1 on overflow, instead of returning junk.
63175         Do not set *linesize unless allocation succeeds.
63176         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63177         that we include sys/types.h.
63178         * lib/getnline.h: Likewise.
63179         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63180         (getndelim2): Reorder arguments.
63181         * lib/getnline.c (getnline, getndelim):
63182         Don't discard the NMAX argument.
63183         (getnline): Invoke getndelim, to avoid code duplication.
63184         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63185         of (size_t) -1 by callers of the getnline family.
63186
63187 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63190         Check for gettimeofday.
63191         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63192         Check for settimeofday, stime.
63193
63194 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * lib/nanosleep.c (suspended): Change its type from int to
63197         sig_atomic_t volatile.
63198         (first_call): Make it private to rpl_nanosleep, and have it
63199         be zero initially as that's a bit faster.
63200         (my_usleep): Round up fractional times instead of truncating them,
63201         as this is the usual meaning for 'sleep'.
63202
63203         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63204         doesn't work.
63205         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63206         (ENOSYS): Define if not defined.
63207         (settime): Fall back on stime if it exists and settimeofday fails.
63208         But don't bother with fallbacks if a method fails with errno == EPERM.
63209
63210 2004-05-11  Jim Meyering  <jim@meyering.net>
63211
63212         Prior to this change, the save_cwd caller required read access to the
63213         current directory on most systems (ones with the fchdir function).
63214
63215         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63216         fails, try write-only, and finally, resort to using xgetcwd.
63217
63218 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * lib/obstack.c, obstack.h: Import changes from libc.
63221
63222 2004-04-28  Bruno Haible  <bruno@clisp.org>
63223
63224         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63225         also implicitly appends .exe to executables.
63226         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63227         accepts Windows pathnames.
63228         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63229         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63230         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63231         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63232         Reported by Derek Robert Price <derek@ximbiot.com>.
63233
63234 2004-04-21  Karl Berry  <karl@gnu.org>
63235
63236         * config/srclist.txt (localcharset.c): break sync.
63237
63238 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63239
63240         * m4/host-os.m4: Add a copyright notice.
63241
63242 2004-04-20  Jim Meyering  <jim@meyering.net>
63243
63244         Change UTILS_ to gl_ in AC_DEFINE'd names.
63245         Change utils_- and jm_-prefixed variables, too.
63246         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63247         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63248         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63249
63250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63251         Don't emit trailing blanks.
63252         Also rename jm_-prefixed variables to have gl_ prefix.
63253
63254         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63255         Also rename jm_-prefixed variables to have gl_ prefix.
63256
63257         * m4/jm-macros.m4: Reflect the renamings.
63258         * m4/prereq.m4: Likewise.
63259
63260 2004-04-20  Jim Meyering  <jim@meyering.net>
63261
63262         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63263         memory.
63264
63265 2004-04-20  Jim Meyering  <jim@meyering.net>
63266             Bruno Haible  <bruno@clisp.org>
63267
63268         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63269         memory when realloc fails.
63270
63271 2004-04-19  Jim Meyering  <jim@meyering.net>
63272
63273         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63274         now that readutmp.c may call `free (0)'.
63275
63276 2004-04-19  Bruno Haible  <bruno@clisp.org>
63277
63278         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63279         * m4/inttypes_h.m4: Likewise.
63280         * m4/stdint_h.m4: Likewise.
63281         * m4/intmax_t.m4: Likewise.
63282         * m4/uintmax_t.m4: Likewise.
63283
63284 2004-04-18  Jim Meyering  <jim@meyering.net>
63285
63286         * m4/prereq.m4: Don't forbid jm_ prefix.
63287
63288         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63289         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63290         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63291         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63292         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63293         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63294         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63295         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63296         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63297         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63298         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63299         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63300         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63301         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63302         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63303         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63304         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63305         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63306         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63307
63308 2004-04-18  Jim Meyering  <jim@meyering.net>
63309
63310         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63311         failure, don't leak memory and do call END_UTMP_ENT.
63312
63313 2004-04-16  Jim Meyering  <jim@meyering.net>
63314
63315         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63316         coreutils' stat program.
63317         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63318
63319 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63320
63321         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63322         C89.
63323         (CHAR_BIT): Remove, since we assume C89.
63324         Include <stdint.h> if available, as per current Autoconf CVS advice.
63325
63326 2004-03-31  Jim Meyering  <jim@meyering.net>
63327
63328         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63329         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63330         * m4/xalloc.m4: Likewise.
63331
63332 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63333
63334         Merge from coreutils.
63335
63336         * m4/inttostr.m4: New file.
63337         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63338         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63339         Require gl_CLOCK_TIME.
63340         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63341
63342 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63343
63344         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63345         not bool, to be more consistent with Unix conventions.
63346         Suggested by Bruno Haible.
63347
63348         Merge from coreutils.
63349
63350         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63351         * lib/umaxtostr.c: New files.
63352
63353         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63354         the usual <time.h> dance.
63355         (get_date): Change signature to support fractional time stamps.
63356         All callers changed.
63357         * lib/getdate.y: Include "getdate.h" first, as we can now
63358         assume C89 and don't need to worry about 'const'.
63359         Similarly, include "unlocked-io.h" near start, not in middle.
63360         Include <limits.h>.
63361         (textint.value): Use long int rather than int.
63362         (textint.digits): Use size_t rather than int.
63363         (BILLION, LOG10_BILLION): New constants.
63364         (parser_control): New member rel_ns.  Members day_ordinal,
63365         time_zone, month, day, hour, minutes, rel_year, rel_month,
63366         rel_day, rel_hour, rel_minutes, rel_seconds
63367         are now long int, not int.  Member seconds is now struct timespec,
63368         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63369         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63370         not int.
63371         (%union.intval): Now long int, not int.
63372         New member timespec.
63373         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63374         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63375         (spec): Now is a timespec or an item list.
63376         (timespec, items): New nonterminals.
63377         (time, rel, relunit, number, get_date):
63378         Add support for fractional seconds.
63379         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63380         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63381         (to_hour): First arg is now long int, not int.
63382         (to_year): Returns long int, not int.
63383         Don't treat year -70 like 70.
63384         (tm_diff): Returns long int, not int.
63385         (lookup_word): Use bool instead of int when appropriate.
63386         (yylex): Use size_t for count, not int.
63387         Detect overflow when parsing large integer constants.
63388         Add support for fractions.
63389         (get_date): Make pointers 'const' if possible.
63390         Use more-portable code to detect integer overflow.
63391         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63392         Don't use ctime; it's not reliable if the year has >4 digits.
63393
63394         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63395         This is for compatibility with BSD.
63396
63397         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63398         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63399         From coreutils' system.h.
63400
63401         * lib/userspec.c: Don't include "posixver.h".
63402         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63403         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63404         compatible extension.  Simplify code by removing a boolean int
63405         that was always nonzero if a string was nonnull.
63406
63407 2004-03-30  Jim Meyering  <jim@meyering.net>
63408
63409         Merge from coreutils.
63410
63411         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63412         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63413         on some systems one must include <grp.h> before it.
63414         Reported by Christian Krackowizer.
63415
63416 2004-03-30  Jim Meyering  <jim@meyering.net>
63417
63418         Merge from coreutils.
63419
63420         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63421
63422         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63423         an empty input stream.
63424
63425         * lib/readtokens.c: Include <stdbool.h>.
63426         (readtoken): Use `size_t' rather than int/long.
63427         All callers adjusted.
63428         Use `bool' rather than `int' where appropriate.
63429         Use memset rather than an explicit loop.
63430         Use x2nrealloc rather than xrealloc.
63431         Allow the use of `\0' as a delimiter.
63432         (readtokens): Likewise.
63433         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63434
63435 2004-03-30  Jim Meyering  <jim@meyering.net>
63436
63437         * m4/realloc.m4: Remove file, since now it does no more than
63438         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63439         the `configure.ac' section of module/realloc.
63440         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63441
63442 2004-03-30  Bruno Haible  <bruno@clisp.org>
63443
63444         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63445         nonnull.
63446
63447 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63448
63449         Merge changes to getloadavg.c from coreutils and Emacs.
63450
63451         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63452         Define to an expression, not to the empty string.
63453         Include cloexec.h and xalloc.h.
63454         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63455         Use set_cloexec_flag rather than rolling our own.
63456         * lib/cloexec.c, lib/cloexec.h: New files.
63457
63458 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63459
63460         * m4/cloexec.m4: New file.
63461
63462 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63463
63464         * lib/getopt.h: Sync with libc CVS.
63465
63466 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63467             Bruno Haible  <bruno@clisp.org>
63468
63469         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63470         mbswidth.
63471
63472 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63473             Bruno Haible  <bruno@clisp.org>
63474
63475         * lib/mbswidth.h: Include <wchar.h> only if
63476         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63477         <wchar.h>.
63478         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63479
63480 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63481
63482         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63483         Sync with libc CVS.
63484         * lib/getopt_int.h: New file, also synced from libc.
63485
63486 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63487
63488         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63489         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63490         Bring back getopt.c, getopt.h, getopt1.c.
63491
63492 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63493
63494         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63495         All uses changed.  Check for sa_sigaction member; this fixes
63496         a bug first reported by Jason Andrade in
63497         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63498
63499 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63500
63501         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63502         '#if' expressions.  Unlike the code it replaces, it does not
63503         depend on (defined _SC_PAGESIZE).  However, it does depend on
63504         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63505         first reported by Jason Andrade in
63506         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63507
63508 2004-02-25  Simon Josefsson  <jas@extundo.com>
63509
63510         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63511
63512 2004-02-25  Simon Josefsson  <jas@extundo.com>
63513
63514         * lib/strdup.h: New file.
63515         * lib/strdup.c: Include it.
63516         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63517         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63518
63519 2004-02-23  Karl Berry  <karl@gnu.org>
63520
63521         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63522         (from fencepost.gnu.org:/gd/gnuorg).
63523
63524 2004-02-23  Karl Berry  <karl@gnu.org>
63525
63526         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63527         * config/srclist.txt: add maintain/standards documents.
63528
63529 2004-02-18  Bruno Haible  <bruno@clisp.org>
63530
63531         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63532         Reported by Derek Robert Price <derek@ximbiot.com>.
63533
63534 2004-02-16  Karl Berry  <karl@gnu.org>
63535
63536         * config/mkinstalldirs, install-sh: update from automake.
63537
63538 2004-02-06  Karl Berry  <karl@gnu.org>
63539
63540         * m4/po.m4: update from gettext 0.14.1.
63541
63542 2004-02-06  Karl Berry  <karl@gnu.org>
63543
63544         * lib/config.charset: update from gettext 0.14.1.
63545
63546 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63547
63548         Add comments and code, prompted by suggestions from Bruno Haible
63549         for sh-quote.
63550         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63551         describing the enum quoting_style values.
63552         * lib/quotearg.c (quotearg_alloc): New function.
63553         (quotearg_buffer_restyled): Treat lone { and } as special.
63554         Treat = as special.  Work around bug with older shells
63555         that "see" a '\' that is really the 2nd byte of a multibyte char.
63556         Quote empty string with shell_quoting_style.
63557
63558 2004-02-03  Bruno Haible  <bruno@clisp.org>
63559
63560         * m4/pipe.m4: New file, from GNU gettext.
63561
63562 2004-02-03  Bruno Haible  <bruno@clisp.org>
63563
63564         * lib/pipe.h: New file, from GNU gettext.
63565         * lib/pipe.c: New file, from GNU gettext.
63566
63567 2004-01-27  Bruno Haible  <bruno@clisp.org>
63568
63569         * m4/execute.m4: New file, from GNU gettext.
63570
63571 2004-01-27  Bruno Haible  <bruno@clisp.org>
63572
63573         * lib/execute.h: New file, from GNU gettext.
63574         * lib/execute.c: New file, from GNU gettext.
63575         * lib/w32spawn.h: New file, from GNU gettext.
63576
63577 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63578
63579         Merge from diffutils.
63580
63581         * lib/file-type.c (file_type): Add typed memory objects.
63582         * lib/file-type.h (S_TYPEISTMO): New macro.
63583
63584         * lib/c-stack.h (c_stack_action): Remove argv argument.
63585         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63586         (die): Don't calculate message unless segv_action returns.
63587         (get_stack_location, min_address_from_argv, max_address_from_argv,
63588         volatile stack_base, volatile_stack_size): Remove.
63589         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63590         that every segmentation violation is a stack overflow.  (Ouch!)
63591         See Debian bug 136249 (still outstanding) for more info about why
63592         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63593
63594 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63595
63596         Exit-status fix from coreutils.
63597
63598         Use exit_failure consistently in place of EXIT_FAILURE,
63599         so that program exit statuses are consistent on failure.
63600
63601         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63602         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63603         * lib/argmatch.h: Comment fix to match the above.
63604         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63605         Now a macro referring to exit_failure, instead of a separate
63606         variable.  Include "exitfail.h" to get it.
63607         * lib/xstrtol.h: Include "exitfail.h".
63608         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63609
63610         * lib/long-options.c (parse_long_options): Use prototype
63611         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63612         for clarity.
63613
63614 2004-01-21  Jim Meyering  <jim@meyering.net>
63615
63616         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63617         so as not to conflict with a different-sized __mktime_internal
63618         function in GNU libc.
63619         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63620         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63621
63622 2004-01-20  Karl Berry  <karl@gnu.org>
63623
63624         * config/config.guess: update from config.
63625
63626         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63627
63628 2004-01-20  Bruno Haible  <bruno@clisp.org>
63629
63630         Safer stack allocation.
63631         * lib/setenv.c: Include allocsa.h.
63632         (alloca): Remove fallback definition.
63633         (freea): Remove macro.
63634         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63635         instead of freea.
63636
63637 2004-01-20  Bruno Haible  <bruno@clisp.org>
63638
63639         * m4/eealloc.m4: New file, from GNU gettext.
63640
63641 2004-01-20  Bruno Haible  <bruno@clisp.org>
63642
63643         * m4/allocsa.m4: New file, from GNU gettext.
63644
63645 2004-01-20  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/xallocsa.h: New file, from GNU gettext.
63648         * lib/xallocsa.c: New file, from GNU gettext.
63649
63650 2004-01-20  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63653
63654 2004-01-20  Bruno Haible  <bruno@clisp.org>
63655
63656         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63657         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63658         specially.
63659
63660 2004-01-20  Bruno Haible  <bruno@clisp.org>
63661
63662         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63663         patch.
63664
63665 2004-01-20  Bruno Haible  <bruno@clisp.org>
63666
63667         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63668
63669 2004-01-20  Bruno Haible  <bruno@clisp.org>
63670
63671         * lib/eealloc.h: New file.
63672
63673 2004-01-20  Bruno Haible  <bruno@clisp.org>
63674
63675         * lib/binary-io.h: Avoid warnings on Cygwin.
63676
63677 2004-01-20  Bruno Haible  <bruno@clisp.org>
63678
63679         * lib/allocsa.h: New file, from GNU gettext.
63680         * lib/allocsa.c: New file, from GNU gettext.
63681
63682 2004-01-18  Karl Berry  <karl@gnu.org>
63683
63684         * doc/gpl.texi, doc/lgpl.texi: new files.
63685
63686 2004-01-18  Karl Berry  <karl@gnu.org>
63687
63688         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63689         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63690
63691 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63692
63693         Merge from coreutils.
63694
63695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63696         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63697         (gl_DEFAULT_POSIX2_VERSION): Move
63698         the documentation from 'configure' into 'config.hin',
63699         so that 'configure --help' isn't burdened by it and
63700         we don't have to worry about its formatting there.
63701         Reword the documentation so that it's more succinct
63702         and can be run together into a single paragraph.
63703         * m4/same.m4 (gl_SAME): Check for pathconf.
63704
63705 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63706
63707         Merge from coreutils.
63708
63709         * lib/posixver.c: Include posixver.h.
63710
63711         * lib/same.c: Include <stdbool.h>, <limits.h>.
63712         (_POSIX_NAME_MAX): Define if not defined.
63713         (MIN): New macro.
63714         (same_name): If file names are silently truncated, report
63715         that the file names are the same if they are the same after
63716         the silent truncation.
63717
63718         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63719         conversion function.
63720         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63721         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63722         longer needed.
63723
63724 2004-01-15  Jim Meyering  <jim@meyering.net>
63725
63726         Merge from coreutils.
63727
63728         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63729         if no library is required.
63730         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63731         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63732         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63733         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63734         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63735         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63736         value, $ac_cv_search_crypt, if it's "none required".
63737         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63738         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63739         not gl_FUNC_GETLOADAVG.
63740         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63741         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63742
63743 2004-01-15  Jim Meyering  <jim@meyering.net>
63744
63745         Merge from coreutils.
63746
63747         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63748         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63749         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63750
63751         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63752         optional configure-time default.
63753
63754         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63755
63756         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63757
63758 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63759
63760         Merge from coreutils.
63761
63762         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63763         value, $ac_cv_search_nanosleep, if it's "none required".
63764
63765 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63766
63767         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63768         with like-named macro in fnmatch.c.
63769         (EXT): Use an internal constant instead.
63770
63771         Merge fnmatch patches from glibc.
63772         * lib/fnmatch.c (mbsinit): Remove define.
63773         Add libc_hidden_ver (__fnmatch, fnmatch).
63774         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63775         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63776
63777 2004-01-14  Karl Berry  <karl@gnu.org>
63778
63779         * config/install-sh: update from automake.
63780
63781 2004-01-13  Karl Berry  <karl@gnu.org>
63782
63783         * config/install-sh: update from automake.
63784
63785 2004-01-09  Karl Berry  <karl@gnu.org>
63786
63787         * config/install-sh: update from automake.
63788
63789 2004-01-05  Karl Berry  <karl@gnu.org>
63790
63791         * config/config.{sub,guess}: update from config.
63792
63793 2003-12-31  Karl Berry  <karl@gnu.org>
63794
63795         * config/depcomp: update from automake.
63796
63797 2003-12-14  Karl Berry  <karl@gnu.org>
63798
63799         * lib/config.charset: update from gettext-runtime.
63800
63801 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63802
63803         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63804         Bug reported by Alfred M. Szmidt.
63805
63806 2003-12-03  Bruno Haible  <bruno@clisp.org>
63807
63808         * m4/gettext.m4: Upgrade from gettext-0.13.
63809         * m4/po.m4: Upgrade from gettext-0.13.
63810         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63811         * m4/intmax.m4: New file, from gettext-0.13.
63812         * m4/printf-posix.m4: New file, from gettext-0.13.
63813
63814 2003-11-29  Karl Berry  <karl@gnu.org>
63815
63816         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63817
63818 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63819             Bruno Haible  <bruno@clisp.org>
63820
63821         * lib/printf-parse.h: Don't include sys/types.h.
63822         (ARG_NONE): New macro.
63823         (char_directive): Change type of *arg_index fields to size_t.
63824         * lib/printf-parse.c: Don't include sys/types.h.
63825         (SSIZE_MAX): Remove macro.
63826         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63827         Remove unnecessary overflow check.
63828         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63829         fields.
63830
63831 2003-11-25  Bruno Haible  <bruno@clisp.org>
63832
63833         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63834
63835 2003-11-25  Bruno Haible  <bruno@clisp.org>
63836
63837         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63838         gt_TYPE_SSIZE_T.
63839
63840 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63841
63842         * modules/alloca: Remove dependency on xalloc.
63843
63844 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63845
63846         * lib/alloca.c: Remove dependency on xalloc module.
63847         (xalloc_die): Remove.
63848         (memory_full) [!defined emacs]: New macro.
63849         [!defined emacs]: Don't include xalloc.h.
63850         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63851         address arithmetic overflows.  Change datatypes a bit to avoid
63852         unnecessary casts.
63853
63854 2003-11-22  Jim Meyering  <jim@meyering.net>
63855
63856         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63857         s/size/size_t/.
63858
63859 2003-11-21  Karl Berry  <karl@gnu.org>
63860
63861         * config/config.{sub,guess}: update from config.
63862
63863 2003-11-18  Karl Berry  <karl@gnu.org>
63864
63865         * config/config.{sub,guess}: update from config.
63866
63867         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63868
63869 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63870
63871         * README: Mention that S+T cannot overflow if S is the size of
63872         an existing object and T is sufficiently small.
63873
63874 2003-11-17  Jim Meyering  <jim@meyering.net>
63875
63876         On systems without utime and without a utimes function capable of
63877         dealing with a NULL struct utimbuf* argument, this utime replacement
63878         could -- in unusual circumstances -- leak a file descriptor.
63879         * lib/utime.c: Include <unistd.h> and <errno.h>.
63880         (utime_null): Be sure to close `fd' and to preserve errno.
63881         Reported by Geoff Collyer via Arnold Robbins.
63882
63883 2003-11-17  Bruno Haible  <bruno@clisp.org>
63884
63885         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63886         (Depends-on): Add xsize.
63887
63888 2003-11-17  Bruno Haible  <bruno@clisp.org>
63889
63890         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63891
63892 2003-11-17  Bruno Haible  <bruno@clisp.org>
63893
63894         * lib/vasnprintf.c (alloca): Remove fallback definition.
63895         (freea): Remove definition.
63896         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63897         Reported by Paul Eggert.
63898
63899 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63900             Bruno Haible  <bruno@clisp.org>
63901
63902         Protect against address arithmetic overflow.
63903         * lib/printf-args.h: Include stddef.h.
63904         (arguments): Change type of field 'count' to size_t.
63905         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63906         'unsigned int' where appropriate.
63907         * lib/printf-parse.h: Include sys/types.h.
63908         (char_directive): Change type of *arg_index fields to ssize_t.
63909         (char_directives): Change type of fields 'count', max_*_length to
63910         size_t.
63911         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63912         (SSIZE_MAX): Define fallback value.
63913         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63914         instead of 'int' where appropriate. Check a_allocated, d_allocated
63915         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63916         * lib/vasnprintf.c: Include xsize.h.
63917         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63918         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63919         overflow. Avoid wraparound when converting a width or precision from
63920         decimal to binary.
63921
63922 2003-11-16  Bruno Haible  <bruno@clisp.org>
63923
63924         Update from GNU gettext.
63925         * lib/printf-parse.c: Generalize to it can be compiled for wide
63926         strings.
63927         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63928         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63929         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63930         SNPRINTF): New macros.
63931         Don't include <alloca.h> if the file is used inside libintl.
63932         (local_wcslen): New function, for Solaris 2.5.1.
63933         (VASNPRINTF): Use it instead of wcslen.
63934
63935 2003-11-16  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/xsize.h (xmax): New function.
63938         (xsum, xsum3, xsum4): Declare as "pure" functions.
63939
63940 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63941
63942         * modules/xalloc (Files): Undo latest change, since xalloc.h
63943         no longer needs SIZE_MAX or PTRDIFF_MAX.
63944
63945 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63946
63947         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63948         gl_PTRDIFF_MAX.
63949
63950 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63951
63952         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63953         "return", to pacify some unknown compiler.  Problem reported
63954         by Joerg Schilling.
63955
63956 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63957
63958         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63959         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63960         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63961         heuristic is just as accurate as far as we know, and it removes a
63962         dependency on size_max.m4 and ptrdiff_max.m4.
63963
63964 2003-11-11  Bruno Haible  <bruno@clisp.org>
63965
63966         * modules/xsize (Files): Add m4/size_max.m4.
63967         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63968
63969 2003-11-11  Bruno Haible  <bruno@clisp.org>
63970
63971         * m4/size_max.m4: New file.
63972         * m4/ptrdiff_max.m4: New file.
63973         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63974         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63975         (gl_XALLOC): Invoke it.
63976
63977 2003-11-11  Bruno Haible  <bruno@clisp.org>
63978
63979         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
63980         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
63981         defined.
63982
63983 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63984
63985         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63986         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63987         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63988         From Bruno Haible.
63989         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63990         not (size_t) -1, since it's defined here.
63991
63992 2003-11-09  Karl Berry  <karl@gnu.org>
63993
63994         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63995
63996 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63997
63998         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63999         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
64000         Reject sizes of exactly SIZE_MAX bytes.
64001         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
64002         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
64003
64004 2003-11-05  Bruno Haible  <bruno@clisp.org>
64005
64006         * lib/xsize.h: Include limits.h, to avoid a possible collision with
64007         SIZE_MAX defined in <limits.h> on Solaris.
64008
64009 2003-11-04  Jim Meyering  <jim@meyering.net>
64010
64011         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
64012         variable names, rather than @VAR@.
64013         * modules/poll: Likewise.
64014
64015 2003-11-04  Bruno Haible  <bruno@clisp.org>
64016
64017         * modules/xsize: New file.
64018         * modules/linebreak: Depend on xsize.
64019         * MODULES.html.sh (func_all_modules): Add xsize.
64020
64021 2003-11-04  Bruno Haible  <bruno@clisp.org>
64022
64023         * m4/xsize.m4: New file.
64024
64025 2003-11-04  Bruno Haible  <bruno@clisp.org>
64026
64027         * lib/xsize.h: New file.
64028         * lib/linebreak.c: Include xsize.h.
64029         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
64030         argument for overflow.
64031         Suggested by Paul Eggert.
64032
64033 2003-11-03  Karl Berry  <karl@gnu.org>
64034
64035         * config/config.{guess,sub}: update from config.
64036
64037 2003-11-03  Jim Meyering  <jim@meyering.net>
64038
64039         * modules/userspec (lib_SOURCES): Add userspec.h.
64040         (Include): Add "userspec.h".
64041         Improve description.
64042
64043 2003-11-03  Jim Meyering  <jim@meyering.net>
64044
64045         * lib/userspec.c: Include "userspec.h".
64046         * lib/userspec.h: New file.
64047
64048 2003-11-03  Bruno Haible  <bruno@clisp.org>
64049
64050         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
64051
64052 2003-11-03  Bruno Haible  <bruno@clisp.org>
64053
64054         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
64055         available, to avoid (extremely rare) race condition.
64056         Suggested by Paul Eggert.
64057
64058 2003-11-02  Karl Berry  <karl@gnu.org>
64059
64060         * config/srclist.txt (vasprintf.c): sync broken, sigh.
64061
64062 2003-10-31  Paul Eggert  <eggert@twinsun.com>
64063
64064         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
64065         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
64066         (read_filesystem_list): Set and use me_type_malloced.
64067         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
64068         whatever the type happens to be), for brevity and consistency.
64069         Check for size calculation overflow on Alphas running OSF/1.
64070
64071 2003-10-31  Jim Meyering  <jim@meyering.net>
64072
64073         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
64074
64075         * lib/linebuffer.c: Include <string.h> for declaration of memset.
64076
64077 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64078             Bruno Haible  <bruno@clisp.org>
64079
64080         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64081         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64082
64083 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64086         netbsd*-gnu*.  Suggested by Robert Millan.
64087
64088 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64089
64090         * modules/group-member: Depend on stdbool.
64091
64092 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64093
64094         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64095
64096 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64097
64098         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64099         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64100         after the 'gnu' in these cases.  This fixes some bugs in the
64101         previous change, and is based on suggestions by Robert Millan.
64102
64103 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64104
64105         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64106         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64107         no longer needed.
64108         * lib/quotearg.c (quotearg_n_options): Use it.
64109         * lib/group-member.c: Include <stdbool.h>.
64110         (free_group_info): Arg is now const *; don't free arg.
64111         (get_group_info): Now returns bool and accepts struct group_info *,
64112         rather than returning a malloc'ed struct group_info *.
64113         All uses changed.  Check for overflow in internal size calculation.
64114
64115         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64116         rather than xmalloc/xrealloc.
64117         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64118         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64119         conformance bug: the old code used a pointer after freeing the
64120         storage that it addressed.
64121         * lib/hash.c (hash_initialize): Simplify the code by using
64122         xalloc_oversized rather than doing it by hand.
64123         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64124         the buffer preserved.  Use free and xmalloc instead.
64125         * lib/quotearg.c (quotearg_n_options): Likewise.
64126         Use a simpler test for size overflow.  Don't use xalloc_oversized
64127         because unsigned int might be wider than size_t (!); this suggests
64128         that we should switch from unsigned int to size_t for slot numbers.
64129
64130 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64131
64132         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64133         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64134         NetBSD kernels.  Requested by Richard Stallman.
64135
64136 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64137
64138         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64139         to allocate the returned structure.  Do not allocate a subarray,
64140         as x2nrealloc will do that.
64141         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64142         instead of xnrealloc.
64143         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64144
64145 2003-10-27  Bruno Haible  <bruno@clisp.org>
64146
64147         * lib/stdbool_.h: Better support for BeOS.
64148
64149 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64150
64151         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64152         now uses inline.
64153
64154 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64155
64156         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64157         callers that want to do their own size-overflow checking.  Include
64158         <stdbool.h>, since xalloc_oversized returns bool.
64159         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64160         to use xalloc_oversized.
64161
64162         Add two functions x2realloc, x2nrealloc, for programs that grow
64163         arrays dynamically by doubling their sizes.
64164         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64165         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64166         New functions.
64167
64168         Port to C99 semantics for 'inline' of external functions.
64169         Bug reported by Bruno Haible.
64170         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64171         with the old contents of xnmalloc.
64172         (xnmalloc, xmalloc): Use it.
64173         (xnrealloc_inline): New static inline function,
64174         with the old contents of xnrealloc.
64175         (xnrealloc, xrealloc): Use it.
64176
64177         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64178         that.
64179
64180 2003-10-26  Karl Berry  <karl@gnu.org>
64181
64182         * config/srclist.txt (COPYING.DOC): no longer available from
64183         /gd/gnuorg; don't know where the ultimate source is.
64184
64185 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64186
64187         Fix several address-calculation bugs in the hash modules,
64188         plus some minor code cleanup.
64189
64190         * lib/hash.h: Include <stdbool.h>, for bool.
64191         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64192         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64193         hash_get_n_entries, hash_get_max_bucket_length,
64194         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64195         hash_rehash): Use size_t rather than unsigned.
64196         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64197         hash_get_n_buckets_used, hash_get_n_entries,
64198         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64199         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64200         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64201         Likewise.
64202         (SIZE_MAX): Define if not defined.
64203         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64204         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64205         hash_print):
64206         Use const * when possible.
64207         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64208         (check_tuning): Fix bug: if tuning parameters were very close to
64209         0 or 1, rounding errors could have caused subscript violations.
64210         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64211         (hash_initialize): Add 'fail:' label
64212         to free table and return NULL, and use it to simplify code.
64213         Use calloc rather than clearing the storage ourself.
64214         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64215         buffer size calculations.
64216         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64217         Include <stddef.h>, for size_t.
64218         * lib/hash-pjw.c (hash_pjw): Likewise.
64219         Switch to method described by Bruno Haible.
64220         Include <limits.h>, for CHAR_BIT.
64221         (SIZE_BITS): New macro.
64222
64223 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64224
64225         * m4/getline.m4 (AM_FUNC_GETLINE):
64226         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64227         hosts.  Problem reported by Derek Robert Price in
64228         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64229         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64230         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64231
64232 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64233
64234         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64235         ceiling the allocation at NMAX bytes rather than silently
64236         discarding input bytes before NMAX is reached.  This makes
64237         a difference only if NMAX exceeds SIZE_MAX / 2.
64238
64239         * lib/obstack.c: Merge from glibc.
64240         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64241         Add libc_hidden_def (_obstack_newchunk).
64242         (_obstack_free) [! defined _LIBC]: Remove.
64243         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64244         a clone of the function body.
64245         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64246         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64247
64248         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64249         glibc.
64250         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64251         arg to memcpy.
64252
64253         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64254         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64255         Don't use lvalue casts, as GCC plans to remove support for them
64256         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64257         was also present in the non-GCC version, indicating that this
64258         code had always been buggy and had never been widely used.
64259         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64260         Use the fast variant of each macro, rather than copying the
64261         definiens of the fast variant; that way, we'll be more likely to
64262         catch future bugs in the fast variants.
64263
64264 2003-10-20  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/wait-process: New file.
64267         * MODULES.html.sh (func_all_modules): Add wait-process.
64268
64269 2003-10-20  Bruno Haible  <bruno@clisp.org>
64270
64271         * m4/wait-process.m4: New file.
64272
64273 2003-10-20  Bruno Haible  <bruno@clisp.org>
64274
64275         * lib/wait-process.h: New file, from GNU gettext.
64276         * lib/wait-process.c: New file, from GNU gettext.
64277
64278 2003-10-19  Jim Meyering  <jim@meyering.net>
64279
64280         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64281         HPUX 10.20.
64282
64283 2003-10-18  Karl Berry  <karl@gnu.org>
64284
64285         * config/config.guess: update from config.
64286
64287 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64288
64289         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64290         (getgroups): First arg is int, not size_t.
64291         Don't let 'free' mangle errno.
64292
64293 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64294
64295         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64296
64297 2003-10-16  Karl Berry  <karl@gnu.org>
64298
64299         * config/config.{guess,sub}: update from config.
64300
64301 2003-10-16  Jim Meyering  <jim@meyering.net>
64302
64303         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64304         memcpy.
64305
64306 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64307
64308         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64309         (SIZE_MAX): Remove.
64310         (new_exclude, add_exclude_file): Initial size no longer needs to
64311         be a power of 2.
64312         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64313         our own address arithmetic overflow checking.
64314
64315         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64316         (fnmatch): Do not alloca more than 2000 wide characters;
64317         instead, use malloc for large buffers.
64318         Check for address arithmetic overflow, and return -1
64319         with errno set to ENOMEM in that case.
64320         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64321         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64322         instead, return -1.  Check for address arithmetic overflow.
64323
64324 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64325
64326         Handle invalid suffixes and overflow independently, so that
64327         callers can treat them independently as needed.  Fix some bugs in
64328         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64329         suffix for a human-readable blocksize.  The major caller-visible
64330         change is the addition of a new
64331         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64332         that both overflow and suffix chars were found.
64333
64334         * lib/human.c (humblock): Don't check separately for invalid suffix
64335         char; that is xstrtoumax's job (now that its bug is fixed).
64336         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64337         INTMAX_MAX]: New macros.
64338         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64339         TYPE_MAXIMUM): New macros.
64340         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64341         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64342         if overflow occurs, as it's what __strtol does and it's more useful
64343         in practice.
64344         (__xstrtol): If __strtol reports some error other than ERANGE,
64345         reflect it to the caller as LONGINT_INVALID.  If it reports
64346         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64347         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64348         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64349         value.
64350         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64351         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64352         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64353         [defined UINTMAX_MAX]: New macros.
64354
64355 2003-10-14  Bruno Haible  <bruno@clisp.org>
64356
64357         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64358
64359 2003-10-14  Bruno Haible  <bruno@clisp.org>
64360
64361         * m4/sig_atomic_t: New file, from GNU gettext.
64362         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64363
64364 2003-10-14  Bruno Haible  <bruno@clisp.org>
64365
64366         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64367         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64368         Also use volatile where needed.
64369
64370 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64371
64372         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64373         Change maintainer from Bruno Haible to 'all'.
64374
64375 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64376
64377         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64378
64379 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64380
64381         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64382         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64383         and define in terms of the other primitives.
64384         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64385         (SIZE_MAX): Define if not already defined.
64386         (array_size_overflow): New function.
64387         (xalloc_die): Abort instead of exiting if 'error' returns.
64388         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64389         (xmalloc, xrealloc): Use them.
64390         (xcalloc): Check for address arithmetic overflow.
64391         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64392         a bit faster than strcpy.
64393
64394 2003-10-10  Simon Josefsson  <jas@extundo.com>
64395
64396         * modules/argp (Depends-on): Add restrict and strcase.
64397
64398 2003-10-10  Simon Josefsson  <jas@extundo.com>
64399
64400         * m4/argp.m4: Add AC_C_INLINE.
64401
64402 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64403
64404         Merge getpass from libc, plus a few fixes.
64405
64406         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64407         Include <stdbool.h>.
64408         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64409         __fsetlocking to empty.
64410         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64411         do include <bits/libc-lock.h>.
64412         Do not include <fcntl.h>; not needed.
64413         [_LIBC]: Include <wchar.h>.
64414         (NOTCANCEL_MODE): New macro.
64415         (flockfile, funlockfile) [_LIBC]: New macros.
64416         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64417         [!_LIBC]: New macros.
64418         (call_fclose): New function.
64419         (getpass): Use it.  Save tty stream separately; this simplifies the
64420         code and makes it more reliable if stdin happens to equal stdout.
64421         Invoke __fsetlocking on tty.
64422         Handle thread cancellation if needed.
64423         Namespace cleanup (use __tcgetattr, __getline).
64424         Use bool for Booleans.
64425         [USE_IN_LIBIO]: Handle wide streams.
64426         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64427         stream might go where.
64428
64429         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64430         doesn't have to include <stdio.h> before us.
64431         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64432         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64433         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64434         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64435         if not declared, so that we can use getpass.c code from libc without
64436         rewriting it.
64437         (flockfile, ftrylockfile, funlockfile): New macros.
64438
64439 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64440
64441         * modules/getpass: Depend on stdbool.
64442
64443 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64444
64445         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64446
64447 2003-10-07  Karl Berry  <karl@gnu.org>
64448
64449         * config/config.{guess,sub}: update from config.
64450
64451 2003-10-06  Jim Meyering  <jim@meyering.net>
64452             Bruno Haible  <bruno@clisp.org>
64453
64454         This lets translators provide better translations for the
64455         "Written by ..." part of --version output.
64456         * lib/version-etc.h: Include stdarg.h.
64457         (version_etc_copyright): Declare as readonly.
64458         (version_etc): Make this function variadic with a NULL-terminated list
64459         of author name strings.
64460         (version_etc_va): New declaration.
64461         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64462         (version_etc_copyright): Declare as readonly.
64463         (version_etc_va): New function. Provide a different translatable string
64464         for each possible number of authors < 10. Abbreviate when there are 10
64465         authors or more.
64466         (version_etc): Make this function variadic. Call version_etc_va.
64467         Suggestion from Gary V. Vaughan.
64468
64469         * lib/long-options.h (parse_long_options): Change prototype: the
64470         authors string is moved to the end and becomes variadic.
64471         * lib/long-options.c: Include stdarg.h.
64472         (parse_long_options): Make this function variadic, too.
64473         Call version_etc_va, not version_etc.
64474
64475 2003-10-06  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/version-etc-2: Remove file.
64478         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64479
64480 2003-10-06  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/fatal-signal: New file.
64483         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64484
64485 2003-10-06  Bruno Haible  <bruno@clisp.org>
64486
64487         * m4/fatal-signal.m4: New file.
64488         * m4/signalblocking.m4: New file, from GNU gettext.
64489
64490 2003-10-06  Bruno Haible  <bruno@clisp.org>
64491
64492         * lib/version-etc-2.h: Remove file.
64493         * lib/version-etc-2.c: Remove file.
64494
64495 2003-10-06  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/fatal-signal.h: New file, from GNU gettext.
64498         * lib/fatal-signal.c: New file, from GNU gettext.
64499
64500 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64501
64502         * README: Rework advice for preventing empty .o files.
64503         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64504         not <sys/types.h>.
64505
64506 2003-10-04  Karl Berry  <karl@gnu.org>
64507
64508         * lib/argp*: update from libc.
64509
64510 2003-10-04  Karl Berry  <karl@gnu.org>
64511
64512         * config/config.{guess,sub}: update from config.
64513
64514 2003-10-02  Bruno Haible  <bruno@clisp.org>
64515
64516         * modules/lchown (Include): Add lchown.h.
64517         * modules/time_r (Include): Use "..." syntax.
64518         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64519
64520 2003-10-01  Simon Josefsson  <jas@extundo.com>
64521
64522         * MODULES.html.sh (func_all_modules): Move gethostname from section
64523         'based on' to section 'lacking' POSIX:2001.
64524
64525 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64526
64527         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64528         to output mode on the same stream.
64529
64530 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64531
64532         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64533         Fix arg typo in previous patch.
64534
64535 2003-09-28  Jim Meyering  <jim@meyering.net>
64536
64537         * lib/error.c: Correct cpp indentation.
64538
64539 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64540
64541         * modules/free: New file.
64542
64543 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64544
64545         * m4/free.m4: New file.
64546
64547 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64548
64549         * lib/minmax.h (MIN, MAX)
64550         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64551         Omit the special code that used __typeof__, since we worry that
64552         it could be more trouble than it's worth.  See:
64553         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64554         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64555
64556         * lib/free.c: New file.
64557
64558 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64559
64560         Trivial fixes to Makefile.am parts of module listings.
64561         * modules/strstr: Append strstr.h to lib_SOURCES.
64562         * modules/strcase: Likewise, for strcase.h.
64563
64564 2003-09-27  Karl Berry  <karl@gnu.org>
64565
64566         * config/mkinstalldirs: update from automake.
64567
64568 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64569
64570         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64571         (error_tail): Do not loop, reallocating temporary buffer, since
64572         the output cannot contain more wide characters than the input
64573         contains bytes, the size must be big enough already.  This avoids
64574         one potential size overflow calculation.  Check for size overflow
64575         when calculating temporary buffer size.  Free temporary buffer
64576         when done, if it was allocated with malloc; this plugs a memory
64577         leak.  Remove casts from void * to pointers, that are no longer
64578         needed now that we're assuming C89 or better.
64579
64580         Merge error changes from glibc.
64581
64582         * lib/error.c, error.h: Update copyright notice header to match glibc.
64583         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64584         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64585         Disable cancellation while printing error.
64586         * lib/error.h: Prepend __ to parameter names.
64587
64588 2003-09-26  Jim Meyering  <jim@meyering.net>
64589
64590         * lib/error.c (error_tail): Move some declarations
64591         into inner scope where the local variables are used.
64592
64593 2003-09-26  Bruno Haible  <bruno@clisp.org>
64594
64595         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64596         stpncpy().
64597         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64598
64599 2003-09-26  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64602         (stpncpy): Define as alias for gnu_stpncpy.
64603         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64604
64605 2003-09-25  Simon Josefsson  <jas@extundo.com>
64606
64607         * lib/xgetdomainname.h: New file.
64608         * lib/xgetdomainname.c: New file.
64609
64610 2003-09-25  Simon Josefsson  <jas@extundo.com>
64611             Bruno Haible  <bruno@clisp.org>
64612
64613         * modules/getdomainname: New file.
64614         * modules/xgetdomainname: New file.
64615         * MODULES.html.sh (func_all_modules): Add getdomainname,
64616         xgetdomainname.
64617
64618 2003-09-25  Simon Josefsson  <jas@extundo.com>
64619             Bruno Haible  <bruno@clisp.org>
64620
64621         * m4/getdomainname.m4: New file.
64622
64623 2003-09-25  Simon Josefsson  <jas@extundo.com>
64624             Bruno Haible  <bruno@clisp.org>
64625
64626         * lib/getdomainname.h: New file.
64627         * lib/getdomainname.c: New file.
64628
64629 2003-09-25  Karl Berry  <karl@gnu.org>
64630
64631         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64632
64633 2003-09-25  Karl Berry  <karl@gnu.org>
64634
64635         * config/install-sh: update from automake.
64636
64637 2003-09-25  Bruno Haible  <bruno@clisp.org>
64638
64639         * modules/version-etc-2: New file, from modules/version-etc with
64640         modifications.
64641         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64642
64643 2003-09-25  Bruno Haible  <bruno@clisp.org>
64644
64645         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64646         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64647
64648 2003-09-24  Simon Josefsson  <jas@extundo.com>
64649
64650         * modules/xgethostname: Add xgethostname.h.
64651
64652 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64653
64654         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64655         the buffer associated with the argument.  Bug reported by
64656         Simon Josefsson.
64657
64658 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64659
64660         * README: Document assumptions that 'int' is at least 32 bits
64661         wide, that integer arithmetic is 2's complement without overflow,
64662         that there are no holes in integer values, that adding sizes of
64663         two nonoverlapping objects can't overflow, and that all-bits-zero
64664         yields scalar zero.  Fix spelling and capitalization typos.
64665
64666 2003-09-19  Karl Berry  <karl@gnu.org>
64667
64668         * lib/argp.h: update from libc.
64669
64670 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64671
64672         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64673         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64674         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64675
64676 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64677
64678         * gnulib-tool: Use "test -h", not "test -L", for portability
64679         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64680         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64681         (sed_extract_prog): Issue s commands one-by-one, rather than
64682         using \| in one s command.
64683
64684 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64685
64686         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64687         input error, instead of returning NULL the next time we are called
64688         (and therefore losing track of errno).
64689
64690 2003-09-16  Bruno Haible  <bruno@clisp.org>
64691
64692         * gnulib-tool (func_create_testdir): Warn about duplicated
64693         dependencies.
64694
64695 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64696
64697         * modules/argmatch, modules/fatal, modules/obstack,
64698         modules/xalloc, modules/xgethostname: Sort dependencies by
64699         importance, not alphabetically.
64700
64701 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64702
64703         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64704         fails, so that the caller gets the proper errno.
64705
64706         * lib/readutmp.c (read_utmp): Likewise.
64707         Check for fstat error.  Close stream and free storage
64708         when failing.
64709
64710 2003-09-14  Karl Berry  <karl@gnu.org>
64711
64712         * config/srclist.txt (strdup.c): disable for c89 changes.
64713
64714 2003-09-14  Jim Meyering  <jim@meyering.net>
64715
64716         * lib/getloadavg.c: Correct cpp indentation.
64717         * lib/strdup.c: Likewise.
64718         * lib/vasnprintf.c: Likewise.
64719
64720 2003-09-14  Bruno Haible  <bruno@clisp.org>
64721
64722         * modules/fwriteerror: New file.
64723         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64724
64725 2003-09-14  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/fwriteerror.h: New file.
64728         * lib/fwriteerror.c: New file.
64729
64730 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64731
64732         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64733         modules/xgethostname, modules/xalloc: Depend on exit.
64734
64735 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64736
64737         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64738
64739         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64740         and AC_MINIX, too, so that their extensions are available.
64741
64742         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64743         This macro has been superseded by gl_BACKUPFILE.
64744
64745         More patches to assume C89 or better.
64746
64747         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64748
64749         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64750         unconditionally.
64751         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64752         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64753         Include <string.h>, <stdlib.h> unconditionally.
64754         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64755         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64756         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64757         headers or for string.h.
64758         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64759         or strtoul.
64760
64761         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64762         headers.
64763         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64764         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64765         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64766         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64767         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64768         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64769         memcpy, memset.
64770         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64771         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64772         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64773         strtol.
64774         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64775         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64777         strtoul.
64778
64779 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64780
64781         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64782         * lib/obstack.c [!defined _LIBC]: Likewise.
64783         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64784         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64785         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64786
64787         More changes to assume C89 or better.
64788
64789         * lib/error.c (error_tail): Assume vprintf.
64790
64791         * lib/argmatch.c (getenv): Remove decl.
64792         * lib/progreloc.c (get_full_program_name): Define via prototype.
64793         * lib/setenv.c (clearenv): Likewise.
64794         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64795         needed.
64796         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64797         (malloc, memcpy): Remove decls.
64798         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64799         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64800         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64801         (memcpy): Remove macro.
64802         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64803         (__P): Remove.  All uses removed.
64804         (PTR): Remove.  All uses changed to void *.
64805         (CHAR_BIT, NULL): Remove.
64806         (spaces, zeros, memset_space, memset_zero)
64807         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64808         Remove.
64809         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64810         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64811         Define with prototype.
64812         Remove now-unnecessary prototype decl.
64813         (extra_args_spec): Assume ANSI C.  All uses changed.
64814         (extra_args_spec_iso): Remove.
64815         (my_strftime, emacs_strftimeu): Define via prototype.
64816         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64817         unconditionally.
64818         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64819         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64820         (strtoul, strtol): Remove decls.
64821         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64822         LONG_MAX): Remove.
64823         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64824         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64825         (LOCALE_PARAM_PROTO): New macro.
64826         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64827         (INTERNAL (strtol), strtol): Define with a prototype.
64828         (PARAMS): Remove.  All uses removed.
64829         * lib/tempname.c: Include <string.h> unconditionally.
64830         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64831         * lib/xgethostname.c (main): Define with a prototype.
64832         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64833         Include <stdlib.h> unconditionally.
64834         (calloc, malloc, realloc, free): Remove decls.
64835         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64836         Include <stdlib.h> unconditionally.  Sort include file names.
64837         (strtod): Remove.
64838         (xstrtod): Define with a prototype.
64839         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64840         (strtol, strtoul): Remove decls.
64841
64842 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64843
64844         More patches to assume C89 or better.
64845         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64846         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64847         string.h, memchr, STDC_HEADERS.
64848
64849 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64850
64851         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64852         Include <stdlib.h>, <string.h> unconditionally.
64853         Remove now-unnecessary cast to char *.
64854         * lib/strnlen.c: Include <string.h> unconditionally.
64855         * lib/yesno.c (yesno): Define with a prototype.
64856
64857 2003-09-11  Bruno Haible  <bruno@clisp.org>
64858
64859         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64860
64861 2003-09-10  Jim Meyering  <jim@meyering.net>
64862
64863         * lib/error.c: Correct indentation of cpp directives.
64864
64865 2003-09-10  Bruno Haible  <bruno@clisp.org>
64866
64867         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64868         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64869         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64870         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64871         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64872         <stdlib.h> and <string.h> checks.
64873         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64874         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64875
64876 2003-09-10  Bruno Haible  <bruno@clisp.org>
64877
64878         * lib/strcspn.c: Include <string.h> unconditionally.
64879         * lib/strpbrk.c: Include <string.h> unconditionally.
64880         * lib/strstr.c: Include <string.h> unconditionally.
64881         * lib/unicodeio.c: Include <string.h> unconditionally.
64882         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64883         * lib/unsetenv.c: Likewise.
64884         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64885         * lib/yesno.c: Include <stdlib.h> unconditionally.
64886         (rpmatch): Add prototype.
64887
64888 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64889
64890         More patches to assume C89 or better.
64891         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64892         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64893         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64894         or for string.h.
64895         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64896         stdlib.h.
64897         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64898         C headers.
64899         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64900         string.h.
64901         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64902         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64903         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64904         or for string.h.
64905         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64906         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64907         C headers.
64908         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64909         memcpy.
64910         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64911         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64912         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64913         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64914         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64915         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64916         string.h, free.
64917         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64918         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64919         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64920         C headers, or for string.h.
64921         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64922         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64923         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64924         headers, memory.h, stdlib.h, string.h, strings.h.
64925         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64926         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64927         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64928         strchr.
64929         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64930         headers, memory.h, string.h.
64931         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64932         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64933         free.
64934         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64935         headers.
64936         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64937         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64938         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64939         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64940         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64941
64942 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64943
64944         More K&R removal.
64945
64946         * lib/acosl.c (main): Use a prototype.
64947         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64948         tanl.c: Likewise.
64949
64950         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64951
64952         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64953         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64954         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64955         with a prototype.
64956         * lib/getopt.c (const): Remove macro.
64957         Include <string.h> unconditionally.
64958         (my_index): Remove; all uses changed to strchr.
64959         (strlen): Remove decl.
64960         (exchange): Remove forward decl; no longer needed.
64961         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64962         Define with prototype.
64963         * lib/getopt1.c (const): Remove macro.
64964         (getopt_long, getopt_long_only, main): Define with prototype.
64965
64966         * lib/getugroups.c: Include <string.h> unconditionally.
64967
64968         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64969         (getusershell, setusershell, endusershell, readname, main):
64970         Define with prototypes.
64971
64972         * lib/group-member.c: Include group-member.h first.
64973         Include <stdlib.h> unconditionally.
64974
64975         * lib/hard-locale.c: Include hard-locale.h first.
64976         Include <stdlib.h>, <string.h> unconditionally.
64977
64978         * lib/hash.c (free, malloc): Remove decls.
64979         Include <stdlib.h> unconditionally.
64980
64981         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64982         (getenv): Do not declare.
64983
64984         * lib/idcache.c: Include <string.h> unconditionally.
64985
64986         * lib/long-options.c: Include long-options.h first, to test interface.
64987         Include <stdlib.h> unconditionally.
64988
64989         * lib/makepath.c: Include makepath.h first, to test interface.
64990         Include <stdlib.h> and <string.h> unconditionally.
64991
64992         * lib/linebuffer.c: Include <stdlib.h>.
64993         (free): Remove decl.
64994
64995         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64996         stddef.h. rpl_malloc returns void *, not char *.
64997         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64998         prototype.
64999
65000         * lib/md5.h: Include <limits.h> unconditionally.
65001         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
65002         (__P): Remove; all uses removed.
65003         * lib/md5.c: Include "md5.h" first.
65004         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
65005         md5_buffer, md5_process_bytes, md5_process_block):
65006         Define with prototypes.
65007         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
65008         * lib/sha.c: Include "sha.h" first.
65009         Include <stdlib.h>, <string.h> unconditionally.
65010
65011         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
65012         * lib/memcmp.c (__ptr_t): Likewise.
65013         * lib/memrchr.c (__ptr_t): Likewise.
65014         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
65015         Include <string.h> unconditionally.
65016         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
65017         * lib/memchr.c: Include <stdlib.h> unconditionally.
65018         * lib/memchr.c (LONG_MAX): Remove.
65019         * lib/memrchr.c (LONG_MAX): Likewise.
65020         * lib/memchr.c (__memchr): Define via a prototype.
65021         * lib/memrchr.c (__memrchr): Likewise.
65022         * lib/memcmp.c (__P): Remove, and remove all uses.
65023         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
65024         Remove forward decls; no longer needed.
65025         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
65026         Use types required by C89 in prototype.
65027
65028         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
65029         * lib/savedir.c: Likewise.
65030         * lib/mkdir.c (free): Remove decl.
65031         * lib/rmdir.c (rmdir): Define with a prototype.
65032         * lib/savedir.c: Include savedir.h first, to test interface.
65033
65034         * lib/mktime.c (STDC_HEADERS): Remove.
65035         Include <stdlib.h>, <string.h> unconditionally.
65036
65037         * lib/modechange.c: Include <stdlib.h> unconditionally.
65038         (malloc): Remove decl.
65039
65040         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
65041         (free): Remove decl.
65042
65043         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
65044         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
65045         (This type really should be intptr_t, but that's a C99ism.)
65046         (_obstack_memcpy): Remove: all uses changed to memcpy.
65047         Include <string.h> unconditionally.
65048         (struct obstack): Assume __STDC__ for types of members
65049         chunkfun, freefun, extra_arg.
65050         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
65051         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
65052         obstack_begin, obstack_specify_allocation,
65053         obstack_specify_allocation_with_arg, obstack_chunkfun,
65054         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
65055         Remove unprototyped decls and the macros that use them.
65056         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
65057         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
65058         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
65059         (defined __STDC__ && __STDC__)]:
65060         Remove nonprototyped code.
65061         Include <stdlib.h> unconditionally.
65062         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
65063         _obstack_allocated_p, _obstack_free, obstack_free,
65064         _obstack_memory_used, print_and_abort):
65065         Define using prototypes.
65066         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
65067         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
65068         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
65069         obstack_next_free, obstack_object_size, obstack_room) [0]:
65070         Remove unused, unprototyped code.
65071
65072         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
65073
65074         * lib/physmem.c (physmem_total, physmem_available, main): Define
65075         with prototypes.
65076
65077         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65078         (main): Define with a prototype.
65079
65080         * lib/posixver.c (getenv): Remove decl.
65081
65082         * lib/putenv.c (malloc): Returns void *, not char *.
65083         Include <string.h> unconditionally.
65084         (strchr, memcpy, NULL): Do not define.
65085
65086         * lib/readtokens.c: Include readtokens.h first, to test interface.
65087         Include <stdlib.h>, <string.h> unconditionally.
65088         (init_tokenbuffer): Define with a prototype.
65089
65090         * lib/regex.c (PARAMS): Remove.  All uses removed.
65091         All uses of _RE_ARGS removed, too.
65092         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65093         unconditionally.
65094         (bzero): Assume memset exists.
65095         (memcmp, memcpy, NULL): Remove.
65096         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65097         char, or assignments to local vars of type signed char.
65098         (init_syntax_once, PREFIX(extract_number_and_incr),
65099         PREFIX(print_partial_compiled_pattern),
65100         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65101         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65102         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65103         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65104         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65105         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65106         wcs_compile_range, byte_compile_range, truncate_wchar,
65107         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65108         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65109         count_mbs_length, wcs_re_match_2_internal,
65110         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65111         PREFIX(alt_match_null_string_p),
65112         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65113         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65114         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65115         now-unnecessary declaration, if any.
65116         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65117         regcomp, regexec):
65118         Remove now-unnecessary casts among pointer types.
65119         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65120
65121         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65122         (free): Remove decl.
65123
65124         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65125
65126         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65127         (free): Remove decl.
65128
65129         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65130         * lib/xgetcwd.c: Likewise.
65131
65132         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65133         (free): Remove decl.
65134
65135         * lib/strchrnul.c (strchrnul): Define with a prototype.
65136         Fix bug: c_in was not converted to char before searching.
65137
65138         The following changes are not K&R related:
65139
65140         * lib/group-member.h: Include <sys/types.h>, so that this file is
65141         self-contained.
65142         * lib/makepath.h: Likewise.
65143
65144         * lib/getusershell.c (readname, default_index, line_size, readname):
65145         Use size_t, not int, for sizes.
65146         (readname): If the size overflows, report an error instead of
65147         looping forever.
65148
65149 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65150
65151         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65152         libc.
65153
65154 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65155
65156         * README: New section: portability guidelines.
65157
65158 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65159
65160         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65161         C89 spec.
65162
65163 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65164
65165         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65166
65167 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65168
65169         Assume C89 or better; remove K&R cruft.
65170         A few of these changes were first proposed by Derek Robert Price
65171         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65172
65173         * lib/addext.c: Include <string.h> unconditionally.
65174         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65175         Don't declare getenv or malloc.
65176
65177         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65178         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65179         (NULL): Remove.
65180         (find_stack_direction, alloca): Use prototypes.
65181
65182         * lib/atexit.c (atexit): Define using a prototype.
65183
65184         * lib/basename.c, dirname.c, stripslash.c:
65185         Include <string.h> unconditionally.
65186
65187         * lib/bcopy.c: Include <stddef.h>.
65188         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65189
65190         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65191
65192         * lib/error.h (error, error_at_line, error_print_progname)
65193         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65194         * lib/error.c: Include error.h first, to check interface.
65195         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65196         (VA_START): Remove; all uses changeed to va_start.
65197         (exit, strerror): Remove decls.
65198         (error_print_progname): Prototype uncondionally.
65199         Don't include <errno.h>; no longer needed.
65200         (private_strerror): Remove.
65201         (error_tail): Always define.
65202         (error, error_at_line): Assume C89 or better; always use prototypes.
65203         * lib/fatal.c: Include "fatal.h" first, to test interface.
65204         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65205         (VA_START): Remove; all uses changed to va_start.
65206         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65207         this case.
65208         (exit): Remove decl.
65209         (fatal): Prototype unconditionally.  Assume va_start works.
65210         Abort at end, to pacify gcc.
65211
65212         * lib/euidaccess.c (main): Define with a prototype.
65213
65214         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65215
65216         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65217
65218         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65219         prototypes.
65220         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65221         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65222         (getenv): Remove decl.
65223         (fnmatch): Define using a prototype.
65224         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65225         (FCT): Define using a prototype.
65226
65227         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65228
65229         * lib/gethostname.c: Include <stddef.h>.
65230         (gethostname): Define with prototype.  Length is size_t, not int.
65231
65232 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65233
65234         Assume C89 or better; remove K&R cruft.
65235         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65236         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65237         string.h, getenv, malloc.
65238         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65239         headers.
65240         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65241         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65242         do not check for strerror.
65243         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65244         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65245         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65246         do not check for doprnt or vprintf.
65247         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65248         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65249
65250 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65251
65252         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65253         getversion.c should have been removed then, but was accidentally
65254         preserved.
65255
65256         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65257         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65258
65259 2003-09-08  Karl Berry  <karl@gnu.org>
65260
65261         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65262                 config, forget about prep.
65263
65264         * config/depcomp, missing: update from automake.
65265
65266 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65267
65268         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65269         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65270
65271 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65272
65273         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65274         copy_tm_result.  Bug reported by Simon Josefsson in
65275         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65276
65277 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65278
65279         * m4/time_r.m4: New file.
65280         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65281         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65282         is. Check for timegm declaration.
65283         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65284         Do not check for gmtime_r.
65285         Replace mktime if __mktime_internal does not exist and if mktime
65286         hasn't been replaced already.
65287
65288 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65289
65290         * lib/time_r.c, lib/time_r.h: New files.
65291
65292         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65293         __localtime_r.
65294         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65295         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65296
65297         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65298         __gmtime_r.
65299         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65300         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65301         Include <time_r.h>.
65302
65303         * lib/timegm.c: Switch to glibc implementation, with the following
65304         changes:
65305         [defined HAVE_CONFIG_H]: Include <config.h>.
65306         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65307         (__mktime_internal) [!defined _LIBC]: New decl.
65308         (__gmtime_r) [!defined _LIBC]: New macro and function.
65309         (timegm): Use a prototype, since gnulib assumes C89.
65310         Do not bother declaring tmp to be const, as it's not really usefu.
65311         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65312         (timegm): Declare only if HAVE_DECL_TIMEGM.
65313
65314 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65315
65316         * MODULES.html.sh (func_all_modules): Add time_r.
65317         * modules/time_r: New file.
65318         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65319         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65320
65321 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65322
65323         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65324         Bug reported by Lute Kamstra in
65325         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65326
65327         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65328         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65329         course with correspondingly smaller numbers for tomorrow and
65330         yesterday.  From Tadayoshi Funaba.  Originally installed into
65331         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65332         coreutils merge?).
65333
65334 2003-08-31  Simon Josefsson  <jas@extundo.com>
65335
65336         * modules/timegm: New file.
65337         * MODULES.html.sh (func_all_modules): Add timegm.
65338
65339 2003-08-31  Simon Josefsson  <jas@extundo.com>
65340
65341         * m4/timegm.m4: New file.
65342
65343 2003-08-31  Simon Josefsson  <jas@extundo.com>
65344
65345         * lib/timegm.h: New file.
65346         * lib/timegm.c: New file.  Based on
65347         wget-1.8.2/src/http.c:mktime_from_utc.
65348
65349 2003-08-31  Karl Berry  <karl@gnu.org>
65350
65351         * lib/argp.h: update from libc.
65352
65353 2003-08-28  Bruno Haible  <bruno@clisp.org>
65354
65355         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65356         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65357         followed by '#define fnmatch fnmatch_posix' gives an error.
65358
65359 2003-08-28  Bruno Haible  <bruno@clisp.org>
65360
65361         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65362         warning on QNX, which defines O_BINARY to 000000.
65363
65364 2003-08-27  Jim Meyering  <jim@meyering.net>
65365
65366         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65367         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65368         would fail after 32.  Reported by Danny Levinson.  Details here:
65369         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65370
65371 2003-08-24  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65374         MSVC7 <stdio.h> is included later.
65375
65376 2003-08-22  Simon Josefsson  <jas@extundo.com>
65377
65378         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65379
65380 2003-08-20  Karl Berry  <karl@gnu.org>
65381
65382         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65383
65384 2003-08-20  Bruno Haible  <bruno@clisp.org>
65385
65386         * modules/progname: New file.
65387         * MODULES.html.sh (func_all_modules): Add progname.
65388
65389 2003-08-20  Bruno Haible  <bruno@clisp.org>
65390
65391         * lib/progname.h: New file, from GNU gettext.
65392         * lib/progname.c: New file, from GNU gettext.
65393         * lib/progreloc.c: New file, from GNU gettext.
65394
65395 2003-08-19  Jim Meyering  <jim@meyering.net>
65396
65397         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65398         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65399
65400 2003-08-19  Bruno Haible  <bruno@clisp.org>
65401
65402         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65403         more.
65404
65405 2003-08-19  Bruno Haible  <bruno@clisp.org>
65406
65407         * lib/xstrdup.c: Assume <string.h> exists.
65408
65409 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65410
65411         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65412         in makefile rules.
65413
65414 2003-08-18  Jim Meyering  <jim@meyering.net>
65415
65416         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65417         * m4/lib-ld.m4: Likewise.
65418
65419 2003-08-18  Jim Meyering  <jim@meyering.net>
65420
65421         * lib/setenv.h: Indent nested cpp directive.
65422         * lib/vasnprintf.c: Remove trailing blanks.
65423
65424 2003-08-17  Simon Josefsson  <jas@extundo.com>
65425
65426         * modules/xstrndup: New file.
65427         * MODULES.html.sh (func_all_modules): Add xstrndup.
65428
65429 2003-08-17  Simon Josefsson  <jas@extundo.com>
65430
65431         * modules/argp: Fix autoconf macro name. Add more dependencies.
65432
65433 2003-08-17  Simon Josefsson  <jas@extundo.com>
65434
65435         * m4/xstrndup.m4: New file.
65436
65437 2003-08-17  Simon Josefsson  <jas@extundo.com>
65438
65439         * m4/argp.m4: New file.
65440
65441 2003-08-17  Simon Josefsson  <jas@extundo.com>
65442             Bruno Haible  <bruno@clisp.org>
65443
65444         * lib/xstrndup.h: New file.
65445         * lib/xstrndup.c: New file.
65446
65447 2003-08-17  Bruno Haible  <bruno@clisp.org>
65448
65449         * modules/strndup (Files, Include): Add lib/strndup.h.
65450
65451 2003-08-17  Bruno Haible  <bruno@clisp.org>
65452
65453         * modules/euidaccess (Files): Add lib/euidaccess.h.
65454
65455 2003-08-17  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/strndup.h: New file.
65458
65459 2003-08-17  Bruno Haible  <bruno@clisp.org>
65460
65461         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65462         like AC_GNU_SOURCE.
65463         * modules/extensions (configure.ac): Comment out the invocation of
65464         gl_USE_SYSTEM_EXTENSIONS.
65465
65466 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65467
65468         Merges from coreutils, etc.
65469         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65470         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65471         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65472         fixing a typo.
65473         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65474         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65475
65476 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65477
65478         Document merge from coreutils.
65479         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65480         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65481         * modules/utime: Add m4/utimes-null.m4.
65482
65483 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65484
65485         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65486         space, undoing this 2003-08-12 change:
65487         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65488
65489 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65490
65491         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65492         strtoul.c from libc, undoing this 2003-08-12 change:
65493         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65494
65495 2003-08-16  Jim Meyering  <jim@meyering.net>
65496
65497         Merges from coreutils.
65498         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65499         prefix.  Adjust cache variables similarly.  Create 500 rather than
65500         just 300 files, to exercise bug on Darwin6.5, too.
65501         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65502         $missing_dir.
65503         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65504         AM_SYS_POSIX_TERMIOS.
65505         Reported by mkc@mathdogs.com.
65506         Also change use of $am_cv_sys_posix_termios
65507         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65508         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65509         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65510         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65511         in /proc/mounts until it finds one with matching device number.  This
65512         is unnecessary when the FILE argument *is* a mount point.  No stat call
65513         is necessary in that case.  So, disable the statvfs-testing code on
65514         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65515         as RedHat bug# 84846.
65516         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65517         to 1MB, so as not to render systems with no stack size limit (e.g.,
65518         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65519         Include <unistd.h>.  On some systems,
65520         it is required for the definition of _SC_PAGESIZE.
65521
65522 2003-08-16  Jim Meyering  <jim@meyering.net>
65523
65524         Merge from coreutils.
65525         * lib/xstrtoimax.c: #else #if -> #elif.
65526         * lib/xstrtoumax.c: Likewise.
65527
65528 2003-08-16  Jim Meyering  <jim@meyering.net>
65529
65530         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65531         * m4/utimes.m4: Removed.
65532         * m4/utimes-null.m4: Renamed from utimes.m4.
65533
65534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65535         to 1MB, so as not to render systems with no stack size limit (e.g.,
65536         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65537         Include <unistd.h>.  On some systems,
65538         it is required for the definition of _SC_PAGESIZE.
65539
65540 2003-08-16  Jim Meyering  <jim@meyering.net>
65541         and Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         Merges from coreutils, etc.
65544
65545         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65546         using the latest version from cvs.  This avoids problems with #line
65547         directives using a vendor (Sun) compiler.
65548         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65549         Don't set GETGROUPS_LIB here; now it's
65550         done via getgroups.m4's wrapper function.
65551         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65552         rather than just in sh-util/configure.in, so that the
65553         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65554         same.
65555         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65556         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65557         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65558         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65559         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65560         Remove code that is now done by the newly-required macros.
65561         Append $(EXEEXT) to DF_PROG.
65562         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65563         Do not invoke or require the following here,
65564         since prereq.m4 or some gnulib .m4 now does this for us:
65565         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65566         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65567         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65568         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65569         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65570         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65571         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65572         AC_FUNC_OBSTACK.
65573         Do not replace the following functions, as this is now the job
65574         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65575         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65576         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65577         atexit getpass, strdup, getpagesize.
65578         Replace 'raise'.
65579         Do not check for the following functions, as this is now the job
65580         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65581         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65582         setregid.
65583         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65584         Check for sys/sysctl.h.
65585         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65586         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65587         of checking for ssize_t ourselves.
65588
65589         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65590         Require every macro that gnulib/modules/* suggests for us.
65591         (jm_PREREQ_ADDEXT): New macro.
65592         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65593         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65594
65595         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65596         (gl_PHYSMEM): Use it.
65597         Also check for `table' function.
65598         Check for new headers and functions.
65599         Add check for sys/sysmp.h.
65600         With suggestions from Kaveh Ghazi.
65601         Ignore headers that are present but cannot be compiled.  This
65602         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65603         C 5.4.
65604
65605 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65606
65607         Document merge from coreutils.
65608         * modules/userspec: Depend on posixver.
65609         * modules/strftime: Depend on tzset.
65610
65611 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65612
65613         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65614         rather than tab, after '#' in shell-script copyright notices.
65615         Suggested by Bruno Haible.
65616
65617 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65618
65619         * config/srclist-update: Use three spaces, rather than tab, after '#'
65620         in shell-script copyright notices.  Suggested by Bruno Haible.
65621         Remove unnecessary parenthesization in regular expression.
65622
65623 2003-08-15  Jim Meyering  <jim@meyering.net>
65624
65625         Merge from coreutils.
65626         * lib/xgethostname.c: Include <stdlib.h>.
65627         (xghostname): Don't exit for anything other than memory-related
65628         failure; just return NULL.
65629         * lib/userspec.c: Include "posixver.h".
65630         (parse_user_spec): Accept `.' as a separator only
65631         in pre-POSIX-200112 mode.
65632         * lib/strtoimax.c: Use #elif rather than #else #if.
65633         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65634         Remove function, now that we can rely on a working tzset function.
65635         [!_LIBC]: Ensure that the required autoconf test has been run.
65636         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65637         Use underlying_strftime for %r.
65638         * lib/sha.c: Merge in some clean-up and optimization changes from
65639         glibc.
65640         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65641         Ensure that it is a multiple of 64.
65642         Rearrange loop exit tests so as to avoid performing an
65643         additional fread after encountering an error or EOF.
65644         * lib/realloc.c: Update copyright date.
65645
65646 2003-08-15  Jim Meyering  <jim@meyering.net>
65647         and Paul Eggert  <eggert@twinsun.com>
65648
65649         Merge from coreutils.
65650         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65651         member but strut utmpx does not.  Needed for AIX 4.3.3.
65652         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65653
65654 2003-08-15  Jim Meyering  <jim@meyering.net>
65655         and Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         Merges from coreutils, etc.
65658         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65659         Require gl_FUNC_TZSET_CLOBBER.
65660         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65661         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65662         members.
65663
65664 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65665
65666         Help the merge from coreutils.
65667         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65668         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65669         * m4/tzset.m4: Use it too.
65670
65671 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65672
65673         * modules/tzset: New file.
65674
65675 2003-08-14  Jim Meyering  <jim@meyering.net>
65676
65677         Merges from coreutils.
65678         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65679         variable names, rather than @FNMATCH_H@.
65680         * modules/alloca: Likewise for $(ALLOCA_H).
65681
65682         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65683         the three copies of the literal target, `fnmatch.h'.
65684         * modules/alloca (alloca.h): Likewise.
65685
65686 2003-08-14  Jim Meyering  <jim@meyering.net>
65687
65688         Merge from coreutils.
65689         * m4/tzset.m4: New file.
65690         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65691         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65692         otherwise, AIX 5.1 systems would end up using the latter.
65693         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65694         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65695         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65696         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65697
65698 2003-08-14  Jim Meyering  <jim@meyering.net>
65699
65700         Merge from coreutils.
65701         * lib/obstack.h: Whitespace changes.
65702         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65703         and xcalloc return values.
65704         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65705         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65706         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65707         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65708         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65709         error from mntctl.
65710         Use mntctl's return value to drive the entry-processing loop, since
65711         we can't rely on the value of the vmt_length member in the last
65712         entry.  On some systems doing so could result in exhausting
65713         virtual memory.  Based in part on a patch from Mike Jetzer.
65714
65715 2003-08-14  Jim Meyering  <jim@meyering.net>
65716         and Paul Eggert  <eggert@twinsun.com>
65717
65718         Merges from coreutils, plus other fixes.
65719         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65720         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65721         for credits and details.  Thanks to Kaveh Ghazi for helping
65722         to keep these files in sync.
65723         (ARRAY_SIZE): Define it.
65724         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65725         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65726         (memcasecmp): Don't assume size_t fits in unsigned int.
65727         Remove casts and duplicate code.
65728         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65729         (memcpy): Remove definition.
65730         Merge in some clean-up and optimization changes from glibc.
65731         [BLOCKSIZE]: Move definition to top of file.
65732         Ensure that it is a multiple of 64.
65733         Rearrange loop exit tests so as to avoid performing an
65734         additional fread after encountering an error or EOF.
65735         * lib/md5.h (md5_uintptr): Define.
65736         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65737         return to the initial working directory.  Preserve errno
65738         for caller.
65739         * lib/idcache.c: Include "xalloc.h".
65740         (xmalloc, xrealloc): Remove decls.
65741         (getuser): Remove casts no longer required in C89.
65742         * lib/human.c: Include stdio.h, for sprintf.
65743         * lib/group-member.c: Include "xalloc.h".
65744         (xmalloc, xrealloc): Remove decls.
65745         (get_group_info): Remove casts no longer required in C89.
65746         * lib/getusershell.c (readname): Remove casts no longer required in
65747         C89.
65748         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65749         * lib/getline.c: Whitespace fix, from coreutils.
65750
65751 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65752
65753         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65754         Check for isascii.
65755
65756         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65757         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65758         Undo previous (whitespace-only) change.
65759
65760 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65761
65762         * lib/exclude.c: Include <ctype.h>
65763         (IN_CTYPE_DOMAIN): New macro.
65764         (is_space): New fn.
65765         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65766         and empty lines.
65767
65768         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65769         Undo previous (whitespace-only) change.
65770
65771 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65772
65773         * config/srclist-update: Change update back to the old behavior,
65774         leaving whitespace alone.  Use one 'sed' command rather than a
65775         pipeline.
65776         (fixlicense): Now a variable, not a function.
65777         (remove_trailing_blanks): Remove.
65778         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65779         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65780         Undo previous (whitespace-only) change.
65781
65782 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65783
65784         Merge from coreutils.
65785         * modules/euidaccess: Add lib_SOURCES, include for new
65786         file euidaccess.h
65787
65788 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65789
65790         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65791         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65792         Normalize leading white space and remove trailing white space.
65793
65794         Merge from coreutils
65795         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65796
65797         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65798         0.12.1.  These files are now being upgraded automatically by
65799         ../config/srclist-update.
65800
65801 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65802
65803         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65804         Normalize leading white space and remove trailing white space.
65805         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65806         notice, as per ../config/srclist-update.
65807
65808         Merge from coreutils.
65809         * lib/euidaccess.h: New file.
65810         * lib/euidaccess.c: Include it.
65811         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65812         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65813         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65814
65815 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65816
65817         * config/srclist-update: Add copyright notice.
65818         (remove_id_lines, remove_trailing_blanks): New constants.
65819         (fixfile): Use them to normalize spacing a bit in copied files.
65820         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65821         Normalize leading white space and remove trailing white space.
65822
65823         * config/texinfo.tex: Sync with texinfo.
65824
65825         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65826         strtoul.c from libc, to merge coreutils whitespace changes.
65827
65828         * config/srclist.txt: Get the following m4 files from gettext:
65829         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65830         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65831         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65832         wint_t.m4.
65833
65834 2003-08-12  Karl Berry  <karl@gnu.org>
65835
65836         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65837         been made.
65838
65839 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65840
65841         * modules/gnu-source, m4/gnu-source.m4:
65842         Remove; we're assuming Autoconf 2.54 or later now.
65843         Suggested by Bruno Haible.
65844         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65845
65846 2003-08-11  Bruno Haible  <bruno@clisp.org>
65847
65848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65849
65850 2003-08-11  Bruno Haible  <bruno@clisp.org>
65851
65852         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65853         (vasnprintf): Use it instead of wcslen.
65854
65855 2003-08-11  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65858         value to ensure that _Bool promotes to int. Use #define for _Bool when
65859         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65860
65861 2003-08-10  Karl Berry  <karl@gnu.org>
65862
65863         * lib/regex.h: update from libc (whitespace fix).
65864
65865 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65866
65867         Merge some files from coreutils.  These changes were
65868         originally made by Jim Meyering.
65869         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65870         many older Unixes require this.
65871         * lib/alloca.c (alloca): Remove cast to argument of free;
65872         no longer needed in C89.
65873         * lib/alloca_.h, regex.h: Fix white space to match
65874         what GNU indent does.
65875
65876 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65877
65878         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65879         apparently Emacs's Unicode mode got confused before my 2003-08-05
65880         checkin.
65881
65882 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65883
65884         * m4/extensions.m4: New file.
65885         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65886         Require gl_USE_SYSTEM_EXTENSIONS.
65887         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65888         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65889
65890 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65891
65892         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65893         * modules/extensions, modules/gnu-source: New files.
65894         * modules/timespec, modules/unlocked-io: Depend on extensions.
65895
65896 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65897
65898         * modules/restrict: New file.
65899         * MODULES.html.sh (func_all_modules): Add restrict.
65900         * modules/regex: Depend on restrict.
65901
65902 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65903
65904         * m4/restrict.m4: New file.
65905         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65906
65907 2003-08-07  Bruno Haible  <bruno@clisp.org>
65908
65909         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65910         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65911
65912 2003-08-07  Bruno Haible  <bruno@clisp.org>
65913
65914         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65915         makes the module 'getndelim2' compatible with the module 'getline'.
65916
65917 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65918
65919         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65920         byte with "\201" to avoid glitches when editing that source file
65921         with multi-gnome-terminal.
65922
65923 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65924
65925         * lib/bumpalloc.h: Remove.
65926
65927 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65928
65929         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65930         * modules/bumpalloc: Remove.
65931
65932 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65933
65934         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65935         GNU coding style.
65936
65937         Merge from coreutils.
65938         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65939         1. From glibc.
65940         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65941         from Karl Berry, implemented by Jim Meyering.
65942         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65943         from Dmitry V. Levin.
65944         Remove anachronistic cast of xrealloc.
65945         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65946         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65947         type. Otherwise, it wouldn't compile with at least /bin/cc on
65948         ymp-cray-unicos9.0.2.X.
65949         Combine two mostly-identical uses of alloca into one.
65950         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65951
65952 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65953
65954         [From Emacs.]
65955
65956         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65957         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65958         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65959         obsolete NLIST_NAME_UNION.
65960         [__GNU__]: Undef BSD and FSCALE.
65961         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65962
65963 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65964
65965         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65966         an enum type, so that it's guaranteed to promote to int.  See:
65967         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65968
65969 2003-08-03  Karl Berry  <karl@gnu.org>
65970
65971         * config/depcomp: update from automake.
65972
65973 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65974
65975         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65976         (strerror): Don't assume that a printable int fits in 14 bytes.
65977
65978 2003-07-31  Bruno Haible  <bruno@clisp.org>
65979
65980         * modules/getpass-gnu: New file.
65981         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65982
65983 2003-07-31  Bruno Haible  <bruno@clisp.org>
65984
65985         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65986
65987 2003-07-24  Karl Berry  <karl@gnu.org>
65988
65989         * config/missing: update from automake.
65990
65991 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65992             Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65995         * lib/getline.c (getline, getdelim): Likewise.
65996         Remove _GNU_SOURCE define; now it's defined in config.h through
65997         m4/getline.m4.
65998
65999 2003-07-23  Karl Berry  <karl@gnu.org>
66000
66001         * config/config.sub: update from prep.
66002
66003 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66004
66005         * modules/xalloc (Depends-on): Add exitfail.
66006         * modules/xmemcoll: Likewise.
66007
66008 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66009
66010         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
66011         over-parenthesization in macros.
66012
66013         Sync with coreutils.
66014
66015         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
66016         required by C99.
66017
66018         Use `exit_failure' for xalloc and xmemcoll instead of their own
66019         private exit-failure variables.
66020         * lib/xalloc.h (xalloc_exit_failure): Remove.
66021         * lib/xmalloc.c: Likewise.  Include exitfail.h.
66022         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
66023         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
66024         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
66025         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
66026
66027 2003-07-20  Jim Meyering  <jim@meyering.net>
66028
66029         * modules/closeout (Depends-on): Add exitfail.
66030         Suggestion from Bruno Haible.
66031
66032 2003-07-19  Karl Berry  <karl@gnu.org>
66033
66034         * config/config.sub: update from prep.
66035
66036 2003-07-18  Paul Eggert  <eggert@twinsun.com>
66037
66038         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
66039         Remove.
66040         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
66041         to test that it can stand by itself.  Include "exitfail.h".
66042         Clients should set exit_failure instead.
66043         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
66044
66045 2003-07-18  Bruno Haible  <bruno@clisp.org>
66046
66047         * modules/getndelim2: New file.
66048         * modules/getline: Share files with module getndelim2.
66049         * modules/getnline: Depend on getndelim2 instead of sharing files with
66050         it. Add getnline.c to lib_SOURCES.
66051         * MODULES.html.sh (func_all_modules): Add getndelim2.
66052
66053 2003-07-18  Bruno Haible  <bruno@clisp.org>
66054
66055         * m4/getndelim2.m4: New file.
66056         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
66057         invoke gl_PREREQ_GETNDELIM2.
66058         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
66059         gl_PREREQ_GETNDELIM2.
66060         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
66061         gl_GETNDELIM2.
66062
66063 2003-07-18  Bruno Haible  <bruno@clisp.org>
66064
66065         * lib/getndelim2.h: New file.
66066         * lib/getndelim2.c: Make into a module of its own. Include config.h,
66067         getndelim2.h.
66068         (getndelim2): Make non-static. Change return type to ssize_t.
66069         * lib/getline.h: Change argument names.
66070         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
66071         * lib/getnline.c: Include getndelim2.h.
66072
66073 2003-07-18  Andreas Schwab  <schwab@suse.de>
66074
66075         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
66076
66077 2003-07-17  Karl Berry  <karl@gnu.org>
66078
66079         * config/config.sub: update from prep.
66080
66081 2003-07-17  Bruno Haible  <bruno@clisp.org>
66082
66083         * modules/getnline: New file.
66084         * modules/getline: Add lib/getndelim2.c to source file list.
66085         * MODULES.html.sh (func_all_modules): Add getnline.
66086
66087 2003-07-17  Bruno Haible  <bruno@clisp.org>
66088
66089         * m4/getnline.m4: New file.
66090
66091 2003-07-17  Bruno Haible  <bruno@clisp.org>
66092
66093         * m4/Makefile.am.in: Remove file.
66094         * m4/Makefile.am: Remove file.
66095         * m4/Makefile.in: Remove file.
66096
66097 2003-07-17  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/getnline.h: New file.
66100         * lib/getnline.c: New file.
66101         * lib/getndelim2.c: New file, extracted from getline.c.
66102         (getndelim2): Renamed from getdelim2, with added nmax argument.
66103         * lib/getline.c: Include getndelim2.c.
66104         (getdelim2): Moved out to getndelim2.c.
66105         (getline, getdelim): Update.
66106
66107 2003-07-17  Bruno Haible  <bruno@clisp.org>
66108
66109         * lib/Makefile.am: Remove file.
66110         * lib/Makefile.in: Remove file.
66111
66112 2003-07-17  Bruno Haible  <bruno@clisp.org>
66113
66114         * configure.in: Remove file.
66115         * Makefile.in: Remove file.
66116
66117 2003-07-17  Bruno Haible  <bruno@clisp.org>
66118
66119         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66120
66121 2003-07-16  Karl Berry  <karl@gnu.org>
66122
66123         * config/srclist-update: was running fixlicense twice, which caused
66124                 texinfo.tex to be nullified for some reason.  Simplify,
66125                 $gplsrc is no longer needed as far as I can see?
66126
66127 2003-07-16  Jim Meyering  <jim@meyering.net>
66128
66129         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66130
66131 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66132
66133         * config/srclist.txt: Get the following files from gettext-runtime/intl
66134         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66135         ref-del.sin.  From Bruno Haible.
66136         * config/srclist-update (fixfile): Change grep pattern again, since the
66137         previous fix didn't work (there was another trailing $).  Use
66138         '[$]' to escape the $s.
66139
66140 2003-07-15  Karl Berry  <karl@gnu.org>
66141
66142         * lib/vasnprintf.c: update from gettext.
66143
66144 2003-07-15  Karl Berry  <karl@gnu.org>
66145
66146         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66147         gets expanded when surrounded by '$'.
66148
66149 2003-07-15  Jim Meyering  <jim@meyering.net>
66150
66151         * modules/save-cwd: Don't depend on error.  From Derek Price.
66152
66153 2003-07-15  Jim Meyering  <jim@meyering.net>
66154
66155         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66156
66157 2003-07-14  Simon Josefsson  <jas@extundo.com>
66158
66159         * modules/mempcpy: New file.
66160         * MODULES.html.sh (func_all_modules): Add mempcpy.
66161
66162 2003-07-14  Simon Josefsson  <jas@extundo.com>
66163
66164         * m4/mempcpy.m4: New file.
66165
66166 2003-07-14  Simon Josefsson  <jas@extundo.com>
66167
66168         * lib/mempcpy.h: New file.
66169         * lib/mempcpy.c: New file.
66170
66171 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66172
66173         * modules/getdate, modules/posixtm: Depend on mktime.
66174
66175 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66176
66177         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66178         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66179         unicodeio.c, unicodeio.h, unlocked-io.h:
66180         Switch from LGPL to GPL.
66181
66182 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66183
66184         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66185         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66186         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66187         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66188         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66189         updated automatically by ../config/srclist-update.  This changes
66190         their license from LPGL to GPL.
66191
66192 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66193
66194         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66195         assumed to refer to the root of the most recent stable gettext version.
66196         * config/srclistvars.sh: Add defaults for eggert.
66197         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66198         Match "This program" as well as "The program".  This is needed
66199         for gettext.
66200
66201 2003-07-14  Jim Meyering  <jim@meyering.net>
66202
66203         Don't emit diagnostics.  Let callers do that.
66204         * lib/save-cwd.c: Don't include "error.h".
66205         (save_cwd): Don't call error.  Ensure that errno is valid
66206         when returning nonzero.
66207
66208         * lib/save-cwd.h (restore_cwd): Update prototype.
66209         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66210         Simplify.  Don't call error upon failure.  Let callers do that.
66211         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66212         when auditing is enabled.  But don't bother updating the #if.
66213
66214 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66215
66216         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66217         it breaks C++ compilation.
66218         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66219
66220 2003-07-10  Simon Josefsson  <jas@extundo.com>
66221
66222         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66223
66224 2003-07-10  Jim Meyering  <jim@meyering.net>
66225
66226         * m4/clock_time.m4: Remove trailing blank.
66227         * m4/intmax_t.m4: Likewise.
66228
66229 2003-07-10  Jim Meyering  <jim@meyering.net>
66230
66231         * lib/vasnprintf.c: Remove trailing blanks.
66232         Make cpp indentation consistent.
66233
66234 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66235
66236         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66237         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66238         Switch from LGPL to GPL.
66239
66240 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66241
66242         * config/srclist.txt: Sort sublists.  Add
66243         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66244         that differ from gnulib for one reason or another; we'd like this list
66245         to be smaller but for now let's document what we have.
66246
66247 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66248
66249         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66250         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66251         and sweeter "eval x=$x".
66252         * config/srclist.txt: Get lib/argp* from glibc.
66253
66254 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66255
66256         * lib/mktime.c: Fix some boundary cases and remove need for floating
66257         point.
66258
66259         Issue a compile-time diagnostic if time_t is floating point, or if
66260         two's complement arithmetic is not in effect, or if arithmetic
66261         right shift does not propagate the sign.  These assumptions were
66262         all in the original code but they weren't checked.
66263
66264         (TIME_T_MIDPOINT, verify): New macros.
66265         (__isleap): Remove; it has integer overflow problems.
66266         (leapyear): New function, without those problems.
66267         (ydhms_tm_diff): Remove; splitting into two parts.
66268         (ydhms_diff): New function, containing the arithmetic part of
66269         the old ydhms_tm_diff function.  Issue a compile-time
66270         diagnostic if we are not using C99 integer division.
66271         Avoid casts when possible.
66272         (guess_time_tm): New function, containing the checking part of
66273         the old ydhms_tm_diff function.  Return the new value, rather than
66274         the difference between it and the old.  Accept a new argument T
66275         so that *T specifies the old value.  Check for overflow in the result.
66276
66277         (__mktime_internal): Use a time_t offset, not a long int offset.
66278         This undoes the 2003-06-04 change, which is no longer needed now
66279         that we have better overflow checking.
66280         (localtime_offset): Likewise.
66281
66282         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66283         and long are 64-bit but int is only 32-bit.
66284         (ydhms_diff): Use long int to store year1 and yday1.
66285         Issue a compile-time diagnostic if long int is not wide enough.
66286
66287         (__mktime_internal): Use long int to store adjusted year and yday.
66288         Use plain C rather than preprocessor commands, if that doesn't
66289         affect efficiency.
66290         Check for overflow (and try to repair) after each probe
66291         rather than checking only at the very end.  This avoids some bugs
66292         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66293         does not equal GMT offset at maximum time).
66294         Use integer to check for overflow rather than floating point; this
66295         is more portable to non-IEEE hosts, and is a tad faster.
66296         When we detect that we are oscillating between two values,
66297         don't check whether tm_isdst has the requested value, since
66298         we already know the answer.  When tm_isdst has the wrong value,
66299         use a different heuristic to find the right one, based on the
66300         extreme values actually observed in practice in tz2003a,
66301         rather than the (overly optimistic) "previous 3 calendar quarters".
66302
66303         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66304         "T const" to accommodate glibc style.
66305         (check_result): Use less-confusing report format.  "long" -> "long int.
66306         (main): Likewise.
66307         Don't loop if the iteration overflows time_t.
66308         Allow a negative step in the iteration.
66309
66310 2003-07-06  Karl Berry  <karl@gnu.org>
66311
66312         * config/depcomp: update from automake.
66313         * config/config.sub: update from prep.
66314
66315 2003-07-03  Karl Berry  <karl@gnu.org>
66316
66317         * config/config.guess: update from prep.
66318
66319 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66320
66321         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66322         xreadlink.c now includes it unconditionally.
66323
66324 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66325
66326         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66327         having it depend on HAVE_SYS_TYPES_H.
66328
66329 2003-07-01  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66332         <sys/types.h> should be sufficient.
66333         Reported by Paul Eggert.
66334
66335 2003-06-26  Karl Berry  <karl@gnu.org>
66336
66337         * config/depcomp: update from automake.
66338
66339 2003-06-26  Bruno Haible  <bruno@clisp.org>
66340
66341         * modules/human: Depend on module stdbool.
66342
66343 2003-06-25  Bruno Haible  <bruno@clisp.org>
66344
66345         * modules/readlink: New file.
66346         * modules/xreadlink: Depend on it.
66347         * MODULES.html.sh (func_all_modules): Add readlink.
66348
66349 2003-06-25  Bruno Haible  <bruno@clisp.org>
66350
66351         * m4/readlink.m4: New file.
66352
66353 2003-06-25  Bruno Haible  <bruno@clisp.org>
66354
66355         * lib/readlink.c: New file.
66356
66357 2003-06-22  Karl Berry  <karl@gnu.org>
66358
66359         * config/srclist.txt: update mkinstalldirs from automake.
66360         * config/mkinstalldirs: update.
66361
66362 2003-06-22  Bruno Haible  <bruno@clisp.org>
66363
66364         Portability to mingw32.
66365         * m4/ssize_t.m4: New file, from GNU gettext.
66366         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66367         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66368
66369 2003-06-22  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/safe-read: Add m4/ssize_t.m4.
66372         * modules/xreadlink: Add m4/ssize_t.m4.
66373
66374 2003-06-20  Bruno Haible  <bruno@clisp.org>
66375
66376         Assume C89, so PARAMS isn't needed.
66377         * lib/unicodeio.h (PARAMS): Remove.
66378         * lib/unicodeio.c: Don't use PARAMS.
66379
66380 2003-06-18  Karl Berry  <karl@gnu.org>
66381
66382         * config/config.{guess,sub}: update from prep.
66383
66384 2003-06-18  Jim Meyering  <jim@meyering.net>
66385
66386         Merge changes from coreutils.
66387         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66388         Remove explicit declarations of xmalloc and realloc.
66389         Include xalloc.h.
66390         (read_utmp): Remove anachronistic cast of xmalloc.
66391
66392 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66393
66394         Assume C89, so PARAMS isn't needed.
66395         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66396         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66397         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66398         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66399         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66400         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66401         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66402         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66403         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66404         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66405         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66406         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66407         no longer needed. Anyway, config.h should always be included before any
66408         other file.
66409
66410 2003-06-11  Simon Josefsson  <jas@extundo.com>
66411
66412         * modules/sysexits: New file.
66413         * MODULES.html.sh (func_all_modules): Add sysexits.
66414
66415 2003-06-11  Simon Josefsson  <jas@extundo.com>
66416
66417         * lib/sysexit_.h: New file.
66418
66419 2003-06-11  Derek Price  <derek@ximbiot.com>
66420
66421         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66422         necessary.
66423
66424 2003-06-11  Bruno Haible  <bruno@clisp.org>
66425
66426         * m4/sysexits.m4: New file.
66427
66428 2003-06-10  Simon Josefsson  <jas@extundo.com>
66429
66430         * lib/argp.h: New file, from glibc.
66431         * lib/argp-ba.c: New file, from glibc.
66432         * lib/argp-eexst.c: New file, from glibc.
66433         * lib/argp-fmtstream.c: New file, from glibc.
66434         * lib/argp-fmtstream.h: New file, from glibc.
66435         * lib/argp-fs-xinl.c: New file, from glibc.
66436         * lib/argp-help.c: New file, from glibc.
66437         * lib/argp-namefrob.h: New file, from glibc.
66438         * lib/argp-parse.c: New file, from glibc.
66439         * lib/argp-pv.c: New file, from glibc.
66440         * lib/argp-pvh.c: New file, from glibc.
66441         * lib/argp-xinl.c: New file, from glibc.
66442
66443 2003-06-10  Simon Josefsson  <jas@extundo.com>
66444
66445         * modules/strchrnul: New file.
66446
66447 2003-06-10  Simon Josefsson  <jas@extundo.com>
66448
66449         * modules/argp: New file.
66450
66451 2003-06-10  Simon Josefsson  <jas@extundo.com>
66452
66453         * m4/strchrnul.m4: New file.
66454
66455 2003-06-10  Simon Josefsson  <jas@extundo.com>
66456
66457         * lib/strchrnul.h: New file.
66458         * lib/strchrnul.c: New file.
66459
66460 2003-06-10  Bruno Haible  <bruno@clisp.org>
66461
66462         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66463
66464 2003-06-07  Karl Berry  <karl@gnu.org>
66465
66466         * config/config.{guess,sub}: update from prep.
66467
66468 2003-06-07  Jim Meyering  <jim@meyering.net>
66469
66470         * modules/strtod: Use $(...) notation, not @...@ for
66471         AC_REPLACE'd variables.
66472         * modules/localcharset: Likewise.
66473
66474 2003-06-07  Jim Meyering  <jim@meyering.net>
66475
66476         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66477         in place of my name in the copyright comment.
66478         Remove definition and uses of __P.
66479
66480         From coreutils.
66481         * lib/stat.c: Don't declare xmalloc explicitly.
66482         Instead, include "xalloc.h".
66483         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66484         xrealloc, and xcalloc return values.
66485         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66486         Improve comment.
66487         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66488
66489 2003-06-07  Bruno Haible  <bruno@clisp.org>
66490
66491         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66492         avoid AC_CONFIG_LINKS.
66493         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66494         fnmatch.h, to avoid AC_CONFIG_LINKS.
66495         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66496
66497 2003-06-07  Bruno Haible  <bruno@clisp.org>
66498
66499         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66500         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66501         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66502         directory.
66503         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66504         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66505         directory.
66506
66507 2003-06-06  Jim Meyering  <jim@meyering.net>
66508
66509         Merge from coreutils.
66510         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66511         Consolidate declarations and initializations of *_base* locals.
66512
66513         Merge from coreutils.
66514         This avoids a core dump on systems without GNU putenv,
66515         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66516         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66517         (unsetenv): New static function, from GNU libc.
66518         (rpl_putenv): Use it.
66519
66520         * lib/modechange.c: Remove trailing blanks.
66521
66522         Merge from coreutils.
66523         * lib/fsusage.c: Remove declaration of statfs.
66524         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66525
66526         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66527
66528 2003-06-06  Jim Meyering  <jim@meyering.net>
66529
66530         * lib/stdbool_.h: Renamed from stdbool.h.in.
66531
66532 2003-06-06  Jim Meyering  <jim@meyering.net>
66533             Bruno Haible  <bruno@clisp.org>
66534
66535         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66536         Adjust Makefile.am snippet not to redirect directly to target.
66537         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66538
66539 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66540
66541         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66542         mismatch, look in future quarters as well as past.  This fixes a
66543         bug when processing fall-backwards gaps immediately after a long
66544         period of daylight-saving time.
66545
66546         * lib/mktime.c: Assume freestanding C89 or better.
66547         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66548         (__P): Remove; not used.
66549         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66550         (mktime, not_equal_tm, print_tm, check_result,
66551         main): Use prototypes.  Use const * where appropriate.
66552         (main): Fix typo in testing code that uncovered by above changes.
66553         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66554
66555 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66556
66557         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66558         locale.h, localeconv.  This merges changes from coreutils.
66559
66560         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66561         It can be removed after the next Autoconf is released.
66562         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66563         needed.
66564
66565 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66566
66567         * lib/mktime.c: Fix Debian bug 177940
66568         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66569         (localtime_offset): Now long int, not time_t, because we want it
66570         to be guaranteed to be signed.  All uses changed.
66571         (__mktime_internal): If overflow would occur when adding offset,
66572         don't add it.
66573
66574         Merge 'human' changes from coreutils.  Rewrite to support
66575         locale-specific notations like thousands separators.
66576         * lib/human.c: Simplify authorship notice.
66577         Include human.h immediately after config.h.
66578         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66579         <limits.h>: Do not include, since human.h does.
66580         (SIZE_MAX, UINTMAX_MAX): New macros.
66581         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66582         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66583         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66584         (power_letter): Renamed from suffixes.
66585         (generate_suffix_backwards): Remove.
66586         (adjust_value): Now takes int style (because of human.h changes)
66587         and long double value (for greater precision on some platforms).
66588         (group_number): New function.
66589         (human_readable): Use it.  Use integer options, not enum.
66590         Put the options before the sizes in the arg list.
66591         Support all the new options.
66592         The old human_readable function has been removed;
66593         use inttostr.h instead.
66594         (human_readable, default_block_size, humblock):
66595         Use uintmax_t, not int, for block sizes.
66596         (human_readable_inexact, block_size_types): Remove.
66597         (block_size_opts): New constant.
66598         (human_options): Renamed from human_block_size, with new signature
66599         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66600         * lib/human.h: Add copyright and authorship notice.
66601         Include <limits.h> and <stdbool.h> unconditionally.
66602         (PARAMS): Remove.  All uses removed.
66603         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66604         (enum human_inexact_style): Remove tag; now a nameless enum.
66605         (human_floor, human_ceiling, human_round_to_even): Now have
66606         values 2, 0, 1 rather than -1, 1, 0.
66607         (human_group_digits, human_suppress_point_zero, human_autoscale,
66608         human_base_1024, human_SI, human_B): New constants.
66609         (human_readable_inexact, human_block_size): Remove.
66610         (human_readable): Size args are now uintmax_t, not int.
66611         (human_options): New decl.
66612
66613         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66614         unnecessary now that we assume C89 or better.  This change
66615         imported from coreutils.
66616
66617         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66618         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66619         in the 2003-05-30 sync from glibc.
66620
66621         .h files should stand alone, but we shouldn't include <sys/types.h>
66622         if we can get away with just <stddef.h>.
66623
66624         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66625         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66626         rather than <sys/types.h>, as we merely need size_t.
66627         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66628         to get size_t.
66629         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66630         Include <stdio.h>, to get FILE.
66631         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66632         memcasecmp.h has included <stddef.h> and all we need is size_t.
66633         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66634         our interface, instead of including <sys/types.h>
66635
66636 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66637
66638         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66639         now, as glibc mktime is buggy on non-glibc systems.
66640
66641 2003-06-03  Karl Berry  <karl@gnu.org>
66642
66643         * config/config.sub: update from prep.
66644
66645 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66646
66647         [from coreutils]
66648         Fix some minor time-related bugs with POSIX time arguments.
66649         Some valid time stamps were being rejected (notably -1, and
66650         time stamps before 1900 on 64-bit hosts).  And some invalid
66651         time stamps were being accepted, e.g. September 31.
66652
66653         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66654         that we can return (time_t) -1 successfully.
66655         * lib/posixtm.c: Likewise.
66656         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66657         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66658         (t): Remove static var.
66659         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66660         of static var.  All uses changed.
66661         (year): Do not reject years before 1900; they can occur with
66662         64-bit time_t.
66663         (posix_time_parse): Do not check for out-of-range components;
66664         that is now the caller's responsibility, since our checks were
66665         only approximations.
66666         (posixtime): Use mktime to check for out-of-range components,
66667         since it knows them exactly.
66668         If mktime returns (time_t) -1, check whether an error actually occurred
66669         by invoking localtime on -1.
66670         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66671         posixtime failures better.
66672         Improve the test data (in comments only).
66673
66674 2003-06-02  Karl Berry  <karl@gnu.org>
66675
66676         * config/mkinstalldirs (version): new variable.
66677         (--version): new option.
66678         (usage): improve message.
66679
66680 2003-05-30  Karl Berry  <karl@gnu.org>
66681
66682         * lib/mktime.c: update from libc.
66683
66684 2003-05-30  Bruno Haible  <bruno@clisp.org>
66685
66686         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66687         * config/config.rpath: Upgrade to gettext-0.12.1.
66688
66689 2003-05-30  Bruno Haible  <bruno@clisp.org>
66690
66691         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66692         * m4/nls.m4: New file, from gettext-0.12.1.
66693         * m4/po.m4: New file, from gettext-0.12.1.
66694         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66695
66696 2003-05-30  Bruno Haible  <bruno@clisp.org>
66697
66698         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66699         * lib/localcharset.h: Likewise.
66700         * lib/localcharset.c: Likewise.
66701
66702 2003-05-29  Karl Berry  <karl@gnu.org>
66703
66704         * config/config.rpath: update from gettext.
66705
66706 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66707
66708         Assume the headers required for C89 freestanding compilers.
66709         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66710         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66711         * m4/human.m4 (gl_HUMAN): Likewise.
66712         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66713         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66714         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66715         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66716         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66717         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66718
66719 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66720
66721         Assume the headers required for C89 freestanding compilers.
66722         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66723         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66724         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66725         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66726         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66727         define, since <limits.h> is guaranteed to do that.
66728         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66729         * lib/exclude.c: Include <stdbool.h> unconditionally.
66730         * lib/tempname.c: Include <stddef.h> unconditionally.
66731         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66732         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66733         <stddef.h> does that.
66734         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66735         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66736         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66737         needed.
66738         * lib/xstrtol.c: Likewise.
66739         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66740         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66741
66742         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66743         warnings on some platforms.
66744
66745         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66746         arbitrarily.
66747
66748 2003-05-26  Jim Meyering  <jim@meyering.net>
66749
66750         Merge in a change from coreutils:
66751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66752         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66753         that condition, rather than `-1' which is slightly misleading.
66754         Change the name of the cache variable to have the gl_ prefix.
66755         Prompted by a patch from Richard Dawe for DJGPP.
66756
66757 2003-05-24  Karl Berry  <karl@gnu.org>
66758
66759         * config/config.guess: update from prep.
66760
66761 2003-05-22  Karl Berry  <karl@gnu.org>
66762
66763         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66764
66765 2003-05-20  Karl Berry  <karl@gnu.org>
66766
66767         * config/config.guess: update from prep.
66768
66769 2003-05-18  Karl Berry  <karl@gnu.org>
66770
66771         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66772         might actually be set by the user.
66773
66774         * config/depcomp, install-sh, mdate-sh: update from automake.
66775
66776 2003-05-17  Bruno Haible  <bruno@clisp.org>
66777
66778         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66779         invalid expansion for AC_EGREP_CPP.
66780         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66781         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66782         Suggested by Akim Demaille <akim@epita.fr> in
66783         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66784
66785 2003-05-12  Jim Meyering  <jim@meyering.net>
66786
66787         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66788         the space-padded-by-default conversion specifiers, %e, %k, %l.
66789
66790 2003-05-12  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66793         the string is longer than 4 KB.
66794
66795 2003-05-11  Karl Berry  <karl@gnu.org>
66796
66797         * config/config.{guess,sub}: update from prep.
66798
66799 2003-05-09  Bruno Haible  <bruno@clisp.org>
66800
66801         * modules/error: Add m4/strerror_r.m4 to file list.
66802
66803 2003-05-03  Bruno Haible  <bruno@clisp.org>
66804
66805         Upgrade to Unicode-4.0.
66806         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66807         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66808         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66809         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66810         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66811         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66812         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66813         Change width of U+E0100..U+E01EF from 1 to 0.
66814
66815 2003-04-25  Jim Meyering  <jim@meyering.net>
66816
66817         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66818         of type size_t, not int.
66819
66820 2003-04-25  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/copy-file.c: Include <stddef.h>, for size_t.
66823
66824 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66825
66826         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66827         code which expansion is under static control.  Patch imported from
66828         Akim Demaille's patch to Bison; see
66829         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66830
66831 2003-04-14  Bruno Haible  <bruno@clisp.org>
66832
66833         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66834
66835 2003-04-11  Jim Meyering  <jim@meyering.net>
66836
66837         Merge changes from Coreutils.
66838
66839         2003-03-22  Jim Meyering  <jim@meyering.net>
66840
66841         * lib/strftime.c (widen): Cast alloca return value to proper type.
66842
66843         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66844
66845         From GNU libc.
66846         * lib/strftime.c (my_strftime): Handle very large width
66847         specifications for numeric values correctly.  Improve checks for
66848         overflow.
66849
66850         2003-01-19  Jim Meyering  <jim@meyering.net>
66851
66852         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66853         definitions.
66854         (nl_get_alt_digit) [! defined my_strftime]: Define.
66855         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66856         _nl_get_alt_digit and _nl_get_walt_digit.
66857
66858         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66859         libc. These changes have no effect outside of _LIBC.
66860
66861 2003-04-10  Bruno Haible  <bruno@clisp.org>
66862
66863         * modules/findprog: New file.
66864         * MODULES.html.sh (func_all_modules): Add it.
66865
66866 2003-04-10  Bruno Haible  <bruno@clisp.org>
66867
66868         * m4/findprog.m4: New file.
66869         * m4/eaccess.m4: New file.
66870
66871 2003-04-10  Bruno Haible  <bruno@clisp.org>
66872
66873         * lib/findprog.h: New file, from GNU gettext.
66874         * lib/findprog.c: New file, from GNU gettext.
66875
66876 2003-04-05  Jim Meyering  <jim@meyering.net>
66877
66878         Merge changes from Coreutils.
66879
66880         * lib/exclude.h (PARAMS): Remove definition and uses.
66881         * lib/exclude.c: Remove uses of `PARAMS'.
66882
66883         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66884         Add test-cases for DOS filenames. Declare program_name.
66885         (main): Set up program_name.  Patch by Rich Dawe.
66886
66887         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66888         error from mntctl.
66889         Use mntctl's return value to drive the entry-processing loop, since
66890         we can't rely on the value of the vmt_length member in the last
66891         entry.  On some systems doing so could result in exhausting
66892         virtual memory.  Based in part on a patch from Mike Jetzer.
66893
66894 2003-04-04  Bruno Haible  <bruno@clisp.org>
66895
66896         * modules/linebreak: New file.
66897         * MODULES.html.sh (func_all_modules): Add it.
66898
66899 2003-04-04  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/linebreak.m4: New file.
66902
66903 2003-04-04  Bruno Haible  <bruno@clisp.org>
66904
66905         * lib/linebreak.h: New file, from GNU gettext.
66906         * lib/linebreak.c: New file, from GNU gettext with slight
66907         modifications.
66908         * lib/lbrkprop.h: New file, from GNU gettext.
66909
66910 2003-04-03  Bruno Haible  <bruno@clisp.org>
66911
66912         * modules/utf8-ucs4: New file.
66913         * modules/utf16-ucs4: New file.
66914         * modules/ucs4-utf8: New file.
66915         * modules/ucs4-utf16: New file.
66916         * MODULES.html.sh (func_all_modules): Add them.
66917
66918 2003-04-03  Bruno Haible  <bruno@clisp.org>
66919
66920         * m4/utf-ucs4.m4: New file.
66921         * m4/ucs4-utf.m4: New file.
66922
66923 2003-04-03  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/utf8-ucs4.h: New file, from GNU gettext.
66926         * lib/utf16-ucs4.h: New file, from GNU gettext.
66927         * lib/ucs4-utf8.h: New file, from GNU gettext.
66928         * lib/ucs4-utf16.h: New file, from GNU gettext.
66929
66930 2003-04-02  Bruno Haible  <bruno@clisp.org>
66931
66932         * modules/binary-io: New file.
66933         * MODULES.html.sh (func_all_modules): Add it.
66934
66935 2003-04-02  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/binary-io.h: New file, from GNU gettext.
66938
66939 2003-04-01  Bruno Haible  <bruno@clisp.org>
66940
66941         * modules/pathname: New file.
66942         * MODULES.html.sh (func_all_modules): Add it.
66943
66944 2003-04-01  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/pathname.h: New file, from GNU gettext.
66947         * lib/concatpath.c: New file, from GNU gettext.
66948
66949 2003-03-30  Bruno Haible  <bruno@clisp.org>
66950
66951         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66952
66953 2003-03-30  Bruno Haible  <bruno@clisp.org>
66954
66955         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66956         function chown() doesn't exist.
66957
66958 2003-03-28  Bruno Haible  <bruno@clisp.org>
66959
66960         * modules/copy-file: New file.
66961         * MODULES.html.sh (func_all_modules): Add it.
66962
66963 2003-03-28  Bruno Haible  <bruno@clisp.org>
66964
66965         * m4/copy-file.m4: New file.
66966
66967 2003-03-28  Bruno Haible  <bruno@clisp.org>
66968
66969         * lib/copy-file.h: New file, from GNU gettext.
66970         * lib/copy-file.c: New file, from GNU gettext.
66971
66972 2003-03-18  Jim Meyering  <jim@meyering.net>
66973
66974         * lib/quote.c (quote_n): Fix typo in comment.
66975
66976 2003-03-18  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
66979         checking.
66980         * m4/onceonly_2_57.m4: Likewise.
66981
66982 2003-03-17  Bruno Haible  <bruno@clisp.org>
66983
66984         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66985         (m4_quote): Remove macro.
66986         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66987
66988 2003-03-14  Jim Meyering  <jim@meyering.net>
66989
66990         Merge changes from Coreutils.
66991         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66992         to be const, in order to avoid warnings.
66993         (obstack_room): Likewise.
66994         (obstack_empty_p): Likewise.
66995
66996 2003-03-14  Bruno Haible  <bruno@clisp.org>
66997
66998         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66999         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
67000
67001 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67002
67003         Merge changes from Bison.
67004         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
67005         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
67006         when compiling Bison 1.875's `bitset bset = obstack_alloc
67007         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
67008         * lib/hash.c: Include <stdbool.h> unconditionally.
67009
67010 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67011
67012         * m4/onceonly.m4 (m4_quote): New macro.
67013         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
67014         Quote AC_FOREACH variable-expansions properly.
67015
67016 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67017
67018         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
67019
67020 2003-03-09  Paul Eggert  <eggert@twinsun.com>
67021
67022         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
67023         Reported by Bruce Becker; see:
67024         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
67025
67026 2003-03-03  Paul Eggert  <eggert@twinsun.com>
67027             Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
67030         Reported by John Hughes, see
67031         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
67032
67033 2003-02-20  Bruno Haible  <bruno@clisp.org>
67034
67035         * MODULES.html.sh (func_all_modules): Add poll.
67036
67037 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67038
67039         * modules/poll: New file.
67040
67041 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67042
67043         * lib/poll_.h: New file.
67044         * lib/poll.c: New file.
67045
67046 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67047
67048         * m4/poll.m4: New file.
67049
67050 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67051
67052         * modules/mathl: New file.
67053
67054 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67055
67056         * lib/mathl.h: New file.
67057         * lib/acosl.c: New file.
67058         * lib/asinl.c: New file.
67059         * lib/atanl.c: New file.
67060         * lib/ceill.c: New file.
67061         * lib/cosl.c: New file.
67062         * lib/expl.c: New file.
67063         * lib/floorl.c: New file.
67064         * lib/frexpl.c: New file.
67065         * lib/ldexpl.c: New file.
67066         * lib/logl.c: New file.
67067         * lib/sincosl.c: New file.
67068         * lib/sinl.c: New file.
67069         * lib/sqrtl.c: New file.
67070         * lib/tanl.c: New file.
67071         * lib/trigl.c: New file.
67072         * lib/trigl.h: New file.
67073
67074 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67075
67076         * m4/mathl.m4: New file.
67077
67078 2003-02-18  Bruno Haible  <bruno@clisp.org>
67079
67080         * MODULES.html.sh (func_all_modules): Add mathl.
67081
67082 2003-02-17  Bruno Haible  <bruno@clisp.org>
67083
67084         * modules/mkdtemp: New module.
67085         * MODULES.html.sh (func_all_modules): Add it.
67086
67087 2003-02-17  Bruno Haible  <bruno@clisp.org>
67088
67089         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67090
67091 2003-02-17  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/mkdtemp.h: New file, from GNU gettext.
67094         * lib/mkdtemp.c: New file, from GNU gettext.
67095
67096 2003-02-02  Jim Meyering  <jim@meyering.net>
67097
67098         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67099         e.g. glibc-2.2.93.
67100
67101 2003-01-31  Bruno Haible  <bruno@clisp.org>
67102
67103         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67104         'rpl_rename'.
67105         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67106         'rpl_strnlen'.
67107         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67108         'rpl_strtod'.
67109         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67110         'rpl_utime'.
67111
67112 2003-01-31  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/rename.c: #undef rename before defining rpl_rename.
67115         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67116
67117 2003-01-30  Bruno Haible  <bruno@clisp.org>
67118
67119         * modules/vasnprintf, modules/vasprintf: New modules.
67120         * MODULES.html.sh (func_all_modules): Add them.
67121
67122 2003-01-30  Bruno Haible  <bruno@clisp.org>
67123
67124         * m4/signed.m4: New file, from GNU gettext.
67125         * m4/longdouble.m4: New file, from GNU gettext.
67126         * m4/wchar_t.m4: New file, from GNU gettext.
67127         * m4/wint_t.m4: New file, from GNU gettext.
67128         * m4/vasnprintf.m4: New file.
67129         * m4/vasprintf.m4: New file.
67130
67131 2003-01-30  Bruno Haible  <bruno@clisp.org>
67132
67133         * lib/printf-args.h: New file, from GNU gettext.
67134         * lib/printf-args.c: New file, from GNU gettext.
67135         * lib/printf-parse.h: New file, from GNU gettext.
67136         * lib/printf-parse.c: New file, from GNU gettext.
67137         * lib/vasnprintf.h: New file, from GNU gettext.
67138         * lib/vasnprintf.c: New file, from GNU gettext.
67139         * lib/asnprintf.c: New file, from GNU gettext.
67140         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67141         * lib/vasprintf.c: New file, from GNU gettext.
67142         * lib/asprintf.c: New file, from GNU gettext.
67143
67144 2003-01-29  Bruno Haible  <bruno@clisp.org>
67145
67146         * modules/stpncpy: New module.
67147         * MODULES.html.sh (func_all_modules): Add it.
67148
67149 2003-01-29  Bruno Haible  <bruno@clisp.org>
67150
67151         * m4/stpncpy.m4: New file.
67152
67153 2003-01-29  Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67156         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67157
67158 2003-01-28  Bruno Haible  <bruno@clisp.org>
67159
67160         * modules/c-ctype: New module.
67161         * MODULES.html.sh (func_all_modules): Add it.
67162
67163 2003-01-28  Bruno Haible  <bruno@clisp.org>
67164
67165         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67166         Paul Eggert.
67167         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67168         Paul Eggert.
67169
67170 2003-01-27  Bruno Haible  <bruno@clisp.org>
67171
67172         * modules/xsetenv: New module.
67173         * MODULES.html.sh (func_all_modules): Add it.
67174
67175 2003-01-27  Bruno Haible  <bruno@clisp.org>
67176
67177         * lib/xsetenv.h: New file, from GNU gettext.
67178         * lib/xsetenv.c: New file, from GNU gettext.
67179
67180 2003-01-23  Jim Meyering  <jim@meyering.net>
67181
67182         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67183         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67184
67185 2003-01-23  Bruno Haible  <bruno@clisp.org>
67186
67187         * modules/minmax: New module.
67188         * MODULES.html.sh (func_all_modules): Add it.
67189
67190 2003-01-23  Bruno Haible  <bruno@clisp.org>
67191
67192         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67193         Eggert.
67194
67195 2003-01-22  Bruno Haible  <bruno@clisp.org>
67196
67197         * modules/exit: New module.
67198         * MODULES.html.sh (func_all_modules): Add it.
67199
67200 2003-01-22  Bruno Haible  <bruno@clisp.org>
67201
67202         * lib/exit.h: New file, from GNU gettext.
67203
67204 2003-01-19  Bruno Haible  <bruno@clisp.org>
67205
67206         * gnulib-tool: Recognize option --extract-maintainer.
67207         (func_get_maintainer): New function.
67208         * modules/*: Add Maintainer entry.
67209
67210 2003-01-16  Jim Meyering  <jim@meyering.net>
67211
67212         * m4/regex.m4: The `regex' struct is both input and output.
67213         Initialize it before each use.  Patch by Tim Waugh.
67214
67215 2003-01-16  Bruno Haible  <bruno@clisp.org>
67216
67217         * MODULES.html.sh: Add a table of contents. Add the module name as
67218         leftmost column. Add hyperlinks.
67219
67220 2003-01-15  Bruno Haible  <bruno@clisp.org>
67221
67222         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67223
67224 2003-01-15  Bruno Haible  <bruno@clisp.org>
67225
67226         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67227         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67228         suffix.
67229
67230 2003-01-15  Bruno Haible  <bruno@clisp.org>
67231
67232         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67233
67234 2003-01-15  Bruno Haible  <bruno@clisp.org>
67235
67236         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67237         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67238
67239 2003-01-14  Jim Meyering  <jim@meyering.net>
67240
67241         * lib/same.c (same_name): Tweak a comment.
67242
67243 2003-01-14  Bruno Haible  <bruno@clisp.org>
67244
67245         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67246         when a string comparison is sufficient.
67247
67248 2003-01-14  Bruno Haible  <bruno@clisp.org>
67249
67250         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67251         'unsigned int'.
67252
67253 2003-01-14  Bruno Haible  <bruno@clisp.org>
67254
67255         * lib/hash-pjw.c: Add comment about low quality of this function.
67256
67257 2003-01-13  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/stpcpy: Distribute lib/stpcpy.h.
67260         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67261
67262 2003-01-13  Bruno Haible  <bruno@clisp.org>
67263
67264         * modules/*: Add a description.
67265         * modules/strpbrk: Fix Makefile.am snippet.
67266         * modules/strtoimax: Fix dependencies.
67267         * modules/strtoumax: Likewise.
67268
67269 2003-01-13  Bruno Haible  <bruno@clisp.org>
67270
67271         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67272         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67273         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67274
67275 2003-01-13  Bruno Haible  <bruno@clisp.org>
67276
67277         * gnulib-tool (func_create_testdir): Store config/* files in the main
67278         directory.
67279         * config.rpath: Move to ...
67280         * config/config.rpath: ... here.
67281         * modules/gettext: Contains config/config.rpath, not config.rpath.
67282         * modules/iconv: Likewise.
67283
67284 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67285
67286         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67287         to avoid collisions with libcurses and libreadline.
67288
67289         * m4/getstr.m4: Remove.
67290         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67291
67292 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67293
67294         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67295         to avoid collisions with libcurses and libreadline.
67296
67297         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67298         * lib/getstr.h, getstr.c: Remove.
67299         * lib/getline.c: Include "getline.h", to check interface.
67300         Move body of old getstr.c here: this defines MIN_CHUNK and
67301         declares getdelim2, which is renamed from getstr.
67302         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67303
67304         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67305         All uses changed.
67306         * lib/linebuffer.h: Likewise.
67307         (readline): Remove backward-compatibility macro.
67308
67309 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67310
67311         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67312         to avoid collisions with libcurses and libreadline.
67313         * getstr: Remove.
67314         * MODULES.html.sh: Remove getstr.
67315         * modules/getline: Depend on unlocked-io, not getstr.
67316
67317 2003-01-12  Jim Meyering  <jim@meyering.net>
67318
67319         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67320
67321 2003-01-10  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/alloca: Change Makefile.am requirements. Simplify Include
67324         requirements. Add lib/alloca_.h to file list.
67325
67326 2003-01-10  Bruno Haible  <bruno@clisp.org>
67327
67328         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67329
67330 2003-01-10  Bruno Haible  <bruno@clisp.org>
67331
67332         * lib/alloca_.h: New file.
67333         * lib/getdate.y: Unconditionally include alloca.h.
67334         * lib/makepath.c: Likewise.
67335         * lib/setenv.c: Likewise.
67336         * lib/userspec.c: Likewise.
67337
67338 2003-01-09  Karl Berry  <karl@gnu.org>
67339
67340         * MODULES.html.sh: include `dirname $0` in PATH, to find
67341         gnulib-tool.
67342
67343 2003-01-09  Bruno Haible  <bruno@clisp.org>
67344
67345         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67346         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67347
67348 2003-01-09  Bruno Haible  <bruno@clisp.org>
67349
67350         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67351
67352 2003-01-09  Bruno Haible  <bruno@clisp.org>
67353
67354         * lib/stdbool.h.in: New file.
67355
67356 2003-01-09  Bruno Haible  <bruno@clisp.org>
67357
67358         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67359         * MODULES.html.sh: Likewise.
67360
67361 2003-01-08  Jim Meyering  <jim@meyering.net>
67362
67363         * lib/full-write.c: Undefine and define-away `const' after inclusion
67364         of errno.h, not before.  Suggestion from Bruno Haible.
67365
67366 2003-01-08  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/full-read: Depend on full-write.
67369
67370 2003-01-08  Bruno Haible  <bruno@clisp.org>
67371
67372         * lib/safe-read.c: Include specification header first, to ensure its
67373         selfcontainedness.
67374         * lib/full-write.c: Likewise.
67375
67376 2003-01-07  Jim Meyering  <jim@meyering.net>
67377
67378         * lib/full-write.c: Rework so that it may serve to define full_read,
67379         too.
67380         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67381
67382 2003-01-07  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67385         <inttypes.h>.
67386         * lib/xstrtol.h: Likewise.
67387         * lib/xstrtoimax.c: Likewise.
67388         * lib/xstrtoumax.c: Likewise.
67389         * lib/human.h: Likewise.
67390
67391         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67392         on systems that have <inttypes.h> but not <stdint.h>.
67393
67394 2003-01-07  Bruno Haible  <bruno@clisp.org>
67395
67396         * MODULES.html.sh: Add copyright notice.
67397         (missed_files): Omit CVS directory entries.
67398         (func_module): Make it work with sed-3.02.
67399         * MODULES.txt: Remove file.
67400
67401 2003-01-06  Jim Meyering  <jim@meyering.net>
67402
67403         * lib/version-etc.c: Update year in translatable copyright string.
67404
67405 2003-01-03  Karl Berry  <karl@gnu.org>
67406
67407         * config/config.{guess,sub}: update from prep.
67408
67409 2003-01-02  Karl Berry  <karl@gnu.org>
67410
67411         * doc/COPYING.DOC: belatedly updated to 1.2.
67412
67413 2003-01-01  Karl Berry  <karl@gnu.org>
67414
67415         * gnulib-tool (func_verify_module): report module name $module in
67416         error message, not $1.
67417         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67418         be created, only if it doesn't exist.
67419         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67420
67421 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67422
67423         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67424
67425 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67426
67427         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67428         memcmp if strcoll doesn't work.
67429
67430 2002-12-31  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67433         nonempty.
67434
67435 2002-12-31  Bruno Haible  <bruno@clisp.org>
67436
67437         * lib/memcoll.c (STRCOLL): New macro.
67438         (memcoll): Use it.
67439
67440 2002-12-31  Bruno Haible  <bruno@clisp.org>
67441
67442         * lib/localcharset.h: New file.
67443         * lib/localcharset.c: Include it.
67444         * lib/unicodeio.c: Likewise.
67445
67446 2002-12-31  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67449         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67450
67451 2002-12-31  Bruno Haible  <bruno@clisp.org>
67452
67453         * lib/getline.h: Include <stddef.h>, for size_t.
67454
67455         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67456         * lib/unicodeio.c: Don't include <stddef.h>.
67457
67458 2002-12-31  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67461         HAVE_TM_ZONE.
67462
67463 2002-12-24  Karl Berry  <karl@gnu.org>
67464
67465         * config/config.guess: update from prep.
67466
67467 2002-12-24  Bruno Haible  <bruno@clisp.org>
67468
67469         General infrasructure.
67470         * m4/README: Rewritten.
67471         * m4/onceonly.m4: New file.
67472         * m4/onceonly_2_57.m4: New file.
67473
67474         Module atexit.
67475         * m4/atexit.m4: New file.
67476
67477         Module strtod.
67478         * m4/strtod.m4: New file.
67479
67480         Module strtol.
67481         * m4/strtol.m4: New file.
67482
67483         Module strtoul.
67484         * m4/strtoul.m4: New file.
67485
67486         Module memchr.
67487         * m4/memchr.m4: New file.
67488
67489         Module memcmp.
67490         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67491         (jm_FUNC_MEMCMP): Invoke it.
67492
67493         Module memcpy.
67494         * m4/memcpy.m4: New file.
67495
67496         Module memmove.
67497         * m4/memmove.m4: New file.
67498
67499         Module memset.
67500         * m4/memset.m4: New file.
67501
67502         Module strcspn.
67503         * m4/strcspn.m4: New file.
67504
67505         Module strpbrk.
67506         * m4/strpbrk.m4: New file.
67507
67508         Module strstr.
67509         * m4/strstr.m4: New file.
67510
67511         Module strerror.
67512         * m4/strerror.m4: New file.
67513
67514         Module mktime.
67515         * m4/mktime.m4: Renamed from jm-mktime.m4.
67516         (gl_PREREQ_MKTIME): New macro.
67517         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67518
67519         Module malloc.
67520         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67521         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67522         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67523
67524         Module realloc.
67525         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67526         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67527         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67528
67529         Module strftime.
67530         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67531         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67532         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67533         gl_TM_GMTOFF.
67534         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67535
67536         Module xalloc.
67537         * m4/xalloc.m4: New file.
67538
67539         Module alloca.
67540         * m4/alloca.m4: New file.
67541
67542         Module putenv.
67543         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67544         (jm_FUNC_PUTENV): Invoke it.
67545
67546         Module setenv.
67547         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67548         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67549         when invoked twice.
67550         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67551         gt_FUNC_SETENV.
67552
67553         Module memrchr.
67554         * m4/memrchr.m4: New file.
67555
67556         Module stpcpy.
67557         * m4/stpcpy.m4: New file.
67558
67559         Module strcase.
67560         * m4/strcase.m4: New file.
67561
67562         Module strdup.
67563         * m4/strdup.m4: New file.
67564
67565         Module strnlen.
67566         * m4/strnlen.m4: New file.
67567
67568         Module strndup.
67569         * m4/strndup.m4: New file.
67570
67571         Module xstrtod.
67572         * m4/xstrtod.m4: New file.
67573
67574         Module xstrtol.
67575         * m4/xstrtol.m4: New file.
67576
67577         Module getdate.
67578         * m4/getdate.m4: New file.
67579
67580         Module unlocked-io.
67581         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67582         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67583         * m4/jm-glibc-io.m4n: Remove file.
67584
67585         Module long-options.
67586         * m4/long-options.m4: New file.
67587
67588         Module md5.
67589         * m4/md5.m4: New file.
67590
67591         Module sha.
67592         * m4/sha.m4: New file.
67593
67594         Module getstr.
67595         * m4/getstr.m4: New file.
67596
67597         Module getline.
67598         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67599         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67600         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67601         simply getline. Infoke gl_PREREQ_GETLINE.
67602
67603         Module obstack.
67604         * m4/obstack.m4: New file.
67605
67606         Module hash.
67607         * m4/hash.m4: New file.
67608
67609         Module readtokens.
67610         * m4/readtokens.m4: New file.
67611
67612         Module strverscmp.
67613         * m4/strverscmp.m4: New file.
67614
67615         Module stdbool.
67616         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67617         OSF/1.
67618
67619         Module strtoll.
67620         * m4/strtoll.m4: New file.
67621
67622         Module strtoull.
67623         * m4/strtoull.m4: New file.
67624
67625         Module strtoimax.
67626         * m4/strtoimax.m4: New file.
67627
67628         Module strtoumax.
67629         * m4/strtoumax.m4: New file.
67630
67631         Module xstrtoimax.
67632         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67633         jm_AC_PREREQ_XSTRTOIMAX.
67634         Moved the strtol prerequisites to strtol.m4.
67635         Moved the strtoll prerequisites to strtoll.m4.
67636         Moved the strtoimax prerequisites to strtoimax.m4.
67637
67638         Module xstrtoumax.
67639         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67640         jm_AC_PREREQ_XSTRTOUMAX.
67641         Moved the strtoul prerequisites to strtoul.m4.
67642         Moved the strtoull prerequisites to strtoull.m4.
67643         Moved the strtoumax prerequisites to strtoumax.m4.
67644
67645         Module chown.
67646         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67647         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67648
67649         Module dup2.
67650         * m4/dup2.m4: New file.
67651
67652         Module ftruncate.
67653         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67654         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67655
67656         Module getgroups.
67657         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67658         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67659
67660         Module gettimeofday.
67661         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67662         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67663         gl_PREREQ_GETTIMEOFDAY.
67664
67665         Module mkdir.
67666         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67667         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67668
67669         Module mkstemp.
67670         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67671         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67672         jm_AC_TYPE_UINTMAX_T.
67673         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67674
67675         Module stat.
67676         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67677         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67678
67679         Module lstat.
67680         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67681         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67682
67683         Module timespec.
67684         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67685         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67686         * m4/st_mtim.m4: Indentation.
67687
67688         Module nanosleep.
67689         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67690         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67691         gl_PREREQ_NANOSLEEP.
67692
67693         Module regex.
67694         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67695         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67696         (gl_REGEX): New macro.
67697
67698         Module rename.
67699         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67700         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67701
67702         Module rmdir.
67703         * m4/rmdir.m4: New file.
67704
67705         Module utime.
67706         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67707         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67708         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67709
67710         Module dirname.
67711         * m4/dirname.m4: New file.
67712
67713         Module getopt.
67714         * m4/getopt.m4: New file.
67715
67716         Module unistd-safer.
67717         * m4/unistd-safer.m4: New file.
67718
67719         Module fnmatch.
67720         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67721         declaration.
67722         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67723         (gl_FUNC_FNMATCH_POSIX): New macro.
67724         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67725         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67726         simply fnmatch.
67727
67728         Module exclude.
67729         * m4/exclude.m4: New file.
67730
67731         Module human.
67732         * m4/human.m4: New file.
67733
67734         Module acl.
67735         * m4/acl.m4: Nop.
67736
67737         Module backupfile.
67738         * m4/backupfile.m4: New file.
67739         * m4/d-ino.m4: Indentation.
67740
67741         Module fsusage.
67742         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67743         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67744         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67745
67746         Module dirfd.
67747         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67748         requirements.
67749
67750         Module euidaccess.
67751         * m4/euidaccess.m4: New file.
67752
67753         Module file-type.
67754         * m4/file-type.m4: New file.
67755
67756         Module fileblocks.
67757         * m4/fileblocks.m4: New file.
67758
67759         Module filemode.
67760         * m4/filemode.m4: New file.
67761
67762         Module isdir.
67763         * m4/isdir.m4: New file.
67764
67765         Module lchown.
67766         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67767         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67768
67769         Module makepath.
67770         * m4/makepath.m4: New file.
67771
67772         Module modechange.
67773         * m4/modechange.m4: New file.
67774
67775         Module mountlist.
67776         * m4/mountlist.m4: New file.
67777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67778         Indentation.
67779
67780         Module path-concat.
67781         * m4/path-concat.m4: New file.
67782
67783         Module pathmax.
67784         * m4/pathmax.m4: New file.
67785
67786         Module same.
67787         * m4/same.m4: New file.
67788
67789         Module save-cwd.
67790         * m4/save-cwd.m4: New file.
67791
67792         Module savedir.
67793         * m4/savedir.m4: New file.
67794
67795         Module xgetcwd.
67796         * m4/xgetcwd.m4: New file.
67797         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67798
67799         Module xreadlink.
67800         * m4/xreadlink.m4: New file.
67801
67802         Module safe-read.
67803         * m4/safe-read.m4: New file.
67804
67805         Module safe-write.
67806         * m4/safe-write.m4: New file.
67807
67808         Module closeout.
67809         * m4/closeout.m4: New file.
67810
67811         Module stdio-safer.
67812         * m4/stdio-safer.m4: New file.
67813
67814         Module getpass.
67815         * m4/getpass.m4: New file.
67816
67817         Module getugroups.
67818         * m4/getugroups.m4: New file.
67819
67820         Module group-member.
67821         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67822         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67823
67824         Module idcache.
67825         * m4/idcache.m4: New file.
67826
67827         Module userspec.
67828         * m4/userspec.m4: New file.
67829
67830         Module gettime.
67831         * m4/clock_time.m4: New file.
67832         * m4/gettime.m4: New file.
67833
67834         Module settime.
67835         * m4/settime.m4: New file.
67836
67837         Module posixtm.
67838         * m4/posixtm.m4: New file.
67839
67840         Module gethostname.
67841         * m4/gethostname.m4: New file.
67842
67843         Module canon-host.
67844         * m4/canon-host.m4: New file.
67845
67846         Module gettext.
67847         * m4/codeset.m4: New file, from gettext-0.11.5.
67848         * m4/gettext.m4: New file, from gettext-0.11.5.
67849         * m4/glibc21.m4: New file, from gettext-0.11.5.
67850         * m4/iconv.m4: New file, from gettext-0.11.5.
67851         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67852         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67853         * m4/inttypes.m4: New file, from gettext-0.11.5.
67854         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67855         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67856         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67857         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67858         * m4/lib-link.m4: New file, from gettext-0.11.5.
67859         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67860         * m4/progtest.m4: New file, from gettext-0.11.5.
67861         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67862         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67863         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67864
67865         Module localcharset.
67866         * m4/localcharset.m4: New file.
67867
67868         Module hard-locale.
67869         * m4/hard-locale.m4: New file.
67870
67871         Module mbswidth.
67872         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67873         onceonly macros.
67874         * m4/mbrtowc.m4: Add comment.
67875
67876         Module memcasecmp.
67877         * m4/memcasecmp.m4: New file.
67878
67879         Module memcoll.
67880         * m4/memcoll.m4: New file.
67881
67882         Module unicodeio.
67883         * m4/unicodeio.m4: New file.
67884
67885         Module rpmatch.
67886         * m4/rpmatch.m4: New file.
67887
67888         Module yesno.
67889         * m4/yesno.m4: New file.
67890
67891         Module exitfail.
67892         * m4/exitfail.m4: New file.
67893
67894         Module c-stack.
67895         * m4/c-stack.m4 (gl_C_STACK): New macro.
67896         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67897
67898         Module error.
67899         * m4/error.m4 (gl_ERROR): New macro.
67900         (jm_PREREQ_ERROR): Use onceonly macros.
67901
67902         Module fatal.
67903         * m4/fatal.m4: New file.
67904
67905         Module getloadavg.
67906         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67907         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67908
67909         Module getpagesize.
67910         * m4/getpagesize.m4: New file.
67911
67912         Module getusershell.
67913         * m4/getusershell.m4: New file.
67914
67915         Module physmem.
67916         * m4/physmem.m4: New file.
67917
67918         Module posixver.
67919         * m4/posixver.m4: New file.
67920
67921         Module quotearg.
67922         * m4/quotearg.m4: New file.
67923
67924         Module quote.
67925         * m4/quote.m4: New file.
67926
67927         Module readutmp.
67928         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67929
67930         Module sig2str.
67931         * m4/sig2str.m4: New file.
67932
67933         Other.
67934         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67935         ulonglong.m4.
67936         * m4/intmax_t.m4: New file.
67937         * m4/d-type.m4: Indentation.
67938         * m4/jm-macros.m4: Update.
67939         * m4/prereq.m4 (jm_PREREQ): Update.
67940         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67941         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67942         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67943         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67944         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67945         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67946         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67947         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67948         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67949         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67950         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67951         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67952         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67953         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67954         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67955         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67956         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67957         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67958         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67959
67960 2002-12-24  Bruno Haible  <bruno@clisp.org>
67961
67962         * MODULES.txt: Update according to m4/ changes.
67963
67964         Module gettext.
67965         * config.rpath: New file, from gettext-0.11.5.
67966
67967         * modules/*: New module descriptions.
67968         * gnulib-tool: New file.
67969         * MODULES.html.sh: New file.
67970
67971 2002-12-21  Karl Berry  <karl@gnu.org>
67972
67973         * doc/fdl.texi: update to version 1.2.
67974
67975 2002-12-19  Karl Berry  <karl@gnu.org>
67976
67977         * config/config.guess: update from prep.
67978
67979 2002-12-18  Bruno Haible  <bruno@clisp.org>
67980
67981         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67982         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67983
67984 2002-12-17  Bruno Haible  <bruno@clisp.org>
67985
67986         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67987         stdlib.h, string.h.
67988
67989 2002-12-17  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/canon-host.c (strdup): Remove unused declaration.
67992
67993         * lib/fsusage.c: Include full_read.h.
67994         (get_fs_usage): Use full_read instead of safe_read.
67995
67996         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67997
67998 2002-12-12  Karl Berry  <karl@gnu.org>
67999
68000         * config/config.guess: update from prep.
68001
68002 2002-12-11  Bruno Haible  <bruno@clisp.org>
68003
68004         * m4/setenv.m4: New file, from gettext-0.11.5.
68005
68006 2002-12-11  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
68009         not unsetenv().
68010         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
68011         modifications:
68012
68013         2002-12-11  Bruno Haible  <bruno@clisp.org>
68014
68015                 * setenv.c (alloca): Fall back to malloc.
68016                 (freea): New macro.
68017                 (setenv): Use freea() to free memory allocated with alloca().
68018
68019         2002-11-13  Bruno Haible  <bruno@clisp.org>
68020
68021                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
68022                 function declarations.
68023                 * unsetenv.c (unsetenv): Likewise.
68024
68025         2002-03-04  Bruno Haible  <bruno@clisp.org>
68026
68027                 Portability to AIX 4.3.3.
68028                 * unsetenv.c: New file, extracted from setenv.c.
68029                 * setenv.c: Move the unsetenv() function to unsetenv.c.
68030
68031         2001-12-20  Bruno Haible  <bruno@clisp.org>
68032
68033                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
68034                 use malloc instead. For SunOS 4.
68035
68036         2001-12-11  Bruno Haible  <bruno@clisp.org>
68037
68038                 * setenv.c: Declare alloca.
68039                 (compar_fn_t): New typedef.
68040                 (KNOWN_VALUE, STORE_VALUE): Use it.
68041
68042         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
68043         setenv.h.
68044
68045 2002-12-10  Paul Eggert  <eggert@twinsun.com>
68046
68047         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
68048         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
68049         Choose values that are less likely to collide with system fnmatch
68050         options.
68051         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
68052         defined (e.g., a pure POSIX system).
68053         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
68054         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
68055
68056 2002-12-06  Paul Eggert  <eggert@twinsun.com>
68057
68058         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
68059         a pain in practice to deal with generated m4 files.  This change
68060         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
68061
68062         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
68063         and jm-glibc-io.m4, as they are no longer a special case.
68064         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
68065         kludge and the auto-generation stuff.  Check only whether the
68066         functions are declared, not whether they exist, since older hosts
68067         that don't declare the functions can't use the optimization anyway.
68068
68069 2002-12-06  Jim Meyering  <jim@meyering.net>
68070
68071         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
68072
68073         Merge in changes from libc's misc/error.c, in preparation
68074         for the merge of gnulib's changes back into libc.
68075
68076         * lib/error.c (_): Define only if not already defined.
68077         Move definition to follow all #include directives.
68078         Include unlocked-io.h only if !_LIBC.
68079         [_LIBC]: Include <libio/libioP.h>.
68080         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68081         (fflush): Tweak definition to use INTUSE.
68082         (putc): Define.
68083
68084 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68085
68086         * lib/alloca.c [defined emacs]: Include "lisp.h".
68087         (xalloc_die) [defined emacs]: New macro.
68088         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68089         [! defined emacs]: Include <xalloc.h>.
68090         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68091         (pointer): Typedef to POINTER_TYPE *.
68092         (malloc): Remove decl; we now always use xmalloc.
68093         (alloca): Use old-style definition, since Emacs needs this.
68094         Check for arithmetic overflow when computing combined size.
68095
68096 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68097
68098         Do not generate unlocked-io.h automatically, since it's easier to
68099         maintain it by hand.
68100
68101         * lib/unlocked-io.h: New file, from GNU diffutils,
68102         but with proper copyright notice and attribution.
68103         * lib/gen-uio: Remove.
68104         * lib/Makefile.am: Add copyright notice.
68105         (libfetish_a_SOURCES): Add unlocked-io.h.
68106         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68107         (DISTCLEANFILES, io_functions): Remove macros.
68108         (EXTRA_DIST): Remove gen_uio.
68109         (unlocked-io.h): Remove rule.
68110
68111 2002-12-04  Jim Meyering  <jim@meyering.net>
68112
68113         Reflect the fact that stat.c and lstat.c are no longer generated.
68114         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68115         (DISTCLEANFILES): Likewise.
68116         (EXTRA_DIST): Likewise.
68117         (all_local): Don't depend on stat.c or lstat.c.
68118         (stat.c, lstat.c): Remove rules.
68119         (EXTRA_DIST): Remove xstat.in.
68120
68121         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68122         * lib/stat.c: New file.  Contents mostly from xstat.in.
68123         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68124         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68125
68126         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68127         too.
68128         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68129
68130 2002-12-03  Jim Meyering  <jim@meyering.net>
68131
68132         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68133         but not semantics, to minimize the differences between these two files.
68134         (safe_read): Change comment to mention SAFE_READ_ERROR.
68135
68136         * lib/safe-read.c (IS_EINTR): Define.
68137         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68138
68139 2002-12-02  Jim Meyering  <jim@meyering.net>
68140
68141         * lib/safe-read.c (EINTR): Define.
68142         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68143         (INT_MAX): Provide fallback.
68144         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68145
68146         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68147
68148 2002-12-02  Bruno Haible  <bruno@clisp.org>
68149
68150         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68151         Define, taken from safe-read.c.
68152         (INT_MAX): Provide fallback.
68153         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68154         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68155
68156         * lib/safe-read.c (EINTR): Remove definition.
68157         (safe_read): Don't use EINTR if it is absent.
68158
68159 2002-12-01  Jim Meyering  <jim@meyering.net>
68160
68161         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68162         zero.
68163         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68164
68165 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68166
68167         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68168         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68169         with `if (! (value < limit)) abort ();', for readability.
68170
68171 2002-11-26  Karl Berry  <karl@gnu.org>
68172
68173         * lib/strdup.c: copy from libc again, with jim's ok.
68174         * lib/.cppi-disable: re-add strdup.c
68175
68176 2002-11-25  Karl Berry  <karl@gnu.org>
68177
68178         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68179         instead of "strtol.c".
68180
68181 2002-11-25  Karl Berry  <karl@gnu.org>
68182
68183         * config/install-sh: update from automake for variable quoting, $0 in
68184         error msgs, etc.
68185
68186         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68187         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68188         entry.
68189
68190 2002-11-25  Jim Meyering  <jim@meyering.net>
68191
68192         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68193
68194 2002-11-24  Karl Berry  <karl@gnu.org>
68195
68196         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68197         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68198
68199 2002-11-24  Jim Meyering  <jim@meyering.net>
68200
68201         Update from coreutils:
68202
68203         * lib/mktime.c: Merge in changes from libc.
68204
68205         Avoid a link-time failure on some Linux systems.
68206         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68207         (otherwise).
68208         (__mon_yday): Declare with the STATIC attribute.
68209         (__mktime_internal): Likewise.
68210         Based on a report from Greg Schafer.
68211
68212 2002-11-23  Jim Meyering  <jim@meyering.net>
68213
68214         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68215         Use `unsigned', not `int', as type of index.
68216
68217         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68218
68219         * lib/fsusage.c: Remove unneeded parentheses around operands of
68220         `defined'.
68221
68222 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68223
68224         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68225         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68226         so that we can be included first.
68227         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68228         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68229         No need to include stddef.h or sys/types.h any more.
68230         Surround local include files with "", not "<>".
68231         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68232         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68233         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68234         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68235         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68236         (ISPRINT): Remove; no longer needed now that we assume C89.
68237
68238         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68239         Preserve errno.
68240
68241         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68242         quotearg_char): Use SIZE_MAX rather than
68243         (size_t) -1 when we are talking about "infinity".
68244
68245         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68246
68247 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68248
68249         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68250         hint that one should use `if (! x) abort ();' rather than `assert
68251         (x);', and anyway it's one less thing to worry about configuring.
68252         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68253         hash_rehash, hash_insert): Use abort rather than assert.
68254
68255 2002-11-22  Bruno Haible  <bruno@clisp.org>
68256
68257         * lib/safe-read.h: Assume C89. Add comments.
68258         (safe_read): Change return type to size_t.
68259         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68260         byte counts > SSIZE_MAX correctly.
68261         * lib/safe-write.h: New file.
68262         * lib/safe-write.c: New file.
68263         * lib/full-read.h: New file.
68264         * lib/full-read.c: New file.
68265         * lib/full-write.h: Assume C89. Add comments.
68266         * lib/full-write.c: Include safe-write.h.
68267         (full_write): Rewritten to use safe_write.
68268         Suggested by Jim Meyering and Paul Eggert.
68269
68270 2002-11-21  Jim Meyering  <jim@meyering.net>
68271
68272         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68273
68274         Merge in changes from the coreutils.
68275
68276         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68277         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68278         <stdint.h>.
68279         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68280         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68281         int.  Work more efficiently if X is the same width as uintmax_t.
68282         Do not compare X to -1, to avoid bogus compiler warning.
68283         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68284         Don't assume that f_frsize and f_bsize are the same type.
68285
68286         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68287         warning on FreeBSD.
68288
68289         * lib/makepath.c (make_path): Restore umask *before* creating the final
68290         component.
68291         (make_path): Minor reformatting.
68292
68293         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68294         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68295         HAVE_MALLOC/HAVE_REALLOC.
68296
68297         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68298         dummy ones.  At least on GNU/Linux systems, `auto' means something
68299         else.
68300         From Michael Stone.
68301
68302 2002-11-21  Bruno Haible  <bruno@clisp.org>
68303
68304         Remove case insensitive option matching.
68305         * lib/argmatch.h (argcasematch): Remove declaration.
68306         (ARGCASEMATCH): Remove macro.
68307         (__xargmatch_internal): Remove case_sensitive argument.
68308         (XARGMATCH): Update.
68309         (XARGCASEMATCH): Remove macro.
68310         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68311         case_sensitive argument.
68312         (argcasematch): Remove function.
68313         (__xargmatch_internal): Remove case_sensitive argument.
68314         (main): Use XARGMATCH instead of XARGCASEMATCH.
68315
68316         * lib/xmalloc.c: Change compile-time error message. Add comment about
68317         required autoconf version.
68318
68319 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68320
68321         Merge argmatch cleanups from Bison.  Assume C89.
68322
68323         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68324         Include stdlib.h, for EXIT_FAILURE.
68325         Always include <string.h>, since we assume C89.
68326         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68327         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68328         Include <stddef.h> instead, since it's all we need for size_t.
68329         (PARAMS): Remove.  All uses removed.
68330         (ARRAY_CARDINALITY): Do not bother to #undef.
68331         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68332         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68333         Remove unnecessary parentheses.
68334         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68335         Insert necessary parentheses.
68336         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68337         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68338
68339 2002-11-19  Bruno Haible  <bruno@clisp.org>
68340
68341         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68342         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68343
68344         * lib/mbswidth.h (PARAMS): Remove macro.
68345         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68346         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68347
68348         * lib/gcd.h (PARAMS): Remove macro.
68349         (gcd): Use ANSI C function declarations.
68350         * lib/gcd.c (gcd): Likewise.
68351
68352 2002-11-15  Bruno Haible  <bruno@clisp.org>
68353
68354         * lib/strcspn.c: Include <stddef.h>.
68355         (strcspn): Use ANSI C function declaration. Change return type to
68356         size_t. Use NULL.
68357         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68358         (strpbrk): Use NULL.
68359         * lib/strpbrk.h (PARAMS): Remove macro.
68360         (strpbrk): Use ANSI C function declaration.
68361         * lib/strstr.c: Don't include <sys/types.h>.
68362         * lib/strstr.h (PARAMS): Remove macro.
68363         (strstr): Use ANSI C function declarations.
68364
68365 2002-11-14  Karl Berry  <karl@gnu.org>
68366
68367         * config/mkinstalldirs: `do' on separate line, instead of
68368         `for var; do'.
68369
68370 2002-11-06  Bruno Haible  <bruno@clisp.org>
68371
68372         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68373         * lib/gcd.c (gcd): Likewise.
68374
68375 2002-11-05  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/gcd.h: New file, from gettext-0.11.5.
68378         * lib/gcd.c: New file, from gettext-0.11.5.
68379
68380 2002-11-05  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68383         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68384         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68385         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68386
68387         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68388         <libintl.h>.
68389         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68390         <libintl.h>.
68391
68392         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68393         * lib/human.c: Include gettext.h instead of <libintl.h>.
68394         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68395         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68396         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68397         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68398         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68399         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68400         (textdomain): Remove definition.
68401         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68402
68403         * lib/long-options.c: Remove include of <libintl.h> and definition of
68404         _.
68405         * lib/same.c: Remove include of <libintl.h> and definition of _.
68406
68407 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68408
68409         * lib/config.charset: A few additions for Solaris.
68410
68411 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68412
68413         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68414         * lib/localcharset.c (locale_charset): Declare as extern "C".
68415
68416 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68417
68418         * lib/config.charset: msdos in uk_UA uses CP1125.
68419
68420 2002-11-04  Bruno Haible  <bruno@clisp.org>
68421
68422         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68423         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68424         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68425         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68426         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68427
68428 2002-11-04  Bruno Haible  <bruno@clisp.org>
68429
68430         * lib/localcharset.c (locale_charset): Don't return an empty string.
68431
68432 2002-11-04  Bruno Haible  <bruno@clisp.org>
68433
68434         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68435         aliases.
68436
68437 2002-11-04  Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/config.charset: Update for newest glibc. Add canonical names
68440         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68441
68442 2002-11-04  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/config.charset: Add support for NetBSD.
68445
68446 2002-11-04  Bruno Haible  <bruno@clisp.org>
68447
68448         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68449
68450 2002-11-01  Bruno Haible  <bruno@clisp.org>
68451
68452         * configure.in: Add AC_CONFIG_AUX_DIR call.
68453         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68454         test/Makefile.
68455         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68456
68457 2002-09-28  Karl Berry  <karl@gnu.org>
68458
68459         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68460         installed automake until the next release, since changes have been
68461         made.
68462
68463 2002-09-25  Karl Berry  <karl@gnu.org>
68464
68465         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68466         * lib/getopt*: copy from libc/posix.
68467         * lib/gettext.h: copy from gettext.
68468         * lib/.cppi-disable: add strdup.c, gettext.h.
68469
68470 2002-09-25  Karl Berry  <karl@gnu.org>
68471
68472         * config/srclist.txt: enable gettext.h check.
68473         * config/config.{guess,sub}: update from prep.
68474         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68475                 from automake 1.6.3.
68476         See srclist*.
68477
68478 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68479
68480         * regex.c (PATFETCH): Remove the translating fetch.
68481         (PATFETCH_RAW): Rename to PATFETCH.
68482         (set_image_of_range): New fun.
68483         (SET_RANGE_TABLE_WORK_AREA): Use it.
68484         (regex_compile): Don't translate the pattern chars so eagerly.
68485         Only do it when inserting an `exactn' bytecode or when handling
68486         a char-range.
68487         (mutually_exclusive_p): Avoid empty statement.
68488
68489 2002-07-06  Jim Meyering  <meyering@lucent.com>
68490
68491         * m4/README: Don't mention Makefile.am.in.
68492         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68493
68494 2002-07-01  Jim Meyering  <meyering@lucent.com>
68495
68496         * lib/c-stack.c: Include sys/time.h.
68497         From Volker Borchert.
68498
68499 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68500
68501         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68502
68503 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68504
68505         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68506         New macro.  Use it uniformly instead of
68507         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68508         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68509         reported by Vin Shelton.
68510
68511 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68512
68513         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68514         Do not assume SA_SIGINFO behavior.
68515         Bug reported by Jim Meyering on NetBSD 1.5.2.
68516
68517 2002-06-22  Jim Meyering  <meyering@lucent.com>
68518
68519         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68520         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68521
68522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68523         now that configure.ac uses AC_GNU_SOURCE.
68524         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68525         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68526
68527         Update to latest tools.  Suggestions from Paul Eggert.
68528         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68529         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68530         * m4/fnmatch.m4: Likewise.
68531         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68532         to AC_HEADER_STDBOOL
68533
68534 2002-06-22  Jim Meyering  <meyering@lucent.com>
68535
68536         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68537         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68538
68539 2002-06-22  Jim Meyering  <meyering@lucent.com>
68540
68541         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68542
68543         * lib/exitfail.c, exitfail.h: Likewise.
68544         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68545
68546         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68547         of fnmatch.h.
68548         (EXTRA_DIST): Add fnmatch_loop.c.
68549         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68550
68551         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68552         * lib/fnmatch.c: Update from diffutils-2.8.2.
68553         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68554         * lib/fnmatch.h: Remove file.
68555
68556 2002-06-21  Jim Meyering  <meyering@lucent.com>
68557
68558         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68559         * m4/mbrtowc.m4: Likewise.
68560
68561         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68562         * m4/mbswidth.m4: Reflect name change:
68563         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68564         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68565
68566         * m4/lib-link.m4: Update from gettext-0.11.2.
68567         * m4/gettext.m4: Likewise.
68568
68569         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68570         From Alfred M. Szmidt.
68571
68572 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68573
68574         * lib/file-type.h: Report an error if neither S_ISREG nor
68575         S_IFREG is defined, instead of using a test specific to glibc
68576         2.2.  This should be safe, since POSIX requires S_ISREG and
68577         Unix Version 7 had S_IFREG.  We don't need to check for
68578         <sys/types.h> since we don't use any symbols that it defines.
68579
68580 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68581
68582         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68583         $@-t, so that each temporary file name is unique and valid in the first
68584         8 characters, for operation under DOS.
68585
68586 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68587
68588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68589
68590 2002-06-15  Jim Meyering  <meyering@lucent.com>
68591
68592         Work even with DJGPP 2.03, which lacks support for symlinks.
68593         From Richard Dawe.
68594         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68595         is defined.
68596         * lib/lchown.c (S_ISLNK): Likewise.
68597
68598 2002-06-15  Jim Meyering  <meyering@lucent.com>
68599
68600         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68601         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68602         have been included before this file.
68603
68604 2002-06-14  Jim Meyering  <meyering@lucent.com>
68605
68606         * lib/file-type.h: Use the version from diffutils-2.8.2.
68607         * lib/file-type.c: Likewise.
68608
68609 2002-06-07  Jim Meyering  <meyering@lucent.com>
68610
68611         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68612         They're needed at least for NetBSD 1.5.2.
68613         ($statxfs_includes): Include those same headers.
68614         ($statxfs_includes): Include sys/vfs.h if available.
68615         ($statxfs_includes): Likewise for sys/statvfs.h.
68616         Check for the following members in both structs statfs and statvfs:
68617         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68618
68619 2002-06-01  Jim Meyering  <meyering@lucent.com>
68620
68621         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68622         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68623
68624 2002-05-28  Jim Meyering  <meyering@lucent.com>
68625
68626         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68627         Reported by Volker Borchert.
68628
68629 2002-05-27  Jim Meyering  <meyering@lucent.com>
68630
68631         Fix a problem seen only on nonconforming systems whereby ls.c's
68632         use of localtime, and then of gettimeofday would cause trouble:
68633         the localtime call used to initialize rpl_gettimeofday's save
68634         mechanism would clobber ls's current local time information so
68635         that in any long listing the first file would always be listed
68636         with date 1970-01-01.  Analysis by Volker Borchert.
68637
68638         * lib/gettimeofday.c (localtime): Undefine.
68639         (rpl_localtime): New function.
68640
68641 2002-05-27  Jim Meyering  <meyering@lucent.com>
68642
68643         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68644         localtime.
68645
68646         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68647         use the replacement function; it wouldn't resolve at link time.
68648         Reported by Volker Borchert.
68649
68650 2002-05-22  Jim Meyering  <meyering@lucent.com>
68651
68652         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68653         file-type.h.
68654         * lib/file-type.h: New file.
68655         * lib/file-type.c (file_type): New file/function.  Extracted from
68656         diffutils.
68657
68658 2002-04-30  Jim Meyering  <meyering@lucent.com>
68659
68660         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68661
68662 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68663
68664         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68665
68666 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68667
68668         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68669         Do not check for alloca.h (no longer used) or stdbool.h (was never
68670         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68671
68672 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68673
68674         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68675
68676 2002-04-29  Jim Meyering  <meyering@lucent.com>
68677
68678         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68679         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68680         Use AC_FUNC_STRNLEN here instead.
68681
68682         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68683         With autoconf-2.53a, it's part of AC_PROG_CC.
68684
68685 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68686
68687         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68689
68690 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68691
68692         * lib/sig2str.h, lib/sig2str.c: New files.
68693         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68694
68695 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68696
68697         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68698         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68699         of 127, since 64 is the largest conceivable number for ancient
68700         nonstandard hosts.
68701         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68702
68703 2002-04-28  Jim Meyering  <meyering@lucent.com>
68704
68705         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68706
68707 2002-04-24  Jim Meyering  <meyering@lucent.com>
68708
68709         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68710         (jm_PREREQ): Use it.
68711
68712         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68713         mach/mach.h fcntl.h.
68714         Check for this function: setlocale.
68715
68716 2002-04-24  Jim Meyering  <meyering@lucent.com>
68717
68718         * lib/gettext.h: New file, from Gettext.
68719         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68720         (libfetish_a_SOURCES): Add gettext.h.
68721
68722 2002-04-16  Jim Meyering  <meyering@lucent.com>
68723
68724         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68725         ut_pid, ut_id, ut_exit.
68726
68727 2002-04-16  Jim Meyering  <meyering@lucent.com>
68728
68729         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68730         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68731         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68732
68733 2002-04-12  Jim Meyering  <meyering@lucent.com>
68734
68735         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68736         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68737         existence of the getmntinfo function.  Needed for Darwin 5.3.
68738
68739         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68740         This is necessary at least on Darwin 5.3.
68741
68742         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68743         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68744         strnlen.o in the library, and that makes some versions of ranlib
68745         object.
68746
68747 2002-04-12  Jim Meyering  <meyering@lucent.com>
68748
68749         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68750
68751 2002-04-09  Jim Meyering  <meyering@lucent.com>
68752
68753         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68754         to be more precise.  Rather than saying we're checking whether the
68755         function `works', say what we're testing.
68756         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68757         Reported by Bruno Haible.
68758
68759 2002-03-10  Jim Meyering  <meyering@lucent.com>
68760
68761         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68762         Suggestion from Santiago Vila.
68763
68764 2002-03-08  Jim Meyering  <meyering@lucent.com>
68765
68766         * lib/rename.c: Mention that this wrapper is needed also on
68767         mips-dec-ultrix4.4 systems.
68768
68769 2002-03-02  Jim Meyering  <meyering@lucent.com>
68770
68771         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68772         not HAVE_CLOCK_SETTIME.
68773
68774 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68775
68776         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68777         Check for clock_settime.
68778
68779 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68780
68781         * lib/nanosleep.h: Rename to....
68782         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68783
68784         * lib/gettime.c: New file.
68785         * lib/settime.c: New file.
68786         * lib/stime.c: Remove.
68787
68788         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68789         timespec.h.  Remove nanosleep.h.
68790
68791 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68792
68793         * m4/acl.m4: New file.
68794         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68795         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68796
68797 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68798
68799         * lib/acl.c, lib/acl.h: New files.
68800         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68801
68802 2002-02-24  Jim Meyering  <meyering@lucent.com>
68803
68804         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68805         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68806         cause trouble.  Reported by Nelson Beebe.
68807
68808 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68809
68810         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68811         compilers that don't know that xalloc_die never returns.
68812
68813 2002-02-20  Jim Meyering  <meyering@lucent.com>
68814
68815         * lib/getdate.c: Regenerate using bison-1.33.
68816
68817 2002-02-17  Jim Meyering  <meyering@lucent.com>
68818
68819         * config/config.guess (main): Don't use `head -1'; it's no longer
68820         portable. Use `sed 1q' instead.
68821
68822 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68823
68824         * m4/codeset.m4: Upgrade to gettext-0.11.
68825         * m4/gettext.m4: Upgrade to gettext-0.11.
68826         * m4/glibc21.m4: Upgrade to gettext-0.11.
68827         * m4/iconv.m4: Upgrade to gettext-0.11.
68828         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68829         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68830         * m4/lib-ld.m4: New file, from gettext-0.11.
68831         * m4/lib-link.m4: New file, from gettext-0.11.
68832         * m4/lib-prefix.m4: New file, from gettext-0.11.
68833         * m4/progtest.m4: Upgrade to gettext-0.11.
68834
68835 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68836
68837         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68838         (jm_PREREQ): Use it.
68839
68840 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68841
68842         * lib/posixver.c, lib/posixver.h: New files.
68843         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68844
68845 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68846             Bruno Haible  <bruno@clisp.org>
68847
68848         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68849         (fwrite_success_callback): New declaration.
68850         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68851         print_unicode_char. Call failure callback instead of error.
68852         (fwrite_success_callback): New function.
68853         (exit_failure_callback): New function.
68854         (fallback_failure_callback): New function.
68855         (print_unicode_char): Call unicode_to_mb.
68856
68857 2002-01-26  Jim Meyering  <meyering@lucent.com>
68858
68859         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68860         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68861
68862 2002-01-26  Jim Meyering  <meyering@lucent.com>
68863
68864         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68865
68866 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68867
68868         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68869
68870 2002-01-22  Jim Meyering  <meyering@lucent.com>
68871
68872         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68873         Otherwise, some versions of automake would omit the rule that makes
68874         Makefile from Makefile.in.
68875
68876 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68877
68878         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68879         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68880         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68881         (memcoll): Set errno to zero if there is no error.
68882
68883         * lib/quotearg.c (quotearg_buffer_restyled):
68884         Fix bug with quoting buffers containing NUL when backslashing escapes.
68885         This bug was exposed by the other changes in this patch.
68886         (quotearg_n_options): New arg ARGSIZE.
68887         All callers changed.
68888         (quoting_options_from_style): New function.
68889         (quotearg_n_style): Use it.
68890         (quotearg_n_style_mem): New function.
68891
68892         * lib/quotearg.h (quotearg_n_style_mem): New function.
68893
68894 2002-01-19  Jim Meyering  <meyering@lucent.com>
68895
68896         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68897         Remove useless quotes: DF_PROG="df".
68898         * m4/strnlen.m4: New file.
68899
68900 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68901
68902         * lib/backupfile.c (ISDIGIT): Comment fix.
68903         * lib/getdate.y (ISDIGIT): Likewise.
68904         * lib/posixtm.c (ISDIGIT, year): Likewise.
68905         * lib/strverscmp.c (ISDIGIT): Likewise.
68906         * lib/userspec.c (ISDIGIT): Likewise.
68907
68908 2002-01-16  Jim Meyering  <meyering@lucent.com>
68909
68910         * lib/getdate.y: Add three semicolons, each just before a closing
68911         brace. Bison (as of version 1.31) no longer papers over that mistake.
68912
68913 2002-01-05  Jim Meyering  <meyering@lucent.com>
68914
68915         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68916
68917 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68918
68919         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68920         not silently exit merely because the output buffer happens to
68921         have nothing pending.
68922
68923 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68924
68925         See the big note in ../ChangeLog.
68926         * lib/human.c (suffixes): Prefer K to k for 1024.
68927         (generate_suffix_backwards): New function.
68928         (human_readable_inexact): Use it.
68929         * lib/xstrtol.c (__xstrtol): If there is no number but there
68930         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68931         Accept 'K' as well as 'k'.
68932
68933 2001-12-15  Jim Meyering  <meyering@lucent.com>
68934
68935         * lib/regex.h (__restrict_arr): Update from libc.
68936
68937         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68938         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68939         (STREQ): Define.
68940
68941 2001-12-14  Jim Meyering  <meyering@lucent.com>
68942
68943         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68944         Suggestion from Bruno Haible.
68945
68946 2001-12-10  Jim Meyering  <meyering@lucent.com>
68947
68948         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68949         xrealloc, Instead, include "xalloc.h".
68950         (initbuffer): Don't cast xmalloc return value to char*.
68951         (readline): Reword comment.
68952         Don't cast xrealloc return value to char*
68953         Return NULL, not 0.
68954
68955 2001-12-09  Jim Meyering  <meyering@lucent.com>
68956
68957         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68958         about `signed and unsigned type in conditional expression'.
68959         * lib/posixtm.c (posix_time_parse): Likewise.
68960
68961         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68962
68963         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68964         to avoid a pedantic warning.
68965
68966         * lib/getstr.c: Don't include assert.h.
68967         (getstr): Remove warning-evoking assertions.
68968         Return -1 if offset parameter is out of bounds.
68969         Change the type of a local from int to size_t.
68970
68971         * lib/strftime.c (my_strftime_localtime_r): Include this function
68972         definition in the `#if ! HAVE_TM_GMTOFF' block.
68973
68974         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68975         Include xalloc.h instead.
68976
68977 2001-12-02  Jim Meyering  <meyering@lucent.com>
68978
68979         * lib/tempname.c: Don't declare getenv, thus reverting the change of
68980         2001-11-18.  It's no longer necessary, now that stdlib.h is always
68981         included.
68982
68983         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68984         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68985
68986 2001-11-30  Akim Demaille  <akim@epita.fr>
68987
68988         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68989         before being defined.
68990
68991 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68992
68993         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68994         First arg is int, not unsigned.
68995         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68996         (SIZE_MAX, UINT_MAX): New macros.
68997         (quotearg_n_options): Abort if N is negative.
68998         Avoid overflow check on hosts where size_t is 64 bits and int
68999         is 32 bits, as overflow is impossible there.
69000         Fix off-by-one typo that caused unnecessary reallocation.
69001
69002 2001-11-27  Jim Meyering  <meyering@lucent.com>
69003
69004         * lib/tempname.c: Merge with version from libc.
69005         * lib/regex.c: Likewise.
69006
69007         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
69008         systems for which STDC_HEADERS is 0, it was not included, resulting in
69009         a warning about an integer-to-pointer conversion problem with getenv.
69010         Reported by Volker Borchert.
69011
69012 2001-11-26  Jim Meyering  <meyering@lucent.com>
69013
69014         * lib/gtod.h: Remove file.
69015         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
69016         * lib/gettimeofday.c: Don't include gtod.h.
69017         (GTOD_init): Remove function.
69018         (rpl_gettimeofday): Do its job here instead, rather than aborting.
69019         Suggestion from Volker Borchert.
69020
69021 2001-11-23  Jim Meyering  <meyering@lucent.com>
69022
69023         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
69024         it.
69025         * lib/hash.c (struct hash_table): Define it here instead.
69026
69027 2001-11-22  Jim Meyering  <meyering@lucent.com>
69028
69029         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
69030
69031 2001-11-20  Jim Meyering  <meyering@lucent.com>
69032
69033         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
69034         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
69035
69036 2001-11-19  Jim Meyering  <meyering@lucent.com>
69037
69038         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
69039         directory.  Use "conftestXXXXXX" as the template.
69040         Suggestion from Paul Eggert.
69041
69042         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
69043         immediately, so the test doesn't mistakenly hit the max-open-files
69044         limit.
69045
69046 2001-11-18  Paul Eggert  <eggert@twinsun.com>
69047
69048         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
69049         (TEMPORARIES): New macro.
69050         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
69051         removes an artificial limitation (e.g. HP-UX 10.20, where
69052         TMP_MAX is 17576).
69053
69054 2001-11-18  Jim Meyering  <meyering@lucent.com>
69055
69056         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
69057
69058 2001-11-18  Jim Meyering  <meyering@lucent.com>
69059
69060         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
69061         on SunOS 4.
69062
69063         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
69064         files will be created before anything else.
69065
69066 2001-11-17  Paul Eggert  <eggert@twinsun.com>
69067
69068         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
69069         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
69070
69071 2001-11-17  Jim Meyering  <meyering@lucent.com>
69072
69073         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
69074         Prompted by a report from Bob Proulx.
69075
69076         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69077         Instead, require UTILS_FUNC_MKSTEMP.
69078
69079 2001-11-17  Jim Meyering  <meyering@lucent.com>
69080
69081         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69082         Now, that's done as part of AC_FUNC_STRTOD.
69083
69084 2001-11-17  Jim Meyering  <meyering@lucent.com>
69085
69086         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69087         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69088         rather than group writable.  Patch by Juan F. Codagnone.
69089
69090         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69091         xrealloc, Instead, include "xalloc.h".
69092
69093         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69094         Remove explicit declarations of xmalloc, xrealloc,
69095         and xstrdup.  Instead, include "xalloc.h".
69096
69097         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69098         unlocked-io.h.
69099         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69100         Likewise.
69101         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69102
69103         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69104         Reported by Padraig Brady.
69105
69106         * lib/mkstemp.c: #undef mkstemp.
69107         Include config.h.
69108         (rpl_mkstemp): Rename from mkstemp.
69109         Protoize.
69110
69111 2001-11-16  Jim Meyering  <meyering@lucent.com>
69112
69113         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69114         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69115         determine the amount of total physical memory, use pstat_getstatic.
69116         HPUX-11 doesn't define _SC_PHYS_PAGES.
69117         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69118         If sysconf couldn't be used to determine the amount of available
69119         physical memory, use both pstat_getstatic and pstat_getdynamic.
69120         Based on a patch from Bob Proulx.
69121
69122 2001-11-10  Jim Meyering  <meyering@lucent.com>
69123
69124         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69125         (jm_PREREQ): Use it.
69126
69127 2001-11-09  Jim Meyering  <meyering@lucent.com>
69128
69129         * m4/jm-macros.m4: Require autoconf-2.52f.
69130         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69131         Use these AC_-prefixed names, not the AM_-prefixed ones.
69132
69133         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69134
69135 2001-11-05  Jim Meyering  <meyering@lucent.com>
69136
69137         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69138
69139 2001-11-04  Jim Meyering  <meyering@lucent.com>
69140
69141         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69142         $DEFS.
69143
69144 2001-11-03  Jim Meyering  <meyering@lucent.com>
69145
69146         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69147         of AC_DEFUN.
69148
69149         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69150         know the name of the variable in the macro definition.
69151
69152 2001-11-03  Jim Meyering  <meyering@lucent.com>
69153
69154         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69155         in argmatch_to_argument call.
69156
69157         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69158         argument.
69159
69160         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69161         e.g., a fault due to an attempt to free a NULL pointer.
69162
69163 2001-11-01  Jim Meyering  <meyering@lucent.com>
69164
69165         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69166         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69167
69168 2001-11-01  Jim Meyering  <meyering@lucent.com>
69169
69170         * lib/dirfd.c, lib/dirfd.h: New files.
69171         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69172
69173         * lib/hash.c (hash_print) [TESTING]: Clean up.
69174
69175 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69176
69177         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69178         to avoid a warning if -Wall.
69179
69180 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69181
69182         * README: New file
69183         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69184         (per RMS's instructions, this is now the canonical source)
69185         * lgpl/, gpl/: New directories.
69186
69187 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69188
69189         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69190
69191 2001-10-21  Jim Meyering  <meyering@lucent.com>
69192
69193         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69194         this code would end up calling gettext even in packages built
69195         with --disable-nls.
69196         * lib/getopt.c (_): Likewise.
69197         * lib/regex.c (_): Likewise.
69198
69199 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69200
69201         * m4/error.m4 (jm_PREREQ_ERROR):
69202         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69203         AC_FUNC_STRERROR_R does that.
69204         Check for strerror declaration.
69205
69206         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69207         are supposed to have them these days.
69208         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69209         Merge changes from latest Autoconf CVS.
69210         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69211         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69212         POSIX decided to standardize on the int flavor of strerror_r.
69213
69214 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69215
69216         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69217         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69218         Use strerror_r that is only a macro, even if it is not a function.
69219         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69220         (private_strerror): Use prototypes, not old-style function definition.
69221         (print_errno_message): New function.
69222         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69223         char*-flavored one.
69224         (error_tail, error, error_at_line): Use it.
69225
69226 2001-10-11  Jim Meyering  <meyering@lucent.com>
69227
69228         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69229         and quote_n (1, ... to avoid clobbering a buffer.
69230
69231 2001-10-05  Jim Meyering  <meyering@lucent.com>
69232
69233         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69234         hash-pjw.h.
69235         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69236         * lib/hash-pjw.h: New file.
69237
69238 2001-09-30  Jim Meyering  <meyering@lucent.com>
69239
69240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69241         `struct fsstat' has the `f_fstypename' member.
69242         Use that to define FS_TYPE, which is now used to make
69243         the getfsstat link test tighter.
69244
69245 2001-09-30  Jim Meyering  <meyering@lucent.com>
69246
69247         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69248         Include <sys/ucred.h>, for Apple Darwin.
69249         Include sys/mount.h and sys/fs_types.h only if available.
69250         (FS_TYPE): Define.
69251         (read_filesystem_list): Use FS_TYPE.
69252
69253 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69254
69255         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69256         a boolean context.
69257
69258 2001-09-29  Jim Meyering  <meyering@lucent.com>
69259
69260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69261         [one-argument getmntent function]): Include stdio.h before mntent.h.
69262         SunOS 4.1.x needs it for the declaration of `FILE'.
69263         Patch by Volker Borchert.
69264
69265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69266         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69267         sys/fs_types.h, and make the link-test for getfsstat guard #include
69268         directives with appropriate #if HAVE_*_H tests so that we can
69269         detect getfsstat on Apple Darwin1.3.7 systems.
69270         Reported by Nelson Beebe.
69271         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69272
69273 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69274
69275         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69276         #defines strtoimax.  Also treat the other strto* functions
69277         like strtoimax.
69278
69279         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69280         Check for strtoul and strtoumax,
69281         as those declarations are made even in the signed case.
69282         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69283         Likewise, for strtol and strtoimax.
69284
69285 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69286
69287         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69288         #defines strtoimax.  Also treat the other strto* functions
69289         like strtoimax.
69290
69291         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69292         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69293         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69294
69295 2001-09-26  Jim Meyering  <meyering@lucent.com>
69296
69297         Most macros in unlocked-io.h had the wrong number of arguments.
69298         * lib/gen-uio: New script.
69299         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69300         * lib/unlocked-io.hin: Remove file.
69301         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69302         rather than trying to embed it here.
69303         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69304         Reported by Padraig Brady.
69305
69306 2001-09-25  Volker Borchert  <bt@teknon.de>
69307
69308         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69309         `result'.
69310
69311 2001-09-24  Jim Meyering  <meyering@lucent.com>
69312
69313         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69314
69315 2001-09-23  Jim Meyering  <meyering@lucent.com>
69316
69317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69318         instead of the mere test for existence of mntent.h.  The latter
69319         would get a false-positive on AIX 3.4 systems.
69320         In the outer getmntent if-block, don't die if neither of the getmntent
69321         tests succeeds.  Instead, just fall through and continue with the
69322         remaining tests.
69323
69324 2001-09-23  Jim Meyering  <meyering@lucent.com>
69325
69326         * lib/mountlist.c: Remove useless parentheses in #if directives.
69327         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69328         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69329
69330 2001-09-22  Jim Meyering  <meyering@lucent.com>
69331
69332         * m4/gettext.m4: New file.  From gettext.
69333         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69334         * m4/progtest.m4: Likewise
69335         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69336         * m4/glibc21.m4: Likewise.
69337
69338         * m4/libintl.m4: Remove.  No longer used.
69339
69340 2001-09-22  Jim Meyering  <meyering@lucent.com>
69341
69342         * lib/localcharset.c: Update from latest gettext.
69343         * lib/config.charset: Likewise.
69344
69345 2001-09-20  Jim Meyering  <meyering@lucent.com>
69346
69347         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69348         strtoimax.
69349         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69350         strtoumax.
69351
69352 2001-09-20  Jim Meyering  <meyering@lucent.com>
69353
69354         * lib/xstrtol.c (strtoimax): Guard declaration with
69355         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69356         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69357         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69358         (strtoumax): Likewise, for completeness (it wasn't necessary).
69359
69360 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69361
69362         * lib/strtoimax.c (HAVE_LONG_LONG):
69363         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69364         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69365         to work around bug in IBM C compiler.
69366
69367 2001-09-17  Jim Meyering  <meyering@lucent.com>
69368
69369         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69370         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69371         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69372         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69373         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69374         whenever the right hand side need not be expanded by the shell.
69375
69376 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69377
69378         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69379         library.  It's not correct, as some older glibcs are buggy.
69380         fnmatch wasn't fixed until glibc 2.2.
69381
69382         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69383         special shell magic here.
69384
69385 2001-09-16  Jim Meyering  <meyering@lucent.com>
69386
69387         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69388         * m4/jm-macros.m4: Require it.
69389
69390 2001-09-16  Jim Meyering  <meyering@lucent.com>
69391
69392         * lib/mkdir.c: New file.
69393
69394 2001-09-15  Jim Meyering  <meyering@lucent.com>
69395
69396         * m4/jm-macros.m4: Check for help2man.
69397
69398 2001-09-11  Jim Meyering  <meyering@lucent.com>
69399
69400         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69401         The body, by Paul Eggert, was moved here from configure.in.
69402         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69403
69404 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69405
69406         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69407         (jm_PREREQ): Use it.
69408
69409 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69410
69411         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69412         Use ssize_t, not int, to store result of readlink.
69413         Check for ssize_t overflow as well as size_t overflow,
69414         as POSIX says the result of readlink is implementation-defined
69415         when ssize_t overflows.
69416         Remove unnecessary cast to char*.
69417         Use free+malloc instead of realloc, as the storage doesn't need
69418         to be preserved and it's clearer and can be more efficient that way.
69419         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69420         * lib/xreadlink.h (xreadlink): Update prototype.
69421
69422 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69423
69424         * lib/xgetcwd.c: Revert some of the previous change; intead,
69425         fix the HAVE_GETCWD_NULL code to behave more like the
69426         !HAVE_GETCWD_NULL code used to.
69427
69428         Include "xalloc.h".
69429         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69430         invoke xalloc_die.
69431
69432 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69433
69434         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69435         sys/param.h, as pathmax.h includes them.
69436
69437 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69438
69439         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69440         (jm_PREREQ_XGETCWD): New macro.
69441
69442         * m4/getcwd.m4: New file.
69443
69444 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69445
69446         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69447         like the HAVE_GETCWD_NULL code.
69448         Include pathmax.h if not HAVE_GETCWD.
69449         Do not include xalloc.h.
69450         (INITIAL_BUFFER_SIZE): New symbol.
69451         Do not use xmalloc / xrealloc, since the caller is responsible for
69452         handling errors.  Preserve errno around `free' during failure.
69453         Do not overrun buffer when using getwd.
69454
69455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69456
69457         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69458         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69459         getcwd (NULL, 0).
69460
69461 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69462
69463         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69464         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69465         spotted by Jim Meyering.
69466
69467 2001-09-03  Jim Meyering  <meyering@lucent.com>
69468
69469         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69470         failure.
69471
69472 2001-09-02  Jim Meyering  <meyering@lucent.com>
69473
69474         * lib/error.c: Update from GNU libc.
69475
69476 2001-09-01  Jim Meyering  <meyering@lucent.com>
69477
69478         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69479         Used by df.
69480
69481 2001-09-01  Jim Meyering  <meyering@lucent.com>
69482
69483         * lib/xreadlink.c: New file.
69484         * lib/xreadlink.h: New file.
69485         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69486         xreadlink.h.
69487
69488         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69489         doesn't conflict with sparc Solaris 7's definition in
69490         /usr/include/sys/int_types.h.
69491
69492         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69493         files.
69494         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69495         and strncasecmp as r-values.  Unixware didn't have declarations.
69496
69497 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69498
69499         * lib/xstrtol.h: Add copyright notice.
69500         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69501         LONGINT_INVALID_SUFFIX_CHAR.
69502
69503 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69504
69505         * lib/xstrtol.c (strtoimax): New decl.
69506
69507 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69508
69509         * lib/xgetcwd.c: Don't include pathmax.h.
69510         Include stdlib.h and unistd.h if available.
69511         Include xalloc.h.
69512         (xmalloc, xstrdup, free): Remove decls.
69513         (xgetcwd): Don't assume sizes fit in unsigned.
69514         Check for overflow when computing sizes.
69515         Simplify reallocation code.
69516
69517 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69518
69519         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69520         a directory's st_size can have an arbitrary value, so the old
69521         usage could waste an arbitrary amount of memory.  All uses
69522         changed.
69523         * lib/savedir.h: Update prototype.
69524
69525 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69526
69527         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69528
69529         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69530         old strtoimax.c.
69531
69532         Also, make the following further changes to make this file's
69533         configuration more similar to that of strtol.c:
69534         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69535         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69536         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69537         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69538         changed to signed values.
69539
69540         And make the following changes as well:
69541         Fix copyright notice, as 1999 was missing.
69542         (verify): New macro.
69543         (strtoimax): Check sizes at compile-time, not run-time.
69544         Prefer strtol to strtoll if both work.
69545         (main): Remove; it was not that useful and was a pain to maintain.
69546
69547         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69548
69549 2001-08-31  Jim Meyering  <meyering@lucent.com>
69550
69551         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69552         Use an initial, malloc'd, buffer of length 128 rather than
69553         a statically allocated one of length 1024.
69554
69555 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69556
69557         Simplify code, partly by assuming autoconf 2.52 semantics.
69558
69559         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69560
69561         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69562         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69563         All uses removed.
69564         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69565         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69566         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69567         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69568         jm_AC_HEADER_INTTYPES_H.
69569         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69570
69571         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69572
69573         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69574         Quote first arg of AC_DEFUN.
69575         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69576         since they are needed to parse the include file even if we need
69577         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69579         but with opposite signedness.
69580
69581 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69582
69583         Merge 'exclude' changes from tar 1.13.22.
69584         This fixes one or two unlikely storage allocation overflow bugs,
69585         but doesn't change user-visible behavior otherwise.
69586
69587 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69588
69589         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69590         (jm_PREREQ_EXCLUDE): New macro.
69591
69592 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69593
69594         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69595         tm to be declared.
69596
69597 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69598
69599         * lib/hash.c: Remove '2001' from copyright notice.
69600
69601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69602
69603         * lib/full-write.h: New file.
69604         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69605         * lib/full-write.c: Correct credits, as cccp.c no longer
69606         exists and anyway it was so heavily changed from the old cccp
69607         code as to be unrecognizable.  Include full-write.h.
69608         (full_write) Return size_t, with short writes meaning failure.
69609         All callers changed.  This fixes a bug with large buffers
69610         on 64-bit hosts.
69611         * lib/utime.c: Include full-write.h.
69612
69613 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69614
69615         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69616         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69617         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69618         Include if available.
69619         (<xalloc.h>): Include
69620         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69621         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69622         collide with FNM macros.
69623         (struct patopts): New struct.
69624         (struct exclude): Use it, as exclude patterns now come with options.
69625         (new_exclude): Support above changes.
69626         (new_exclude, add_exclude_file):
69627         Initial size must now be a power of two to simplify overflow checking.
69628         (free_exclude, fnmatch_no_wildcards): New function.
69629         (excluded_filename): No longer requires options arg, as the options
69630         are determined by add_exclude.  Now returns bool, not int.
69631         (excluded_filename, add_exclude):
69632         Add support for the fancy new exclusion options.
69633         (add_exclude, add_exclude_file): Now takes int options arg.
69634         Check for arithmetic overflow when computing sizes.
69635         (add_exclude_file): xrealloc might modify errno, so don't
69636         realloc until after errno might be used.
69637
69638         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69639         New macros.
69640         (free_exclude): New decl.
69641         (add_exclude, add_exclude_file): Now takes int options arg.
69642         (excluded_filename): No longer requires options arg, as the options
69643         are determined by add_exclude.  Now returns bool, not int.
69644
69645 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69646
69647         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69648
69649 2001-08-27  Jim Meyering  <meyering@lucent.com>
69650
69651         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69652
69653         * lib/version-etc.c (N_): Remove definition.
69654         Revert most of last change.
69655         Instead, simply don't mark the `Copyright...' string for translation.
69656         Based on advice from Paul Eggert.
69657
69658         * lib/strtoxmax.c: Tweak comment.
69659
69660 2001-08-26  Jim Meyering  <meyering@lucent.com>
69661
69662         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69663
69664         * m4/xstrtoimax.m4: New file.
69665         * m4/xstrtoumax.m4: Add comments explaining why we
69666         AC_REPLACE_FUNCS(strtol).
69667
69668 2001-08-26  Jim Meyering  <meyering@lucent.com>
69669
69670         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69671         of copyright with `%s' so translators don't get an untranslated
69672         message in 2002.
69673         (COPYRIGHT_YEAR): Define.
69674         (version_etc): Use fprintf rather than fputs.
69675         Suggestion from Ulrich Drepper.
69676
69677         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69678
69679         * lib/strtoll.c: New file, from GNU libc.
69680         * lib/xstrtoimax.c: New file.
69681
69682         * lib/xstrtol.h: Add xstrtoimax.
69683         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69684         * lib/strtoimax.c: New file.  Likewise, but first define
69685         STRTOUXMAX_SIGNED.
69686
69687         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69688         ...
69689         * lib/strtoxmax.c: ... then renamed to this.
69690
69691 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69692
69693         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69694         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69695         (jm_AC_TYPE_INTMAX_T): New macro.
69696         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69697
69698         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69699
69700         * m4/longlong.m4: Renamed from ulonglong.m4.
69701         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69702         * m4/uintmax_t.m4: Removed.
69703
69704 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69705
69706         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69707         Port to Solaris 8, where 'sed' requires a space after the 'r'
69708         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69709         Redirect output to $tmp just once.
69710
69711 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69712
69713         * lib/addext.c (<errno.h>): Include.
69714         (errno): Declare if not defined.
69715         (addext): Work correctly when pathconf returns -1 and leaves
69716         errno alone because there is no limit.  Also, work even if
69717         pathconf returns a value greater than SIZE_MAX.
69718
69719 2001-08-12  Jim Meyering  <meyering@lucent.com>
69720
69721         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69722         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69723         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69724         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69725         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69726         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69727         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69728         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69729         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69730         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69731         utime.m4, utimes.m4, xstrtoumax.m4:
69732         Quote the first argument in each use of AC_DEFUN.
69733
69734 2001-08-12  Jim Meyering  <meyering@lucent.com>
69735
69736         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69737         Simply `return getcwd (NULL, 0);'.
69738         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69739         Use 1300 as initial value for length, not PATH_MAX.
69740
69741         * lib/pathmax.h: Clean up cpp syntax.
69742
69743 2001-08-12  Jim Meyering  <meyering@lucent.com>
69744
69745         * lib/gettimeofday.c: New file.
69746         * lib/gtod.h: New file.
69747         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69748
69749 2001-08-05  Jim Meyering  <meyering@lucent.com>
69750
69751         * m4/jm-macros.m4: Require autoconf-2.52.
69752
69753 2001-08-04  Jim Meyering  <meyering@lucent.com>
69754
69755         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69756         stmt, to get in sync with glibc.
69757
69758 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69759
69760         The following changes are from gettext 0.10.39 as maintained by
69761         Bruno Haible.
69762
69763         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69764         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69765         with inverted sense.  All uses changed.
69766
69767         * lib/mbswidth.c: Don't include <limits.h>.
69768         Include <stdlib.h> and <string.h> unconditionally.
69769         (iswcntrl, mbsinit, ISCNTRL): New macros.
69770         (mbsnwidth): Use K&R style function declarations.
69771         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69772         can optimize it when MB_CUR_MAX == 1.
69773         The width of control characters is zero, not 1.
69774
69775 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69776
69777         The following changes are from gettext 0.10.39 as maintained by
69778         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69779
69780         * m4/codeset.m4: Upgrade to serial AM1.
69781         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69782         all uses changed.  Quote first arg of AC_DEFUN.
69783         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69784
69785         * m4/iconv.m4: Upgrade to serial AM2.
69786         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69787         Add --with-libconv-prefix.
69788         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69789         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69790         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69791         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69792         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69793
69794         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69795         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69796         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69797         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69798         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69799         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69800         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69801         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69802         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69803
69804         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69805         string.h any more.
69806
69807         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69808         not the default value.
69809
69810         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69811         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69812         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69813         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69814         Also check for iswcntrl, used for wcwidth fallback.
69815         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69816         to Autoconf 2.13.
69817
69818 2001-08-03  Jim Meyering  <meyering@lucent.com>
69819
69820         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69821         as it was in the original.  Reported by Paul Eggert.
69822
69823 2001-07-16  Jim Meyering  <meyering@lucent.com>
69824
69825         * m4/gettimeofday.m4: New file.
69826         Prompted by a report from Bernhard Baehr.
69827
69828 2001-07-15  Jim Meyering  <meyering@lucent.com>
69829
69830         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69831         stuff. Now it's in ../Makefile.cfg.
69832
69833 2001-07-15  Jim Meyering  <meyering@lucent.com>
69834
69835         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69836         (BUILT_SOURCES): Add unlocked-io.h.
69837         (io_functions): Define.
69838         (unlocked-io.h): New rule.
69839         (DISTCLEANFILES): Add unlocked-io.h.
69840         (all-local): Depend on unlocked-io.h, to ensure it is created.
69841
69842         * lib/unlocked-io.hin: New file
69843
69844         * lib/regex.c: Update from glibc.
69845
69846 2001-07-05  Jim Meyering  <meyering@lucent.com>
69847
69848         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69849         recommendation.
69850         (libfetish_a_SOURCES): Put all .h files here instead.
69851         Remove a thus-exposed (better checks in automake) duplicate and
69852         two unnecessary .h files.
69853
69854 2001-07-04  Jim Meyering  <meyering@lucent.com>
69855
69856         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69857         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69858         distcheck failure.
69859
69860 2001-07-02  Jim Meyering  <meyering@lucent.com>
69861
69862         The following changes were prompted by suggestions from Bruno Haible.
69863
69864         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69865         is now generated.
69866         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69867         definition of EXTRA_DIST.
69868         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69869         ensure that the generated file is created/updated whenever the list
69870         of $(unlocked_functions) is changed.
69871         (jm-glibc-io.m4): New rule.
69872         (unlocked-io.h): New rule -- currently unused.
69873
69874 2001-06-24  Jim Meyering  <meyering@lucent.com>
69875
69876         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69877         unmatched right bracket, rather than kludging it with an extra,
69878         falsely-matching quote in a comment.  Patch by Akim Demaille.
69879
69880 2001-06-11  Jim Meyering  <meyering@lucent.com>
69881
69882         * lib/regex.c: Update from GNU libc.
69883
69884 2001-05-27  Jim Meyering  <meyering@lucent.com>
69885
69886         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69887         Check for ut_type in struct utmp.
69888
69889 2001-05-27  Jim Meyering  <meyering@lucent.com>
69890
69891         * lib/readutmp.h (UT_TYPE): Define.
69892
69893 2001-05-24  Jim Meyering  <meyering@lucent.com>
69894
69895         * lib/argmatch.c: Include "quote.h".
69896         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69897         quote function.  Reported by Göran Uddeborg.
69898
69899 2001-05-22  Jim Meyering  <meyering@lucent.com>
69900
69901         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69902         now that we use the package-supplied version unconditionally.
69903         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69904
69905 2001-05-21  Jim Meyering  <meyering@lucent.com>
69906
69907         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69908         shell syntax errors.
69909
69910 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69911
69912         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69913
69914 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69915
69916         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69917         Don't bother to check library strftime, since
69918         we'll be using our own my_strftime function anyway.
69919         Define my_strftime instead of strftime.
69920
69921 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69922
69923         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69924         which is not yet declared.
69925
69926 2001-05-15  Jim Meyering  <meyering@lucent.com>
69927
69928         * m4/regex.m4: Use proper quoting so brackets appear in the test
69929         program.
69930         Reported by, and with help from, Bruno Haible.
69931
69932 2001-05-13  Jim Meyering  <meyering@lucent.com>
69933
69934         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69935         undefined.
69936
69937 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69938
69939         dirname code cleanup.  base_name now behaves more compatibly
69940         with POSIX basename when given file names that have trailing
69941         slashes, and similarly for dir_name.  Add new primitives
69942         base_len and dir_len.  Put the directory-name-related decls
69943         into dirname.h.
69944
69945         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69946         * lib/backupfile.c (base_name): Likewise.
69947         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69948         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69949         * lib/makepath.c (strip_trailing_slashes): Likewise.
69950         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69951         ISSLASH): Likewise.
69952         * lib/rename.c (strip_trailing_slashes): Likewise.
69953         * lib/same.c (base_name): Likewise.
69954         * lib/stripslash.c (ISSLASH): Likewise.
69955
69956         * lib/addext.c: Include <dirname.h> after size_t is defined.
69957         * lib/backupfile.c: Likewise.
69958
69959         * lib/addext.c (addext): Use base_len to trim redundant
69960         trailing slashes instead of doing it ourselves.
69961         But do not trim the last slash if it is not redundant.
69962
69963         * lib/backupfile.c (find_backup_file_name,
69964         max_backup_version): Use base_len instead of rolling it ourselves.
69965         Handle the case of "" and (on DOS) "C:" correctly.
69966
69967         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69968         needed. Include <string.h>, <dirname.h>.
69969         (base_name): Allow file names ending in slashes, other than names
69970         that are all slashes.  In this case, return the basename followed
69971         by the slashes.  This is more general, and can be used in places
69972         where the original base_name purposely had an assertion failure.
69973         (base_len): New function.
69974
69975         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69976         Do not include <assert.h>; no longer needed.
69977         Include xalloc.h.
69978         (memrchr): Remove decl.
69979         (dir_name_r): Remove.
69980         (dir_len): Renamed from dirlen.  All callers changed.
69981         Rewrite in terms of base_name, for simplicity and consistency.
69982         (dir_name): Never return NULL.  All callers changed.
69983         Do not include <stdlib.h> in test program; no longer needed.
69984         return 0; is fine for test program.
69985
69986         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69987         New macros.
69988         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69989
69990         * lib/path-concat.c (path_concat): Use base_len to compute
69991         base length, not strlen; this means we cannot rely on memcpy
69992         to null-terminate.
69993
69994         * lib/same.c (STREQ): Remove.
69995         (same_name): Handle the case where the basename ends in trailing '/'.
69996
69997         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69998         a slash was stripped.  Do not strip the last slash after a
69999         file system prefix.
70000
70001 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70002
70003         * lib/Makefile.am (libfetish_a_SOURCES):
70004         Add strftime.c, since we now compile it on all hosts.
70005
70006         * lib/strftime.c (my_strftime):
70007         Define to nstrftime if emacs, but only if my_strftime is not defined.
70008         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
70009         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
70010         Add one more extra argument: a nanoseconds value.
70011         All uses changed.
70012         (ns): New macro.
70013         (my_strftime function): Add %N format.
70014         (emacs_strftimeu): Renamed from emacs_strftime,
70015         with extra ut argument.
70016
70017 2001-05-09  Paul Eggert  <eggert@twinsun.com>
70018
70019         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
70020
70021 2001-04-21  Jim Meyering  <meyering@lucent.com>
70022
70023         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
70024         doesn't interfere.
70025
70026 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70027
70028         * m4/ftruncate.m4: Check for chsize.
70029         Link with ftruncate.o unconditionally if ftruncate is missing.
70030         This was required when cross-compiling to i586-mingw32msvc.
70031
70032 2001-04-08  Jim Meyering  <meyering@lucent.com>
70033
70034         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
70035         recomputed; that's necessary when the offset spans a DST transition.
70036         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
70037
70038 2001-04-02  Jim Meyering  <meyering@lucent.com>
70039
70040         * lib/regex.h, regex.c: Update from GNU libc.
70041
70042 2001-03-24  Jim Meyering  <meyering@lucent.com>
70043
70044         * m4/jm-macros.m4: Require autoconf-2.49d.
70045
70046 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
70047
70048         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
70049
70050 2001-03-19  Paul Eggert  <eggert@twinsun.com>
70051
70052         * lib/version-etc.c (version_etc_copyright): Update to 2001.
70053
70054 2001-03-17  Jim Meyering  <meyering@lucent.com>
70055
70056         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
70057         now that the version in autoconf is equivalent.
70058         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
70059
70060         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
70061         Suggestion from Akim Demaille.
70062
70063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
70064         (jm_PREREQ_TEMPNAME): New function.
70065
70066 2001-03-16  Paul Eggert  <eggert@twinsun.com>
70067
70068         * lib/tempname.c (uint64_t): Define to uintmax_t if
70069         not defined, and if UINT64_MAX is not defined.
70070         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
70071         Reported by John David Anglin.
70072
70073 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
70074
70075         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
70076         resolve alias if codeset is empty.
70077         * lib/config.charset (BeOS): Use wildcard syntax.
70078
70079 2001-03-13  Jim Meyering  <meyering@lucent.com>
70080
70081         * lib/path-concat.c (path_concat)
70082         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70083         concatenating e.g., `C:' and `foo'.
70084         From Bruno Haible.
70085
70086 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70087
70088         * lib/localcharset.c (locale_charset): Don't use
70089         setlocale(LC_CTYPE,NULL). Don't return NULL.
70090         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70091
70092 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70093
70094         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70095         support for DOS/DJGPP.
70096
70097 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70098
70099         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70100         lacks mkstemp.  Compile our own tempname.c if we compile our own
70101         mkstemp.c, as mkstemp relies on tempname.
70102
70103 2001-03-01  Jim Meyering  <meyering@lucent.com>
70104
70105         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70106         AH_VERBATIM really does output its argument verbatim.
70107
70108 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70109
70110         * lib/Makefile.am (libfetish_a_SOURCES):
70111         Add dup-safer.c, fopen-safer.c.
70112         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70113
70114         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70115         * lib/unistd-safer.h: New files.
70116
70117 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70118
70119         The mkstemp replacement is taken from glibc 2.2.2, with some
70120         portability fixes for use outside glibc, as follows:
70121
70122         * lib/tempname.c (struct_stat64): New macro.
70123         (direxists, __gen_tempname): Use it.
70124         This avoids a portability problem with Solaris 8.
70125
70126         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70127         (<stddef.h>, <stdint.h>, <string.h>):
70128         Include only if STDC_HEADERS || _LIBC.
70129         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70130         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70131         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70132         (__set_errno): Define this macro if <errno.h> doesn't.
70133         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70134         Define these macros if <stdio.h> doesn't.
70135         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70136         Define these macros if <sys/stat.h>
70137         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70138         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70139         __xstat64): Define if not _LIBC.
70140         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70141         (__gen_tempname): Invoke gettimeofday only if
70142         HAVE_GETTIMEOFDAY || _LIBC;
70143         otherwise, fall back on plain "time".
70144         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70145
70146         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70147
70148         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70149
70150 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70151
70152         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70153
70154 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70155
70156         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70157         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70158         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70159         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70160
70161 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70162
70163         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70164         Remove workaround macros for hosts that have mbrtowc but not
70165         mbstate_t, as we now insist on proper declarations for both
70166         before using mbrtowc.
70167
70168 2001-02-17  Jim Meyering  <meyering@lucent.com>
70169
70170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70171         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70172         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70173         UnixWare 7.1.1.
70174
70175         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70176         rather than AC_CACHE_VAL.
70177
70178 2001-02-17  Jim Meyering  <meyering@lucent.com>
70179
70180         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70181         around included file name.
70182
70183         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70184
70185         * lib/strftime.c: Update from GNU libc (the only changes were to
70186         comments).
70187
70188 2001-02-17  Jim Meyering  <meyering@lucent.com>
70189
70190         * lib/regex.c: Update from libc.
70191
70192 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70193
70194         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70195         clash.
70196
70197 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70198
70199         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70200         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70201         Reported by Mark Hounschell via Paul Eggert.
70202
70203 2001-02-07  Jim Meyering  <meyering@lucent.com>
70204
70205         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70206
70207 2001-02-05  Jim Meyering  <meyering@lucent.com>
70208
70209         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70210         it includes the patch required for `large file' support with at least
70211         HP-UX's 10.20 /bin/cc.
70212
70213 2001-02-03  Jim Meyering  <meyering@lucent.com>
70214
70215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70216         AS_IF, now that it works once again (mysteriously).
70217         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70218
70219 2001-01-30  Jim Meyering  <meyering@lucent.com>
70220
70221         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70222         * m4/chown.m4: Rename conftestchown to conftest.chown.
70223         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70224         s/conftestdir2/conftest.d2/.
70225         * m4/utimes.m4: s/conftestdata/conftest.data/
70226         Inspired by Pavel Roskin's change in autoconf.
70227
70228 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70229
70230         * lib/config.charset: Update for FreeBSD 4.2.
70231
70232 2001-01-27  Jim Meyering  <meyering@lucent.com>
70233
70234         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70235         a use of AS_IF.
70236         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70237
70238 2001-01-26  Jim Meyering  <meyering@lucent.com>
70239
70240         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70241         quotearg.c includes it.
70242
70243 2001-01-26  Jim Meyering  <meyering@lucent.com>
70244
70245         * lib/quotearg.c: Include stddef.h.
70246         * lib/quote.c: Include stddef.h.
70247         Reported by Axel Kittenberger.
70248
70249         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70250         line in double quotes so that it evokes a better diagnostic.
70251         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70252         Reported by Axel Kittenberger.
70253
70254 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70255
70256         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70257         as if it was a `charset'.
70258
70259 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70260
70261         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70262         has const.
70263
70264 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70265
70266         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70267         to avoid a warning.  Add back 'const' to inptr.
70268
70269 2001-01-20  Jim Meyering  <meyering@lucent.com>
70270
70271         Be sure that headers are checked before used in code compiled
70272         for the type checks.
70273         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70274         In place of that, invoke jm_CHECK_ALL_TYPES.
70275         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70276         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70277         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70278         The check for ssize_t was mistakenly run before the test for unistd.h.
70279
70280         The configure-time check for stdbool.h was missing.
70281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70282         (jm_PREREQ_HASH): New function.
70283
70284 2001-01-17  Jim Meyering  <meyering@lucent.com>
70285
70286         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70287         for autoconf-2.49c.
70288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70289
70290 2001-01-16  Jim Meyering  <meyering@lucent.com>
70291
70292         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70293         From Bruno Haible.
70294
70295 2001-01-14  Jim Meyering  <meyering@lucent.com>
70296
70297         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70298         foo and bar.  Create conftestdir/ in the script, not in the C code.
70299         Remove directories in the script, not in the C code.
70300         Remove conftestdir{,2} before trying to create the directory.
70301         Make the entire configure script fail if the mkdir fails.
70302
70303 2001-01-14  Jim Meyering  <meyering@lucent.com>
70304
70305         * lib/rename.c: New file.  From Volker Borchert.
70306         Include stdlib.h, string.h or strings.h, and xalloc.h.
70307         Use strip_trailing_slashes rather than open-coding it.
70308
70309 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70310
70311         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70312
70313 2001-01-03  Jim Meyering  <meyering@lucent.com>
70314
70315         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70316         of local `inptr' to avoid warning with some system declarations of
70317         iconv.
70318
70319 2001-01-02  Volker Borchert  <bt@teknon.de>
70320
70321         * m4/rename.m4: New file.
70322         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70323
70324 2001-01-01  Jim Meyering  <meyering@lucent.com>
70325
70326         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70327         even on systems with utmpx.h.  It's necessary for the declaration of
70328         utmp's ut_user member.  Reported by Andreas Jaeger.
70329
70330         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70331         available. They are required for the declarations of getgrgid and
70332         getpwuid resp.
70333         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70334         Reported by Andreas Jaeger.
70335
70336 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70337
70338         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70339         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70340         so `make install' also works in VPATH builds.
70341
70342 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70343
70344         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70345         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70346         can be used in subdirectories.
70347
70348 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70349
70350         * lib/modechange.c: Do not assume that mode_t uses the
70351         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70352         the other-execute bit of FOO even if S_IXOTH != 1.
70353
70354         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70355         WOTH, XOTH, ALLM): New macros.
70356         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70357          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70358         Use them.
70359         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70360         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70361         (mode_compile):
70362         No need to use uintmax_t; unsigned long is long enough.
70363         Don't bother to get suffix since we don't use it.
70364
70365 2000-12-26  Jim Meyering  <meyering@lucent.com>
70366
70367         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70368         better with autoheader.
70369
70370 2000-12-24  Jim Meyering  <meyering@lucent.com>
70371
70372         * lib/hash.c (is_prime): Return explicit boolean values.
70373         (hash_get_first): Return NULL to appease Irix5.6's 89.
70374         Reported by Nelson Beebe.
70375
70376 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70377
70378         * lib/localcharset.c (locale_charset): Add support for Win32.
70379
70380 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70381
70382         * lib/physmem.h, lib/physmem.c: New files.
70383
70384         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70385         (noinst_HEADERS): Add physmem.h.
70386
70387         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70388         't' for compatibility with Solaris 8 sort.
70389
70390 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70391
70392         * lib/config.charset: Add support for BeOS.
70393
70394 2000-12-17  Jim Meyering  <meyering@lucent.com>
70395
70396         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70397         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70398
70399 2000-12-16  Jim Meyering  <meyering@lucent.com>
70400
70401         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70402         N and M) would have treated it like `chown N:N FILE'.
70403
70404         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70405
70406 2000-12-16  Jim Meyering  <meyering@lucent.com>
70407
70408         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70409         SHELLS_FILE to a file name that's useful on djgpp systems.
70410         Include stdlib.h.
70411         (ADDITIONAL_DEFAULT_SHELLS): Define.
70412         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70413         Based mostly on a patch from Prashant TR.
70414
70415 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70416
70417         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70418         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70419         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70420
70421 2000-12-08  Andreas Schwab  <schwab@suse.de>
70422
70423         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70424         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70425
70426 2000-12-07  Jim Meyering  <meyering@lucent.com>
70427
70428         * lib/stripslash.c (ISSLASH): Define.
70429         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70430         `/'.
70431         From Prashant TR.
70432
70433         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70434         (dir_name_r): Declare this function as static.
70435         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70436         manifest itself on a name containing a mix of slashes and
70437         backslashes.
70438         Make this function work with names starting with a DOS-style
70439         drive letter and colon prefix.
70440         (dir_name): Append `.' if necessary.
70441         Based mostly on patches from Prashant TR and Eli Zaretskii.
70442
70443         * lib/dirname.h (dir_name_r): Remove prototype.
70444
70445 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70446
70447         * m4/off_t-format.m4: Remove this file.
70448         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70449
70450 2000-12-06  Jim Meyering  <meyering@lucent.com>
70451
70452         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70453         replacement strtoull, we may well need the replacement strtoul, too.
70454         Check for declarations of strtoul and strtoull.
70455         Check for strtol.  Mainly as a cue to cause automake to include
70456         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70457         Check for limits.h -- strtol.c needs it.
70458
70459 2000-12-05  Jim Meyering  <meyering@lucent.com>
70460
70461         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70462
70463 2000-12-04  Jim Meyering  <meyering@lucent.com>
70464
70465         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70466         Also include memory.h, stdlib.h, unistd.h if appropriate.
70467         Reported by Andreas Jaeger (conflicting declaration of malloc).
70468
70469 2000-12-02  Jim Meyering  <meyering@lucent.com>
70470
70471         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70472         * m4/jm-macros.m4 (jm_MACROS): require it.
70473
70474 2000-12-02  Jim Meyering  <meyering@lucent.com>
70475
70476         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70477
70478 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70479
70480         * lib/memrchr.c: Include <config.h> before any system include file.
70481
70482 2000-11-30  Jim Meyering  <meyering@lucent.com>
70483
70484         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70485
70486 2000-11-30  Jim Meyering  <meyering@lucent.com>
70487
70488         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70489
70490 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70491
70492         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70493
70494 2000-11-26  Jim Meyering  <meyering@lucent.com>
70495
70496         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70497
70498 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70499
70500         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70501         size of (size_t) -1; it's not portable.
70502
70503 2000-11-17  Jim Meyering  <meyering@lucent.com>
70504
70505         * lib/strstr.c: Update from GNU libc.
70506
70507 2000-11-17  Akim Demaille  <akim@epita.fr>
70508
70509         * lib/obstack.h: Formatting changes.
70510         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70511         prevent type checking.
70512         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70513         cast the value to (void *): assigning a `foo *' to a `void *'
70514         variable is valid.
70515         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70516
70517 2000-11-16  Jim Meyering  <meyering@lucent.com>
70518
70519         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70520
70521 2000-11-11  Jim Meyering  <meyering@lucent.com>
70522
70523         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70524
70525 2000-11-10  Jim Meyering  <meyering@lucent.com>
70526
70527         * lib/obstack.h: Update from GNU libc.
70528         * lib/obstack.c: Likewise.
70529
70530 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70531
70532         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70533
70534 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70535
70536         * lib/getusershell.c (setusershell): Use rewind rather than
70537         fseek/fseeko, to avoid configuration hassles with fseeko.
70538         Don't bother opening SHELLS_FILE if shellstream is NULL;
70539         it's not necessary.
70540
70541 2000-11-05  Jim Meyering  <meyering@lucent.com>
70542
70543         * lib/makepath.h (make_dir): Declare.
70544         * lib/makepath.c (make_dir): Remove `static' attribute.
70545         Tweak a comment.
70546
70547 2000-11-04  Jim Meyering  <meyering@lucent.com>
70548
70549         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70550
70551 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70552
70553         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70554         last one in a bucket, advance to the next bucket.
70555
70556 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70557
70558         * lib/fnmatch.c: Do not comment out all the code if we are using
70559         the GNU C library, because in some cases we are replacing buggy
70560         code in the GNU C library itself.
70561
70562 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70563
70564         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70565         (regex_compile): Catch bogus \(\1\).
70566
70567 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70568
70569         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70570         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70571         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70572
70573 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70574
70575         * lib/error.h, getline.h, modechange.h:
70576         Remove "2000" from Copyright line, as the file hasn't been
70577         changed this year other than in the copyright notice.
70578
70579         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70580         was changed this year.
70581
70582 2000-10-29  Jim Meyering  <meyering@lucent.com>
70583
70584         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70585         renaming.
70586         * m4/ls-mntd-fs.m4: Likewise
70587
70588 2000-10-29  Jim Meyering  <meyering@lucent.com>
70589
70590         * lib/xstat.in: Fix grammar in comment.
70591
70592 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70593
70594         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70595         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70596         doesn't define __restrict_arr.
70597
70598 2000-10-28  Jim Meyering  <meyering@lucent.com>
70599
70600         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70601         (jm_PREREQ_MEMCHR): New function.
70602
70603 2000-10-28  Jim Meyering  <meyering@lucent.com>
70604
70605         * lib/memchr.c: Update from libc.
70606         Adjust for portability:
70607         [HAVE_STDLIB_H]: Include stdlib.h.
70608         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70609         Undef __memchr, too.
70610         [!weak_alias]: Define __memchr to memchr.
70611
70612         * lib/regex.c: Update from libc.
70613         * lib/regex.h: Likewise.
70614         * lib/getopt1.c: Likewise.
70615         * lib/memcmp.c: Likewise.
70616
70617         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70618         Avoid using fseek, when possible -- it's broken by design.
70619         Patch by Ulrich Drepper.
70620
70621 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70622
70623         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70624         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70625         Giving in to popular pressure to shut up the compiler with casts.
70626
70627 2000-10-26  Jim Meyering  <meyering@lucent.com>
70628
70629         * lib/strftime.c: Update from libc.
70630
70631 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70632
70633         * regex.c: More `unsigned char' -> `re_char' changes.
70634         Also change several `int' into `re_wchar_t'.
70635         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70636         (PUSH_FAILURE_POINTER): Don't cast any more.
70637         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70638         We want GCC to complain, since this piece of code makes
70639         re_match non-reentrant, which *should* be fixed.
70640         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70641         (EXTEND_BUFFER): Use RETALLOC.
70642         (SET_LIST_BIT): Don't cast.
70643         (re_wchar_t): New type.
70644         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70645         that those two functions will always properly return.
70646         (IMMEDIATE_QUIT_CHECK): Cast to void.
70647         (analyse_first): Use recursion rather than an explicit stack.
70648         (re_compile_fastmap): Can't fail anymore.
70649         (re_search_2): Don't check re_compile_fastmap for failure.
70650         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70651         Now also sets the new value (passed in a new argument).
70652         (re_match_2_internal): Use it.
70653         Also, use a new var `reg' of type size_t when looping through regs
70654         rather than reuse the inappropriate `mcnt'.
70655
70656 2000-10-25  Jim Meyering  <meyering@lucent.com>
70657
70658         * lib/obstack.c: Update from libc.
70659
70660 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70661
70662         * regex.c (regex_compile): Change the way of handling a range from
70663         a char less than 256 to a char not less than 256.
70664
70665 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70666
70667         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70668         NT-Emacs only.
70669         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70670         so that re_search functions only quit when callers expect them to.
70671
70672 2000-10-23  Jim Meyering  <meyering@lucent.com>
70673
70674         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70675         wrong.  That set_locale call must not have any side effects.
70676         From Paul Eggert.
70677
70678 2000-10-22  Jim Meyering  <meyering@lucent.com>
70679
70680         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70681         [CYCLIC]: Remove now-unused definition.
70682
70683         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70684         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70685         Suggestion from Ulrich Drepper.
70686
70687 2000-10-21  Jim Meyering  <meyering@lucent.com>
70688
70689         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70690         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70691         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70692
70693 2000-10-21  Jim Meyering  <meyering@lucent.com>
70694
70695         * lib/dirname.c (memrchr): Declare if necessary.
70696         (dir_name): Remove the restriction that there be no
70697         trailing slashes.  Now, this code skips past them, effectively
70698         ignoring them.
70699         [TEST_DIRNAME] (main): New unit tests.
70700
70701         * lib/memrchr.c: New file from GNU libc.
70702         Undef __memrchr, too.
70703         [!weak_alias]: Define __memrchr to memrchr.
70704         Guard weak_alias use with `#ifdef weak_alias'.
70705
70706 2000-10-21  Jim Meyering  <meyering@lucent.com>
70707
70708         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70709         (dir_name): Use dir_name_r.
70710         * lib/dirname.h (dir_name_r): Declare it.
70711
70712 2000-10-17  Jim Meyering  <meyering@lucent.com>
70713
70714         * lib/quote.h (PARAMS): Define and use.
70715         Reported by Akim Demaille.
70716
70717         * lib/getopt.c: Update from libc.
70718
70719 2000-10-16  Jim Meyering  <meyering@lucent.com>
70720
70721         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70722         setlocale.
70723         From Jan Fedak.
70724
70725 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70726
70727         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70728
70729 2000-09-25  Jim Meyering  <meyering@lucent.com>
70730
70731         * lib/md5.h (rol): Define (from GnuPG).
70732
70733         * lib/sha.c: Give credit (GnuPG) where due.
70734         (M): Use rol rather than open-coding it.
70735         Add a FIXME comment.
70736
70737 2000-09-21  Jim Meyering  <meyering@lucent.com>
70738
70739         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70740         Reported by Michael Stone.
70741
70742 2000-09-20  Jim Meyering  <meyering@lucent.com>
70743
70744         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70745         (noinst_HEADERS): Add sha.h.
70746         Based on code from Scott G. Miller and from GnuPG.
70747
70748 2000-09-18  Jim Meyering  <meyering@lucent.com>
70749
70750         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70751         LIBS. Otherwise, everyone ends up linking with -lelf for some
70752         configurations.
70753         Reported by Mike Stone.
70754
70755 2000-09-15  Jim Meyering  <meyering@lucent.com>
70756
70757         * lib/regex.c: Update from libc.
70758
70759 2000-09-10  Jim Meyering  <meyering@lucent.com>
70760
70761         * lib/getopt.c (_getopt_internal): Update from glibc.
70762
70763 2000-09-09  Jim Meyering  <meyering@lucent.com>
70764
70765         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70766         think it should be used as a general replacement for isascii.
70767         * lib/fnmatch.c: Likewise.
70768         * lib/mbswidth.c: Likewise
70769         * lib/regex.c: Likewise.
70770
70771         Don't use atoi.
70772         * lib/userspec.c: Include sys/param.h and limits.h.
70773         Include xstrtol.h.
70774         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70775         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70776         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70777         UID, GID.  Check range.
70778
70779 2000-09-06  Jim Meyering  <meyering@lucent.com>
70780
70781         * lib/getopt.c (_getopt_internal): Update from glibc.
70782
70783 2000-08-30  Jim Meyering  <meyering@lucent.com>
70784
70785         * lib/strftime.c: Merge in changes from GNU libc.
70786
70787 2000-08-26  Jim Meyering  <meyering@lucent.com>
70788
70789         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70790         * m4/fpending.m4: New file.
70791
70792 2000-08-26  Jim Meyering  <meyering@lucent.com>
70793
70794         * lib/closeout.c: Include "__fpending.h".
70795         (close_stdout_status): Return right away if there's nothing to flush.
70796
70797         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70798         * lib/__fpending.c: New file.
70799         * lib/__fpending.h: New file.
70800
70801 2000-08-20  Jim Meyering  <meyering@lucent.com>
70802
70803         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70804         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70805         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70806
70807 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70808
70809         Improve fileutils installation on systems where running
70810         programs (like install) can't be unlinked.
70811         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70812         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70813
70814 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70815
70816         Standardize on "memory exhausted" instead of "Memory exhausted"
70817         or "virtual memory exhausted".
70818         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70819         "virtual memory exhausted".
70820         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70821         our own message.
70822         * lib/userspec.c (parse_user_spec): Likewise.
70823         * lib/bumpalloc.h: comment fix
70824         * lib/same.c, userspec.c: Include xalloc.h.
70825
70826         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70827         not char *const and pointing to a constant array.
70828         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70829         (xrealloc): Comment fix.
70830
70831         * lib/userspec.c (parse_user_spec):
70832         Don't translate a message until just before returning,
70833         to avoid unnecessary translation.
70834
70835 2000-08-07  Jim Meyering  <meyering@lucent.com>
70836
70837         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70838         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70839         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70840         getgroups.c, gethostname.c, getopt.h, group-member.c,
70841         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70842         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70843         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70844         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70845         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70846         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70847         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70848         yesno.c: Back out Copyright date changes for each file with no change
70849         this year.  This eases coordination with other programs using the same
70850         source code modules.  From Paul Eggert.
70851
70852 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70853
70854         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70855         not char, for compatibility with glibc 2.1.3 strftime.c.
70856
70857 2000-08-03  Greg McGary  <greg@mcgary.org>
70858
70859         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70860         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70861         (EXTEND_BUFFER): Use them.
70862
70863 2000-08-01  Jim Meyering  <meyering@lucent.com>
70864
70865         * lib/dirname.c (ISSLASH): Define.
70866         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70867         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70868         both `\' and `/' may be use as path separators.
70869         Based on a patch from Prashant TR.
70870
70871 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70872
70873         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70874         slot vector a constant, since it might get modified.
70875
70876 2000-07-31  Jim Meyering  <meyering@lucent.com>
70877
70878         * lib/xmalloc.c: Use `virtual memory exhausted', not
70879         `Memory exhausted'.
70880         * lib/obstack.c (print_and_abort): Likewise.
70881
70882 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70883
70884         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70885         buffer, so that the caller can always quote one small
70886         component of a "memory exhausted" message in slot 0.
70887         From a suggestion by Jim Meyering.
70888
70889 2000-07-30  Jim Meyering  <meyering@lucent.com>
70890
70891         * lib/makepath.c (make_path): Quote the other instance, too.
70892
70893         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70894         (STATIC_BUF_SIZE): Define.
70895         (quotearg_n_options): Use only statically allocated storage when
70896         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70897         than STATIC_BUF_SIZE.
70898
70899 2000-07-29  Jim Meyering  <meyering@lucent.com>
70900
70901         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70902         * lib/dirname.c (dir_name): Likewise.
70903
70904         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70905         `/'.
70906
70907         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70908         (dir_name): Assert that there are no trailing slashes.
70909
70910 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70911
70912         * lib/mbswidth.h (mbswidth): Add a flags argument.
70913         (mbswidth): New declaration.
70914         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70915         * lib/mbswidth.c (mbswidth): Add a flags argument.
70916         (mbsnwidth): New function.
70917
70918 2000-07-24  Jim Meyering  <meyering@lucent.com>
70919
70920         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70921
70922 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70923
70924         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70925
70926 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70927
70928         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70929         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70930         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70931         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70932         invoke multibyte primitives.
70933
70934 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70935
70936         * lib/quotearg.c:
70937         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70938         so that mbstate_t is always defined.
70939
70940         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70941         be 1 in at least one GCC installation, and this configuration
70942         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70943         performance on hosts that have mbrtowc but have only unibyte
70944         locales, but I assume these hosts are rare.
70945
70946 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70947
70948         * lib/mbswidth.c (_XOPEN_SOURCE):
70949         Don't define; this causes problems on Solaris 7.
70950         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70951
70952 2000-07-23  Jim Meyering  <meyering@lucent.com>
70953
70954         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70955         too: getgrgid, getpwuid, getuid.
70956
70957 2000-07-23  Jim Meyering  <meyering@lucent.com>
70958
70959         * lib/basename.c (base_name): Add an assertion.
70960
70961 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70962
70963         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70964         shadow its mbsinit function.
70965
70966 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70967
70968         * lib/mbswidth.h: New file.
70969         * lib/mbswidth.c: New file.
70970         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70971         (noinst_HEADERS): Add mbswidth.h.
70972
70973 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70974
70975         * lib/config.charset: Add support for FreeBSD. Improve support for
70976         HP-UX and IRIX 6.
70977
70978 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
70979
70980         * m4/mbswidth.m4: New file.
70981         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70982
70983 2000-07-15  Jim Meyering  <meyering@lucent.com>
70984
70985         * lib/makepath.c: Include quote.h.
70986         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70987         corresponding argument in a `quote (...)' call.
70988         Give better diagnostics.
70989
70990         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70991         (noinst_HEADERS): Add quote.h.
70992
70993         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70994         from tar's src/misc.c.
70995         * lib/quote.h: New file.  Prototypes for same.
70996
70997 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70998
70999         From a suggestion by Bruno Haible.
71000         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
71001         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
71002         to decide whether to define the BeOS workaround macro;
71003         this adjusts to the change to AC_MBSTATE_T.
71004
71005 2000-07-14  Jim Meyering  <meyering@lucent.com>
71006
71007         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
71008         jm_AC_TYPE_UINTMAX_T.
71009
71010 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71011
71012         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
71013
71014         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
71015         quotearg_buffer_restyled): Add support for
71016         clocale_quoting_style.  Undo previous change to
71017         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
71018         and "{RIGHT QUOTATION MARK}" msgids.
71019
71020 2000-07-10  Paul Eggert  <eggert@twinsun.com>
71021
71022         From a suggestion by Bruno Haible.
71023         * m4/mbstate_t.m4 (AC_MBSTATE_T):
71024         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
71025         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
71026         and mbstate_t, to a single-part test that simply defines mbstate_t.
71027         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
71028         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
71029
71030 2000-07-10  Jim Meyering  <meyering@lucent.com>
71031
71032         * m4/strerror_r.m4: Mirror the correction made in autoconf.
71033
71034         * m4/gnu-source.m4: Output to confdefs.h directly.
71035         Suggestion from Akim Demaille.
71036
71037 2000-07-09  Paul Eggert  <eggert@twinsun.com>
71038
71039         The old behavior of quoting `like this' doesn't look good with
71040         newer, ISO-style fonts.  See:
71041         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
71042
71043         Instead, quote "like this" by default.  Let the translator
71044         tailor the locale-specific quoting behavior by providing
71045         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
71046
71047         * lib/quotearg.c (N_): New macro.
71048         (gettext_default): New function.
71049         (quotearg_buffer_restyled): Use
71050         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
71051         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
71052
71053 2000-07-09  Jim Meyering  <meyering@lucent.com>
71054
71055         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
71056         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
71057
71058         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
71059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
71060
71061 2000-07-09  Jim Meyering  <meyering@lucent.com>
71062
71063         * lib/Most files: Update copyright dates to include 2000.
71064
71065 2000-07-08  Jim Meyering  <meyering@lucent.com>
71066
71067         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
71068         if not defined.
71069         (xgethostname): Remove now-unnecessary #ifdef.
71070         Move declaration of `err' into loop where it's used.
71071
71072 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71073         and Bruno Haible  <haible@clisp.cons.org>
71074
71075         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
71076         only if the test for an object-type mbstate_t fails.  This
71077         prevents us from mistakenly reporting that mbstate_t is a
71078         system object type after we "#define mbstate_t int" to work
71079         around its lack.
71080
71081 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71082         and Bruno Haible  <haible@clisp.cons.org>
71083
71084         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71085
71086 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71087
71088         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71089         to strerror_r.
71090         Include <ctype.h> for use of isalpha.
71091
71092 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71093
71094         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71095         by allocating a larger buffer. Test the gethostname return value for
71096         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71097         returns an error and ENAMETOOLONG isn't defined.
71098
71099 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71100
71101         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71102         dimension.
71103
71104 2000-07-04  Jim Meyering  <meyering@lucent.com>
71105
71106         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71107         of the deprecated AC_CHECKING.
71108
71109 2000-07-04  Jim Meyering  <meyering@lucent.com>
71110
71111         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71112         Reported by Bruno Haible.
71113
71114 2000-07-04  Jim Meyering  <meyering@lucent.com>
71115
71116         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71117         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71118         lacks mbrtowc.
71119
71120 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71121
71122         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71123         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71124
71125 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71126         and Bruno Haible  <haible@clisp.cons.org>
71127
71128         * lib/quotearg.c (mbrtowc):
71129         Assign to *pwc, and return 1 only if result is nonzero.
71130         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71131
71132 2000-07-03  Jim Meyering  <meyering@lucent.com>
71133
71134         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71135
71136 2000-07-03  Jim Meyering  <meyering@lucent.com>
71137
71138         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71139         This is necessary to get a definition of e.g., UTMP_FILE on
71140         HP-UX 10.20.
71141         From Bob Proulx.
71142
71143 2000-07-02  Jim Meyering  <meyering@lucent.com>
71144
71145         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71146
71147         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71148         AC_LIBOBJ(function_name).
71149         * m4/chown.m4: Likewise.
71150         * m4/fnmatch.m4: Likewise.
71151         * m4/ftruncate.m4: Likewise.
71152         * m4/getgroups.m4: Likewise.
71153         * m4/getline.m4: Likewise.
71154         * m4/group-member.m4: Likewise.
71155         * m4/jm-macros.m4: Likewise.
71156         * m4/lstat.m4: Likewise.
71157         * m4/malloc.m4: Likewise.
71158         * m4/memcmp.m4: Likewise.
71159         * m4/nanosleep.m4: Likewise.
71160         * m4/putenv.m4: Likewise.
71161         * m4/realloc.m4: Likewise.
71162         * m4/regex.m4: Likewise.
71163         * m4/stat.m4: Likewise.
71164         * m4/strftime.m4: Likewise.
71165
71166 2000-07-02  Jim Meyering  <meyering@lucent.com>
71167
71168         * lib/quotearg.c (mbstate_t): Don't define here.
71169
71170 2000-07-02  Jim Meyering  <meyering@lucent.com>
71171
71172         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71173
71174 2000-07-01  Jim Meyering  <meyering@lucent.com>
71175
71176         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71177
71178 2000-07-01  Jim Meyering  <meyering@lucent.com>
71179
71180         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71181         problem.
71182
71183 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71184
71185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71186         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71187
71188 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71189
71190         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71191         per change in ../m4/ls-mntd-fs.m4.
71192         (read_filesystem_list): Ignore symbolic links.
71193
71194 2000-06-29  Jim Meyering  <meyering@lucent.com>
71195
71196         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71197         for declaration of strcmp.
71198
71199         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71200
71201         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71202         Avoid warning by casting result to `char *' to remove `const'.
71203
71204 2000-06-28  Jim Meyering  <meyering@lucent.com>
71205
71206         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71207         included by quotearg.c, for which we perform this test.  From
71208         Bruno Haible.
71209
71210 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71211
71212         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71214         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71215
71216 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71217
71218         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71219
71220 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71221
71222         savedir now sets errno on failure and invokes xmalloc to get memory.
71223         Fix a couple of other minor bugs while we're at it.
71224
71225         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71226         (NAMLEN): Remove macro.
71227         (malloc, realloc): Remove decls.
71228         (stpcpy): Likewise.
71229         ("xalloc.h"): Include.
71230         (NAME_SIZE_DEFAULT): New macro.
71231         (savedir): Use xmalloc / xrealloc to allocate memory.
71232         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71233         Skip "" directory entries.
71234         Use strlen to calculate directory entry length, since the old method
71235         is rarely used these days and isn't worth supporting.
71236         Don't use a pointer after freeing it.
71237         Check for integer overflow when calculating allocation size.
71238         Use memcpy to copy entries, instead of stpcpy.
71239         Set errno properly when returning NULL.
71240         Check for readdir error.
71241
71242 2000-06-26  Jim Meyering  <meyering@lucent.com>
71243
71244         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71245
71246 2000-06-25  Jim Meyering  <meyering@lucent.com>
71247
71248         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71249         Linux header bug when _XOPEN_SOURCE is defined to 500.
71250
71251 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71252
71253         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71254         deficiency.
71255
71256 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71257
71258         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71259         Include xalloc.h.
71260         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71261
71262 2000-06-24  Jim Meyering  <meyering@lucent.com>
71263
71264         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71265         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71266         for which strerror does return char*, but which lacks a conveniently
71267         accessible declaration of the function.  If the compile-test says
71268         strerror_r doesn't work, then resort to a `run'-test that works on
71269         BeOS and segfaults on DEC Unix.
71270
71271 2000-06-24  Jim Meyering  <meyering@lucent.com>
71272
71273         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71274
71275 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71276
71277         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71278         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71279
71280 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71281
71282         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71283         (mbrtowc, mbstate_t): Define substitutes if
71284         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71285         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71286         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71287
71288 2000-06-23  Jim Meyering  <meyering@lucent.com>
71289
71290         * m4/afs.m4: Add missing AC_MSG_RESULT.
71291         Reported by Bruno Haible.
71292
71293         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71294         Suggestion from Bruno Haible.
71295
71296 2000-06-23  Jim Meyering  <meyering@lucent.com>
71297
71298         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71299
71300 2000-06-21  Jim Meyering  <meyering@lucent.com>
71301
71302         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71303
71304 2000-06-21  Jim Meyering  <meyering@lucent.com>
71305
71306         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71307         (noinst_HEADERS): Add getstr.h.
71308
71309         * lib/getline.c (getstr): Move into a separate file.
71310         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71311         the following changes: new parameter, delim2; both delim[12]
71312         parameters have type `int', not `char'.  The latter would lose
71313         with 8-bit delimiters.
71314         * lib/getstr.h: New file.
71315
71316 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71317
71318         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71319         than 1024, return a memory chunk of least possible size, instead
71320         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71321         Use free/xmalloc instead of xrealloc to avoid copying for very long
71322         paths.
71323
71324 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71325
71326         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71327         the empty string.
71328
71329 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71330
71331         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71332         address, not strdup.  Include <stdlib.h> and don't declare free().
71333
71334 2000-06-19  Jim Meyering  <meyering@lucent.com>
71335
71336         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71337
71338 2000-06-18  Jim Meyering  <meyering@lucent.com>
71339
71340         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71341
71342         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71343         `checking whether...' message to be consistent with that of the
71344         lstat test.
71345
71346 2000-06-18  Jim Meyering  <meyering@lucent.com>
71347
71348         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71349         Besides, these days every porting target provides a mkdir function.
71350
71351         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71352         needed. (this snippet comes from src/system.h).
71353
71354 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71355
71356         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71357
71358 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71359
71360         * lib/human.c (adjust_value): New function.
71361         (human_readable_inexact): Apply rounding style even when
71362         printing approximate values.
71363
71364 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71365
71366         * lib/human.c (human_readable_inexact): Allow an input block
71367         size that is not a multiple of the output block size, and vice versa.
71368         Reported by Piergiorgio Sartor.
71369
71370 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71371
71372         * lib/getdate.y (get_date): Apply relative times after time
71373         zone indicator, not before.  Reported by Todd A. Jacobs.
71374
71375 2000-06-13  Jim Meyering  <meyering@lucent.com>
71376
71377         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71378
71379         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71380
71381 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71382
71383         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71384
71385 2000-06-12  Jim Meyering  <meyering@lucent.com>
71386
71387         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71388         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71389         optional argument.
71390         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71391         the optional argument, `lib'.
71392
71393 2000-06-08  Jim Meyering  <meyering@lucent.com>
71394
71395         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71396
71397 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71398
71399         Rewrite largefile configuration so that we don't need to run
71400         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71401         AC_CANONICAL_HOST in configure.in -- jmm]
71402
71403         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71404         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71405         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71406         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71407         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71408         All uses changed.
71409         Instead of inspecting the output of getconf, try to compile the
71410         test program without and with the macro definition.
71411         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71412         for getconf.  Instead, check for the needed flags by compiling
71413         test programs.
71414
71415 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71416
71417         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71418
71419 2000-06-04  Jim Meyering  <meyering@lucent.com>
71420
71421         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71422         SunOS 4.1.4 for which gid_t is an unsigned type.
71423
71424 2000-06-03  Jim Meyering  <meyering@lucent.com>
71425
71426         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71427         now that autoconf requires that.
71428
71429         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71430         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71431         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71432
71433 2000-06-03  Jim Meyering  <meyering@lucent.com>
71434
71435         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71436
71437 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71438
71439         * m4/glibc21.m4: New file.
71440         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71441
71442 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71443
71444         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71445         newer, don't install charset.alias.
71446         * lib/config.charset: Change the Linux/glibc rules so they become empty
71447         on glibc-2.1 or newer.
71448
71449 2000-06-02  Jim Meyering  <meyering@lucent.com>
71450
71451         * lib/mountlist.c: Back out last change.  Instead, do this...
71452         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71453         me_dummy member using the same `ignore'-testing code.
71454         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71455         fs_type strings.
71456         From Mark D. Roth.
71457
71458 2000-05-29  Jim Meyering  <meyering@lucent.com>
71459
71460         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71461         mounts with the `ignore' attribute.  Based on a patch from
71462         Mark D. Roth.
71463
71464 2000-05-28  Jim Meyering  <meyering@lucent.com>
71465
71466         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71467         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71468         * m4/stat.m4: Likewise.
71469         * m4/lstat.m4: Likewise.
71470         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71471
71472         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71473         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71474
71475 2000-05-26  Jim Meyering  <meyering@lucent.com>
71476
71477         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71478
71479 2000-05-24  Jim Meyering  <meyering@lucent.com>
71480
71481         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71482         autoconf requires that.
71483         * m4/lib-check.m4: Likewise.
71484         * m4/jm-macros.m4: Likewise.
71485         * m4/strftime.m4: Likewise.
71486
71487         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71488         AC_CHECK_DECLS, now that autoconf requires that.
71489
71490 2000-05-22  Jim Meyering  <meyering@lucent.com>
71491
71492         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71493         * m4/lstat.m4: Likewise.
71494
71495 2000-05-22  Jim Meyering  <meyering@lucent.com>
71496
71497         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71498
71499 2000-05-20  Jim Meyering  <meyering@lucent.com>
71500
71501         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71502         (jm_PREREQ): Use it.
71503
71504 2000-05-18  Jim Meyering  <meyering@lucent.com>
71505
71506         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71507         back, too, since it may have been modified by allocate_entry.
71508         (hash_delete): Rewrite to use neither the assignment operator
71509         nor the comma operator in an if-expression.
71510
71511 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71512
71513         * lib/closeout.c:
71514         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71515         Remove; no longer needed.
71516         "quotearg.h": Add include.
71517         (file_name): Do not bother to explicitly initialize to NULL; it's less
71518         efficient on some hosts.
71519         (close_stdout_status): Remove test as to whether stdout was already
71520         closed; it breaks for the case "echo x | sort >&-".
71521         Quote file name colons.
71522         Do not assume that _("write error") lacks format strings.
71523
71524 2000-05-15  Jim Meyering  <meyering@lucent.com>
71525
71526         * lib/version-etc.c (version_etc_copyright): Update the copyright
71527         string used in all --version output.
71528
71529 2000-05-14  Jim Meyering  <meyering@lucent.com>
71530
71531         * lib/closeout.c (close_stdout_set_file_name): New function.
71532         (close_stdout_status): Use new file-scoped global.
71533         Return right away if fstat says the stdout file descriptor is invalid.
71534         * lib/closeout.h (close_stdout_set_file_name): Declare.
71535
71536 2000-05-10  Jim Meyering  <meyering@lucent.com>
71537
71538         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71539         (close_stdout_set_status): New function.
71540         * lib/closeout.h (close_stdout_set_status): Declare.
71541
71542 2000-05-09  Jim Meyering  <meyering@lucent.com>
71543
71544         * m4/gettext.m4: Rename this...
71545         * m4/libintl.m4: ...to this.
71546
71547 2000-05-08  Jim Meyering  <meyering@lucent.com>
71548
71549         * lib/long-options.c: Don't include closeout.h.
71550         (parse_long_options): Don't call close_stdout for --version.
71551
71552 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71553
71554         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71555         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71556         2.1.3 bug.  This avoids a clash when files like regex.c define
71557         _GNU_SOURCE.
71558
71559 2000-05-06  Jim Meyering  <meyering@lucent.com>
71560
71561         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71562         (AC_REPLACE_FUNCS): Add strnlen.
71563
71564         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71565         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71566
71567         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71568         AC_SEARCH_LIBS call for nanosleep.
71569         (LIB_NANOSLEEP): Set and AC_SUBST.
71570
71571 2000-05-06  Jim Meyering  <meyering@lucent.com>
71572
71573         * lib/strnlen.c: Undefine __strnlen and strnlen.
71574         [!weak_alias]: Define __strnlen to strnlen.
71575
71576         * lib/atexit.c: New file, from libiberty.
71577
71578 2000-05-06  Jim Meyering  <meyering@lucent.com>
71579
71580         * lib/closeout.c (close_stdout_status): Also check for errors on the
71581         stderr stream.
71582
71583 2000-05-05  Jim Meyering  <meyering@lucent.com>
71584
71585         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71586         AC_SEARCH_LIBS call for clock_gettime.
71587         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71588
71589         * m4/search-libs.m4: Update from autoconf.
71590
71591         su doesn't work on Solaris 2.6.
71592         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71593         <shadow.h>.  Reported by Dragos Harabor.
71594
71595 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71596
71597         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71598         memcpy instead of xmalloc, xrealloc, path_concat.
71599         (locale_charset): Treat empty environment variables as absent.
71600         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71601
71602 2000-05-04  Jim Meyering  <meyering@lucent.com>
71603
71604         * lib/getopt.c: Update from glibc.
71605         * lib/obstack.c: Likewise.
71606         * lib/obstack.h: Likewise.
71607         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71608         file
71609
71610         * lib/regex.h: Likewise.
71611         * lib/strndup.c: Likewise.
71612         * lib/strnlen.c: New file, from glibc.
71613
71614 2000-05-03  Jim Meyering  <meyering@lucent.com>
71615
71616         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71617
71618 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71619
71620         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71621         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71622         compile-time test, rather than inspecting host and OS, to
71623         decide whether to define _LARGEFILE_SOURCE.
71624
71625 2000-05-01  Jim Meyering  <meyering@lucent.com>
71626
71627         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71628
71629         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71630         Based on a patch from Bruno Haible.
71631
71632 2000-05-01  Jim Meyering  <meyering@lucent.com>
71633
71634         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71635
71636 2000-04-29  Jim Meyering  <meyering@lucent.com>
71637
71638         * lib/path-concat.c: Declare strdup only if it's not defined.
71639         * lib/canon-host.c: Likewise.
71640
71641 2000-04-28  Jim Meyering  <meyering@lucent.com>
71642
71643         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71644         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71645         is included first, then limits.h is included by locale.h by libintl.h.
71646         From John David Anglin.
71647
71648 2000-04-25  Jim Meyering  <meyering@lucent.com>
71649
71650         * lib/makepath.c (S_IRWXUGO): Define.
71651         (make_path): Always perform explicit chmod if MODE specifies any
71652         of the `special' permission bits.  Prompted by a bug report against
71653         install from Mate Wierdl and Joost van Baal.
71654
71655 2000-04-18  Jim Meyering  <meyering@lucent.com>
71656
71657         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71658         (jm_PREREQ): Use it.
71659
71660 2000-04-18  Jim Meyering  <meyering@lucent.com>
71661
71662         * lib/README: New file.
71663
71664         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71665         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71666
71667 2000-04-17  Jim Meyering  <meyering@lucent.com>
71668
71669         Get it right :-)
71670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71671         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71672         Suggestion from Akim Demaille.
71673
71674 2000-04-17  Jim Meyering  <meyering@lucent.com>
71675
71676         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71677         the definition of it to rpl_strftime also defined-away the system's
71678         declaration.
71679
71680 2000-04-15  Jim Meyering  <meyering@lucent.com>
71681
71682         Use `C' to denote so-called `contiguous' files, the same way
71683         that tar does.
71684         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71685         (ftypelet): Use S_ISCTG.
71686         From Michael Deutschmann.
71687
71688 2000-04-14  Jim Meyering  <meyering@lucent.com>
71689
71690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71691         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71692         clobbered.
71693
71694 2000-04-14  Jim Meyering  <meyering@lucent.com>
71695
71696         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71697
71698 2000-04-13  Jim Meyering  <meyering@lucent.com>
71699
71700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71701         AH_VERBATIM to insert required #ifndef into config.h.in.
71702         Suggestion from Akim Demaille.
71703
71704 2000-04-12  Jim Meyering  <meyering@lucent.com>
71705
71706         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71707         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71708         Christian Krackowizer.
71709
71710         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71711         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71712         (AC_SYS_LARGEFILE): Require.
71713         (AM_C_PROTOTYPES): Require.
71714
71715 2000-04-08  Jim Meyering  <meyering@lucent.com>
71716
71717         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71718         names don't conflict.  Reported by Eli Zaretskii.
71719
71720 2000-04-07  Jim Meyering  <meyering@lucent.com>
71721
71722         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71723         sys/types.h, to work around system header problems on AIX 3.2.5.
71724         From Bruno Haible.
71725
71726 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71727
71728         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71729         bug.  Deal with the different error behavior of Irix iconv.
71730
71731 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71732
71733         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71734         IRIX if the installer said otherwise.
71735
71736 2000-04-05  Jim Meyering  <meyering@lucent.com>
71737
71738         Portability tweaks required for ultrix4.3.
71739         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71740         (jm_CHECK_DECLS): Add getutent to the list of functions.
71741         (_jm_DECL_HEADERS): Add utmpx.h.
71742         From John David Anglin.
71743
71744         * m4/strftime.m4: Back out the 2000-04-02 change.
71745         Instead of that change, simply undefine putenv in the test program.
71746
71747 2000-04-05  Jim Meyering  <meyering@lucent.com>
71748
71749         Portability tweaks required for ultrix4.3.
71750         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71751         getutent.
71752         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71753         * lib/canon-host.c: Declare strdup.
71754         * lib/path-concat.c: Likewise.
71755         From John David Anglin.
71756
71757 2000-04-04  Jim Meyering  <meyering@lucent.com>
71758
71759         Be more DOS 8.3-friendly.
71760         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71761         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71762         * lib/Makefile.am: Reflect renaming.
71763         Reported by Eli Zaretskii.
71764
71765         Use a temporary file name that won't clash with `charset.alias'
71766         in the DOS 8.3 name space.
71767         * lib/Makefile.am (charset_tmp): Define.
71768         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71769         (uninstall-local): Likewise.
71770         Reported by Eli Zaretskii.
71771
71772 2000-04-03  Jim Meyering  <meyering@lucent.com>
71773
71774         * m4/gettext.m4: Fix typo in comment.
71775
71776         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71777         textutils/configure.in).  Suggestion from Paul Eggert.
71778         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71779
71780 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71781
71782         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71783         variable in the shell rather than using putenv, which isn't
71784         portable.  This avoids the configure-time inter-test dependency
71785         on the potentially-renamed putenv function.
71786
71787 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71788
71789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71790         before checking struct stat.st_blksize, so that
71791         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71792
71793 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71794
71795         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71796         since strftime.c uses HAVE_STRFTIME to decide whether to use
71797         the underlying strftime.
71798
71799 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71800
71801         * lib/time/strftime.c (my_strftime): Make sure we call the system
71802         strftime, not ourselves, when invoking the underlying strftime.
71803
71804 2000-03-24  Jim Meyering  <meyering@lucent.com>
71805
71806         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71807         (charset_alias): Define.
71808         (install-exec-local): Factor out common code.
71809         (uninstall-local): Split lines longer than 80.
71810         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71811         (SUFFIXES): Define.
71812         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71813         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71814
71815 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71816
71817         * lib/config.charset: Output a line containing "Packages using this
71818         file".
71819         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71820         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71821         ref-del.sed): New rules.
71822
71823 2000-03-17  Jim Meyering  <meyering@lucent.com>
71824
71825         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71826         Otherwise, include <strings.h>
71827
71828 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71829
71830         * lib/unicodeio.c (utf8_wctomb): New function.
71831         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71832         format instead of in UCS-4 with platform dependent endianness.
71833
71834 2000-03-10  Jim Meyering  <meyering@lucent.com>
71835
71836         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71837         From Marco Franzen.
71838
71839 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71840
71841         * lib/savedir.c (savedir): Work even if directory size is
71842         negative; this can happen with some screwy NFS configurations.
71843
71844 2000-03-06  Jim Meyering  <meyering@lucent.com>
71845
71846         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71847         if it's NULL (because we ran out of memory).  From Bruno Haible.
71848
71849 2000-03-05  Jim Meyering  <meyering@lucent.com>
71850
71851         * lib/localcharset.c ("path-concat.h"): Include.
71852         (get_charset_aliases): Use path_concat instead of ANSI string
71853         concatenation.
71854
71855         * lib/unicodeio.h (PARAMS): Define.
71856         Use it to guard prototype.
71857
71858 2000-03-04  Jim Meyering  <meyering@lucent.com>
71859
71860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71861         for lib/localcharset.c.
71862
71863 2000-03-04  Jim Meyering  <meyering@lucent.com>
71864
71865         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71866         installing into it.
71867         (uninstall-local): Uncomment this rule so `make distcheck' works
71868         once again.
71869
71870         * lib/unicodeio.c (<errno.h>): Include it.
71871         (errno): Declare if not defined.
71872
71873         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71874
71875         * lib/config.charset: New version, incorporating remarks from a linux
71876         i18n mailing list.  From Bruno Haible.
71877
71878 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71879
71880         * m4/codeset.m4: New file.
71881         * m4/iconv.m4: New file.
71882         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71883
71884 2000-03-03  Jim Meyering  <meyering@lucent.com>
71885
71886         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71887
71888 2000-03-02  Jim Meyering  <meyering@lucent.com>
71889
71890         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71891         the messages come out on separate lines.
71892
71893         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71894         rather than jm_CHECK_DECLARATIONS.
71895         * m4/decl.m4: Remove now-unused file.
71896
71897         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71898         geteuid.
71899
71900 2000-03-02  Jim Meyering  <meyering@lucent.com>
71901
71902         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71903
71904 2000-03-01  Jim Meyering  <meyering@lucent.com>
71905
71906         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71907         * lib/unicodeio.c: Likewise.
71908
71909 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71910
71911         * lib/config.charset: New file.
71912         * lib/localcharset.c: New file.
71913         * lib/unicodeio.h, lib/unicodeio.c: New files.
71914         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71915         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71916         (noinst_HEADERS): Add unicodeio.h.
71917         (all-local, install-exec-local, charset.alias): New targets.
71918
71919 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71920
71921         * lib/quotearg.c (ALERT_CHAR): New macro.
71922         (quotearg_buffer_restyled): Use it.
71923
71924 2000-02-27  Jim Meyering  <meyering@lucent.com>
71925
71926         * m4/check-decl.m4: Add getenv to the list.
71927
71928 2000-02-27  Jim Meyering  <meyering@lucent.com>
71929
71930         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71931         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71932
71933         * lib/backupfile.c: Guard inclusion of stdlib.h with
71934         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71935         Declare malloc if needed.
71936
71937         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71938         `#ifndef HAVE_DECL..'
71939         now that autoconf always defines the HAVE_DECL_ symbols.
71940         * lib/human.c: Likewise.
71941         * lib/same.c: Likewise.
71942         * lib/strtoumax.c: Likewise.
71943
71944         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71945         declaration check was not run.
71946         * lib/hash.c: Likewise.
71947         * lib/human.c: Likewise.
71948         * lib/same.c: Likewise.
71949         * lib/strtoumax.c: Likewise.
71950
71951         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71952         `.', then first look up the entire `.'-containing string as a login
71953         name.
71954
71955 2000-02-23  Jim Meyering  <meyering@lucent.com>
71956
71957         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71958         in place of my hack.
71959
71960 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71961
71962         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71963         (textint): New typedef.
71964         (parser_control): Member year changed from int to textint.
71965         All uses changed.
71966         (YYSTYPE): Removed; replaced by %union with int and textint members.
71967         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71968         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71969         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71970         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71971         (date, number, to_year): Use width of number in digits, not its value,
71972         to determine whether it's a 2-digit year, or a 2-digit time.
71973         (yylex): Store number of digits of numeric tokens.
71974         Reported by John Kendall.
71975
71976         (parser_control): Changed from struct parser_control to typedef (for
71977         consistency).  All uses changed.
71978
71979         (tID): Removed; not used.
71980         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
71981
71982 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71983
71984         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71985         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71986
71987 2000-02-12  Jim Meyering  <meyering@lucent.com>
71988
71989         * lib/userspec.c (ISDIGIT): Define it.
71990         (isdigit): Remove definition.
71991         (is_number): Use ISDIGIT, not isdigit.
71992         <libintl.h>: Include.
71993         (_ and N_): Define.
71994         (parse_user_spec): Mark translatable strings.
71995
71996 2000-02-10  Jim Meyering  <meyering@lucent.com>
71997
71998         With these changes, nanosleep.[ch] are finally enough like the other
71999         lib/* replacement files to compile on a few more losing systems.
72000
72001         * lib/nanosleep.h: Don't include config.h.
72002         Remove prototype from declaration of nanosleep.
72003         (PARAMS): Remove now-unneeded definition.
72004         * lib/nanosleep.c: #undef nanosleep.
72005         (rpl_nanosleep): Rename from nanosleep.
72006
72007 2000-02-10  Jim Meyering  <meyering@lucent.com>
72008
72009         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
72010         gnu_nanosleep to rpl_nanosleep.
72011
72012 2000-02-09  Jim Meyering  <meyering@lucent.com>
72013
72014         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
72015         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
72016
72017 2000-02-08  Akim Demaille  <akim@epita.fr>
72018
72019         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
72020         `[' and `]' and remove uses of `changequote'.
72021         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
72022         (AC_SYS_LARGEFILE): Likewise.
72023         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72024         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
72025         of changequote.
72026         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
72027         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
72028         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
72029         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
72030
72031 2000-02-05  Jim Meyering  <meyering@lucent.com>
72032
72033         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
72034         Remove explicit use of AC_HEADER_TIME.  It is required by
72035         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
72036         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
72037         in autoconf whereby the expansion of the latter ended up preceding
72038         the expansion of its prerequisite, AC_HEADER_TIME.
72039         Reported by Volker Borchert.
72040
72041 2000-02-03  Jim Meyering  <meyering@lucent.com>
72042
72043         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
72044
72045 2000-02-03  Jim Meyering  <meyering@lucent.com>
72046
72047         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
72048         rather than with `#if HAVE_UTMPNAME'.
72049
72050 2000-02-02  Jim Meyering  <meyering@lucent.com>
72051
72052         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
72053         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
72054         Reported by Eli Zaretskii.
72055
72056 2000-02-01  Jim Meyering  <meyering@lucent.com>
72057
72058         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
72059
72060 2000-01-31  Jim Meyering  <meyering@lucent.com>
72061
72062         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
72063         functions.  Add the time.h and sys/time.h headers along with the
72064         AC_REQUIRE'ment of AC_HEADER_TIME.
72065
72066 2000-01-31  Jim Meyering  <meyering@lucent.com>
72067
72068         * lib/nanosleep.h (nanosleep): Guard declaration with
72069         `#if ! HAVE_DECL_NANOSLEEP'.
72070         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
72071         the declaration in that vendor's sys/timers.h.
72072         Reported by Christian Krackowizer.
72073
72074         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
72075         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
72076         (ISPRINT): Likewise.
72077         Reported by Tom Tromey.
72078
72079 2000-01-30  Jim Meyering  <meyering@lucent.com>
72080
72081         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72082
72083         * m4/prereq.m4 (utmp_includes): Define.
72084         Check for ut_user and ut_name members in both struct utmpx
72085         and struct utmp.
72086
72087 2000-01-30  Jim Meyering  <meyering@lucent.com>
72088
72089         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72090         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72091         header files where only utmpx.ut_user is declared.
72092
72093         * lib/readutmp.h (UT_USER): Define.
72094
72095 2000-01-29  Jim Meyering  <meyering@lucent.com>
72096
72097         * m4/lib-check.m4: New file containing library-related checks from
72098         fileutils and sh-utils (textutils had none).
72099
72100 2000-01-28  Jim Meyering  <meyering@lucent.com>
72101
72102         * m4/perl.m4: Change format of warning message to look more like that
72103         from the missing script.  Suggestion from François Pinard.
72104
72105 2000-01-25  Jim Meyering  <meyering@lucent.com>
72106
72107         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72108         well as time.h in the compile check.
72109         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72110         Fix typo in cross-compiling case: s/yes/no/.
72111
72112 2000-01-23  Jim Meyering  <meyering@lucent.com>
72113
72114         * m4/jm-macros.m4: Move df-related tests here from
72115         fileutils/configure.in
72116
72117         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72118         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72119
72120         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72121         s/space/ac_fsusage_space/.
72122         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72123
72124         * m4/ftruncate.m4: New file (derived from part of
72125         fileutils/configure.in).
72126         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72127         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72128
72129         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72130         AC_SUBST these here, rather than just in sh-util/configure.in, so
72131         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72132         all the same.
72133         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72134         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72135         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72136         (AC_SUBST(POW_LIBM)): Likewise.
72137         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72138
72139 2000-01-23  Jim Meyering  <meyering@lucent.com>
72140
72141         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72142         obstack.c.
72143
72144 2000-01-22  Jim Meyering  <meyering@lucent.com>
72145
72146         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72147
72148         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72149
72150         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72151         configure.in
72152         (AC_CHECK_HEADERS): Likewise for sh-utils.
72153         (AC_CHECK_HEADERS): Likewise for textutils.
72154         Merge the three lists of headers.
72155
72156         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72157         from fileutils' configure.in.
72158
72159         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72160         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72161         check-decl.m4.
72162
72163         * m4/check-decl.m4: Use #if rather than #ifdef.
72164         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72165         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72166         (_jm_DECL_HEADERS): Define new function.
72167         (jm_CHECK_DECLARATIONS): Require it.
72168
72169 2000-01-22  Jim Meyering  <meyering@lucent.com>
72170
72171         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72172         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72173         Required for some AIX systems.  Reported by Christian Krackowizer.
72174         [TESTING] (main): New function.
72175
72176         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72177         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72178         letters.
72179
72180         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72181         iswprint.
72182
72183         * lib/strverscmp.c (ISDIGIT): Define.
72184         (strverscmp): Use ISDIGIT, not isdigit.
72185
72186 2000-01-19  Jim Meyering  <meyering@lucent.com>
72187
72188         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72189         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72190         defines `struct timespec' in <sys/time.h>
72191
72192         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72193         Thanks to Akim for explaining.
72194
72195 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72196
72197         * lib/nanosleep.c (nanosleep):
72198         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72199         POSIX.1 doesn't require SA_INTERRUPT and some systems
72200         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72201         it's been part of POSIX.1 since day 1 (in 1988).
72202
72203 2000-01-17  Jim Meyering  <meyering@lucent.com>
72204
72205         * lib/interlock: Remove unused file.  Reported by François Pinard.
72206
72207 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72208
72209         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72210         alert, backslash, formfeed, and vertical tab unnecessarily in
72211         shell quoting style.
72212
72213 2000-01-16  Jim Meyering  <meyering@lucent.com>
72214
72215         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72216         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72217         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72218         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72219
72220 2000-01-16  Jim Meyering  <meyering@lucent.com>
72221
72222         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72223         because the latter didn't work.
72224
72225 2000-01-15  Jim Meyering  <meyering@lucent.com>
72226
72227         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72228         (AC_REPLACE_FUNCS): Add memcpy and memset.
72229         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72230         Add strpbrk.
72231         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72232
72233 2000-01-12  Jim Meyering  <meyering@lucent.com>
72234
72235         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72236         (jm_PREREQ): Use it.
72237         (jm_PREREQ_READUTMP): New macro.
72238         (jm_PREREQ): Use it.
72239
72240 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72241
72242         Quote multibyte characters correctly.
72243         * m4/c-bs-a.m4: New file.
72244         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72245         (jm_PREREQ): Use it.
72246
72247 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72248
72249         * m4/uintmax_t.m4: Port to autoconf 2.13.
72250
72251 2000-01-08  Jim Meyering  <meyering@ascend.com>
72252
72253         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72254         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72255
72256 2000-01-04  Jim Meyering  <meyering@ascend.com>
72257
72258         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72259         jm_STRUCT_DIRENT_D_TYPE.
72260         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72261         jm_STRUCT_DIRENT_D_INO.
72262         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72263         jm_STRUCT_UTIMBUF.
72264         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72265         renamings.
72266         * m4/utime.m4: Likewise.
72267
72268         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72269         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72270
72271 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72272
72273         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72274         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72275
72276 2000-01-02  Jim Meyering  <meyering@ascend.com>
72277
72278         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72279         remember if this is necessary.
72280
72281 1999-12-26  Jim Meyering  <meyering@ascend.com>
72282
72283         * m4/jm-macros.m4: Use it here.
72284         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72285
72286 1999-12-23  Jim Meyering  <meyering@ascend.com>
72287
72288         * m4/jm-macros.m4: Check for clock_gettime (moved from
72289         fileutils/configure.in)
72290         Check for gettimeofday.
72291
72292 1999-12-20  Jim Meyering  <meyering@ascend.com>
72293
72294         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72295         autoconf-2.14a-1999-12-20.
72296
72297 1999-12-19  Jim Meyering  <meyering@ascend.com>
72298
72299         * m4/lstat-slash.m4: New file.
72300         * m4/jm-macros.m4: Use the new macro:
72301         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72302
72303 1999-12-07  Jim Meyering  <meyering@ascend.com>
72304
72305         * m4/perl.m4: Require that File::Compare be available, too.
72306         Too many systems seem to lack it.
72307
72308         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72309         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72310
72311 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72312
72313         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72314         problem with the QNX 4.25 shell, which doesn't propagate exit
72315         status of failed commands inside shell assignments.
72316
72317 1999-11-17  Jim Meyering  <meyering@ascend.com>
72318
72319         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72320
72321 1999-11-07  Jim Meyering  <meyering@ascend.com>
72322
72323         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72324
72325 1999-11-06  Jim Meyering  <meyering@ascend.com>
72326
72327         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72328         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72329
72330 1999-11-05  Jim Meyering  <meyering@ascend.com>
72331
72332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72333         configure.in of textutils, fileutils, and sh-utils into this one
72334         (shared between those packages) file.
72335         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72336         AC_STRUCT_ST_BLKSIZE.
72337
72338 1999-11-03  Jim Meyering  <meyering@ascend.com>
72339
72340         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72341         of AC_CHECK_TYPE checks includes unistd.h.
72342         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72343         Suggestion from Akim Demaille.
72344
72345 1999-10-30  Jim Meyering  <meyering@ascend.com>
72346
72347         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72348         m4-quoted string.
72349         * m4/ls-mntd-fs.m4: Likewise.
72350         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72351         * m4/jm-winsz1.m4: Likewise.
72352
72353         * m4/const.m4: Remove file, since the fix made it into the experimental
72354         version of autoconf.
72355         * m4/mktime.m4: Likewise.
72356
72357         * m4/check-type.m4: Remove file, now that the latest version of
72358         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72359
72360         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72361         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72362         AC_CHECK_TYPE.
72363
72364 1999-10-04  Jim Meyering  <meyering@ascend.com>
72365
72366         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72367
72368 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72369
72370         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72371         2.95.1 bug with HP-UX 10.20.
72372
72373 1999-09-17  Jim Meyering  <meyering@ascend.com>
72374
72375         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72376         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72377         due to missing strdup (against sh-utils-2.0).
72378
72379 1999-08-29  Jim Meyering  <meyering@ascend.com>
72380
72381         * m4/jm-macros.m4: Require jm_BISON.
72382         * m4/bison.m4: New file.
72383
72384 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72385
72386         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72387         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72388
72389 1999-08-05  Jim Meyering  <meyering@ascend.com>
72390
72391         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72392         to avoid conflicts with `conftest' on 8+3 filesystems.
72393         Suggestion from Eli Zaretskii.
72394
72395 1999-08-04  Jim Meyering  <meyering@ascend.com>
72396
72397         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72398         fileutils and sh-utils (textutils's getline test was inadequate).
72399         (AM_FUNC_GETLINE): Run this test.
72400         (AC_CHECK_FUNCS): Check for getdelim.
72401         Reported by Bob Proulx.
72402
72403 1999-08-02  Jim Meyering  <meyering@ascend.com>
72404
72405         * m4/jm-macros.m4: Add a comment.
72406
72407 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72408
72409         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72410         <inttypes.h> defines strtoumax as a macro (and not as a
72411         function).
72412
72413 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72414
72415         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72416         that we can shift, multiply and divide unsigned long long
72417         values; Ultrix cc can't do it.
72418
72419 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72420
72421         * m4/mktime.m4: New file, which is a preview of what should appear
72422         in the next public autoconf release.
72423
72424 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72425
72426         * m4/lfs.m4: Remove this file.
72427         * m4/largefile.m4: New file.  It contains the old contents of
72428         lfs.m4, except that all names with prefix AC_LFS have been
72429         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72430         compatible with future autoconf versions.  Also, some minor m4
72431         quoting problems have been fixed.
72432
72433 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72434
72435         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72436         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72437         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72438         and simplify the shell code.
72439
72440 1999-08-01  Jim Meyering  <meyering@ascend.com>
72441
72442         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72443         m4.
72444
72445 1999-07-20  Jim Meyering  <meyering@ascend.com>
72446
72447         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72448
72449 1999-07-15  Jim Meyering  <meyering@ascend.com>
72450
72451         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72452
72453 1999-05-22  Jim Meyering  <meyering@ascend.com>
72454
72455         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72456
72457 1999-05-20  Jim Meyering  <meyering@ascend.com>
72458
72459         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72460         Add a colon after each `then' in case $4 is empty.
72461
72462 1999-05-16  Jim Meyering  <meyering@ascend.com>
72463
72464         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72465
72466 1999-05-10  Jim Meyering  <meyering@ascend.com>
72467
72468         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72469
72470         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72471         AC_FUNC_MKTIME.
72472
72473 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72474
72475         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72476
72477 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72478
72479         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72480         not CPPFLAGS, so that linking works correctly in IRIX.
72481
72482 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72483
72484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72485
72486 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72487
72488         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72489         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72491         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72492         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72493
72494         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72495
72496 1999-04-20  Jim Meyering  <meyering@ascend.com>
72497
72498         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72499         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72500         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72501
72502 1999-04-18  Jim Meyering  <meyering@ascend.com>
72503
72504         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72505         * m4/jm-macros.m4: Use it.
72506
72507 1999-04-06  Jim Meyering  <meyering@ascend.com>
72508
72509         * m4/strftime.m4: Remove test for %f.
72510
72511 1999-03-29  Jim Meyering  <meyering@ascend.com>
72512
72513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72514         superset of the AC_TYPE_* checks in the textutils, fileutils,
72515         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72516         AC_TYPE_PID_T.
72517
72518 1999-03-28  Jim Meyering  <meyering@ascend.com>
72519
72520         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72521         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72522         replaced e.g., in the *.sh files of the sh-utils.
72523
72524 1999-03-20  Jim Meyering  <meyering@ascend.com>
72525
72526         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72527         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72528         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72529
72530 1999-03-19  Jim Meyering  <meyering@ascend.com>
72531
72532         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72533
72534 1999-03-12  Jim Meyering  <meyering@ascend.com>
72535
72536         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72537
72538 1999-03-07  Jim Meyering  <meyering@ascend.com>
72539
72540         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72541         declared.
72542
72543 1999-02-17  Jim Meyering  <meyering@ascend.com>
72544
72545         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72546         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72547
72548 1999-02-07  Jim Meyering  <meyering@ascend.com>
72549
72550         * m4/group-member.m4: New file -- extracted from sh-utils'
72551         configure.in.
72552
72553         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72554         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72555
72556 1999-02-06  Jim Meyering  <meyering@ascend.com>
72557
72558         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72559         * m4/fnmatch.m4: Likewise.
72560         * m4/getgroups.m4: Likewise.
72561         * m4/lstat.m4: Likewise.
72562         * m4/malloc.m4: Likewise.
72563         * m4/putenv.m4: Likewise.
72564         * m4/realloc.m4: Likewise.
72565         * m4/regex.m4: Likewise.
72566         * m4/stat.m4: Likewise.
72567         * m4/strftime.m4: Likewise.
72568         Suggestion from Alain Magloire.
72569
72570         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72571         * m4/fnmatch.m4: Likewise.
72572         * m4/getgroups.m4: Likewise.
72573         * m4/getline.m4: Likewise.
72574         * m4/lstat.m4: Likewise.
72575         * m4/malloc.m4: Likewise.
72576         * m4/memcmp.m4: Likewise.
72577         * m4/putenv.m4: Likewise.
72578         * m4/realloc.m4: Likewise.
72579         * m4/regex.m4: Likewise.
72580         * m4/stat.m4: Likewise.
72581         * m4/strftime.m4: Likewise.
72582         Suggestion from Alain Magloire.
72583
72584         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72585         an argument.
72586
72587         * m4/regex.m4: Add a run-time Test for proper operation of
72588         re_compile_pattern.
72589
72590 1999-01-31  Jim Meyering  <meyering@ascend.com>
72591
72592         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72593
72594 1999-01-30  Jim Meyering  <meyering@ascend.com>
72595
72596         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72597
72598         * m4/jm-mktime.m4: Make this a wrapper around the official
72599         AM_FUNC_MKTIME rather than my private copy, now that the official one
72600         is up to date.
72601         * m4/mktime.m4: Remove file.
72602
72603         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72604         * m4/uptime.m4: Likewise.
72605         * m4/uintmax_t.m4: Likewise.
72606
72607 1999-01-28  Jim Meyering  <meyering@ascend.com>
72608
72609         * m4/jm-macros.m4: Use jm_AFS.
72610         * m4/afs.m4: New file (from fileutils' configure.in).
72611
72612         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72613         * m4/chown.m4: Likewise.
72614         * m4/d-ino.m4: Likewise.
72615         * m4/d-type.m4: Likewise.
72616         * m4/fnmatch.m4: Likewise.
72617         * m4/getgroups.m4: Likewise.
72618         * m4/gettext.m4: Likewise.
72619         * m4/jm-mktime.m4: Likewise.
72620         * m4/jm-winsz2.m4: Likewise.
72621         * m4/lcmessage.m4: Likewise.
72622         * m4/ls-mntd-fs.m4: Likewise.
72623         * m4/malloc.m4: Likewise.
72624         * m4/memcmp.m4: Likewise.
72625         * m4/putenv.m4: Likewise.
72626         * m4/realloc.m4: Likewise.
72627         * m4/st_mtim.m4: Likewise.
72628         * m4/strftime.m4: Likewise.
72629
72630 1999-01-16  Jim Meyering  <meyering@ascend.com>
72631
72632         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72633         (ARGMATCH_DIE_DECL): Define.
72634
72635 1999-01-12  Jim Meyering  <meyering@ascend.com>
72636
72637         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72638         Reported by Lars Hecking.
72639
72640 1999-01-10  Jim Meyering  <meyering@ascend.com>
72641
72642         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72643         gross kludge.
72644         * m4/inttypes_h.m4: Likewise.
72645         * m4/lstat.m4: Likewise.
72646         * m4/malloc.m4: Likewise.
72647         * m4/readdir.m4: Likewise.
72648         * m4/realloc.m4: Likewise.
72649         * m4/st_dm_mode.m4: Likewise.
72650         * m4/stat.m4: Likewise.
72651         * m4/utimbuf.m4: Likewise.
72652         * m4/utimes.m4: Likewise.
72653
72654         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72655         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72656         comments in config.h.in are meaningful.
72657
72658         * m4/jm-macros.m4: Require autoconf-2.13 here.
72659
72660         * m4/regex.m4: By default, don't use the included regex.c on systems
72661         with glibc 2.  Suggestion from Uli Drepper.
72662
72663 1999-01-02  Jim Meyering  <meyering@ascend.com>
72664
72665         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72666
72667 1998-12-18  Jim Meyering  <meyering@ascend.com>
72668
72669         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72670         Based on a suggestion from Lars Hecking.
72671
72672 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72673
72674         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72675
72676 1998-11-16  Jim Meyering  <meyering@ascend.com>
72677
72678         * m4/lfs.m4: Double-quote the `uname...` expression.
72679
72680 1998-11-14  Jim Meyering  <meyering@ascend.com>
72681
72682         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72683         * m4/stat.m4: Likewise.
72684
72685 1998-11-03  Jim Meyering  <meyering@ascend.com>
72686
72687         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72688         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72689
72690 1998-10-18  Jim Meyering  <meyering@ascend.com>
72691
72692         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72693
72694 1998-10-17  Jim Meyering  <meyering@ascend.com>
72695
72696         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72697         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72698         calls for those previously hard-coded headers.  Instead, take a new
72699         parameter.
72700         (jm_CHECK_DECLARATIONS): Reflect interface change.
72701         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72702         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72703
72704         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72705
72706 1998-10-14  Jim Meyering  <meyering@ascend.com>
72707
72708         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72709         instead of "TZ=America/Vancouver".  From Paul Eggert.
72710
72711 1998-10-11  Jim Meyering  <meyering@ascend.com>
72712
72713         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72714         This adds a test for a recently added compatibility fix for mktime.c.
72715         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72716
72717 1998-09-27  Jim Meyering  <meyering@ascend.com>
72718
72719         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72720
72721         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72722         ../configure.in, including a change from Gordon Matzigkeit to allow
72723         cross-compiling for the Hurd.
72724
72725         * m4/glibc.m4: New file/macro to test for the GNU C Library
72726         versions 1 and 2.  From Gordon Matzigkeit.
72727         Indent.
72728
72729 1998-09-21  Jim Meyering  <meyering@ascend.com>
72730
72731         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72732
72733 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72734
72735         Port nanosecond-resolution times to UnixWare 2.1.2 and
72736         pedantic Solaris 2.6.
72737
72738         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72739         AC_STRUCT_ST_MTIM.
72740         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72741         Generate name of ns member, instead of just 1 or undef.
72742         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72743
72744 1998-08-15  Jim Meyering  <meyering@ascend.com>
72745
72746         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72747         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72748         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72749         instead of jm_TYPE_SSIZE_T.
72750
72751 1998-08-12  Jim Meyering  <meyering@ascend.com>
72752
72753         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72754
72755 1998-08-02  Jim Meyering  <meyering@ascend.com>
72756
72757         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72758         in acconfig.h manually.
72759
72760 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72761
72762         * m4/st_mtim.m4: New file.
72763
72764 1998-07-28  Jim Meyering  <meyering@ascend.com>
72765
72766         * m4/utimes.m4: Undef stat.
72767
72768 1998-07-25  Jim Meyering  <meyering@ascend.com>
72769
72770         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72771         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72772
72773 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72774
72775         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72776         uid and gid actually remain unchanged.
72777
72778 1998-07-07  Jim Meyering  <meyering@ascend.com>
72779
72780         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72781
72782 1998-07-04  Jim Meyering  <meyering@ascend.com>
72783
72784         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72785         to prove that this macro can be used in packages without regex.c.
72786
72787 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72788
72789         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72790         is to be used.
72791
72792 1998-07-03  Jim Meyering  <meyering@ascend.com>
72793
72794         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72795
72796         * m4/gettext.m4: New file -- from gettext-0.10.35.
72797         * m4/lcmessage.m4: Likewise.
72798         * m4/progtest.m4: Likewise.
72799
72800         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72801         * m4/jm-macros.m4: Require the new macro.
72802
72803 1998-06-29  Jim Meyering  <meyering@ascend.com>
72804
72805         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72806         for the definition of NGROUPS (used in a system header included
72807         by sys/mount.h).
72808
72809 1998-06-28  Jim Meyering  <meyering@ascend.com>
72810
72811         * m4/ls-mntd-fs.m4: New file.
72812         * m4/fstypename.m4: New file.
72813
72814         * m4/jm-macros.m4: Require the new macro.
72815         * m4/jm-glibc-io.m4: New file.
72816
72817 1998-05-19  Jim Meyering  <meyering@ascend.com>
72818
72819         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72820         * m4/lchown.m4: New file.
72821
72822         * m4/Makefile.am.in: New file.
72823         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72824
72825 1998-05-14  Jim Meyering  <meyering@ascend.com>
72826
72827         * m4/Makefile.am (EXTRA_DIST): Add them.
72828         * m4/jm-macros.m4: New file.
72829         * m4/utimbuf.m4: New file.
72830
72831 1998-05-12  Jim Meyering  <meyering@ascend.com>
72832
72833         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72834
72835 1998-05-11  Jim Meyering  <meyering@ascend.com>
72836
72837         * m4/isc-posix.m4: New file.
72838
72839 1998-05-10  Jim Meyering  <meyering@ascend.com>
72840
72841         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72842
72843 1998-05-09  Jim Meyering  <meyering@ascend.com>
72844
72845         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72846         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72847         with automake.
72848
72849         * m4/ssize_t.m4: New file.
72850         * m4/mktime.m4: Remove file -- the new automake has this now.
72851
72852 1998-04-26  Jim Meyering  <meyering@ascend.com>
72853
72854         * m4/assert.m4: New file.
72855         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72856
72857 1998-04-05  Jim Meyering  <meyering@ascend.com>
72858
72859         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72860         (jm_PREREQ): Use it here.
72861
72862 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72863
72864         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72865         in acconfig.h.
72866
72867 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72868
72869         * m4/prereq.m4: New file.
72870         * m4/error.m4: New file.
72871         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72872
72873 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72874
72875         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72876         cache-check for the same variable -- that defeated the purpose of
72877         the test; the test program was never run.  This was a problem only
72878         on systems with losing getline functions -- HP-UX 10.20 is one.
72879         Reported by Bjorn Helgaas.
72880
72881 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72882
72883         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72884
72885 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72886
72887         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72888
72889         * m4/const.m4: New file.  Use an initializer in this declaration
72890         typedef int charset[2]; const charset x;
72891         Reported by Bob Glickstein.
72892
72893 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72894
72895         * m4/chown.m4: Fix reversed types on -1 args to chown.
72896         From Kaveh Ghazi.
72897
72898 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72899
72900         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72901         Add lseek and memchr.
72902
72903         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72904         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72905         have a 20-character limit on names.
72906
72907 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72908
72909         * m4/inttypes_h.m4: New file.
72910         * m4/uintmax_t.m4: New file.
72911         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72912
72913
72914         -----
72915
72916         Local Variables:
72917         coding: utf-8
72918         End:
72919
72920         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72921
72922         Copying and distribution of this file, with or without
72923         modification, are permitted provided the copyright notice
72924         and this notice are preserved.