iswblank: Fix C++ link error on Solaris 8.
[gnulib.git] / ChangeLog
1 2010-12-25  Bruno Haible  <bruno@clisp.org>
2
3         iswblank: Fix C++ link error on Solaris 8.
4         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5         _GL_FUNCDECL_SYS.
6
7 2010-12-25  Bruno Haible  <bruno@clisp.org>
8
9         unistd: Fix C++ link error on Solaris 8.
10         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11
12 2010-12-25  Bruno Haible  <bruno@clisp.org>
13
14         readlink doc: Mention an old glibc bug.
15         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16
17 2010-12-25  Bruno Haible  <bruno@clisp.org>
18
19         fcntl-h: Fix for use of C++ on glibc systems.
20         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21         also on glibc systems in C++ mode.
22         Reported by Gary V. Vaughan <gary@gnu.org>.
23
24 2010-12-25  Bruno Haible  <bruno@clisp.org>
25
26         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28
29 2010-12-25  Bruno Haible  <bruno@clisp.org>
30
31         truncl-ieee: Make it work on OSF/1 5.1 with cc.
32         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
33         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
34         test whether truncl works according to ISO C 99 with IEC 60559.
35         * m4/truncl-ieee.m4: New file.
36         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
37         m4/signbit.m4.
38         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
39
40 2010-12-25  Bruno Haible  <bruno@clisp.org>
41
42         ceill-ieee: Make it work on OSF/1 5.1 with cc.
43         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
44         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
45         test whether ceill works according to ISO C 99 with IEC 60559.
46         * m4/ceill-ieee.m4: New file.
47         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
48         m4/signbit.m4.
49         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
50
51 2010-12-25  Bruno Haible  <bruno@clisp.org>
52
53         Ensure all prerequisites of <wchar.h> are included.
54         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
55         before <wchar.h>.
56         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57         gl_MBRLEN_NUL_RETVAL): Likewise.
58         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
59         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
60         AC_FUNC_MBRTOWC): Likewise.
61         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
63         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
64         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
65         Likewise.
66         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
67         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
68         (gl_WCHAR_H): Improve comments.
69         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
70
71 2010-12-25  Bruno Haible  <bruno@clisp.org>
72
73         strtok_r: Fix C syntax error in autoconf macro.
74         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
75         characters in test program.
76
77 2010-12-24  Bruno Haible  <bruno@clisp.org>
78
79         ceil, trunc, round: Fix gcc warnings.
80         * lib/ceil.c (MIN): Undefine before redefining.
81         * lib/trunc.c (MIN): Likewise.
82         * lib/round.c (MIN): Likewise.
83         Include <math.h> first.
84
85 2010-12-24  Bruno Haible  <bruno@clisp.org>
86
87         select tests: Avoid failures on OSF/1 5.1.
88         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
89         failure of closing the last socket; it may fail with ECONNRESET.
90
91 2010-12-24  Eric Blake  <eblake@redhat.com>
92
93         stdint: avoid HP-UX 10.20 preprocessor bug
94         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
95         than #if.
96         * tests/test-floor2.c (main): Likewise.
97         Reported by Peter O'Gorman.
98
99         pipe: make obsoletion transition easier
100         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
101         * modules/pipe (Files): Include revived file.
102         (Include): Drop reference, to mirror getdate's behavior.
103
104 2010-12-24  Bruno Haible  <bruno@clisp.org>
105
106         sys_socket: Hide mismatch of declarations on NonStop Kernel.
107         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
108         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
109         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
110
111 2010-12-24  Bruno Haible  <bruno@clisp.org>
112
113         gethostname: Ensure declaration on NonStop Kernel.
114         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
115         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
116
117 2010-12-24  Bruno Haible  <bruno@clisp.org>
118
119         sys_select: Ensure all necessary types on NonStop Kernel.
120         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
121         include <sys/time.h>.
122         * doc/posix-headers/sys_select.texi: Mention that it's missing on
123         NonStop Kernel.
124         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
125
126 2010-12-24  Bruno Haible  <bruno@clisp.org>
127
128         sys_select: Remove unneeded include.
129         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
130         have <sys/select.h>.
131
132 2010-12-24  Bruno Haible  <bruno@clisp.org>
133
134         gethostname: Provide a fallback for HOST_NAME_MAX.
135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
136         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
137         instead.
138         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
139
140 2010-12-24  Bruno Haible  <bruno@clisp.org>
141
142         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
143         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
144         (SA_RESTART): Likewise.
145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
146
147 2010-12-24  Bruno Haible  <bruno@clisp.org>
148
149         signal: Define NSIG.
150         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
151         * tests/test-signal.c (nsig): New variable.
152         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
153
154 2010-12-24  Bruno Haible  <bruno@clisp.org>
155
156         rename, renameat: Avoid test failures on OSF/1 5.1.
157         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
158         alternative error codes.
159         * tests/test-renameat.c (main): Likewise.
160
161 2010-12-24  Bruno Haible  <bruno@clisp.org>
162
163         *printf: Detect large precisions bug on Solaris 10/SPARC.
164         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
165         by Paul Eggert.
166         * tests/test-snprintf-posix.h (test_function): Add this test code here
167         too.
168         * tests/test-sprintf-posix.h (test_function): Likewise.
169         * tests/test-vasnprintf-posix.c (test_function): Likewise.
170         * tests/test-vasprintf-posix.c (test_function): Likewise.
171         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
172         around by gnulib.
173         * doc/posix-functions/printf.texi: Likewise.
174         * doc/posix-functions/snprintf.texi: Likewise.
175         * doc/posix-functions/sprintf.texi: Likewise.
176         * doc/posix-functions/vfprintf.texi: Likewise.
177         * doc/posix-functions/vprintf.texi: Likewise.
178         * doc/posix-functions/vsnprintf.texi: Likewise.
179         * doc/posix-functions/vsprintf.texi: Likewise.
180         * doc/posix-functions/dprintf.texi: Undo last commit.
181         * doc/posix-functions/vdprintf.texi: Likewise.
182
183 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
184
185         tests: port test-fdutimensat.c to Solaris 8
186         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
187         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
188         On Solaris 8, it fails with errno == ENOSYS, because there is no
189         futimens (so it can't use the fd), and there is no lutimens (so it
190         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
191
192         vsnprintf: make more consistent with snprintf; doc fixes
193
194         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
195         the byte count return problem was promoted from the snprintf-posix
196         to the snprintf module.
197         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
198         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
199         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
200         * tests/test-snprintf.c (main): Check the byte count returned.
201         * tests/test-vsnprintf.c (main): Likewise.
202
203 2010-12-23  Eric Blake  <eblake@redhat.com>
204
205         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
206         * modules/sigpipe (License): Relax license.
207
208 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
209
210         doc: document Solaris printf bug with large float precisions
211         * doc/posix-functions/dprintf.texi (dprintf):
212         * doc/posix-functions/fprintf.texi (fprintf):
213         * doc/posix-functions/printf.texi (printf):
214         * doc/posix-functions/snprintf.texi (snprintf):
215         * doc/posix-functions/sprintf.texi (sprintf):
216         * doc/posix-functions/vdprintf.texi (vdprintf):
217         * doc/posix-functions/vfprintf.texi (vfprintf):
218         * doc/posix-functions/vprintf.texi (vprintf):
219         * doc/posix-functions/vsnprintf.texi (vsnprintf):
220         * doc/posix-functions/vsprintf.texi (vsprintf):
221         Mention that these functions mishandle large floating point
222         precisions on Solaris 10.  The same bug is also present in Solaris
223         8, and I assume earlier.  This causes "cd gnulib-tests; make
224         check" to fail on Solaris 8 (and I assume, later) when building
225         the latest coreutils, in test-vasprintf-posix's call to
226         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
227         the wide flavors (e.g., wprintf) so this patch just updates the
228         documentation for the narrow ones.
229
230         test-posixtm.c: add two tests
231         * tests/test-posixtm.c: Add two tests, to highlight the
232         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
233         around this bug; this is merely to document it.
234
235 2010-12-22  Bruno Haible  <bruno@clisp.org>
236
237         getlogin_r: Work around portability problem on OSF/1.
238         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
239         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
240         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
241         test for a truncated result.
242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
243         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
244         * modules/getlogin_r (Depends-on): Add memchr.
245         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
246
247 2010-12-22  Bruno Haible  <bruno@clisp.org>
248
249         ptsname: Avoid test failure on OSF/1 5.1.
250         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
251         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
252         (same_slave): New function.
253         (main): Use it to compare ptsname's result with the expected file name.
254
255 2010-12-22  Bruno Haible  <bruno@clisp.org>
256
257         Port extended stdio modules to HP NonStop Kernel.
258         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
259         macros.
260         * lib/fbufmode.c: Update comments.
261         * lib/fflush.c: Likewise.
262         * lib/fpurge.c: Likewise.
263         * lib/freadable.c: Likewise.
264         * lib/freadahead.c: Likewise.
265         * lib/freading.c: Likewise.
266         * lib/freadptr.c: Likewise.
267         * lib/freadseek.c: Likewise.
268         * lib/fseeko.c: Likewise.
269         * lib/fseterr.c: Likewise.
270         * lib/fwritable.c: Likewise.
271         * lib/fwriting.c: Likewise.
272         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
273
274 2010-12-22  Bruno Haible  <bruno@clisp.org>
275
276         ttyname_r: Work around bug on OSF/1 5.1.
277         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
278         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
279         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
280         present.
281         * lib/ttyname_r.c (ttyname_r): Update comments.
282
283 2010-12-22  Bruno Haible  <bruno@clisp.org>
284
285         round: Implement result sign according to IEEE 754.
286         * lib/round.c (MIN, MINUS_ZERO): New macros.
287         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
288         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
289         * tests/test-round-ieee.c (main): Likewise.
290         * tests/test-roundl-ieee.c (main): Likewise.
291
292         trunc: Implement result sign according to IEEE 754.
293         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
294         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
295         * tests/test-trunc2.c: Include minus-zero.h.
296         (MINUS_ZERO): New macro.
297         (trunc_reference): Keep in sync with lib/trunc.c.
298         * tests/test-truncf2.c: Include minus-zero.h.
299         (MINUS_ZERO): New macro.
300         (truncf_reference): Keep in sync with lib/trunc.c.
301         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
302         * tests/test-trunc-ieee.c (main): Likewise.
303         * tests/test-truncl-ieee.c (main): Likewise.
304
305         ceil: Implement result sign according to IEEE 754.
306         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
307         (FUNC): Return -0.0 for -1 < x < 0.
308         * tests/test-ceil2.c: Include minus-zero.h.
309         (MINUS_ZERO): New macro.
310         (ceil_reference): Keep in sync with lib/ceil.c.
311         * tests/test-ceilf2.c: Include minus-zero.h.
312         (MINUS_ZERO): New macro.
313         (ceilf_reference): Keep in sync with lib/ceil.c.
314         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
315         * tests/test-ceil-ieee.c (main): Likewise.
316         * tests/test-ceill-ieee.c (main): Likewise.
317
318         floor: Implement result sign according to IEEE 754.
319         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
320         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
321         * tests/test-floorf2.c (floorf_reference): Likewise.
322         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
323         * tests/test-floor-ieee.c (main): Likewise.
324         * tests/test-floorl-ieee.c (main): Likewise.
325
326 2010-12-22  Bruno Haible  <bruno@clisp.org>
327
328         getaddrinfo: Update doc.
329         * doc/posix-functions/gai_strerror.texi: Return type is also different
330         on AIX and HP-UX.
331
332 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
333
334         getaddrinfo, inet_ntop: Update doc for Solaris.
335         * doc/posix-functions/gai_strerror.texi: Return type is also an
336         issue on Solaris 9 and earlier.
337         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
338         on Solaris 10 and earlier.
339
340 2010-12-21  Bruno Haible  <bruno@clisp.org>
341
342         New module 'roundl-ieee'.
343         * modules/roundl-ieee: New file.
344         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
345         test whether roundl works according to ISO C 99 with IEC 60559.
346         * m4/roundl-ieee.m4: New file.
347         * modules/roundl-ieee-tests: New file.
348         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
349         * tests/test-roundl.c (main): Remove signbit tests.
350         * modules/roundl-tests (Depends-on): Remove signbit.
351         * doc/posix-functions/roundl.texi: Mention the new module.
352
353 2010-12-21  Bruno Haible  <bruno@clisp.org>
354
355         New module 'truncl-ieee'.
356         * modules/truncl-ieee: New file.
357         * modules/truncl-ieee-tests: New file.
358         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
359         * tests/test-truncl.c (main): Remove signbit tests.
360         * modules/truncl-tests (Depends-on): Remove signbit.
361         * doc/posix-functions/truncl.texi: Mention the new module.
362
363 2010-12-21  Bruno Haible  <bruno@clisp.org>
364
365         New module 'ceill-ieee'.
366         * modules/ceill-ieee: New file.
367         * modules/ceill-ieee-tests: New file.
368         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
369         * tests/test-ceill.c (main): Remove signbit tests.
370         * modules/ceill-tests (Depends-on): Remove signbit.
371         * doc/posix-functions/ceill.texi: Mention the new module.
372
373 2010-12-21  Bruno Haible  <bruno@clisp.org>
374
375         New module 'floorl-ieee'.
376         * modules/floorl-ieee: New file.
377         * modules/floorl-ieee-tests: New file.
378         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
379         * tests/test-floorl.c (main): Remove signbit tests.
380         * modules/floorl-tests (Depends-on): Remove signbit.
381         * doc/posix-functions/floorl.texi: Mention the new module.
382
383 2010-12-21  Bruno Haible  <bruno@clisp.org>
384
385         New module 'round-ieee'.
386         * modules/round-ieee: New file.
387         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
388         whether round works according to ISO C 99 with IEC 60559.
389         * m4/round-ieee.m4: New file.
390         * modules/round-ieee-tests: New file.
391         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
392         * tests/test-round1.c (main): Remove signbit tests.
393         * modules/round-tests (Depends-on): Remove 'signbit'.
394         * doc/posix-functions/round.texi: Mention the new module.
395
396 2010-12-21  Bruno Haible  <bruno@clisp.org>
397
398         New module 'trunc-ieee'.
399         * modules/trunc-ieee: New file.
400         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
401         whether trunc works according to ISO C 99 with IEC 60559.
402         * m4/trunc-ieee.m4: New file.
403         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
405         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
406         * modules/trunc-ieee-tests: New file.
407         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
408         * tests/test-trunc1.c (main): Remove signbit tests.
409         * modules/trunc-tests (Depends-on): Remove 'signbit'.
410         * doc/posix-functions/trunc.texi: Mention the new module.
411
412 2010-12-21  Bruno Haible  <bruno@clisp.org>
413
414         New module 'ceil-ieee'.
415         * modules/ceil-ieee: New file.
416         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
417         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
418         ISO C 99 with IEC 60559.
419         * m4/ceil-ieee.m4: New file.
420         * modules/ceil (Files): Add lib/ceil.c.
421         (Depends-on): Add 'float'.
422         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
423         * lib/math.in.h (ceil): New declaration.
424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
425         REPLACE_CEIL.
426         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
427         * modules/ceil-ieee-tests: New file.
428         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
429         * tests/test-math-c++.cc: Check the signature of 'ceil'.
430         * doc/posix-functions/ceil.texi: Mention the new module.
431
432 2010-12-21  Bruno Haible  <bruno@clisp.org>
433
434         New module 'floor-ieee'.
435         * modules/floor-ieee: New file.
436         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
437         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
438         ISO C 99 with IEC 60559.
439         * m4/floor-ieee.m4: New file.
440         * modules/floor (Files): Add lib/floor.c.
441         (Depends-on): Add 'float'.
442         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
443         * lib/math.in.h (floor): New declaration.
444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
445         REPLACE_FLOOR.
446         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
447         * modules/floor-ieee-tests: New file.
448         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
449         * tests/test-math-c++.cc: Check the signature of 'floor'.
450         * doc/posix-functions/floor.texi: Mention the new module.
451
452 2010-12-21  Bruno Haible  <bruno@clisp.org>
453
454         New module 'roundf-ieee'.
455         * modules/roundf-ieee: New file.
456         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
457         test whether roundf works according to ISO C 99 with IEC 60559.
458         * m4/roundf-ieee.m4: New file.
459         * modules/roundf-ieee-tests: New file.
460         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
461         * tests/test-roundf1.c (main): Remove signbit tests.
462         * modules/roundf-tests (Depends-on): Remove 'signbit'.
463         * doc/posix-functions/roundf.texi: Mention the new module.
464
465 2010-12-21  Bruno Haible  <bruno@clisp.org>
466
467         New module 'truncf-ieee'.
468         * modules/truncf-ieee: New file.
469         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
470         test whether truncf works according to ISO C 99 with IEC 60559.
471         * m4/truncf-ieee.m4: New file.
472         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
474         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
475         * modules/truncf-ieee-tests: New file.
476         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
477         * tests/test-truncf1.c (main): Remove signbit tests.
478         * modules/truncf-tests (Depends-on): Remove 'signbit'.
479         * doc/posix-functions/truncf.texi: Mention the new module.
480
481 2010-12-21  Bruno Haible  <bruno@clisp.org>
482
483         New module 'ceilf-ieee'.
484         * modules/ceilf-ieee: New file.
485         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
486         test whether ceilf works according to ISO C 99 with IEC 60559.
487         * m4/ceilf-ieee.m4: New file.
488         * modules/ceilf-ieee-tests: New file.
489         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
490         * tests/test-ceilf1.c (main): Remove signbit tests.
491         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
492         * doc/posix-functions/ceilf.texi: Mention the new module.
493
494 2010-12-21  Bruno Haible  <bruno@clisp.org>
495
496         New module 'floorf-ieee'.
497         * modules/floorf-ieee: New file.
498         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
499         test whether floorf works according to ISO C 99 with IEC 60559.
500         * m4/floorf-ieee.m4: New file.
501         * modules/floorf-ieee-tests: New file.
502         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
503         * tests/test-floorf1.c (main): Remove signbit tests.
504         * modules/floorf-tests (Depends-on): Remove 'signbit'.
505         * doc/posix-functions/floorf.texi: Mention the new module.
506
507 2010-12-21  Bruno Haible  <bruno@clisp.org>
508
509         Support for minus zero in autoconf macros.
510         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
511         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
512         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
513         * tests/minus-zero.h: Update comments.
514
515 2010-12-21  Bruno Haible  <bruno@clisp.org>
516
517         Tests for module 'ceil'.
518         * modules/ceil-tests: New file.
519         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
520         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
521
522 2010-12-21  Bruno Haible  <bruno@clisp.org>
523
524         Tests for module 'floor'.
525         * modules/floor-tests: New file.
526         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
527         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
528
529 2010-12-21  Bruno Haible  <bruno@clisp.org>
530
531         math: Fix indentation.
532         * lib/math.in.h (floorf): Fix indentation.
533
534 2010-12-21  Bruno Haible  <bruno@clisp.org>
535
536         Fix cross-compilation guesses on Solaris.
537         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
538         not match "solaris2.10".
539         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
540         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
541         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
542
543 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
544
545         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
546         This fixes a problem observed with the latest coreutils snapshot
547         that caused a test to fail on Solaris 8.  src/csplit.c's call
548         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
549         earlier, instead of returning the number of bytes that would have
550         been generated; this causes csplit to incorrectly report memory
551         exhaustion.
552         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
553         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
554         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
555         comments to match.
556         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
557         Fix typo in matching older versions of Solaris: "solaris2.10"
558         is matched by the shell pattern "solaris2.[0-9]*".  This matters
559         only for guessing while cross-compiling.
560         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
561
562 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
563
564         ftoastr: fix comment again
565         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
567         Also, simplify example a bit by using flags = 0.
568
569 2010-12-20  Bruno Haible  <bruno@clisp.org>
570
571         round*, trunc*: Update documentation regarding glibc.
572         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
573         * doc/posix-functions/round.texi: Likewise.
574         * doc/posix-functions/roundl.texi: Likewise.
575         * doc/posix-functions/truncf.texi: Likewise.
576         * doc/posix-functions/trunc.texi: Likewise.
577         * doc/posix-functions/truncl.texi: Likewise.
578
579 2010-12-20  Bruno Haible  <bruno@clisp.org>
580
581         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
582         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
583         * doc/posix-functions/round.texi: Likewise.
584         * doc/posix-functions/roundl.texi: Likewise.
585
586 2010-12-20  Bruno Haible  <bruno@clisp.org>
587
588         ttyname_r: Add missing declaration on HP-UX 11.
589         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
590         HAVE_TTYNAME_R.
591         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
592         declared. Set HAVE_TTYNAME_R always.
593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
594         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
595         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
596         HAVE_TTYNAME_R.
597         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
598
599 2010-12-20  Bruno Haible  <bruno@clisp.org>
600
601         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
602         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
603         * doc/posix-functions/getlogin_r.texi: Likewise.
604         * tests/test-getlogin.c: Include <errno.h>.
605         (main): Avoid test failure on HP-UX 11.11.
606         * tests/test-getlogin_r.c (main): Likewise.
607
608 2010-12-20  Bruno Haible  <bruno@clisp.org>
609
610         getlogin_r: Add missing declaration on HP-UX 11.
611         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
612         declared also when it exists as a function.
613         * doc/posix-functions/getlogin_r.texi: Document this workaround.
614
615 2010-12-20  Bruno Haible  <bruno@clisp.org>
616
617         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
618         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
619         through wcrtomb.
620
621 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
622
623         ftoastr: fix comment
624         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
626
627 2010-12-19  Bruno Haible  <bruno@clisp.org>
628
629         isnan: Ensure it is a macro.
630         * lib/math.in.h (isnan): Define as a macro if not already a macro.
631         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
632         Solaris.
633
634 2010-12-19  Bruno Haible  <bruno@clisp.org>
635
636         ldexpl test: Fix link error on OSF/1 5.1.
637         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
638
639 2010-12-19  Bruno Haible  <bruno@clisp.org>
640
641         wctype: Make it work in C++ mode on OSF/1 5.1.
642         * lib/wctype.in.h (iswblank): Declare but not define here.
643         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
644         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
645         * modules/wctype (Files): Add lib/iswblank.c.
646
647 2010-12-19  Bruno Haible  <bruno@clisp.org>
648
649         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
650         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
651         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
652
653 2010-12-19  Bruno Haible  <bruno@clisp.org>
654
655         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
657         _POSIX_PII_SOCKET.
658         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
659         * doc/posix-functions/recvfrom.texi: Likewise.
660         * doc/posix-functions/send.texi: Likewise.
661         * doc/posix-functions/sendto.texi: Likewise.
662
663 2010-12-19  Bruno Haible  <bruno@clisp.org>
664
665         tcgetsid: Add missing declaration on OSF/1 5.1.
666         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
667         HAVE_TCGETSID.
668         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
669         Don't set HAVE_TCGETSID.
670         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
671         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
672         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
673         HAVE_TCGETSID.
674         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
675
676 2010-12-19  Bruno Haible  <bruno@clisp.org>
677
678         stdio: Fix problem with popen() declaration on OSF/1 5.1.
679         * lib/stdio.in.h: During the include_next statement, let recursive
680         includes of this file include only the system header file.
681
682 2010-12-19  Bruno Haible  <bruno@clisp.org>
683
684         iconv_open: Fix regression from 2010-12-04.
685         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
686         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
687
688 2010-12-19  Bruno Haible  <bruno@clisp.org>
689
690         stdbool test: Avoid a gcc warning.
691         * tests/test-stdbool.c (main): Fail if e1 is false.
692         Reported by Jim Meyering.
693
694 2010-12-19  Jim Meyering  <meyering@redhat.com>
695
696         setenv: restore to working order
697         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
698         mistakenly removed.
699         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
700         HAVE_SETENV.
701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
702         HAVE_SETENV.
703
704 2010-12-19  Bruno Haible  <bruno@clisp.org>
705
706         Document some different function declarations on OSF/1 5.1.
707         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
708         * doc/posix-functions/inet_ntop.texi: Likewise.
709         * doc/posix-functions/gethostname.texi: Likewise.
710         * lib/unistd.in.h (gethostname): Update comment.
711
712 2010-12-19  Bruno Haible  <bruno@clisp.org>
713
714         doc: Mention vasprintf-posix module.
715         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
716         the 'vasprintf-posix' module.
717         * doc/glibc-functions/vasprintf.texi: Likewise.
718
719 2010-12-19  Bruno Haible  <bruno@clisp.org>
720
721         unsetenv: Add missing declaration on OSF/1 5.1.
722         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
723         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
724         Don't set HAVE_UNSETENV. In the test program, set _BSD.
725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
726         not HAVE_UNSETENV.
727         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
728         HAVE_UNSETENV.
729         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
730
731 2010-12-19  Bruno Haible  <bruno@clisp.org>
732
733         setenv: Add missing declaration on OSF/1 5.1.
734         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
735         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
736         declared. Don't set HAVE_SETENV.
737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
738         not HAVE_SETENV.
739         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
740         HAVE_SETENV.
741         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
742
743 2010-12-19  Bruno Haible  <bruno@clisp.org>
744
745         nl_langinfo tests: Avoid gcc warning.
746         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
747
748 2010-12-19  Bruno Haible  <bruno@clisp.org>
749
750         mknod: Avoid error in C++ mode on OSF/1 with GCC.
751         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
752         _GL_CXXALIAS_SYS.
753
754 2010-12-19  Bruno Haible  <bruno@clisp.org>
755
756         stdbool: Relax test.
757         * tests/test-stdbool.c (e): Don't require that casts from a variable's
758         address to 'bool' work in static initializer, for compilers other than
759         GCC.
760
761 2010-12-19  Bruno Haible  <bruno@clisp.org>
762
763         ftello: Add missing declaration on OSF/1 5.1.
764         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
765         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
767         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
768         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
769
770 2010-12-19  Bruno Haible  <bruno@clisp.org>
771
772         fseeko: Add missing declaration on OSF/1 5.1.
773         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
776         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
777         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
778
779 2010-12-19  Bruno Haible  <bruno@clisp.org>
780
781         fchdir: Add missing declaration on OSF/1 5.1.
782         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
785         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
786         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
787
788 2010-12-19  Bruno Haible  <bruno@clisp.org>
789
790         relocatable-prog-wrapper: Separate from relocatable-prog.
791         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
792         uninstall-relocwrapper rule here.
793         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
794         Reported by Ian Beckwith <ianb@erislabs.net>.
795
796 2010-12-19  Bruno Haible  <bruno@clisp.org>
797
798         unistr/u8-mbsnlen: Add missing dependency.
799         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
800         Reported by Ian Beckwith <ianb@erislabs.net>.
801
802 2010-12-19  Bruno Haible  <bruno@clisp.org>
803
804         iconv: Make it possible again to use this module without 'iconv-h'.
805         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
806         if it is not defined.
807         Reported by Ian Beckwith <ianb@erislabs.net>.
808
809 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
810
811         acl: port to Solaris 8 when copying from tmpfs to ufs
812         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
813         error number.  Problem observed on Solaris 8 with latest
814         coreutils, with "mv A B", where A is on a tmpfs file system and B
815         is on a ufs file system.  This caused coreutils' mv/part-symlink
816         test to fail.
817
818         tests: set fail=0 at start
819         * tests/init.sh (setup_): Move fail=0 initialization here ...
820         (mktempd_): ... from here, so that tests can rely on fail being
821         set to 0 initially.  This fixes a problem in coreutils; see:
822         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
823
824 2010-12-18  Bruno Haible  <bruno@clisp.org>
825
826         memmem-simple: Stylistic changes.
827         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
828         Fix preprocessor directive indentation.
829
830 2010-12-15  Pádraig Brady <P@draigBrady.com>
831
832         memmem, memmem-simple: reorganize and expand empty needle check
833         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
834         functional checks to memmem-simple so that one has a fully functional
835         memmem by using just this module.
836         Restrict the performance only check to the memmem module.
837         Also expand the empty needle check to ensure the correct
838         pointer is returned, not just a non NULL pointer.
839         * doc/glibc-functions/memmem.texi: Rearrange the portability
840         documentation to correlate with the rearranged checks.
841         Clarify exactly how the memmem and memmem-simple modules
842         relate to each other.
843
844 2010-12-15  Pádraig Brady <P@draigBrady.com>
845             Bruno Haible  <bruno@clisp.org>
846
847         Improve cross-compilation guesses for uClibc.
848         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
849         that uClibc does not have the glibc bug.
850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
851         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
852
853 2010-12-14  Eric Blake  <eblake@redhat.com>
854
855         configmake: provide fallbacks for oldest supported autotools
856         * m4/configmake.m4: New file.
857         * modules/configmake (Files): Ship it.
858         (configure.ac): Use it to guarantee fallbacks.
859
860 2010-12-13  Pádraig Brady <P@draigBrady.com>
861
862         read-file: Improve handling of large files
863         * lib/read-file.c (fread_file): Minimize realloc()s
864         for regular files, and better manage sizes around SIZE_MAX.
865
866 2010-12-13  Eric Blake  <eblake@redhat.com>
867
868         cloexec, fcntl: relax license
869         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
870         consent from all contributors.
871         * modules/fcntl (License): Likewise.
872
873 2010-12-10  Bruno Haible  <bruno@clisp.org>
874
875         Tests for module 'pipe-posix'.
876         * modules/pipe-posix-tests: New file.
877         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
878
879 2010-12-10  Bruno Haible  <bruno@clisp.org>
880
881         pipe-posix: Make it work in C++ mode.
882         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
883         (pipe): Use common idiom, not a macro definition.
884         * lib/pipe.c: New file.
885         * m4/pipe.m4: New file.
886         * modules/pipe-posix (Description): Enhance.
887         (Files): Add lib/pipe.c, m4/pipe.m4.
888         (configure.ac): Invoke gl_FUNC_PIPE.
889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
890         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
891         * tests/test-unistd-c++.cc: Check the signature of pipe.
892
893 2010-12-10  Bruno Haible  <bruno@clisp.org>
894
895         Rename module 'pipe' to 'spawn-pipe'.
896         * modules/spawn-pipe: New file, renamed from modules/pipe.
897         (Files, configure.ac, Makefile.am): Update.
898         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
899         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
900         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
901         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
902         "spawn-pipe.h" instead of "pipe.h".
903         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
904         to gl_SPAWN_PIPE.
905         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
906         (Files, Makefile.am): Update.
907         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
908         Update.
909         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
910         Include "spawn-pipe.h" instead of "pipe.h".
911         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
912         * lib/javacomp.c: Likewise.
913         * lib/javaversion.c: Likewise.
914         * lib/pipe-filter-gi.c: Likewise.
915         * lib/pipe-filter-ii.c: Likewise.
916         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
917         * modules/javacomp (Depends-on): Likewise.
918         * modules/javaversion (Depends-on): Likewise.
919         * modules/pipe-filter-gi (Depends-on): Likewise.
920         * modules/pipe-filter-ii (Depends-on): Likewise.
921         * MODULES.html.sh (Executing programs): Update.
922         * NEWS: Mention the change.
923
924 2010-12-10  Eric Blake  <eblake@redhat.com>
925
926         pipe-posix: new module
927         * modules/pipe-posix: New file.
928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
929         (gl_UNISTD_H): Check for declaration.
930         * modules/unistd (Makefile.am): Substitute it.
931         * lib/unistd.in.h (pipe): Provide it for mingw.
932         * doc/posix-functions/pipe.texi (pipe): Update documentation.
933         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
934
935 2010-12-07  Bruno Haible  <bruno@clisp.org>
936
937         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
938         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
939         u8_strcmp_gnu.
940         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
941
942 2010-12-06  Bruno Haible  <bruno@clisp.org>
943
944         Update internal documentation.
945         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
946
947 2010-12-04  Bruno Haible  <bruno@clisp.org>
948
949         Put more information about failed tests into the test return codes.
950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
951         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
952         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
953         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
954         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
955         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
956         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
957         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
958         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
961         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
962         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
963         * m4/stdint.m4 (gl_STDINT_H): Likewise.
964         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
965         returns a bit mask.
966         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
967         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
968         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
969         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
970         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
971         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
974         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
976         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
977         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
978         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
980         * m4/link.m4 (gl_FUNC_LINK): Likewise.
981         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
982         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
983         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
984         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
987         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
989         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
990         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
991         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
992         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
993         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
994         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
995         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
996         gl_PRINTF_PRECISION): Likewise.
997         * m4/regex.m4 (gl_REGEX): Likewise.
998         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
999         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1000         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
1001         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1004         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1005         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
1006         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1007         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1008         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1009         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1010         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1011         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1012         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1013         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1014         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1017         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
1018         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
1019         enumerated value.
1020         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
1021
1022 2010-12-04  Bruno Haible  <bruno@clisp.org>
1023
1024         Update for Solaris 11 2010-11.
1025         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
1026         Express, released in November 2010.
1027
1028 2010-12-04  Bruno Haible  <bruno@clisp.org>
1029
1030         nproc: Relax license.
1031         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
1032         and Paul Eggert.
1033         Requested by Ludovic Courtès <ludo@gnu.org>.
1034
1035 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         utimecmp: fine-grained src to nearby coarse-grained dest
1038
1039         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
1040         and the source is on a file system with higher-resolution time
1041         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
1042         not work, and the time stamps are close together, the algorithm to
1043         determine the exact resolution from the read-back mtime was buggy:
1044         it had a "!=" where it should have had an "==".  This bug has been
1045         in the code ever since it was introduced to gnulib.
1046         Problem reported by Dan Jacobson in
1047         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
1048
1049 2010-11-30  Bruno Haible  <bruno@clisp.org>
1050
1051         strerror_r-posix: Fix autoconf test.
1052         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
1053
1054 2010-11-28  Bruno Haible  <bruno@clisp.org>
1055             Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         Tests for module 'getdomainname'.
1058         * modules/getdomainname-tests: New file.
1059         * tests/test-getdomainname.c: New file, based on
1060         tests/test-gethostname.c.
1061
1062 2010-11-28  Bruno Haible  <bruno@clisp.org>
1063             Paul Eggert  <eggert@cs.ucla.edu>
1064
1065         getdomainname: Use the system function when possible.
1066         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
1067         (getdomainname): Replace if needed. Provide the declaration if it is
1068         missing. Don't use _GL_CXXALIAS_SYS_CAST.
1069         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
1070         (getdomainname): When the system has getdomainname, call the system
1071         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
1072         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1073         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
1074         found in libnsl. Look for the declaration also in <netdb.h>. Replace
1075         the function if its second argument is of type 'int' or if it is found
1076         in libnsl.
1077         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
1078         <sys/systeminfo.h> and sysinfo().
1079         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
1080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1081         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
1082         HAVE_GETDOMAINNAME.
1083         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
1084         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
1085         * doc/glibc-functions/getdomainname.texi: Document the problems with
1086         the getdomainname declaration.
1087
1088 2010-11-28  Bruno Haible  <bruno@clisp.org>
1089
1090         sys_socket: Ensure ss_family field on AIX.
1091         * lib/sys_socket.in.h (ss_family): New macro definition.
1092         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
1093         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
1094         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1095         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1096         * modules/sys_socket (Makefile.am): Substitute
1097         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1098         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
1099
1100 2010-11-27  Bruno Haible  <bruno@clisp.org>
1101
1102         readline: Improve configure output.
1103         * m4/readline.m4 (gl_FUNC_READLINE): Make the
1104         "checking for readline..." result understandable.
1105
1106 2010-11-27  Bruno Haible  <bruno@clisp.org>
1107
1108         *printf-posix: Detect a bug on Solaris 10/x86.
1109         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
1110         for floating-point output.
1111         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
1112         directive.
1113         * tests/test-snprintf-posix.h (test_function): Likewise.
1114         * tests/test-sprintf-posix.h (test_function): Likewise.
1115         * tests/test-vasprintf-posix.c (test_function): Likewise.
1116         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1117         * doc/posix-functions/printf.texi: Likewise.
1118         * doc/posix-functions/snprintf.texi: Likewise.
1119         * doc/posix-functions/sprintf.texi: Likewise.
1120         * doc/posix-functions/vfprintf.texi: Likewise.
1121         * doc/posix-functions/vprintf.texi: Likewise.
1122         * doc/posix-functions/vsnprintf.texi: Likewise.
1123         * doc/posix-functions/vsprintf.texi: Likewise.
1124         * doc/glibc-functions/obstack_printf.texi: Likewise.
1125         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1126
1127 2010-11-27  Bruno Haible  <bruno@clisp.org>
1128
1129         Fix link error when module libunistring-optional is in use.
1130         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1131         * modules/striconveha-tests (Makefile.am): Likewise.
1132
1133 2010-11-27  Bruno Haible  <bruno@clisp.org>
1134
1135         regex: Mention link dependencies.
1136         * modules/regex (Link): New section.
1137         * modules/rpmatch (Link): Likewise.
1138         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1139
1140 2010-11-27  Bruno Haible  <bruno@clisp.org>
1141
1142         ftoastr: Fix compilation error on Solaris.
1143         * lib/ftoastr.c: Include <config.h>.
1144
1145 2010-11-27  Bruno Haible  <bruno@clisp.org>
1146
1147         getloadavg: Update documentation.
1148         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1149
1150 2010-11-27  Bruno Haible  <bruno@clisp.org>
1151
1152         sys_socket: Fix test whether the functions are declared.
1153         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1154         not <sys/select.h>.
1155
1156 2010-11-27  Bruno Haible  <bruno@clisp.org>
1157
1158         getpass: Make sure to get system declaration on some platforms.
1159         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1160         gl_USE_SYSTEM_EXTENSIONS.
1161         * modules/getpass (Depends-on): Add extensions.
1162
1163 2010-11-26  Bruno Haible  <bruno@clisp.org>
1164
1165         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1166         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1167         'iconv' module is present.
1168         (ICONV_CONST): New macro.
1169         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1170         ICONV_CONST.
1171         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1172         set ICONV_CONST.
1173         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1174         here.
1175         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1176         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1177         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1178         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1179         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1180         present.
1181
1182 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1183
1184         ftoastr: comment fix
1185         * lib/ftoastr.c: "little" -> "little or no" in comment
1186
1187 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         stdint: port to GCC 4.3 + OSX + Octave
1190         On this platform, stdint.h is buggy and defines int64_t to long
1191         long int.  The replacement defined it to long int, causing
1192         problems with C++ style name mangling.  Instead, trust the system
1193         definition if INT64_MAX is defined, and likewise for the unsigned
1194         variant.   Problem reported by Jarno Rajahalme in
1195         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1196         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1197         and don't mess with int64_t and INT64_MAX in this case.
1198         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1199
1200 2010-11-24  Bruno Haible  <bruno@clisp.org>
1201
1202         doc: Corrections regarding MacOS X 10.4 and 10.5.
1203         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1204         MacOS X.
1205         Reported by Simon Josefsson.
1206
1207 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1208
1209         Uninstall ".bin" files installed by relocwrapper.
1210         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1211         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1212         unless it is already there.
1213
1214 2010-11-21  Bruno Haible  <bruno@clisp.org>
1215
1216         Update for NetBSD 5.0.
1217         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1218         NetBSD; the test fails on NetBSD 5.0.
1219         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1220         about NetBSD.
1221
1222 2010-11-21  Bruno Haible  <bruno@clisp.org>
1223
1224         Update for HP-UX 11.23 and HP-UX 11.31.
1225         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1226         HP-UX.
1227
1228 2010-11-21  Bruno Haible  <bruno@clisp.org>
1229
1230         Update for MacOS X 10.5.
1231         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1232         MacOS X; the test fails on MacOS X 10.5.8.
1233         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1234         about MacOS X.
1235
1236 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1237
1238         bootstrap: add bootstrap_sync option.
1239         See discussion at
1240         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1241         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1242         * build-aux/bootstrap: Accept --bootstrap-sync to update
1243         bootstrap if it is not identical to the local gnulib's
1244         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1245         enable this by default.  Accept --no-bootstrap-sync to disable
1246         it.
1247
1248 2010-11-20  Bruno Haible  <bruno@clisp.org>
1249
1250         Ensure that <features.h> is included before __GLIBC__ is tested.
1251         * lib/printf-parse.h: Include <features.h>.
1252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1253         Reported by Mike Frysinger <vapier@gentoo.org>.
1254
1255         Ensure that <features.h> is included before __GLIBC__ is tested.
1256         * lib/wchar.in.h: Include <features.h>.
1257         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1258         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1259         Reported by Mike Frysinger <vapier@gentoo.org>.
1260
1261         Ensure that <features.h> is included before __GLIBC__ is tested.
1262         * lib/arpa_inet.in.h: Include <features.h>.
1263         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1264         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1265         Reported by Mike Frysinger <vapier@gentoo.org>.
1266
1267         Ensure that <features.h> is included before __GLIBC__ is tested.
1268         * build-aux/link-warning.h: Include <features.h>.
1269         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1270         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1271         Reported by Mike Frysinger <vapier@gentoo.org>.
1272
1273         Ensure that <features.h> is included before __GLIBC__ is tested.
1274         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1275         Reported by Mike Frysinger <vapier@gentoo.org>.
1276
1277 2010-11-20  Bruno Haible  <bruno@clisp.org>
1278
1279         memmem: Fix autoconf test.
1280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1281
1282 2010-11-20  Bruno Haible  <bruno@clisp.org>
1283
1284         Port to uClibc.
1285         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1286         * lib/fcntl.in.h: Likewise.
1287         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1288         * lib/mbrtowc.c (mbrtowc): Likewise.
1289         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1290         * lib/strerror_r.c: Likewise.
1291         * lib/unistr/u8-strnlen.c: Likewise.
1292         * lib/vasnprintf.c (decimal_point_char): Likewise.
1293         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1294         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1296         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1297         * tests/test-sigaction.c (handler, main): Likewise.
1298         * lib/freading.h: Treat uClibc like a non-glibc platform.
1299         * lib/freading.c: Likewise.
1300         * lib/gettext.h: Likewise.
1301         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1302         Likewise.
1303         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1304         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1305         * lib/propername.c (proper_name_utf8): Likewise.
1306         * lib/spawn.in.h: Likewise.
1307         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1308         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1309         mem_cd_iconveh_internal): Likewise.
1310         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1311         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1312         strstr, strcasestr): Likewise.
1313         * lib/unicodeio.c (unicode_to_mb): Likewise.
1314         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1315         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1316         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1317         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1318         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1319         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1320         * lib/unistr/u8-stpncpy.c: Likewise.
1321         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1322         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1323         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1324         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1325         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1327         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1330         Likewise.
1331         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1332         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1333         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1336         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1337         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1338         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1339         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1340         * tests/test-striconveha.c (main): Likewise.
1341         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1342         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1343         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1344         * doc/posix-functions/getline.texi: Likewise.
1345         Reported by Mike Frysinger <vapier@gentoo.org>.
1346
1347 2010-11-20  Bruno Haible  <bruno@clisp.org>
1348
1349         nproc: Fix condition.
1350         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1351         HAVE_PTHREAD_AFFINITY_NP.
1352
1353 2010-11-20  Bruno Haible  <bruno@clisp.org>
1354
1355         Fix a comment.
1356         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1357
1358 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1359
1360         ftoastr: don't assume snprintf
1361         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1362         Implement a subset of snprintf here, by using sprintf safely.
1363         * modules/ftoastr (Depends-on): Remove snprintf.
1364
1365 2010-11-19  Jim Meyering  <meyering@redhat.com>
1366
1367         test-rename.h: fix compilation failure
1368         * tests/test-rename.h (test_rename): Add omitted "}".
1369
1370 2010-11-17  Jim Meyering  <meyering@redhat.com>
1371
1372         maint.mk: add a URL discussing the no-@acronym policy
1373         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1374
1375 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1376
1377         ftoastr: depend on snprintf, improve comments
1378         * lib/ftoastr.c: Also mention Loitsch's draft.
1379         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1380         needed in the current implementation, but it might simplify
1381         speeding up the code later.
1382         * modules/ftoastr: Depend on snprintf; this improves portability.
1383         Suggested by Bruno Haible in the same email.
1384
1385         ftoastr: port to hosts lacking strtof and strtold
1386         Problem reported by Bruno Haible in
1387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1388         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1389         environment and strtold (and presumably strtof) are not available.
1390         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1391         (configure.ac): Require gl_C99_STRTOLD.
1392
1393 2010-11-18  Bruno Haible  <bruno@clisp.org>
1394
1395         c-strtold: Avoid link error on AIX 7.
1396         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1397         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1398         (gl_C_STRTOLD): Test whether strtold_l exists.
1399         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1400
1401 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         intprops: new macro INT_BITS_STRLEN_BOUND
1404         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1405         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1406         not exposed.  Also, it uses a slightly tighter bound than before;
1407         though this makes no practical difference, we might as well be as
1408         tight as we easily can.
1409
1410         ftoastr: new module, for lossless conversion of floats to short strings
1411         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1412         * modules/ftoastr: New files.
1413
1414 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1415
1416         bootstrap: port to Solaris sed
1417         * build-aux/bootstrap (get_version): Port to Solaris sed.
1418         See Ralf Wildenhues's note in
1419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1420
1421 2010-11-14  Jim Meyering  <meyering@redhat.com>
1422
1423         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1424         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1425         and move definition closer to sole use.
1426
1427 2010-11-13  Jim Meyering  <meyering@redhat.com>
1428
1429         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1430         Now we require at least autoconf-2.59, which means the work-around
1431         is no longer needed.
1432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1433         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1434         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1435         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1436         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1437
1438 2010-11-13  Bruno Haible  <bruno@clisp.org>
1439
1440         rename, renameat: Avoid test failures at NFS mounted locations.
1441         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1442         functions.
1443         (test_rename): Use assert_nonexistent.
1444         * tests/test-rename.c: Include <dirent.h>.
1445         * tests/test-renameat.c: Likewise.
1446         Reported by Gary V. Vaughan <gary@gnu.org>.
1447
1448         rename, renameat: Document Linux bug with NFS
1449         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1450         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1451         * doc/posix-functions/renameat.texi: Likewise.
1452         Suggested by Eric Blake.
1453
1454 2010-11-13  Bruno Haible  <bruno@clisp.org>
1455
1456         rename test: Add comments.
1457         * tests/test-rename.h (test_rename): Add structure and comments.
1458
1459 2010-11-13  Eric Blake  <eblake@redhat.com>
1460
1461         maintainer-makefile: cover a few more files
1462         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1463         scripts generated within C files, for libvirt.
1464
1465 2010-11-13  Bruno Haible  <bruno@clisp.org>
1466
1467         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1468         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1469         character, return the number of bytes that belong together, not always
1470         1.
1471         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1472         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1473         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1474         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1475         number of bytes of an invalid character.
1476         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1477         (main): Invoke it.
1478         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1479         results.
1480         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1481         malformed byte sequences.
1482         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1483         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1484         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1485         Reported by Ben Pfaff and Paolo Bonzini.
1486
1487 2010-11-13  Bruno Haible  <bruno@clisp.org>
1488
1489         openat: Work around glibc bug with fchownat() and empty file names.
1490         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1491         (gl_FUNC_FCHOWNAT): Invoke it.
1492         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1493         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1494         Reported by Gary V. Vaughan <gary@gnu.org>.
1495
1496 2010-11-13  Bruno Haible  <bruno@clisp.org>
1497
1498         openat: Ensure autoconf macro ordering.
1499         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1500         gl_USE_SYSTEM_EXTENSIONS.
1501         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1502
1503 2010-11-13  Bruno Haible  <bruno@clisp.org>
1504
1505         Update comments.
1506         * lib/unistr/u8-check.c: Update file name in comments.
1507         * lib/unistr/u8-mblen.c: Likewise.
1508         * lib/unistr/u8-prev.c: Likewise.
1509         * lib/unistr/u8-strmblen.c: Likewise.
1510         * lib/unistr/u8-strmbtouc.c: Likewise.
1511
1512 2010-11-13  Jim Meyering  <meyering@redhat.com>
1513
1514         tests: avoid test failure on Solaris 10 due to lack of PATH export
1515         * tests/test-update-copyright.sh: Don't forget to export PATH.
1516
1517         init.sh: ensure that IFS is defined, just in case...
1518         * tests/init.sh (setup_): Ensure that IFS is defined,
1519         so that saving and restoring it works as expected.  This
1520         appears to be useful at least for an old version of dash
1521         from a long time ago (RH 6).  See here for details:
1522         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1523
1524         maint.mk: tighten "test a == b" check
1525         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1526         test to files that contain something like #!/bin/sh.
1527         Without this, coreutils would get two false positives in
1528         the comments of C source files.
1529
1530 2010-11-12  Eric Blake  <eblake@redhat.com>
1531
1532         bootstrap: fix typo in previous attempt
1533         * build-aux/bootstrap (buildreq): Correct the grouping.
1534         Reported by Paul Eggert.
1535
1536         maintainer-makefile: prohibit test x == x
1537         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1538         Based on a report by Matthias Bolte.
1539
1540         bootstrap: allow FreeBSD gzip
1541         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1542         which has no '.' and goes to stderr.
1543         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1544         Reported by Matthias Bolte.
1545
1546         maintainer-makefile: check for i18n setup
1547         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1548         will likely work.
1549
1550 2010-11-12  Bruno Haible  <bruno@clisp.org>
1551
1552         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1553         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1554         * lib/nanosleep.c (nanosleep): Likewise.
1555
1556 2010-11-11  Bruno Haible  <bruno@clisp.org>
1557
1558         fcntl-h: Fix for use of C++ on glibc systems.
1559         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1560         also on glibc systems in C++ mode.
1561         Reported by Gary V. Vaughan <gary@gnu.org>.
1562
1563 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1564
1565         mknod: avoid false failure with dash
1566         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1567
1568 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1569
1570         unlink: Fix "is it should" typo in diagnostic.
1571         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1573
1574 2010-11-11  Bruno Haible  <bruno@clisp.org>
1575
1576         Tests for module 'strerror_r-posix'.
1577         * modules/strerror_r-posix-tests: New file.
1578         * tests/test-strerror_r.c: New file.
1579         * tests/test-string-c++.cc: Check the signature of strerror_r.
1580
1581         New module 'strerror_r-posix'.
1582         * lib/string.in.h (strerror_r): New declaration.
1583         * lib/strerror_r.c: New file.
1584         * m4/strerror_r.m4: New file.
1585         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1586         of strerror_r.
1587         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1588         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1589         * modules/strerror_r-posix: New file.
1590         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1591         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1592         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1593         portability problems.
1594
1595 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1596
1597         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1598         line is also considered for output. Quoted function name in shell
1599         command, so temporary files for functions like MyClass::operator()
1600         are removed correctly without errors.
1601
1602 2010-11-09  Bruno Haible  <bruno@clisp.org>
1603
1604         * doc/posix-functions/strerror.texi: List more failing platforms.
1605
1606         * doc/posix-functions/strerror.texi: Add a comment.
1607
1608 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         fdopendir: fix bug on MacOS X when low on file descriptors
1611
1612         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1613         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1614         All callers changed.
1615         (fdopendir): Invoke save_cwd at the top level, not after using
1616         multiple dup() calls to use up file descriptors.  Then retry
1617         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1618         less than the maximum number of open file descriptors, because
1619         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1620         on Mac OS X 10.6.4 for tar 1.24
1621         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1622         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1623         and for tar 1.25
1624         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1625
1626 2010-11-07  Bruno Haible  <bruno@clisp.org>
1627
1628         vasnprintf: Support I flag on glibc systems.
1629         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1630         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1631         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1632         snprintf function.
1633         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1634         glibc systems.
1635         * tests/test-vasnprintf-posix3.c: New file.
1636         * modules/vasnprintf-posix-tests (Files): Add it.
1637         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1638
1639 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1640
1641         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1642         * MODULES.html.sh: For compiler warnings, use name
1643         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1644
1645 2010-11-05  Eric Blake  <eblake@redhat.com>
1646
1647         ceil, floor: avoid spurious failure with icc
1648         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1649         [denormals-as-zero] when optimizing without -mieee-fp option.
1650         * tests/test-floorf2.c (floorf_reference): Likewise.
1651         * tests/test-ceilf1.c (dummy): New function.
1652         (main): Use it to outsmart icc's optimization.
1653         * tests/test-floorf1.c (dummy, main): Likewise.
1654
1655         tests: require working signbit
1656         * modules/ceilf-tests (Depends-on): Add signbit.
1657         * modules/ceill-tests (Depends-on): Likewise.
1658         * modules/floorf-tests (Depends-on): Likewise.
1659         * modules/floorl-tests (Depends-on): Likewise.
1660         * modules/round-tests (Depends-on): Likewise.
1661         * modules/roundf-tests (Depends-on): Likewise.
1662         * modules/roundl-tests (Depends-on): Likewise.
1663         * modules/trunc-tests (Depends-on): Likewise.
1664         * modules/truncf-tests (Depends-on): Likewise.
1665         * modules/truncl-tests (Depends-on): Likewise.
1666
1667         strtod: work around icc bug
1668         * lib/strtod.c (minus_zero): Define to working value.
1669         (strtod): Use it to avoid icc bug.
1670
1671         copysign: enhance tests
1672         * modules/copysign-tests (Files): Add minus-zero.h.
1673         * tests/test-copysign.c (main): Also test zeros.
1674
1675 2010-11-04  Eric Blake  <eblake@redhat.com>
1676
1677         ceil, floor, round, trunc: enhance tests of -0
1678         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1679         * tests/test-ceill.c (main): Likewise.
1680         * tests/test-floorf1.c (main): Likewise.
1681         * tests/test-floorl.c (main): Likewise.
1682         * tests/test-round1.c (main): Likewise.
1683         * tests/test-roundf1.c (main): Likewise.
1684         * tests/test-roundl.c (main): Likewise.
1685         * tests/test-trunc1.c (main): Likewise.
1686         * tests/test-truncf1.c (main): Likewise.
1687         * tests/test-truncl.c (main): Likewise.
1688
1689 2010-11-04  Eric Blake  <eblake@redhat.com>
1690
1691         frexp, tests: work around ICC bug with -zero
1692         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1693         works with more compilers.
1694         * tests/minus-zero.h: New file.
1695         * modules/ceilf-tests (Files): Include it.
1696         * modules/ceill-tests (Files): Likewise.
1697         * modules/floorf-tests (Files): Likewise.
1698         * modules/floorl-tests (Files): Likewise.
1699         * modules/frexp-nolibm-tests (Files): Likewise.
1700         * modules/frexp-tests (Files): Likewise.
1701         * modules/frexpl-nolibm-tests (Files): Likewise.
1702         * modules/frexpl-tests (Files): Likewise.
1703         * modules/isnan-tests (Files): Likewise.
1704         * modules/isnand-nolibm-tests (Files): Likewise.
1705         * modules/isnand-tests (Files): Likewise.
1706         * modules/isnanf-nolibm-tests (Files): Likewise.
1707         * modules/isnanf-tests (Files): Likewise.
1708         * modules/isnanl-nolibm-tests (Files): Likewise.
1709         * modules/isnanl-tests (Files): Likewise.
1710         * modules/round-tests (Files): Likewise.
1711         * modules/roundf-tests (Files): Likewise.
1712         * modules/roundl-tests (Files): Likewise.
1713         * modules/ldexpl-tests (Files): Likewise.
1714         * modules/signbit-tests (Files): Likewise.
1715         * modules/snprintf-posix-tests (Files): Likewise.
1716         * modules/sprintf-posix-tests (Files): Likewise.
1717         * modules/strtod-tests (Files): Likewise.
1718         * modules/trunc-tests (Files): Likewise.
1719         * modules/truncf-tests (Files): Likewise.
1720         * modules/truncl-tests (Files): Likewise.
1721         * modules/vsnprintf-posix-tests (Files): Likewise.
1722         * modules/vsprintf-posix-tests (Files): Likewise.
1723         * modules/vasnprintf-posix-tests (Files): Likewise.
1724         * modules/vasprintf-posix-tests (Files): Likewise.
1725         * tests/test-ceilf1.c (main): Use it.
1726         * tests/test-ceill.c (main): Likewise.
1727         * tests/test-floorf1.c (main): Likewise.
1728         * tests/test-floorl.c (main): Likewise.
1729         * tests/test-frexp.c (main): Likewise.
1730         * tests/test-frexpl.c (main): Likewise.
1731         * tests/test-isnan.c (main): Likewise.
1732         * tests/test-isnand.h (main): Likewise.
1733         * tests/test-isnanf.h (main): Likewise.
1734         * tests/test-isnanl.h (main): Likewise.
1735         * tests/test-ldexpl.c (main): Likewise.
1736         * tests/test-round.c (main): Likewise.
1737         * tests/test-roundf.c (main): Likewise.
1738         * tests/test-roundl.c (main): Likewise.
1739         * tests/test-signbit.c (test_signbitf, test_signbitd)
1740         (test_signbitl): Likewise.
1741         * tests/test-snprintf-posix.h (test_function): Likewise.
1742         * tests/test-sprintf-posix.h (test_function): Likewise.
1743         * tests/test-strtod.c (main): Likewise.
1744         * tests/test-trunc1.c (main): Likewise.
1745         * tests/test-truncf1.c (main): Likewise.
1746         * tests/test-truncl.c (main): Likewise.
1747
1748         isnanl: work around icc bug
1749         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1750
1751 2010-11-03  Eric Blake  <eblake@redhat.com>
1752
1753         tests: fix compiler warnings
1754         * tests/test-getopt.h (test_getopt): Fix condition.
1755         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1756         * tests/test-pipe2.c (main): Likewise.
1757         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1758
1759         utimens: fix broken m4 test
1760         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1761
1762 2010-10-28  Bruno Haible  <bruno@clisp.org>
1763
1764         posix_spawn*, getdtablesize: Relax license.
1765         * modules/posix_spawn (License): Change to LGPLv2+.
1766         * modules/posix_spawnp (License): Likewise.
1767         * modules/posix_spawn-internal (License): Likewise.
1768         * modules/posix_spawnattr_init (License): Likewise.
1769         * modules/posix_spawnattr_getflags (License): Likewise.
1770         * modules/posix_spawnattr_setflags (License): Likewise.
1771         * modules/posix_spawnattr_getpgroup (License): Likewise.
1772         * modules/posix_spawnattr_setpgroup (License): Likewise.
1773         * modules/posix_spawnattr_getschedparam (License): Likewise.
1774         * modules/posix_spawnattr_setschedparam (License): Likewise.
1775         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1776         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1777         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1778         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1779         * modules/posix_spawnattr_getsigmask (License): Likewise.
1780         * modules/posix_spawnattr_setsigmask (License): Likewise.
1781         * modules/posix_spawnattr_destroy (License): Likewise.
1782         * modules/posix_spawn_file_actions_init (License): Likewise.
1783         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1784         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1785         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1786         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1787         * modules/getdtablesize (License): Likewise.
1788         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1789
1790 2010-10-26  Bruno Haible  <bruno@clisp.org>
1791
1792         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1793         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1794         Cygwin and mingw.
1795         Suggested by Eric Blake.
1796
1797 2010-10-26  Bruno Haible  <bruno@clisp.org>
1798
1799         stdio: Work around compilation error due to renameat() on Solaris 10.
1800         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1801         * lib/renameat.c: Don't include <unistd.h> here.
1802         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1803         Reported by Paul Eggert and Eric Blake.
1804
1805 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1806
1807         renameat: port to Solaris 10, which declares renameat in unistd.h
1808
1809         * lib/renameat.c: Include unistd.h before stdio.h, because
1810         Solaris 10 declares renameat in unistd.h.  Problem encountered
1811         when building GNU tar 1.24 on Solaris 10.
1812
1813 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1814
1815         fdopendir: fix C89 compilation
1816         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1817         compilers.
1818
1819 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1820
1821         inttostr: simplify by removing unnecessary redundancy
1822         * lib/anytostr.c: Don't include verify.h.
1823         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1824         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1825         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1826         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1827         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1828         Likewise.
1829         * modules/inttostr (Depends-on): Remove 'verify'.
1830
1831 2010-10-23  Bruno Haible  <bruno@clisp.org>
1832
1833         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1834         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1835         Reported by Eric Blake.
1836
1837 2010-10-23  Bruno Haible  <bruno@clisp.org>
1838
1839         Tests: Fix LOCALE_JA on MirBSD 10.
1840         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1841         to an UTF-8 locale.
1842         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1843         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1844         Reported by Eric Blake.
1845
1846 2010-10-21  Bruno Haible  <bruno@clisp.org>
1847
1848         nl_langinfo test: Avoid test failure on NetBSD 5.
1849         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1850         Reported by Eric Blake.
1851
1852 2010-10-21  Eric Blake  <eblake@redhat.com>
1853
1854         c-stack: work around libsigsegv 2.8 bug
1855         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1856         overflow on at least PowerPC64.
1857
1858 2010-10-17  Bruno Haible  <bruno@clisp.org>
1859
1860         userspec: Drop redundant file.
1861         * modules/userspec (Files): Remove lib/inttostr.h.
1862
1863 2010-10-17  Bruno Haible  <bruno@clisp.org>
1864
1865         nl_langinfo tests: Silence some warnings.
1866         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1867         Reported by Jim Meyering.
1868
1869 2010-10-17  Bruno Haible  <bruno@clisp.org>
1870
1871         Make use of GCC's attribute __alloc_size__.
1872         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1873         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1874         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1875         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1876         __alloc_size__.
1877         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1878         Suggested by Jim Meyering.
1879
1880 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1881
1882         bootstrap: anchor .gitignore entries.
1883         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1884         with...
1885         (insert_vc_ignore): ... this new function, which prepends `/' to
1886         all .gitignore entries before passing them to
1887         insert_sorted_if_absent.
1888
1889 2010-10-16  Bruno Haible  <bruno@clisp.org>
1890
1891         nextafter: Fix configure check.
1892         * modules/nextafter (configure.ac): Correct expected prototype.
1893
1894 2010-10-16  Bruno Haible  <bruno@clisp.org>
1895
1896         termios: Update documentation.
1897         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1898
1899 2010-10-16  Bruno Haible  <bruno@clisp.org>
1900
1901         tests: Make them compile with TinyCC.
1902         * tests/test-strstr.c (main): Remove parentheses around array
1903         initializer.
1904
1905 2010-10-15  Eric Blake  <eblake@redhat.com>
1906
1907         ignore-value: make header idempotent
1908         * lib/ignore-value.h: Add double-inclusion guards.
1909         Reported by Stefan Berger.
1910
1911 2010-10-15  Jim Meyering  <meyering@redhat.com>
1912
1913         GNUmakefile: handle "stable" target, not "major"
1914         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1915         lists in maint.mk and announce-gen.  Without this, "make stable"
1916         would fail to ensure that $(VERSION) is up to date.
1917
1918 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1919
1920         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1921         & co.
1922
1923 2010-10-14  Bruno Haible  <bruno@clisp.org>
1924
1925         vasnprintf: Don't set errno to 0.
1926         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1927         block that sets it to 0.
1928         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1929
1930 2010-10-14  Bruno Haible  <bruno@clisp.org>
1931
1932         socketlib: Fix.
1933         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1934         gl_PREREQ_SYS_H_WINSOCK2.
1935         Reported by Ian Beckwith <ianb@erislabs.net>.
1936
1937 2010-10-13  Jim Meyering  <meyering@redhat.com>
1938
1939         test-select-stdin.c: avoid warn_unused_result warnings
1940         * tests/test-select-stdin.c: Include "macros.h".
1941         ASSERT that read and fflush succeed.
1942
1943 2010-10-13  Jim Meyering  <meyering@redhat.com>
1944
1945         git-version-gen: do require git-VC'd files in cwd
1946         * build-aux/git-version-gen: Reject a git version string
1947         if there are no commits associated with the current directory.
1948         This avoids an unlikely false-positive (unrelated dir whose parent
1949         repository also contains a tag matching v*), as pointed out
1950         by Giuseppe Scrivano in
1951         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1952
1953 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1954
1955         argv-iter: omit nonconforming declaration
1956         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1957         enum arg_iter_err declaration, which doesn't conform to C99.
1958         Solaris 10 cc warns about this.
1959
1960 2010-10-13  Eric Blake  <eblake@redhat.com>
1961
1962         termios: fix compilation on mingw
1963         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1964         (gl_TERMIOS_H): Adjust it on mingw.
1965         * modules/termios (Makefile.am): Substitute new key.
1966         * lib/termios.in.h (includes): Make include_next conditional.
1967         * doc/posix-headers/termios.texi (termios.h): Update
1968         documentation.
1969         Reported by Daniel P. Berrange.
1970
1971 2010-10-13  Jim Meyering  <meyering@redhat.com>
1972
1973         git-version-gen: don't require that .git/ be in the current dir
1974         * build-aux/git-version-gen: Adjust this script so that it works
1975         when run from any working directory beneath the top-level .git/-
1976         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1977         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1978
1979         test-select: avoid warn_unused_result warnings
1980         * tests/test-select.c: Include "macros.h".
1981         ASSERT that each call to read, write, and pipe succeeds.
1982         While not technically required, also check each "close".
1983         * modules/select-tests (Files): Add tests/macros.h.
1984
1985         test-symlinkat: remove declaration of unused local
1986         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1987
1988         test-inttostr: avoid shadowing warnings
1989         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1990         and use malloc rather than the stack for the same reason as
1991         mentioned in the comment justifying the other allocation.
1992
1993 2010-10-11  Bruno Haible  <bruno@clisp.org>
1994
1995         stdlib: Allow multiple gnulib generated replacements to coexist.
1996         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1997         Reported by Sam Steingold <sds@gnu.org>.
1998
1999 2010-10-11  Jim Meyering  <meyering@redhat.com>
2000
2001         fix a documentation typo
2002         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
2003
2004 2010-10-11  Eric Blake  <eblake@redhat.com>
2005
2006         futimens: work around Solaris 11 bug
2007         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
2008         * tests/test-futimens.h (test_futimens): Enhance, rather than
2009         weaken test.
2010         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2011
2012 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         Indentation.
2015         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
2016         higher-level operators more to the left.
2017
2018 2010-10-11  Jim Meyering  <meyering@redhat.com>
2019
2020         test-futimens: avoid unwarranted test failure on Solaris 5.11
2021         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
2022         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
2023         because it tries to dereference the NULL name argument.
2024
2025 2010-10-11  Bruno Haible  <bruno@clisp.org>
2026
2027         Indentation.
2028         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
2029         indentation.
2030
2031 2010-10-11  Jim Meyering  <meyering@redhat.com>
2032
2033         spawn.in.h: make indentation consistent with parentheses
2034         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
2035         Make indentation consistent with parentheses.
2036
2037 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
2038
2039         Fix mismatched parens in previous commit
2040         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
2041         parens.
2042
2043 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2044
2045         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
2046
2047         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
2048         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
2049         * lib/malloca.c: Include "verify.h".
2050         (verify1): Remove, replacing with a verify call.
2051         * lib/relocwrapper.c (verify1): Likewise.
2052         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
2053         Likewise.
2054         * modules/malloca (Depends-on): Add 'verify'.
2055         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
2056         * modules/vasnprintf (Depends-on): Add 'verify'.
2057         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2058         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2059         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2060         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2061         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2062         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2063         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2064
2065         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
2066
2067         Formerly the style was sometimes 2*X - 1, because the C standard
2068         was wrongly thought to disallow ?: in integral constant expressions.
2069         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
2070         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
2071         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2072         * lib/stdint.in.h (_verify_intmax_size): Likewise.
2073         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
2074         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
2075         verify that time_t cannot be floating.
2076
2077 2010-10-08  Eric Blake  <eblake@redhat.com>
2078
2079         time: enforce recent POSIX ruling that time_t is integral
2080         * lib/time.in.h (__time_t_must_be_integral): Detect any
2081         problematic systems, allowing the rest of gnulib to assume POSIX.
2082
2083 2010-10-08  Jim Meyering  <meyering@redhat.com>
2084
2085         fdopendir: fix a bug on systems lacking openat and /proc support
2086         OpenBSD 4.7 is one such system.  The most noticeable effect was
2087         failure of any application making nontrivial use of fts: rm, du,
2088         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
2089           ./rm: traversal failed: `a': Bad file descriptor
2090         Debugging that, you see that even though FD 6 was closed just
2091         prior to the opendir call in fd_clone_opendir, its resulting
2092         dir->dd_fd was 8, rather than the expected value of 6:
2093
2094         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
2095         93                close (fd);
2096         (gdb) n
2097         94                dir = fd_clone_opendir (dupfd);
2098         (gdb) n
2099         95                saved_errno = errno;
2100         (gdb) p dir->dd_fd
2101         $11 = 8
2102
2103         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
2104         The problem is that on OpenBSD, fd_clone_opendir has to resort
2105         to using the old-style save/restore CWD mechanism, due to its
2106         lack of openat/proc support, and *that* would steal the FD (6)
2107         that opendir was supposed to use.
2108
2109         The fix is to squirrel away the desired FD so that save_cwd uses a
2110         different one, and then free the dest FD right before calling opendir.
2111         That guarantees opendir will use the required file descriptor.
2112
2113         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
2114
2115 2010-10-08  Bruno Haible  <bruno@clisp.org>
2116
2117         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2118         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2119
2120 2010-10-08  Bruno Haible  <bruno@clisp.org>
2121
2122         nanosleep: Make replacement POSIX compliant.
2123         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2124         is out of range.
2125         Reported by Jim Meyering.
2126
2127 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         bootstrap: add hook for altering gnulib.mk, for Bison
2130         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2131         the Bison bootstrapping process can rewrite file names and variables
2132         in this file before later parts of 'bootstrap' use the file.
2133         Bison wants to include lib/gnulib.mk from the top-level makefile,
2134         so it needs the file names in this file to be relative to the top
2135         level, not relative to lib; plus it needs variable names to be
2136         rewritten.
2137         (slurp): Use the new function.
2138
2139         bootstrap: reformat for readability
2140         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2141
2142 2010-10-08  Eric Blake  <eblake@redhat.com>
2143
2144         docs: update cygwin progress
2145         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2146         1.7.7.
2147         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2148         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2149         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2150         * doc/posix-functions/carg.texi (carg): Likewise.
2151         * doc/posix-functions/cargf.texi (cargf): Likewise.
2152         * doc/posix-functions/casin.texi (casin): Likewise.
2153         * doc/posix-functions/casinf.texi (casinf): Likewise.
2154         * doc/posix-functions/casinh.texi (casinh): Likewise.
2155         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2156         * doc/posix-functions/catan.texi (catan): Likewise.
2157         * doc/posix-functions/catanf.texi (catanf): Likewise.
2158         * doc/posix-functions/catanh.texi (catanh): Likewise.
2159         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2160         * doc/posix-functions/ccos.texi (ccos): Likewise.
2161         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2162         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2163         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2164         * doc/posix-functions/cexp.texi (cexp): Likewise.
2165         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2166         * doc/posix-functions/cimag.texi (cimag): Likewise.
2167         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2168         * doc/posix-functions/clog.texi (clog): Likewise.
2169         * doc/posix-functions/clogf.texi (clogf): Likewise.
2170         * doc/posix-functions/conj.texi (conj): Likewise.
2171         * doc/posix-functions/conjf.texi (conjf): Likewise.
2172         * doc/posix-functions/cpow.texi (cpow): Likewise.
2173         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2174         * doc/posix-functions/cproj.texi (cproj): Likewise.
2175         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2176         * doc/posix-functions/creal.texi (creal): Likewise.
2177         * doc/posix-functions/crealf.texi (crealf): Likewise.
2178         * doc/posix-functions/csin.texi (csin): Likewise.
2179         * doc/posix-functions/csinf.texi (csinf): Likewise.
2180         * doc/posix-functions/csinh.texi (csinh): Likewise.
2181         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2182         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2183         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2184         * doc/posix-functions/ctan.texi (ctan): Likewise.
2185         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2186         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2187         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2188         * doc/posix-headers/complex.texi (complex.h): Likewise.
2189
2190 2010-10-07  Jim Meyering  <meyering@redhat.com>
2191
2192         parse-datetime: avoid compilation failure on OpenBSD 4.7
2193         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2194         This works around a compilation failure on OpenBSD 4.7:
2195         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2196
2197 2010-10-07  Eric Blake  <eblake@redhat.com>
2198
2199         docs: update cygwin progress
2200         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2201         1.7.6.
2202         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2203         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2204         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2205         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2206         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2207         Likewise.
2208         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2209         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2210         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2211         Likewise.
2212         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2213         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2214         Likewise.
2215         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2216         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2217         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2218         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2219         Likewise.
2220         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2221         Likewise.
2222         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2223
2224         docs: update parse-datetime history
2225         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2226         documentation of this function's history and alternatives.
2227
2228         cygwin: use more robust version check
2229         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2230         exclude an eventual cygwin 1.9.1.
2231         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2233         (gl_FUNC_STRCASESTR): Likewise.
2234         Reported by Bruno Haible.
2235
2236 2010-10-06  Bruno Haible  <bruno@clisp.org>
2237
2238         string, sys_select: Avoid #including large headers unless necessary.
2239         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2240         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2241         OSF/1, BeOS, Haiku.
2242         Reported by Jim Meyering.
2243
2244 2010-10-05  Eric Blake  <eblake@redhat.com>
2245
2246         memmem, strstr, strcasestr: fix bug with long periodic needle
2247         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2248         periodic needle having false positive.
2249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2250         and cygwin 1.7.7.
2251         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2253         (gl_FUNC_STRCASESTR): Likewise.
2254         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2255         * tests/test-memmem.c (main): Expose the bug.
2256         * tests/test-strcasestr.c (main): Likewise.
2257         * tests/test-strstr.c (main): Likewise.
2258         * tests/test-c-strcasestr.c (main): Likewise.
2259         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2260         * doc/posix-functions/strstr.texi (strstr): Likewise.
2261         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2262         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2263
2264 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2265
2266         parse-datetime: do some more renaming
2267         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2268         parse_datetime, not get_date.  Mention the renaming.
2269         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2270         in comments.
2271         * m4/bison.m4: Likewise.
2272
2273 2010-10-05  Eric Blake  <eblake@redhat.com>
2274
2275         parse-datetime: better name than get_date
2276         * NEWS: Reword the deprecation notice.
2277         * modules/get_date: Rename to modules/parse-datetime.
2278         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2279         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2280         * lib/get_date.y: Rename to lib/parse-datetime.y.
2281         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2282         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2283         * doc/getdate.texi: Provide fallback wrapper.
2284         * lib/getdate.h: Move guts, and wrap...
2285         * lib/parse-datetime.h: ...new file.
2286         * lib/parse-datetime.y (get_date): Rename...
2287         (parse_datetime): ...to this.
2288         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2289         (gl_PARSE_DATETIME): ...to this.
2290         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2291         documentation.
2292         * modules/getdate (Files): Provide fallback docs and header.
2293         (Notice, Depends-on): Update references.
2294         * tests/test-parse-datetime.c: Likewise.
2295         * DEPENDENCIES: Likewise.
2296         * MODULES.html.sh (Date and time <time.h>): Likewise.
2297         * doc/parse-datetime.texi (Date input formats)
2298         (Authors of parse_datetime): Likewise.
2299         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2300         (Include): Likewise.
2301         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2302         * gnulib-tool: Likewise.
2303         * m4/bison.m4 (gl_BISON): Likewise.
2304         Suggested by Bruno Haible.
2305
2306 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2307
2308         more ports to Solaris tr, which needs [] around ranges
2309         * gnulib-tool: Solaris tr needs [] around ranges.
2310         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2311         * tests/test-pipe-filter-gi1.c (main): Likewise.
2312         * tests/test-pipe-filter-ii1.c (main): Likewise.
2313
2314 2010-10-05  Eric Blake  <eblake@redhat.com>
2315
2316         bootstrap: fix Solaris regression
2317         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2318         around ranges.
2319         Reported by Pádraig Brady.
2320
2321         bootstrap: work with pkg-config
2322         * build-aux/bootstrap (check_versions): Also transliterate - in
2323         prerequisite name.
2324         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2325         prerequisites that were already found, to avoid confusion.
2326         Reported by Justin Clift.
2327
2328         faccessat: remove unused wrappers
2329         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2330         presence of these wrappers dragged in -lgen on Solaris.
2331         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2332
2333 2010-10-05  Jim Meyering  <meyering@redhat.com>
2334
2335         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2336         * Makefile (sc_pragma_columns): New syntax-check rule.
2337
2338 2010-10-04  Bruno Haible  <bruno@clisp.org>
2339
2340         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2341         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2342         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2343         Reported by Bruce Korb and Eric Blake.
2344
2345 2010-10-04  Bruno Haible  <bruno@clisp.org>
2346
2347         threadlib: Make option --with-libpth-prefix work.
2348         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2349         use $LIBPTH, not just -lpth.
2350
2351 2010-10-04  Bruno Haible  <bruno@clisp.org>
2352
2353         Avoid line length limitation from HP NonStop system header files.
2354         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2355         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2356         * lib/ctype.in.h: Likewise.
2357         * lib/dirent.in.h: Likewise.
2358         * lib/errno.in.h: Likewise.
2359         * lib/fcntl.in.h: Likewise.
2360         * lib/float.in.h: Likewise.
2361         * lib/getopt.in.h: Likewise.
2362         * lib/iconv.in.h: Likewise.
2363         * lib/inttypes.in.h: Likewise.
2364         * lib/langinfo.in.h: Likewise.
2365         * lib/locale.in.h: Likewise.
2366         * lib/math.in.h: Likewise.
2367         * lib/netdb.in.h: Likewise.
2368         * lib/netinet_in.in.h: Likewise.
2369         * lib/poll.in.h: Likewise.
2370         * lib/pthread.in.h: Likewise.
2371         * lib/pty.in.h: Likewise.
2372         * lib/sched.in.h: Likewise.
2373         * lib/se-selinux.in.h: Likewise.
2374         * lib/search.in.h: Likewise.
2375         * lib/signal.in.h: Likewise.
2376         * lib/spawn.in.h: Likewise.
2377         * lib/stdarg.in.h: Likewise.
2378         * lib/stddef.in.h: Likewise.
2379         * lib/stdint.in.h: Likewise.
2380         * lib/stdio.in.h: Likewise.
2381         * lib/stdlib.in.h: Likewise.
2382         * lib/string.in.h: Likewise.
2383         * lib/strings.in.h: Likewise.
2384         * lib/sys_file.in.h: Likewise.
2385         * lib/sys_ioctl.in.h: Likewise.
2386         * lib/sys_select.in.h: Likewise.
2387         * lib/sys_socket.in.h: Likewise.
2388         * lib/sys_stat.in.h: Likewise.
2389         * lib/sys_time.in.h: Likewise.
2390         * lib/sys_times.in.h: Likewise.
2391         * lib/sys_utsname.in.h: Likewise.
2392         * lib/sys_wait.in.h: Likewise.
2393         * lib/sysexits.in.h: Likewise.
2394         * lib/termios.in.h: Likewise.
2395         * lib/time.in.h: Likewise.
2396         * lib/unistd.in.h: Likewise.
2397         * lib/wchar.in.h: Likewise.
2398         * lib/wctype.in.h: Likewise.
2399         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2400         * modules/ctype (Makefile.am): Likewise.
2401         * modules/dirent (Makefile.am): Likewise.
2402         * modules/errno (Makefile.am): Likewise.
2403         * modules/fcntl-h (Makefile.am): Likewise.
2404         * modules/float (Makefile.am): Likewise.
2405         * modules/getopt-posix (Makefile.am): Likewise.
2406         * modules/iconv-h (Makefile.am): Likewise.
2407         * modules/inttypes (Makefile.am): Likewise.
2408         * modules/langinfo (Makefile.am): Likewise.
2409         * modules/locale (Makefile.am): Likewise.
2410         * modules/math (Makefile.am): Likewise.
2411         * modules/netdb (Makefile.am): Likewise.
2412         * modules/netinet_in (Makefile.am): Likewise.
2413         * modules/poll-h (Makefile.am): Likewise.
2414         * modules/pthread (Makefile.am): Likewise.
2415         * modules/pty (Makefile.am): Likewise.
2416         * modules/sched (Makefile.am): Likewise.
2417         * modules/search (Makefile.am): Likewise.
2418         * modules/selinux-h (Makefile.am): Likewise.
2419         * modules/signal (Makefile.am): Likewise.
2420         * modules/spawn (Makefile.am): Likewise.
2421         * modules/stdarg (Makefile.am): Likewise.
2422         * modules/stddef (Makefile.am): Likewise.
2423         * modules/stdint (Makefile.am): Likewise.
2424         * modules/stdio (Makefile.am): Likewise.
2425         * modules/stdlib (Makefile.am): Likewise.
2426         * modules/string (Makefile.am): Likewise.
2427         * modules/strings (Makefile.am): Likewise.
2428         * modules/sys_file (Makefile.am): Likewise.
2429         * modules/sys_ioctl (Makefile.am): Likewise.
2430         * modules/sys_select (Makefile.am): Likewise.
2431         * modules/sys_socket (Makefile.am): Likewise.
2432         * modules/sys_stat (Makefile.am): Likewise.
2433         * modules/sys_time (Makefile.am): Likewise.
2434         * modules/sys_times (Makefile.am): Likewise.
2435         * modules/sys_utsname (Makefile.am): Likewise.
2436         * modules/sys_wait (Makefile.am): Likewise.
2437         * modules/sysexits (Makefile.am): Likewise.
2438         * modules/termios (Makefile.am): Likewise.
2439         * modules/time (Makefile.am): Likewise.
2440         * modules/unistd (Makefile.am): Likewise.
2441         * modules/wchar (Makefile.am): Likewise.
2442         * modules/wctype (Makefile.am): Likewise.
2443
2444 2010-10-04  Bruno Haible  <bruno@clisp.org>
2445
2446         read-file tests: Avoid a test failure on NonStop Kernel.
2447         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2448         a regular file.
2449         Reported by Joachim Schmitz <schmitz@hp.com>.
2450
2451 2010-10-03  Bruno Haible  <bruno@clisp.org>
2452
2453         gnulib-tool: Fixes for --create-testdir with --libtool.
2454         * gnulib-tool (func_get_automake_snippet): Don't augment
2455         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2456         an executable.
2457         (func_create_testdir): Handle module 'alloca' like func_import.
2458         Reported by Bruce Korb <bruce.korb@gmail.com>.
2459
2460 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2461
2462         Avoid some lines longer than 80 characters.
2463         * lib/stdint.in.h: Break long comment lines.
2464         * lib/math.in.h: Likewise.
2465         (_GL_NUM_UINT_WORDS): New macro, for readability.
2466         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2467         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2468         * lib/stdlib.in.h: Likewise.
2469         * lib/spawn.in.h: Likewise.
2470         * lib/sys_socket.in.h: Update an URL.
2471         * lib/sys_stat.in.h: Break long line.
2472
2473 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2474
2475         Improve pmccabe2html.
2476         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2477         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2478         when the sources change. Remove the line in the HTML about "Used
2479         ranges" (which implied that there might be other unused ranges),
2480         rename "Resume" to "Summary" (easier to understand for more users).
2481         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2482         styles, and some unnecessary blank lines.
2483
2484 2010-10-03  Bruno Haible  <bruno@clisp.org>
2485             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2486
2487         acl: Add support for ACLs on NonStop Kernel.
2488         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2489         Check whether the function aclsort() exists.
2490         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2491         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2492         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2493         (acl_nontrivial [HAVE_ACLSORT]: New function.
2494         (file_has_acl): Implement for NonStop Kernel.
2495         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2496         (qset_acl): Implement for NonStop Kernel.
2497         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2498         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2499         (main): Implement for NonStop Kernel.
2500         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2501         Kernel. Handle this flavor.
2502         * tests/test-set-mode-acl.sh: Likewise.
2503         * tests/test-copy-acl.sh: Likewise.
2504         * tests/test-copy-file.sh: Likewise.
2505
2506 2010-10-03  Bruno Haible  <bruno@clisp.org>
2507
2508         Info about ACLs on NonStop Kernel.
2509         * doc/acl-resources.txt: Add info about NonStop Kernel.
2510         References by Joachim Schmitz <schmitz@hp.com>.
2511
2512 2010-10-02  Bruno Haible  <bruno@clisp.org>
2513
2514         Define missing EDQUOT on NonStop Kernel.
2515         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2516         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2517         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2518         missing.
2519         * doc/posix-headers/errno.texi: Mention the NSK bug.
2520         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2521         Reported by Joachim Schmitz <schmitz@hp.com>.
2522
2523 2010-10-02  Bruno Haible  <bruno@clisp.org>
2524
2525         Update doc for POSIX:2008.
2526         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2527         Update URL of POSIX specification.
2528
2529 2010-10-02  Bruno Haible  <bruno@clisp.org>
2530
2531         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2532         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2533         from gnulib, not from Automake.
2534
2535 2010-10-02  Bruno Haible  <bruno@clisp.org>
2536
2537         New module 'system-posix'.
2538         * modules/system-posix: New file.
2539         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2540         module is present.
2541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2542         GNULIB_SYSTEM_POSIX.
2543         * modules/stdlib (Depends-on): Remove sys_wait.
2544         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2545         * doc/posix-functions/system.texi: Mention the new module.
2546         * doc/posix-headers/stdlib.texi: Likewise.
2547         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2548         define test_sys_wait_macros to a no-op.
2549         Reported by Sam Steingold <sds@gnu.org>.
2550
2551 2010-09-30  Bruno Haible  <bruno@clisp.org>
2552
2553         More renaming from 'getdate' to 'get_date'.
2554         * doc/get_date.texi: Renamed from doc/getdate.texi.
2555         * modules/get_date (Files): Update.
2556         * MODULES.html.sh (Date and time <time.h>): Update.
2557         * DEPENDENCIES: Update.
2558         * gnulib-tool: Update comment.
2559         * m4/bison.m4 (gl_BISON): Likewise.
2560         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2561
2562 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2563
2564         bootstrap: support ACLOCAL_FLAGS during aclocal
2565         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2566         can add additional -I dir for third-party .m4 files.
2567
2568 2010-09-30  Eric Blake  <eblake@redhat.com>
2569
2570         bootstrap: use glibtoolize on MacOS
2571         * build-aux/bootstrap (check_versions): Convert libtool into
2572         libtoolize.
2573         (tool search): Move libtool check earlier, and look for
2574         glibtoolize for MacOS.
2575         (gnulib_tool_options): Auto-add --libtool when appropriate.
2576         Reported by Justin Clift.
2577
2578         poll: fix typo that broke test on MacOS
2579         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2580         Reported by Justin Clift.
2581
2582         getdate: rename to get_date
2583         Note: getdate.h is not renamed, to minimize client impact.
2584         * modules/getdate: Mark obsolete.  Move old contents...
2585         * modules/get_date: ...to new module name.
2586         * modules/getdate-tests: Move...
2587         * modules/get_date-tests: ...here.
2588         * m4/getdate.m4: Move...
2589         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2590         * lib/getdate.y: Move...
2591         * lib/get_date.y: ...here.
2592         * tests/test-getdate.c: Move...
2593         * tests/test-get_date.c: ...here.
2594         * doc/posix-functions/getdate.texi (getdate): Update name.
2595         * NEWS: Mention the change.
2596
2597 2010-09-29  Bruno Haible  <bruno@clisp.org>
2598
2599         Separate the module 'waitpid' from the module 'sys_wait'.
2600         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2601         present.
2602         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2603         gl_MODULE_INDICATOR_FOR_TESTS.
2604         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2605         * modules/sys_wait (Depends-on): Remove waitpid.
2606         (Makefile.am): Substitute GNULIB_WAITPID.
2607         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2608         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2609         signature only if the 'waitpid' module is present.
2610         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2611         * NEWS: Mention the change.
2612         * modules/grantpt (Depends-on): Add waitpid.
2613         * modules/wait-process (Depends-on): Likewise.
2614
2615 2010-09-29  Bruno Haible  <bruno@clisp.org>
2616
2617         More tests for module 'sys_wait'.
2618         * modules/sys_wait-c++-tests: New file.
2619         * tests/test-sys_wait-c++.cc: New file.
2620         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2621         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2622
2623 2010-09-29  Bruno Haible  <bruno@clisp.org>
2624
2625         New module 'waitpid'.
2626         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2627         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2628         Don't include <process.h>.
2629         (waitpid): Declare only, using modern idiom.
2630         * m4/waitpid.m4: New file.
2631         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2632         * modules/waitpid: New file.
2633         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2634         (Makefile.am): Update.
2635         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2636
2637 2010-09-28  Bruno Haible  <bruno@clisp.org>
2638
2639         poll: Assume ANSI C.
2640         * lib/poll.c (poll): Use an ANSI C declaration.
2641
2642 2010-09-28  Bruno Haible  <bruno@clisp.org>
2643
2644         poll-h: Create poll.h on all platforms.
2645         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2646         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2647         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2648         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2649         (gl_REPLACE_POLL_H): Don't set POLL_H.
2650         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2651         * modules/poll-h (Depends-on): Add include_next.
2652         (Makefile.am): Create poll.h unconditionally. Substitute also
2653         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2654
2655 2010-09-28  Bruno Haible  <bruno@clisp.org>
2656
2657         Tests for module 'poll-h'.
2658         * modules/poll-h-c++-tests: New file.
2659         * tests/test-poll-h-c++.cc: New file.
2660
2661         Tests for module 'poll-h'.
2662         * modules/poll-h-tests: New file.
2663         * tests/test-poll-h.c: New file.
2664
2665 2010-09-28  Bruno Haible  <bruno@clisp.org>
2666
2667         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2668         * modules/poll-h (Depends-on): Add 'extensions'.
2669
2670 2010-09-28  Bruno Haible  <bruno@clisp.org>
2671
2672         New module 'poll-h'.
2673         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2674         (poll): Use modern idiom.
2675         * modules/poll-h: New file.
2676         * modules/poll (Files): Remove lib/poll.in.h.
2677         (Depends-on): Add poll-h.
2678         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2679         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2680         * m4/poll_h.m4: New file.
2681         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2682         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2683         and invoke gl_REPLACE_POLL_H.
2684         * lib/poll.c: Use common idiom.
2685         * tests/test-poll.c: Likewise.
2686         * doc/posix-headers/poll.texi: Mention the poll-h module.
2687         Suggested by Eric Blake.
2688
2689 2010-09-26  Bruno Haible  <bruno@clisp.org>
2690
2691         sys_wait: Implement WSTOPSIG.
2692         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2693         Reported by Simon Josefsson.
2694
2695 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2696
2697         stdlib, sys_wait: Avoid compilation error on mingw.
2698         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2699
2700 2010-09-26  Bruno Haible  <bruno@clisp.org>
2701
2702         stdlib tests: Avoid code duplication.
2703         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2704         * modules/sys_wait-tests (Files): Likewise.
2705         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2706         * tests/test-stdlib.c: Include test-sys_wait.h.
2707         (main): Invoke test_sys_wait_macros.
2708         * tests/test-sys_wait.c: Include test-sys_wait.h.
2709         (main): Invoke test_sys_wait_macros.
2710
2711 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2712
2713         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2714         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2715         sure Windows sockets are working before calling getaddrinfo.
2716         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2717         * doc/gnulib.texi (Windows sockets): Fix typo.
2718
2719 2010-09-25  Bruno Haible  <bruno@clisp.org>
2720
2721         Tests for module 'regex-quote'.
2722         * modules/regex-quote-tests: New file.
2723         * tests/test-regex-quote.c: New file.
2724
2725         New module 'regex-quote'.
2726         * lib/regex-quote.h: New file.
2727         * lib/regex-quote.c: New file.
2728         * modules/regex-quote: New file.
2729         Suggested by Reuben Thomas <rrt@sc3d.org>.
2730
2731 2010-09-24  Bruno Haible  <bruno@clisp.org>
2732
2733         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2734         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2735
2736 2010-09-23  Bruno Haible  <bruno@clisp.org>
2737
2738         setenv: Relax license.
2739         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2740         Blake.
2741         Requested by Eric Blake.
2742
2743 2010-09-22  Bruno Haible  <bruno@clisp.org>
2744
2745         termios: Relax license.
2746         * modules/termios (License): Change to LGPLv2+.
2747         Requested by Eric Blake.
2748
2749 2010-09-22  Bruno Haible  <bruno@clisp.org>
2750
2751         threadlib: Allow the package to change the default to 'no'.
2752         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2753         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2754         Reported by Paul Eggert.
2755
2756 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2757             Bruno Haible  <bruno@clisp.org>
2758
2759         Fix endless loop in mbmemcasecoll.
2760         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2761         byte.
2762         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2763
2764 2010-09-22  Bruno Haible  <bruno@clisp.org>
2765
2766         Tests for module 'memcoll'.
2767         * modules/memcoll-tests: New file.
2768         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2769
2770         memcoll, xmemcoll: Clarify size vs. length.
2771         * modules/memcoll.c (memcoll0): Clarify specification.
2772         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2773         passed to collate_error.
2774
2775 2010-09-22  Bruno Haible  <bruno@clisp.org>
2776
2777         Tests for module 'memcasecmp'.
2778         * modules/memcasecmp-tests: New file.
2779         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2780
2781 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2782
2783         * lib/pthread.in.h: Add split double-inclusion guard, and include
2784         system <pthread.h> if there is one.  Use @@-style as in other
2785         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2786         pthread.h doesn't.
2787         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2788         (pthread_mutexattr_settype, pthread_mutex_trylock):
2789         New static inline functions, if there's no system <pthread.h>.
2790         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2791         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2792         Approximate with mutexes if the system lacks spinlocks, as in
2793         MacOS.
2794         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2795         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2796         @@-style.  Check for spinlocks separately.
2797         (gl_PTHREAD_DEFAULTS): New macro.
2798         * modules/pthread: Redo to use a more typical style for in.h files.
2799
2800 2010-09-21  Eric Blake  <eblake@redhat.com>
2801
2802         net_if: enhance tests
2803         * tests/test-net_if.c (main): Move signature checks earlier.
2804         Print failures to stderr.
2805         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2806         Document the bug that we do not yet fix.
2807
2808 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2809
2810         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2811         about gnulib, not GSS.
2812
2813 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2814
2815         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2816         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2817         for Emacs.
2818         * build-aux/pmccabe2html: Make Makefile.am example code more
2819         cut-and-paste friendly.
2820
2821 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2822
2823         * tests/test-net_if.c: New file.
2824         * modules/net_if-tests: New file.
2825
2826 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2827
2828         pthread: add pthread_spin_destroy
2829         * lib/pthread.in.h (pthread_spin_destroy): New function.
2830
2831 2010-09-19  Bruno Haible  <bruno@clisp.org>
2832
2833         gnulib-tool: Fix --help output.
2834         * gnulib-tool (func_usage): Fix help message.
2835         Reported by Reuben Thomas <rrt@sc3d.org>.
2836
2837 2010-09-18  Jim Meyering  <meyering@redhat.com>
2838
2839         maint.mk: avoid unexpanded \n in two diagnostics
2840         * top/maint.mk (sc_prohibit_always_true_header_tests):
2841         Don't use a literal \n in a halt=... assignment.  It would not be
2842         expanded, and the two \n bytes would appear in the diagnostic output
2843         rather than the desired newline.  Use halt=$$(printf ... instead.
2844         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2845
2846 2010-09-18  Bruno Haible  <bruno@clisp.org>
2847
2848         netinet_in: Doc tweak.
2849         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2850         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2851
2852 2010-09-18  Jim Meyering  <meyering@redhat.com>
2853
2854         init.sh: correct an outdated comment
2855         * tests/init.sh (create_exe_shims_):  s/function/alias/
2856
2857         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2858         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2859         a file named "*.exe" is removed between the glob expansion and the
2860         processing of that oddly named file.
2861
2862 2010-09-17  Eric Blake  <eblake@redhat.com>
2863
2864         mirbsd: add some more support
2865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2866         in BSD family.
2867         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2868         devices as OpenBSD.
2869         * m4/host-os.m4 (mirbsd): Add MirBSD.
2870
2871         tests: fix unportable assumption on sys/wait.h
2872         * tests/test-sys_wait.c (main): Relax test.
2873         * tests/test-stdlib.c (main): Likewise.
2874
2875         init.sh: accomodate directory with no .exes
2876         * tests/init.sh: Accomodate directory containing only scripts.
2877
2878         tests: avoid compiler warning
2879         * tests/test-stdlib.c (main): Use the variable.
2880
2881         fdutimens, fdutimensat: update signature, again
2882         * lib/utimens.h (gl_futimens): Delete, and move signature...
2883         (fdutimens): ...here.
2884         (fdutimensat): Rearrange signature.
2885         (lutimensat): Rename variable for clarity.
2886         * lib/fdutimensat.c (fdutimensat): Update signature.
2887         * lib/utimens.c (fdutimens): Likewise.
2888         (gl_futimens): Delete.
2889         (utimens, lutimens): Update callers.
2890         * lib/futimens.c (futimens): Likewise.
2891         * tests/test-fdutimensat.c: Likewise.
2892         * tests/test-utimens.c: Likewise.
2893         * tests/test-futimens.h: Update comment.
2894         * NEWS: Mention this.
2895         Suggested by Paul Eggert.
2896
2897 2010-09-17  Bruno Haible  <bruno@clisp.org>
2898
2899         Take over the maintenance of some older macros from Autoconf.
2900         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2901         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2902         GNU Autoconf.
2903         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2904         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2905
2906 2010-09-17  Eric Blake  <eblake@redhat.com>
2907
2908         fdutimensat: drop atflag validation
2909         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2910         with valid fd, to close a race scenario where futimens is
2911         unsupported and FILE was replaced by a symlink.
2912         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2913         accordingly.
2914         Suggested by Paul Eggert.
2915
2916 2010-09-16  Bruno Haible  <bruno@clisp.org>
2917
2918         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2919         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2920
2921 2010-09-16  Bruno Haible  <bruno@clisp.org>
2922
2923         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2924         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2925         login_tty exists.
2926         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2927
2928 2010-09-16  Bruno Haible  <bruno@clisp.org>
2929
2930         login_tty: Make the replacement code work on BSD systems.
2931         * lib/login_tty.c: Include <sys/ioctl.h>.
2932         (login_tty): Use ioctl TIOCSCTTY when available.
2933         * modules/login_tty (Depends-on): Add sys_ioctl.
2934         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2935
2936 2010-09-16  Bruno Haible  <bruno@clisp.org>
2937
2938         login_tty: Stricter unit test.
2939         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2940         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2941         and tcgetsid() after login_tty.
2942         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2943
2944 2010-09-16  Bruno Haible  <bruno@clisp.org>
2945
2946         New module 'tcgetsid'.
2947         * lib/tcgetsid.c: New file.
2948         * m4/tcgetsid.m4: New file.
2949         * modules/tcgetsid: New file.
2950         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2951         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2952         GNULIB_TCGETSID, HAVE_TCGETSID.
2953         * lib/termios.in.h: Include <sys/types.h>.
2954         (tcgetsid): New declaration.
2955         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2956         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2957         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2958         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2959
2960 2010-09-16  Bruno Haible  <bruno@clisp.org>
2961
2962         Tests for module 'termios'.
2963         * modules/termios-c++-tests: New file.
2964         * modules/termios-tests: New file.
2965         * tests/test-termios-c++.cc: New file.
2966         * tests/test-termios.c: New file.
2967
2968         New module 'termios'.
2969         * modules/termios: New file.
2970         * lib/termios.in.h: New file.
2971         * m4/termios_h.m4: New file.
2972         * doc/posix-headers/termios.texi: Mention the new module.
2973
2974 2010-09-16  Eric Blake  <eblake@redhat.com>
2975
2976         fdutimensat: add an atflag parameter
2977         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2978         * lib/utimens.h (fdutimensat): Update prototype.
2979         * tests/test-fdutimensat.c: Adjust test to match.
2980         * NEWS: Document the change.
2981         Suggested by Paul Eggert.
2982
2983 2010-09-16  Bruno Haible  <bruno@clisp.org>
2984
2985         Fix typos in comments.
2986         * lib/striconveh.h: Fix typo in comment.
2987         * lib/login_tty.c (login_tty): Likewise.
2988
2989 2010-09-15  Bruno Haible  <bruno@clisp.org>
2990
2991         stdlib: clarify MirBSD WEXITSTATUS bug
2992         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2993         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2994
2995 2010-09-15  Eric Blake  <eblake@redhat.com>
2996
2997         stdlib: work around MirBSD WEXITSTATUS bug
2998         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2999         * modules/stdlib (Depends-on): Add sys_wait.
3000         * tests/test-sys_wait.c (main): Enhance test.
3001         * tests/test-stdlib.c (main): Likewise.
3002         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
3003
3004         docs: mention MacOS issue with WEXITSTATUS(constant)
3005         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
3006         issue.
3007         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3008
3009         strnlen: add tests
3010         * modules/strnlen-tests: New file.
3011         * tests/test-strnlen.c: Likewise.
3012
3013 2010-09-14  Bruno Haible  <bruno@clisp.org>
3014
3015         unistr/base: Avoid link errors when module 'libunistring' is also used.
3016         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
3017         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
3018         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
3019         Declare also when HAVE_LIBUNISTRING is set.
3020         Reported by Pádraig Brady <P@draigbrady.com>.
3021
3022 2010-09-14  Eric Blake  <eblake@redhat.com>
3023
3024         test-rawmemchr: make more robust
3025         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
3026         (Depends-on, configure.ac): Add needed prerequisites to use it.
3027         * modules/memchr-tests (Files, Depends-on, configure.ac):
3028         Likewise, to avoid implicit reliance on memchr module prereqs.
3029         * tests/test-memchr.c (main): Ensure proper masking.
3030         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
3031         reads.
3032
3033         memchr: detect glibc Alpha bug
3034         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
3035         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
3036         Alpha.
3037         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
3038         * tests/test-memchr.c (main): Enhance test.
3039         Reported by Nelson H. F. Beebe.
3040
3041 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3042
3043         fts, getcwd, glob: audit for dirfd returning -1
3044         * lib/fts.c (opendir): Remove #define; no longer used.
3045         (opendirat): New arg PDIR_FD.  All callers changed.
3046         (fts_build, _opendir2): Use new opendirat to avoid the need for
3047         dirfd, or for checking whether dirfd returns a negative value.
3048         Don't use opendir; always use openat followed by fdopendir.
3049         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
3050         it.
3051         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
3052         returns -1 here.
3053         * modules/fts (Depends-on): Remove dirfd.
3054         * modules/getcwd (Depends-on): Likewise.
3055
3056 2010-09-13  Eric Blake  <eblake@redhat.com>
3057
3058         float: fix broken MirBSD header
3059         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
3060         * doc/posix-headers/float.texi (float.h): Document it.
3061
3062 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         fts: use O_NOFOLLOW to avoid race condition when opening a directory
3065         * lib/fts.c (opendirat): New arg extra_flags.
3066         (__opendir2): Use it to avoid following symlinks when opening
3067         a directory, if symlinks are not supposed to be followed.  See
3068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
3069
3070         fdopendir: preserve argument fd before returning
3071         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
3072         (fdopendir_with_dup, fd_clone_opendir): New static functions.
3073         (fdopendir): Use them, arranging for FD to be open to the same
3074         directory that it was when it started.  (It might be temporarily
3075         closed while fdopendir is running, so this not thread- or
3076         signal-safe.)  Be careful to do the right thing even when file
3077         descriptors are scarce and dup fails with errno == EMFILE.  See
3078         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
3079
3080 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
3081
3082         regex: Pass the system regex if its only problem is 32-bit regoff_t.
3083         * NEWS: Document change.
3084         * m4/regex.m4: Disable test for regoff_t size.
3085
3086 2010-09-13  Jim Meyering  <meyering@redhat.com>
3087
3088         fts: don't operate on an invalid file descriptor after failed dup
3089         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
3090         negative file descriptor.
3091
3092 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3093
3094         savedir: add streamsavedir, deprecate fdsavedir
3095         * NEWS: Mention deprecation of fdsavedir.
3096         * lib/savedir.c (streamsavedir): New extern function, whose name
3097         ends in "savedir" to be consistent with the others.  This differs
3098         from savedirstream in that it doesn't close its argument.  The
3099         next version of GNU tar will use this instead of fdsavedir, to
3100         avoid some race conditions and conserve file descriptors.
3101         (savedirstream): Reimplement as a wrapper around streamsavedir.
3102         (fdsavedir): Add a comment deprecating this function.  As far as
3103         I know, only GNU tar used it, and GNU tar doesn't need it any more.
3104         * lib/savedir.h (streamsavedir): New decl.
3105         (fdsavedir): Add a comment deprecating this.
3106
3107 2010-09-10  Bruno Haible  <bruno@clisp.org>
3108
3109         langinfo: Fix last commit.
3110         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
3111         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
3112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3113
3114 2010-09-10  Bruno Haible  <bruno@clisp.org>
3115
3116         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3117         * lib/progreloc.c (O_EXEC): Define fallback.
3118
3119 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3120
3121         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3122         * NEWS: Document recent changes to fcntl-h.
3123         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3124         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3125         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3126         Similarly for O_SEARCH; this last was already true, but not documented.
3127         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3128         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3129         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3130         Likewise.
3131         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3132         is zero, not whether it is defined.
3133         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3134         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3135         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3136
3137 2010-09-10  Bruno Haible  <bruno@clisp.org>
3138
3139         langinfo, nl_langinfo: Fix for IRIX 5.3.
3140         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3141         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3142         HAVE_LANGINFO_YESEXPR.
3143         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3144         HAVE_LANGINFO_YESEXPR.
3145         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3146         HAVE_LANGINFO_T_FMT_AMPM is 0.
3147         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3148         HAVE_LANGINFO_YESEXPR is 0.
3149         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3150         NOEXPR.
3151         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3152         * doc/posix-functions/nl_langinfo.texi: Likewise.
3153         Reported by Eric Blake.
3154
3155 2010-09-10  Bruno Haible  <bruno@clisp.org>
3156
3157         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3158         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3159         on FreeBSD 8.0 and OpenBSD 4.6.
3160         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3161         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3162         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3163         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3164         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3165         ac_includes_default.
3166         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3167
3168 2010-09-09  Eric Blake  <eblake@redhat.com>
3169
3170         strsignal: work around NetBSD bug
3171         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3172         * lib/string.in.h (includes): Likewise.
3173         * doc/posix-functions/strsignal.texi (strsignal): Document the
3174         bug.
3175         Reported by Nelson H. F. Beebe.
3176
3177         gnulib-tool: work with NetBSD /bin/sh
3178         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3179         (func_get_description, func_get_comment, func_get_status)
3180         (func_get_notice, func_get_applicability, func_get_filelist)
3181         (func_get_dependencies, func_get_autoconf_early_snippet)
3182         (func_get_autoconf_snippet, func_get_automake_snippet)
3183         (func_get_include_directive, func_get_link_directive)
3184         (func_get_license, func_get_maintainer, func_import): Avoid
3185         shell syntax errors from parsing syntax extensions.
3186
3187 2010-09-09  Bruno Haible  <bruno@clisp.org>
3188
3189         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3190         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3191         a reliable way to determine whether the 'alias' command works.
3192
3193 2010-09-08  Jim Meyering  <meyering@redhat.com>
3194
3195         init.sh: penalize a set-x-impaired shell; don't disqualify it
3196         * tests/init.sh: Too many shells corrupt application stderr when
3197         you set -x, so we can't afford to disqualify them, since at least
3198         on Irix-6.5, that would disqualify all bourne shells.
3199         Instead, use a two-pass approach.
3200         On the first pass, try to find a shell that meets the stricter
3201         condition that set -x does not corrupt stderr.
3202         If no shell meets the stricter condition, retest each candidate
3203         shell, but without that extra condition.  Finally, when
3204         VERBOSE=yes is requested and set -x might cause trouble, simply
3205         issue a warning and refrain from enabling debug output.
3206
3207 2010-09-08  Eric Blake  <eblake@redhat.com>
3208
3209         unsetenv: fix OpenBSD bug
3210         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3211         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3212         documentation.
3213         Reported by Jim Meyering.
3214
3215         strtod: work around IRIX 6.5 bug
3216         * lib/strtod.c (strtod): Reparse number on shorter string if
3217         exponent parse was invalid.
3218         * tests/test-strtod.c (main): Add check for "0x1p 2".
3219         Reported by Tom G. Christensen.
3220
3221         getopt: optimize previous patch
3222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3223         empty variable.  Speed up awk script.
3224         Reported by Paolo Bonzini.
3225
3226 2010-09-08  Jim Meyering  <meyering@redhat.com>
3227
3228         test.sh: disqualify shells for which set -x corrupts stderr
3229         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3230         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3231         appear in stderr output.  For example, this command:
3232             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3233         prints "P=1" on those two systems:
3234
3235 2010-09-08  Bruno Haible  <bruno@clisp.org>
3236
3237         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3238         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3239         commands, because some shells ignore redirections when there is an
3240         error in the command lookup.
3241         Reported by Eric Blake.
3242
3243 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3244
3245         * lib/regex.h: Fix a mention of `regex_compile' (should be
3246         `re_compile_pattern').
3247         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3248         (re_set_registers): Correct name of parameter in comment.
3249
3250         * doc/regex.texi: Add documentation for missing syntax flags.
3251         Remove commented-out documentation of defunct syntax option
3252         RE_NO_EMPTY_ALTS.
3253         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3254         Add documentation of re_set_registers.
3255         Document trick to re-use a pattern buffer by setting fastmap manually.
3256         Update documentation of struct re_pattern_buffer per public members.
3257         Uncomment documentation of equivalence class operators and
3258         collating symbol operators, since they are now implemented,
3259         Explain leftmost-longest matching in relation to alternatives.
3260         Tidy documentation of substring matching.
3261         Remove POSIX documentation, which is done better in
3262         glibc, and refer the reader there. Keep BSD API documentation, as
3263         that is not readily available elsewhere.
3264
3265 2010-09-07  Eric Blake  <eblake@redhat.com>
3266
3267         getopt: handle POSIXLY_CORRECT set but not exported
3268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3269         export state of POSIXLY_CORRECT, due to bash set -o posix.
3270         Reported by Dustin J. Mitchell.
3271
3272 2010-09-05  Bruno Haible  <bruno@clisp.org>
3273
3274         gnulib-tool: Highlight the changed options.
3275         * gnulib-tool (func_usage): Display the --import, --add-import,
3276         --remove-import explanations in bold font.
3277
3278 2010-09-06  Karl Berry  <karl@gnu.org>
3279
3280         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3281
3282 2010-09-05  Bruno Haible  <bruno@clisp.org>
3283
3284         uniwidth/width: Update comment.
3285         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3286         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3287
3288 2010-09-05  Bruno Haible  <bruno@clisp.org>
3289
3290         isinf, isnan: Relax license.
3291         * modules/isinf (License): Change from GPL to LGPL, with consent from
3292         Ben Pfaff.
3293         * modules/isnan (License): Likewise.
3294         Requested by Ludovic Courtès.
3295
3296 2010-09-04  Bruno Haible  <bruno@clisp.org>
3297
3298         gnulib-tool: Help migration from --import to --add-import or --update.
3299         * gnulib-tool: Emit a verbose error message when --import is used
3300         without any module name.
3301
3302 2010-09-04  Bruno Haible  <bruno@clisp.org>
3303
3304         Update doc about gnulib-tool.
3305         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3306         'gnulib-tool --update' in more detail.
3307         Reported by Eric Blake.
3308
3309 2010-09-04  Bruno Haible  <bruno@clisp.org>
3310
3311         gnulib-tool: Change --import. New options --add/remove-import.
3312         * gnulib-tool: New options --add-import, --remove-import.
3313         (func_usage): Document them.
3314         (have_associative): Define always.
3315         (func_import): In import mode, don't merge the specified settings with
3316         the cached settings. Implement remove-import mode.
3317         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3318         Explain when to use them versus --import.
3319         (Simple update): Use --add-import instead of --import.
3320         * NEWS: Mention the change.
3321
3322 2010-09-04  Bruno Haible  <bruno@clisp.org>
3323
3324         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3325         separate gnulib.mk.
3326
3327 2010-09-04  Bruno Haible  <bruno@clisp.org>
3328
3329         gnulib-tool: Don't talk about CVS any more.
3330         * gnulib-tool (func_usage, func_import): Write "version control"
3331         instead of CVS.
3332
3333 2010-09-04  Jim Meyering  <meyering@redhat.com>
3334
3335         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3336         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3337         false positives (whose names may be ill-chosen) when searching
3338         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3339         would cause a false-positive.
3340
3341         avoid coreutils "make distcheck" failure
3342         Coreutils tests with an absolute build directory name that contains
3343         a space.  Not quoting this directory name caused a failure.
3344         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3345         * tests/test-vc-list-files-cvs.sh: Likewise.
3346
3347 2010-09-04  Bruno Haible  <bruno@clisp.org>
3348
3349         gnulib-tool: Avoid error when run in a package without Makefile.am.
3350         * gnulib-tool: When collecting the m4dirs in a package that does not
3351         have a Makefile.am, eliminate those directories that contain no
3352         gnulib-cache.m4. Fix expression that counts these directories.
3353
3354 2010-09-04  Bruno Haible  <bruno@clisp.org>
3355
3356         update-copyright test: Improve output when perl is missing or too old.
3357         * tests/test-update-copyright.sh: Move test of Perl version down after
3358         the test whether Perl exists. Provide an explanation relating Perl's
3359         error message to Automake's SKIP: message.
3360
3361 2010-09-04  Bruno Haible  <bruno@clisp.org>
3362
3363         Don't augment PATH in TESTS_ENVIRONMENT.
3364         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3365         set abs_aux_dir instead of augmenting PATH.
3366         * modules/vc-list-files-tests (Makefile.am): Likewise.
3367         * tests/test-update-copyright.sh: Augment PATH here.
3368         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3369         path_prepend_.
3370         * tests/test-vc-list-files-git.sh: Likewise.
3371
3372 2010-09-04  Jim Meyering  <meyering@redhat.com>
3373
3374         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3375         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3376
3377 2010-09-04  Bruno Haible  <bruno@clisp.org>
3378
3379         strdup: Fix compilation error in C++ mode.
3380         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3381         the macro.
3382
3383 2010-09-04  Bruno Haible  <bruno@clisp.org>
3384
3385         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3386         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3387         macro into a function.
3388         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3389
3390 2010-09-04  Bruno Haible  <bruno@clisp.org>
3391
3392         Set PATH_SEPARATOR the same way autoconf does.
3393         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3394         the value of PATH_SEPARATOR the same way autoconf-generated configure
3395         scripts do.
3396         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3397         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3398
3399 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3400
3401         Set PATH_SEPARATOR the same way autoconf does.
3402         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3403         the same way autoconf-generated configure scripts do.
3404         * posix-modules: Likewise.
3405
3406 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3407
3408         hash: fix safe_hasher const typo
3409         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3410         const; otherwise, there is a type error later.
3411
3412 2010-09-02  Jim Meyering  <meyering@redhat.com>
3413
3414         test-update-copyright.sh: require perl 5.8.0
3415         * tests/test-update-copyright.sh: Require 5.8.0,
3416         which Tom G. Christensen has confirmed is adequate,
3417         while 5.6.1 is not.
3418
3419 2010-09-02  Eric Blake  <eblake@redhat.com>
3420
3421         tests: init.sh improvements for re-exec'ing with zsh
3422         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3423         -vx through shell re-exec.
3424         Reported by Tom G. Christensen.
3425
3426         wctype: fix typo in previous commit
3427         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3428         Reported by Ludovic Courtès.
3429
3430 2010-09-02  Jim Meyering  <meyering@redhat.com>
3431
3432         test-update-copyright.sh: skip test if Perl is too old
3433         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3434         Reported by Tom G. Christensen.
3435
3436 2010-09-02  Bruno Haible  <bruno@clisp.org>
3437
3438         wctype: Avoid compilation error on IRIX 6.5.30.
3439         * lib/wctype.in.h (iswblank): Declare with a replacement if
3440         REPLACE_ISWBLANK is set.
3441         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3442         declared. Set REPLACE_ISWBLANK.
3443         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3444         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3445         * doc/posix-headers/wctype.texi: Likewise.
3446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3447
3448 2010-09-01  Bruno Haible  <bruno@clisp.org>
3449
3450         New module 'socketlib'.
3451         * modules/socketlib: New file.
3452         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3453         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3454         * modules/sockets (Depends-on): Add socketlib.
3455         Suggested by Sam Steingold <sds@gnu.org>.
3456
3457 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3458
3459         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3460
3461         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3462         when one needs search access to a directory but not read access.
3463         On systems where it is available, it works in some cases where
3464         O_RDONLY does not, namely on directories that are searchable but
3465         not readable, and which need only to be searchable.  If O_SEARCH
3466         is not available, fall back to the traditional method of using
3467         O_RDONLY.
3468
3469         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3470         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3471         when opening a directory that needs only to be searchable.
3472         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3473         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3474         * lib/openat-proc.c (openat_proc_name): Likewise.
3475         * lib/openat.c (openat_needs_fchdir): Likewise.
3476         * lib/save-cwd.c (save_cwd): Likewise.
3477         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3478
3479 2010-08-28  Bruno Haible  <bruno@clisp.org>
3480
3481         New module 'host-cpu-c-abi'.
3482         * modules/host-cpu-c-abi: New file.
3483         * m4/host-cpu-c-abi.m4: New file, based on part of
3484         clisp/src/m4/general.m4.
3485         Requested by Sam Steingold <sds@gnu.org>.
3486
3487 2010-08-31  Eric Blake  <eblake@redhat.com>
3488         and Jim Meyering  <meyering@redhat.com>
3489
3490         hash: factor, and guard against misbehaving hasher function
3491         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3492         of table->hasher's return value.  Also protect against a hash value
3493         so large that adding it to table->bucket results in a NULL pointer.
3494         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3495         Use it in place of open-coded check-and-abort.
3496
3497 2010-08-30  Bruno Haible  <bruno@clisp.org>
3498
3499         hash: silence spurious clang warning
3500         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3501         Reported by Eric Blake.
3502
3503 2010-08-30  Eric Blake  <eblake@redhat.com>
3504
3505         strstr, memmem, strcasestr: avoid leaked shell message
3506         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3507         FreeBSD.
3508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3510
3511         tests: silence clang warning
3512         * tests/test-malloca.c (do_allocation): Avoid dead store.
3513
3514 2010-08-29  Bruno Haible  <bruno@clisp.org>
3515
3516         gettext: Fix recent mistake.
3517         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3518
3519 2010-08-29  Bruno Haible  <bruno@clisp.org>
3520
3521         selinux-h: Offer a --without-selinux option.
3522         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3523         --without-selinux was specified, skip all tests and define
3524         HAVE_SELINUX_SELINUX_H to 0.
3525         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3526         set LIB_SELINUX to empty.
3527         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3528         gl_LIBSELINUX. If --without-selinux was specified, replace
3529         selinux/context.h.
3530         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3531
3532 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3533             Bruno Haible  <bruno@clisp.org>
3534
3535         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3536         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3537         of HAVE_REALLOC.
3538         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3539         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3540         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3541         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3542
3543 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3544             Bruno Haible  <bruno@clisp.org>
3545
3546         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3547         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3548         HAVE_CALLOC.
3549         * lib/xmalloc.c: Update accordingly.
3550         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3551         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3552         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3553
3554 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3555             Bruno Haible  <bruno@clisp.org>
3556
3557         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3558         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3559         HAVE_MALLOC.
3560         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3561         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3562         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3563
3564 2010-08-29  Bruno Haible  <bruno@clisp.org>
3565
3566         Update modules list.
3567         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3568         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3569         (String handling <string.h>): Add astrxfrm.
3570         (File system functions): Add readlinkat.
3571
3572 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3573
3574         Tests for module 'realloc-gnu'.
3575         * modules/realloc-gnu-tests: New file.
3576         * tests/test-realloc-gnu.c: New file.
3577
3578         Tests for module 'calloc-gnu'.
3579         * modules/calloc-gnu-tests: New file.
3580         * tests/test-calloc-gnu.c: New file.
3581
3582         Tests for module 'malloc-gnu'.
3583         * modules/malloc-gnu-tests: New file.
3584         * tests/test-malloc-gnu.c: New file.
3585
3586 2010-08-28  Bruno Haible  <bruno@clisp.org>
3587
3588         Rename module 'realloc' -> 'realloc-gnu'.
3589         * modules/realloc-gnu: New file, copied from modules/realloc.
3590         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3591         obsolete.
3592         * modules/mgetgroups (Depends-on): Update.
3593         * doc/posix-functions/realloc.texi: Update.
3594         * NEWS: Mention the change.
3595
3596         Rename module 'calloc' -> 'calloc-gnu'.
3597         * modules/calloc-gnu: New file, copied from modules/calloc.
3598         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3599         obsolete.
3600         * doc/posix-functions/calloc.texi: Update.
3601         * NEWS: Mention the change.
3602
3603         Rename module 'malloc' -> 'malloc-gnu'.
3604         * modules/malloc-gnu: New file, copied from modules/malloc.
3605         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3606         obsolete.
3607         * modules/argp (Depends-on): Update.
3608         * modules/regex (Depends-on): Update.
3609         * doc/posix-functions/malloc.texi: Update.
3610         * NEWS: Mention the change.
3611
3612 2010-08-28  Eric Blake  <eblake@redhat.com>
3613
3614         pread, pwrite: add missing dependency
3615         * modules/pread (Depends-on): Add extensions.
3616         * modules/pwrite (Depends-on): Likewise.
3617
3618 2010-08-28  Bruno Haible  <bruno@clisp.org>
3619
3620         unistr/u*-strchr: Fix tests dependencies.
3621         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3622         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3623         Reported by Ian Beckwith <ianb@erislabs.net>.
3624
3625 2010-08-28  Bruno Haible  <bruno@clisp.org>
3626
3627         read-file: Don't occupy too much unused memory.
3628         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3629
3630 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3631             Eric Blake  <eblake@redhat.com>
3632             Bruno Haible  <bruno@clisp.org>
3633
3634         read-file: Avoid memory reallocations with regular files.
3635         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3636         (fread_file): With regular files, use the remaining length as the
3637         initial buffer size.  Check against overflow.
3638         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3639         sys_stat.
3640
3641 2010-08-28  Bruno Haible  <bruno@clisp.org>
3642
3643         ftello: Relax license.
3644         * modules/ftello (License): Relax to LGPLv2+.
3645         Reported by Eric Blake.
3646
3647 2010-08-28  Bruno Haible  <bruno@clisp.org>
3648
3649         Avoid relocwrapper link errors due to gnulib replacement functions.
3650         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3651         function.
3652         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3653
3654 2010-08-28  Bruno Haible  <bruno@clisp.org>
3655
3656         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3657         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3658         defined.
3659         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3660         Suggested by Eric Blake.
3661
3662 2010-08-28  Bruno Haible  <bruno@clisp.org>
3663
3664         sys_socket, netdb: Ensure socklen_t gets defined.
3665         * modules/sys_socket (Depends-on): Add socklen.
3666         * modules/netdb (Depends-on): Likewise.
3667         * modules/getaddrinfo (Depends-on): Remove socklen.
3668         * modules/getsockopt (Depends-on): Likewise.
3669         * modules/setsockopt (Depends-on): Likewise.
3670         * tests/test-sys_socket.c: Check that socklen_t is defined.
3671         * tests/test-netdb.c: Likewise.
3672         * m4/socklen.m4: Update comments.
3673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3674
3675 2010-08-27  Eric Blake  <eblake@redhat.com>
3676
3677         login_tty: add missing dependency
3678         * modules/login_tty (Depends-on): Add pty.
3679
3680 2010-08-26  Eric Blake  <eblake@redhat.com>
3681
3682         lib-symbol-versions: fix m4 quoting
3683         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3684         format for AC_LINK_IFELSE.
3685
3686         glob: fix compile test
3687         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3688
3689         btowc: fix missing file
3690         * modules/btowc (Files): Also ship locale-fr.m4.
3691
3692         lseek: fix link test
3693         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3694         AC_LINK_IFELSE.
3695
3696         include_next: silence autoconf 2.68 warning
3697         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3698         AC_COMPILE_IFELSE as special.
3699         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3700         autoconf < 2.68.
3701
3702         acl: fix compilation test
3703         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3704         AC_COMPILE_IFELSE.
3705
3706 2010-08-26  Bruno Haible  <bruno@clisp.org>
3707
3708         Modernize AC_TRY_RUN invocations.
3709         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3710         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3711         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3712         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3713         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3714         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3715         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3717         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3718         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3719         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3720         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3721         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3722         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3723         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3724         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3725         gl_MBRLEN_NUL_RETVAL): Likewise.
3726         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3727         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3728         Likewise.
3729         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3730         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3731         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3732         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3733         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3734         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3735         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3736         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3737         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3738         Likewise.
3739         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3740         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3741         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3742         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3743         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3744         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3745         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3746         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3747         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3749
3750 2010-08-26  Bruno Haible  <bruno@clisp.org>
3751
3752         Modernize AC_TRY_LINK invocations.
3753         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3754         AC_TRY_LINK.
3755         * m4/argp.m4 (gl_ARGP): Likewise.
3756         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3757         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3758         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3759         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3760         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3761         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3762         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3763         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3765         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3766         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3767         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3768         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3769         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3770         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3771         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3772         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3773         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3774         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3775         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3776         Likewise.
3777         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3778         Likewise.
3779         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3780         Likewise.
3781         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3783         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3784         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3785         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3786         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3787         * m4/servent.m4 (gl_SERVENT): Likewise.
3788         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3789         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3790         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3791         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3792         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3793         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3794         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3795         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3796         * modules/tsearch-tests (configure.ac): Likewise.
3797
3798 2010-08-26  Bruno Haible  <bruno@clisp.org>
3799
3800         Modernize AC_TRY_COMPILE invocations.
3801         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3802         AC_TRY_COMPILE.
3803         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3804         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3805         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3806         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3807         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3808         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3809         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3810         * m4/lock.m4 (gl_LOCK): Likewise.
3811         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3812         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3813         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3814         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3815         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3816         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3817         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3819         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3820         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3821         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3822         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3823         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3824         extraneous semicolon.
3825
3826 2010-08-26  Jim Meyering  <meyering@redhat.com>
3827
3828         stat-time: relax license LGPL
3829         * modules/stat-time (License): Change from GPL to LGPL,
3830         with consent from all contributors, for use in libguile.
3831         Requested by Ludovic Courtès.
3832
3833 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3834
3835         poll: return immediately on POLLHUP.
3836         * lib/poll.c (poll): Always set timeout before wait_timeout is
3837         computed.
3838
3839 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3840
3841         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3842         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3843         rmdir ("dir/.//"), unlinkat.
3844
3845 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3846
3847         stdbool: avoid spurious failure with modern xlc
3848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3849
3850 2010-08-24  Bruno Haible  <bruno@clisp.org>
3851
3852         getloadavg: simplify code
3853         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3854         gl_have_func. Update comments.
3855
3856 2010-08-24  Eric Blake  <eblake@redhat.com>
3857
3858         getloadavg: don't define SVR4 on cygwin
3859         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3860         only define SVR4 when -lkvm is required.
3861         Reported by Yaakov Selkowitz.
3862
3863 2010-08-24  Bruno Haible  <bruno@clisp.org>
3864
3865         priv-set: fix comment
3866         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3867
3868 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3869
3870         priv-set: fix comments
3871         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3872         to match code, as suggested by David Bartley in:
3873         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3874
3875 2010-08-23  Eric Blake  <eblake@redhat.com>
3876
3877         stdbool: avoid rejecting clang
3878         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3879         * tests/test-stdbool.c: Enable more tests if using the system
3880         <stdbool.h> instead of the gnulib replacement.
3881         (main): Move xlc bug test to a runtime test for all compilers.
3882         Reported by Anders Kaseorg.
3883
3884         argz: fix shell quoting issue
3885         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3886         Reported by Charles Wilson.
3887
3888 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3889             Erik Faye-Lund <kusmabite@gmail.com>
3890
3891         poll, select: handle ERROR_BROKEN_PIPE.
3892         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3893         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3894         * lib/select.c (win32_compute_revents): Do not mark a pipe
3895         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3896
3897 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3898
3899         fts: allow compilation with C++
3900         * lib/fts_.h: Specify extern "C" linkage with C++.
3901
3902 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3903
3904         Fix gnulib-tool sed script de-commentation for AIX sed.
3905         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3906         sed.
3907
3908 2010-08-17  Eric Blake  <eblake@redhat.com>
3909
3910         test-stddef: test for (some) offsetof bugs
3911         * tests/test-stddef.c: Enhance test to ensure correct type of
3912         offsetof.
3913         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3914         that we are not fixing at this time.
3915
3916 2010-08-15  Bruno Haible  <bruno@clisp.org>
3917
3918         stpncpy: Allow stpncpy to be defined as a macro.
3919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3920         if it's already correctly declared.
3921         * lib/string.in.h (stpncpy): Undefine before redefining.
3922         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3923
3924 2010-08-14  Bruno Haible  <bruno@clisp.org>
3925
3926         Rename module 'memxfrm' to 'amemxfrm'.
3927         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3928         (amemxfrm): Renamed from memxfrm.
3929         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3930         (amemxfrm): Renamed from memxfrm.
3931         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3932         * NEWS: Mention the change.
3933         * MODULES.html.sh (String handling <string.h>): Update.
3934         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3935         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3936         * lib/unicase/u16-casexfrm.c: Likewise.
3937         * lib/unicase/u32-casexfrm.c: Likewise.
3938         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3939         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3940         * lib/uninorm/u16-normxfrm.c: Likewise.
3941         * lib/uninorm/u32-normxfrm.c: Likewise.
3942         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3943         memxfrm.
3944         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3945         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3946         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3947         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3948         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3949         Suggested by Paul Eggert.
3950
3951 2010-08-14  Bruno Haible  <bruno@clisp.org>
3952
3953         Tests for module 'astrxfrm'.
3954         * modules/astrxfrm-tests: New file.
3955         * tests/test-astrxfrm.c: New file.
3956
3957         New module 'astrxfrm'.
3958         * lib/astrxfrm.h: New file.
3959         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3960         * modules/astrxfrm: New file.
3961
3962 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3963
3964         regex: Tweak doc.
3965         * doc/regex.texi (Overview): Don't mention regex.c.
3966         (GNU Regular Expression Compiling): Likewise.
3967         (Match-end-of-line Operator): Mention 'not_eol'.
3968
3969 2010-08-14  Brian Gough  <bjg@gnu.org>
3970             Bruno Haible  <bruno@clisp.org>
3971
3972         git-merge-changelog: add doc relating to use with bzr and hg.
3973         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3974
3975 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3976
3977         pthread: fix pthread.h creation for srcdir != builddir
3978         * modules/pthread (Makefile.am): Fix the rule to work also in a
3979         non-srcdir build.
3980
3981 2010-08-13  Karl Berry  <karl@gnu.org>
3982
3983         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3984         * doc/posix-*/*: force line break before @url of POSIX
3985         specifications.
3986         Suggested by Werner Lemberg.
3987
3988 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3989
3990         strtod: fix const diagnostic
3991         * lib/strtod.c (strtod): Don't assign const char * to char *,
3992         as this elicits a warning from GCC when warnings are enabled.
3993
3994 2010-08-10  Pádraig Brady <P@draigbrady.com>
3995         and Eric Blake  <eblake@redhat.com>
3996
3997         copy-acl: ignore ENOTSUP on HP-UX
3998         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3999         so that it is available for HP-UX.
4000         * lib/copy-acl.c (qcopy_acl): Use it.
4001         Reported by Patrick M. Callahan.
4002
4003 2010-08-10  Eric Blake  <eblake@redhat.com>
4004
4005         open, chown: relax license
4006         * modules/open (License): Change to LGPLv2+, with consent by all
4007         authors, for use in augeas.
4008         * modules/chown (License): Likewise.
4009         * modules/lchown (Likewise): Likewise.
4010         Requested by Adam Stokes.
4011
4012 2010-08-09  Karl Berry  <karl@gnu.org>
4013
4014         * build-aux/ar-lib: new file, import from Automake.
4015         * config/srclist.txt: autocheck for updates.
4016
4017 2010-08-09  Eric Blake  <eblake@redhat.com>
4018
4019         readlinkat: adjust client modules
4020         * modules/areadlinkat (Depends-on): Use readlinkat, not
4021         symlinkat.
4022         * modules/areadlinkat-with-size (Depends-on): Likewise.
4023
4024         mknod: be more vocal about danger of running tests as root
4025         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
4026         root, since that is just asking for problems.
4027         Suggested by Bruno Haible, based on a report by Rainer Tammer.
4028
4029         readlinkat: split into its own module
4030         * modules/symlinkat: Split readlinkat...
4031         * modules/readlinkat: ...into separate module.
4032         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
4033         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
4034         * lib/symlinkat.c (readlinkat): Move...
4035         * lib/readlinkat.c: ...into new file.
4036         * modules/symlinkat-tests: Split readlinkat test...
4037         * modules/readlinkat-tests: ...into separate module.
4038         * tests/test-symlinkat.c: Split...
4039         * tests/test-readlinkat.c: ...into new file.
4040         * NEWS: Document the split.
4041         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4042         * lib/unistd.in.h (readlinkat): Likewise.
4043         Suggested by Bruno Haible.
4044
4045 2010-08-08  Bruno Haible  <bruno@clisp.org>
4046
4047         memxfrm: Speed up.
4048         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
4049         that usually only one call to strxfrm is necessary for each string
4050         part.
4051         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4052
4053 2010-08-07  Karl Berry  <karl@gnu.org>
4054
4055         * doc/posix-headers/limits.texi,
4056         * doc/posix-functions/malloc.texi,
4057         * doc/posix-functions/strsignal.texi: missing @item.
4058         * doc/ld-version-script.texi: spurious leading i.
4059         * doc/regex.texi (Interval Operators): no commas inside @var.
4060
4061 2010-08-01  Bruno Haible  <bruno@clisp.org>
4062
4063         Integrate the regex documentation.
4064         * doc/gnulib.texi: Define 'cn' index.
4065         (Regular expressions): New a chapter that includes regex.texi and
4066         regexprops-generic.texi.
4067         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
4068         syntax.
4069
4070         Whitespace cleanup.
4071         * doc/regex.texi: Remove trailing spaces.
4072
4073         Add regex documentation.
4074         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
4075         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
4076         Written by Kathy A. Hargreaves and Karl Berry.
4077
4078 2010-08-01  Bruno Haible  <bruno@clisp.org>
4079
4080         link: Update documentation.
4081         * doc/posix-functions/link.texi: Update regarding Solaris.
4082
4083 2010-07-31  Bruno Haible  <bruno@clisp.org>
4084
4085         Update modules list.
4086         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
4087         (String handling <string.h>): Add memcmp2, memxfrm.
4088         (Container data structures): Add xlist, xsublist, xoset.
4089         (Core language properties): Add alignof, unused-parameter.
4090         (Process control, Numeric conversion functions <stdlib.h>): Renamed
4091         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
4092         (Unibyte characters <ctype.h>): New section.
4093         (String handling <string.h>): New section.
4094         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
4095         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
4096         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
4097         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
4098         tan, tanh, tanl, y0, y1, yn.
4099         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
4100         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
4101         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
4102         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
4103         unlockpt, vdprintf, vdprintf-posix.
4104         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
4105         (File system functions): Add concat-filename, sys_file, sys_ioctl,
4106         xconcat-filename.
4107         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
4108         getdtablesize, pipe2, pipe2-safer.
4109         (Security): New section.
4110         (Networking functions): Add accept4.
4111         (Signal handling): Add sigpipe.
4112         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
4113         mbmemcasecoll.
4114         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
4115         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4116         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4117         pipe-filter-ii.
4118         (Misc): Add argp-version-etc, login_tty, parse-duration.
4119
4120 2010-07-31  Bruno Haible  <bruno@clisp.org>
4121
4122         Improve doc in MODULES.html.
4123         * modules/linkat (Description): Add the word "function".
4124         * modules/mkfifo (Description): Likewise.
4125         * modules/mknod (Description): Likewise.
4126         * modules/remove (Description): Likewise.
4127         * modules/renameat (Description): Likewise.
4128         * modules/stat (Description): Likewise.
4129         * modules/symlink (Description): Likewise.
4130         * modules/unlink (Description): Likewise.
4131
4132 2010-07-31  Bruno Haible  <bruno@clisp.org>
4133
4134         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4135         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4136         option --enable/disable-c++ instead of --enable/disable-cxx.
4137         * NEWS: Mention the change.
4138
4139 2010-07-31  Bruno Haible  <bruno@clisp.org>
4140
4141         readlink, areadlink: Relax test a bit.
4142         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4143         alternative to ENOTDIR.
4144         * tests/test-areadlink.h (test_areadlink): Likewise.
4145         Reported by Rainer Tammer.
4146
4147 2010-07-31  Bruno Haible  <bruno@clisp.org>
4148
4149         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4150         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4151         character, perform the search using U_STRCHR.
4152         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4153         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4154         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4155         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4156         Suggested by Paolo Bonzini.
4157
4158 2010-07-31  Bruno Haible  <bruno@clisp.org>
4159
4160         unistr/u*-strstr: Fix dependencies.
4161         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4162         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4163         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4164
4165 2010-07-31  Bruno Haible  <bruno@clisp.org>
4166
4167         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4168         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4169         the beginning of the loop.
4170         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4171         cases in 'switch' statement.
4172
4173         unistr/u8-strchr: Fix several bugs.
4174         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4175         the string. When not found, return NULL, not a pointer near the end.
4176
4177         More tests for unistr/u8-strchr.
4178         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4179         that the function does not read past the first occurrence of the byte
4180         being searched.
4181         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4182         * tests/unistr/test-u16-strchr.c (main): New function.
4183         * tests/unistr/test-u32-strchr.c (main): New function.
4184
4185 2010-07-31  Bruno Haible  <bruno@clisp.org>
4186
4187         posix-modules: Ignore backup files of documentation files.
4188         * posix-modules: grep only through files named *.texi.
4189
4190 2010-07-31  Bruno Haible  <bruno@clisp.org>
4191
4192         symlinkat: Fix documentation.
4193         * doc/posix-functions/readlinkat.texi: Fix module name.
4194
4195 2010-07-31  Bruno Haible  <bruno@clisp.org>
4196
4197         fchownat: Replace also when chown has the trailing slash bug.
4198         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4199         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4200         introduced on 2010-04-10.
4201         Reported by Rainer Tammer.
4202
4203 2010-07-31  Bruno Haible  <bruno@clisp.org>
4204
4205         linkat: Work around AIX 7.1 bug.
4206         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4207         whether linkat handles trailing slash correctly. If not, replace linkat
4208         and define LINKAT_TRAILING_SLASH_BUG.
4209         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4210         check whether (fd1,file1) points to a directory if file1 or file2 ends
4211         in a slash. Code taken from lib/link.c.
4212         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4213         Reported by Rainer Tammer.
4214
4215 2010-07-31  Bruno Haible  <bruno@clisp.org>
4216
4217         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4218         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4219         This disables an xlc optimization that was causing wrong test results.
4220         Reported by Rainer Tammer.
4221
4222 2010-07-31  Bruno Haible  <bruno@clisp.org>
4223
4224         iconv: Work around AIX 6.1..7.1 bug.
4225         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4226         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4227         cross-compiling, guess no on all versions of AIX.
4228         Reported by Rainer Tammer.
4229
4230 2010-07-31  Bruno Haible  <bruno@clisp.org>
4231
4232         readlink: Relax test a bit.
4233         * tests/test-readlink.h (test_readlink): Allow different errno value
4234         when readlink is called with a file name that ends in / and refers to
4235         a file.
4236         Suggested by Eric Blake.
4237         Reported by Rainer Tammer.
4238
4239 2010-07-31  Bruno Haible  <bruno@clisp.org>
4240
4241         copysign: Does not require -lm on glibc systems.
4242         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4243         gl_COMMON_DOUBLE_MATHFUNC.
4244         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4245
4246 2010-07-31  Bruno Haible  <bruno@clisp.org>
4247
4248         duplocale: Work around AIX 7.1 bug.
4249         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4250         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4251         * lib/duplocale.c (rpl_duplocale): Update comment.
4252         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4253         Reported by Rainer Tammer.
4254
4255 2010-07-30  Bruno Haible  <bruno@clisp.org>
4256
4257         dirfd: Avoid link error on AIX 7.1.
4258         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4259         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4260         exist, set REPLACE_DIRFD.
4261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4262         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4263         * doc/posix-functions/dirfd.texi: Update.
4264         Reported by Rainer Tammer.
4265
4266 2010-07-30  Eric Blake  <eblake@redhat.com>
4267
4268         strtod: next round of AIX fixes
4269         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4270         exponent.
4271         * tests/test-strtod.c (main): Enhance tests.
4272         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4273         Reported by Rainer Tammer.
4274
4275         futimens: fix configure check
4276         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4277         Reported by Bruno Haible.
4278
4279 2010-07-30  Bruno Haible  <bruno@clisp.org>
4280
4281         getline: Update regarding AIX.
4282         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4283         Reported by Rainer Tammer.
4284
4285 2010-07-30  Bruno Haible  <bruno@clisp.org>
4286
4287         wcwidth: Drop replacement on AIX 7.
4288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4289         AIX 7.
4290         Reported by Rainer Tammer.
4291
4292 2010-07-30  Bruno Haible  <bruno@clisp.org>
4293
4294         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4295         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4296         a 'char *'.
4297         Reported by Rainer Tammer.
4298
4299 2010-07-30  Bruno Haible  <bruno@clisp.org>
4300
4301         unlink: Update regarding AIX.
4302         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4303         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4304         Reported by Rainer Tammer.
4305
4306 2010-07-30  Bruno Haible  <bruno@clisp.org>
4307
4308         symlink: Update regarding AIX.
4309         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4310         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4311         Reported by Rainer Tammer.
4312
4313 2010-07-30  Bruno Haible  <bruno@clisp.org>
4314
4315         strndup: Update regarding AIX.
4316         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4317         AIX 7.
4318         Reported by Rainer Tammer.
4319
4320 2010-07-30  Bruno Haible  <bruno@clisp.org>
4321
4322         stat: Update regarding AIX.
4323         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4324         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4325         Reported by Rainer Tammer.
4326
4327 2010-07-30  Bruno Haible  <bruno@clisp.org>
4328
4329         truncl: Fix autoconf test.
4330         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4331         whether truncl works.
4332         Reported by Rainer Tammer.
4333
4334 2010-07-30  Bruno Haible  <bruno@clisp.org>
4335
4336         round: Update regarding AIX.
4337         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4338         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4339         Reported by Rainer Tammer.
4340
4341 2010-07-30  Bruno Haible  <bruno@clisp.org>
4342
4343         rename: Update regarding AIX.
4344         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4345         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4346         Reported by Rainer Tammer.
4347
4348 2010-07-30  Bruno Haible  <bruno@clisp.org>
4349
4350         printf.m4: Update regarding AIX.
4351         * m4/printf.m4: Update comments regarding AIX.
4352         Reported by Rainer Tammer.
4353
4354 2010-07-30  Bruno Haible  <bruno@clisp.org>
4355
4356         iconv: Update regarding AIX.
4357         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4358         AIX 7.
4359         Reported by Rainer Tammer.
4360
4361 2010-07-30  Bruno Haible  <bruno@clisp.org>
4362
4363         getopt: Update regarding AIX.
4364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4365         no on AIX.
4366         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4367         Reported by Rainer Tammer.
4368
4369 2010-07-30  Bruno Haible  <bruno@clisp.org>
4370
4371         ldexpl; Update regarding AIX.
4372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4373         on AIX 7.
4374         Reported by Rainer Tammer.
4375
4376 2010-07-30  Bruno Haible  <bruno@clisp.org>
4377
4378         frexpl: Update regarding AIX.
4379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4380         on AIX 7.
4381         Reported by Rainer Tammer.
4382
4383 2010-07-30  Bruno Haible  <bruno@clisp.org>
4384
4385         open, fopen: Update regarding AIX.
4386         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4387         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4388         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4389         * doc/posix-functions/fopen.texi: Likewise.
4390         Reported by Rainer Tammer.
4391
4392 2010-07-30  Bruno Haible  <bruno@clisp.org>
4393
4394         chown: Update doc regarding AIX.
4395         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4396         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4397         Reported by Rainer Tammer.
4398
4399 2010-07-30  Eric Blake  <eblake@redhat.com>
4400
4401         strtod: fix bug in replacement function on AIX
4402         * lib/strtod.c (strtod): Special case broken "0x" parse in
4403         underlying strtod.
4404         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4405         * doc/posix-functions/strtod.texi (strtod): Likewise.
4406         Reported by Rainer Tammer.
4407
4408 2010-07-30  Bruno Haible  <bruno@clisp.org>
4409
4410         mbrlen: Fix cross-compilation guess for AIX.
4411         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4412         guess. Leftover from 2008-12-22.
4413
4414 2010-07-30  Bruno Haible  <bruno@clisp.org>
4415
4416         mbrtowc: Fix cross-compilation guess for AIX.
4417         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4418         guess. Leftover from 2008-12-21.
4419
4420 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4421
4422         init.sh: work around trap limitation of some shells
4423         * tests/init.sh (setup_): Move exit trap outside of shell function.
4424
4425 2010-07-29  Eric Blake  <eblake@redhat.com>
4426
4427         strtod: aid debugging
4428         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4429         understanding why strtod is rejected.
4430
4431 2010-07-28  Bruno Haible  <bruno@clisp.org>
4432
4433         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4434         * lib/unistr/u8-chr.c: Include <string.h>.
4435         * tests/unistr/test-u8-chr.c: Likewise.
4436         * tests/unistr/test-u16-chr.c: Likewise.
4437         * tests/unistr/test-u32-chr.c: Likewise.
4438         * tests/unistr/test-u8-strchr.c: Likewise.
4439         * tests/unistr/test-u16-strchr.c: Likewise.
4440         * tests/unistr/test-u32-strchr.c: Likewise.
4441         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4442         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4443         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4444         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4445
4446 2010-07-28  Bruno Haible  <bruno@clisp.org>
4447
4448         Use spaces for indentation, not tabs.
4449         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4450
4451 2010-07-27  Bruno Haible  <bruno@clisp.org>
4452
4453         mbspcasecmp: Fix function specification.
4454         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4455         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4456         Reported by Eric Blake <eblake@redhat.com>.
4457
4458 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4459
4460         timespec: use cast and not conditional, as truncation isn't possible
4461         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4462         instead of a conditional.  Comment about the situation in more detail.
4463         This undoes most of the 2009-10-29 patch.
4464
4465 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4466
4467         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4468         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4469         * lib/unistr/u8-strchr.c: Likewise.
4470         * modules/unistr/u8-chr: Depend on memchr.
4471
4472         unistr/u*-strchr: add tests
4473         * modules/unistr/u8-strchr-tests: New file.
4474         * modules/unistr/u16-strchr-tests: New file.
4475         * modules/unistr/u32-strchr-tests: New file.
4476         * tests/unistr/test-strchr.h: New file.
4477         * tests/unistr/test-u8-strchr.c: New file.
4478         * tests/unistr/test-u16-strchr.c: New file.
4479         * tests/unistr/test-u32-strchr.c: New file.
4480
4481         unistr/u*-chr: test multibyte sequences more
4482         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4483         test vector.
4484         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4485         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4486         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4487
4488         unistr/u*-chr: test multibyte sequences
4489         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4490
4491         unistr/u*-chr: prepare for multibyte tests
4492         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4493         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4494         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4495         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4496         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4497         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4498
4499 2010-07-18  Bruno Haible  <bruno@clisp.org>
4500
4501         unistr/u8-strchr: Optimize non-ASCII argument case.
4502         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4503         because the first byte often matches anyway.
4504         Reported by Pádraig Brady <P@draigbrady.com>.
4505
4506 2010-07-15  Karl Berry  <karl@gnu.org>
4507
4508         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4509
4510 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4511
4512         getcwd: on Solaris, work better if ancestors are inaccessible
4513         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4514         buffer and size, try again with a large buffer.  This works better
4515         on Solaris, since its getcwd succeeds even if the path to the root
4516         is inaccessible, and this is helpful in common cases such as .zfs
4517         hidden directories.  Problem reported by J Chapman Flack in
4518         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4519         Use system getcwd if it's declared, not merely if it's partly
4520         working; use the partly-working test only to avoid needless effort
4521         if the system getcwd fails.
4522         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4523         comment that was already obsolete and is now even more obsolete.
4524         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4525         now might call strdup.
4526
4527 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4528
4529         pthread: Add enough so that coreutils/src/sort.c compiles.
4530         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4531         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4532         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4533         Include <sys/types.h>, in case it defines pthread_t.
4534         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4535         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4536         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4537         (pthread_rwlockattr_t, pthread_spinlock_t):
4538         New typedefs, if HAVE_PTHREAD_T is not defined.
4539         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4540         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4541         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4542         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4543         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4544         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4545         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4546         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4547         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4548         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4549         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4550         New macros.
4551         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4552         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4553         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4554         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4555         (pthread_spin_unlock): New dummy functions.
4556         (pthread_create): Return EAGAIN; don't set errno.
4557         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4558         require AC_C_INLINE.
4559         * modules/pthread (Depends-on): Add sched, time.
4560         (pthread.h): Use AM_V_GEN.
4561
4562 2010-07-13  Bruno Haible  <bruno@clisp.org>
4563
4564         striconveh: Don't malloc memory if the result buffer is sufficient.
4565         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4566         buffer if its size is sufficient.
4567         Reported by Ludovic Courtès <ludo@gnu.org>.
4568
4569 2010-07-13  Bruno Haible  <bruno@clisp.org>
4570
4571         strtod: Add safety check.
4572         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4573
4574 2010-07-12  Bruno Haible  <bruno@clisp.org>
4575
4576         Unify tests that set gl_cv_func_ldexpl_no_libm.
4577         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4578         gl_FUNC_LDEXPL.
4579         (gl_FUNC_LDEXPL): Invoke it.
4580         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4581
4582 2010-07-12  Bruno Haible  <bruno@clisp.org>
4583
4584         Unify tests that set gl_cv_func_ldexp_no_libm.
4585         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4586         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4587         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4588         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4589         * modules/strtod (Files): Add m4/ldexp.m4.
4590
4591 2010-07-12  Bruno Haible  <bruno@clisp.org>
4592
4593         Unify tests that set gl_cv_func_frexpl_no_libm.
4594         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4595         gl_FUNC_FREXPL_NO_LIBM.
4596         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4597         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4598
4599 2010-07-12  Bruno Haible  <bruno@clisp.org>
4600
4601         Unify tests that set gl_cv_func_frexp_no_libm.
4602         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4603         gl_FUNC_FREXP_NO_LIBM.
4604         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4605         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4606
4607 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4608
4609         memcoll: clarify sizes versus lengths, document better, and tweak perf
4610         * lib/memcoll.c (strcoll_loop, memcoll0):
4611         Improve quality of descriptive comments.  Name variables
4612         consistently as to whether they are lengths (which do not include
4613         terminating null) versus sizes (which do).
4614         * lib/xmemcoll.c (xmemcoll0): Likewise.
4615         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4616         returned when s1size == 0; this is easier to compile and saves
4617         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4618
4619 2010-07-12  Bruno Haible  <bruno@clisp.org>
4620
4621         Tests for module '_Exit'.
4622         * modules/_Exit-tests: New file.
4623         * tests/test-_Exit.sh: New file.
4624         * tests/test-_Exit.c: New file.
4625
4626         New module '_Exit'.
4627         * lib/stdlib.in.h (__attribute__): New macro.
4628         (_Exit): New declaration.
4629         * lib/_Exit.c: New file.
4630         * m4/_Exit.m4: New file.
4631         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4632         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4633         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4634         * modules/_Exit: New file.
4635         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4636         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4637
4638 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4639
4640         strtod: make it more-accurate typically, and don't require libm
4641         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4642         Include limits.h.  Don't include string.h.
4643         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4644         (locale_isspace): New function, so that no casts are needed to
4645         check whether *s is a space.
4646         (ldexp): Provide an unused dummy if not available.
4647         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4648         (strtod): Use them.  This implementation prefers to use the
4649         underlying strtod if available, falling back on our own code
4650         only to fix known bugs.  This is more likely to produce an
4651         accurate result.  Also, it avoids the use of libm functions.
4652         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4653         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4654         was absent, but it caused a test failure with coreutils.
4655         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4656         with libm.
4657         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4658         * modules/strtod-tests (Makefile.am): Likewise.
4659
4660 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4661             Bruno Haible  <bruno@clisp.org>
4662
4663         unistr/u8-strchr: Optimize ASCII argument case.
4664         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4665
4666 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4667
4668         (x)memcoll: minor tweaks
4669         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4670         is after the type that it qualifies.
4671         (memcoll0): Likewise.
4672         * lib/memcoll.h (memcoll0): Likewise.
4673         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4674         * lib/xmemcoll.h (xmemcoll0): Likewise.
4675         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4676         differs from memcoll in that the NUL byte is part of the argument.
4677         Omit the abort-checks, as performance is a real issue here.  Plus,
4678         the checks were wrong anyway (an off-by-one error).  Omit local
4679         variable 'diff', as it's a bit clearer that way.
4680         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4681         no longer needed.
4682
4683 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4684
4685         (x)memcoll: speedup when input is known to be NUL delimited
4686         * lib/memcoll.c: Include stdlib.
4687         (memcoll0) New function.
4688         (strcoll_loop) New function, refactored for use in both memcoll
4689         and memcoll0.
4690         * lib/memcoll.h: Add prototype for memcoll0.
4691         * lib/xmemcoll.c: (xmemcoll0) New function.
4692         (collate_error) New function, refactored for use in both xmemcoll
4693         and xmemcoll0.
4694         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4695         * m4/memcoll.m4: add inline invocation.
4696
4697 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4698
4699         * build-aux/bootstrap: Remove any local translations
4700         from the translation project synchronization directory,
4701         so that local only translations are not distributed.
4702
4703 2010-07-04  Bruno Haible  <bruno@clisp.org>
4704
4705         fsusage: Clarify which code applies to which platforms.
4706         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4707         platform.
4708         * lib/fsusage.c (get_fs_usage): Likewise.
4709
4710 2010-07-04  Bruno Haible  <bruno@clisp.org>
4711
4712         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4713         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4714         Reported by Martin Lambers <marlam@marlam.de>.
4715
4716 2010-07-04  Jim Meyering  <meyering@redhat.com>
4717
4718         hash: once again explicitly disallow insertion of NULL
4719         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4720         inserting a NULL pointer cannot work with these functions.
4721         Add a comment with details.
4722         This reverts part of the 2010-07-01 commit, 5bef1a35
4723         "hash: extend module to deal with non-pointer keys".
4724
4725 2010-07-01  Bruno Haible  <bruno@clisp.org>
4726
4727         stdbool: Update doc.
4728         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4729         Info from Christian Weisgerber <naddy@mips.inka.de>.
4730
4731 2010-07-01  Jim Meyering  <meyering@redhat.com>
4732
4733         hash: extend module to deal with non-pointer keys
4734         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4735         but that allows insertion of non-pointer entries.
4736         Do not disallow an ENTRY value of NULL.
4737         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4738         * lib/hash.h (hash_insert0): Declare.
4739
4740 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4741
4742         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4743         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4744         not present (i.e. with autoconf 2.59 and when using gettextize, not
4745         gnulib), require AC_GNU_SOURCE instead.
4746
4747 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4748
4749         idpriv-drop: Fix tests.
4750         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4751         not to the test-idpriv-droptemp program.
4752
4753 2010-06-29  Bruno Haible  <bruno@clisp.org>
4754
4755         string: Fix syntax error with g++ 2.96.
4756         * lib/string.in.h (__pure__): Remove definition.
4757         (_GL_ATTRIBUTE_PURE): New macro.
4758         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4759         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4760         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4761
4762 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4763
4764         unitypes: Fix bug introduced on 2010-05-18.
4765         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4766
4767 2010-06-22  Eric Blake  <eblake@redhat.com>
4768
4769         memmem: slight optimization
4770         * lib/str-two-way.h (critical_factorization): Update comments.
4771         Reduce work during factorization phase.
4772         Reported by Carlos Bueno <carlos@bueno.org>.
4773
4774 2010-06-21  Bruno Haible  <bruno@clisp.org>
4775
4776         Fix HAVE_CALLOC_POSIX misnomer.
4777         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4778         !HAVE_CALLOC_POSIX.
4779         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4780         HAVE_CALLOC_POSIX.
4781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4782         instead of HAVE_CALLOC_POSIX.
4783         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4784         HAVE_CALLOC_POSIX.
4785
4786         Use modern idiom for calloc() replacement.
4787         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4788         AC_FUNC_CALLOC.
4789         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4790         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4791         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4792         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4793         (gl_REPLACE_CALLOC): New macro.
4794
4795 2010-06-21  Bruno Haible  <bruno@clisp.org>
4796
4797         Fix HAVE_REALLOC_POSIX misnomer.
4798         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4799         !HAVE_REALLOC_POSIX.
4800         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4801         HAVE_REALLOC_POSIX.
4802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4803         instead of HAVE_REALLOC_POSIX.
4804         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4805         HAVE_REALLOC_POSIX.
4806
4807         Use modern idiom for realloc() replacement.
4808         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4809         AC_FUNC_REALLOC.
4810         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4811         Autoconf's AC_FUNC_REALLOC.
4812         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4813         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4814         (gl_REPLACE_REALLOC): New macro.
4815         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4816
4817 2010-06-21  Bruno Haible  <bruno@clisp.org>
4818
4819         Fix HAVE_MALLOC_POSIX misnomer.
4820         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4821         !HAVE_MALLOC_POSIX.
4822         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4823         HAVE_MALLOC_POSIX.
4824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4825         instead of HAVE_MALLOC_POSIX.
4826         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4827         HAVE_MALLOC_POSIX.
4828
4829         Use modern idiom for malloc() replacement.
4830         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4831         AC_FUNC_MALLOC.
4832         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4833         Autoconf's AC_FUNC_MALLOC.
4834         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4835         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4836         (gl_REPLACE_MALLOC): New macro.
4837         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4838
4839 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4840
4841         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4842         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4843         This macro takes 3 arguments, not 4.
4844
4845 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4846
4847         ipv6: fix detection under mingw
4848         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4849         in6_addr.
4850
4851 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4852
4853         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4854         that strtod() works when cross-compiling to a glibc version known
4855         to work.
4856
4857 2010-06-15  Bruno Haible  <bruno@clisp.org>
4858
4859         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4860
4861 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4862
4863         select: Correct timeout.
4864         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4865
4866 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4867
4868         git-version-gen: init shell var to avoid env var influence
4869         * build-aux/git-version-gen (v): Init shell var to empty.
4870
4871 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4872
4873         priv-set: Don't assume that priv.h exists merely because getppriv does.
4874         See Jan Andersen's bug report about AIX 5L in
4875         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4876         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4877         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4878         * lib/priv-set.h: Likewise.
4879         * tests/test-priv-set.c: Likewise.
4880
4881 2010-06-13  Bruno Haible  <bruno@clisp.org>
4882
4883         relocatable: Make it easier to test whether to install wrappers.
4884         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4885         RELOCATABLE_VIA_WRAPPER.
4886
4887 2010-06-13  Bruno Haible  <bruno@clisp.org>
4888
4889         gnulib-tool: Display specified modules and dependencies differently.
4890         * gnulib-tool (func_show_module_list): New function.
4891         (func_import, func_create_testdir): Invoke it.
4892         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4893
4894 2010-06-13  Bruno Haible  <bruno@clisp.org>
4895
4896         gnulib-tool: Align code of func_import and func_create_testdir.
4897         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4898         specified_modules.
4899
4900 2010-06-12  Jim Meyering  <meyering@redhat.com>
4901
4902         test-inttostr: avoid spurious failure on Solaris 9
4903         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4904         to accept "%ju".  Reported by Bruno Haible.
4905
4906 2010-06-11  Jim Meyering  <meyering@redhat.com>
4907
4908         test-sys_socket: mark variables as used more readably
4909         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4910         as "used" explicitly via (void) statement casts.  This is more
4911         readable than using them in an artificial return expression.
4912         Suggestion from Bruno Haible.
4913
4914 2010-06-11  Bruno Haible  <bruno@clisp.org>
4915
4916         Avoid some more warnings from "gcc -Wwrite-strings".
4917         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4918         to 'const char *'.
4919         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4920         * tests/test-c-strcasestr.c (main): Likewise.
4921         * tests/test-mbscasestr1.c (main): Likewise.
4922         * tests/test-mbscasestr2.c (main): Likewise.
4923         * tests/test-memmem.c (main): Likewise.
4924         * tests/test-strstr.c (main): Likewise.
4925         * tests/test-strcasestr.c (main): Likewise.
4926
4927 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4928
4929         init.sh: change framework_failure_ to fail with status 99, not 1
4930         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4931         automake's parallel-tests rule that this is an unexpected failure,
4932         even if the test is listed in XFAIL_TESTS.
4933
4934 2010-06-11  Jim Meyering  <meyering@redhat.com>
4935
4936         test-inttostr: avoid warnings about 4-6KB literal strings
4937         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4938         Include "macros.h", for its definition of ASSERT.
4939         (CK): s/assert/ASSERT/
4940         * modules/inttostr-tests (Files): Add macros.h.
4941
4942         init.sh: don't use $ME_ or skip_ before they are defined
4943         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4944         their first uses.  Also hoist their companions: warn_, fail_,
4945         framework_failure_, $stderr_fileno.  Prompted by a patch from
4946         Stefano Lattarini.
4947
4948         test-sys_socket: avoid set-but-not-used warnings from gcc
4949         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4950         avoid warning about set-but-not-used variables.
4951
4952         test-xvasprintf: avoid 'const' discard warnings
4953         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4954         "const" when assigning from literal strings.
4955         (test_xasprintf): Add "void" in function argument list to placate
4956         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4957
4958         tests: avoid compilation warnings in argmatch and exclude tests...
4959         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4960         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4961         Since it always exits, declare with the "noreturn" attribute.
4962         * tests/test-argmatch.c: Likewise.
4963
4964         tests: avoid 'const' discard warnings in mbsstr tests
4965         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4966         * tests/test-mbsstr2.c (main): Likewise.
4967
4968         test-verify: avoid warning from gcc's -Wmissing-declarations
4969         * tests/test-verify.c (function): Declare to be static.
4970
4971         test-inttostr.c: include <string.h> for use of strcmp
4972         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4973
4974         test-linkat: avoid failed assertion on "other" architectures
4975         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4976         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4977         sparc: https://bugs.launchpad.net/bugs/591968
4978
4979 2010-06-11  Jim Meyering  <meyering@redhat.com>
4980
4981         printf.m4: avoid autoconf's "Expanded Before Required" warning
4982         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4983         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4984         autoconf warning.
4985
4986 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4987
4988         Replacement header templates are now named with ".in", not "_".
4989         * doc/gnulib-intro.texi: Correct.
4990
4991 2010-06-10  Jim Meyering  <meyering@redhat.com>
4992
4993         inttostr-tests: depend on snprintf, not snprintf-posix
4994         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4995         snprintf-posix, to avoid this aclocal failure:
4996           missing file gnulib-tests/vasnprintf.c
4997           configure.ac:45: error: expected source file, required through \
4998           AC_LIBSOURCES, not found
4999
5000 2010-06-10  Jim Meyering  <meyering@redhat.com>
5001
5002         inttostr: add a new function, inttostr, and tests
5003         The namesake function was not available.  The existence of the
5004         template file, inttostr.c makes its addition nontrivial.
5005         * lib/anytostr.c: Rename from inttostr.c.
5006         (anytostr): Rename from inttostr.
5007         * lib/inttostr.c: New file.
5008         * modules/inttostr (Files): Add anytostr.c.
5009         (Makefile.am): Set lib_SOURCES instead of ...
5010         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
5011         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
5012         * lib/offtostr.c: Likewise.
5013         * lib/uinttostr.c: Likewise.
5014         * lib/umaxtostr.c: Likewise.
5015         * modules/inttostr-tests: New file.
5016         * tests/test-inttostr.c: New file.  Test these functions.
5017
5018 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
5019             Bruno Haible  <bruno@clisp.org>
5020
5021         Add "Extending Gnulib" chapter to manual.
5022         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
5023         chapter.
5024         (Extending Gnulib): New chapter.
5025         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
5026         chapter.
5027
5028 2010-06-09  Bruno Haible  <bruno@clisp.org>
5029
5030         Avoid relocwrapper link errors due to gnulib replacement functions.
5031         * lib/areadlink.c: Use the system's malloc, realloc functions.
5032         (areadlink): Set errno to ENOMEM explicitly.
5033         * modules/areadlink (Depends-on): Remove malloc-posix.
5034         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5035
5036 2010-06-09  Bruno Haible  <bruno@clisp.org>
5037
5038         Avoid relocwrapper link errors due to gnulib replacement functions.
5039         * lib/canonicalize-lgpl.c: Use the system's malloc function.
5040         * lib/malloca.c: Likewise.
5041         * lib/relocatable.c: Likewise.
5042         * lib/progreloc.c: Use the system's malloc, sprintf functions.
5043         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
5044         * lib/setenv.c: Use the system's malloc, realloc functions.
5045         * lib/strerror.c: Use the system's sprintf function.
5046         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5047
5048 2010-06-04  Bruno Haible  <bruno@clisp.org>
5049
5050         Prefer documented low-level autoconf macro names.
5051         * m4/lib-link.m4: Use m4_translit instead of translit.
5052         * m4/environ.m4: Likewise.
5053         * m4/mathfunc.m4: Likewise.
5054         * m4/onceonly.m4: Likewise.
5055         * m4/stdint.m4: Likewise.
5056         Suggested by Eric Blake.
5057
5058 2010-06-04  Martin Lambers  <marlam@marlam.de>
5059             Bruno Haible  <bruno@clisp.org>
5060
5061         havelib: Allow library names with '+' characters.
5062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5063         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
5064
5065 2010-06-09  Bruno Haible  <bruno@clisp.org>
5066
5067         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
5068         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
5069         realloc failed.
5070
5071 2010-06-08  Peter Simons  <simons@cryp.to>
5072
5073         maint.mk: make the news-check rule more configurable
5074         * top/maint.mk (news-check-lines-spec) New variable.
5075         (news-check): Use "sed -n 1,10p" in place of "head".
5076
5077 2010-06-07  Jim Meyering  <meyering@redhat.com>
5078
5079         do-release-commit-and-tag: fix typo in --help
5080         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
5081
5082         regex: avoid new dead-code warning with gcc-4.6.0
5083         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
5084         if-block containing a while-loop.  It's been unused for at least
5085         5 years.
5086
5087 2010-06-05  Bruno Haible  <bruno@clisp.org>
5088
5089         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
5090         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
5091
5092 2010-06-04  Bruno Haible  <bruno@clisp.org>
5093
5094         Update to GNU gettext 0.18.1.
5095         * modules/gettext (configure.ac): Require gettext infrastructure from
5096         version 0.18.1.
5097
5098 2010-06-03  Bruno Haible  <bruno@clisp.org>
5099
5100         Don't use AC_LIBOBJ with file names in subdirectories.
5101         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
5102         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
5103         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
5104         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
5105         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
5106         gl_LIBUNISTRING_LIBSOURCE.
5107         (Makefile.am): Augment lib_SOURCES here, conditionally.
5108         * NEWS: Drop requirement for Automake option 'subdir-objects'.
5109
5110 2010-06-03  Bruno Haible  <bruno@clisp.org>
5111
5112         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
5113         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
5114         expansion does not end with a newline.
5115         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5116         unnecessary newline.
5117
5118 2010-06-03  Bruno Haible  <bruno@clisp.org>
5119
5120         Reduce dependencies.
5121         * tests/test-quotearg.h: New file, extracted from
5122         tests/test-quotearg.c.
5123         * tests/test-quotearg-simple.c: New file, extracted from
5124         tests/test-quotearg.c.
5125         * tests/test-quotearg.c: Don't include <ctype.h>.
5126         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5127         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5128         use_quote_double_quotes, use_quotearg_colon): Moved to
5129         tests/test-quotearg.h.
5130         (results_g, flag_results, custom_quotes, custom_results): Moved
5131         to tests/test-quotearg-simple.c.
5132         (main): Moved the part that does not depend on gettext to
5133         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5134         performed.
5135         * modules/quotearg-simple: New file.
5136         * modules/quotearg-simple-tests: New file.
5137         * modules/quotearg (Depends-on): Add quotearg-simple.
5138         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5139         (Files): Add tests/test-quotearg.h.
5140         Reported by Paolo Bonzini.
5141
5142 2010-06-03  Bruno Haible  <bruno@clisp.org>
5143
5144         Reduce dependencies.
5145         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5146
5147 2010-06-03  Bruno Haible  <bruno@clisp.org>
5148
5149         time: Undefine more broken macros.
5150         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5151         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5152         Reported by Eric Blake.
5153
5154 2010-06-03  Bruno Haible  <bruno@clisp.org>
5155
5156         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5157         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5158         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5159         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5160         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5161         Reported by Ludovic Courtès <ludo@gnu.org>.
5162
5163 2010-06-02  Eric Blake  <eblake@redhat.com>
5164
5165         time: work with mingw + pthreads-win32 library
5166         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5167         if timespec is defined only in pthread.h.
5168         * modules/time (Makefile.am): Substitute it.
5169         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5170         <pthread.h>, when needed.
5171         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5172         from the library.
5173
5174 2010-05-31  Bruno Haible  <bruno@clisp.org>
5175
5176         Avoid expanding two macros in the wrong order.
5177         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5178         gl_LIBUNISTRING if it is defined.
5179         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5180         autoconf >= 2.64.
5181         Reported by Ludovic Courtès <ludo@gnu.org>.
5182
5183 2010-05-27  Jim Meyering  <meyering@redhat.com>
5184
5185         maint.mk: also prohibit "#undef" of always-defined symbols
5186         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5187         Allow more than one space before the symbol name.
5188         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5189         the regexp uses alternation.
5190
5191 2010-05-26  Eric Blake  <eblake@redhat.com>
5192
5193         maint.mk: avoid echo -e
5194         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5195         Convert all uses of echo -* to printf.
5196         Reported by Matthias Bolte.
5197
5198 2010-05-25  Bruno Haible  <bruno@clisp.org>
5199
5200         Update to GNU gettext 0.18, part 2.
5201         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5202         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5203
5204 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5205
5206         Add missing include in test-pwrite.c.
5207         * tests/test-pwrite.c: Include string.h, for strcmp.
5208
5209 2010-05-24  Bruno Haible  <bruno@clisp.org>
5210
5211         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5212
5213 2010-05-24  Bruno Haible  <bruno@clisp.org>
5214
5215         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5216         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5217         iconveh_error argument.
5218         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5219         U_STRCONV_TO_LOCALE.
5220         * lib/unistr/u16-strcoll.c: Likewise.
5221         * lib/unistr/u32-strcoll.c: Likewise.
5222         * modules/unistr/u8-strcoll (Depends-on): Add
5223         uniconv/u8-strconv-to-enc, localcharset. Remove
5224         uniconv/u8-strconv-to-locale.
5225         (configure.ac): Bump version number.
5226         * modules/unistr/u16-strcoll (Depends-on): Add
5227         uniconv/u16-strconv-to-enc, localcharset. Remove
5228         uniconv/u16-strconv-to-locale.
5229         (configure.ac): Bump version number.
5230         * modules/unistr/u32-strcoll (Depends-on): Add
5231         uniconv/u32-strconv-to-enc, localcharset. Remove
5232         uniconv/u32-strconv-to-locale.
5233         (configure.ac): Bump version number.
5234
5235 2010-05-24  Bruno Haible  <bruno@clisp.org>
5236
5237         Avoid a test failure on NetBSD 5.0.
5238         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5239         an iconv() bug.
5240
5241 2010-05-24  Bruno Haible  <bruno@clisp.org>
5242
5243         Adjust #include directive style.
5244         * modules/regex (Includes): Recommend to write <regex.h>.
5245
5246 2010-05-24  Bruno Haible  <bruno@clisp.org>
5247
5248         regex: Don't require alloca.
5249         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5250         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5251         only inside if (0).
5252
5253 2010-05-23  Jim Meyering  <meyering@redhat.com>
5254
5255         test-renameat.c: include <sys/stat.h>
5256         * tests/test-renameat.c: Include <sys/stat.h>; required for
5257         definition of S_IS* macros.
5258
5259 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5260
5261         Update maintainer documentation for 'relocatable-prog' module.
5262         * doc/relocatable-maint.texi: Update.
5263         Comments by Bruno Haible.
5264
5265 2010-05-23  Bruno Haible  <bruno@clisp.org>
5266
5267         git-merge-changelog: Enable --split-merged-entry by default.
5268         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5269         (usage): Don't mention this option any more.
5270         Reported by Ralf Wildenhues.
5271
5272 2010-05-23  Jim Meyering  <meyering@redhat.com>
5273
5274         test-pwrite: do not leave behind a test file named "out"
5275         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5276         The trivial-looking use of init.sh is really necessary.
5277         It ensures that the temporary file, "out", is created in
5278         a temporary directory, and removed upon termination.
5279         * tests/test-pwrite.sh: Re-add file.
5280         * modules/pwrite-tests: Reference it.
5281
5282 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5283
5284         Fix output redirection buglet in init.sh.
5285         * tests/init.sh: Fix redirection of stderr.
5286
5287 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5288
5289         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5290
5291 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5292
5293         * modules/valgrind-tests: New file.
5294         * m4/valgrind-tests.m4: New file.
5295         * doc/valgrind-tests.texi: New file.
5296         * doc/gnulib.texi (Running self-tests under valgrind): New
5297         section.
5298
5299 2010-05-19  Bruno Haible  <bruno@clisp.org>
5300
5301         Clean up dead code in recent commit.
5302         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5303         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5304         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5305         Suggested by Paolo Bonzini.
5306
5307 2010-05-19  Bruno Haible  <bruno@clisp.org>
5308
5309         Avoid valgrind error reports from libunistring.
5310         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5311         * modules/libunistring (Files): Add it.
5312         * modules/libunistring-optional (Files): Likewise.
5313
5314 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5315             Bruno Haible  <bruno@clisp.org>
5316
5317         New module 'libunistring-optional'.
5318         * modules/libunistring-optional: New file.
5319         * m4/libunistring-base.m4: New file.
5320         * m4/libunistring-optional.m4: New file.
5321         * lib/unicase.in.h: Renamed from lib/unicase.h.
5322         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5323         * lib/unictype.in.h: Renamed from lib/unictype.h.
5324         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5325         * lib/uniname.in.h: Renamed from lib/uniname.h.
5326         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5327         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5328         * lib/unistr.in.h: Renamed from lib/unistr.h.
5329         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5330         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5331         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5332         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5333         gl_LIBUNISTRING. If the library was found, determine the installed
5334         version and set LIBUNISTRING_VERSION.
5335         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5336         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5337         handle a configuration option --with-included-libunistring.
5338         * modules/libunistring (Files): Add m4/absolute-header.m4.
5339         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5340         Add m4/libunistring-base.m4.
5341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5342         (Makefile.am): Build unicase.h from unicase.in.h.
5343         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5344         Add m4/libunistring-base.m4.
5345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5346         (Makefile.am): Build uniconv.h from uniconv.in.h.
5347         * modules/unictype/base (Files): Use unictype.in.h instead of
5348         unictype.h. Add m4/libunistring-base.m4.
5349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5350         (Makefile.am): Build unictype.h from unictype.in.h.
5351         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5352         Add m4/libunistring-base.m4.
5353         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5354         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5355         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5356         Add m4/libunistring-base.m4.
5357         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5358         (Makefile.am): Build uniname.h from uniname.in.h.
5359         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5360         Add m4/libunistring-base.m4.
5361         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5362         (Makefile.am): Build uninorm.h from uninorm.in.h.
5363         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5364         unistdio.h. Add m4/libunistring-base.m4.
5365         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5366         (Makefile.am): Build unistdio.h from unistdio.in.h.
5367         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5368         Add m4/libunistring-base.m4.
5369         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5370         (Makefile.am): Build unistr.h from unistr.in.h.
5371         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5372         Add m4/libunistring-base.m4.
5373         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5374         (Makefile.am): Build unitypes.h from unitypes.in.h.
5375         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5376         Add m4/libunistring-base.m4.
5377         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5378         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5379         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5380         uniwidth.h. Add m4/libunistring-base.m4.
5381         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5382         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5383         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5384         instead of augmenting lib_SOURCES.
5385         * modules/unicase/empty-suffix-context: Likewise.
5386         * modules/unicase/locale-language: Likewise.
5387         * modules/unicase/tolower: Likewise.
5388         * modules/unicase/totitle: Likewise.
5389         * modules/unicase/toupper: Likewise.
5390         * modules/unicase/u8-casecmp: Likewise.
5391         * modules/unicase/u8-casecoll: Likewise.
5392         * modules/unicase/u8-casefold: Likewise.
5393         * modules/unicase/u8-casexfrm: Likewise.
5394         * modules/unicase/u8-ct-casefold: Likewise.
5395         * modules/unicase/u8-ct-tolower: Likewise.
5396         * modules/unicase/u8-ct-totitle: Likewise.
5397         * modules/unicase/u8-ct-toupper: Likewise.
5398         * modules/unicase/u8-is-cased: Likewise.
5399         * modules/unicase/u8-is-casefolded: Likewise.
5400         * modules/unicase/u8-is-lowercase: Likewise.
5401         * modules/unicase/u8-is-titlecase: Likewise.
5402         * modules/unicase/u8-is-uppercase: Likewise.
5403         * modules/unicase/u8-prefix-context: Likewise.
5404         * modules/unicase/u8-suffix-context: Likewise.
5405         * modules/unicase/u8-tolower: Likewise.
5406         * modules/unicase/u8-totitle: Likewise.
5407         * modules/unicase/u8-toupper: Likewise.
5408         * modules/unicase/u16-casecmp: Likewise.
5409         * modules/unicase/u16-casecoll: Likewise.
5410         * modules/unicase/u16-casefold: Likewise.
5411         * modules/unicase/u16-casexfrm: Likewise.
5412         * modules/unicase/u16-ct-casefold: Likewise.
5413         * modules/unicase/u16-ct-tolower: Likewise.
5414         * modules/unicase/u16-ct-totitle: Likewise.
5415         * modules/unicase/u16-ct-toupper: Likewise.
5416         * modules/unicase/u16-is-cased: Likewise.
5417         * modules/unicase/u16-is-casefolded: Likewise.
5418         * modules/unicase/u16-is-lowercase: Likewise.
5419         * modules/unicase/u16-is-titlecase: Likewise.
5420         * modules/unicase/u16-is-uppercase: Likewise.
5421         * modules/unicase/u16-prefix-context: Likewise.
5422         * modules/unicase/u16-suffix-context: Likewise.
5423         * modules/unicase/u16-tolower: Likewise.
5424         * modules/unicase/u16-totitle: Likewise.
5425         * modules/unicase/u16-toupper: Likewise.
5426         * modules/unicase/u32-casecmp: Likewise.
5427         * modules/unicase/u32-casecoll: Likewise.
5428         * modules/unicase/u32-casefold: Likewise.
5429         * modules/unicase/u32-casexfrm: Likewise.
5430         * modules/unicase/u32-ct-casefold: Likewise.
5431         * modules/unicase/u32-ct-tolower: Likewise.
5432         * modules/unicase/u32-ct-totitle: Likewise.
5433         * modules/unicase/u32-ct-toupper: Likewise.
5434         * modules/unicase/u32-is-cased: Likewise.
5435         * modules/unicase/u32-is-casefolded: Likewise.
5436         * modules/unicase/u32-is-lowercase: Likewise.
5437         * modules/unicase/u32-is-titlecase: Likewise.
5438         * modules/unicase/u32-is-uppercase: Likewise.
5439         * modules/unicase/u32-prefix-context: Likewise.
5440         * modules/unicase/u32-suffix-context: Likewise.
5441         * modules/unicase/u32-tolower: Likewise.
5442         * modules/unicase/u32-totitle: Likewise.
5443         * modules/unicase/u32-toupper: Likewise.
5444         * modules/unicase/ulc-casecmp: Likewise.
5445         * modules/unicase/ulc-casecoll: Likewise.
5446         * modules/unicase/ulc-casexfrm: Likewise.
5447         * modules/uniconv/u8-conv-from-enc: Likewise.
5448         * modules/uniconv/u8-conv-to-enc: Likewise.
5449         * modules/uniconv/u8-strconv-from-enc: Likewise.
5450         * modules/uniconv/u8-strconv-from-locale: Likewise.
5451         * modules/uniconv/u8-strconv-to-enc: Likewise.
5452         * modules/uniconv/u8-strconv-to-locale: Likewise.
5453         * modules/uniconv/u16-conv-from-enc: Likewise.
5454         * modules/uniconv/u16-conv-to-enc: Likewise.
5455         * modules/uniconv/u16-strconv-from-enc: Likewise.
5456         * modules/uniconv/u16-strconv-from-locale: Likewise.
5457         * modules/uniconv/u16-strconv-to-enc: Likewise.
5458         * modules/uniconv/u16-strconv-to-locale: Likewise.
5459         * modules/uniconv/u32-conv-from-enc: Likewise.
5460         * modules/uniconv/u32-conv-to-enc: Likewise.
5461         * modules/uniconv/u32-strconv-from-enc: Likewise.
5462         * modules/uniconv/u32-strconv-from-locale: Likewise.
5463         * modules/uniconv/u32-strconv-to-enc: Likewise.
5464         * modules/uniconv/u32-strconv-to-locale: Likewise.
5465         * modules/unictype/bidicategory-byname: Likewise.
5466         * modules/unictype/bidicategory-name: Likewise.
5467         * modules/unictype/bidicategory-of: Likewise.
5468         * modules/unictype/bidicategory-test: Likewise.
5469         * modules/unictype/block-list: Likewise.
5470         * modules/unictype/block-test: Likewise.
5471         * modules/unictype/category-C: Likewise.
5472         * modules/unictype/category-Cc: Likewise.
5473         * modules/unictype/category-Cf: Likewise.
5474         * modules/unictype/category-Cn: Likewise.
5475         * modules/unictype/category-Co: Likewise.
5476         * modules/unictype/category-Cs: Likewise.
5477         * modules/unictype/category-L: Likewise.
5478         * modules/unictype/category-Ll: Likewise.
5479         * modules/unictype/category-Lm: Likewise.
5480         * modules/unictype/category-Lo: Likewise.
5481         * modules/unictype/category-Lt: Likewise.
5482         * modules/unictype/category-Lu: Likewise.
5483         * modules/unictype/category-M: Likewise.
5484         * modules/unictype/category-Mc: Likewise.
5485         * modules/unictype/category-Me: Likewise.
5486         * modules/unictype/category-Mn: Likewise.
5487         * modules/unictype/category-N: Likewise.
5488         * modules/unictype/category-Nd: Likewise.
5489         * modules/unictype/category-Nl: Likewise.
5490         * modules/unictype/category-No: Likewise.
5491         * modules/unictype/category-P: Likewise.
5492         * modules/unictype/category-Pc: Likewise.
5493         * modules/unictype/category-Pd: Likewise.
5494         * modules/unictype/category-Pe: Likewise.
5495         * modules/unictype/category-Pf: Likewise.
5496         * modules/unictype/category-Pi: Likewise.
5497         * modules/unictype/category-Po: Likewise.
5498         * modules/unictype/category-Ps: Likewise.
5499         * modules/unictype/category-S: Likewise.
5500         * modules/unictype/category-Sc: Likewise.
5501         * modules/unictype/category-Sk: Likewise.
5502         * modules/unictype/category-Sm: Likewise.
5503         * modules/unictype/category-So: Likewise.
5504         * modules/unictype/category-Z: Likewise.
5505         * modules/unictype/category-Zl: Likewise.
5506         * modules/unictype/category-Zp: Likewise.
5507         * modules/unictype/category-Zs: Likewise.
5508         * modules/unictype/category-and: Likewise.
5509         * modules/unictype/category-and-not: Likewise.
5510         * modules/unictype/category-byname: Likewise.
5511         * modules/unictype/category-name: Likewise.
5512         * modules/unictype/category-none: Likewise.
5513         * modules/unictype/category-of: Likewise.
5514         * modules/unictype/category-or: Likewise.
5515         * modules/unictype/category-test: Likewise.
5516         * modules/unictype/combining-class: Likewise.
5517         * modules/unictype/ctype-alnum: Likewise.
5518         * modules/unictype/ctype-alpha: Likewise.
5519         * modules/unictype/ctype-blank: Likewise.
5520         * modules/unictype/ctype-cntrl: Likewise.
5521         * modules/unictype/ctype-digit: Likewise.
5522         * modules/unictype/ctype-graph: Likewise.
5523         * modules/unictype/ctype-lower: Likewise.
5524         * modules/unictype/ctype-print: Likewise.
5525         * modules/unictype/ctype-punct: Likewise.
5526         * modules/unictype/ctype-space: Likewise.
5527         * modules/unictype/ctype-upper: Likewise.
5528         * modules/unictype/ctype-xdigit: Likewise.
5529         * modules/unictype/decimal-digit: Likewise.
5530         * modules/unictype/digit: Likewise.
5531         * modules/unictype/mirror: Likewise.
5532         * modules/unictype/numeric: Likewise.
5533         * modules/unictype/property-alphabetic: Likewise.
5534         * modules/unictype/property-ascii-hex-digit: Likewise.
5535         * modules/unictype/property-bidi-arabic-digit: Likewise.
5536         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5537         * modules/unictype/property-bidi-block-separator: Likewise.
5538         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5539         * modules/unictype/property-bidi-common-separator: Likewise.
5540         * modules/unictype/property-bidi-control: Likewise.
5541         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5542         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5543         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5544         * modules/unictype/property-bidi-european-digit: Likewise.
5545         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5546         * modules/unictype/property-bidi-left-to-right: Likewise.
5547         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5548         * modules/unictype/property-bidi-other-neutral: Likewise.
5549         * modules/unictype/property-bidi-pdf: Likewise.
5550         * modules/unictype/property-bidi-segment-separator: Likewise.
5551         * modules/unictype/property-bidi-whitespace: Likewise.
5552         * modules/unictype/property-byname: Likewise.
5553         * modules/unictype/property-combining: Likewise.
5554         * modules/unictype/property-composite: Likewise.
5555         * modules/unictype/property-currency-symbol: Likewise.
5556         * modules/unictype/property-dash: Likewise.
5557         * modules/unictype/property-decimal-digit: Likewise.
5558         * modules/unictype/property-default-ignorable-code-point: Likewise.
5559         * modules/unictype/property-deprecated: Likewise.
5560         * modules/unictype/property-diacritic: Likewise.
5561         * modules/unictype/property-extender: Likewise.
5562         * modules/unictype/property-format-control: Likewise.
5563         * modules/unictype/property-grapheme-base: Likewise.
5564         * modules/unictype/property-grapheme-extend: Likewise.
5565         * modules/unictype/property-grapheme-link: Likewise.
5566         * modules/unictype/property-hex-digit: Likewise.
5567         * modules/unictype/property-hyphen: Likewise.
5568         * modules/unictype/property-id-continue: Likewise.
5569         * modules/unictype/property-id-start: Likewise.
5570         * modules/unictype/property-ideographic: Likewise.
5571         * modules/unictype/property-ids-binary-operator: Likewise.
5572         * modules/unictype/property-ids-trinary-operator: Likewise.
5573         * modules/unictype/property-ignorable-control: Likewise.
5574         * modules/unictype/property-iso-control: Likewise.
5575         * modules/unictype/property-join-control: Likewise.
5576         * modules/unictype/property-left-of-pair: Likewise.
5577         * modules/unictype/property-line-separator: Likewise.
5578         * modules/unictype/property-logical-order-exception: Likewise.
5579         * modules/unictype/property-lowercase: Likewise.
5580         * modules/unictype/property-math: Likewise.
5581         * modules/unictype/property-non-break: Likewise.
5582         * modules/unictype/property-not-a-character: Likewise.
5583         * modules/unictype/property-numeric: Likewise.
5584         * modules/unictype/property-other-alphabetic: Likewise.
5585         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5586         * modules/unictype/property-other-grapheme-extend: Likewise.
5587         * modules/unictype/property-other-id-continue: Likewise.
5588         * modules/unictype/property-other-id-start: Likewise.
5589         * modules/unictype/property-other-lowercase: Likewise.
5590         * modules/unictype/property-other-math: Likewise.
5591         * modules/unictype/property-other-uppercase: Likewise.
5592         * modules/unictype/property-paired-punctuation: Likewise.
5593         * modules/unictype/property-paragraph-separator: Likewise.
5594         * modules/unictype/property-pattern-syntax: Likewise.
5595         * modules/unictype/property-pattern-white-space: Likewise.
5596         * modules/unictype/property-private-use: Likewise.
5597         * modules/unictype/property-punctuation: Likewise.
5598         * modules/unictype/property-quotation-mark: Likewise.
5599         * modules/unictype/property-radical: Likewise.
5600         * modules/unictype/property-sentence-terminal: Likewise.
5601         * modules/unictype/property-soft-dotted: Likewise.
5602         * modules/unictype/property-space: Likewise.
5603         * modules/unictype/property-terminal-punctuation: Likewise.
5604         * modules/unictype/property-test: Likewise.
5605         * modules/unictype/property-titlecase: Likewise.
5606         * modules/unictype/property-unassigned-code-value: Likewise.
5607         * modules/unictype/property-unified-ideograph: Likewise.
5608         * modules/unictype/property-uppercase: Likewise.
5609         * modules/unictype/property-variation-selector: Likewise.
5610         * modules/unictype/property-white-space: Likewise.
5611         * modules/unictype/property-xid-continue: Likewise.
5612         * modules/unictype/property-xid-start: Likewise.
5613         * modules/unictype/property-zero-width: Likewise.
5614         * modules/unictype/scripts: Likewise.
5615         * modules/unictype/syntax-c-ident: Likewise.
5616         * modules/unictype/syntax-c-whitespace: Likewise.
5617         * modules/unictype/syntax-java-ident: Likewise.
5618         * modules/unictype/syntax-java-whitespace: Likewise.
5619         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5620         * modules/unilbrk/u8-width-linebreaks: Likewise.
5621         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5622         * modules/unilbrk/u16-width-linebreaks: Likewise.
5623         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5624         * modules/unilbrk/u32-width-linebreaks: Likewise.
5625         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5626         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5627         * modules/uniname/uniname: Likewise.
5628         * modules/uninorm/canonical-decomposition: Likewise.
5629         * modules/uninorm/composition: Likewise.
5630         * modules/uninorm/decomposing-form: Likewise.
5631         * modules/uninorm/decomposition: Likewise.
5632         * modules/uninorm/filter: Likewise.
5633         * modules/uninorm/nfc: Likewise.
5634         * modules/uninorm/nfd: Likewise.
5635         * modules/uninorm/nfkc: Likewise.
5636         * modules/uninorm/nfkd: Likewise.
5637         * modules/uninorm/u8-normalize: Likewise.
5638         * modules/uninorm/u8-normcmp: Likewise.
5639         * modules/uninorm/u8-normcoll: Likewise.
5640         * modules/uninorm/u8-normxfrm: Likewise.
5641         * modules/uninorm/u16-normalize: Likewise.
5642         * modules/uninorm/u16-normcmp: Likewise.
5643         * modules/uninorm/u16-normcoll: Likewise.
5644         * modules/uninorm/u16-normxfrm: Likewise.
5645         * modules/uninorm/u32-normalize: Likewise.
5646         * modules/uninorm/u32-normcmp: Likewise.
5647         * modules/uninorm/u32-normcoll: Likewise.
5648         * modules/uninorm/u32-normxfrm: Likewise.
5649         * modules/unistdio/u8-asnprintf: Likewise.
5650         * modules/unistdio/u8-asprintf: Likewise.
5651         * modules/unistdio/u8-snprintf: Likewise.
5652         * modules/unistdio/u8-sprintf: Likewise.
5653         * modules/unistdio/u8-u8-asnprintf: Likewise.
5654         * modules/unistdio/u8-u8-asprintf: Likewise.
5655         * modules/unistdio/u8-u8-snprintf: Likewise.
5656         * modules/unistdio/u8-u8-sprintf: Likewise.
5657         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5658         * modules/unistdio/u8-u8-vasprintf: Likewise.
5659         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5660         * modules/unistdio/u8-u8-vsprintf: Likewise.
5661         * modules/unistdio/u8-vasnprintf: Likewise.
5662         * modules/unistdio/u8-vasprintf: Likewise.
5663         * modules/unistdio/u8-vsnprintf: Likewise.
5664         * modules/unistdio/u8-vsprintf: Likewise.
5665         * modules/unistdio/u16-asnprintf: Likewise.
5666         * modules/unistdio/u16-asprintf: Likewise.
5667         * modules/unistdio/u16-snprintf: Likewise.
5668         * modules/unistdio/u16-sprintf: Likewise.
5669         * modules/unistdio/u16-u16-asnprintf: Likewise.
5670         * modules/unistdio/u16-u16-asprintf: Likewise.
5671         * modules/unistdio/u16-u16-snprintf: Likewise.
5672         * modules/unistdio/u16-u16-sprintf: Likewise.
5673         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5674         * modules/unistdio/u16-u16-vasprintf: Likewise.
5675         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5676         * modules/unistdio/u16-u16-vsprintf: Likewise.
5677         * modules/unistdio/u16-vasnprintf: Likewise.
5678         * modules/unistdio/u16-vasprintf: Likewise.
5679         * modules/unistdio/u16-vsnprintf: Likewise.
5680         * modules/unistdio/u16-vsprintf: Likewise.
5681         * modules/unistdio/u32-asnprintf: Likewise.
5682         * modules/unistdio/u32-asprintf: Likewise.
5683         * modules/unistdio/u32-snprintf: Likewise.
5684         * modules/unistdio/u32-sprintf: Likewise.
5685         * modules/unistdio/u32-u32-asnprintf: Likewise.
5686         * modules/unistdio/u32-u32-asprintf: Likewise.
5687         * modules/unistdio/u32-u32-snprintf: Likewise.
5688         * modules/unistdio/u32-u32-sprintf: Likewise.
5689         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5690         * modules/unistdio/u32-u32-vasprintf: Likewise.
5691         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5692         * modules/unistdio/u32-u32-vsprintf: Likewise.
5693         * modules/unistdio/u32-vasnprintf: Likewise.
5694         * modules/unistdio/u32-vasprintf: Likewise.
5695         * modules/unistdio/u32-vsnprintf: Likewise.
5696         * modules/unistdio/u32-vsprintf: Likewise.
5697         * modules/unistdio/ulc-asnprintf: Likewise.
5698         * modules/unistdio/ulc-asprintf: Likewise.
5699         * modules/unistdio/ulc-fprintf: Likewise.
5700         * modules/unistdio/ulc-snprintf: Likewise.
5701         * modules/unistdio/ulc-sprintf: Likewise.
5702         * modules/unistdio/ulc-vasnprintf: Likewise.
5703         * modules/unistdio/ulc-vasprintf: Likewise.
5704         * modules/unistdio/ulc-vfprintf: Likewise.
5705         * modules/unistdio/ulc-vsnprintf: Likewise.
5706         * modules/unistdio/ulc-vsprintf: Likewise.
5707         * modules/unistr/u8-check: Likewise.
5708         * modules/unistr/u8-chr: Likewise.
5709         * modules/unistr/u8-cmp: Likewise.
5710         * modules/unistr/u8-cmp2: Likewise.
5711         * modules/unistr/u8-cpy: Likewise.
5712         * modules/unistr/u8-cpy-alloc: Likewise.
5713         * modules/unistr/u8-endswith: Likewise.
5714         * modules/unistr/u8-mblen: Likewise.
5715         * modules/unistr/u8-mbsnlen: Likewise.
5716         * modules/unistr/u8-mbtouc: Likewise.
5717         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5718         * modules/unistr/u8-mbtoucr: Likewise.
5719         * modules/unistr/u8-move: Likewise.
5720         * modules/unistr/u8-next: Likewise.
5721         * modules/unistr/u8-prev: Likewise.
5722         * modules/unistr/u8-set: Likewise.
5723         * modules/unistr/u8-startswith: Likewise.
5724         * modules/unistr/u8-stpcpy: Likewise.
5725         * modules/unistr/u8-stpncpy: Likewise.
5726         * modules/unistr/u8-strcat: Likewise.
5727         * modules/unistr/u8-strchr: Likewise.
5728         * modules/unistr/u8-strcmp: Likewise.
5729         * modules/unistr/u8-strcoll: Likewise.
5730         * modules/unistr/u8-strcpy: Likewise.
5731         * modules/unistr/u8-strcspn: Likewise.
5732         * modules/unistr/u8-strdup: Likewise.
5733         * modules/unistr/u8-strlen: Likewise.
5734         * modules/unistr/u8-strmblen: Likewise.
5735         * modules/unistr/u8-strmbtouc: Likewise.
5736         * modules/unistr/u8-strncat: Likewise.
5737         * modules/unistr/u8-strncmp: Likewise.
5738         * modules/unistr/u8-strncpy: Likewise.
5739         * modules/unistr/u8-strnlen: Likewise.
5740         * modules/unistr/u8-strpbrk: Likewise.
5741         * modules/unistr/u8-strrchr: Likewise.
5742         * modules/unistr/u8-strspn: Likewise.
5743         * modules/unistr/u8-strstr: Likewise.
5744         * modules/unistr/u8-strtok: Likewise.
5745         * modules/unistr/u8-to-u16: Likewise.
5746         * modules/unistr/u8-to-u32: Likewise.
5747         * modules/unistr/u8-uctomb: Likewise.
5748         * modules/unistr/u16-check: Likewise.
5749         * modules/unistr/u16-chr: Likewise.
5750         * modules/unistr/u16-cmp: Likewise.
5751         * modules/unistr/u16-cmp2: Likewise.
5752         * modules/unistr/u16-cpy: Likewise.
5753         * modules/unistr/u16-cpy-alloc: Likewise.
5754         * modules/unistr/u16-endswith: Likewise.
5755         * modules/unistr/u16-mblen: Likewise.
5756         * modules/unistr/u16-mbsnlen: Likewise.
5757         * modules/unistr/u16-mbtouc: Likewise.
5758         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5759         * modules/unistr/u16-mbtoucr: Likewise.
5760         * modules/unistr/u16-move: Likewise.
5761         * modules/unistr/u16-next: Likewise.
5762         * modules/unistr/u16-prev: Likewise.
5763         * modules/unistr/u16-set: Likewise.
5764         * modules/unistr/u16-startswith: Likewise.
5765         * modules/unistr/u16-stpcpy: Likewise.
5766         * modules/unistr/u16-stpncpy: Likewise.
5767         * modules/unistr/u16-strcat: Likewise.
5768         * modules/unistr/u16-strchr: Likewise.
5769         * modules/unistr/u16-strcmp: Likewise.
5770         * modules/unistr/u16-strcoll: Likewise.
5771         * modules/unistr/u16-strcpy: Likewise.
5772         * modules/unistr/u16-strcspn: Likewise.
5773         * modules/unistr/u16-strdup: Likewise.
5774         * modules/unistr/u16-strlen: Likewise.
5775         * modules/unistr/u16-strmblen: Likewise.
5776         * modules/unistr/u16-strmbtouc: Likewise.
5777         * modules/unistr/u16-strncat: Likewise.
5778         * modules/unistr/u16-strncmp: Likewise.
5779         * modules/unistr/u16-strncpy: Likewise.
5780         * modules/unistr/u16-strnlen: Likewise.
5781         * modules/unistr/u16-strpbrk: Likewise.
5782         * modules/unistr/u16-strrchr: Likewise.
5783         * modules/unistr/u16-strspn: Likewise.
5784         * modules/unistr/u16-strstr: Likewise.
5785         * modules/unistr/u16-strtok: Likewise.
5786         * modules/unistr/u16-to-u32: Likewise.
5787         * modules/unistr/u16-to-u8: Likewise.
5788         * modules/unistr/u16-uctomb: Likewise.
5789         * modules/unistr/u32-check: Likewise.
5790         * modules/unistr/u32-chr: Likewise.
5791         * modules/unistr/u32-cmp: Likewise.
5792         * modules/unistr/u32-cmp2: Likewise.
5793         * modules/unistr/u32-cpy: Likewise.
5794         * modules/unistr/u32-cpy-alloc: Likewise.
5795         * modules/unistr/u32-endswith: Likewise.
5796         * modules/unistr/u32-mblen: Likewise.
5797         * modules/unistr/u32-mbsnlen: Likewise.
5798         * modules/unistr/u32-mbtouc: Likewise.
5799         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5800         * modules/unistr/u32-mbtoucr: Likewise.
5801         * modules/unistr/u32-move: Likewise.
5802         * modules/unistr/u32-next: Likewise.
5803         * modules/unistr/u32-prev: Likewise.
5804         * modules/unistr/u32-set: Likewise.
5805         * modules/unistr/u32-startswith: Likewise.
5806         * modules/unistr/u32-stpcpy: Likewise.
5807         * modules/unistr/u32-stpncpy: Likewise.
5808         * modules/unistr/u32-strcat: Likewise.
5809         * modules/unistr/u32-strchr: Likewise.
5810         * modules/unistr/u32-strcmp: Likewise.
5811         * modules/unistr/u32-strcoll: Likewise.
5812         * modules/unistr/u32-strcpy: Likewise.
5813         * modules/unistr/u32-strcspn: Likewise.
5814         * modules/unistr/u32-strdup: Likewise.
5815         * modules/unistr/u32-strlen: Likewise.
5816         * modules/unistr/u32-strmblen: Likewise.
5817         * modules/unistr/u32-strmbtouc: Likewise.
5818         * modules/unistr/u32-strncat: Likewise.
5819         * modules/unistr/u32-strncmp: Likewise.
5820         * modules/unistr/u32-strncpy: Likewise.
5821         * modules/unistr/u32-strnlen: Likewise.
5822         * modules/unistr/u32-strpbrk: Likewise.
5823         * modules/unistr/u32-strrchr: Likewise.
5824         * modules/unistr/u32-strspn: Likewise.
5825         * modules/unistr/u32-strstr: Likewise.
5826         * modules/unistr/u32-strtok: Likewise.
5827         * modules/unistr/u32-to-u16: Likewise.
5828         * modules/unistr/u32-to-u8: Likewise.
5829         * modules/unistr/u32-uctomb: Likewise.
5830         * modules/uniwbrk/u8-wordbreaks: Likewise.
5831         * modules/uniwbrk/u16-wordbreaks: Likewise.
5832         * modules/uniwbrk/u32-wordbreaks: Likewise.
5833         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5834         * modules/uniwbrk/wordbreak-property: Likewise.
5835         * modules/uniwidth/u8-strwidth: Likewise.
5836         * modules/uniwidth/u8-width: Likewise.
5837         * modules/uniwidth/u16-strwidth: Likewise.
5838         * modules/uniwidth/u16-width: Likewise.
5839         * modules/uniwidth/u32-strwidth: Likewise.
5840         * modules/uniwidth/u32-width: Likewise.
5841         * modules/uniwidth/width: Likewise.
5842         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5843         with $(LIBUNISTRING).
5844         * modules/unicase/ignorable-tests: Likewise.
5845         * modules/unicase/locale-language-tests: Likewise.
5846         * modules/unicase/tolower-tests: Likewise.
5847         * modules/unicase/totitle-tests: Likewise.
5848         * modules/unicase/toupper-tests: Likewise.
5849         * modules/unicase/u8-casecmp-tests: Likewise.
5850         * modules/unicase/u8-casecoll-tests: Likewise.
5851         * modules/unicase/u8-casefold-tests: Likewise.
5852         * modules/unicase/u8-is-cased-tests: Likewise.
5853         * modules/unicase/u8-is-casefolded-tests: Likewise.
5854         * modules/unicase/u8-is-lowercase-tests: Likewise.
5855         * modules/unicase/u8-is-titlecase-tests: Likewise.
5856         * modules/unicase/u8-is-uppercase-tests: Likewise.
5857         * modules/unicase/u8-tolower-tests: Likewise.
5858         * modules/unicase/u8-totitle-tests: Likewise.
5859         * modules/unicase/u8-toupper-tests: Likewise.
5860         * modules/unicase/u16-casecmp-tests: Likewise.
5861         * modules/unicase/u16-casecoll-tests: Likewise.
5862         * modules/unicase/u16-casefold-tests: Likewise.
5863         * modules/unicase/u16-is-cased-tests: Likewise.
5864         * modules/unicase/u16-is-casefolded-tests: Likewise.
5865         * modules/unicase/u16-is-lowercase-tests: Likewise.
5866         * modules/unicase/u16-is-titlecase-tests: Likewise.
5867         * modules/unicase/u16-is-uppercase-tests: Likewise.
5868         * modules/unicase/u16-tolower-tests: Likewise.
5869         * modules/unicase/u16-totitle-tests: Likewise.
5870         * modules/unicase/u16-toupper-tests: Likewise.
5871         * modules/unicase/u32-casecmp-tests: Likewise.
5872         * modules/unicase/u32-casecoll-tests: Likewise.
5873         * modules/unicase/u32-casefold-tests: Likewise.
5874         * modules/unicase/u32-is-cased-tests: Likewise.
5875         * modules/unicase/u32-is-casefolded-tests: Likewise.
5876         * modules/unicase/u32-is-lowercase-tests: Likewise.
5877         * modules/unicase/u32-is-titlecase-tests: Likewise.
5878         * modules/unicase/u32-is-uppercase-tests: Likewise.
5879         * modules/unicase/u32-tolower-tests: Likewise.
5880         * modules/unicase/u32-totitle-tests: Likewise.
5881         * modules/unicase/u32-toupper-tests: Likewise.
5882         * modules/unicase/ulc-casecmp-tests: Likewise.
5883         * modules/unicase/ulc-casecoll-tests: Likewise.
5884         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5885         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5886         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5887         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5888         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5889         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5890         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5891         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5892         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5893         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5894         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5895         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5896         * modules/unictype/bidicategory-byname-tests: Likewise.
5897         * modules/unictype/bidicategory-name-tests: Likewise.
5898         * modules/unictype/bidicategory-of-tests: Likewise.
5899         * modules/unictype/bidicategory-test-tests: Likewise.
5900         * modules/unictype/block-list-tests: Likewise.
5901         * modules/unictype/block-of-tests: Likewise.
5902         * modules/unictype/block-test-tests: Likewise.
5903         * modules/unictype/category-C-tests: Likewise.
5904         * modules/unictype/category-Cc-tests: Likewise.
5905         * modules/unictype/category-Cf-tests: Likewise.
5906         * modules/unictype/category-Cn-tests: Likewise.
5907         * modules/unictype/category-Co-tests: Likewise.
5908         * modules/unictype/category-Cs-tests: Likewise.
5909         * modules/unictype/category-L-tests: Likewise.
5910         * modules/unictype/category-Ll-tests: Likewise.
5911         * modules/unictype/category-Lm-tests: Likewise.
5912         * modules/unictype/category-Lo-tests: Likewise.
5913         * modules/unictype/category-Lt-tests: Likewise.
5914         * modules/unictype/category-Lu-tests: Likewise.
5915         * modules/unictype/category-M-tests: Likewise.
5916         * modules/unictype/category-Mc-tests: Likewise.
5917         * modules/unictype/category-Me-tests: Likewise.
5918         * modules/unictype/category-Mn-tests: Likewise.
5919         * modules/unictype/category-N-tests: Likewise.
5920         * modules/unictype/category-Nd-tests: Likewise.
5921         * modules/unictype/category-Nl-tests: Likewise.
5922         * modules/unictype/category-No-tests: Likewise.
5923         * modules/unictype/category-P-tests: Likewise.
5924         * modules/unictype/category-Pc-tests: Likewise.
5925         * modules/unictype/category-Pd-tests: Likewise.
5926         * modules/unictype/category-Pe-tests: Likewise.
5927         * modules/unictype/category-Pf-tests: Likewise.
5928         * modules/unictype/category-Pi-tests: Likewise.
5929         * modules/unictype/category-Po-tests: Likewise.
5930         * modules/unictype/category-Ps-tests: Likewise.
5931         * modules/unictype/category-S-tests: Likewise.
5932         * modules/unictype/category-Sc-tests: Likewise.
5933         * modules/unictype/category-Sk-tests: Likewise.
5934         * modules/unictype/category-Sm-tests: Likewise.
5935         * modules/unictype/category-So-tests: Likewise.
5936         * modules/unictype/category-Z-tests: Likewise.
5937         * modules/unictype/category-Zl-tests: Likewise.
5938         * modules/unictype/category-Zp-tests: Likewise.
5939         * modules/unictype/category-Zs-tests: Likewise.
5940         * modules/unictype/category-and-not-tests: Likewise.
5941         * modules/unictype/category-and-tests: Likewise.
5942         * modules/unictype/category-byname-tests: Likewise.
5943         * modules/unictype/category-name-tests: Likewise.
5944         * modules/unictype/category-none-tests: Likewise.
5945         * modules/unictype/category-of-tests: Likewise.
5946         * modules/unictype/category-or-tests: Likewise.
5947         * modules/unictype/category-test-withtable-tests: Likewise.
5948         * modules/unictype/combining-class-tests: Likewise.
5949         * modules/unictype/ctype-alnum-tests: Likewise.
5950         * modules/unictype/ctype-alpha-tests: Likewise.
5951         * modules/unictype/ctype-blank-tests: Likewise.
5952         * modules/unictype/ctype-cntrl-tests: Likewise.
5953         * modules/unictype/ctype-digit-tests: Likewise.
5954         * modules/unictype/ctype-graph-tests: Likewise.
5955         * modules/unictype/ctype-lower-tests: Likewise.
5956         * modules/unictype/ctype-print-tests: Likewise.
5957         * modules/unictype/ctype-punct-tests: Likewise.
5958         * modules/unictype/ctype-space-tests: Likewise.
5959         * modules/unictype/ctype-upper-tests: Likewise.
5960         * modules/unictype/ctype-xdigit-tests: Likewise.
5961         * modules/unictype/decimal-digit-tests: Likewise.
5962         * modules/unictype/digit-tests: Likewise.
5963         * modules/unictype/mirror-tests: Likewise.
5964         * modules/unictype/numeric-tests: Likewise.
5965         * modules/unictype/property-alphabetic-tests: Likewise.
5966         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5967         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5968         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5969         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5970         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5971         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5972         * modules/unictype/property-bidi-control-tests: Likewise.
5973         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5974         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5975         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5976         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5977         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5978         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5979         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5980         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5981         * modules/unictype/property-bidi-pdf-tests: Likewise.
5982         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5983         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5984         * modules/unictype/property-byname-tests: Likewise.
5985         * modules/unictype/property-combining-tests: Likewise.
5986         * modules/unictype/property-composite-tests: Likewise.
5987         * modules/unictype/property-currency-symbol-tests: Likewise.
5988         * modules/unictype/property-dash-tests: Likewise.
5989         * modules/unictype/property-decimal-digit-tests: Likewise.
5990         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5991         * modules/unictype/property-deprecated-tests: Likewise.
5992         * modules/unictype/property-diacritic-tests: Likewise.
5993         * modules/unictype/property-extender-tests: Likewise.
5994         * modules/unictype/property-format-control-tests: Likewise.
5995         * modules/unictype/property-grapheme-base-tests: Likewise.
5996         * modules/unictype/property-grapheme-extend-tests: Likewise.
5997         * modules/unictype/property-grapheme-link-tests: Likewise.
5998         * modules/unictype/property-hex-digit-tests: Likewise.
5999         * modules/unictype/property-hyphen-tests: Likewise.
6000         * modules/unictype/property-id-continue-tests: Likewise.
6001         * modules/unictype/property-id-start-tests: Likewise.
6002         * modules/unictype/property-ideographic-tests: Likewise.
6003         * modules/unictype/property-ids-binary-operator-tests: Likewise.
6004         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
6005         * modules/unictype/property-ignorable-control-tests: Likewise.
6006         * modules/unictype/property-iso-control-tests: Likewise.
6007         * modules/unictype/property-join-control-tests: Likewise.
6008         * modules/unictype/property-left-of-pair-tests: Likewise.
6009         * modules/unictype/property-line-separator-tests: Likewise.
6010         * modules/unictype/property-logical-order-exception-tests: Likewise.
6011         * modules/unictype/property-lowercase-tests: Likewise.
6012         * modules/unictype/property-math-tests: Likewise.
6013         * modules/unictype/property-non-break-tests: Likewise.
6014         * modules/unictype/property-not-a-character-tests: Likewise.
6015         * modules/unictype/property-numeric-tests: Likewise.
6016         * modules/unictype/property-other-alphabetic-tests: Likewise.
6017         * modules/unictype/property-other-default-ignorable-code-point-tests:
6018         Likewise.
6019         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
6020         * modules/unictype/property-other-id-continue-tests: Likewise.
6021         * modules/unictype/property-other-id-start-tests: Likewise.
6022         * modules/unictype/property-other-lowercase-tests: Likewise.
6023         * modules/unictype/property-other-math-tests: Likewise.
6024         * modules/unictype/property-other-uppercase-tests: Likewise.
6025         * modules/unictype/property-paired-punctuation-tests: Likewise.
6026         * modules/unictype/property-paragraph-separator-tests: Likewise.
6027         * modules/unictype/property-pattern-syntax-tests: Likewise.
6028         * modules/unictype/property-pattern-white-space-tests: Likewise.
6029         * modules/unictype/property-private-use-tests: Likewise.
6030         * modules/unictype/property-punctuation-tests: Likewise.
6031         * modules/unictype/property-quotation-mark-tests: Likewise.
6032         * modules/unictype/property-radical-tests: Likewise.
6033         * modules/unictype/property-sentence-terminal-tests: Likewise.
6034         * modules/unictype/property-soft-dotted-tests: Likewise.
6035         * modules/unictype/property-space-tests: Likewise.
6036         * modules/unictype/property-terminal-punctuation-tests: Likewise.
6037         * modules/unictype/property-test-tests: Likewise.
6038         * modules/unictype/property-titlecase-tests: Likewise.
6039         * modules/unictype/property-unassigned-code-value-tests: Likewise.
6040         * modules/unictype/property-unified-ideograph-tests: Likewise.
6041         * modules/unictype/property-uppercase-tests: Likewise.
6042         * modules/unictype/property-variation-selector-tests: Likewise.
6043         * modules/unictype/property-white-space-tests: Likewise.
6044         * modules/unictype/property-xid-continue-tests: Likewise.
6045         * modules/unictype/property-xid-start-tests: Likewise.
6046         * modules/unictype/property-zero-width-tests: Likewise.
6047         * modules/unictype/scripts-tests: Likewise.
6048         * modules/unictype/syntax-c-ident-tests: Likewise.
6049         * modules/unictype/syntax-c-whitespace-tests: Likewise.
6050         * modules/unictype/syntax-java-ident-tests: Likewise.
6051         * modules/unictype/syntax-java-whitespace-tests: Likewise.
6052         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
6053         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
6054         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
6055         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
6056         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
6057         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
6058         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
6059         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
6060         * modules/uniname/uniname-tests: Likewise.
6061         * modules/uninorm/canonical-decomposition-tests: Likewise.
6062         * modules/uninorm/compat-decomposition-tests: Likewise.
6063         * modules/uninorm/composition-tests: Likewise.
6064         * modules/uninorm/decomposing-form-tests: Likewise.
6065         * modules/uninorm/decomposition-tests: Likewise.
6066         * modules/uninorm/filter-tests: Likewise.
6067         * modules/uninorm/nfc-tests: Likewise.
6068         * modules/uninorm/nfd-tests: Likewise.
6069         * modules/uninorm/nfkc-tests: Likewise.
6070         * modules/uninorm/nfkd-tests: Likewise.
6071         * modules/uninorm/u8-normcmp-tests: Likewise.
6072         * modules/uninorm/u8-normcoll-tests: Likewise.
6073         * modules/uninorm/u16-normcmp-tests: Likewise.
6074         * modules/uninorm/u16-normcoll-tests: Likewise.
6075         * modules/uninorm/u32-normcmp-tests: Likewise.
6076         * modules/uninorm/u32-normcoll-tests: Likewise.
6077         * modules/unistdio/u8-asnprintf-tests: Likewise.
6078         * modules/unistdio/u8-vasnprintf-tests: Likewise.
6079         * modules/unistdio/u8-vasprintf-tests: Likewise.
6080         * modules/unistdio/u8-vsnprintf-tests: Likewise.
6081         * modules/unistdio/u8-vsprintf-tests: Likewise.
6082         * modules/unistdio/u16-asnprintf-tests: Likewise.
6083         * modules/unistdio/u16-vasnprintf-tests: Likewise.
6084         * modules/unistdio/u16-vasprintf-tests: Likewise.
6085         * modules/unistdio/u16-vsnprintf-tests: Likewise.
6086         * modules/unistdio/u16-vsprintf-tests: Likewise.
6087         * modules/unistdio/u32-asnprintf-tests: Likewise.
6088         * modules/unistdio/u32-vasnprintf-tests: Likewise.
6089         * modules/unistdio/u32-vasprintf-tests: Likewise.
6090         * modules/unistdio/u32-vsnprintf-tests: Likewise.
6091         * modules/unistdio/u32-vsprintf-tests: Likewise.
6092         * modules/unistdio/ulc-asnprintf-tests: Likewise.
6093         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
6094         * modules/unistdio/ulc-vasprintf-tests: Likewise.
6095         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
6096         * modules/unistdio/ulc-vsprintf-tests: Likewise.
6097         * modules/unistr/u8-check-tests: Likewise.
6098         * modules/unistr/u8-chr-tests: Likewise.
6099         * modules/unistr/u8-cmp-tests: Likewise.
6100         * modules/unistr/u8-cmp2-tests: Likewise.
6101         * modules/unistr/u8-cpy-alloc-tests: Likewise.
6102         * modules/unistr/u8-cpy-tests: Likewise.
6103         * modules/unistr/u8-mblen-tests: Likewise.
6104         * modules/unistr/u8-mbsnlen-tests: Likewise.
6105         * modules/unistr/u8-mbtouc-tests: Likewise.
6106         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
6107         * modules/unistr/u8-mbtoucr-tests: Likewise.
6108         * modules/unistr/u8-move-tests: Likewise.
6109         * modules/unistr/u8-next-tests: Likewise.
6110         * modules/unistr/u8-prev-tests: Likewise.
6111         * modules/unistr/u8-set-tests: Likewise.
6112         * modules/unistr/u8-stpcpy-tests: Likewise.
6113         * modules/unistr/u8-stpncpy-tests: Likewise.
6114         * modules/unistr/u8-strcat-tests: Likewise.
6115         * modules/unistr/u8-strcmp-tests: Likewise.
6116         * modules/unistr/u8-strcoll-tests: Likewise.
6117         * modules/unistr/u8-strcpy-tests: Likewise.
6118         * modules/unistr/u8-strdup-tests: Likewise.
6119         * modules/unistr/u8-strlen-tests: Likewise.
6120         * modules/unistr/u8-strmblen-tests: Likewise.
6121         * modules/unistr/u8-strmbtouc-tests: Likewise.
6122         * modules/unistr/u8-strncat-tests: Likewise.
6123         * modules/unistr/u8-strncmp-tests: Likewise.
6124         * modules/unistr/u8-strncpy-tests: Likewise.
6125         * modules/unistr/u8-strnlen-tests: Likewise.
6126         * modules/unistr/u8-to-u16-tests: Likewise.
6127         * modules/unistr/u8-to-u32-tests: Likewise.
6128         * modules/unistr/u8-uctomb-tests: Likewise.
6129         * modules/unistr/u16-check-tests: Likewise.
6130         * modules/unistr/u16-chr-tests: Likewise.
6131         * modules/unistr/u16-cmp-tests: Likewise.
6132         * modules/unistr/u16-cmp2-tests: Likewise.
6133         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6134         * modules/unistr/u16-cpy-tests: Likewise.
6135         * modules/unistr/u16-mblen-tests: Likewise.
6136         * modules/unistr/u16-mbsnlen-tests: Likewise.
6137         * modules/unistr/u16-mbtouc-tests: Likewise.
6138         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6139         * modules/unistr/u16-mbtoucr-tests: Likewise.
6140         * modules/unistr/u16-move-tests: Likewise.
6141         * modules/unistr/u16-next-tests: Likewise.
6142         * modules/unistr/u16-prev-tests: Likewise.
6143         * modules/unistr/u16-set-tests: Likewise.
6144         * modules/unistr/u16-stpcpy-tests: Likewise.
6145         * modules/unistr/u16-stpncpy-tests: Likewise.
6146         * modules/unistr/u16-strcat-tests: Likewise.
6147         * modules/unistr/u16-strcmp-tests: Likewise.
6148         * modules/unistr/u16-strcoll-tests: Likewise.
6149         * modules/unistr/u16-strcpy-tests: Likewise.
6150         * modules/unistr/u16-strdup-tests: Likewise.
6151         * modules/unistr/u16-strlen-tests: Likewise.
6152         * modules/unistr/u16-strmblen-tests: Likewise.
6153         * modules/unistr/u16-strmbtouc-tests: Likewise.
6154         * modules/unistr/u16-strncat-tests: Likewise.
6155         * modules/unistr/u16-strncmp-tests: Likewise.
6156         * modules/unistr/u16-strncpy-tests: Likewise.
6157         * modules/unistr/u16-strnlen-tests: Likewise.
6158         * modules/unistr/u16-to-u32-tests: Likewise.
6159         * modules/unistr/u16-to-u8-tests: Likewise.
6160         * modules/unistr/u16-uctomb-tests: Likewise.
6161         * modules/unistr/u32-check-tests: Likewise.
6162         * modules/unistr/u32-chr-tests: Likewise.
6163         * modules/unistr/u32-cmp-tests: Likewise.
6164         * modules/unistr/u32-cmp2-tests: Likewise.
6165         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6166         * modules/unistr/u32-cpy-tests: Likewise.
6167         * modules/unistr/u32-mblen-tests: Likewise.
6168         * modules/unistr/u32-mbsnlen-tests: Likewise.
6169         * modules/unistr/u32-mbtouc-tests: Likewise.
6170         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6171         * modules/unistr/u32-mbtoucr-tests: Likewise.
6172         * modules/unistr/u32-move-tests: Likewise.
6173         * modules/unistr/u32-next-tests: Likewise.
6174         * modules/unistr/u32-prev-tests: Likewise.
6175         * modules/unistr/u32-set-tests: Likewise.
6176         * modules/unistr/u32-stpcpy-tests: Likewise.
6177         * modules/unistr/u32-stpncpy-tests: Likewise.
6178         * modules/unistr/u32-strcat-tests: Likewise.
6179         * modules/unistr/u32-strcmp-tests: Likewise.
6180         * modules/unistr/u32-strcoll-tests: Likewise.
6181         * modules/unistr/u32-strcpy-tests: Likewise.
6182         * modules/unistr/u32-strdup-tests: Likewise.
6183         * modules/unistr/u32-strlen-tests: Likewise.
6184         * modules/unistr/u32-strmblen-tests: Likewise.
6185         * modules/unistr/u32-strmbtouc-tests: Likewise.
6186         * modules/unistr/u32-strncat-tests: Likewise.
6187         * modules/unistr/u32-strncmp-tests: Likewise.
6188         * modules/unistr/u32-strncpy-tests: Likewise.
6189         * modules/unistr/u32-strnlen-tests: Likewise.
6190         * modules/unistr/u32-to-u16-tests: Likewise.
6191         * modules/unistr/u32-to-u8-tests: Likewise.
6192         * modules/unistr/u32-uctomb-tests: Likewise.
6193         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6194         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6195         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6196         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6197         * modules/uniwidth/u8-strwidth-tests: Likewise.
6198         * modules/uniwidth/u8-width-tests: Likewise.
6199         * modules/uniwidth/u16-strwidth-tests: Likewise.
6200         * modules/uniwidth/u16-width-tests: Likewise.
6201         * modules/uniwidth/u32-strwidth-tests: Likewise.
6202         * modules/uniwidth/u32-width-tests: Likewise.
6203         * modules/uniwidth/width-tests: Likewise.
6204
6205 2010-05-18  Richard Jones  <rjones@redhat.com>
6206
6207         doc: users.txt: list hivex
6208         * users.txt: Add hivex.
6209
6210 2010-05-18  Richard Jones  <rjones@redhat.com>
6211
6212         doc: users.txt: list febootstrap
6213         * users.txt: Add febootstrap.
6214
6215 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6216
6217         bootstrap: fix an error when gnulib is not used as a git submodule
6218         * build-aux/bootstrap (gnulib_path): If its length is zero then
6219         assign "gnulib" to it.
6220         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6221
6222 2010-05-16  Bruno Haible  <bruno@clisp.org>
6223
6224         Avoid autoconf warnings about AM_ICONV.
6225         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6226         2.64.
6227
6228 2010-05-16  Bruno Haible  <bruno@clisp.org>
6229
6230         absolute-header: Make the macro usable in more situations.
6231         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6232         from gl_ABSOLUTE_HEADER.
6233         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6234
6235 2010-05-16  James Youngman  <jay@gnu.org>
6236
6237         doc: update users.txt
6238         * users.txt: Add CSSC.
6239
6240 2010-05-16  Jim Meyering  <meyering@redhat.com>
6241
6242         init.sh: fix an error in the previous change; add more comments
6243         * tests/init.sh: Compare exit code in loop against 9, not 2.
6244         Patch by Bruno Haible.
6245         Make the two tests more similar by adding an empty "then" clause.
6246         Add comments.
6247
6248         init.sh: avoid unnecessary shell re-exec
6249         * tests/init.sh: Improve the re-exec-required check to first test the
6250         current shell.  If it passes the test, do not search for a shell that
6251         does pass, and do not re-exec.  This test is particularly contorted to
6252         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6253         of $(...) evokes a syntax error and causes immediate shell exit with
6254         status 2.  Bruno Haible reported that the re-exec made it impossible
6255         to single-step through any init.sh-using script.
6256
6257 2010-05-16  Bruno Haible  <bruno@clisp.org>
6258
6259         Fix collision between gnulib's and libintl's printf replacements.
6260         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6261         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6262         (printf): When using GNU C, map the __printf__ function to rpl_printf
6263         via __asm__. When not using GNU C, define rpl_printf instead of
6264         __printf__.
6265         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6266         commit.
6267         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6268         commit.
6269         * m4/asm-underscore.m4: New file.
6270         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6271         * modules/stdio (Files): Add m4/asm-underscore.m4.
6272         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6273         Reported by Ben Pfaff.
6274
6275 2010-05-16  Bruno Haible  <bruno@clisp.org>
6276
6277         verify: Avoid skipping the test on openSUSE 11.0.
6278         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6279
6280 2010-05-13  Bruno Haible  <bruno@clisp.org>
6281
6282         Avoid useless warnings from G++.
6283         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6284         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6285         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6286
6287 2010-05-11  Jim Meyering  <meyering@redhat.com>
6288
6289         maint.mk: tweak preceding change
6290         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6291         regexps tighter by anchoring at EOL, and make the new group "shy"
6292         for slightly decreased overhead.
6293
6294 2010-05-11  Eric Blake  <eblake@redhat.com>
6295
6296         maint.mk: gnulib doesn't guarantee NSIG
6297         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6298
6299 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6300
6301         test-pwrite.c: Remove unused variable declaration.
6302         * tests/test-pwrite.c (main): Remove read_buf declaration.
6303
6304         Remove useless test-pwrite.sh file.
6305         * tests/test-pwrite.sh: Delete file.
6306         * modules/pwrite-tests: Remove references.
6307         Reported by Bruno Haible.
6308
6309 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6310
6311         init.sh: fix a typo
6312         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6313
6314 2010-05-10  Jim Meyering  <meyering@redhat.com>
6315
6316         maint.mk: avoid using a temporary file in the always-defined-macros check
6317         * top/maint.mk (.re-defmac): Remove rule.
6318         (gl_trap_): Remove definition.
6319         (sc_prohibit_always-defined_macros): Rewrite not to create and
6320         depend on a temporary file.  Instead, depend on GNU grep's ability
6321         to read a list of regular expressions from stdin when given "-f -".
6322
6323 2010-05-09  Bruno Haible  <bruno@clisp.org>
6324
6325         Update to GNU gettext 0.18, part 1.
6326         * m4/gettext.m4: Update to GNU gettext 0.18.
6327         * m4/intl.m4: Likewise.
6328         * m4/po.m4: Likewise.
6329         * modules/gettext (Files): Add m4/fcntl-o.m4.
6330         (configure.ac): Require gettext infrastructure from version 0.18.
6331
6332 2010-05-09  Jim Meyering  <meyering@redhat.com>
6333
6334         init.sh: enable MALLOC_PERTURB_
6335         * tests/init.sh: Enable glibc's malloc-perturbing option.
6336
6337         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6338         With my recent change in init.sh from the two-line form:
6339             -#   : ${srcdir=.}
6340             -#   . "$srcdir/init.sh"; path_prepend_ .
6341             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6342         I noticed that using the one-line form would cause this test
6343         to fail with a false-positive, or to stop working altogether,
6344         depending on whether help-version changed or all the tests did.
6345         * top/maint.mk (_hv_regex): Remove this definition.
6346         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6347         (_hv_regex_strong): Use a stronger regex to check for conformance.
6348         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6349         Give a separate diagnostic for lack of conforming use.
6350
6351         maint.mk: prohibit definition of symbols defined by gnulib
6352         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6353         definition of symbols defined by gnulib.
6354
6355 2010-05-09  Bruno Haible  <bruno@clisp.org>
6356
6357         acl: Avoid test failure on Cygwin-hosted mingw.
6358         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6359
6360 2010-05-09  Bruno Haible  <bruno@clisp.org>
6361
6362         error: Use system's fcntl function.
6363         * lib/error.c (fcntl): Undefine.
6364
6365 2010-05-09  Jim Meyering  <meyering@redhat.com>
6366
6367         verify: adjust formatting to be more consistent
6368         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6369         argument-list '('s, and after one comma.
6370
6371 2010-05-09  Bruno Haible  <bruno@clisp.org>
6372
6373         error: More reliable output on mingw.
6374         * lib/error.c: Include <windows.h>.
6375         (is_open): New function.
6376         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6377         defined.
6378
6379 2010-05-09  Bruno Haible  <bruno@clisp.org>
6380
6381         vasnprintf: Fix syntax errors in libintl build on mingw.
6382         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6383         pad_ourselves and prec_ourselves after use.
6384
6385 2010-05-08  Bruno Haible  <bruno@clisp.org>
6386
6387         * lib/config.charset: Update comments for Cygwin 1.7.
6388         * lib/localcharset.c: Likewise.
6389
6390 2010-05-07  Jim Meyering  <meyering@redhat.com>
6391
6392         init.sh: improve comments
6393         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6394         . "${srcdir=.}/init.sh"; path_prepend_ .
6395         Add a note about path_prepend_ and the alternative of using
6396         TESTS_ENVIRONMENT.
6397
6398 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6399
6400         exclude: Unescape hashed patterns in wildcard mode.
6401         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6402         to the hash list.
6403         * tests/test-exclude8.sh: New test case.
6404         * modules/exclude-tests: Add new test.
6405
6406 2010-05-05  Eric Blake  <eblake@redhat.com>
6407
6408         verify: automate tests
6409         * modules/verify-tests: New module.
6410         * tests/test-verify.sh: New file.
6411         * tests/test-verify.c: Guard each negative test with a unique id.
6412         Also avoid warning about unused left hand of comma expressions.
6413
6414 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6415
6416         Further improvements to verify.h, suggested by Eric Blake.
6417         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6418         the GL_* versions, to avoid collision with OpenGL.
6419         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6420         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6421         than testing merely whether it's defined.
6422
6423         Modify verify.h to pacify gcc -Wredundant_decls.
6424         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6425         These use the prefix "GL_" since they're likely to be useful elsewhere.
6426         We may need to break them out into a different .h file.
6427         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6428         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6429         of verify_function__.
6430
6431 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6432
6433         Tests for module pwrite.
6434         * modules/pwrite-tests: New file.
6435         * tests/test-pwrite.sh: New file.
6436         * tests/test-pwrite.c: New file.
6437
6438         New module pwrite.
6439         * lib/unistd.in.h (pwrite): New declaration.
6440         * lib/pwrite.c: New file, from glibc with modifications.
6441         * m4/pwrite.m4: New file.
6442         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6443         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6444         REPLACE_PWRITE.
6445         * modules/pwrite: New file.
6446         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6447         REPLACE_PWRITE.
6448         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6449         * doc/posix-functions/pwrite.texi: Mention the new module.
6450
6451 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6452
6453         pread: Update documentation.
6454         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6455
6456 2010-05-04  Eric Blake  <eblake@redhat.com>
6457
6458         docs: update cygwin progress
6459         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6460         this bug.
6461         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6462         Added in cygwin 1.7.2.
6463         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6464         Likewise.
6465         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6466         Likewise.
6467         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6468         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6469         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6470         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6471         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6472         Mention nproc module.
6473         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6474         bug in cygwin 1.7.5 addition.
6475         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6476         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6477         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6478         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6479         1.7.5.
6480         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6481         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6482         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6483         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6484         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6485         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6486         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6487         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6488         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6489         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6490         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6491         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6492         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6493         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6494         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6495         Likewise.
6496         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6497         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6498         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6499         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6500         Likewise.
6501         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6502         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6503         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6504         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6505         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6506         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6507         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6508         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6509         Likewise.
6510         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6511         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6512         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6513         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6514         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6515         Likewise.
6516         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6517         Likewise.
6518         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6519         Likewise.
6520         * doc/glibc-functions/xdrrec_endofrecord.texi
6521         (xdrrec_endofrecord): Likewise.
6522         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6523         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6524         Likewise.
6525         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6526         Likewise.
6527
6528 2010-05-04  Jim Meyering  <meyering@redhat.com>
6529
6530         gendocs.sh: make its "-s FILE" option more useful
6531         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6532         $PACKAGE to reflect the probably-different basename of "FILE".
6533
6534 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6535
6536         bootstrap: don't ignore download_po_files failure
6537         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6538         failure.
6539
6540 2010-05-03  Jim Meyering  <meyering@redhat.com>
6541
6542         maint.mk: allow to pass options to gendocs.sh
6543         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6544         (gendocs_options_): New overridable variable.
6545
6546         gnu-web-doc-update: don't ignore configure or build failure
6547         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6548
6549         announce-gen: backslash-escape '@'s in --help output
6550         * build-aux/announce-gen: Fix syntax errors.
6551
6552         maint.mk, announce-gen: allow project-specific announcement mail headers
6553         * top/maint.mk (translation_project_): Define default.
6554         (announcement_Cc_, announcement_mail_headers_): Likewise.
6555         (announcement): Invoke announce-gen with new --mail-headers option.
6556         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6557
6558         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6559         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6560         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6561         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6562         line in the "err2" output file when running "make check" in verbose
6563         mode (i.e., with set -x enabled).
6564
6565 2010-05-03  Bruno Haible  <bruno@clisp.org>
6566
6567         wctob: Fix for weird platforms.
6568         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6569         argument value.
6570
6571 2010-05-03  Jim Meyering  <meyering@redhat.com>
6572
6573         maint.mk: prohibit unwarranted use of <strings.h>
6574         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6575         strings.h in a file that does not also use strcasecmp, strncasecmp,
6576         ffs or ffsll.
6577
6578         maint.mk: remove obsolete comments
6579         * top/maint.mk: Remove stale, commented-out rules.
6580
6581 2010-05-02  Bruno Haible  <bruno@clisp.org>
6582
6583         wcwidth: Declare also when it's aliased.
6584         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6585         macro.
6586
6587 2010-05-02  Bruno Haible  <bruno@clisp.org>
6588
6589         Fix regression from 2010-04-25.
6590         * gnulib-tool (func_modules_transitive_closure): Check the status of
6591         all modules, not only of the tests that are of the form foo-tests where
6592         foo is a module.
6593
6594 2010-05-02  Bruno Haible  <bruno@clisp.org>
6595
6596         wctob: Work around nasty Cygwin 1.7.2 bug.
6597         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6598         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6599
6600 2010-05-01  Bruno Haible  <bruno@clisp.org>
6601
6602         fpurge: Sharper test.
6603         * tests/test-fpurge.c (main): Add one more ftell check.
6604         * modules/fpurge-tests (Depends-on): Add ftell.
6605         Suggested by Eric Blake.
6606
6607 2010-05-01  Bruno Haible  <bruno@clisp.org>
6608
6609         ftello: Another test.
6610         * tests/test-ftello3.c: New file.
6611         * modules/ftello-tests (Files): Add it.
6612         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6613         MOSTLYCLEANFILES.
6614
6615         ftell: Another test.
6616         * tests/test-ftell3.c: New file.
6617         * modules/ftell-tests (Files): Add it.
6618         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6619         MOSTLYCLEANFILES.
6620
6621 2010-05-01  Bruno Haible  <bruno@clisp.org>
6622
6623         ftell, ftello: Work around Solaris bug.
6624         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6625         * lib/ftello.c: Include stdio-impl.h.
6626         (ftello): On Solaris, when _IOWRT is set, compute the result without
6627         looking at _IOREAD.
6628         * modules/ftello (Files): Add lib/stdio-impl.h.
6629         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6630         * doc/posix-functions/ftello.texi: Likewise.
6631         Reported by Eric Blake.
6632
6633 2010-05-01  Bruno Haible  <bruno@clisp.org>
6634
6635         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6636         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6637         the _IOWRT flag is also set.
6638
6639 2010-05-01  Bruno Haible  <bruno@clisp.org>
6640
6641         Fix doc about a HP-UX stdio bug.
6642         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6643         * doc/posix-functions/ftello.texi: Likewise.
6644
6645 2010-05-01  Bruno Haible  <bruno@clisp.org>
6646
6647         lseek test: Fix failure on Solaris.
6648         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6649         output.
6650
6651 2010-04-30  Jim Meyering  <meyering@redhat.com>
6652
6653         bootstrap: don't ignore failure to generate po*/Makevars
6654         * build-aux/bootstrap (with_gettext): Don't ignore failure
6655         to create po/Makevars or runtime-po/Makevars.
6656
6657 2010-04-29  Eric Blake  <eblake@redhat.com>
6658
6659         headers: relax license to LGPLv2+
6660         * modules/fcntl-h (License): Relax license.
6661         * modules/getopt-posix (License): Likewise.
6662         * modules/locale (License): Likewise.
6663         * modules/math (License): Likewise.
6664         * modules/pty (License): Likewise.
6665         * modules/sched (License): Likewise.
6666         * modules/search (License): Likewise.
6667         * modules/spawn (License): Likewise.
6668         * modules/stdarg (License): Likewise.
6669         * modules/sysexits (License): Likewise.
6670
6671 2010-04-29  Jim Meyering  <meyering@redhat.com>
6672
6673         inttypes: relax license to LGPLv2+
6674         * modules/inttypes (License): Relax license.
6675
6676 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6677
6678         * top/maint.mk (indent): Run twice to produce idempotent results.
6679
6680 2010-04-28  Bruno Haible  <bruno@clisp.org>
6681
6682         getdate: Generate getdate.c in the source directory.
6683         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6684         MOSTLYCLEANFILES.
6685         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6686
6687 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6688
6689         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6690         is not declared as a const *; avoid warnings in that case.
6691
6692 2010-04-28  Eric Blake  <eblake@redhat.com>
6693
6694         canonicalize-lgpl: avoid compiler warning
6695         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6696         declaration' / 'extraneous semicolon' warning with some compilers.
6697         Reported by Andreas Gruenbacher.
6698
6699 2010-04-28  Jim Meyering  <meyering@redhat.com>
6700
6701         init.sh: ensure a more reliable exit status when exiting via trap
6702         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6703         Inspired by patches from Dmitry V. Levin.
6704         Also trap on signal 3 (SIGQUIT).
6705
6706 2010-04-27  Bruno Haible  <bruno@clisp.org>
6707
6708         Update doc about utimes().
6709         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6710         'utimens' module.
6711         Reported by Andreas Gruenbacher <agruen@suse.de>.
6712
6713 2010-04-27  Eric Blake  <eblake@redhat.com>
6714
6715         full-read, full-write: relax license
6716         * modules/full-read (License): Drop to LGPLv2+.
6717         * modules/full-write (License): Likewise.
6718         * modules/safe-read (License): Likewise.
6719         * modules/safe-write (License): Likewise.
6720
6721         pthread: mention library for linking
6722         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6723
6724 2010-04-27  Jim Meyering  <meyering@redhat.com>
6725
6726         maint.mk: fix a bug introduced in last change
6727         * top/maint.mk (gl_assured_headers_): Now that all names are on
6728         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6729         is not anchored to end of word, it should be adequate.
6730
6731         maint.mk: avoid side-effect in latest syntax-check
6732         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6733         to run commands via $(shell...), and hence to incur cost only when
6734         the new rule is actually run.
6735
6736         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6737         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6738         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6739         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6740         (gl_assured_headers_, az_, AZ_): Define.
6741         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6742
6743 2010-04-26  Jim Meyering  <jim@meyering.net>
6744             Bruno Haible  <bruno@clisp.org>
6745
6746         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6747         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6748         Prompted by an exchange with Gilles Espinasse.
6749
6750 2010-04-26  Jim Meyering  <meyering@redhat.com>
6751
6752         git-version-gen: aesthetic tweak
6753         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6754         so that the command remains on a single line.
6755
6756 2010-04-26  Eric Blake  <eblake@redhat.com>
6757
6758         git-version-gen: allow use on EBCDIC hosts
6759         * build-aux/git-version-gen (dirty): Use literal rather than tying
6760         ourselves to ascii.
6761         Reported by Steve Goetze.
6762
6763 2010-04-25  Bruno Haible  <bruno@clisp.org>
6764
6765         netdb: Add support for GNULIB_POSIXCHECK.
6766         * lib/netdb.in.h: Include warn-on-use.h.
6767         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6768         functions are used when GNULIB_POSIXCHECK is defined and the
6769         getaddrinfo module is not in use.
6770         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6771         freeaddrinfo, gai_strerror, getnameinfo are declared.
6772         * modules/netdb (Depends-on): Add warn-on-use.
6773         (Makefile.am): Include warn-on-use.h in netdb.h.
6774
6775 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6776
6777         build: avoid "make check" failure without .git/ directory
6778         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6779         there is no .git/ directory.
6780
6781 2010-04-25  Bruno Haible  <bruno@clisp.org>
6782
6783         ptsname: Fix misuse of ttyname_r.
6784         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6785         of errno.
6786
6787 2010-04-25  Bruno Haible  <bruno@clisp.org>
6788
6789         ttyname_r: Make it work on Solaris 10.
6790         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6791         if the system function has the POSIX declaration. Test whether the
6792         function fails if the buffer is less than 128 bytes large.
6793         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6794         system's ttyname_r function. Provide a reasonably large buffer.
6795         * modules/ttyname_r (Depends-on): Add extensions.
6796         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6797
6798 2010-04-25  Bruno Haible  <bruno@clisp.org>
6799
6800         Use the 'extensions' module for some more functions on Solaris.
6801         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6802         module.
6803         * doc/posix-functions/ctime_r.texi: Likewise.
6804         * doc/posix-functions/getgrgid_r.texi: Likewise.
6805         * doc/posix-functions/getgrnam_r.texi: Likewise.
6806         * doc/posix-functions/getpwnam_r.texi: Likewise.
6807         * doc/posix-functions/getpwuid_r.texi: Likewise.
6808         * doc/posix-functions/readdir_r.texi: Likewise.
6809         * doc/posix-functions/sigwait.texi: Likewise.
6810         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6811         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6812
6813 2010-04-25  Bruno Haible  <bruno@clisp.org>
6814
6815         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6816         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6817         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6818         * lib/ttyname_r.c: Include <limits.h>.
6819         (ttyname_r): Define using the system's ttyname_r function, if it exists
6820         and not on Solaris.
6821         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6822         set.
6823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6824         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6825         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6826         Reported by Simon Josefsson.
6827
6828 2010-04-25  Bruno Haible  <bruno@clisp.org>
6829
6830         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6831         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6832         * doc/posix-functions/ctime_r.texi: Likewise.
6833         * doc/posix-functions/getgrgid_r.texi: Likewise.
6834         * doc/posix-functions/getgrnam_r.texi: Likewise.
6835         * doc/posix-functions/getlogin_r.texi: Likewise.
6836         * doc/posix-functions/getpwnam_r.texi: Likewise.
6837         * doc/posix-functions/getpwuid_r.texi: Likewise.
6838         * doc/posix-functions/readdir_r.texi: Likewise.
6839         * doc/posix-functions/sigwait.texi: Likewise.
6840         * doc/posix-functions/ttyname_r.texi: Likewise.
6841         Reported by Simon Josefsson.
6842
6843 2010-04-25  Bruno Haible  <bruno@clisp.org>
6844
6845         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6846         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6847         also to --create-testdir.
6848         (func_acceptable): Don't consider the status of *-tests modules here.
6849         (func_modules_transitive_closure): Consider it here, before including a
6850         test module.
6851         (func_import, func_create_testdir): Set inc_all_direct_tests,
6852         inc_all_indirect_tests.
6853         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6854         --create-testdir and --create-megatestdir.
6855
6856 2010-04-25  Bruno Haible  <bruno@clisp.org>
6857
6858         gnulib-tool: Add --without-*-tests options.
6859         * gnulib-tool (func_usage): Document the --without-*-tests options.
6860         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6861         excl_unportable_tests): New variables.
6862         Fail if they are specified with --import or --update.
6863         (func_acceptable): Respect the excl_*_tests variables.
6864         (func_import): Set the excl_*_tests variables to empty.
6865
6866 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6867             Bruno Haible  <bruno@clisp.org>
6868
6869         Work around a MacOS X 10.4 bug with openpty.
6870         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6871         * tests/test-openpty.c (main): Close the master side explicitly.
6872
6873 2010-04-25  Bruno Haible  <bruno@clisp.org>
6874
6875         strnlen: Fix a C++ test error on MacOS X and Solaris.
6876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6877         the function is not declared.
6878         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6879         Simon Josefsson.
6880
6881 2010-04-24  Bruno Haible  <bruno@clisp.org>
6882
6883         Avoid a gcc warning.
6884         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6885         of correct type for %08lx directive.
6886         Reported by Eric Blake.
6887
6888 2010-04-24  Bruno Haible  <bruno@clisp.org>
6889
6890         vasnprintf: Correct errno value in case of out-of-memory.
6891         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6892         or sprintf. Use the errno value from SNPRINTF or sprintf.
6893         Reported by Ian Beckwith <ianb@erislabs.net>.
6894
6895 2010-04-24  Bruno Haible  <bruno@clisp.org>
6896
6897         ansi-c++-opt: Find correct compiler when cross-compiling.
6898         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6899         AC_CHECK_PROGS.
6900         Reported by Simon Josefsson.
6901
6902 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6903
6904         vc-list-files: Add support for subversion
6905         * build-aux/vc-list-files: Use "svn list" to generate the list of
6906         files controlled by subversion.
6907
6908 2010-04-23  Jim Meyering  <meyering@redhat.com>
6909
6910         vc-list-files tests: convert to use init.sh
6911         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6912         path_prepend_.
6913         Use Exit, not exit.
6914         Use skip_ rather than open coding it.
6915         Remove trap set-up and compare definitions.
6916         * tests/test-vc-list-files-git.sh: Likewise.
6917         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6918
6919 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6920
6921         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6922         backup files.
6923
6924 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6925
6926         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6927
6928 2010-04-20  Eric Blake  <eblake@redhat.com>
6929
6930         tests: be robust to ignored SIGPIPE
6931         * tests/test-select-in.sh: Consume all output.
6932         * tests/test-lseek.sh: Check correct exit status, while avoiding
6933         EPIPE.
6934
6935 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6936             Bruno Haible  <bruno@clisp.org>
6937
6938         visibility: Don't use -fvisibility if it leads to a warning.
6939         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6940         yes, don't pretend that visibility works if it leads to a warning.
6941         Reported by Mike Gran <spk121@yahoo.com>.
6942
6943 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6944
6945         * build-aux/bootstrap: Use "git -h" for testing for supported options
6946         instead of "git --help".  The short-form option only shows a summary,
6947         and doesn't layout the full man page.  Grep for the full option name
6948         in the summary, too.
6949
6950 2010-04-19  Bruno Haible  <bruno@clisp.org>
6951
6952         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6953         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6954         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6955         mention of RELOCATABLE_STRIP.
6956         Reported by Sylvain Beucler <beuc@beuc.net>.
6957
6958 2010-04-19  Bruno Haible  <bruno@clisp.org>
6959
6960         * lib/diffseq.h: Fix typo in comment.
6961         Reported by Eric Blake.
6962
6963 2010-04-19  Bruno Haible  <bruno@clisp.org>
6964
6965         ioctl: Move autoconf macro to a .m4 file.
6966         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6967         * modules/ioctl (Files): Add it.
6968         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6969         Reported by Ian Beckwith <ianb@erislabs.net>.
6970
6971 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6972             Bruno Haible  <bruno@clisp.org>
6973
6974         diffseq: Accommodate use-case with abstract arrays.
6975         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6976         is not defined.
6977         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6978         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6979
6980 2010-04-18  Bruno Haible  <bruno@clisp.org>
6981
6982         * doc/posix-headers/stdbool.texi: More precise wording.
6983
6984 2010-04-17  Jim Meyering  <meyering@redhat.com>
6985
6986         maint.mk: use gnu-style indentation in an embedded perl script
6987         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6988         Rename variable: s/two/last_two_bytes/
6989
6990 2010-04-16  Eric Blake  <eblake@redhat.com>
6991
6992         test-stdbool: skip test that fails with Solaris CC
6993         * tests/test-stdbool.c (f): Skip test that causes compilation
6994         error under buggy C++ compiler.
6995         * lib/stdbool.in.h: Document the limitation.
6996         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6997
6998         setenv: allow compilation with C++
6999         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
7000         register keyword.
7001
7002         stdint: allow test to pass with C++
7003         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
7004
7005         getopt: allow compilation with C++
7006         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
7007         struct.
7008         * lib/getopt.c (_getopt_internal_r): Use correct type.
7009         Reported by Dagobert Michelson, via Joel E. Denny.
7010
7011 2010-04-16  Bruno Haible  <bruno@clisp.org>
7012
7013         Override netdb.h always.
7014         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
7015         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
7016         Reported by Ludovic Courtès <ludo@gnu.org>.
7017
7018 2010-04-15  Bruno Haible  <bruno@clisp.org>
7019
7020         openpty: Fix mistake from 2010-03-21.
7021         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
7022         Reported by Simon Josefsson.
7023
7024 2010-04-15  Eric Blake  <eblake@redhat.com>
7025
7026         test-forkpty: fix expected signature
7027         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
7028         Reported by Simon Josefsson.
7029
7030 2010-04-15  Jim Meyering  <meyering@redhat.com>
7031
7032         maint.mk: texinfo_suffix_re_: correct the default regexp
7033         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
7034
7035         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
7036         make it configurable via texinfo_suffix_re_.
7037
7038 2010-04-14  Eric Blake  <eblake@redhat.com>
7039
7040         strtok_r: relax license to LGPLv2+
7041         * modules/strtok_r (License): Relax license.
7042         Reported by Matthias Bolte.
7043
7044 2010-04-14  Simon Josefsson  <simon@josefsson.org>
7045
7046         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
7047         version 1.4.4 by default instead of requiring the libgcrypt
7048         version used during build.  This makes it possible to use the
7049         application with older but still binary compatible libgcrypt
7050         versions.
7051
7052 2010-04-13  Eric Blake  <eblake@redhat.com>
7053
7054         getopt-gnu: match recent glibc fixes and posix ruling
7055         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
7056         '+' handling, when requesting extensions.
7057         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
7058         'W;' handling.
7059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
7060         * doc/posix-functions/getopt.texi (getopt): Document this.
7061         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7062         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7063         Likewise.
7064
7065         getopt: merge bug fixes from glibc
7066         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
7067         diagnostics.  Honor '+:' correctly.  Reject ';'.
7068
7069         getopt-posix: detect MacOS bug
7070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
7071         optind when missing a required argument.
7072         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7073         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7074         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7075         Likewise.
7076
7077         getopt-posix: avoid spurious failure on Solaris
7078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
7079         an indicator that setting optind=1 is sufficient for reset.
7080
7081         getopt-posix: avoid spurious failure on FreeBSD
7082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
7083         in POSIX mode, since the m4 test uses it.
7084
7085         gnulib-tool: silence warning on BSD sh
7086         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
7087
7088 2010-04-13  Jim Meyering  <meyering@redhat.com>
7089
7090         doc: users.txt: GNU patch now uses gnulib
7091         * users.txt: Add patch.
7092
7093 2010-04-12  Jim Meyering  <meyering@redhat.com>
7094
7095         maint.mk: generate more concise timing data for syntax-check rules
7096         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
7097         " done" from each line that reports a syntax-check test duration.
7098
7099 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
7100
7101         git-version-gen: use "git update-index..." rather than "git status"
7102         * build-aux/git-version-gen: Use git update-index --refresh, not
7103         "git status".  With some versions of git, "git status" would fail
7104         to update the index and result in an unwarranted "-dirty" suffix.
7105
7106 2010-04-11  Jim Meyering  <meyering@redhat.com>
7107
7108         openat: correct formatting (no semantic change)
7109         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
7110         Suggested by Bruno Haible.
7111
7112 2010-04-11  Bruno Haible  <bruno@clisp.org>
7113
7114         Stricter declaration checking in testdirs.
7115         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7116         If for_tests is true, augment AM_CPPFLAGS to define
7117         GNULIB_STRICT_CHECKING.
7118         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7119         GNULIB_STRICT_CHECKING is defined, verify that the function is
7120         declared.
7121
7122 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7123             Bruno Haible  <bruno@clisp.org>
7124
7125         libunistring: Improve configure output.
7126         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7127         Don't say "consider installing GNU libunistring" when checking again
7128         with libiconv.
7129
7130 2010-04-11  Bruno Haible  <bruno@clisp.org>
7131
7132         libunistring: Correct value of $LTLIBUNISTRING.
7133         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7134         correct the value of $LTLIBUNISTRING.
7135
7136 2010-04-11  Bruno Haible  <bruno@clisp.org>
7137
7138         havelib: Add static libraries to LIBS in the right order.
7139         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7140         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7141
7142 2010-04-11  Bruno Haible  <bruno@clisp.org>
7143
7144         libunistring: Detect libunistring also when it depends on libiconv.
7145         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7146         the second AC_LIB_HAVE_LINKFLAGS invocation.
7147
7148 2010-04-11  James Youngman  <jay@gnu.org>
7149
7150         close-stream: declare local scalars to be "const"
7151         * lib/close-stream.c (close_stream): Make boolean variables const
7152         to document the fact that we set but do not change them.
7153
7154 2010-04-11  Bruno Haible  <bruno@clisp.org>
7155
7156         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7157
7158 2010-04-11  Jim Meyering  <meyering@redhat.com>
7159
7160         maint.mk: don't include dist-check.mk
7161         * top/maint.mk: Remove bogus include directive.
7162
7163         maint.mk: improve empty-line-at-EOF check
7164         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7165         solution, rather than tail+Perl-based one.  The latter would read
7166         a few kilobytes from the end of each file, and did not handle empty
7167         files properly.
7168
7169         maint.mk: print the elapsed time for each syntax-check rule
7170         * top/maint.mk (sc_m_rules_): Save start time in a file.
7171         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7172         (local-check): Interpose the .z rules
7173
7174 2010-04-11  Jim Meyering  <meyering@redhat.com>
7175
7176         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7177         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7178         empty file with one that ends in an empty line.
7179
7180 2010-04-10  Bruno Haible  <bruno@clisp.org>
7181
7182         mkdir: Make it work on mingw64.
7183         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7184         * lib/mkdir.c: Update comment.
7185         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7186
7187 2010-04-10  Bruno Haible  <bruno@clisp.org>
7188
7189         Don't override improved macro from newer autoconf.
7190         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7191         autoconf >= 2.62.
7192         Reported by Joel E. Denny <jdenny@clemson.edu>.
7193
7194 2010-04-10  Jim Meyering  <meyering@redhat.com>
7195
7196         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7197         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7198
7199         maint.mk: correct a diagnostic
7200         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7201         in diagnostic; now use $prohibit.
7202
7203 2010-04-10  Bruno Haible  <address@hidden>
7204
7205         fchownat: Fix a C++ test error on Solaris 8.
7206         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7207         the function does not exist.
7208
7209 2010-04-10  Bruno Haible  <bruno@clisp.org>
7210
7211         vasnprintf: Add more tests.
7212         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7213         (test_function): Test converting an invalid wide string.
7214
7215         vasnprintf: Correct handling of unconvertible wide string arguments.
7216         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7217         VASNPRINTF.
7218         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7219         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7220         smaller than the expected maximum need for the directive. Set errno to
7221         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7222         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7224         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7225         * modules/vasnprintf (Files): Add m4/printf.m4.
7226         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7227
7228 2010-04-10  Bruno Haible  <bruno@clisp.org>
7229
7230         vasnprintf: Fix crash in %ls directive.
7231         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7232         string is passed as argument to %ls, with no precision and no width.
7233         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7234
7235 2010-04-10  Bruno Haible  <bruno@clisp.org>
7236
7237         vasnprintf: Fix multiple test failures on mingw.
7238         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7239         _snprintf, or snwprintf, not _snwprintf.
7240
7241 2010-04-10  Bruno Haible  <bruno@clisp.org>
7242
7243         write: Fix a C++ test error on mingw.
7244         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7245
7246 2010-04-10  Bruno Haible  <bruno@clisp.org>
7247
7248         vasnprintf test: Reduce code duplication.
7249         * tests/test-vasnprintf.c (test_function): New function, extracted from
7250         test_vasnprintf.
7251         (test_vasnprintf, test_asnprintf): Invoke it.
7252
7253 2010-04-10  Bruno Haible  <bruno@clisp.org>
7254
7255         strnlen: Fix warning in C++ mode on MacOS X.
7256         * lib/string.in.h (strnlen): Use the modern idiom.
7257         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7258         defining strnlen as a macro already in <config.h>.
7259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7260         REPLACE_STRNLEN.
7261         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7262         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7263
7264 2010-04-08  James Youngman  <jay@gnu.org>
7265
7266         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7267         the example.
7268
7269 2010-04-09  Jim Meyering  <meyering@redhat.com>
7270
7271         maint.mk: print better diagnostic when there is no $(_hv_file)
7272         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7273         announce that when $(_hv_file) (aka help-version) does not exist.
7274
7275         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7276         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7277         not try to interpret its random input bytes.  Jarno Rajahalme reported
7278         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7279         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7280         (mktempd_): Likewise, just in case.
7281
7282         ftruncate: add two years to projected module removal date: 2012
7283         * m4/ftruncate.m4: Adjust comments.
7284
7285         ftruncate: mark module as obsolete; even MinGW provides it, now
7286         * modules/ftruncate (Status): Obsolete.
7287         (Notice): Say that.
7288         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7289         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7290
7291 2010-04-08  Bruno Haible  <bruno@clisp.org>
7292
7293         Fix side effects from tests-related modules.
7294         * modules/dprintf-posix (Comment): New section.
7295         * modules/fprintf-posix (Comment): Likewise.
7296         * modules/obstack-printf-posix (Comment): Likewise.
7297         * modules/printf-posix (Comment): Likewise.
7298         * modules/snprintf-posix (Comment): Likewise.
7299         * modules/sprintf-posix (Comment): Likewise.
7300         * modules/vasnprintf-posix (Comment): Likewise.
7301         * modules/vasprintf-posix (Comment): Likewise.
7302         * modules/vdprintf-posix (Comment): Likewise.
7303         * modules/vfprintf-posix (Comment): Likewise.
7304         * modules/vprintf-posix (Comment): Likewise.
7305         * modules/vsnprintf-posix (Comment): Likewise.
7306         * modules/vsprintf-posix (Comment): Likewise.
7307         * modules/xprintf-posix (Comment): Likewise.
7308         * modules/xvasprintf-posix (Comment): Likewise.
7309         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7310         * modules/floorf-tests (Depends-on): Likewise.
7311         * modules/round-tests (Depends-on): Likewise.
7312         * modules/roundf-tests (Depends-on): Likewise.
7313         * modules/trunc-tests (Depends-on): Likewise.
7314         * modules/truncf-tests (Depends-on): Likewise.
7315         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7316         'fprintf-posix' module is not present.
7317         * tests/test-floorf2.c (check): Likewise.
7318         * tests/test-trunc2.c (check): Likewise.
7319         * tests/test-truncf2.c (check): Likewise.
7320         * tests/test-round2.c (equal): Likewise.
7321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7322
7323 2010-04-07  Karl Berry  <karl@gnu.org>
7324
7325         * config/srclist.txt,
7326         * config/srclistvars.sh,
7327         * config/srclist-update: doc fixes.
7328
7329 2010-04-07  Jim Meyering  <meyering@redhat.com>
7330
7331         maint.mk: add a PATH crosschecking syntax-check rule
7332         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7333         Useful if you use a test like the one in help-version (coreutils,
7334         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7335         printed by prog --version.
7336
7337 2010-04-06  Bruno Haible  <bruno@clisp.org>
7338
7339         Fix link error on mingw.
7340         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7341         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7342
7343 2010-04-06  Bruno Haible  <bruno@clisp.org>
7344
7345         Assume rmdir exists.
7346         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7347
7348 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7349
7350         doc: update users.txt
7351         * users.txt: Add gcal.
7352
7353 2010-04-06  Jim Meyering  <meyering@redhat.com>
7354
7355         init.sh: simply unset TMPDIR rather than risking env -i
7356         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7357         although it probably works fine on all Unix-based systems, some
7358         systems (Cygwin?) cannot tolerate a totally cleared environment.
7359         Suggestion from Eric Blake.
7360
7361 2010-04-06  Jim Meyering  <meyering@redhat.com>
7362
7363         init.sh: portability fix: use env's POSIX-specified -i option not -u
7364         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7365         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7366
7367 2010-04-05  Bruno Haible  <bruno@clisp.org>
7368
7369         btowc: Work around Cygwin 1.7.2 bug.
7370         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7371         does not map NUL to 0.
7372         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7373
7374 2010-04-05  Bruno Haible  <bruno@clisp.org>
7375
7376         Make the multithread modules work on Cygwin 1.7.2.
7377         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7378         imported symbols can be declared weak, so that it returns "no" on
7379         Cygwin 1.7.2.
7380
7381 2010-04-05  Bruno Haible  <bruno@clisp.org>
7382
7383         Use the module 'strncat'.
7384         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7385
7386         Tests for module 'strncat'.
7387         * modules/strncat-tests: New file.
7388         * tests/test-strncat.c: New file.
7389
7390         New module 'strncat'.
7391         * lib/string.in.h (strncat): New declaration.
7392         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7393         * m4/strncat.m4: New file, based on m4/memchr.m4.
7394         * modules/strncat: New file.
7395         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7396         is declared.
7397         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7398         REPLACE_STRNCAT.
7399         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7400         REPLACE_STRNCAT.
7401         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7402         module.
7403         * tests/test-string-c++.cc: Check signature of strncat.
7404
7405 2010-04-05  Jim Meyering  <meyering@redhat.com>
7406
7407         xstrtoumax-tests: convert to use init.sh
7408         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7409         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7410         Use Exit, not exit.
7411         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7412
7413         xstrtoimax-tests: convert to use init.sh
7414         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7415         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7416         Use Exit, not exit.
7417         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7418
7419 2010-04-05  Bruno Haible  <bruno@clisp.org>
7420
7421         sys_socket: Avoid #define replacements in C++ mode.
7422         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7423         warning to the function if possible, rather than #defining the symbol
7424         to a dysfunctional alias.
7425
7426 2010-04-05  Bruno Haible  <bruno@clisp.org>
7427
7428         fseeko: Fix C++ test error on mingw.
7429         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7430         gl_FUNC_FSEEKO.
7431         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7432         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7433         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7434         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7435
7436 2010-04-05  Bruno Haible  <bruno@clisp.org>
7437
7438         duplocale: Improve test output.
7439         * tests/test-duplocale.c (main): Print reason for skipped test.
7440
7441 2010-04-05  Bruno Haible  <bruno@clisp.org>
7442
7443         Assume rmdir exists.
7444         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7445         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7446
7447 2010-04-05  Bruno Haible  <bruno@clisp.org>
7448
7449         Fix link error on Solaris 8 with cc.
7450         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7451
7452 2010-04-05  Bruno Haible  <bruno@clisp.org>
7453
7454         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7455         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7456
7457 2010-04-05  Bruno Haible  <bruno@clisp.org>
7458
7459         vasprintf: Update documentation.
7460         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7461
7462 2010-04-05  Bruno Haible  <bruno@clisp.org>
7463
7464         ptsname: Improve test.
7465         * tests/test-ptsname.c (main): Also try the various master names of BSD
7466         systems.
7467
7468 2010-04-05  Bruno Haible  <bruno@clisp.org>
7469
7470         memchr: Avoid a possible C++ test error.
7471         * lib/string.in.h (memchr): Provide declaration if function is missing.
7472         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7473         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7475         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7476
7477 2010-04-05  Bruno Haible  <bruno@clisp.org>
7478
7479         strtok_r: Improve idiom.
7480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7481         AC_LIBOBJ is used.
7482
7483 2010-04-05  Bruno Haible  <bruno@clisp.org>
7484
7485         strdup: Improve idiom.
7486         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7487         AC_LIBOBJ is used.
7488         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7489         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7490         when AC_LIBOBJ is used.
7491
7492 2010-04-05  Bruno Haible  <bruno@clisp.org>
7493
7494         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7495         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7496         don't set REPLACE_MBSINIT to 1.
7497         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7498         don't set REPLACE_MBRTOWC to 1.
7499         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7500         exist, don't set REPLACE_MBSRTOWCS to 1.
7501         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7502         exist, don't set REPLACE_MBSNRTOWCS to 1.
7503         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7504         don't set REPLACE_WCRTOMB to 1.
7505         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7506         exist, don't set REPLACE_WCSRTOMBS to 1.
7507         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7508         exist, don't set REPLACE_WCSNRTOMBS to 1.
7509
7510 2010-04-05  Bruno Haible  <bruno@clisp.org>
7511
7512         ldexpl: Improve idiom.
7513         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7514         make sure to set HAVE_DECL_LDEXPL to 0.
7515
7516 2010-04-05  Jim Meyering  <meyering@redhat.com>
7517
7518         xstrtol-tests: convert to use init.sh
7519         * modules/xstrtol-tests (Files): Add tests/init.sh.
7520         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7521         Use Exit, not exit.
7522         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7523
7524         atexit-tests: convert to use init.sh
7525         * modules/atexit-tests (Files): Add tests/init.sh.
7526         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7527         Use Exit, not exit.
7528         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7529
7530         init.sh: fix typo
7531         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7532
7533         init.sh: make it easier for a test script to write to the tty, ...
7534         when using automake's parallel-tests mode.
7535         * tests/init.sh (stderr_fileno_): Define overridable variable.
7536         (warn_): New function, to use it.
7537         (fail_, skip_, framework_failure_): Use warn_.
7538
7539 2010-04-04  Bruno Haible  <bruno@clisp.org>
7540
7541         btowc: Avoid warning.
7542         * lib/btowc.c: Include <stdlib.h>.
7543         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7544
7545 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7546             Bruno Haible  <bruno@clisp.org>
7547
7548         wchar: Port to NetBSD 1.5.
7549         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7550         * lib/wctype.in.h (WEOF): Likewise.
7551
7552 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7553             Bruno Haible  <bruno@clisp.org>
7554
7555         Port extended stdio to NetBSD 1.5.
7556         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7557         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7558         older.
7559
7560 2010-04-04  Bruno Haible  <bruno@clisp.org>
7561
7562         string: Remove unused substitution.
7563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7564         HAVE_DECL_STRERROR.
7565         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7566
7567 2010-04-04  Bruno Haible  <bruno@clisp.org>
7568
7569         strtod: Avoid a possible C++ test error.
7570         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7571         set REPLACE_STRTOD.
7572
7573 2010-04-04  Bruno Haible  <bruno@clisp.org>
7574
7575         strerror: Update documentation.
7576         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7577
7578 2010-04-04  Bruno Haible  <bruno@clisp.org>
7579
7580         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7581         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7582         _GL_CXXALIAS_SYS_CAST.
7583
7584 2010-04-04  Bruno Haible  <bruno@clisp.org>
7585
7586         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7587         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7588         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7589         REPLACE_FREXPL to 1.
7590         * doc/posix-functions/frexpl.texi: Update documentation.
7591
7592 2010-04-04  Bruno Haible  <bruno@clisp.org>
7593
7594         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7595         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7596
7597 2010-04-04  Bruno Haible  <bruno@clisp.org>
7598
7599         Implement nanosleep for native Windows.
7600         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7601
7602 2010-04-04  Bruno Haible  <bruno@clisp.org>
7603
7604         math: Fix some C++ test errors on Solaris 8.
7605         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7606
7607 2010-04-04  Bruno Haible  <bruno@clisp.org>
7608
7609         math: Fix some C++ test errors on Cygwin.
7610         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7611         truncl): Provide declaration if the system does not have it.
7612         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7613         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7614         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7615         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7616         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7617         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7618         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7619         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7620         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7621         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7622         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7623         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7624         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7625         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7626         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7627         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7629         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7630         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7631         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7632         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7633         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7634
7635 2010-04-04  Bruno Haible  <bruno@clisp.org>
7636
7637         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7638         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7639         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7640         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7641         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7642         * m4/isinf.m4 (gl_ISINF): Likewise.
7643         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7644
7645 2010-04-04  Bruno Haible  <bruno@clisp.org>
7646
7647         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7648         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7649
7650 2010-04-04  Bruno Haible  <bruno@clisp.org>
7651
7652         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7653         * modules/tmpfile (configure.ac): Update.
7654
7655         tmpfile: Fix C++ test error on mingw.
7656         * lib/stdio.in.h (tmpfile): New declaration.
7657         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7658         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7659         * modules/tmpfile (Depends-on): Add stdio.
7660         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7661         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7662         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7663         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7664         REPLACE_TMPFILE.
7665         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7666
7667 2010-04-04  Bruno Haible  <bruno@clisp.org>
7668
7669         ioctl: Fix C++ test error on mingw.
7670         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7671         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7672         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7673
7674 2010-04-03  Bruno Haible  <bruno@clisp.org>
7675
7676         wcwidth: Fix C++ test error on mingw.
7677         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7679         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7680
7681 2010-04-03  Bruno Haible  <bruno@clisp.org>
7682
7683         nanosleep: Fix C++ test error on mingw.
7684         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7685         * lib/time.in.h (nanosleep): Use modern idiom.
7686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7687         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7688         REPLACE_NANOSLEEP to 1.
7689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7690         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7691
7692 2010-04-03  Bruno Haible  <bruno@clisp.org>
7693
7694         strptime: Fix C++ test error on mingw.
7695         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7696         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7697         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7698         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7700         not REPLACE_STRPTIME.
7701         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7702         REPLACE_STRPTIME.
7703
7704 2010-04-03  Bruno Haible  <bruno@clisp.org>
7705
7706         timegm: Fix C++ test error on mingw.
7707         * lib/time.in.h (timegm): Use modern idiom.
7708         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7709         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7710         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7711         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7712
7713 2010-04-03  Bruno Haible  <bruno@clisp.org>
7714
7715         timegm: Assume declaration if function exists.
7716         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7717         if it exists. Don't clobber ac_cv_func_timegm.
7718
7719 2010-04-03  Bruno Haible  <bruno@clisp.org>
7720
7721         time_r: Fix C++ test error on mingw.
7722         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7723         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7724         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7725         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7726         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7727
7728 2010-04-03  Bruno Haible  <bruno@clisp.org>
7729
7730         time_r: Minor updates.
7731         * modules/time_r (Description): Mention the provided functions.
7732         * lib/time_r.c: Don't include <string.h>.
7733         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7734         * doc/posix-functions/localtime_r.texi: Likewise.
7735
7736 2010-04-03  Bruno Haible  <bruno@clisp.org>
7737
7738         time: Fix regression introduced on 2010-03-08.
7739         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7740         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7741
7742 2010-04-03  Jim Meyering  <meyering@redhat.com>
7743
7744         maint.mk: don't silently disable project-specific syntax-check rules
7745         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7746         that they need to convert their project-specific syntax-check rules
7747         to use the new _sc_search_regexp.
7748
7749 2010-04-03  Bruno Haible  <bruno@clisp.org>
7750
7751         fchdir: Fix regression introduced on 2010-03-08.
7752         * lib/unistd.in.h (fchdir): Fix declaration.
7753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7755         REPLACE_FCHDIR.
7756         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7757         REPLACE_FCHDIR.
7758
7759 2010-04-03  Bruno Haible  <bruno@clisp.org>
7760
7761         getpagesize: Fix C++ test error on mingw.
7762         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7763         system does not declare the function.
7764         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7765         declared.
7766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7767         HAVE_DECL_GETPAGESIZE.
7768         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7769
7770 2010-04-03  Bruno Haible  <bruno@clisp.org>
7771
7772         stdio: Make C++ tests work on mingw.
7773         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7774         does not declare the function.
7775
7776 2010-04-03  Bruno Haible  <bruno@clisp.org>
7777
7778         ftello: Fix C++ test error on mingw.
7779         * lib/stdio.in.h (ftello): Use modern idiom.
7780         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7781         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7782         is missing and that it needs to be replaced.
7783         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7785         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7786
7787 2010-04-03  Bruno Haible  <bruno@clisp.org>
7788
7789         fseeko: Fix C++ test error on mingw.
7790         * lib/stdio.in.h (fseeko): Use modern idiom.
7791         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7793         is missing and that it needs to be replaced.
7794         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7796         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7797
7798 2010-04-03  Bruno Haible  <bruno@clisp.org>
7799
7800         mkstemp: Fix C++ test error on mingw.
7801         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7802         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7803         function is missing and that it needs to be replaced.
7804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7805         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7806
7807 2010-04-03  Bruno Haible  <bruno@clisp.org>
7808
7809         stpncpy: Fix C++ test error on mingw.
7810         * lib/string.in.h (stpncpy): Use modern idiom.
7811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7812         function is missing and that it needs to be replaced.
7813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7814         REPLACE_STPNCPY.
7815         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7816
7817 2010-04-03  Bruno Haible  <bruno@clisp.org>
7818
7819         sys_stat: Fix C++ test error on mingw.
7820         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7821         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7822
7823 2010-04-03  Bruno Haible  <bruno@clisp.org>
7824
7825         pty: Update doc.
7826         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7827
7828 2010-04-03  Bruno Haible  <bruno@clisp.org>
7829
7830         unistd: Fix C++ test error on mingw.
7831         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7832
7833 2010-04-03  Bruno Haible  <bruno@clisp.org>
7834
7835         Update doc regarding mingw.
7836         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7837         * doc/glibc-functions/login_tty.texi: Likewise.
7838         * doc/glibc-functions/forkpty.texi: Likewise.
7839
7840 2010-04-03  Bruno Haible  <bruno@clisp.org>
7841
7842         stdlib: Avoid compilation failure of c-strtold on mingw.
7843         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7844
7845 2010-04-03  Bruno Haible  <bruno@clisp.org>
7846
7847         locale: Make C++ tests work on Cygwin and mingw.
7848         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7849         cannot provide the function.
7850         Reported by Simon Josefsson.
7851
7852 2010-04-03  Bruno Haible  <bruno@clisp.org>
7853
7854         localename: Port to MacOS X 10.6.
7855         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7856         memory layout of the locales in MacOS X 10.6 as well.
7857         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7858
7859 2010-04-02  Bruno Haible  <bruno@clisp.org>
7860
7861         gnulib-tool: Ensure that long-running tests are executed last.
7862         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7863         running tests after the one for the other tests.
7864
7865 2010-04-02  Bruno Haible  <bruno@clisp.org>
7866
7867         gnulib-tool: Ensure the tests in the main directory are executed first.
7868         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7869         start with the current directory.
7870
7871 2010-04-02  Bruno Haible  <bruno@clisp.org>
7872
7873         Tests for module 'havelib', moved here from GNU gettext.
7874         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7875         modifications.
7876         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7877         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7878         with modifications.
7879         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7880         modifications.
7881         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7882         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7883         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7884         with modifications.
7885         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7886         with modifications.
7887         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7888         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7889         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7890         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7891         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7892         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7893         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7894         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7895         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7896         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7897         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7898         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7899         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7900         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7901         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7902         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7903         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7904         with modifications.
7905         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7906         with modifications.
7907         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7908         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7909         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7910         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7911         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7912         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7913         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7914         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7915         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7916         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7917         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7918         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7919         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7920         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7921         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7922         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7923         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7924         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7925         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7926         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7927         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7928         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7929         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7930         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7931         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7932         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7933         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7934         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7935         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7936         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7937         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7938         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7939         * tests/havelib/rpathx/rpathx.c: New file, from
7940         gettext/autoconf-lib-link.
7941         * tests/havelib/rpathx/Makefile.am: New file, from
7942         gettext/autoconf-lib-link.
7943         * tests/havelib/rpathx/configure.ac: New file, from
7944         gettext/autoconf-lib-link with modifications.
7945         * tests/havelib/rpathy/rpathy.c: New file, from
7946         gettext/autoconf-lib-link.
7947         * tests/havelib/rpathy/Makefile.am: New file, from
7948         gettext/autoconf-lib-link.
7949         * tests/havelib/rpathy/configure.ac: New file, from
7950         gettext/autoconf-lib-link with modifications.
7951         * tests/havelib/rpathz/rpathz.c: New file, from
7952         gettext/autoconf-lib-link.
7953         * tests/havelib/rpathz/Makefile.am: New file, from
7954         gettext/autoconf-lib-link.
7955         * tests/havelib/rpathz/configure.ac: New file, from
7956         gettext/autoconf-lib-link with modifications.
7957         * tests/havelib/rpathlx/usex.c: New file, from
7958         gettext/autoconf-lib-link.
7959         * tests/havelib/rpathlx/Makefile.am: New file, from
7960         gettext/autoconf-lib-link.
7961         * tests/havelib/rpathlx/configure.ac: New file, from
7962         gettext/autoconf-lib-link with modifications.
7963         * tests/havelib/rpathly/usey.c: New file, from
7964         gettext/autoconf-lib-link.
7965         * tests/havelib/rpathly/Makefile.am: New file, from
7966         gettext/autoconf-lib-link.
7967         * tests/havelib/rpathly/configure.ac: New file, from
7968         gettext/autoconf-lib-link with modifications.
7969         * tests/havelib/rpathlz/usez.c: New file, from
7970         gettext/autoconf-lib-link.
7971         * tests/havelib/rpathlz/Makefile.am: New file, from
7972         gettext/autoconf-lib-link.
7973         * tests/havelib/rpathlz/configure.ac: New file, from
7974         gettext/autoconf-lib-link with modifications.
7975         * tests/havelib/rpathlyx/usey.c: New file, from
7976         gettext/autoconf-lib-link.
7977         * tests/havelib/rpathlyx/Makefile.am: New file, from
7978         gettext/autoconf-lib-link.
7979         * tests/havelib/rpathlyx/configure.ac: New file, from
7980         gettext/autoconf-lib-link with modifications.
7981         * tests/havelib/rpathlzyx/usez.c: New file, from
7982         gettext/autoconf-lib-link.
7983         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7984         gettext/autoconf-lib-link.
7985         * tests/havelib/rpathlzyx/configure.ac: New file, from
7986         gettext/autoconf-lib-link with modifications.
7987         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7988         with modifications.
7989
7990 2010-04-02  Bruno Haible  <bruno@clisp.org>
7991
7992         gnulib-tool: Create distributed built sources also for the tests.
7993         * gnulib-tool (func_create_testdir): Also generate distributed built
7994         sources in the tests directory.
7995
7996 2010-04-02  Bruno Haible  <bruno@clisp.org>
7997
7998         gnulib-tool: Obey user's environment variables.
7999         * gnulib-tool (func_create_testdir): When creating built sources,
8000         respect the environment variables for autoconf, automake, etc. given by
8001         the user.
8002
8003 2010-04-02  Bruno Haible  <bruno@clisp.org>
8004
8005         gnulib-tool: Provide the value of --m4-base to modules.
8006         * gnulib-tool (func_import, func_create_testdir): Emit a definition
8007         of gl_m4_base.
8008
8009 2010-04-02  Eric Blake  <eblake@redhat.com>
8010
8011         maint.mk: fix some fallout
8012         * NEWS: Document the incompatible change, and its effect on cfg.mk.
8013         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
8014
8015 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8016
8017         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
8018         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
8019         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
8020         (sc_cast_of_x_alloc_return_value): Likewise.
8021         (sc_cast_of_alloca_return_value): Likewise.
8022         (sc_space_tab): Likewise.
8023         (sc_prohibit_atoi_atof): Likewise.
8024         (sc_prohibit_magic_number_exit): Likewise.
8025         (sc_error_exit_success): Likewise.
8026         (sc_file_system): Likewise.
8027         (sc_prohibit_have_config_h): Likewise.
8028         (sc_require_config_h): Likewise.
8029         (sc_prohibit_HAVE_MBRTOWC): Likewise.
8030         (sc_obsolete_symbols): Likewise.
8031         (sc_changelog): Likewise.
8032         (sc_program_name): Likewise.
8033         (sc_the_the): Likewise.
8034         (sc_trailing_blank): Likewise.
8035         (sc_two_space_separator_in_usage): Likewise.
8036         (sc_useless_cpp_parens): Likewise.
8037         (sc_GPL_version): Likewise.
8038         (sc_GFDL_version): Likewise.
8039         (sc_texinfo_acronym): Likewise.
8040         (sc_prohibit_cvs_keyword): Likewise.
8041         (sc_prohibit_stat_st_blocks): Likewise.
8042         (sc_prohibit_S_IS_definition): Likewise.
8043         (sc_redundant_const): Likewise.
8044         (sc_makefile_TAB_only_indentation): Likewise.
8045         (sc_m4_quote_check): Likewise.
8046         (sc_makefile_path_separator_check): Likewise.
8047         (sc_copyright_check): Likewise.
8048         (sc_Wundef_boolean): Likewise.
8049         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8050
8051         maint.mk: match 0 or more whitespace-before-function-call '('
8052         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
8053         that have zero or two-and-more spaces between the function name
8054         and the open parenthesis.
8055         (sc_error_message_warn_fatal): Likewise.
8056         (sc_error_message_uppercase): Likewise.
8057         (sc_error_message_period): Likewise.
8058
8059 2010-03-31  Eric Blake  <eblake@redhat.com>
8060
8061         maint.mk: check for [ as well as test
8062         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
8063         Based on a libvirt report by Matthias Bolte.
8064
8065         gnumakefile: don't squelch _version output
8066         * top/GNUmakefile (_version): Create one-shot dependency rather
8067         than using $(shell) when version must be regenerated.
8068         (_autoreconf): Run verbosely, by default.
8069
8070         sys_time: avoid compiler warnings
8071         * lib/sys_time.in.h (includes): Ensure gcc pragma is
8072         unconditional, fixing regression from 2010-03-29.
8073         Reported by Simon Josefsson.
8074
8075 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8076
8077         maint.mk: s/_header_without_use/_sc_header_without_use/
8078         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
8079         (sc_prohibit_assert_without_use): Use the new name.
8080         (sc_prohibit_close_stream_without_use): Likewise.
8081         (sc_prohibit_getopt_without_use): Likewise.
8082         (sc_prohibit_quotearg_without_use): Likewise.
8083         (sc_prohibit_quote_without_use): Likewise.
8084         (sc_prohibit_long_options_without_use): Likewise.
8085         (sc_prohibit_inttostr_without_use): Likewise.
8086         (sc_prohibit_ignore_value_without_use): Likewise.
8087         (sc_prohibit_error_without_use): Likewise.
8088         (sc_prohibit_xalloc_without_use): Likewise.
8089         (sc_prohibit_hash_without_use): Likewise.
8090         (sc_prohibit_hash_pjw_without_use): Likewise.
8091         (sc_prohibit_safe_read_without_use): Likewise.
8092         (sc_prohibit_argmatch_without_use): Likewise.
8093         (sc_prohibit_canonicalize_without_use): Likewise.
8094         (sc_prohibit_root_dev_ino_without_use): Likewise.
8095         (sc_prohibit_openat_without_use): Likewise.
8096         (sc_prohibit_c_ctype_without_use): Likewise.
8097         (sc_prohibit_signal_without_use): Likewise.
8098         (sc_prohibit_intprops_without_use): Likewise.
8099
8100 2010-03-30  Eric Blake  <eblake@redhat.com>
8101
8102         maint: improve module indicators
8103         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
8104         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
8105         columns, and avoid extra macro expansion.
8106
8107         fdopendir: work around FreeBSD bug
8108         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
8110         * modules/dirent (Makefile.am): Substitute it.
8111         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8112         declaration.
8113         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
8114         fix.
8115         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8116
8117 2010-03-29  Bruno Haible  <bruno@clisp.org>
8118
8119         Emit #pragma system_header after the inclusion guard, not before.
8120         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8121         guard that spans the entire file, not before. This enables an
8122         optimization in GCC's preprocessor.
8123         * lib/ctype.in.h: Likewise.
8124         * lib/dirent.in.h: Likewise.
8125         * lib/errno.in.h: Likewise.
8126         * lib/float.in.h: Likewise.
8127         * lib/getopt.in.h: Likewise.
8128         * lib/iconv.in.h: Likewise.
8129         * lib/langinfo.in.h: Likewise.
8130         * lib/locale.in.h: Likewise.
8131         * lib/math.in.h: Likewise.
8132         * lib/netdb.in.h: Likewise.
8133         * lib/netinet_in.in.h: Likewise.
8134         * lib/pty.in.h: Likewise.
8135         * lib/sched.in.h: Likewise.
8136         * lib/se-selinux.in.h: Likewise.
8137         * lib/search.in.h: Likewise.
8138         * lib/spawn.in.h: Likewise.
8139         * lib/stdarg.in.h: Likewise.
8140         * lib/stdint.in.h: Likewise.
8141         * lib/string.in.h: Likewise.
8142         * lib/strings.in.h: Likewise.
8143         * lib/sys_file.in.h: Likewise.
8144         * lib/sys_ioctl.in.h: Likewise.
8145         * lib/sys_time.in.h: Likewise.
8146         * lib/sys_times.in.h: Likewise.
8147         * lib/sys_utsname.in.h: Likewise.
8148         * lib/sys_wait.in.h: Likewise.
8149         * lib/sysexits.in.h: Likewise.
8150         * lib/wctype.in.h: Likewise.
8151
8152 2010-03-28  James Youngman  <jay@gnu.org>
8153
8154         save-cwd: don't leak a file descriptor when the caller execs.
8155         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8156         saved file descriptor.
8157         * modules/save-cwd (Depends-on): Depend on cloexec.
8158
8159 2010-03-29  Bruno Haible  <bruno@clisp.org>
8160
8161         Remove vestiges of fts-lgpl module.
8162         * lib/fts_.h: Assume GNULIB_FTS is 1.
8163         * lib/fts.c: Likewise.
8164         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8165
8166 2010-03-28  Bruno Haible  <bruno@clisp.org>
8167
8168         Fix definition of tests witness macro.
8169         * gnulib-tool (func_import): Fix definition of witness macro.
8170
8171 2010-03-28  Bruno Haible  <bruno@clisp.org>
8172
8173         Fix ioctl's protoype on glibc systems.
8174         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8175         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8176         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8177         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8178         signature. If not, arrange to replace the ioctl function.
8179         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8180         REPLACE_IOCTL.
8181         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8182         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8183         Reported by Ludovic Courtès <ludo@gnu.org>.
8184
8185 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8186
8187         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8188         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8189         made it so grep -r --include=GLOB* ... did not work.
8190
8191 2010-03-26  Jim Meyering  <meyering@redhat.com>
8192             Eric Blake  <eblake@redhat.com>
8193
8194         maint.mk: prohibit use of test's -o and -a operators
8195         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8196
8197 2010-03-28  Bruno Haible  <bruno@clisp.org>
8198
8199         Remove unused GNULIB_XYZ macro definitions.
8200         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8201         invocation.
8202
8203 2010-03-28  Bruno Haible  <bruno@clisp.org>
8204
8205         Mark privileged tests modules.
8206         * modules/idpriv-drop-tests (Status): New section.
8207         * modules/idpriv-droptemp-tests (Status): New section.
8208
8209 2010-03-28  Bruno Haible  <bruno@clisp.org>
8210
8211         Split C++ tests into separate tests modules.
8212         * modules/dirent-c++-tests: New file, extracted from
8213         modules/dirent-tests.
8214         * modules/dirent-tests: Depend on it.
8215         * modules/fcntl-h-c++-tests: New file, extracted from
8216         modules/fcntl-h-tests.
8217         * modules/fcntl-h-tests: Depend on it.
8218         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8219         * modules/glob-tests: Depend on it.
8220         * modules/iconv-h-c++-tests: New file, extracted from
8221         modules/iconv-h-tests.
8222         * modules/iconv-h-tests: Depend on it.
8223         * modules/langinfo-c++-tests: New file, extracted from
8224         modules/langinfo-tests.
8225         * modules/langinfo-tests: Depend on it.
8226         * modules/locale-c++-tests: New file, extracted from
8227         modules/locale-tests.
8228         * modules/locale-tests: Depend on it.
8229         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8230         * modules/math-tests: Depend on it.
8231         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8232         * modules/pty-tests: Depend on it.
8233         * modules/search-c++-tests: New file, extracted from
8234         modules/search-tests.
8235         * modules/search-tests: Depend on it.
8236         * modules/signal-c++-tests: New file, extracted from
8237         modules/signal-tests.
8238         * modules/signal-tests: Depend on it.
8239         * modules/spawn-c++-tests: New file, extracted from
8240         modules/spawn-tests.
8241         * modules/spawn-tests: Depend on it.
8242         * modules/stdio-c++-tests: New file, extracted from
8243         modules/stdio-tests.
8244         * modules/stdio-tests: Depend on it.
8245         * modules/stdlib-c++-tests: New file, extracted from
8246         modules/stdlib-tests.
8247         * modules/stdlib-tests: Depend on it.
8248         * modules/string-c++-tests: New file, extracted from
8249         modules/string-tests.
8250         * modules/string-tests: Depend on it.
8251         * modules/sys_ioctl-c++-tests: New file, extracted from
8252         modules/sys_ioctl-tests.
8253         * modules/sys_ioctl-tests: Depend on it.
8254         * modules/sys_select-c++-tests: New file, extracted from
8255         modules/sys_select-tests.
8256         * modules/sys_select-tests: Depend on it.
8257         * modules/sys_socket-c++-tests: New file, extracted from
8258         modules/sys_socket-tests.
8259         * modules/sys_socket-tests: Depend on it.
8260         * modules/sys_stat-c++-tests: New file, extracted from
8261         modules/sys_stat-tests.
8262         * modules/sys_stat-tests: Depend on it.
8263         * modules/sys_time-c++-tests: New file, extracted from
8264         modules/sys_time-tests.
8265         * modules/sys_time-tests: Depend on it.
8266         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8267         * modules/time-tests: Depend on it.
8268         * modules/unistd-c++-tests: New file, extracted from
8269         modules/unistd-tests.
8270         * modules/unistd-tests: Depend on it.
8271         * modules/wchar-c++-tests: New file, extracted from
8272         modules/wchar-tests.
8273         * modules/wchar-tests: Depend on it.
8274         * modules/wctype-c++-tests: New file, extracted from
8275         modules/wctype-tests.
8276         * modules/wctype-tests: Depend on it.
8277         Reported by Simon Josefsson.
8278
8279 2010-03-28  Bruno Haible  <bruno@clisp.org>
8280
8281         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8282         * gnulib-tool (func_exists_module): New function, extracted from
8283         func_verify_module.
8284         (func_verify_module): Use it.
8285         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8286         'foo' only if 'foo' exists.
8287         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8288         module.
8289
8290 2010-03-28  Bruno Haible  <bruno@clisp.org>
8291
8292         gnulib-tool: Add support for special categories of tests.
8293         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8294         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8295         (func_usage): Document them.
8296         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8297         inc_unportable_tests, inc_all_tests): New variables.
8298         (func_acceptable): Consider these variables.
8299         (func_modules_transitive_closure): Make it work when the 'Status' field
8300         consists of multiple words.
8301         (func_import): Store and restore the values of inc_cxx_tests,
8302         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8303         inc_all_tests in gnulib-comp.m4.
8304         (func_create_testdir): Set inc_all_tests to true.
8305         * doc/gnulib.texi (Extra tests modules): New section.
8306         Suggested by Jim Meyering.
8307
8308 2010-03-28  Bruno Haible  <bruno@clisp.org>
8309
8310         ansi-c++-opt: Allow turning off the C++ build by default.
8311         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8312         gl_CXX_CHOICE_DEFAULT_NO is defined.
8313         Requested by Eric Blake.
8314
8315 2010-03-28  Bruno Haible  <bruno@clisp.org>
8316
8317         unistd: Avoid #define replacements in C++ mode.
8318         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8319         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8320         setsockopt, shutdown, select): In C++, attach a warning to the function
8321         if possible, rather than #defining the symbol to a dysfunctional alias.
8322         Reported by John W. Eaton <jwe@gnu.org>.
8323
8324 2010-03-28  Bruno Haible  <bruno@clisp.org>
8325
8326         Fix link errors on mingw.
8327         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8328         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8329         $(LIBSOCKET).
8330         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8331         $(LIBSOCKET).
8332
8333 2010-03-28  Bruno Haible  <bruno@clisp.org>
8334             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8335
8336         lib-ignore: Determine different options for different compilers.
8337         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8338         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8339         Add comments.
8340         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8341         * NEWS: Mention the change.
8342
8343 2010-03-27  Bruno Haible  <bruno@clisp.org>
8344
8345         Remove unused GNULIB_XYZ macro definitions.
8346         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8347         * modules/fseek (configure.ac): Likewise.
8348         * modules/ioctl (configure.ac): Likewise.
8349         * modules/open (configure.ac): Likewise.
8350         * modules/stdlib-safer (configure.ac): Likewise.
8351
8352 2010-03-27  Bruno Haible  <bruno@clisp.org>
8353
8354         Add a remark about certain modules.
8355         * modules/malloc (Comment): New section.
8356         * modules/realloc (Comment): Likewise.
8357         * modules/sigpipe (Comment): Likewise.
8358
8359 2010-03-27  Bruno Haible  <bruno@clisp.org>
8360
8361         Resolve conflict between the two kinds of module indicators.
8362         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8363         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8364         * modules/canonicalize (configure.ac): Invoke
8365         gl_MODULE_INDICATOR_FOR_TESTS.
8366         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8367         GNULIB_XYZ.
8368         * tests/test-dirent-c++.cc: Likewise.
8369         * tests/test-dirent-safer.c: Likewise.
8370         * tests/test-dup2.c: Likewise.
8371         * tests/test-fchdir.c: Likewise.
8372         * tests/test-fcntl-h-c++.cc: Likewise.
8373         * tests/test-getopt.c: Likewise.
8374         * tests/test-getopt.h: Likewise.
8375         * tests/test-langinfo-c++.cc: Likewise.
8376         * tests/test-locale-c++.cc: Likewise.
8377         * tests/test-math-c++.cc: Likewise.
8378         * tests/test-pty-c++.cc: Likewise.
8379         * tests/test-search-c++.cc: Likewise.
8380         * tests/test-signal-c++.cc: Likewise.
8381         * tests/test-spawn-c++.cc: Likewise.
8382         * tests/test-stdio-c++.cc: Likewise.
8383         * tests/test-stdlib-c++.cc: Likewise.
8384         * tests/test-string-c++.cc: Likewise.
8385         * tests/test-sys_ioctl-c++.cc: Likewise.
8386         * tests/test-sys_select-c++.cc: Likewise.
8387         * tests/test-sys_socket-c++.cc: Likewise.
8388         * tests/test-sys_stat-c++.cc: Likewise.
8389         * tests/test-sys_time-c++.cc: Likewise.
8390         * tests/test-time-c++.cc: Likewise.
8391         * tests/test-unistd-c++.cc: Likewise.
8392         * tests/test-wchar-c++.cc: Likewise.
8393         * tests/uninorm/test-u8-nfc.c: Likewise.
8394         * tests/uninorm/test-u8-nfd.c: Likewise.
8395         * tests/uninorm/test-u8-nfkc.c: Likewise.
8396         * tests/uninorm/test-u8-nfkd.c: Likewise.
8397         * tests/uninorm/test-u16-nfc.c: Likewise.
8398         * tests/uninorm/test-u16-nfd.c: Likewise.
8399         * tests/uninorm/test-u16-nfkc.c: Likewise.
8400         * tests/uninorm/test-u16-nfkd.c: Likewise.
8401         * tests/uninorm/test-u32-nfc.c: Likewise.
8402         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8403         * tests/uninorm/test-u32-nfd.c: Likewise.
8404         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8405         * tests/uninorm/test-u32-nfkc.c: Likewise.
8406         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8407         * tests/uninorm/test-u32-nfkd.c: Likewise.
8408         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8409         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8410
8411 2010-03-27  Bruno Haible  <bruno@clisp.org>
8412
8413         Distinguish two kinds of module indicators.
8414         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8415         gl_MODULE_INDICATOR.
8416         (gl_MODULE_INDICATOR): New macro.
8417         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8418         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8419         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8420         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8421         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8422         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8423         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8424         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8425         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8426         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8427         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8428         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8430         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8431         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8432         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8433         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8434         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8435         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8436         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8437         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8438         * modules/cloexec (configure.ac): Likewise.
8439         * modules/getopt-gnu (configure.ac): Likewise.
8440         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8441         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8442         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8443         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8444
8445 2010-03-27  Bruno Haible  <bruno@clisp.org>
8446
8447         New module description field 'Comment'.
8448         * gnulib-tool: New option --extract-comment.
8449         (func_usage): Document it.
8450         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8451         (func_get_comment): New function.
8452         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8453
8454 2010-03-27  Bruno Haible  <bruno@clisp.org>
8455
8456         Addendum to 2010-02-07 commit.
8457         * gnulib-tool (func_usage): Document --extract-applicability option.
8458
8459 2010-03-27  Bruno Haible  <bruno@clisp.org>
8460
8461         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8462         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8463         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8464         rather than link errors.
8465
8466 2010-03-27  Bruno Haible  <bruno@clisp.org>
8467
8468         Avoid side effects from tests-related modules on the compilation of lib.
8469         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8470         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8471         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8472         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8473         macro.
8474         (func_import): Define a witness macro. Assign it a value that depends
8475         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8476         tests-related modules.
8477         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8478         Reported by Jim Meyering.
8479
8480 2010-03-27  Bruno Haible  <bruno@clisp.org>
8481
8482         Factorize common .m4 code.
8483         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8484         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8485         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8486         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8487         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8488         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8489         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8490         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8491         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8492         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8493         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8494         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8495         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8496         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8497         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8498         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8499         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8500         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8502         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8503         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8504         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8505         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8507         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8508         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8509         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8510         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8511         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8512         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8513         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8514         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8515
8516 2010-03-27  Bruno Haible  <bruno@clisp.org>
8517
8518         Fix a compilation error on Cygwin with g++ >= 4.3.
8519         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8520         if it is undefined or if we alias it to chmod.
8521         (lstat): Don't warn about the use of this function if it is undefined
8522         or if we alias it to stat.
8523         Reported by Simon Josefsson.
8524
8525 2010-03-27  Bruno Haible  <bruno@clisp.org>
8526
8527         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8528         * modules/getlogin (configure.ac): Update.
8529
8530         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8531         * modules/getlogin_r (configure.ac): Update.
8532
8533         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8534         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8535         * modules/inet_ntop (configure.ac): Update.
8536
8537         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8538         * modules/inet_pton (configure.ac): Update.
8539
8540         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8541         * modules/mbslen (configure.ac): Update.
8542
8543         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8544         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8545         * modules/forkpty (configure.ac): Update.
8546         * modules/openpty (configure.ac): Update.
8547
8548 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8549
8550         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8551         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8552
8553 2010-03-25  Eric Blake  <eblake@redhat.com>
8554
8555         maint: use pragma consistently across replacement headers
8556         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8557         * lib/dirent.in.h (system_header): Likewise.
8558         * lib/errno.in.h (system_header): Likewise.
8559         * lib/float.in.h (system_header): Likewise.
8560         * lib/getopt.in.h (system_header): Likewise.
8561         * lib/iconv.in.h (system_header): Likewise.
8562         * lib/inttypes.in.h (system_header): Likewise.
8563         * lib/langinfo.in.h (system_header): Likewise.
8564         * lib/locale.in.h (system_header): Likewise.
8565         * lib/math.in.h (system_header): Likewise.
8566         * lib/netdb.in.h (system_header): Likewise.
8567         * lib/netinet_in.in.h (system_header): Likewise.
8568         * lib/pty.in.h (system_header): Likewise.
8569         * lib/sched.in.h (system_header): Likewise.
8570         * lib/se-selinux.in.h (system_header): Likewise.
8571         * lib/search.in.h (system_header): Likewise.
8572         * lib/spawn.in.h (system_header): Likewise.
8573         * lib/stdarg.in.h (system_header): Likewise.
8574         * lib/stdint.in.h (system_header): Likewise.
8575         * lib/string.in.h (system_header): Likewise.
8576         * lib/strings.in.h (system_header): Likewise.
8577         * lib/sys_file.in.h (system_header): Likewise.
8578         * lib/sys_ioctl.in.h (system_header): Likewise.
8579         * lib/sys_socket.in.h (system_header): Likewise.
8580         * lib/sys_times.in.h (system_header): Likewise.
8581         * lib/sys_utsname.in.h (system_header): Likewise.
8582         * lib/sys_wait.in.h (system_header): Likewise.
8583         * lib/sysexits.in.h (system_header): Likewise.
8584         * lib/unistd.in.h (system_header): Likewise.
8585         * lib/wctype.in.h (system_header): Likewise.
8586
8587         arpa/inet: fix mingw compilation warning
8588         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8589         Reported by Matthew Bolte.
8590
8591 2010-03-25  Bruno Haible  <bruno@clisp.org>
8592
8593         Avoid collision between gnulib wrapper and libintl wrapper.
8594         * lib/printf.c (printf): Don't define if a printf wrapper is already
8595         defined in intl/printf.c.
8596         Reported by Michel Boaventura <michel@michelboaventura.com>.
8597
8598 2010-03-25  Bruno Haible  <bruno@clisp.org>
8599
8600         Use ANSI C.
8601         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8602
8603 2010-03-25  Bruno Haible  <bruno@clisp.org>
8604
8605         Minor formatting changes.
8606         * lib/acosl.c: Insert space before function argument list.
8607         * lib/argz.c: Likewise.
8608         * lib/asinl.c: Likewise.
8609         * lib/expl.c: Likewise.
8610         * lib/gen-uni-tables.c: Likewise.
8611         * lib/gettext.h: Likewise.
8612         * lib/glthread/lock.h: Likewise.
8613         * lib/tanl.c: Likewise.
8614         * lib/uniname/uniname.c: Likewise.
8615         * tests/test-idpriv-drop.c: Likewise.
8616         * tests/test-idpriv-droptemp.c: Likewise.
8617         * tests/test-lock.c: Likewise.
8618         * tests/test-tls.c: Likewise.
8619         * lib/argp-help.c: Insert space before function-like macro argument
8620         list.
8621         * lib/memcmp.c: Likewise.
8622         * tests/test-base64.c: Likewise.
8623         * lib/localename.c: Insert space before sizeof's argument list.
8624         * lib/safe-alloc.h: Likewise.
8625         * lib/file-set.h: Insert space before macro argument list.
8626         * tests/test-argp.c: Likewise.
8627         * lib/argp-namefrob.h: Insert space before function parameter list.
8628         * lib/getaddrinfo.c: Likewise.
8629         * lib/netdb.in.h: Likewise.
8630         * lib/parse-duration.h: Likewise.
8631         * lib/parse-duration.c: Likewise.
8632         * lib/poll.c: Likewise.
8633         * lib/select.c: Likewise.
8634         * lib/trim.h: Likewise.
8635         * tests/test-usleep.c: Likewise.
8636         * lib/ldexpl.c: Insert space before function parameter list and before
8637         function argument list.
8638         * lib/logl.c: Likewise.
8639         * lib/sqrtl.c: Likewise.
8640         * lib/trim.c: Likewise.
8641         * lib/cosl.c: Use GNU style indentation. Insert space before function
8642         argument list.
8643         * lib/sinl.c: Likewise.
8644         * lib/tsearch.c: Insert space after 'for'.
8645         Reported by Jim Meyering.
8646
8647 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8648
8649         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8650         config header before grepping, as it's not present before
8651         autoreconf/configure are run.  Reported by Simon Josefsson.
8652
8653 2010-03-23  Bruno Haible  <bruno@clisp.org>
8654
8655         pt_chown: Make it work with automake < 1.11.
8656         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8657         Reported by Simon Josefsson.
8658
8659 2010-03-23  Bruno Haible  <bruno@clisp.org>
8660
8661         pt_chown: Don't depend on GPLed modules.
8662         * lib/pt_chown.c: Don't include idpriv.h.
8663         (main): Don't drop privileges.
8664         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8665         Reported by Simon Josefsson.
8666
8667 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8668
8669         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8670         suggestions from karl@freefriends.org (Karl Berry).
8671
8672 2010-03-22  Eric Blake  <eblake@redhat.com>
8673
8674         gethostname: further tweaks
8675         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8676         are overriding gethostname.
8677         Suggested by Bruno Haible.
8678
8679 2010-03-21  Bruno Haible  <bruno@clisp.org>
8680
8681         Fix comments.
8682         * lib/forkpty.c (rpl_forkpty): Fix comment.
8683         * lib/openpty.c (rpl_openpty): Likewise.
8684         Reported by Eric Blake.
8685
8686 2010-03-22  Eric Blake  <eblake@redhat.com>
8687
8688         gethostname: fix build on mingw
8689         * lib/unistd.in.h (includes): Work around fact that mingw
8690         <winsock2.h> re-includes <unistd.h>, by avoiding any
8691         redeclarations if we are being included by <winsock2.h>.
8692         Reported by Matthias Bolte.
8693
8694 2010-03-21  Bruno Haible  <bruno@clisp.org>
8695
8696         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8697         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8698         modifications.
8699         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8700         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8701         provide the replacement.
8702         * modules/forkpty (Depends-on): Add openpty, login_tty.
8703         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8704         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8705         * doc/glibc-functions/forkpty.texi: More supported platforms.
8706         * config/srclist.txt: Add forkpty.c (commented).
8707
8708 2010-03-21  Bruno Haible  <bruno@clisp.org>
8709
8710         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8711         (Makefile.am): Verify that PTY_LIB is defined.
8712
8713         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8714
8715 2010-03-21  Bruno Haible  <bruno@clisp.org>
8716
8717         Tests for module 'login_tty'.
8718         * modules/login_tty-tests: New file.
8719         * tests/test-login_tty.c: New file.
8720
8721         New module 'login_tty'.
8722         * lib/login_tty.c: New file.
8723         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8724         * modules/login_tty: New file.
8725         * doc/glibc-functions/login_tty.texi: Mention the new module.
8726
8727 2010-03-21  Bruno Haible  <bruno@clisp.org>
8728
8729         login_tty: Documentation.
8730         * doc/glibc-functions/login_tty.texi: New file.
8731         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8732
8733 2010-03-21  Bruno Haible  <bruno@clisp.org>
8734
8735         pty: Consistent macro naming.
8736         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8737         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8738         * modules/pty (configure.ac): Update.
8739
8740 2010-03-21  Bruno Haible  <bruno@clisp.org>
8741
8742         Tests for openpty: Make stricter.
8743         * tests/test-openpty.c (main): Add test of canonical processing and
8744         erase.
8745         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8746
8747         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8748         * lib/openpty.c (openpty): New replacement function.
8749         * lib/pty.in.h: Include <termios.h>.
8750         (openpty): Update declaration. Add comments.
8751         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8752         is not declared, arrange to provide the replacement. Check for _getpty
8753         and posix_openpt.
8754         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8755         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8756         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8757         * modules/pty-tests (test_pty_c___LDADD): New variable.
8758         * doc/glibc-functions/openpty.texi: More supported platforms.
8759
8760 2010-03-21  Bruno Haible  <bruno@clisp.org>
8761
8762         setenv: Tweaks.
8763         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8764         the test program.
8765         * doc/posix-functions/setenv.texi: Update platforms list.
8766
8767 2010-03-21  Bruno Haible  <bruno@clisp.org>
8768
8769         New module 'unlockpt'.
8770         * lib/unlockpt.c: New file, from glibc with modifications.
8771         * m4/unlockpt.m4: New file.
8772         * modules/unlockpt: New file.
8773         * lib/stdlib.in.h (unlockpt): New declaration.
8774         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8775         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8776         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8777         HAVE_UNLOCKPT.
8778         * doc/posix-functions/unlockpt.texi: Mention the new module.
8779         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8780         * config/srclist.txt: Add unlockpt.c (commented).
8781
8782 2010-03-21  Jim Meyering  <meyering@redhat.com>
8783
8784         maint.mk: prohibit inclusion of "intprops.h" without use
8785         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8786
8787 2010-03-21  Bruno Haible  <bruno@clisp.org>
8788
8789         New module 'grantpt'.
8790         * lib/grantpt.c: New file, from glibc with modifications.
8791         * m4/grantpt.m4: New file.
8792         * modules/grantpt: New file.
8793         * lib/stdlib.in.h (grantpt): New declaration.
8794         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8795         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8796         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8797         HAVE_GRANTPT.
8798         * doc/posix-functions/grantpt.texi: Mention the new module.
8799         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8800         * config/srclist.txt: Add grantpt.c (commented).
8801
8802 2010-03-21  Bruno Haible  <bruno@clisp.org>
8803
8804         New module 'pt_chown'.
8805         * lib/pt_chown.c: New file, from glibc with modifications.
8806         * lib/pty-private.h: New file, from glibc with modifications.
8807         * modules/pt_chown: New file.
8808         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8809
8810 2010-03-21  Bruno Haible  <bruno@clisp.org>
8811
8812         Tests for module 'ptsname'.
8813         * modules/ptsname-tests: New file.
8814         * tests/test-ptsname.c: New file.
8815
8816         New module 'ptsname'.
8817         * lib/ptsname.c: New file, from glibc with modifications.
8818         * m4/ptsname.m4: New file.
8819         * modules/ptsname: New file.
8820         * lib/stdlib.in.h (ptsname): New declaration.
8821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8823         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8824         HAVE_PTSNAME.
8825         * doc/posix-functions/ptsname.texi: Mention the new module.
8826         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8827         * config/srclist.txt: Add ptsname.c (commented).
8828
8829 2010-03-21  Bruno Haible  <bruno@clisp.org>
8830
8831         Tests for module 'ttyname_r'.
8832         * modules/ttyname_r-tests: New file.
8833         * tests/test-ttyname_r.c: New file.
8834
8835         New module 'ttyname_r'.
8836         * lib/ttyname_r.c: New file.
8837         * m4/ttyname_r.m4: New file.
8838         * modules/ttyname_r: New file.
8839         * lib/unistd.in.h (ttyname_r): New declaration.
8840         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8841         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8842         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8843         HAVE_TTYNAME_R.
8844         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8845         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8846
8847 2010-03-20  Bruno Haible  <bruno@clisp.org>
8848
8849         signal: Undefine macro definitions in C++ mode.
8850         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8851         sigfillset): Undefine macro definitions from the system header in C++
8852         mode.
8853         Reported by John W. Eaton <jwe@gnu.org>.
8854
8855 2010-03-20  Bruno Haible  <bruno@clisp.org>
8856
8857         Ensure no #include statements inside extern "C" { ... }.
8858         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8859         contain #include statements.
8860         * lib/time.in.h: Likewise.
8861
8862 2010-03-20  Bruno Haible  <bruno@clisp.org>
8863
8864         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8865         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8866         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8867         Reported by John W. Eaton <jwe@gnu.org>.
8868
8869 2010-03-20  Bruno Haible  <bruno@clisp.org>
8870
8871         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8872         Reported by Jim Meyering.
8873
8874 2010-03-20  Bruno Haible  <bruno@clisp.org>
8875
8876         pipe: Set errno upon failure.
8877         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8878         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8879         errno value in error message.
8880
8881 2010-03-20  Bruno Haible  <bruno@clisp.org>
8882             Jim Meyering  <meyering@redhat.com>
8883
8884         lchown: Avoid "unused variable" warning.
8885         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8886
8887 2010-03-20  Bruno Haible  <bruno@clisp.org>
8888
8889         Work around unlink() bug on MacOS X 10.5.6.
8890         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8891         attempting to unlink a parent directory.
8892         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8893         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8894         activate for the replacement function.
8895         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8896
8897 2010-03-20  Bruno Haible  <bruno@clisp.org>
8898
8899         Fix link errors on Solaris 8.
8900         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8901         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8902
8903 2010-03-19  Jim Meyering  <meyering@redhat.com>
8904
8905         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8906         The _LIBC implementation of build_range_exp correctly honors the
8907         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8908         However, the non-_LIBC implementation would ignore that syntax-bit
8909         flag and return REG_ERANGE unconditionally.
8910         This change makes it honor that flag.
8911         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8912         Make two pointer parameters "const".
8913         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8914         (parse_bracket_exp): Update caller.
8915
8916         regex.m4: correct the reversed range endpoint ([b-a]) test
8917         * m4/regex.m4: When requiring that [b-a] evoke failure,
8918         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8919         test pass once again for x86-based systems.
8920
8921 2010-03-19  Bruno Haible  <bruno@clisp.org>
8922
8923         scandir: Fix link error on Solaris 8.
8924         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8925         macros.
8926
8927 2010-03-19  Bruno Haible  <bruno@clisp.org>
8928
8929         getusershell: Fix documentation.
8930         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8931         module.
8932         * doc/glibc-functions/setusershell.texi: Likewise.
8933
8934         getusershell: Provide declaration, missing on Solaris 9.
8935         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8936         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8937         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8938         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8940         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8941         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8942         HAVE_GETUSERSHELL.
8943         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8944
8945 2010-03-19  Bruno Haible  <bruno@clisp.org>
8946
8947         wctype: Provide iswblank function.
8948         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8949         exists and is fine.
8950         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8951         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8952         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8953         * doc/posix-functions/iswblank.texi: Update.
8954
8955 2010-03-19  Bruno Haible  <bruno@clisp.org>
8956
8957         Tests of module 'pty' in C++ mode.
8958         * modules/pty-tests: New file.
8959         * tests/test-pty-c++.cc: New file.
8960         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8961
8962 2010-03-19  Eric Blake  <eblake@redhat.com>
8963
8964         logb: fix documentation
8965         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8966         1.5 declaration bug.
8967
8968         forkpty, openpty: prefer glibc's const-safe prototype
8969         * lib/forkpty.c (rpl_forkpty): New file.
8970         * lib/openpty.c (rpl_openpty): Likewise.
8971         * modules/forkpty (Files): Distribute it.
8972         * modules/openpty (Files): Likewise.
8973         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8974         check...
8975         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8976         replacement for for non-const BSD signature.
8977         * modules/pty (Makefile.am): Substitute witnesses.
8978         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8979         * tests/test-forkpty.c: Update signature check.
8980         * tests/test-openpty.c: Likewise.
8981         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8982         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8983
8984         forkpty, openpty: split functions into new modules
8985         * modules/pty (Makefile.am): Substitute new witnesses.
8986         (Libraries): Move library detection...
8987         * modules/forkpty: ...into new module.
8988         * modules/openpty: Another new module.
8989         * modules/pty-tests: Rename and split...
8990         * modules/forkpty-tests: ...to this...
8991         * modules/openpty-tests: ...and this.
8992         * tests/test-pty.c: Rename and split...
8993         * tests/test-forkpty.c: ...to this...
8994         * tests/test-openpty.c: ...and this.
8995         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8996         (gl_PTY): Split library searching...
8997         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8998         (gl_FORKPTY, gl_OPENPTY): New macros.
8999         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
9000         * NEWS: Mention the split.
9001         * MODULES.html.sh (Misc): Document the modules.
9002         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
9003         * doc/glibc-functions/openpty.texi (openpty): Likewise.
9004
9005         pty: improve replacement header
9006         * lib/pty.in.h: New file.
9007         * modules/pty (Files): Ship it.
9008         (Makefile.am): Always build replacement.
9009         * m4/pty.m4: Rename...
9010         * m4/pty_h.m4: ...to this.
9011         (gl_PTY): Modernize setting of witness macros; update check of
9012         forkpty to take proper advantage of cache.
9013         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
9014
9015         getopt: avoid compiler warning
9016         * lib/getopt.c (attribute_hidden): Remove unused macro.
9017
9018 2010-03-18  Bruno Haible  <bruno@clisp.org>
9019
9020         Fix link errors on Solaris 8.
9021         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
9022         * modules/search-tests (test_search_c___LDADD): Likewise.
9023         * modules/signal-tests (test_signal_c___LDADD): Likewise.
9024         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
9025         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
9026         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
9027         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
9028         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
9029         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
9030
9031 2010-03-18  Bruno Haible  <bruno@clisp.org>
9032
9033         Fix bug introduced on 2010-03-14.
9034         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
9035         (gl_SPAWN_H): Require it.
9036         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
9037         Reported by Simon Josefsson.
9038
9039 2010-03-18  Bruno Haible  <bruno@clisp.org>
9040
9041         Fix typo introduced on 2009-12-31.
9042         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
9043         posix_spawn_file_actions_adddup2.
9044
9045 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
9046         and Eric Blake  <eblake@redhat.com>
9047
9048         test-vc-list-files-git: make more robust
9049         * tests/test-vc-list-files-git.sh: Unset problematic environment
9050         variables.  Chain commands together.
9051
9052 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
9053
9054         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
9055         `AC_CHECK_DECL' invocation.
9056
9057 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
9058
9059         * lib/inttostr.c (inttostr): Make sure the invocation of verify
9060         appears before executable statements. Suggested by Petr Sumbera
9061         <Petr.Sumbera@Sun.COM>.
9062
9063 2010-03-14  Bruno Haible  <bruno@clisp.org>
9064
9065         * tests/test-flock.c (test_exclusive): Comment out a test that causes
9066         portability problems. Instead use a simpler test.
9067         (main): Check that invalid arguments are rejected only on Linux.
9068
9069 2010-03-14  Bruno Haible  <bruno@clisp.org>
9070
9071         Fix bug introduced on 2009-12-31.
9072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9073         gl_PREREQ_SYS_H_WINSOCK2 always.
9074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
9075         SYS_SOCKET_H variable.
9076         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
9077         Update comments.
9078         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
9079         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9080         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9081         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9082         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9083
9084 2010-03-14  Bruno Haible  <bruno@clisp.org>
9085
9086         Fix values returned by sinl, cosl.
9087         * lib/trigl.h: Add specification comments.
9088         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
9089         that combines the values from the precomputed table with the values of
9090         the Chebyshev polynomials.
9091
9092 2010-03-14  Bruno Haible  <bruno@clisp.org>
9093
9094         Fix compilation error when modules 'posix_spawn[p]' are not used.
9095         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
9096         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
9097
9098 2010-03-14  Bruno Haible  <bruno@clisp.org>
9099
9100         Fix compilation error on mingw when module 'time_r' is not used.
9101         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
9102         is 1.
9103         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
9104         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9105         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
9106         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
9107
9108 2010-03-14  Bruno Haible  <bruno@clisp.org>
9109
9110         Fix compilation error with Sun C.
9111         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
9112         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
9113         instead of GCC specific ULONG_LONG_MAX.
9114         * lib/xstrtoll.c: Likewise.
9115         * lib/xstrtoull.c: Likewise.
9116
9117 2010-03-13  Bruno Haible  <bruno@clisp.org>
9118
9119         Allow the user to disable C++ code and tests.
9120         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9121         (gl_PROG_ANSI_CXX): Require it.
9122
9123 2010-03-13  Bruno Haible  <bruno@clisp.org>
9124
9125         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9126         cases.
9127
9128 2010-03-13  Bruno Haible  <bruno@clisp.org>
9129
9130         Test that gnulib does not break the standard C++ headers.
9131         * tests/test-locale-c++2.cc: New file.
9132         * modules/locale-tests (Files): Add it.
9133         (Makefile.am): Compile it for test-locale-c++.
9134         * tests/test-math-c++2.cc: New file.
9135         * modules/math-tests (Files): Add it.
9136         (Makefile.am): Compile it for test-math-c++.
9137         * tests/test-signal-c++2.cc: New file.
9138         * modules/signal-tests (Files): Add it.
9139         (Makefile.am): Compile it for test-signal-c++.
9140         * tests/test-stdio-c++2.cc: New file.
9141         * modules/stdio-tests (Files): Add it.
9142         (Makefile.am): Compile it for test-stdio-c++.
9143         * tests/test-stdlib-c++2.cc: New file.
9144         * modules/stdlib-tests (Files): Add it.
9145         (Makefile.am): Compile it for test-stdlib-c++.
9146         * tests/test-string-c++2.cc: New file.
9147         * modules/string-tests (Files): Add it.
9148         (Makefile.am): Compile it for test-string-c++.
9149         * tests/test-time-c++2.cc: New file.
9150         * modules/time-tests (Files): Add it.
9151         (Makefile.am): Compile it for test-time-c++.
9152         Reported by John W. Eaton <jwe@gnu.org>.
9153
9154 2010-03-13  Bruno Haible  <bruno@clisp.org>
9155
9156         * gnulib-tool (func_usage): Clarify which options are available for
9157         --create-testdir and --create-megatestdir.
9158
9159 2010-03-13  Bruno Haible  <bruno@clisp.org>
9160
9161         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9162         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9163         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9164         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9165         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9166         when appropriate.
9167         Reported by Jim Meyering.
9168
9169 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9170
9171         * gnulib-tool (func_import): Explain origin of code.
9172
9173 2010-03-12  Bruno Haible  <bruno@clisp.org>
9174
9175         Fix problem with automake's definition of CXXLINK.
9176         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9177         Reported by Simon Josefsson and Ludovic Courtès.
9178
9179 2010-03-12  Bruno Haible  <bruno@clisp.org>
9180
9181         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9182         stable releases.
9183
9184 2010-03-11  Bruno Haible  <bruno@clisp.org>
9185
9186         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9187         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9188         whether the system provides one variant or multiple variants of the
9189         function.
9190         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9191         C++ compilers.
9192         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9193         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9194         Reported by Jim Meyering.
9195
9196 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9197
9198         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9199
9200 2010-03-08  Bruno Haible  <bruno@clisp.org>
9201
9202         gnulib-tool: Add support for --libtool in --create-testdir.
9203         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9204         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9205
9206 2010-03-08  Eric Blake  <eblake@redhat.com>
9207
9208         gnulib-tool.texi: mention possibility of git submodule
9209         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9210         submodules.
9211         * doc/.gitignore: Ignore another generated file.
9212
9213 2010-03-08  Karl Berry  <karl@gnu.org>
9214
9215         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9216         of committing gnulib files while skipping others.
9217
9218 2010-03-07  Bruno Haible  <bruno@clisp.org>
9219
9220         Tests of module 'wctype' in C++ mode.
9221         * tests/test-wctype-c++.cc: New file.
9222         * modules/wctype-tests (Files): Add it and tests/signature.h.
9223         (Depends-on): Add ansi-c++-opt.
9224         (Makefile.am): Arrange to compile and run test-wctype-c++.
9225
9226         Tests of module 'wchar' in C++ mode.
9227         * tests/test-wchar-c++.cc: New file.
9228         * modules/wchar-tests (Files): Add it and tests/signature.h.
9229         (Depends-on): Add ansi-c++-opt.
9230         (Makefile.am): Arrange to compile and run test-wchar-c++.
9231         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9232         gl_MODULE_INDICATOR.
9233
9234         Tests of module 'unistd' in C++ mode.
9235         * tests/test-unistd-c++.cc: New file.
9236         * modules/unistd-tests (Files): Add it and tests/signature.h.
9237         (Depends-on): Add ansi-c++-opt.
9238         (Makefile.am): Arrange to compile and run test-unistd-c++.
9239         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9240         gl_MODULE_INDICATOR.
9241
9242         Tests of module 'time' in C++ mode.
9243         * tests/test-time-c++.cc: New file.
9244         * modules/time-tests (Files): Add it and tests/signature.h.
9245         (Depends-on): Add ansi-c++-opt.
9246         (Makefile.am): Arrange to compile and run test-time-c++.
9247         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9248
9249         Tests of module 'sys_time' in C++ mode.
9250         * tests/test-sys_time-c++.cc: New file.
9251         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9252         (Depends-on): Add ansi-c++-opt.
9253         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9254         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9255         gl_MODULE_INDICATOR.
9256
9257         Tests of module 'sys_stat' in C++ mode.
9258         * tests/test-sys_stat-c++.cc: New file.
9259         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9260         (Depends-on): Add ansi-c++-opt.
9261         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9262         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9263         gl_MODULE_INDICATOR.
9264
9265         Tests of module 'sys_socket' in C++ mode.
9266         * tests/test-sys_socket-c++.cc: New file.
9267         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9268         (Depends-on): Add ansi-c++-opt.
9269         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9270         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9271         gl_MODULE_INDICATOR.
9272
9273         Tests of module 'sys_select' in C++ mode.
9274         * tests/test-sys_select-c++.cc: New file.
9275         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9276         (Depends-on): Add ansi-c++-opt.
9277         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9278         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9279         gl_MODULE_INDICATOR.
9280
9281         Tests of module 'sys_ioctl' in C++ mode.
9282         * tests/test-sys_ioctl-c++.cc: New file.
9283         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9284         (Depends-on): Add ansi-c++-opt.
9285         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9286         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9287         gl_MODULE_INDICATOR.
9288
9289         Tests of module 'string' in C++ mode.
9290         * tests/test-string-c++.cc: New file.
9291         * modules/string-tests (Files): Add it and tests/signature.h.
9292         (Depends-on): Add ansi-c++-opt.
9293         (Makefile.am): Arrange to compile and run test-string-c++.
9294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9295         gl_MODULE_INDICATOR.
9296
9297         Tests of module 'stdlib' in C++ mode.
9298         * tests/test-stdlib-c++.cc: New file.
9299         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9300         (Depends-on): Add ansi-c++-opt.
9301         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9302         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9303         gl_MODULE_INDICATOR.
9304
9305         Tests of module 'stdio' in C++ mode.
9306         * tests/test-stdio-c++.cc: New file.
9307         * modules/stdio-tests (Files): Add it and tests/signature.h.
9308         (Depends-on): Add ansi-c++-opt.
9309         (Makefile.am): Arrange to compile and run test-stdio-c++.
9310         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9311         gl_MODULE_INDICATOR.
9312
9313         Tests of module 'spawn' in C++ mode.
9314         * tests/test-spawn-c++.cc: New file.
9315         * modules/spawn-tests (Files): Add it and tests/signature.h.
9316         (Depends-on): Add ansi-c++-opt.
9317         (Makefile.am): Arrange to compile and run test-spawn-c++.
9318         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9319         gl_MODULE_INDICATOR.
9320
9321         Tests of module 'signal' in C++ mode.
9322         * tests/test-signal-c++.cc: New file.
9323         * modules/signal-tests (Files): Add it and tests/signature.h.
9324         (Depends-on): Add ansi-c++-opt.
9325         (Makefile.am): Arrange to compile and run test-signal-c++.
9326         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9327         gl_MODULE_INDICATOR.
9328
9329         Tests of module 'search' in C++ mode.
9330         * tests/test-search-c++.cc: New file.
9331         * modules/search-tests (Files): Add it and tests/signature.h.
9332         (Depends-on): Add ansi-c++-opt.
9333         (Makefile.am): Arrange to compile and run test-search-c++.
9334         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9335         gl_MODULE_INDICATOR.
9336
9337         Tests of module 'math' in C++ mode.
9338         * tests/test-math-c++.cc: New file.
9339         * modules/math-tests (Files): Add it and tests/signature.h.
9340         (Depends-on): Add ansi-c++-opt.
9341         (Makefile.am): Arrange to compile and run test-math-c++.
9342         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9343
9344         Tests of module 'locale' in C++ mode.
9345         * tests/test-locale-c++.cc: New file.
9346         * modules/locale-tests (Files): Add it and tests/signature.h.
9347         (Depends-on): Add ansi-c++-opt.
9348         (Makefile.am): Arrange to compile and run test-locale-c++.
9349         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9350         gl_MODULE_INDICATOR.
9351
9352         Tests of module 'langinfo' in C++ mode.
9353         * tests/test-langinfo-c++.cc: New file.
9354         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9355         (Depends-on): Add ansi-c++-opt.
9356         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9357         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9358         gl_MODULE_INDICATOR.
9359
9360         Tests of module 'iconv-h' in C++ mode.
9361         * tests/test-iconv-h-c++.cc: New file.
9362         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9363         (Depends-on): Add ansi-c++-opt.
9364         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9365
9366         Tests of module 'glob' in C++ mode.
9367         * tests/test-glob-c++.cc: New file.
9368         * modules/glob-tests (Files): Add it.
9369         (Depends-on): Add ansi-c++-opt.
9370         (Makefile.am): Arrange to compile and run test-glob-c++.
9371
9372         Tests of module 'fcntl-h' in C++ mode.
9373         * tests/test-fcntl-h-c++.cc: New file.
9374         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9375         (Depends-on): Add ansi-c++-opt.
9376         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9377         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9378         gl_MODULE_INDICATOR.
9379
9380         Tests of module 'dirent' in C++ mode.
9381         * tests/test-dirent-c++.cc: New file.
9382         * modules/dirent-tests (Files): Add it and tests/signature.h.
9383         (Depends-on): Add ansi-c++-opt.
9384         (Makefile.am): Arrange to compile and run test-dirent-c++.
9385         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9386         gl_MODULE_INDICATOR.
9387
9388         New module 'ansi-c++-opt'.
9389         * modules/ansi-c++-opt: New file.
9390         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9391
9392         Document C++ namespace mode.
9393         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9394
9395         wctype: Avoid #define replacements in C++ mode.
9396         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9397         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9398         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9399         In C++, define a namespaced alias symbol.
9400         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9401         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9402         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9403         rule.
9404
9405         wchar: Avoid #define replacements in C++ mode.
9406         * lib/wchar.in.h: Include c++defs.h.
9407         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9408         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9409         symbol.
9410         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9411         * modules/wchar (Depends-on): Add c++defs.
9412         (Makefile.am): Update wchar.h rule.
9413
9414         unistd: Avoid #define replacements in C++ mode.
9415         * lib/unistd.in.h: Include c++defs.h.
9416         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9417         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9418         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9419         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9420         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9421         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9422         symbol.
9423         (environ): Update.
9424         * modules/unistd (Depends-on): Add c++defs.
9425         (Makefile.am): Update unistd.h rule.
9426
9427         time: Avoid #define replacements in C++ mode.
9428         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9429         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9430         define a namespaced alias symbol.
9431         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9432         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9433         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9434         * modules/time (Depends-on): Add c++defs, warn-on-use.
9435         (Makefile.am): Update time.h rule.
9436         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9437         * modules/nanosleep (configure.ac): Likewise.
9438         * modules/strptime (configure.ac): Likewise.
9439         * modules/timegm (configure.ac): Likewise.
9440
9441         sys_time: Avoid #define replacements in C++ mode.
9442         * lib/sys_time.in.h: Include c++defs.h.
9443         (gettimeofday): In C++, define a namespaced alias symbol.
9444         * modules/sys_time (Depends-on): Add c++defs.
9445         (Makefile.am): Update sys/time.h rule.
9446
9447         sys_stat: Avoid #define replacements in C++ mode.
9448         * lib/sys_stat.in.h: Include c++defs.h.
9449         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9450         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9451         namespaced alias symbol.
9452         In C++, define a namespaced alias symbol.
9453         * modules/sys_stat (Depends-on): Add c++defs.
9454         (Makefile.am): Update sys/stat.h rule.
9455
9456         sys_socket: Avoid #define replacements in C++ mode.
9457         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9458         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9459         definitions also when the system has a <sys/socket.h>.
9460         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9461         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9462         In C++, define a namespaced alias symbol.
9463         * modules/sys_socket (Depends-on): Add c++defs.
9464         (Makefile.am): Update sys/socket.h rule.
9465
9466         sys_select: Avoid #define replacements in C++ mode.
9467         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9468         definitions also when the system has a <sys/select.h>.
9469         (select): In C++, define a namespaced alias symbol.
9470         * modules/sys_select (Depends-on): Add c++defs.
9471         (Makefile.am): Update sys/select.h rule.
9472
9473         sys_ioctl: Avoid #define replacements in C++ mode.
9474         * lib/sys_ioctl.in.h: Include c++defs.h.
9475         (ioctl): In C++, define a namespaced alias symbol.
9476         * modules/sys_ioctl (Depends-on): Add c++defs.
9477         (Makefile.am): Update sys/ioctl.h rule.
9478
9479         string: Avoid #define replacements in C++ mode.
9480         * lib/string.in.h: Include c++defs.h.
9481         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9482         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9483         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9484         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9485         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9486         * modules/string (Depends-on): Add c++defs.
9487         (Makefile.am): Update string.h rule.
9488
9489         stdlib: Avoid #define replacements in C++ mode.
9490         * lib/stdlib.in.h: Include c++defs.h.
9491         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9492         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9493         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9494         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9495         symbol.
9496         * modules/stdlib (Depends-on): Add c++defs.
9497         (Makefile.am): Update stdlib.h rule.
9498
9499         stdio: Avoid #define replacements in C++ mode.
9500         * lib/stdio.in.h: Include c++defs.h.
9501         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9502         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9503         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9504         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9505         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9506         namespaced alias symbol.
9507         * modules/stdio (Depends-on): Add c++defs.
9508         (Makefile.am): Update stdio.h rule.
9509
9510         spawn: Avoid #define replacements in C++ mode.
9511         * lib/spawn.in.h: Include c++defs.h.
9512         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9513         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9514         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9515         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9516         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9517         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9518         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9519         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9520         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9521         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9522         In C++, define a namespaced alias symbol.
9523         * modules/spawn (Depends-on): Add c++defs.
9524         (Makefile.am): Update spawn.h rule.
9525
9526         signal: Avoid #define replacements in C++ mode.
9527         * lib/signal.in.h: Include c++defs.h.
9528         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9529         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9530         namespaced alias symbol.
9531         * modules/signal (Depends-on): Add c++defs.
9532         (Makefile.am): Update signal.h rule.
9533
9534         search: Avoid #define replacements in C++ mode.
9535         * lib/search.in.h: Include c++defs.h.
9536         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9537         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9538         symbol.
9539         * modules/search (Depends-on): Add c++defs.
9540         (Makefile.am): Update search.h rule.
9541
9542         math: Avoid #define replacements in C++ mode.
9543         * lib/math.in.h: Include c++defs.h.
9544         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9545         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9546         trunc, truncl): In C++, define a namespaced alias symbol.
9547         * modules/math (Depends-on): Add c++defs.
9548         (Makefile.am): Update math.h rule.
9549
9550         locale: Avoid #define replacements in C++ mode.
9551         * lib/locale.in.h: Include c++defs.h.
9552         (duplocale): In C++, define a namespaced alias symbol.
9553         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9554         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9555         * modules/locale (Depends-on): Add c++defs.
9556         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9557
9558         langinfo: Avoid #define replacements in C++ mode.
9559         * lib/langinfo.in.h: Include c++defs.h.
9560         (nl_langinfo): In C++, define a namespaced alias symbol.
9561         * modules/langinfo (Depends-on): Add c++defs.
9562         (Makefile.am): Update langinfo.h rule.
9563
9564         iconv-h: Avoid #define replacements in C++ mode.
9565         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9566         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9567         symbol.
9568         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9569         whenever iconv is present.
9570         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9571         (Makefile.am): Update iconv.h rule.
9572
9573         glob: Avoid #define replacements in C++ mode.
9574         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9575         (_gl_glob_errfunc_fn): New type.
9576         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9577         symbol.
9578         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9579         (Makefile.am): Update glob.h rule.
9580
9581         fcntl-h: Avoid #define replacements in C++ mode.
9582         * lib/fcntl.in.h: Include c++defs.h.
9583         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9584         * modules/fcntl-h (Depends-on): Add c++defs.
9585         (Makefile.am): Update fcntl.h rule.
9586
9587         dirent: Avoid #define replacements in C++ mode.
9588         * lib/dirent.in.h: Include c++defs.h.
9589         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9590         namespaced alias symbol.
9591         (dirfd): Update declaration.
9592         * modules/dirent (Depends-on): Add c++defs.
9593         (Makefile.am): Update dirent.h rule.
9594
9595         ctype: Make it usable in C++ code.
9596         * lib/ctype.in.h: Include c++defs.h.
9597         (isblank): Declare as extern "C".
9598         * modules/ctype (Depends-on): Add c++defs.
9599         (Makefile.am): Update ctype.h rule.
9600
9601         New module 'c++defs'.
9602         * modules/c++defs: New file.
9603         * build-aux/c++defs.h: New file.
9604         Reported by John W. Eaton <jwe@gnu.org>.
9605
9606 2010-03-07  Bruno Haible  <bruno@clisp.org>
9607
9608         logb: Provide missing declaration for Cygwin.
9609         * lib/math.in.h (logb): New declaration.
9610         * m4/logb.m4: New file.
9611         * modules/logb (Files): Add m4/logb.m4.
9612         (Depends-on): Add math.
9613         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9614         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9616         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9617         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9618
9619 2010-03-07  Bruno Haible  <bruno@clisp.org>
9620
9621         Fix test-cond link error.
9622         * tests/test-cond.c: Include <stdio.h>.
9623
9624 2010-03-07  Bruno Haible  <bruno@clisp.org>
9625
9626         Fix test-dirent-safer link error.
9627         * modules/dirent-safer-tests (Makefile.am): Define
9628         test_dirent_safer_LDADD.
9629
9630 2010-03-07  Bruno Haible  <bruno@clisp.org>
9631
9632         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9633         among default module list.
9634
9635 2010-03-07  Bruno Haible  <bruno@clisp.org>
9636
9637         Fix link error on platforms with GNU libiconv.
9638         * modules/unistr/u8-strcoll-tests (Makefile): Define
9639         test_u8_strcoll_LDADD.
9640         * modules/unistr/u16-strcoll-tests (Makefile): Define
9641         test_u16_strcoll_LDADD.
9642         * modules/unistr/u32-strcoll-tests (Makefile): Define
9643         test_u32_strcoll_LDADD.
9644
9645 2010-03-07  Bruno Haible  <bruno@clisp.org>
9646
9647         Use POSIX declarations for socket functions.
9648         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9649         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9650         rpl_sendto): Change declaration to match POSIX.
9651         * lib/connect.c (rpl_connect): Likewise.
9652         * lib/accept.c (rpl_accept): Likewise.
9653         * lib/bind.c (rpl_bind): Likewise.
9654         * lib/getpeername.c (rpl_getpeername): Likewise.
9655         * lib/getsockname.c (rpl_getsockname): Likewise.
9656         * lib/recv.c (rpl_recv): Likewise.
9657         * lib/send.c (rpl_send): Likewise.
9658         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9659         * lib/sendto.c (rpl_sendto): Likewise.
9660
9661 2010-03-06  Bruno Haible  <bruno@clisp.org>
9662
9663         Clarify access, euidaccess, faccessat.
9664         * doc/posix-functions/faccessat.texi: Mention security problem under
9665         "Other problems", not "Portability problems".
9666         * doc/posix-functions/access.texi: Likewise. Mention a related security
9667         problem.
9668         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9669         * lib/euidaccess.c: Add comments about platforms.
9670         * lib/unistd.in.h (access, euidaccess): Add warnings.
9671
9672 2010-03-07  Bruno Haible  <bruno@clisp.org>
9673
9674         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9675         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9676         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9677         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9678         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9679         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9680         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9681         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9682         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9683         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9684         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9685         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9686         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9687         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9688         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9689         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9690         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9691         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9692         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9693         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9694         Likewise.
9695         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9696         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9697         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9698         Likewise.
9699         * tests/test-spawn.c (main): Make it work when
9700         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9701
9702 2010-03-07  Bruno Haible  <bruno@clisp.org>
9703
9704         Fix incorrect Makefile.am generation in German locale.
9705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9706         Execute sed command with character range in C locale.
9707
9708 2010-03-06  Bruno Haible  <bruno@clisp.org>
9709
9710         Tests for module 'iconv-h'.
9711         * modules/iconv-h-tests: New file.
9712         * tests/test-iconv-h.c: New file.
9713
9714         New module 'iconv-h'.
9715         * modules/iconv-h: New file.
9716         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9717         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9718         (configure.ac): Remove gl_ICONV_H.
9719         (Makefile.am): Remove rule for iconv.h.
9720
9721 2010-03-06  Bruno Haible  <bruno@clisp.org>
9722
9723         More consistent naming of *.m4 files.
9724         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9725         * modules/wctype (Files): Update.
9726
9727         More consistent naming of *.m4 files.
9728         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9729         * modules/wchar (Files): Update.
9730
9731 2010-03-06  Jim Meyering  <meyering@redhat.com>
9732
9733         euidaccess: relax license to LGPLv2+
9734         * modules/euidaccess (License): Relax to LGPLv2+.
9735
9736 2010-03-06  Bruno Haible  <bruno@clisp.org>
9737
9738         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9739         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9740         (Makefile.am): Augment lib_SOURCES instead.
9741
9742 2010-03-04  Jim Meyering  <meyering@redhat.com>
9743
9744         utime: remove obsolete module
9745         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9746         unnecessary for years, and has been marked as obsolete for 10 months.
9747         * modules/utime: Remove file.
9748         * lib/utime.c: Remove file.
9749         * m4/utime.m4: Remove file.
9750         * m4/utimes-null.m4: Remove file.
9751         * doc/posix-functions/utime.texi (utime): Remove reference to
9752         the module.  Move the sole "fixed by gnulib" item into the
9753         "problems not fixed by Gnulib" list.
9754         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9755
9756 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9757
9758         * modules/exit (License): Relax license to LGPLv2+.
9759         (Status): Mark as obsolete.
9760         * NEWS: Mention deprecated 'exit' module.
9761         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9762         of now obsolete 'exit'.
9763
9764 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9765
9766         fts-lgpl: remove unused module
9767         * modules/fts-lgpl: Remove.
9768         * MODULES.html.sh (func_all_modules): Adjust.
9769         * check-module (find_included_lib_files): Adjust.
9770         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9771
9772 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9773
9774         copy-acl: enhance Solaris ACL error handling
9775         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9776         * lib/set-mode-acl.c (qset_acl): Likewise.
9777
9778 2010-03-02  Bruno Haible  <bruno@clisp.org>
9779
9780         spawn: Don't override the system defined values on FreeBSD 8.
9781         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9782         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9783         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9784         if HAVE_POSIX_SPAWN is 1.
9785         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9786
9787 2010-03-01  Bruno Haible  <bruno@clisp.org>
9788
9789         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9790         regarding Automake.
9791
9792 2010-02-25  Bruno Haible  <bruno@clisp.org>
9793
9794         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9795         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9796         setting, not afterwards.
9797         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9798
9799 2010-02-24  Eric Blake  <eblake@redhat.com>
9800
9801         bootstrap, git-version-gen: use timestamp
9802         * build-aux/git-version-gen (scriptversion): Force UTC.
9803         * build-aux/bootstrap (scriptversion): New variable.
9804
9805         bootstrap: allow older git
9806         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9807         older than 1.6.4.  Requested by the libvirt project.
9808
9809 2010-02-23  Eric Blake  <eblake@redhat.com>
9810
9811         warn-on-use: work with old autoconf
9812         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9813         AS_VAR semantics of autoconf 2.60.
9814         Reported by Bruno Haible.
9815
9816         bootstrap: improve some comments
9817         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9818         clarification comments.
9819
9820         gettimeofday: provide correct function
9821         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9822         when replacement is declared, otherwise provide gettimeofday.
9823         Reported by Michael Goffioul.
9824
9825 2010-02-23  Jim Meyering  <meyering@redhat.com>
9826
9827         lib-ignore: relax license to "unlimited", not LGPLv2+
9828         * modules/lib-ignore (License): Relax to "unlimited".
9829
9830 2010-02-23  Jim Meyering  <meyering@redhat.com>
9831
9832         lib-ignore: relax license to LGPLv2+
9833         * modules/lib-ignore (License): Relax to LGPLv2+.
9834
9835 2010-02-22  Eric Blake  <eblake@redhat.com>
9836
9837         lseek: avoid bash 3.2 broken pipe bug
9838         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9839         warning from bash 3.2.
9840         Reported by Ben Pfaff, with analysis from Bruno Haible.
9841
9842         bootstrap: support non-FSF copyright holder
9843         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9844         bootstrap.conf override of COPYRIGHT_HOLDER.
9845         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9846
9847         bootstrap: interoperate with gettext 0.14.1
9848         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9849
9850         bootstrap: allow for alternate submodule location
9851         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9852         hardcoding submodule location.
9853         (gnulib_mk): Allow direct use of Makefile.am.
9854
9855         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9856         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9857         rather than reconfiguring where the submodule points.
9858
9859         gettimeofday: restore support for platforms that lack function
9860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9861         replacement if function is missing.
9862         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9863         * modules/sys_time (Makefile.am): Substitute it.
9864         * lib/sys_time.in.h (gettimeofday): Check it.
9865         Reported by Michael Goffioul.
9866
9867 2010-02-21  Bruno Haible  <bruno@clisp.org>
9868
9869         * lib/stdio.in.h (obstack_printf): Fix typo.
9870
9871 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9872
9873         vc-list-files: use bzr ls's -R option
9874         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9875         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9876
9877 2010-02-21  Jim Meyering  <meyering@redhat.com>
9878
9879         init.sh: fix EXEEXT shims to work also for names like test-prog
9880         * tests/init.sh: Re-exec a better shell, when needed.
9881         If the current shell lacks support for posix $(...), an init.sh-using
9882         test will now try to find a shell that supports that.  If EXEEXT is
9883         nonempty, we also require support for hyphen-in-alias-name and shell
9884         substitutions like ${var#glob}.  Failure to find such a shell results
9885         in a skipped test.
9886
9887 2010-02-21  Bruno Haible  <bruno@clisp.org>
9888
9889         Really work around around "broken pipe" error message from bash 3.2.
9890         * gnulib-tool (func_reset_sigpipe): Remove function.
9891         (echo): In bash 3.2, define to a function that uses printf.
9892         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9893
9894 2010-02-20  Bruno Haible  <bruno@clisp.org>
9895
9896         Restore support for automake 1.9.6 with autoconf 2.61.
9897         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9898         Reported by James Youngman <jay@gnu.org>.
9899
9900 2010-02-20  Bruno Haible  <bruno@clisp.org>
9901
9902         Improve *printf warning condition.
9903         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9904         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9905         and the function is overridden due to SIGPIPE emulation.
9906
9907 2010-02-20  Bruno Haible  <bruno@clisp.org>
9908
9909         * lib/stdio.in.h: Tweak comments.
9910
9911 2010-02-19  Bruno Haible  <bruno@clisp.org>
9912
9913         Make it easier to find modules. New gnulib-tool option '--find'.
9914         * gnulib-tool: New option --find.
9915         (func_usage): Document it.
9916         (func_sanitize_modulelist): New function, extracted from
9917         func_all_modules.
9918         (func_all_modules): Invoke it.
9919         * doc/gnulib-tool.texi (Which modules?): New node.
9920
9921 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9922
9923         * lib/sys_select.in.h: Provide select replacement even if
9924         sys/select.h exists on a system, for Interix.
9925
9926 2010-02-18  Jim Meyering  <meyering@redhat.com>
9927
9928         init.sh: don't use $(...) just yet
9929         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9930         to accommodate e.g., Solaris' /bin/sh.
9931
9932 2010-02-17  Bruno Haible  <bruno@clisp.org>
9933
9934         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9935         Reported by Ludovic Courtès <ludo@gnu.org>.
9936
9937 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9938
9939         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9940         linking with -lintl.
9941
9942 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9943
9944         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9945         if not provided by the system's netdb.h.  Reported by
9946         ludo@gnu.org (Ludovic Courtès).
9947
9948 2010-02-15  Jim Meyering  <meyering@redhat.com>
9949
9950         init.sh: improve portability and efficiency
9951         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9952         "dummy" in a for loop.
9953         Use '!', not '^' to select the complement of a character set used
9954         in a "case" statement.
9955         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9956         Suggestions from Eric Blake.
9957
9958         init.sh: automatically accommodate programs with the .exe suffix
9959         Automatically arrange for an invocation of "prog" to execute the
9960         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9961         may use the simpler "prog", yet still work when built on a system
9962         that requires specifying the added suffix.
9963         Do this by constructing a function named "prog" that invokes
9964         "prog.exe" for each .exe file in selected directories.
9965         * tests/init.sh (find_exe_basenames_): New function.
9966         (create_exe_shim_functions_): New function.
9967         (path_prepend_): Use it.
9968
9969         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9970         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9971         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9972
9973 2010-02-14  Jim Meyering  <meyering@redhat.com>
9974
9975         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9976         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9977         (sc_prohibit_hash_pjw_without_use): New rule.
9978
9979         maint.mk: allow the default upload destination dir to be overridden
9980         * top/maint.mk (upload_dest_dir_): Define with a default that
9981         preserves the status quo.
9982         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9983         Reported by Peter Simons.
9984
9985         maint.mk: prohibit inclusion of "hash.h" without_use
9986         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9987
9988 2010-02-10  Jim Meyering  <meyering@redhat.com>
9989
9990         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9991         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9992
9993 2010-02-09  Eric Blake  <ebb9@byu.net>
9994         and Bruno Haible  <bruno@clisp.org>
9995
9996         obstack-printf-posix: ensure declaration
9997         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9998         extracted from gl_FUNC_OBSTACK_PRINTF.
9999         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
10000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10001         Likewise.
10002         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
10003         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
10004         0.
10005
10006 2010-02-08  Bruno Haible  <bruno@clisp.org>
10007
10008         gnulib-tool: Fix typo in 2010-02-07 commit.
10009         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
10010         Reported by Eric Blake.
10011
10012 2010-02-07  Bruno Haible  <bruno@clisp.org>
10013
10014         gnulib-tool: Fix up caching patches.
10015         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
10016         option --no-cache. Use associative arrays when supported by the shell.
10017         (sed_comments): New variable.
10018         (modcache): Renamed from do_cache.
10019         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
10020         abbreviate unnecessarily.
10021         (have_associative): New variable.
10022         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
10023         way also for ksh and zsh.
10024         (func_init_sed_convert_to_cache_statements): New function, extracted
10025         from func_cache_lookup_module. Add support for associative arrays.
10026         Don't set the c_MODULE_cached variable here. Ignore all lines before
10027         the first field header. Remove only the final newline, not all trailing
10028         newlines. Support empty fields correctly. Limit the use of 'eval' to
10029         assignments.
10030         (func_get_description, func_get_status, func_get_notice,
10031         func_get_applicability, func_get_filelist, func_get_dependencies,
10032         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
10033         func_get_automake_snippet, func_get_include_directive,
10034         func_get_link_directive, func_get_license, func_get_maintainer):
10035         Update documentation. List the unoptimized code first. Add support for
10036         associative arrays. Limit the use of 'eval' to assignments.
10037         (func_get_applicability): Undo stylistic pessimisations.
10038         (func_get_automake_snippet, func_get_include_directive): Reduce code
10039         duplication.
10040         (func_modules_transitive_closure, func_modules_add_dummy,
10041         func_modules_notice, func_modules_to_filelist, func_add_file,
10042         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
10043         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
10044         func_create_testdir, func_create_megatestdir): Update documentation.
10045
10046 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10047
10048         * gnulib-tool (func_cache_lookup_module): Store the module name
10049         belonging to the cache variable; error out if two different
10050         module names map to the same cache variable name.
10051
10052 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10053
10054         gnulib-tool: Make caching optional.
10055         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
10056         Update matching short versions of --no-changelog.
10057         (func_usage): Update.
10058         (sed_extract_cache_prog): Renamed from ...
10059         (sed_extract_prog): ... this; revert to old extraction script.
10060         (func_get_description, func_get_status)
10061         (func_get_notice, func_get_applicability, func_get_filelist)
10062         (func_get_dependencies, func_get_autoconf_early_snippet)
10063         (func_get_autoconf_snippet, func_get_automake_snippet)
10064         (func_get_include_directive, func_get_link_directive)
10065         (func_get_license, func_get_maintainer): If $do_cache is false,
10066         use old, non-caching extraction scripts.
10067         Suggestion by Bruno Haible.
10068
10069 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10070
10071         gnulib-tool: cache module metainformation.
10072         * gnulib-tool (sed_extract_prog): Match newline before each
10073         header, and rewrite header to a shell variable suffix.
10074         (func_cache_var, func_cache_lookup_module): New functions,
10075         to turn a module name into a cache variable prefix, and to
10076         look up and cache module metainformation.
10077         (func_get_description, func_get_status)
10078         (func_get_notice, func_get_applicability, func_get_filelist)
10079         (func_get_dependencies, func_get_autoconf_early_snippet)
10080         (func_get_autoconf_snippet, func_get_automake_snippet)
10081         (func_get_include_directive, func_get_link_directive)
10082         (func_get_license, func_get_maintainer): Use
10083         func_cache_lookup_module.
10084
10085 2010-02-07  Bruno Haible  <bruno@clisp.org>
10086
10087         fnctl: Fix missing dependency.
10088         * modules/fcntl (Depends-on): Add getdtablesize.
10089         Reported by John W. Eaton <jwe@gnu.org>.
10090
10091 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10092
10093         Argp: fix recognition of short alias options.
10094
10095         * lib/argp-parse.c (convert_options): Fix improper use of
10096         `|' between character values.
10097         * tests/test-argp.c (group1_option): New alias option
10098         --read (-r).
10099         (group1_parser): Special handling for 'r'.
10100         (test15): New test case.
10101         (test_fun): Add test15.
10102         * tests/test-argp-2.sh: Update expected --help and --usage
10103         outputs.
10104
10105 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10106
10107         * tests/test-argp.c: Fix indentation.
10108
10109 2010-02-04  Eric Blake  <ebb9@byu.net>
10110
10111         gettimeofday: expose type of second argument
10112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
10113         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
10114         * tests/test-gettimeofday.c: Use it to silence warning.
10115         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10116         the issue.
10117
10118 2010-02-03  Jim Meyering  <meyering@redhat.com>
10119
10120         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10121         * lib/regcomp.c (TYPE_SIGNED): Define.
10122         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10123
10124         regcomp.c: avoid a new -Wshadow warning
10125         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10126
10127 2010-02-01  Jim Meyering  <meyering@redhat.com>
10128
10129         removing useless parentheses in cpp #define directives
10130         For motivation, see commit c0221df4, "define STREQ(a,b)
10131         consistently, removing useless parentheses"
10132         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10133         * lib/mountlist.c (MNT_IGNORE): Likewise.
10134         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10135
10136 2010-02-01  Eric Blake  <ebb9@byu.net>
10137
10138         sys_time: use link-warning
10139         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10140         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10141         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10142         * modules/sys_time (Depends-on): Add warn-on-use.
10143         (Makefile.am): Always build replacement.
10144         (configure.ac): Update substitutions.
10145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10146         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10147         bother with SYS_TIME_H.
10148         * modules/gettimeofday (configure.ac): Declare indicator.
10149         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10150         in use.
10151
10152         closein-tests: silence compiler warning
10153         * tests/test-closein.c (main): Ignore fread result.
10154         * modules/closein-tests (Depends-on): Add ignore-value.
10155
10156         tests: silence warning about system return
10157         * tests/test-areadlink-with-size.c (main): Ignore system result.
10158         * tests/test-areadlink.c (main): Likewise.
10159         * tests/test-areadlinkat-with-size.c (main): Likewise.
10160         * tests/test-areadlinkat.c (main): Likewise.
10161         * tests/test-canonicalize-lgpl.c (main): Likewise.
10162         * tests/test-canonicalize.c (main): Likewise.
10163         * tests/test-chown.c (main): Likewise.
10164         * tests/test-fchownat.c (main): Likewise.
10165         * tests/test-fdutimensat.c (main): Likewise.
10166         * tests/test-fstatat.c (main): Likewise.
10167         * tests/test-futimens.c (main): Likewise.
10168         * tests/test-lchown.c (main): Likewise.
10169         * tests/test-link.c (main): Likewise.
10170         * tests/test-linkat.c (main): Likewise.
10171         * tests/test-lstat.c (main): Likewise.
10172         * tests/test-mkdir.c (main): Likewise.
10173         * tests/test-mkdirat.c (main): Likewise.
10174         * tests/test-mkfifo.c (main): Likewise.
10175         * tests/test-mkfifoat.c (main): Likewise.
10176         * tests/test-mknod.c (main): Likewise.
10177         * tests/test-readlink.c (main): Likewise.
10178         * tests/test-remove.c (main): Likewise.
10179         * tests/test-rename.c (main): Likewise.
10180         * tests/test-renameat.c (main): Likewise.
10181         * tests/test-rmdir.c (main): Likewise.
10182         * tests/test-symlink.c (main): Likewise.
10183         * tests/test-symlinkat.c (main): Likewise.
10184         * tests/test-unlink.c (main): Likewise.
10185         * tests/test-unlinkat.c (main): Likewise.
10186         * tests/test-utimens.c (main): Likewise.
10187         * tests/test-utimensat.c (main): Likewise.
10188         * modules/areadlink-tests (Depends-on): Add ignore-value.
10189         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10190         * modules/areadlinkat-tests (Depends-on): Likewise.
10191         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10192         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10193         * modules/canonicalize-tests (Depends-on): Likewise.
10194         * modules/chown-tests (Depends-on): Likewise.
10195         * modules/fdutimensat-tests (Depends-on): Likewise.
10196         * modules/futimens-tests (Depends-on): Likewise.
10197         * modules/lchown-tests (Depends-on): Likewise.
10198         * modules/link-tests (Depends-on): Likewise.
10199         * modules/linkat-tests (Depends-on): Likewise.
10200         * modules/lstat-tests (Depends-on): Likewise.
10201         * modules/mkdir-tests (Depends-on): Likewise.
10202         * modules/mkfifo-tests (Depends-on): Likewise.
10203         * modules/mkfifoat-tests (Depends-on): Likewise.
10204         * modules/mknod-tests (Depends-on): Likewise.
10205         * modules/openat-tests (Depends-on): Likewise.
10206         * modules/readlink-tests (Depends-on): Likewise.
10207         * modules/remove-tests (Depends-on): Likewise.
10208         * modules/rename-tests (Depends-on): Likewise.
10209         * modules/renameat-tests (Depends-on): Likewise.
10210         * modules/rmdir-tests (Depends-on): Likewise.
10211         * modules/symlink-tests (Depends-on): Likewise.
10212         * modules/symlinkat-tests (Depends-on): Likewise.
10213         * modules/unlink-tests (Depends-on): Likewise.
10214         * modules/utimens-tests (Depends-on): Likewise.
10215         * modules/utimensat-tests (Depends-on): Likewise.
10216
10217 2010-01-31  Bruno Haible  <bruno@clisp.org>
10218
10219         Perform the same test for many <math.h> functions.
10220         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10221         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10222         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10223         of gl_MATHFUNC.
10224         * modules/acos (configure.ac): Likewise.
10225         * modules/asin (configure.ac): Likewise.
10226         * modules/atan (configure.ac): Likewise.
10227         * modules/atan2 (configure.ac): Likewise.
10228         * modules/cbrt (configure.ac): Likewise.
10229         * modules/copysign (configure.ac): Likewise.
10230         * modules/cos (configure.ac): Likewise.
10231         * modules/cosh (configure.ac): Likewise.
10232         * modules/erf (configure.ac): Likewise.
10233         * modules/erfc (configure.ac): Likewise.
10234         * modules/exp (configure.ac): Likewise.
10235         * modules/fmod (configure.ac): Likewise.
10236         * modules/hypot (configure.ac): Likewise.
10237         * modules/j0 (configure.ac): Likewise.
10238         * modules/j1 (configure.ac): Likewise.
10239         * modules/jn (configure.ac): Likewise.
10240         * modules/lgamma (configure.ac): Likewise.
10241         * modules/log (configure.ac): Likewise.
10242         * modules/log10 (configure.ac): Likewise.
10243         * modules/log1p (configure.ac): Likewise.
10244         * modules/pow (configure.ac): Likewise.
10245         * modules/remainder (configure.ac): Likewise.
10246         * modules/sin (configure.ac): Likewise.
10247         * modules/sinh (configure.ac): Likewise.
10248         * modules/tan (configure.ac): Likewise.
10249         * modules/tanh (configure.ac): Likewise.
10250         * modules/y0 (configure.ac): Likewise.
10251         * modules/y1 (configure.ac): Likewise.
10252         * modules/yn (configure.ac): Likewise.
10253         Suggested by Paolo Bonzini.
10254
10255 2010-01-31  Bruno Haible  <bruno@clisp.org>
10256
10257         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10258
10259 2010-01-31  Bruno Haible  <bruno@clisp.org>
10260
10261         Work around getdelim() bug on FreeBSD 8.0.
10262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10263         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10264         not work.
10265         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10266         is 1.
10267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10268         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10269         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10270         a non-zero size.
10271         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10272
10273 2010-01-31  Bruno Haible  <bruno@clisp.org>
10274
10275         Work around getline() bug on FreeBSD 8.0.
10276         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10277         and a non-zero size.
10278         * tests/test-getline.c (main): Likewise.
10279         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10280         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10281
10282 2010-01-28  Eric Blake  <ebb9@byu.net>
10283
10284         regex: fix build failure
10285         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10286         platforms.
10287
10288 2010-01-28  Jim Meyering  <meyering@redhat.com>
10289
10290         regex: do not ignore memory allocation failure
10291         * lib/regex_internal.c (create_cd_newstate): Detect
10292         re_node_set_init_copy failure.   Extracted from glibc commit
10293         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10294
10295         regex: sync more white-space changes from libc
10296         * lib/regex_internal.c: White-space only changes.
10297         * lib/regexec.c: Likewise.
10298
10299         regex: add many uses of __attribute_warn_unused_result__
10300         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10301         * lib/regexec.c: Likewise.
10302         Extracted from a messy glibc commit.
10303
10304         regcomp.c: spelling and merge-artifact from glibc
10305         * lib/regcomp.c: Merge remainder of glibc's
10306         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10307
10308         regcomp.c: sync white-space changes from glibc
10309         * lib/regcomp.c: Merge to accommodate white space
10310         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10311
10312         regcomp.c: do not ignore internal return values
10313         * lib/regcomp.c: Do not ignore internal return values.
10314         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10315         but without its white-space changes and spelling fixes.
10316
10317         regex_internal.h: define __attribute_warn_unused_result__
10318         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10319
10320         maint: add a syntax-check rule to check for vulnerable Makefile.in
10321         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10322
10323 2010-01-27  Jim Meyering  <meyering@redhat.com>
10324
10325         ncftpput-ftp: clean up spaces
10326         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10327         Remove trailing blanks.
10328
10329 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10330
10331         * build-aux/git-version-gen: Fix copyright statement.
10332         * build-aux/gnupload: Likewise.
10333         * tests/test-arcfour.c: Likewise.
10334         * tests/test-arctwo.c: Likewise.
10335         * tests/test-count-one-bits.c: Likewise.
10336         * tests/test-crc.c: Likewise.
10337         * tests/test-des.c: Likewise.
10338         * tests/test-gc-arcfour.c: Likewise.
10339         * tests/test-gc-arctwo.c: Likewise.
10340         * tests/test-gc-des.c: Likewise.
10341         * tests/test-gc-hmac-md5.c: Likewise.
10342         * tests/test-gc-hmac-sha1.c: Likewise.
10343         * tests/test-gc-md2.c: Likewise.
10344         * tests/test-gc-md4.c: Likewise.
10345         * tests/test-gc-md5.c: Likewise.
10346         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10347         * tests/test-gc-rijndael.c: Likewise.
10348         * tests/test-gc-sha1.c: Likewise.
10349         * tests/test-gc.c: Likewise.
10350         * tests/test-gethostname.c: Likewise.
10351         * tests/test-gettimeofday.c: Likewise.
10352         * tests/test-hash.c: Likewise.
10353         * tests/test-hmac-md5.c: Likewise.
10354         * tests/test-hmac-sha1.c: Likewise.
10355         * tests/test-md2.c: Likewise.
10356         * tests/test-md4.c: Likewise.
10357         * tests/test-md5.c: Likewise.
10358         * tests/test-memchr.c: Likewise.
10359         * tests/test-memchr2.c: Likewise.
10360         * tests/test-memcmp.c: Likewise.
10361         * tests/test-memmem.c: Likewise.
10362         * tests/test-memrchr.c: Likewise.
10363         * tests/test-rawmemchr.c: Likewise.
10364         * tests/test-read-file.c: Likewise.
10365         * tests/test-rijndael.c: Likewise.
10366         * tests/test-sockets.c: Likewise.
10367         * tests/test-strchrnul.c: Likewise.
10368         * tests/test-strstr.c: Likewise.
10369         * tests/test-strtod.c: Likewise.
10370         * build-aux/ncftpput-ftp: Likewise.
10371
10372 2010-01-26  Eric Blake  <ebb9@byu.net>
10373
10374         ignore-value: update recommended header name
10375         * modules/ignore-value (Include): Only use <> for headers that
10376         exist in glibc.
10377
10378 2010-01-26  Jim Meyering  <meyering@redhat.com>
10379
10380         test-userspec.c: avoid compiler warnings
10381         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10382         and "initialization discards qualifiers..." warnings.
10383         Put the first "uid" in its own scope, and make char* members "const".
10384
10385 2010-01-25  Bruno Haible  <bruno@clisp.org>
10386
10387         gnulib-tool: Make warning diagnostics consistent.
10388         * gnulib-tool (func_warning): New function.
10389         Use it everywhere where gnulib-tool produces output to stderr and it is
10390         not a fatal error.
10391
10392 2010-01-25  Bruno Haible  <bruno@clisp.org>
10393
10394         Fix test dependencies.
10395         * modules/xstrtol-tests (Depends-on): Add inttypes.
10396         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10397
10398 2010-01-25 Pádraig Brady <P@draigBrady.com>
10399
10400         syntax-check: detect incorrect boolean macro values in config.h
10401         * modules/maintainer-makefile (configure.ac): Parameterize the location
10402         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10403         The logic is from Eric Blake and the location indicated by Jim Meyering.
10404         Note the more natural CONFIG_HEADER name is prohibited by automake
10405         for backwards compatibility reasons.
10406         * top/maint.mk (sc_Wundef_boolean): New rule.
10407
10408 2010-01-25  Jim Meyering  <meyering@redhat.com>
10409
10410         bootstrap: detect MacOS 10.6's shasum, too
10411         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10412         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10413
10414 2010-01-23  Jim Meyering  <meyering@redhat.com>
10415
10416         xstrtoll: new module
10417         * modules/xstrtoll: New file.
10418         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10419         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10420         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10421         ./configure fails if you use this module and lack "long long".
10422         * modules/xstrtoll-tests: New module.
10423         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10424         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10425         new init.sh-based test framework.
10426
10427 2010-01-24  Bruno Haible  <bruno@clisp.org>
10428
10429         Tests for module 'yn'.
10430         * modules/yn-tests: New file.
10431         * tests/test-yn.c: New file.
10432
10433         Tests for module 'y1'.
10434         * modules/y1-tests: New file.
10435         * tests/test-y1.c: New file.
10436
10437         Tests for module 'y0'.
10438         * modules/y0-tests: New file.
10439         * tests/test-y0.c: New file.
10440
10441         Tests for module 'tanh'.
10442         * modules/tanh-tests: New file.
10443         * tests/test-tanh.c: New file.
10444
10445         Tests for module 'tan'.
10446         * modules/tan-tests: New file.
10447         * tests/test-tan.c: New file.
10448
10449         Tests for module 'sqrt'.
10450         * modules/sqrt-tests: New file.
10451         * tests/test-sqrt.c: New file.
10452
10453         Tests for module 'sinh'.
10454         * modules/sinh-tests: New file.
10455         * tests/test-sinh.c: New file.
10456
10457         Tests for module 'sin'.
10458         * modules/sin-tests: New file.
10459         * tests/test-sin.c: New file.
10460
10461         Tests for module 'rint'.
10462         * modules/rint-tests: New file.
10463         * tests/test-rint.c: New file.
10464
10465         Tests for module 'remainder'.
10466         * modules/remainder-tests: New file.
10467         * tests/test-remainder.c: New file.
10468
10469         Tests for module 'pow'.
10470         * modules/pow-tests: New file.
10471         * tests/test-pow.c: New file.
10472
10473         Tests for module 'nextafter'.
10474         * modules/nextafter-tests: New file.
10475         * tests/test-nextafter.c: New file.
10476
10477         Tests for module 'modf'.
10478         * modules/modf-tests: New file.
10479         * tests/test-modf.c: New file.
10480
10481         Tests for module 'logb'.
10482         * modules/logb-tests: New file.
10483         * tests/test-logb.c: New file.
10484
10485         Tests for module 'log1p'.
10486         * modules/log1p-tests: New file.
10487         * tests/test-log1p.c: New file.
10488
10489         Tests for module 'log10'.
10490         * modules/log10-tests: New file.
10491         * tests/test-log10.c: New file.
10492
10493         Tests for module 'log'.
10494         * modules/log-tests: New file.
10495         * tests/test-log.c: New file.
10496
10497         Tests for module 'lgamma'.
10498         * modules/lgamma-tests: New file.
10499         * tests/test-lgamma.c: New file.
10500
10501         Tests for module 'ldexp'.
10502         * modules/ldexp-tests: New file.
10503         * tests/test-ldexp.c: New file.
10504
10505         Tests for module 'jn'.
10506         * modules/jn-tests: New file.
10507         * tests/test-jn.c: New file.
10508
10509         Tests for module 'j1'.
10510         * modules/j1-tests: New file.
10511         * tests/test-j1.c: New file.
10512
10513         Tests for module 'j0'.
10514         * modules/j0-tests: New file.
10515         * tests/test-j0.c: New file.
10516
10517         Tests for module 'hypot'.
10518         * modules/hypot-tests: New file.
10519         * tests/test-hypot.c: New file.
10520
10521         Tests for module 'fmod'.
10522         * modules/fmod-tests: New file.
10523         * tests/test-fmod.c: New file.
10524
10525         Tests for module 'fabs'.
10526         * modules/fabs-tests: New file.
10527         * tests/test-fabs.c: New file.
10528
10529         Tests for module 'exp'.
10530         * modules/exp-tests: New file.
10531         * tests/test-exp.c: New file.
10532
10533         Tests for module 'erfc'.
10534         * modules/erfc-tests: New file.
10535         * tests/test-erfc.c: New file.
10536
10537         Tests for module 'erf'.
10538         * modules/erf-tests: New file.
10539         * tests/test-erf.c: New file.
10540
10541         Tests for module 'cosh'.
10542         * modules/cosh-tests: New file.
10543         * tests/test-cosh.c: New file.
10544
10545         Tests for module 'cos'.
10546         * modules/cos-tests: New file.
10547         * tests/test-cos.c: New file.
10548
10549         Tests for module 'copysign'.
10550         * modules/copysign-tests: New file.
10551         * tests/test-copysign.c: New file.
10552
10553         Tests for module 'cbrt'.
10554         * modules/cbrt-tests: New file.
10555         * tests/test-cbrt.c: New file.
10556
10557         Tests for module 'atan2'.
10558         * modules/atan2-tests: New file.
10559         * tests/test-atan2.c: New file.
10560
10561         Tests for module 'atan'.
10562         * modules/atan-tests: New file.
10563         * tests/test-atan.c: New file.
10564
10565         Tests for module 'asin'.
10566         * modules/asin-tests: New file.
10567         * tests/test-asin.c: New file.
10568
10569         Tests for module 'acos'.
10570         * modules/acos-tests: New file.
10571         * tests/test-acos.c: New file.
10572
10573 2010-01-24  Bruno Haible  <bruno@clisp.org>
10574
10575         Fix tests for common <math.h> functions.
10576         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10577         code snippet that references the function pointer, rather than merely
10578         calling the function. Substitute the FUNC_LIBM variable.
10579         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10580         * modules/acos (configure.ac): Likewise.
10581         * modules/asin (configure.ac): Likewise.
10582         * modules/atan (configure.ac): Likewise.
10583         * modules/atan2 (configure.ac): Likewise.
10584         * modules/cbrt (configure.ac): Likewise.
10585         * modules/copysign (configure.ac): Likewise.
10586         * modules/cos (configure.ac): Likewise.
10587         * modules/cosh (configure.ac): Likewise.
10588         * modules/erf (configure.ac): Likewise.
10589         * modules/erfc (configure.ac): Likewise.
10590         * modules/exp (configure.ac): Likewise.
10591         * modules/fabs (configure.ac): Likewise.
10592         * modules/fmod (configure.ac): Likewise.
10593         * modules/hypot (configure.ac): Likewise.
10594         * modules/j0 (configure.ac): Likewise.
10595         * modules/j1 (configure.ac): Likewise.
10596         * modules/jn (configure.ac): Likewise.
10597         * modules/ldexp (configure.ac): Likewise.
10598         * modules/lgamma (configure.ac): Likewise.
10599         * modules/log (configure.ac): Likewise.
10600         * modules/log10 (configure.ac): Likewise.
10601         * modules/log1p (configure.ac): Likewise.
10602         * modules/logb (configure.ac): Likewise.
10603         * modules/modf (configure.ac): Likewise.
10604         * modules/nextafter (configure.ac): Likewise.
10605         * modules/pow (configure.ac): Likewise.
10606         * modules/remainder (configure.ac): Likewise.
10607         * modules/rint (configure.ac): Likewise.
10608         * modules/sin (configure.ac): Likewise.
10609         * modules/sinh (configure.ac): Likewise.
10610         * modules/tan (configure.ac): Likewise.
10611         * modules/tanh (configure.ac): Likewise.
10612         * modules/y0 (configure.ac): Likewise.
10613         * modules/y1 (configure.ac): Likewise.
10614         * modules/yn (configure.ac): Likewise.
10615
10616 2010-01-24  Bruno Haible  <bruno@clisp.org>
10617
10618         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10619         * tests/test-acosl.c (x): New variable.
10620         (main): Store argument in x and fetch it from x.
10621         * tests/test-asinl.c (x): New variable.
10622         (main): Store argument in x and fetch it from x.
10623         * tests/test-atanl.c (x): New variable.
10624         (main): Store argument in x and fetch it from x.
10625         * tests/test-cosl.c (x): New variable.
10626         (main): Store argument in x and fetch it from x.
10627         * tests/test-expl.c (x): New variable.
10628         (main): Store argument in x and fetch it from x.
10629         * tests/test-logl.c (x): New variable.
10630         (main): Store argument in x and fetch it from x.
10631         * tests/test-sinl.c (x): New variable.
10632         (main): Store argument in x and fetch it from x.
10633         * tests/test-sqrtl.c (x): New variable.
10634         (main): Store argument in x and fetch it from x.
10635         * tests/test-tanl.c (x): New variable.
10636         (main): Store argument in x and fetch it from x.
10637
10638 2010-01-24  Bruno Haible  <bruno@clisp.org>
10639
10640         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10641         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10642         assignments to the initial TESTS_ENVIRONMENT.
10643         * doc/gnulib.texi (Unit test modules): Document it.
10644         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10645         TESTS_ENVIRONMENT.
10646         * modules/btowc-tests (Makefile.am): Likewise.
10647         * modules/c-stack-tests (Makefile.am): Likewise.
10648         * modules/c-strcase-tests (Makefile.am): Likewise.
10649         * modules/copy-file-tests (Makefile.am): Likewise.
10650         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10651         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10652         * modules/mbrtowc-tests (Makefile.am): Likewise.
10653         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10654         * modules/mbscasestr-tests (Makefile.am): Likewise.
10655         * modules/mbschr-tests (Makefile.am): Likewise.
10656         * modules/mbscspn-tests (Makefile.am): Likewise.
10657         * modules/mbsinit-tests (Makefile.am): Likewise.
10658         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10659         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10660         * modules/mbspbrk-tests (Makefile.am): Likewise.
10661         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10662         * modules/mbsrchr-tests (Makefile.am): Likewise.
10663         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10664         * modules/mbsspn-tests (Makefile.am): Likewise.
10665         * modules/mbsstr-tests (Makefile.am): Likewise.
10666         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10667         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10668         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10669         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10670         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10671         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10672         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10673         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10674         * modules/wcrtomb-tests (Makefile.am): Likewise.
10675         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10676         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10677         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10678         assignments from TESTS_ENVIRONMENT.
10679         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10680         augmentation.
10681         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10682         * modules/atexit-tests (Makefile.am): Likewise.
10683         * modules/binary-io-tests (Makefile.am): Likewise.
10684         * modules/closein-tests (Makefile.am): Likewise.
10685         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10686         * modules/exclude-tests (Makefile.am): Likewise.
10687         * modules/fflush-tests (Makefile.am): Likewise.
10688         * modules/fpending-tests (Makefile.am): Likewise.
10689         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10690         * modules/freadahead-tests (Makefile.am): Likewise.
10691         * modules/freadptr-tests (Makefile.am): Likewise.
10692         * modules/freadseek-tests (Makefile.am): Likewise.
10693         * modules/fseek-tests (Makefile.am): Likewise.
10694         * modules/fseeko-tests (Makefile.am): Likewise.
10695         * modules/ftell-tests (Makefile.am): Likewise.
10696         * modules/ftello-tests (Makefile.am): Likewise.
10697         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10698         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10699         * modules/lseek-tests (Makefile.am): Likewise.
10700         * modules/parse-duration-tests (Makefile.am): Likewise.
10701         * modules/perror-tests (Makefile.am): Likewise.
10702         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10703         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10704         * modules/pipe-tests (Makefile.am): Likewise.
10705         * modules/pread-tests (Makefile.am): Likewise.
10706         * modules/printf-posix-tests (Makefile.am): Likewise.
10707         * modules/select-tests (Makefile.am): Likewise.
10708         * modules/sigpipe-tests (Makefile.am): Likewise.
10709         * modules/tsearch-tests (Makefile.am): Likewise.
10710         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10711         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10712         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10713         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10714         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10715         * modules/version-etc-tests (Makefile.am): Likewise.
10716         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10717         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10718         * modules/xalloc-die-tests (Makefile.am): Likewise.
10719         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10720         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10721         * modules/xstrtol-tests (Makefile.am): Likewise.
10722         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10723         * modules/yesno-tests (Makefile.am): Likewise.
10724         Suggested by Jim Meyering.
10725
10726 2010-01-24  Bruno Haible  <bruno@clisp.org>
10727
10728         More documentation.
10729         * doc/gnulib.texi (Writing modules): New chapter.
10730         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10731         the new chapter.
10732
10733 2010-01-24  Jim Meyering  <meyering@redhat.com>
10734
10735         maint.mk: do not prepend "./" after filtering
10736         * top/maint.mk (_prepend_srcdir_prefix): New variable
10737         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10738         "./" when $(srcdir) is ".".
10739
10740         define STREQ(a,b) consistently, removing useless parentheses
10741         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10742         since the only risk is that "a" or "b" contains an unparenthesized
10743         comma, but if either did that, STREQ would have 3 or more arguments.
10744         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10745         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10746         * lib/hash-triple.c (STREQ): Likewise.
10747         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10748         * lib/getugroups.c (STREQ): Likewise.
10749
10750 2010-01-23  Jim Meyering  <meyering@redhat.com>
10751
10752         maint.mk: fix syntax-check in a non-srcdir build directory
10753         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10754         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10755
10756 2010-01-22  Jim Meyering  <meyering@redhat.com>
10757
10758         userspec: add unit tests
10759         * tests/test-userspec.c: New file.
10760         * modules/userspec-tests: Likewise.
10761
10762 2010-01-21  Jim Meyering  <meyering@redhat.com>
10763
10764         maint.mk: handle source file names containing "." robustly
10765         * top/maint.mk (_dot_escaped_srcdir): Define.
10766         (VC_LIST): Use it in LHS of sed substitution.
10767
10768 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10769
10770         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10771         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10772         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10773         from a non-srcdir build.
10774
10775 2010-01-20  Eric Blake  <ebb9@byu.net>
10776
10777         warn-on-use: use instead of link-warning
10778         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10779         * modules/unistd (Depends-on, Makefile.am): Likewise.
10780         * modules/arpa_inet (Depends-on): Replace link-warning with
10781         warn-on-use.
10782         (Makefile.am): Update rules accordingly.
10783         * modules/ctype (Depends-on, Makefile.am): Likewise.
10784         * modules/dirent (Depends-on, Makefile.am): Likewise.
10785         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10786         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10787         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10788         * modules/locale (Depends-on, Makefile.am): Likewise.
10789         * modules/math (Depends-on, Makefile.am): Likewise.
10790         * modules/search (Depends-on, Makefile.am): Likewise.
10791         * modules/signal (Depends-on, Makefile.am): Likewise.
10792         * modules/spawn (Depends-on, Makefile.am): Likewise.
10793         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10794         * modules/string (Depends-on, Makefile.am): Likewise.
10795         * modules/strings (Depends-on, Makefile.am): Likewise.
10796         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10797         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10798         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10799         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10800         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10801         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10802         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10803         * modules/wchar (Depends-on, Makefile.am): Likewise.
10804         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10805         should be poisoned.
10806         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10807         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10808         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10809         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10810         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10811         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10812         * m4/math_h.m4 (gl_MATH_H): Likewise.
10813         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10814         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10815         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10816         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10817         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10818         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10819         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10820         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10821         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10823         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10824         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10825         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10826         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10827         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10828         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10829         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10830         GL_LINK_WARNING.
10831         * lib/ctype.in.h: Likewise.
10832         * lib/dirent.in.h: Likewise.
10833         * lib/fcntl.in.h: Likewise.
10834         * lib/inttypes.in.h: Likewise.
10835         * lib/langinfo.in.h: Likewise.
10836         * lib/locale.in.h: Likewise.
10837         * lib/math.in.h: Likewise.
10838         * lib/search.in.h: Likewise.
10839         * lib/signal.in.h: Likewise.
10840         * lib/spawn.in.h: Likewise.
10841         * lib/stdio.in.h: Likewise.
10842         * lib/stdlib.in.h: Likewise.
10843         * lib/string.in.h: Likewise.
10844         * lib/strings.in.h: Likewise.
10845         * lib/sys_file.in.h: Likewise.
10846         * lib/sys_ioctl.in.h: Likewise.
10847         * lib/sys_select.in.h: Likewise.
10848         * lib/sys_socket.in.h: Likewise.
10849         * lib/sys_stat.in.h: Likewise.
10850         * lib/sys_times.in.h: Likewise.
10851         * lib/sys_utsname.in.h: Likewise.
10852         * lib/unistd.in.h: Likewise.
10853         * lib/wchar.in.h: Likewise.
10854
10855 2010-01-20  Bruno Haible  <bruno@clisp.org>
10856
10857         Avoid duplicate -lm.
10858         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10859         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10860         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10861         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10862         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10863         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10864         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10865         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10866         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10867         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10868         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10869         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10870         Reported by Paolo Bonzini.
10871
10872 2010-01-19  Bruno Haible  <bruno@clisp.org>
10873
10874         langinfo, nl_langinfo: Relicense under LGPLv2+.
10875         * modules/langinfo (License): Change to LGPLv2+.
10876         * modules/nl_langinfo (License): Likewise.
10877         Patch by David Lutterkort <lutter@redhat.com>.
10878
10879 2010-01-19  Bruno Haible  <bruno@clisp.org>
10880
10881         Avoid compilation error with cc on OSF/1 5.1.
10882         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10883         statement, not before.
10884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10885
10886 2010-01-18  Bruno Haible  <bruno@clisp.org>
10887
10888         Avoid a link error due to the __printf__ symbol.
10889         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10890         and 2.6.x.
10891         (__format__, __printf__): Remove definitions.
10892         * lib/argp-fmtstream.h: Likewise.
10893         * lib/argp.h: Likewise.
10894         * lib/error.h: Likewise.
10895         * lib/vasnprintf.h: Likewise.
10896         * lib/xprintf.h: Likewise.
10897         * lib/xvasprintf.h: Likewise.
10898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10899
10900 2010-01-18  Bruno Haible  <bruno@clisp.org>
10901
10902         Tests for module 'tanl'.
10903         * modules/tanl-tests: New file.
10904         * tests/test-tanl.c: New file.
10905
10906         Tests for module 'sqrtl'.
10907         * modules/sqrtl-tests: New file.
10908         * tests/test-sqrtl.c: New file.
10909
10910         Tests for module 'sinl'.
10911         * modules/sinl-tests: New file.
10912         * tests/test-sinl.c: New file.
10913
10914         Tests for module 'logl'.
10915         * modules/logl-tests: New file.
10916         * tests/test-logl.c: New file.
10917
10918         Tests for module 'expl'.
10919         * modules/expl-tests: New file.
10920         * tests/test-expl.c: New file.
10921
10922         Tests for module 'cosl'.
10923         * modules/cosl-tests: New file.
10924         * tests/test-cosl.c: New file.
10925
10926         Tests for module 'atanl'.
10927         * modules/atanl-tests: New file.
10928         * tests/test-atanl.c: New file.
10929
10930         Tests for module 'asinl'.
10931         * modules/asinl-tests: New file.
10932         * tests/test-asinl.c: New file.
10933
10934         Tests for module 'acosl'.
10935         * modules/acosl-tests: New file.
10936         * tests/test-acosl.c: New file.
10937
10938         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10939         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10940         tanl): Use the standard gnulib idiom.
10941         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10942         * lib/sinl.c: Likewise.
10943         * lib/tanl.c: Don't include trigl.c.
10944         (kernel_tanl): Make static.
10945         * lib/sincosl.c: Include trigl.h first.
10946         * lib/trigl.c: Likewise.
10947         * m4/acosl.m4: New file.
10948         * m4/asinl.m4: New file.
10949         * m4/atanl.m4: New file.
10950         * m4/cosl.m4: New file.
10951         * m4/expl.m4: New file.
10952         * m4/logl.m4: New file.
10953         * m4/sinl.m4: New file.
10954         * m4/sqrtl.m4: New file.
10955         * m4/tanl.m4: New file.
10956         * m4/mathl.m4: Remove file.
10957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10958         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10959         Don't initialize GNULIB_MATHL.
10960         * modules/acosl: New file.
10961         * modules/asinl: New file.
10962         * modules/atanl: New file.
10963         * modules/cosl: New file.
10964         * modules/expl: New file.
10965         * modules/logl: New file.
10966         * modules/sinl: New file.
10967         * modules/sqrtl: New file.
10968         * modules/tanl: New file.
10969         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10970         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10971         substitute GNULIB_MATHL.
10972         * modules/mathl: Rewritten.
10973         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10974         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10975         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10976         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10977         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10978         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10979         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10980         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10981         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10982
10983 2010-01-18  Bruno Haible  <bruno@clisp.org>
10984
10985         sqrt: Make gl_FUNC_SQRT requirable.
10986         * m4/sqrt.m4: New file.
10987         * modules/sqrt (Files): Add it.
10988         (configure.ac): Invoke gl_FUNC_SQRT.
10989
10990 2010-01-18  Bruno Haible  <bruno@clisp.org>
10991
10992         New modules for common <math.h> functions.
10993         * m4/mathfunc.m4: New file.
10994         * modules/acos: New file.
10995         * modules/asin: New file.
10996         * modules/atan: New file.
10997         * modules/atan2: New file.
10998         * modules/cbrt: New file.
10999         * modules/copysign: New file.
11000         * modules/cos: New file.
11001         * modules/cosh: New file.
11002         * modules/erf: New file.
11003         * modules/erfc: New file.
11004         * modules/exp: New file.
11005         * modules/fabs: New file.
11006         * modules/fmod: New file.
11007         * modules/hypot: New file.
11008         * modules/j0: New file.
11009         * modules/j1: New file.
11010         * modules/jn: New file.
11011         * modules/ldexp: New file.
11012         * modules/lgamma: New file.
11013         * modules/log: New file.
11014         * modules/log10: New file.
11015         * modules/log1p: New file.
11016         * modules/logb: New file.
11017         * modules/modf: New file.
11018         * modules/nextafter: New file.
11019         * modules/pow: New file.
11020         * modules/remainder: New file.
11021         * modules/rint: New file.
11022         * modules/sin: New file.
11023         * modules/sinh: New file.
11024         * modules/sqrt: New file.
11025         * modules/tan: New file.
11026         * modules/tanh: New file.
11027         * modules/y0: New file.
11028         * modules/y1: New file.
11029         * modules/yn: New file.
11030         * doc/posix-functions/acos.texi: Mention the 'acos' module.
11031         * doc/posix-functions/asin.texi: Mention the 'asin' module.
11032         * doc/posix-functions/atan.texi: Mention the 'atan' module.
11033         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
11034         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
11035         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
11036         * doc/posix-functions/cos.texi: Mention the 'cos' module.
11037         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
11038         * doc/posix-functions/erf.texi: Mention the 'erf' module.
11039         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
11040         * doc/posix-functions/exp.texi: Mention the 'exp' module.
11041         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
11042         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
11043         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
11044         * doc/posix-functions/j0.texi: Mention the 'j0' module.
11045         * doc/posix-functions/j1.texi: Mention the 'j1' module.
11046         * doc/posix-functions/jn.texi: Mention the 'jn' module.
11047         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
11048         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
11049         * doc/posix-functions/log.texi: Mention the 'log' module.
11050         * doc/posix-functions/log10.texi: Mention the 'log10' module.
11051         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
11052         * doc/posix-functions/logb.texi: Mention the 'logb' module.
11053         * doc/posix-functions/modf.texi: Mention the 'modf' module.
11054         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
11055         * doc/posix-functions/pow.texi: Mention the 'pow' module.
11056         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
11057         * doc/posix-functions/rint.texi: Mention the 'rint' module.
11058         * doc/posix-functions/sin.texi: Mention the 'sin' module.
11059         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
11060         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
11061         * doc/posix-functions/tan.texi: Mention the 'tan' module.
11062         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
11063         * doc/posix-functions/y0.texi: Mention the 'y0' module.
11064         * doc/posix-functions/y1.texi: Mention the 'y1' module.
11065         * doc/posix-functions/yn.texi: Mention the 'yn' module.
11066
11067 2010-01-18  Jim Meyering  <meyering@redhat.com>
11068
11069         ignore-value: relax license to LGPLv2+
11070         * modules/ignore-value (License): Relax to LGPLv2+.
11071
11072         getdate: don't leak when TZ contains two or more '"'s
11073         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
11074         double quote in TZ after the first one.
11075
11076         readtokens: do not leak internal token_lengths buffer
11077         * lib/readtokens.c (readtokens): Free the local, lengths,
11078         when the supplied "token_lengths" parameter is NULL.
11079
11080 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11081
11082         Fix a couple of missing LIBTHREAD link failures on AIX.
11083         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
11084         $(LIBTHREAD).
11085         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
11086
11087         Link test-poll against INET_PTON_LIB.
11088         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
11089         for inet_pton on Solaris 10.
11090
11091 2010-01-17  Bruno Haible  <bruno@clisp.org>
11092
11093         unistdio/*-sprintf: Fix typo in module description.
11094         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
11095         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
11096         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
11097         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
11098         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
11099         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
11100         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
11101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11102
11103 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11104
11105         gnulib-tool: fix filelist for AIX, HP-UX ksh.
11106         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
11107         variables in shell case patterns, for AIX and HP-UX ksh.
11108
11109         Split large sed scripts, for HP-UX sed.
11110         * modules/stdio: Split sed scripts around 50 sed commands,
11111         to avoid HP-UX limit of 99 commands, in the near future.
11112         * modules/string: Likewise.
11113         * modules/unistd: Likewise.
11114
11115         gnulib-tool: avoid writing in the current directory.
11116         * gnulib-tool (func_emit_lib_Makefile_am)
11117         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11118         not in the current directory, so concurrent gnulib-tool
11119         instances do not interfere.
11120
11121 2010-01-16  Jim Meyering  <meyering@redhat.com>
11122
11123         doc: update users.txt
11124         * users.txt: Add grep.
11125         (diffutils, gzip): Update URLs.
11126
11127 2010-01-12  Bruno Haible  <bruno@clisp.org>
11128
11129         posix_spawn: Avoid test failure on Cygwin.
11130         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11131         characters.
11132         Reported by Simon Josefsson.
11133
11134 2010-01-12  Bruno Haible  <bruno@clisp.org>
11135
11136         * tests/test-cond.c (main): When skipping the test, show the reason.
11137
11138 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11139
11140         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11141
11142 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11143
11144         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11145         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11146
11147 2010-01-12  Eric Blake  <ebb9@byu.net>
11148
11149         build: guarantee AS_VAR_IF
11150         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11151         (gl_AS_VAR_IF): Move...
11152         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11153         Reported by Simon Josefsson.
11154
11155 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11156
11157         * lib/stdio.in.h: Fix typo.
11158
11159 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11160
11161         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11162         libgpg-error.
11163
11164 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11165
11166         * tests/test-xalloc-die.sh: Use $EXEEXT.
11167
11168 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11169             Bruno Haible  <bruno@clisp.org>
11170
11171         getlogin, getlogin_r: Avoid test failure.
11172         * tests/test-getlogin.c: Include <stdio.h>.
11173         (main): Skip the test when the function fails because stdin is not a
11174         tty.
11175         * tests/test-getlogin_r.c: Include <stdio.h>.
11176         (main): Skip the test when the function fails because stdin is not a
11177         tty.
11178
11179 2010-01-11  Eric Blake  <ebb9@byu.net>
11180
11181         tests: avoid more large file warnings
11182         * tests/test-fflush.c: Avoid warning about ftell use.
11183         * tests/test-fseek.c: Avoid warning about fseek use.
11184
11185 2010-01-10  Bruno Haible  <bruno@clisp.org>
11186
11187         nproc: Work better on Linux when /proc and /sys are not mounted.
11188         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11189         as lower bound when, on glibc/Linux systems,
11190         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11191         Suggested by Pádraig Brady <P@draigbrady.com>.
11192         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11193
11194         nproc: Refactor.
11195         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11196         extracted from num_processors.
11197         (num_processors): Call it.
11198
11199 2010-01-11  Jim Meyering  <meyering@redhat.com>
11200
11201         utimecmp: avoid new warning from upcoming gcc-4.5.0
11202         * lib/utimecmp.c (BILLION): Define using #define rather than an
11203         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11204
11205 2010-01-11  Eric Blake  <ebb9@byu.net>
11206
11207         math: add portability warnings for classification macros
11208         * modules/math (Depends-on): Add warn-on-use.
11209         (Makefile.am): Provide new substitutions.
11210         * m4/math_h.m4 (gl_MATH_H): Require inline.
11211         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11212         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11213         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11214         implement warnings.
11215
11216         unistd: warn on use of environ without module
11217         * modules/unistd (Depends-on): Add warn-on-use.
11218         (Makefile.am): Provide new substitutions.
11219         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11220         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11221
11222         stdio: warn on suspicious uses
11223         * modules/stdio (Depends-on): Add warn-on-use.
11224         (Makefile.am): Provide new substitutions.
11225         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11226         fseeko.
11227         * lib/stdio.in.h (gets): Always warn on use.
11228         (fseek, ftell): Adjust when warnings are issued, and honor
11229         _GL_NO_LARGE_FILES as a way to silence the warning.
11230         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11231         any warning about large file offsets.
11232         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11233         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11234         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11235         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11236         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11237         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11238         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11239         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11240
11241         warn-on-use: new module
11242         * modules/warn-on-use: New file.
11243         * build-aux/warn-on-use.h: Likewise.
11244         * m4/warn-on-use.m4: Likewise.
11245         * MODULES.html.sh (Support for building): Mention it.
11246
11247 2010-01-10  Bruno Haible  <bruno@clisp.org>
11248
11249         Tests for module 'unistr/u32-strdup'.
11250         * modules/unistr/u32-strdup-tests: New file.
11251         * tests/unistr/test-u32-strdup.c: New file.
11252
11253         Tests for module 'unistr/u16-strdup'.
11254         * modules/unistr/u16-strdup-tests: New file.
11255         * tests/unistr/test-u16-strdup.c: New file.
11256
11257         Tests for module 'unistr/u8-strdup'.
11258         * modules/unistr/u8-strdup-tests: New file.
11259         * tests/unistr/test-u8-strdup.c: New file.
11260         * tests/unistr/test-strdup.h: New file.
11261
11262         Tests for module 'unistr/u32-strncmp'.
11263         * modules/unistr/u32-strncmp-tests: New file.
11264         * tests/unistr/test-u32-strncmp.c: New file.
11265
11266         Tests for module 'unistr/u16-strncmp'.
11267         * modules/unistr/u16-strncmp-tests: New file.
11268         * tests/unistr/test-u16-strncmp.c: New file.
11269
11270         Tests for module 'unistr/u8-strncmp'.
11271         * modules/unistr/u8-strncmp-tests: New file.
11272         * tests/unistr/test-u8-strncmp.c: New file.
11273         * tests/unistr/test-strncmp.h: New file.
11274
11275         Tests for module 'unistr/u32-strcoll'.
11276         * modules/unistr/u32-strcoll-tests: New file.
11277         * tests/unistr/test-u32-strcoll.c: New file.
11278
11279         Tests for module 'unistr/u16-strcoll'.
11280         * modules/unistr/u16-strcoll-tests: New file.
11281         * tests/unistr/test-u16-strcoll.c: New file.
11282
11283         Tests for module 'unistr/u8-strcoll'.
11284         * modules/unistr/u8-strcoll-tests: New file.
11285         * tests/unistr/test-u8-strcoll.c: New file.
11286
11287         Tests for module 'unistr/u32-strcmp'.
11288         * modules/unistr/u32-strcmp-tests: New file.
11289         * tests/unistr/test-u32-strcmp.c: New file.
11290         * tests/unistr/test-u32-strcmp.h: New file.
11291
11292         Tests for module 'unistr/u16-strcmp'.
11293         * modules/unistr/u16-strcmp-tests: New file.
11294         * tests/unistr/test-u16-strcmp.c: New file.
11295         * tests/unistr/test-u16-strcmp.h: New file.
11296
11297         Tests for module 'unistr/u8-strcmp'.
11298         * modules/unistr/u8-strcmp-tests: New file.
11299         * tests/unistr/test-u8-strcmp.c: New file.
11300         * tests/unistr/test-u8-strcmp.h: New file.
11301         * tests/unistr/test-strcmp.h: New file.
11302
11303         Tests for module 'unistr/u32-strncat'.
11304         * modules/unistr/u32-strncat-tests: New file.
11305         * tests/unistr/test-u32-strncat.c: New file.
11306
11307         Tests for module 'unistr/u16-strncat'.
11308         * modules/unistr/u16-strncat-tests: New file.
11309         * tests/unistr/test-u16-strncat.c: New file.
11310
11311         Tests for module 'unistr/u8-strncat'.
11312         * modules/unistr/u8-strncat-tests: New file.
11313         * tests/unistr/test-u8-strncat.c: New file.
11314         * tests/unistr/test-strncat.h: New file.
11315
11316         Tests for module 'unistr/u32-strcat'.
11317         * modules/unistr/u32-strcat-tests: New file.
11318         * tests/unistr/test-u32-strcat.c: New file.
11319
11320         Tests for module 'unistr/u16-strcat'.
11321         * modules/unistr/u16-strcat-tests: New file.
11322         * tests/unistr/test-u16-strcat.c: New file.
11323
11324         Tests for module 'unistr/u8-strcat'.
11325         * modules/unistr/u8-strcat-tests: New file.
11326         * tests/unistr/test-u8-strcat.c: New file.
11327         * tests/unistr/test-strcat.h: New file.
11328
11329         Tests for module 'unistr/u32-stpncpy'.
11330         * modules/unistr/u32-stpncpy-tests: New file.
11331         * tests/unistr/test-u32-stpncpy.c: New file.
11332
11333         Tests for module 'unistr/u16-stpncpy'.
11334         * modules/unistr/u16-stpncpy-tests: New file.
11335         * tests/unistr/test-u16-stpncpy.c: New file.
11336
11337         Tests for module 'unistr/u8-stpncpy'.
11338         * modules/unistr/u8-stpncpy-tests: New file.
11339         * tests/unistr/test-u8-stpncpy.c: New file.
11340         * tests/unistr/test-stpncpy.h: New file.
11341
11342         Tests for module 'unistr/u32-strncpy'.
11343         * modules/unistr/u32-strncpy-tests: New file.
11344         * tests/unistr/test-u32-strncpy.c: New file.
11345
11346         Tests for module 'unistr/u16-strncpy'.
11347         * modules/unistr/u16-strncpy-tests: New file.
11348         * tests/unistr/test-u16-strncpy.c: New file.
11349
11350         Tests for module 'unistr/u8-strncpy'.
11351         * modules/unistr/u8-strncpy-tests: New file.
11352         * tests/unistr/test-u8-strncpy.c: New file.
11353         * tests/unistr/test-strncpy.h: New file.
11354
11355         Tests for module 'unistr/u32-stpcpy'.
11356         * modules/unistr/u32-stpcpy-tests: New file.
11357         * tests/unistr/test-u32-stpcpy.c: New file.
11358
11359         Tests for module 'unistr/u16-stpcpy'.
11360         * modules/unistr/u16-stpcpy-tests: New file.
11361         * tests/unistr/test-u16-stpcpy.c: New file.
11362
11363         Tests for module 'unistr/u8-stpcpy'.
11364         * modules/unistr/u8-stpcpy-tests: New file.
11365         * tests/unistr/test-u8-stpcpy.c: New file.
11366         * tests/unistr/test-stpcpy.h: New file.
11367
11368         Tests for module 'unistr/u32-strcpy'.
11369         * modules/unistr/u32-strcpy-tests: New file.
11370         * tests/unistr/test-u32-strcpy.c: New file.
11371
11372         Tests for module 'unistr/u16-strcpy'.
11373         * modules/unistr/u16-strcpy-tests: New file.
11374         * tests/unistr/test-u16-strcpy.c: New file.
11375
11376         Tests for module 'unistr/u8-strcpy'.
11377         * modules/unistr/u8-strcpy-tests: New file.
11378         * tests/unistr/test-u8-strcpy.c: New file.
11379         * tests/unistr/test-strcpy.h: New file.
11380
11381         Tests for module 'unistr/u32-strnlen'.
11382         * modules/unistr/u32-strnlen-tests: New file.
11383         * tests/unistr/test-u32-strnlen.c: New file.
11384
11385         Tests for module 'unistr/u16-strnlen'.
11386         * modules/unistr/u16-strnlen-tests: New file.
11387         * tests/unistr/test-u16-strnlen.c: New file.
11388
11389         Tests for module 'unistr/u8-strnlen'.
11390         * modules/unistr/u8-strnlen-tests: New file.
11391         * tests/unistr/test-u8-strnlen.c: New file.
11392         * tests/unistr/test-strnlen.h: New file.
11393
11394         Tests for module 'unistr/u32-strlen'.
11395         * modules/unistr/u32-strlen-tests: New file.
11396         * tests/unistr/test-u32-strlen.c: New file.
11397
11398         Tests for module 'unistr/u16-strlen'.
11399         * modules/unistr/u16-strlen-tests: New file.
11400         * tests/unistr/test-u16-strlen.c: New file.
11401
11402         Tests for module 'unistr/u8-strlen'.
11403         * modules/unistr/u8-strlen-tests: New file.
11404         * tests/unistr/test-u8-strlen.c: New file.
11405
11406         Tests for module 'unistr/u32-prev'.
11407         * modules/unistr/u32-prev-tests: New file.
11408         * tests/unistr/test-u32-prev.c: New file.
11409
11410         Tests for module 'unistr/u16-prev'.
11411         * modules/unistr/u16-prev-tests: New file.
11412         * tests/unistr/test-u16-prev.c: New file.
11413
11414         Tests for module 'unistr/u8-prev'.
11415         * modules/unistr/u8-prev-tests: New file.
11416         * tests/unistr/test-u8-prev.c: New file.
11417
11418         Tests for module 'unistr/u32-next'.
11419         * modules/unistr/u32-next-tests: New file.
11420         * tests/unistr/test-u32-next.c: New file.
11421
11422         Tests for module 'unistr/u16-next'.
11423         * modules/unistr/u16-next-tests: New file.
11424         * tests/unistr/test-u16-next.c: New file.
11425
11426         Tests for module 'unistr/u8-next'.
11427         * modules/unistr/u8-next-tests: New file.
11428         * tests/unistr/test-u8-next.c: New file.
11429
11430         Tests for module 'unistr/u32-strmbtouc'.
11431         * modules/unistr/u32-strmbtouc-tests: New file.
11432         * tests/unistr/test-u32-strmbtouc.c: New file.
11433
11434         Tests for module 'unistr/u16-strmbtouc'.
11435         * modules/unistr/u16-strmbtouc-tests: New file.
11436         * tests/unistr/test-u16-strmbtouc.c: New file.
11437
11438         Tests for module 'unistr/u8-strmbtouc'.
11439         * modules/unistr/u8-strmbtouc-tests: New file.
11440         * tests/unistr/test-u8-strmbtouc.c: New file.
11441
11442         Tests for module 'unistr/u32-strmblen'.
11443         * modules/unistr/u32-strmblen-tests: New file.
11444         * tests/unistr/test-u32-strmblen.c: New file.
11445
11446         Tests for module 'unistr/u16-strmblen'.
11447         * modules/unistr/u16-strmblen-tests: New file.
11448         * tests/unistr/test-u16-strmblen.c: New file.
11449
11450         Tests for module 'unistr/u8-strmblen'.
11451         * modules/unistr/u8-strmblen-tests: New file.
11452         * tests/unistr/test-u8-strmblen.c: New file.
11453
11454         Tests for module 'unistr/u32-cpy-alloc'.
11455         * modules/unistr/u32-cpy-alloc-tests: New file.
11456         * tests/unistr/test-u32-cpy-alloc.c: New file.
11457
11458         Tests for module 'unistr/u16-cpy-alloc'.
11459         * modules/unistr/u16-cpy-alloc-tests: New file.
11460         * tests/unistr/test-u16-cpy-alloc.c: New file.
11461
11462         Tests for module 'unistr/u8-cpy-alloc'.
11463         * modules/unistr/u8-cpy-alloc-tests: New file.
11464         * tests/unistr/test-u8-cpy-alloc.c: New file.
11465         * tests/unistr/test-cpy-alloc.h: New file.
11466
11467         Tests for module 'unistr/u32-mbsnlen'.
11468         * modules/unistr/u32-mbsnlen-tests: New file.
11469         * tests/unistr/test-u32-mbsnlen.c: New file.
11470
11471         Tests for module 'unistr/u16-mbsnlen'.
11472         * modules/unistr/u16-mbsnlen-tests: New file.
11473         * tests/unistr/test-u16-mbsnlen.c: New file.
11474
11475         Tests for module 'unistr/u8-mbsnlen'.
11476         * modules/unistr/u8-mbsnlen-tests: New file.
11477         * tests/unistr/test-u8-mbsnlen.c: New file.
11478
11479         Tests for module 'unistr/u32-chr'.
11480         * modules/unistr/u32-chr-tests: New file.
11481         * tests/unistr/test-u32-chr.c: New file.
11482
11483         Tests for module 'unistr/u16-chr'.
11484         * modules/unistr/u16-chr-tests: New file.
11485         * tests/unistr/test-u16-chr.c: New file.
11486
11487         Tests for module 'unistr/u8-chr'.
11488         * modules/unistr/u8-chr-tests: New file.
11489         * tests/unistr/test-u8-chr.c: New file.
11490         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11491
11492         Tests for module 'unistr/u32-cmp2'.
11493         * modules/unistr/u32-cmp2-tests: New file.
11494         * tests/unistr/test-u32-cmp2.c: New file.
11495
11496         Tests for module 'unistr/u16-cmp2'.
11497         * modules/unistr/u16-cmp2-tests: New file.
11498         * tests/unistr/test-u16-cmp2.c: New file.
11499
11500         Tests for module 'unistr/u8-cmp2'.
11501         * modules/unistr/u8-cmp2-tests: New file.
11502         * tests/unistr/test-u8-cmp2.c: New file.
11503         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11504
11505         Tests for module 'unistr/u32-cmp'.
11506         * modules/unistr/u32-cmp-tests: New file.
11507         * tests/unistr/test-u32-cmp.c: New file.
11508
11509         Tests for module 'unistr/u16-cmp'.
11510         * modules/unistr/u16-cmp-tests: New file.
11511         * tests/unistr/test-u16-cmp.c: New file.
11512
11513         Tests for module 'unistr/u8-cmp'.
11514         * modules/unistr/u8-cmp-tests: New file.
11515         * tests/unistr/test-u8-cmp.c: New file.
11516         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11517
11518         Tests for module 'unistr/u32-set'.
11519         * modules/unistr/u32-set-tests: New file.
11520         * tests/unistr/test-u32-set.c: New file.
11521
11522         Tests for module 'unistr/u16-set'.
11523         * modules/unistr/u16-set-tests: New file.
11524         * tests/unistr/test-u16-set.c: New file.
11525
11526         Tests for module 'unistr/u8-set'.
11527         * modules/unistr/u8-set-tests: New file.
11528         * tests/unistr/test-u8-set.c: New file.
11529         * tests/unistr/test-set.h: New file.
11530
11531         Tests for module 'unistr/u32-move'.
11532         * modules/unistr/u32-move-tests: New file.
11533         * tests/unistr/test-u32-move.c: New file.
11534
11535         Tests for module 'unistr/u16-move'.
11536         * modules/unistr/u16-move-tests: New file.
11537         * tests/unistr/test-u16-move.c: New file.
11538
11539         Tests for module 'unistr/u8-move'.
11540         * modules/unistr/u8-move-tests: New file.
11541         * tests/unistr/test-u8-move.c: New file.
11542         * tests/unistr/test-move.h: New file.
11543
11544         Tests for module 'unistr/u32-cpy'.
11545         * modules/unistr/u32-cpy-tests: New file.
11546         * tests/unistr/test-u32-cpy.c: New file.
11547
11548         Tests for module 'unistr/u16-cpy'.
11549         * modules/unistr/u16-cpy-tests: New file.
11550         * tests/unistr/test-u16-cpy.c: New file.
11551
11552         Tests for module 'unistr/u8-cpy'.
11553         * modules/unistr/u8-cpy-tests: New file.
11554         * tests/unistr/test-u8-cpy.c: New file.
11555         * tests/unistr/test-cpy.h: New file.
11556
11557 2010-01-09  Bruno Haible  <bruno@clisp.org>
11558
11559         Tests for module 'unistr/u32-uctomb'.
11560         * modules/unistr/u32-uctomb-tests: New file.
11561         * tests/unistr/test-u32-uctomb.c: New file.
11562
11563         Tests for module 'unistr/u16-uctomb'.
11564         * modules/unistr/u16-uctomb-tests: New file.
11565         * tests/unistr/test-u16-uctomb.c: New file.
11566
11567         Tests for module 'unistr/u8-uctomb'.
11568         * modules/unistr/u8-uctomb-tests: New file.
11569         * tests/unistr/test-u8-uctomb.c: New file.
11570
11571         Tests for module 'unistr/u32-mbtoucr'.
11572         * modules/unistr/u32-mbtoucr-tests: New file.
11573         * tests/unistr/test-u32-mbtoucr.c: New file.
11574
11575         Tests for module 'unistr/u16-mbtoucr'.
11576         * modules/unistr/u16-mbtoucr-tests: New file.
11577         * tests/unistr/test-u16-mbtoucr.c: New file.
11578
11579         Tests for module 'unistr/u8-mbtoucr'.
11580         * modules/unistr/u8-mbtoucr-tests: New file.
11581         * tests/unistr/test-u8-mbtoucr.c: New file.
11582
11583         Tests for module 'unistr/u32-mbtouc'.
11584         * modules/unistr/u32-mbtouc-tests: New file.
11585         * tests/unistr/test-u32-mbtouc.c: New file.
11586
11587         Tests for module 'unistr/u16-mbtouc'.
11588         * modules/unistr/u16-mbtouc-tests: New file.
11589         * tests/unistr/test-u16-mbtouc.c: New file.
11590
11591         Tests for module 'unistr/u8-mbtouc'.
11592         * modules/unistr/u8-mbtouc-tests: New file.
11593         * tests/unistr/test-u8-mbtouc.c: New file.
11594
11595         Tests for module 'unistr/u32-mbtouc-unsafe'.
11596         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11597         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11598         * tests/unistr/test-u32-mbtouc.h: New file.
11599
11600         Tests for module 'unistr/u16-mbtouc-unsafe'.
11601         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11602         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11603         * tests/unistr/test-u16-mbtouc.h: New file.
11604
11605         Tests for module 'unistr/u8-mbtouc-unsafe'.
11606         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11607         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11608         * tests/unistr/test-u8-mbtouc.h: New file.
11609
11610         Tests for module 'unistr/u32-mblen'.
11611         * modules/unistr/u32-mblen-tests: New file.
11612         * tests/unistr/test-u32-mblen.c: New file.
11613
11614         Tests for module 'unistr/u16-mblen'.
11615         * modules/unistr/u16-mblen-tests: New file.
11616         * tests/unistr/test-u16-mblen.c: New file.
11617
11618         Tests for module 'unistr/u8-mblen'.
11619         * modules/unistr/u8-mblen-tests: New file.
11620         * tests/unistr/test-u8-mblen.c: New file.
11621
11622         Tests for module 'unistr/u32-to-u16'.
11623         * modules/unistr/u32-to-u16-tests: New file.
11624         * tests/unistr/test-u32-to-u16.c: New file.
11625
11626         Tests for module 'unistr/u32-to-u8'.
11627         * modules/unistr/u32-to-u8-tests: New file.
11628         * tests/unistr/test-u32-to-u8.c: New file.
11629
11630         Tests for module 'unistr/u16-to-u32'.
11631         * modules/unistr/u16-to-u32-tests: New file.
11632         * tests/unistr/test-u16-to-u32.c: New file.
11633
11634         Tests for module 'unistr/u16-to-u8'.
11635         * modules/unistr/u16-to-u8-tests: New file.
11636         * tests/unistr/test-u16-to-u8.c: New file.
11637
11638         Tests for module 'unistr/u8-to-u32'.
11639         * modules/unistr/u8-to-u32-tests: New file.
11640         * tests/unistr/test-u8-to-u32.c: New file.
11641
11642         Tests for module 'unistr/u8-to-u16'.
11643         * modules/unistr/u8-to-u16-tests: New file.
11644         * tests/unistr/test-u8-to-u16.c: New file.
11645
11646         Tests for module 'unistr/u32-check'.
11647         * modules/unistr/u32-check-tests: New file.
11648         * tests/unistr/test-u32-check.c: New file.
11649
11650         Tests for module 'unistr/u16-check'.
11651         * modules/unistr/u16-check-tests: New file.
11652         * tests/unistr/test-u16-check.c: New file.
11653
11654         Tests for module 'unistr/u8-check'.
11655         * modules/unistr/u8-check-tests: New file.
11656         * tests/unistr/test-u8-check.c: New file.
11657
11658         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11659         (category_equals): New function.
11660         (main): Add more tests.
11661         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11662
11663         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11664
11665 2010-01-10  Bruno Haible  <bruno@clisp.org>
11666
11667         unistr/u*-strcoll: Try harder to distinguish different strings.
11668         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11669         compare s1 and s2 to see if they are different.
11670
11671 2010-01-10  Bruno Haible  <bruno@clisp.org>
11672
11673         unistr/u*-stpncpy: Fix the return value.
11674         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11675         description of the return value consistent with stpncpy in glibc.
11676         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11677         written non-NUL unit.
11678
11679 2010-01-10  Bruno Haible  <bruno@clisp.org>
11680
11681         unistr/u*-next: Add missing dependencies.
11682         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11683         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11684         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11685
11686 2010-01-10  Bruno Haible  <bruno@clisp.org>
11687
11688         unistr/u8-mbsnlen: Fix return value for incomplete character.
11689         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11690         u8_mblen.
11691         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11692         Remove unistr/u8-mblen.
11693         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11694         u16_mblen.
11695         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11696         Remove unistr/u16-mblen.
11697
11698 2010-01-10  Bruno Haible  <bruno@clisp.org>
11699
11700         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11701         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11702         Reported by Brian Gough <bjg@gnu.org> and
11703         Chris Clayton <chris2553@googlemail.com> via
11704         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11705
11706 2010-01-09  Bruno Haible  <bruno@clisp.org>
11707
11708         unistr/u16-to-u32: Reject invalid input.
11709         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11710         u16_mbtouc.
11711         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11712         Remove unistr/u16-mbtouc.
11713
11714         unistr/u16-to-u8: Reject invalid input.
11715         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11716         u16_mbtouc.
11717         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11718         Remove unistr/u16-mbtouc.
11719
11720         unistr/u8-to-u32: Reject invalid input.
11721         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11722         u8_mbtouc.
11723         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11724         Remove unistr/u8-mbtouc.
11725
11726         unistr/u8-to-u16: Reject invalid input.
11727         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11728         u8_mbtouc.
11729         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11730         Remove unistr/u8-mbtouc.
11731
11732 2010-01-09  Bruno Haible  <bruno@clisp.org>
11733
11734         Tests for module 'getlogin'.
11735         * modules/getlogin-tests: New file.
11736         * tests/test-getlogin.c: New file.
11737
11738         New module 'getlogin'.
11739         * lib/unistd.in.h (getlogin): New declaration.
11740         * lib/getlogin.c: New file.
11741         * m4/getlogin.m4: New file.
11742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11743         HAVE_GETLOGIN.
11744         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11745         HAVE_GETLOGIN.
11746         * modules/getlogin: New file.
11747         * doc/posix-functions/getlogin.texi: Mention the new module.
11748         Reported by John W. Eaton <jwe@gnu.org>.
11749
11750 2010-01-09  Bruno Haible  <bruno@clisp.org>
11751
11752         getlogin_r: Support for native Windows.
11753         * lib/getlogin_r.c: Include <windows.h>
11754         (getlogin_r): Implement for native Windows.
11755         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11756         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11757         via John W. Eaton <jwe@gnu.org>.
11758
11759 2010-01-09  Bruno Haible  <bruno@clisp.org>
11760
11761         getlogin_r: Small fixes.
11762         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11763         succeeds.
11764         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11765         before testing whether getlogin_r is declared. No need to set
11766         HAVE_DECL_GETLOGIN_R to 1.
11767         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11768
11769 2010-01-09  Bruno Haible  <bruno@clisp.org>
11770
11771         * lib/unistd.in.h (getlogin_r): Add comment.
11772
11773 2010-01-09  Bruno Haible  <bruno@clisp.org>
11774
11775         Tests for module 'getlogin_r'.
11776         * modules/getlogin_r-tests: New file.
11777         * tests/test-getlogin_r.c: New file.
11778
11779 2010-01-09  Jim Meyering  <meyering@redhat.com>
11780
11781         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11782         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11783         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11784
11785 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11786
11787         * lib/dup2.c (rpl_dup2): Improve comment.
11788
11789 2010-01-08  Eric Blake  <ebb9@byu.net>
11790
11791         maint.mk: allow packages to add makefile @@ exceptions
11792         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11793         (sc_makefile_check): Rename...
11794         (sc_makefile_at_at_check): ...to this, and use hook.
11795
11796         dup2: work around mingw bug
11797         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11798         Reported by Simon Josefsson.
11799
11800 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11801
11802         glob: Fix C++ compilation.
11803         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11804         C++.
11805
11806 2010-01-07  Bruno Haible  <bruno@clisp.org>
11807
11808         Fix indentation of wctype.in.h, broken since 2007-01-06.
11809         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11810
11811 2010-01-07  Bruno Haible  <bruno@clisp.org>
11812
11813         mbslen: Avoid collision with system function.
11814         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11815         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11816         * m4/mbslen.m4: New file.
11817         * modules/mbslen (Files): Add it.
11818         (configure.ac): Invoke gl_MBSLEN.
11819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11820         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11821         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11822         via Ian Beckwith <ianb@erislabs.net>.
11823
11824 2010-01-07  Bruno Haible  <bruno@clisp.org>
11825
11826         dirent: Document the last fix.
11827         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11828
11829 2010-01-07  Bruno Haible  <bruno@clisp.org>
11830
11831         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11832         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11833         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11834         va_list are defined.
11835         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11836         Reported by Eric Blake.
11837
11838 2010-01-07  Bruno Haible  <bruno@clisp.org>
11839
11840         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11841         * modules/xlist (Depends-on): Add 'list',
11842         * modules/xoset (Depends-on): Add 'oset'.
11843         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11844
11845 2010-01-07  Bruno Haible  <bruno@clisp.org>
11846
11847         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11848         * doc/posix-functions/strncasecmp.texi: Likewise.
11849
11850 2010-01-07  Bruno Haible  <bruno@clisp.org>
11851
11852         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11853
11854 2010-01-07  John W. Eaton  <jwe@octave.org>
11855
11856         wctype: allow C++ use
11857         * lib/wctype.in.h: Add extern "C" block for C++.
11858
11859 2010-01-06  Eric Blake  <ebb9@byu.net>
11860
11861         maint.mk: detect incorrect GFDL usage
11862         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11863
11864 2010-01-06  Jim Meyering  <meyering@redhat.com>
11865         and Eric Blake  <ebb9@byu.net>
11866
11867         maint.mk: ignore multi-line copyright in NEWS
11868         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11869
11870 2010-01-06  Eric Blake  <ebb9@byu.net>
11871
11872         select: add missing dependency
11873         * modules/select-tests (Depends-on): Move sockets dependency...
11874         * modules/select (Depends-on): ...here.
11875         Reported by Ian Beckwith.
11876
11877         doc: regenerate INSTALL
11878         * doc/INSTALL: Reflect recent autoconf update.
11879         * doc/INSTALL.ISO: Likewise.
11880         * doc/INSTALL.UTF-8: Likewise.
11881
11882         pread: fix compilation on glibc
11883         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11884         Reported by Ralf Wildenhues.
11885
11886         dirent: fix test failure
11887         * lib/dirent.in.h (includes): Guarantee ino_t.
11888         Reported by Ralf Wildenhues.
11889
11890 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11891
11892         linkat, renameat: avoid bad free
11893         * lib/at-func2.c (at_func2): Fix typo.
11894         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11895
11896 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11897
11898         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11899         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11900         to avoid failure of symlink test later.
11901
11902 2010-01-06  Eric Blake  <ebb9@byu.net>
11903
11904         stdio, unistd: guarantee ssize_t
11905         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11906         2008 are exposed when needed.
11907         * lib/stdio.in.h (includes): Likewise.
11908         Reported by Ralf Wildenhues.
11909
11910 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11911
11912         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11913         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11914         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11915
11916 2010-01-06  Jim Meyering  <meyering@redhat.com>
11917
11918         readtokens: this module *does* require xalloc.h
11919         It uses only functions that were omitted by the old syntax-check rule.
11920         * lib/readtokens.c: Include "xalloc.h" once again.
11921         * modules/readtokens (Depends-on): Add xalloc.
11922         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11923
11924 2010-01-05  Eric Blake  <ebb9@byu.net>
11925
11926         maint: support 'make announcement' from a VPATH build
11927         * top/maint.mk (announcement): Look for correct NEWS file.
11928
11929 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11930
11931         utimens (fdutimens): ignore a negative FD, per contract
11932         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11933         when we have a valid file descriptor.  Otherwise, using a brand
11934         new glibc (with just-patched futimens that now fails with EBADF)
11935         would cause this function to fail with ENOSYS.
11936         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11937         See also http://bugzilla.redhat.com/552320.
11938
11939 2010-01-05  Eric Blake  <ebb9@byu.net>
11940
11941         strcase: document what it provides
11942         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11943         gnulib module.
11944         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11945         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11946
11947 2010-01-05  Jim Meyering  <meyering@redhat.com>
11948
11949         maint: remove useless inclusions of "xalloc.h"
11950         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11951         * lib/readtokens.c: Likewise.
11952         * lib/same.c: Likewise.
11953         * modules/getloadavg (Depends-on): Remove xalloc.
11954         * modules/readtokens: Likewise.
11955         * modules/same: Likewise.
11956
11957         maint.mk: include 4 more function names in alloca.h-checking regexp
11958         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11959         regexp.  Before, we would give a false-positive (saying alloca.h
11960         is included unnecessarily) when the only uses involved omitted symbols.
11961
11962         xalloc.h: use consistent formatting
11963         * lib/xalloc.h: Move declarations to start in the first column.
11964
11965 2010-01-05  Eric Blake  <ebb9@byu.net>
11966
11967         mkdir: avoid xalloc
11968         * lib/mkdir.c (includes): Drop unused header.
11969         Reported by John W. Eaton.
11970
11971 2010-01-04  Jim Meyering  <meyering@redhat.com>
11972
11973         nl_langinfo: avoid configure-time syntax error
11974         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11975         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11976         the empty string.  Don't let that provoke a shell syntax error.
11977
11978         regcomp, regexec, fnmatch: avoid array bounds read error
11979         * lib/regcomp.c (build_equiv_class): From glibc:
11980         Use only the low 24 bits of a findidx return value as an index
11981         into the weights array.  Patch by Ulrich Drepper:
11982         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11983         * lib/regexec.c (check_node_accept_bytes): Likewise.
11984         * lib/fnmatch_loop.c (FCT): Likewise.
11985
11986         regcomp: skip collseq lookup when there are no rules
11987         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11988         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11989
11990         regcomp: recognize ill-formed { } expressions
11991         * lib/regcomp.c (parse_dup_op): From glibc:
11992         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11993
11994         regcomp: fix typo in comment
11995         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11996         s/satisfy/satisfies/.
11997
11998         regcomp: sync from glibc: remove dead store
11999         * lib/regcomp.c (duplicate_node_closure): Remove useless
12000         search_duplicated_node call and dead store.
12001
12002         regcomp: sync from glibc; always use nl_langinfo
12003         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
12004         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
12005         * modules/regex (Depends-on): Add nl_langinfo.
12006
12007 2010-01-04  Eric Blake  <ebb9@byu.net>
12008
12009         fdopendir: fix configure test
12010         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
12011
12012 2010-01-01  Bruno Haible  <bruno@clisp.org>
12013
12014         wchar: Remove unused configure check.
12015         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
12016
12017 2010-01-01  Eric Blake  <ebb9@byu.net>
12018
12019         headers: make check of system header explicit
12020         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
12021         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
12022         ourselves.
12023         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12024         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12025         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12026         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
12027         internals.
12028         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
12029         missing.
12030         Suggested by Bruno Haible.
12031
12032 2010-01-01  Jim Meyering  <meyering@redhat.com>
12033
12034         ChangeLog: tweak to eliminate unnecessary copyright line
12035         * ChangeLog: Remove a copyright line that was mistakenly updated
12036         by today's update-copyright run.  Reported by Eric Blake.
12037
12038         test-update-copyright: don't let envvar setting cause test failure
12039         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12040
12041 2010-01-01  Bruno Haible  <bruno@clisp.org>
12042
12043         localename: Avoid gcc warning.
12044         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
12045         function if it is not used.
12046
12047 2010-01-01  Jim Meyering  <meyering@redhat.com>
12048
12049         update nearly all FSF copyright year lists to include 2010
12050         Use the same procedure as for 2009, outlined in
12051         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
12052
12053         version-etc: set COPYRIGHT_YEAR to 2010
12054         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
12055
12056 2009-12-31  Eric Blake  <ebb9@byu.net>
12057
12058         doc: correct availability of cygwin 1.5.x getopt
12059         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
12060         variables.
12061         * doc/posix-functions/opterr.texi (opterr): Likewise.
12062         * doc/posix-functions/optind.texi (optind): Likewise.
12063         * doc/posix-functions/optopt.texi (optopt): Likewise.
12064         * doc/posix-functions/tzname.texi (tzname): Likewise.
12065
12066         openat: update maintainer
12067         * modules/openat (Maintainer): Add myself.
12068
12069         utimens: avoid shadowing warning
12070         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
12071         buffers into one, to avoid shadowing, as well as avoiding a
12072         redundant stat.
12073         Reported by Jim Meyering.
12074
12075         test-dup2: avoid compiler warning
12076         * tests/test-dup2.c (is_inheritable): Only define if used.
12077
12078 2010-01-01  Bruno Haible  <bruno@clisp.org>
12079
12080         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
12081         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
12082         defined, use wctomb instead of wcrtomb.
12083
12084 2010-01-01  Bruno Haible  <bruno@clisp.org>
12085
12086         iconv: Reject native Solaris iconv.
12087         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
12088         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
12089
12090 2009-12-31  Bruno Haible  <bruno@clisp.org>
12091
12092         * tests/test-signal.c (main): Remove test of 'SIG'.
12093
12094 2009-12-31  Bruno Haible  <bruno@clisp.org>
12095
12096         spawn: Fix incomplete fix.
12097         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12098         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12099         warnings for GNULIB_POSIXCHECK again.
12100         Reported by Eric Blake.
12101
12102 2009-12-31  Bruno Haible  <bruno@clisp.org>
12103
12104         Avoid namespace pollution on glibc systems.
12105         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
12106         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
12107         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
12108         glibc systems.
12109
12110 2009-12-31  Bruno Haible  <bruno@clisp.org>
12111
12112         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
12113         (gl_REPLACE_WCHAR_H): Turn into a no-op.
12114         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
12115         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12116         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12117         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12118         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12119
12120 2009-12-31  Bruno Haible  <bruno@clisp.org>
12121
12122         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12123         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12124         afterwards.
12125
12126 2009-12-31  Bruno Haible  <bruno@clisp.org>
12127
12128         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12129         SYS_UTSNAME_H.
12130
12131 2009-12-31  Bruno Haible  <bruno@clisp.org>
12132
12133         spawn: Fix misapplied patch.
12134         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12135         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12136         warnings for GNULIB_POSIXCHECK.
12137
12138 2009-12-31  Bruno Haible  <bruno@clisp.org>
12139
12140         times: Update after sys_times changed.
12141         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12142         * modules/times (Files): Add it.
12143         (configure.ac): Invoke gl_FUNC_TIMES.
12144
12145 2009-12-31  Bruno Haible  <bruno@clisp.org>
12146
12147         Use AC_C_INLINE where necessary.
12148         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12149         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12150         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12151         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12152         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12153         * m4/mbiter.m4 (gl_MBITER): Likewise.
12154         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12155         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12156         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12157         * modules/u64 (configure.ac): Likewise.
12158
12159 2009-12-31  Bruno Haible  <bruno@clisp.org>
12160
12161         Use AC_C_INLINE instead of module 'inline' where possible.
12162         * modules/inline (Description): Clarify purpose.
12163         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12164         * modules/count-one-bits (Depends-on): Remove inline.
12165         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12166         * modules/openat (Depends-on): Remove inline.
12167         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12168         instead of depending on module 'inline'.
12169         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12170         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12171         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12172         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12173         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12174         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12175         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12176         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12177         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12178         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12179         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12180         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12181         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12182         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12183         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12184         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12185         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12186         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12187         Likewise.
12188         * modules/unictype/property-ascii-hex-digit (Depends-on,
12189         configure.ac): Likewise.
12190         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12191         configure.ac): Likewise.
12192         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12193         configure.ac): Likewise.
12194         * modules/unictype/property-bidi-block-separator (Depends-on,
12195         configure.ac): Likewise.
12196         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12197         configure.ac): Likewise.
12198         * modules/unictype/property-bidi-common-separator (Depends-on,
12199         configure.ac): Likewise.
12200         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12201         Likewise.
12202         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12203         configure.ac): Likewise.
12204         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12205         configure.ac): Likewise.
12206         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12207         configure.ac): Likewise.
12208         * modules/unictype/property-bidi-european-digit (Depends-on,
12209         configure.ac): Likewise.
12210         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12211         configure.ac): Likewise.
12212         * modules/unictype/property-bidi-left-to-right (Depends-on,
12213         configure.ac): Likewise.
12214         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12215         configure.ac): Likewise.
12216         * modules/unictype/property-bidi-other-neutral (Depends-on,
12217         configure.ac): Likewise.
12218         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12219         Likewise.
12220         * modules/unictype/property-bidi-segment-separator (Depends-on,
12221         configure.ac): Likewise.
12222         * modules/unictype/property-bidi-whitespace (Depends-on,
12223         configure.ac): Likewise.
12224         * modules/unictype/property-combining (Depends-on, configure.ac):
12225         Likewise.
12226         * modules/unictype/property-composite (Depends-on, configure.ac):
12227         Likewise.
12228         * modules/unictype/property-currency-symbol (Depends-on,
12229         configure.ac): Likewise.
12230         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12231         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12232         Likewise.
12233         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12234         configure.ac): Likewise.
12235         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12236         Likewise.
12237         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12238         Likewise.
12239         * modules/unictype/property-extender (Depends-on, configure.ac):
12240         Likewise.
12241         * modules/unictype/property-format-control (Depends-on, configure.ac):
12242         Likewise.
12243         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12244         Likewise.
12245         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12246         Likewise.
12247         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12248         Likewise.
12249         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12250         Likewise.
12251         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12252         Likewise.
12253         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12254         Likewise.
12255         * modules/unictype/property-id-start (Depends-on, configure.ac):
12256         Likewise.
12257         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12258         Likewise.
12259         * modules/unictype/property-ids-binary-operator (Depends-on,
12260         configure.ac): Likewise.
12261         * modules/unictype/property-ids-trinary-operator (Depends-on,
12262         configure.ac): Likewise.
12263         * modules/unictype/property-ignorable-control (Depends-on,
12264         configure.ac): Likewise.
12265         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12266         Likewise.
12267         * modules/unictype/property-join-control (Depends-on, configure.ac):
12268         Likewise.
12269         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12270         Likewise.
12271         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12272         Likewise.
12273         * modules/unictype/property-logical-order-exception (Depends-on,
12274         configure.ac): Likewise.
12275         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12276         Likewise.
12277         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12278         * modules/unictype/property-non-break (Depends-on, configure.ac):
12279         Likewise.
12280         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12281         Likewise.
12282         * modules/unictype/property-numeric (Depends-on, configure.ac):
12283         Likewise.
12284         * modules/unictype/property-other-alphabetic (Depends-on,
12285         configure.ac): Likewise.
12286         * modules/unictype/property-other-default-ignorable-code-point
12287         (Depends-on, configure.ac): Likewise.
12288         * modules/unictype/property-other-grapheme-extend (Depends-on,
12289         configure.ac): Likewise.
12290         * modules/unictype/property-other-id-continue (Depends-on,
12291         configure.ac): Likewise.
12292         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12293         Likewise.
12294         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12295         Likewise.
12296         * modules/unictype/property-other-math (Depends-on, configure.ac):
12297         Likewise.
12298         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12299         Likewise.
12300         * modules/unictype/property-paired-punctuation (Depends-on,
12301         configure.ac): Likewise.
12302         * modules/unictype/property-paragraph-separator (Depends-on,
12303         configure.ac): Likewise.
12304         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12305         Likewise.
12306         * modules/unictype/property-pattern-white-space (Depends-on,
12307         configure.ac): Likewise.
12308         * modules/unictype/property-private-use (Depends-on, configure.ac):
12309         Likewise.
12310         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12311         Likewise.
12312         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12313         Likewise.
12314         * modules/unictype/property-radical (Depends-on, configure.ac):
12315         Likewise.
12316         * modules/unictype/property-sentence-terminal (Depends-on,
12317         configure.ac): Likewise.
12318         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12319         Likewise.
12320         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12321         * modules/unictype/property-terminal-punctuation (Depends-on,
12322         configure.ac): Likewise.
12323         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12324         Likewise.
12325         * modules/unictype/property-unassigned-code-value (Depends-on,
12326         configure.ac): Likewise.
12327         * modules/unictype/property-unified-ideograph (Depends-on,
12328         configure.ac): Likewise.
12329         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12330         Likewise.
12331         * modules/unictype/property-variation-selector (Depends-on,
12332         configure.ac): Likewise.
12333         * modules/unictype/property-white-space (Depends-on, configure.ac):
12334         Likewise.
12335         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12336         Likewise.
12337         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12338         Likewise.
12339         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12340         Likewise.
12341         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12342         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12343         Likewise.
12344
12345 2009-12-31  Bruno Haible  <bruno@clisp.org>
12346
12347         Remove unnecessary AC_C_INLINE invocation.
12348         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12349         since 2009-08-21.
12350
12351 2009-12-31  Jim Meyering  <meyering@redhat.com>
12352
12353         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12354         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12355         With this change, we can all remove the gpg_key_ID = ... definition
12356         from our respective cfg.mk files.
12357
12358         maint.mk: create announcement template in ~/, not in /tmp
12359         * top/maint.mk (emit_upload_commands): Adjust.
12360         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12361         Remove temporary file, .ci-msg.
12362
12363 2009-12-31  Eric Blake  <ebb9@byu.net>
12364
12365         link-warning: always build headers with link warnings
12366         * modules/arpa_inet (Makefile.am): Always build replacement
12367         header.
12368         * modules/ctype (Makefile.am): Likewise.
12369         * modules/dirent (Makefile.am): Likewise.
12370         * modules/inttypes (Makefile.am): Likewise.
12371         * modules/langinfo (Makefile.am): Likewise.
12372         * modules/locale (Makefile.am): Likewise.
12373         * modules/spawn (Makefile.am): Likewise.
12374         * modules/sys_file (Makefile.am): Likewise.
12375         * modules/sys_ioctl (Makefile.am): Likewise.
12376         * modules/sys_select (Makefile.am): Likewise.
12377         * modules/sys_socket (Makefile.am): Likewise.
12378         * modules/sys_times (Makefile.am): Likewise.
12379         * modules/sys_utsname (Makefile.am): Likewise.
12380         * modules/sys_wait (Makefile.am): Likewise.
12381         * modules/wchar (Makefile.am): Likewise.
12382         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12383         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12384         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12385         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12386         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12387         Likewise.
12388         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12389         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12390         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12391         Likewise.
12392         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12393         Likewise.
12394         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12396         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12397         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12398         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12399         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12400         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12401         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12402         (gl_WCHAR_H_DEFAULTS): Likewise.
12403
12404 2009-12-31  Eric Blake  <ebb9@byu.net>
12405
12406         signal, spawn: use link warnings
12407         * lib/signal.in.h (sigset_t): Make unconditional.
12408         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12409         (sigpending, sigprocmask, sigaction): Add link warnings.
12410         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12411         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12412         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12413         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12414         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12415         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12416         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12417         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12418         (posix_spawn_file_actions_destroy)
12419         (posix_spawn_file_actions_addopen)
12420         (posix_spawn_file_actions_addclose)
12421         (posix_spawn_file_actions_adddup2): Likewise.
12422         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12423         * tests/test-signal.c (main): Enhance test.
12424
12425         spawn: improve wrapper support
12426         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12427         (gl_SPAWN_H_DEFAULTS): New defaults.
12428         * modules/spawn (Makefile.am): Substitute them.
12429         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12430         Only declare if missing or broken.
12431
12432         sys_times, sys_utsname: use include_next
12433         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12434         header.
12435         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12436         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12437         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12438         * modules/sys_times (Depends-on): Add include_next.
12439         (Makefile.am): Substitute additional values.
12440         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12441         * lib/sys_times.in.h (includes): Include native header, if
12442         available.
12443         * lib/sys_utsname.in.h (includes): Likewise.
12444         * tests/test-sys_times.c (main): Enhance test.
12445
12446         fdutimensat: revert prior patch
12447         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12448         utimens.h.
12449         Reported by Bruno Haible.
12450
12451 2009-12-30  Eric Blake  <ebb9@byu.net>
12452
12453         sys_wait: drop link-warning dependency
12454         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12455         link-warning efforts.
12456         * lib/sys_wait.in.h: Likewise.
12457
12458         fdutimensat: remove bogus dependency
12459         * modules/fdutimensat (Depends-on): Drop inline.
12460
12461         unistd: fix typo
12462         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12463
12464 2009-12-30  Bruno Haible  <bruno@clisp.org>
12465
12466         Fix compilation error with Solaris cc.
12467         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12468         * lib/unicase/u16-is-invariant.c: Likewise.
12469         * lib/unicase/u32-is-invariant.c: Likewise.
12470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12471
12472 2009-12-30  Bruno Haible  <bruno@clisp.org>
12473
12474         Fix test crash.
12475         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12476         locales.
12477         Reported by Simon Josefsson <simon@josefsson.org>.
12478
12479 2009-12-30  Bruno Haible  <bruno@clisp.org>
12480
12481         Fix compilation error on most platforms.
12482         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12483         Reported by Simon Josefsson <simon@josefsson.org>
12484         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12485
12486 2009-12-30  Eric Blake  <ebb9@byu.net>
12487
12488         futimens, utimensat: work around ntfs-3g bug
12489         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12490         a ctime bug is present, and expand workaround to cover ntfs-3g.
12491         * lib/utimens.c (fdutimens, lutimens): Likewise.
12492         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12493         (validate_timespec): Adjust return value.
12494         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12495         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12496         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12497
12498 2009-12-29  Eric Blake  <ebb9@byu.net>
12499
12500         link-warning: make usage consistent
12501         * modules/ctype (Depends-on): Add link-warning.
12502         (Makefile.am): Update rules accordingly.
12503         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12504         * modules/locale (Depends-on, Makefile.am): Likewise.
12505         * modules/sys_file (Makefile.am): Likewise.
12506         * modules/getopt-posix (Makefile.am): Delete unused link warning
12507         efforts.
12508         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12509         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12510         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12511         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12512
12513         stdio: remove unused variables
12514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12516         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12517
12518         tests: test more substitute headers
12519         * modules/ctype-tests: New file.
12520         * modules/dirent-tests: Likewise.
12521         * modules/spawn-tests: Likewise.
12522         * modules/sys_file-tests: Likewise.
12523         * modules/sys_ioctl-tests: Likewise.
12524         * modules/sys_wait-tests: Likewise.
12525         * tests/test-ctype.c: Likewise.
12526         * tests/test-dirent.c: Likewise.
12527         * tests/test-spawn.c: Likewise.
12528         * tests/test-sys_file.c: Likewise.
12529         * tests/test-sys_ioctl.c: Likewise.
12530         * tests/test-sys_wait.c: Likewise.
12531         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12532         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12533         whether or not flock is in use.
12534
12535         tests: remove License section from module
12536         * modules/arpa_inet-tests: Remove unneeded section.
12537         * modules/byteswap-tests: Likewise.
12538         * modules/ceilf-tests: Likewise.
12539         * modules/ceill-tests: Likewise.
12540         * modules/crypto/des-tests: Likewise.
12541         * modules/crypto/gc-arcfour-tests: Likewise.
12542         * modules/crypto/gc-arctwo-tests: Likewise.
12543         * modules/crypto/gc-des-tests: Likewise.
12544         * modules/crypto/gc-hmac-md5-tests: Likewise.
12545         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12546         * modules/crypto/gc-md2-tests: Likewise.
12547         * modules/crypto/gc-md4-tests: Likewise.
12548         * modules/crypto/gc-md5-tests: Likewise.
12549         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12550         * modules/crypto/gc-rijndael-tests: Likewise.
12551         * modules/crypto/gc-sha1-tests: Likewise.
12552         * modules/crypto/gc-tests: Likewise.
12553         * modules/crypto/md2-tests: Likewise.
12554         * modules/crypto/md4-tests: Likewise.
12555         * modules/fcntl-h-tests: Likewise.
12556         * modules/floorf-tests: Likewise.
12557         * modules/floorl-tests: Likewise.
12558         * modules/frexp-nolibm-tests: Likewise.
12559         * modules/frexp-tests: Likewise.
12560         * modules/frexpl-nolibm-tests: Likewise.
12561         * modules/frexpl-tests: Likewise.
12562         * modules/getaddrinfo-tests: Likewise.
12563         * modules/inttypes-tests: Likewise.
12564         * modules/isfinite-tests: Likewise.
12565         * modules/isinf-tests: Likewise.
12566         * modules/ldexpl-tests: Likewise.
12567         * modules/locale-tests: Likewise.
12568         * modules/math-tests: Likewise.
12569         * modules/netdb-tests: Likewise.
12570         * modules/netinet_in-tests: Likewise.
12571         * modules/printf-frexp-tests: Likewise.
12572         * modules/printf-frexpl-tests: Likewise.
12573         * modules/priv-set-tests: Likewise.
12574         * modules/random_r-tests: Likewise.
12575         * modules/round-tests: Likewise.
12576         * modules/roundf-tests: Likewise.
12577         * modules/roundl-tests: Likewise.
12578         * modules/search-tests: Likewise.
12579         * modules/select-tests: Likewise.
12580         * modules/signal-tests: Likewise.
12581         * modules/stdbool-tests: Likewise.
12582         * modules/stddef-tests: Likewise.
12583         * modules/stdint-tests: Likewise.
12584         * modules/stdio-tests: Likewise.
12585         * modules/stdlib-tests: Likewise.
12586         * modules/string-tests: Likewise.
12587         * modules/strings-tests: Likewise.
12588         * modules/sys_select-tests: Likewise.
12589         * modules/sys_socket-tests: Likewise.
12590         * modules/sys_stat-tests: Likewise.
12591         * modules/sys_time-tests: Likewise.
12592         * modules/sys_utsname-tests: Likewise.
12593         * modules/sysexits-tests: Likewise.
12594         * modules/time-tests: Likewise.
12595         * modules/trunc-tests: Likewise.
12596         * modules/truncf-tests: Likewise.
12597         * modules/truncl-tests: Likewise.
12598         * modules/tsearch-tests: Likewise.
12599         * modules/unistd-tests: Likewise.
12600         * modules/wchar-tests: Likewise.
12601         * modules/wctype-tests: Likewise.
12602
12603         tests: fix license on several tests
12604         * tests/test-des.c: Update to GPLv3+.
12605         * tests/test-flock.c: Likewise.
12606         * tests/test-fsync.c: Likewise.
12607         * tests/test-futimens.h: Likewise.
12608         * tests/test-gc-arcfour.c: Likewise.
12609         * tests/test-gc-arctwo.c: Likewise.
12610         * tests/test-gc-des.c: Likewise.
12611         * tests/test-gc-hmac-md5.c: Likewise.
12612         * tests/test-gc-hmac-sha1.c: Likewise.
12613         * tests/test-gc-md2.c: Likewise.
12614         * tests/test-gc-md4.c: Likewise.
12615         * tests/test-gc-md5.c: Likewise.
12616         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12617         * tests/test-gc-rijndael.c: Likewise.
12618         * tests/test-gc-sha1.c: Likewise.
12619         * tests/test-gc.c: Likewise.
12620         * tests/test-getcwd.c: Likewise.
12621         * tests/test-link.c: Likewise.
12622         * tests/test-link.h: Likewise.
12623         * tests/test-lutimens.h: Likewise.
12624         * tests/test-md2.c: Likewise.
12625         * tests/test-md4.c: Likewise.
12626         * tests/test-mkdir.h: Likewise.
12627         * tests/test-rename.c: Likewise.
12628         * tests/test-rename.h: Likewise.
12629         * tests/test-safe-alloc.c: Likewise.
12630         * tests/test-utimens-common.h: Likewise.
12631         * tests/test-utimens.h: Likewise.
12632
12633         maint: sync license texts
12634         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12635         * doc/gpl-3.0.texi: Revert copyright year update.
12636         * doc/lgpl-3.0.texi: Likewise.
12637
12638 2009-12-29  Jim Meyering  <meyering@redhat.com>
12639
12640         update nearly all FSF copyright year lists to include 2009
12641         The files named by the following are exempted:
12642             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12643               test -f "$dst" && { echo "$dst"; continue; }
12644               test -d "$dst" || continue
12645               echo "$dst"/$(basename "$src")
12646             done > exempt
12647             git ls-files tests/unictype >> exempt
12648         In the remaining files, convert to all-interval notation if
12649         - there is already at least one year interval like 2000-2003
12650         - the file is maintained by me
12651         - the file is in lib/uni*/, where that style already prevails
12652         Otherwise, use update-copyright's default.
12653
12654 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12655         and Eric Blake  <ebb9@byu.net>
12656
12657         tests: don't require debug system() to pass
12658         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12659         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12660         * tests/test-unlink.h (test_unlink_func): Likewise.
12661         * tests/test-fstatat.c (main): ...into callers.
12662         * tests/test-lstat.c (main): Likewise.
12663         * tests/test-rmdir.c (main): Likewise.
12664         * tests/test-unlink.c (main): Likewise.
12665         * tests/test-unlinkat.c (main): Likewise.
12666         * tests/test-areadlink-with-size.c (main): Don't require a
12667         debug-only system call to pass, aiding cross-testing to mingw.
12668         * tests/test-areadlink.c (main): Likewise.
12669         * tests/test-areadlinkat-with-size.c (main): Likewise.
12670         * tests/test-areadlinkat.c (main): Likewise.
12671         * tests/test-canonicalize-lgpl.c (main): Likewise.
12672         * tests/test-canonicalize.c (main): Likewise.
12673         * tests/test-chown.c (main): Likewise.
12674         * tests/test-fchownat.c (main): Likewise.
12675         * tests/test-lchown.c (main): Likewise.
12676         * tests/test-fdutimensat.c (main): Likewise.
12677         * tests/test-futimens.c (main): Likewise.
12678         * tests/test-link.c (main): Likewise.
12679         * tests/test-linkat.c (main): Likewise.
12680         * tests/test-mkdir.c (main): Likewise.
12681         * tests/test-mkdirat.c (main): Likewise.
12682         * tests/test-mkfifo.c (main): Likewise.
12683         * tests/test-mkfifoat.c (main): Likewise.
12684         * tests/test-mknod.c (main): Likewise.
12685         * tests/test-readlink.c (main): Likewise.
12686         * tests/test-remove.c (main): Likewise.
12687         * tests/test-rename.c (main): Likewise.
12688         * tests/test-renameat.c (main): Likewise.
12689         * tests/test-symlink.c (main): Likewise.
12690         * tests/test-symlinkat.c (main): Likewise.
12691         * tests/test-utimens.c (main): Likewise.
12692         * tests/test-utimensat.c (main): Likewise.
12693
12694 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12695
12696         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12697         on $(UNUSED_PARAMETER_H) to avoid build failure.
12698
12699 2009-12-28  Jim Meyering  <meyering@redhat.com>
12700
12701         update-copyright: you may specify a max. line length other than 72
12702         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12703
12704         maint: use consistent FSF copyright line syntax
12705         * lib/posixtm.c: Add missing comma in FSF copyright line.
12706         * lib/posixtm.h: Likewise.
12707         * lib/getugroups.c: Add missing ", Inc.".
12708
12709         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12710         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12711         FSF copyright line.  Remove trailing blanks.
12712
12713 2009-12-28  Eric Blake  <ebb9@byu.net>
12714
12715         test-dup2: reduce dependencies
12716         * modules/cloexec (Configure.ac): Set witness.
12717         * modules/dup2-tests (Depends-on): Drop cloexec.
12718         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12719         not present.
12720         Suggested by Bruno Haible.
12721
12722 2009-12-26  Bruno Haible  <bruno@clisp.org>
12723
12724         Remove an unneeded dependency.
12725         * modules/fseterr (Depends-on): Remove dup2.
12726
12727 2009-12-26  Eric Blake  <ebb9@byu.net>
12728
12729         tests: use macros.h in more places
12730         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12731         (ASSERT_STREAM): Provide default of stderr.
12732         * tests/test-dirent-safer.c: Include macros.h, using alternate
12733         stream for assertions.
12734         * tests/test-dup-safer.c: Likewise.
12735         * tests/test-freopen-safer.c: Likewise.
12736         * tests/test-getopt.c: Likewise.
12737         * tests/test-openat-safer.c: Likewise.
12738         * tests/test-pipe.c: Likewise.
12739         * tests/test-popen-safer.c: Likewise.
12740         * modules/dirent-safer-tests (Files): Include macros.h.
12741         * modules/unistd-safer-tests (Files): Likewise.
12742         * modules/freopen-safer-tests (Files): Likewise.
12743         * modules/getopt-posix-tests (Files): Likewise.
12744         * modules/openat-safer-tests (Files): Likewise.
12745         * modules/pipe-tests (Files): Likewise.
12746
12747 2009-12-26  Bruno Haible  <bruno@clisp.org>
12748
12749         javacomp: Portability fix.
12750         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12751         that it also works on Solaris.
12752
12753 2009-12-26  Bruno Haible  <bruno@clisp.org>
12754
12755         localename: Fix storage allocation of gl_locale_name_thread's result.
12756         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12757         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12758         all platforms that have 'uselocale'.
12759         (gl_locale_name_thread_unsafe): New function, extracted from
12760         gl_locale_name_thread.
12761         (gl_locale_name_thread): Call struniq on all platforms that have
12762         'uselocale'.
12763         * tests/test-localename.c (test_locale_name_thread): Check that the
12764         resulting strings are permanently allocated.
12765         * modules/localename-tests (Depends-on): Add strdup.
12766
12767 2009-12-26  Bruno Haible  <bruno@clisp.org>
12768
12769         * tests/test-localename.c (categories): Fill in the strings.
12770
12771 2009-12-26  Jim Meyering  <meyering@redhat.com>
12772
12773         isdir: complete the removal of m4/isdir.m4
12774         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12775
12776         isdir: clean up, since at least grep still uses it
12777         * lib/isdir.c: Include "isdir.h".
12778         (S_ISDIR): Remove now-unneeded definition.
12779         * modules/isdir (Files): Add lib/isdir.h.
12780         * lib/isdir.h: New file, with declaration.
12781         * m4/isdir.m4: Remove file -- unneeded.
12782
12783 2009-12-25  Bruno Haible  <bruno@clisp.org>
12784
12785         selinux-h: Make generated .h files standalone.
12786         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12787         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12788         * lib/se-selinux.in.h: Likewise.
12789         * modules/selinux-h (Depends-on): Add unused-parameter.
12790         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12791         selinux/selinux.h and selinux/context.h.
12792         Suggested by Eric Blake.
12793
12794 2009-12-25  Bruno Haible  <bruno@clisp.org>
12795
12796         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12797         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12798         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12799         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12800         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12801
12802 2009-12-24  Bruno Haible  <bruno@clisp.org>
12803
12804         openat: Fix warning.
12805         * lib/openat-proc.c: Include <unistd.h>.
12806
12807 2009-12-24  Bruno Haible  <bruno@clisp.org>
12808
12809         New module 'unused-parameter'.
12810         * build-aux/unused-parameter.h: New file, extracted from earlier
12811         gnulib-common.m4.
12812         * modules/unused-parameter: New file.
12813         * lib/unistr.h: Include unused-parameter.h.
12814         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12815         _GL_UNUSED.
12816         * modules/unistr/base (Depends-on): Add unused-parameter.
12817
12818 2009-12-24  Bruno Haible  <bruno@clisp.org>
12819
12820         Add missing dependencies to 'extensions' module.
12821         * m4/extensions.m4: Add comment.
12822         * modules/accept4 (Depends-on): Add extensions.
12823         * modules/dup3 (Depends-on): Likewise.
12824         * modules/fcntl (Depends-on): Likewise.
12825         * modules/futimens (Depends-on): Likewise.
12826         * modules/mknod (Depends-on): Likewise.
12827         * modules/pipe2 (Depends-on): Likewise.
12828         * modules/stat-time (Depends-on): Likewise.
12829         * modules/strcasestr-simple (Depends-on): Likewise.
12830         * modules/strsignal (Depends-on): Likewise.
12831         * modules/utimensat (Depends-on): Likewise.
12832         * modules/localcharset (Depends-on): Likewise. Needed because of
12833         gl_FCNTL_O_FLAGS.
12834         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12835         AC_TYPE_MBSTATE_T.
12836         * modules/wcsnrtombs (Depends-on): Likewise.
12837         * modules/wcsrtombs (Depends-on): Likewise.
12838
12839 2009-12-24  Bruno Haible  <bruno@clisp.org>
12840
12841         binary-io: Avoid gcc warning due to SET_BINARY.
12842         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12843         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12844
12845 2009-12-24  Bruno Haible  <bruno@clisp.org>
12846
12847         Avoid future namespace pollution on glibc systems.
12848         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12849         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12850         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12851         glibc systems.
12852
12853 2009-12-24  Bruno Haible  <bruno@clisp.org>
12854
12855         Refactor common macros used in tests.
12856         * tests/macros.h: New file.
12857         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12858         and/or <stdlib.h>, if appropriate.
12859         (ASSERT, SIZEOF): Remove macros.
12860         * tests/test-areadlink-with-size.c: Likewise.
12861         * tests/test-areadlinkat.c: Likewise.
12862         * tests/test-areadlinkat-with-size.c: Likewise.
12863         * tests/test-argmatch.c: Likewise.
12864         * tests/test-argv-iter.c: Likewise.
12865         * tests/test-array-mergesort.c: Likewise.
12866         * tests/test-array_list.c: Likewise.
12867         * tests/test-array_oset.c: Likewise.
12868         * tests/test-avltree_list.c: Likewise.
12869         * tests/test-avltree_oset.c: Likewise.
12870         * tests/test-avltreehash_list.c: Likewise.
12871         * tests/test-base64.c: Likewise.
12872         * tests/test-binary-io.c: Likewise.
12873         * tests/test-bitrotate.c: Likewise.
12874         * tests/test-btowc.c: Likewise.
12875         * tests/test-byteswap.c: Likewise.
12876         * tests/test-c-ctype.c: Likewise.
12877         * tests/test-c-stack.c: Likewise.
12878         * tests/test-c-strcasecmp.c: Likewise.
12879         * tests/test-c-strcasestr.c: Likewise.
12880         * tests/test-c-strncasecmp.c: Likewise.
12881         * tests/test-c-strstr.c: Likewise.
12882         * tests/test-canonicalize-lgpl.c: Likewise.
12883         * tests/test-canonicalize.c: Likewise.
12884         * tests/test-carray_list.c: Likewise.
12885         * tests/test-ceilf1.c: Likewise.
12886         * tests/test-ceilf2.c: Likewise.
12887         * tests/test-ceill.c: Likewise.
12888         * tests/test-chown.c: Likewise.
12889         * tests/test-cloexec.c: Likewise.
12890         * tests/test-copy-acl.c: Likewise.
12891         * tests/test-copy-file.c: Likewise.
12892         * tests/test-count-one-bits.c: Likewise.
12893         * tests/test-dprintf-posix.c: Likewise.
12894         * tests/test-dup2.c: Likewise.
12895         * tests/test-dup3.c: Likewise.
12896         * tests/test-duplocale.c: Likewise.
12897         * tests/test-fbufmode.c: Likewise.
12898         * tests/test-fchdir.c: Likewise.
12899         * tests/test-fchownat.c: Likewise.
12900         * tests/test-fcntl-safer.c: Likewise.
12901         * tests/test-fcntl.c: Likewise.
12902         * tests/test-fdopendir.c: Likewise.
12903         * tests/test-fdutimensat.c: Likewise.
12904         * tests/test-fflush2.c: Likewise.
12905         * tests/test-file-has-acl.c: Likewise.
12906         * tests/test-filevercmp.c: Likewise.
12907         * tests/test-flock.c: Likewise.
12908         * tests/test-floorf1.c: Likewise.
12909         * tests/test-floorf2.c: Likewise.
12910         * tests/test-floorl.c: Likewise.
12911         * tests/test-fnmatch.c: Likewise.
12912         * tests/test-fopen.h: Likewise.
12913         * tests/test-fpending.c: Likewise.
12914         * tests/test-fprintf-posix.c: Likewise.
12915         * tests/test-fpurge.c: Likewise.
12916         * tests/test-freadable.c: Likewise.
12917         * tests/test-freadahead.c: Likewise.
12918         * tests/test-freading.c: Likewise.
12919         * tests/test-freadptr.c: Likewise.
12920         * tests/test-freadptr2.c: Likewise.
12921         * tests/test-freadseek.c: Likewise.
12922         * tests/test-freopen.c: Likewise.
12923         * tests/test-frexp.c: Likewise.
12924         * tests/test-frexpl.c: Likewise.
12925         * tests/test-fseek.c: Likewise.
12926         * tests/test-fseeko.c: Likewise.
12927         * tests/test-fstatat.c: Likewise.
12928         * tests/test-fstrcmp.c: Likewise.
12929         * tests/test-fsync.c: Likewise.
12930         * tests/test-ftell.c: Likewise.
12931         * tests/test-ftello.c: Likewise.
12932         * tests/test-func.c: Likewise.
12933         * tests/test-futimens.c: Likewise.
12934         * tests/test-fwritable.c: Likewise.
12935         * tests/test-fwriting.c: Likewise.
12936         * tests/test-getcwd.c: Likewise.
12937         * tests/test-getdate.c: Likewise.
12938         * tests/test-getdelim.c: Likewise.
12939         * tests/test-getdtablesize.c: Likewise.
12940         * tests/test-getgroups.c: Likewise.
12941         * tests/test-getline.c: Likewise.
12942         * tests/test-getndelim2.c: Likewise.
12943         * tests/test-glob.c: Likewise.
12944         * tests/test-hash.c: Likewise.
12945         * tests/test-i-ring.c: Likewise.
12946         * tests/test-iconv-utf.c: Likewise.
12947         * tests/test-iconv.c: Likewise.
12948         * tests/test-idpriv-drop.c: Likewise.
12949         * tests/test-idpriv-droptemp.c: Likewise.
12950         * tests/test-inet_ntop.c: Likewise.
12951         * tests/test-inet_pton.c: Likewise.
12952         * tests/test-isblank.c: Likewise.
12953         * tests/test-isfinite.c: Likewise.
12954         * tests/test-isinf.c: Likewise.
12955         * tests/test-isnan.c: Likewise.
12956         * tests/test-isnand.h: Likewise.
12957         * tests/test-isnanf.h: Likewise.
12958         * tests/test-isnanl.h: Likewise.
12959         * tests/test-lchown.c: Likewise.
12960         * tests/test-ldexpl.c: Likewise.
12961         * tests/test-link.c: Likewise.
12962         * tests/test-linkat.c: Likewise.
12963         * tests/test-linked_list.c: Likewise.
12964         * tests/test-linkedhash_list.c: Likewise.
12965         * tests/test-localename.c: Likewise.
12966         * tests/test-lseek.c: Likewise.
12967         * tests/test-lstat.c: Likewise.
12968         * tests/test-mbmemcasecmp.c: Likewise.
12969         * tests/test-mbmemcasecoll.c: Likewise.
12970         * tests/test-mbrtowc.c: Likewise.
12971         * tests/test-mbscasecmp.c: Likewise.
12972         * tests/test-mbscasestr1.c: Likewise.
12973         * tests/test-mbscasestr2.c: Likewise.
12974         * tests/test-mbscasestr3.c: Likewise.
12975         * tests/test-mbscasestr4.c: Likewise.
12976         * tests/test-mbschr.c: Likewise.
12977         * tests/test-mbscspn.c: Likewise.
12978         * tests/test-mbsinit.c: Likewise.
12979         * tests/test-mbsncasecmp.c: Likewise.
12980         * tests/test-mbsnrtowcs.c: Likewise.
12981         * tests/test-mbspbrk.c: Likewise.
12982         * tests/test-mbspcasecmp.c: Likewise.
12983         * tests/test-mbsrchr.c: Likewise.
12984         * tests/test-mbsrtowcs.c: Likewise.
12985         * tests/test-mbsspn.c: Likewise.
12986         * tests/test-mbsstr1.c: Likewise.
12987         * tests/test-mbsstr2.c: Likewise.
12988         * tests/test-mbsstr3.c: Likewise.
12989         * tests/test-memchr.c: Likewise.
12990         * tests/test-memchr2.c: Likewise.
12991         * tests/test-memcmp.c: Likewise.
12992         * tests/test-memmem.c: Likewise.
12993         * tests/test-memrchr.c: Likewise.
12994         * tests/test-mkdir.c: Likewise.
12995         * tests/test-mkdirat.c: Likewise.
12996         * tests/test-mkfifo.c: Likewise.
12997         * tests/test-mkfifoat.c: Likewise.
12998         * tests/test-mknod.c: Likewise.
12999         * tests/test-nanosleep.c: Likewise.
13000         * tests/test-nl_langinfo.c: Likewise.
13001         * tests/test-obstack-printf.c: Likewise.
13002         * tests/test-open.c: Likewise.
13003         * tests/test-openat.c: Likewise.
13004         * tests/test-pipe-filter-gi1.c: Likewise.
13005         * tests/test-pipe-filter-gi2-main.c: Likewise.
13006         * tests/test-pipe-filter-ii1.c: Likewise.
13007         * tests/test-pipe-filter-ii2-main.c: Likewise.
13008         * tests/test-pipe2.c: Likewise.
13009         * tests/test-popen.h: Likewise.
13010         * tests/test-posixtm.c: Likewise.
13011         * tests/test-pread.c: Likewise.
13012         * tests/test-printf-frexp.c: Likewise.
13013         * tests/test-printf-frexpl.c: Likewise.
13014         * tests/test-printf-posix.c: Likewise.
13015         * tests/test-priv-set.c: Likewise.
13016         * tests/test-quotearg.c: Likewise.
13017         * tests/test-random_r.c: Likewise.
13018         * tests/test-rawmemchr.c: Likewise.
13019         * tests/test-rbtree_list.c: Likewise.
13020         * tests/test-rbtree_oset.c: Likewise.
13021         * tests/test-rbtreehash_list.c: Likewise.
13022         * tests/test-readlink.c: Likewise.
13023         * tests/test-remove.c: Likewise.
13024         * tests/test-rename.c: Likewise.
13025         * tests/test-renameat.c: Likewise.
13026         * tests/test-rmdir.c: Likewise.
13027         * tests/test-round1.c: Likewise.
13028         * tests/test-roundf1.c: Likewise.
13029         * tests/test-roundl.c: Likewise.
13030         * tests/test-safe-alloc.c: Likewise.
13031         * tests/test-sameacls.c: Likewise.
13032         * tests/test-set-mode-acl.c: Likewise.
13033         * tests/test-setenv.c: Likewise.
13034         * tests/test-sigaction.c: Likewise.
13035         * tests/test-signbit.c: Likewise.
13036         * tests/test-sleep.c: Likewise.
13037         * tests/test-snprintf-posix.c: Likewise.
13038         * tests/test-snprintf.c: Likewise.
13039         * tests/test-sprintf-posix.c: Likewise.
13040         * tests/test-stat-time.c: Likewise.
13041         * tests/test-stat.c: Likewise.
13042         * tests/test-strcasestr.c: Likewise.
13043         * tests/test-strchrnul.c: Likewise.
13044         * tests/test-strerror.c: Likewise.
13045         * tests/test-striconv.c: Likewise.
13046         * tests/test-striconveh.c: Likewise.
13047         * tests/test-striconveha.c: Likewise.
13048         * tests/test-strsignal.c: Likewise.
13049         * tests/test-strstr.c: Likewise.
13050         * tests/test-strtod.c: Likewise.
13051         * tests/test-strverscmp.c: Likewise.
13052         * tests/test-symlink.c: Likewise.
13053         * tests/test-symlinkat.c: Likewise.
13054         * tests/test-trunc1.c: Likewise.
13055         * tests/test-trunc2.c: Likewise.
13056         * tests/test-truncf1.c: Likewise.
13057         * tests/test-truncf2.c: Likewise.
13058         * tests/test-truncl.c: Likewise.
13059         * tests/test-uname.c: Likewise.
13060         * tests/test-unlink.c: Likewise.
13061         * tests/test-unlinkat.c: Likewise.
13062         * tests/test-unsetenv.c: Likewise.
13063         * tests/test-usleep.c: Likewise.
13064         * tests/test-utimens.c: Likewise.
13065         * tests/test-utimensat.c: Likewise.
13066         * tests/test-vasnprintf-posix.c: Likewise.
13067         * tests/test-vasnprintf-posix2.c: Likewise.
13068         * tests/test-vasnprintf.c: Likewise.
13069         * tests/test-vasprintf-posix.c: Likewise.
13070         * tests/test-vasprintf.c: Likewise.
13071         * tests/test-vdprintf-posix.c: Likewise.
13072         * tests/test-vfprintf-posix.c: Likewise.
13073         * tests/test-vprintf-posix.c: Likewise.
13074         * tests/test-vsnprintf-posix.c: Likewise.
13075         * tests/test-vsnprintf.c: Likewise.
13076         * tests/test-vsprintf-posix.c: Likewise.
13077         * tests/test-wcrtomb.c: Likewise.
13078         * tests/test-wcsnrtombs.c: Likewise.
13079         * tests/test-wcsrtombs.c: Likewise.
13080         * tests/test-wctype.c: Likewise.
13081         * tests/test-wcwidth.c: Likewise.
13082         * tests/test-xfprintf-posix.c: Likewise.
13083         * tests/test-xmemdup0.c: Likewise.
13084         * tests/test-xprintf-posix.c: Likewise.
13085         * tests/test-xvasprintf.c: Likewise.
13086         * tests/unicase/test-locale-language.c: Likewise.
13087         * tests/unicase/test-mapping-part1.h: Likewise.
13088         * tests/unicase/test-predicate-part1.h: Likewise.
13089         * tests/unicase/test-u8-casecmp.c: Likewise.
13090         * tests/unicase/test-u8-casecoll.c: Likewise.
13091         * tests/unicase/test-u8-casefold.c: Likewise.
13092         * tests/unicase/test-u8-is-cased.c: Likewise.
13093         * tests/unicase/test-u8-is-casefolded.c: Likewise.
13094         * tests/unicase/test-u8-is-lowercase.c: Likewise.
13095         * tests/unicase/test-u8-is-titlecase.c: Likewise.
13096         * tests/unicase/test-u8-is-uppercase.c: Likewise.
13097         * tests/unicase/test-u8-tolower.c: Likewise.
13098         * tests/unicase/test-u8-totitle.c: Likewise.
13099         * tests/unicase/test-u8-toupper.c: Likewise.
13100         * tests/unicase/test-u16-casecmp.c: Likewise.
13101         * tests/unicase/test-u16-casecoll.c: Likewise.
13102         * tests/unicase/test-u16-casefold.c: Likewise.
13103         * tests/unicase/test-u16-is-cased.c: Likewise.
13104         * tests/unicase/test-u16-is-casefolded.c: Likewise.
13105         * tests/unicase/test-u16-is-lowercase.c: Likewise.
13106         * tests/unicase/test-u16-is-titlecase.c: Likewise.
13107         * tests/unicase/test-u16-is-uppercase.c: Likewise.
13108         * tests/unicase/test-u16-tolower.c: Likewise.
13109         * tests/unicase/test-u16-totitle.c: Likewise.
13110         * tests/unicase/test-u16-toupper.c: Likewise.
13111         * tests/unicase/test-u32-casecmp.c: Likewise.
13112         * tests/unicase/test-u32-casecoll.c: Likewise.
13113         * tests/unicase/test-u32-casefold.c: Likewise.
13114         * tests/unicase/test-u32-is-cased.c: Likewise.
13115         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13116         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13117         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13118         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13119         * tests/unicase/test-u32-tolower.c: Likewise.
13120         * tests/unicase/test-u32-totitle.c: Likewise.
13121         * tests/unicase/test-u32-toupper.c: Likewise.
13122         * tests/unicase/test-ulc-casecmp.c: Likewise.
13123         * tests/unicase/test-ulc-casecoll.c: Likewise.
13124         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13125         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13126         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13127         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13128         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13129         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13130         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13131         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13132         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13133         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13134         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13135         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13136         * tests/unictype/test-bidi_byname.c: Likewise.
13137         * tests/unictype/test-bidi_name.c: Likewise.
13138         * tests/unictype/test-bidi_of.c: Likewise.
13139         * tests/unictype/test-bidi_test.c: Likewise.
13140         * tests/unictype/test-block_list.c: Likewise.
13141         * tests/unictype/test-block_of.c: Likewise.
13142         * tests/unictype/test-block_test.c: Likewise.
13143         * tests/unictype/test-categ_and.c: Likewise.
13144         * tests/unictype/test-categ_and_not.c: Likewise.
13145         * tests/unictype/test-categ_byname.c: Likewise.
13146         * tests/unictype/test-categ_name.c: Likewise.
13147         * tests/unictype/test-categ_none.c: Likewise.
13148         * tests/unictype/test-categ_of.c: Likewise.
13149         * tests/unictype/test-categ_or.c: Likewise.
13150         * tests/unictype/test-categ_test_withtable.c: Likewise.
13151         * tests/unictype/test-combining.c: Likewise.
13152         * tests/unictype/test-decdigit.c: Likewise.
13153         * tests/unictype/test-digit.c: Likewise.
13154         * tests/unictype/test-mirror.c: Likewise.
13155         * tests/unictype/test-numeric.c: Likewise.
13156         * tests/unictype/test-pr_byname.c: Likewise.
13157         * tests/unictype/test-pr_test.c: Likewise.
13158         * tests/unictype/test-predicate-part1.h: Likewise.
13159         * tests/unictype/test-scripts.c: Likewise.
13160         * tests/unictype/test-sy_c_ident.c: Likewise.
13161         * tests/unictype/test-sy_java_ident.c: Likewise.
13162         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13163         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13164         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13165         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13166         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13167         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13168         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13169         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13170         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13171         * tests/uninorm/test-compat-decomposition.c: Likewise.
13172         * tests/uninorm/test-composition.c: Likewise.
13173         * tests/uninorm/test-decomposing-form.c: Likewise.
13174         * tests/uninorm/test-decomposition.c: Likewise.
13175         * tests/uninorm/test-u8-nfc.c: Likewise.
13176         * tests/uninorm/test-u8-nfd.c: Likewise.
13177         * tests/uninorm/test-u8-nfkc.c: Likewise.
13178         * tests/uninorm/test-u8-nfkd.c: Likewise.
13179         * tests/uninorm/test-u8-normcmp.c: Likewise.
13180         * tests/uninorm/test-u8-normcoll.c: Likewise.
13181         * tests/uninorm/test-u16-nfc.c: Likewise.
13182         * tests/uninorm/test-u16-nfd.c: Likewise.
13183         * tests/uninorm/test-u16-nfkc.c: Likewise.
13184         * tests/uninorm/test-u16-nfkd.c: Likewise.
13185         * tests/uninorm/test-u16-normcmp.c: Likewise.
13186         * tests/uninorm/test-u16-normcoll.c: Likewise.
13187         * tests/uninorm/test-u32-nfc.c: Likewise.
13188         * tests/uninorm/test-u32-nfd.c: Likewise.
13189         * tests/uninorm/test-u32-nfkc.c: Likewise.
13190         * tests/uninorm/test-u32-nfkd.c: Likewise.
13191         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13192         * tests/uninorm/test-u32-normcmp.c: Likewise.
13193         * tests/uninorm/test-u32-normcoll.c: Likewise.
13194         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13195         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13196         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13197         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13198         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13199         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13200         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13201         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13202         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13203         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13204         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13205         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13206         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13207         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13208         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13209         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13210         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13211         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13212         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13213         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13214         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13215         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13216         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13217         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13218         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13219         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13220         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13221         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13222         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13223         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13224         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13225         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13226         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13227         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13228         * tests/uniwidth/test-u8-width.c: Likewise.
13229         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13230         * tests/uniwidth/test-u16-width.c: Likewise.
13231         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13232         * tests/uniwidth/test-u32-width.c: Likewise.
13233         * tests/uniwidth/test-uc_width.c: Likewise.
13234         * tests/uniwidth/test-uc_width2.c: Likewise.
13235         * modules/acl-tests (Files): Add tests/macros.h.
13236         * modules/areadlink-tests (Files): Likewise.
13237         * modules/areadlink-with-size-tests (Files): Likewise.
13238         * modules/areadlinkat-tests (Files): Likewise.
13239         * modules/areadlinkat-with-size-tests (Files): Likewise.
13240         * modules/argmatch-tests (Files): Likewise.
13241         * modules/argv-iter-tests (Files): Likewise.
13242         * modules/array-list-tests (Files): Likewise.
13243         * modules/array-mergesort-tests (Files): Likewise.
13244         * modules/array-oset-tests (Files): Likewise.
13245         * modules/avltree-list-tests (Files): Likewise.
13246         * modules/avltree-oset-tests (Files): Likewise.
13247         * modules/avltreehash-list-tests (Files): Likewise.
13248         * modules/base64-tests (Files): Likewise.
13249         * modules/binary-io-tests (Files): Likewise.
13250         * modules/bitrotate-tests (Files): Likewise.
13251         * modules/btowc-tests (Files): Likewise.
13252         * modules/byteswap-tests (Files): Likewise.
13253         * modules/c-ctype-tests (Files): Likewise.
13254         * modules/c-stack-tests (Files): Likewise.
13255         * modules/c-strcase-tests (Files): Likewise.
13256         * modules/c-strcasestr-tests (Files): Likewise.
13257         * modules/c-strstr-tests (Files): Likewise.
13258         * modules/canonicalize-lgpl-tests (Files): Likewise.
13259         * modules/canonicalize-tests (Files): Likewise.
13260         * modules/carray-list-tests (Files): Likewise.
13261         * modules/ceilf-tests (Files): Likewise.
13262         * modules/ceill-tests (Files): Likewise.
13263         * modules/chown-tests (Files): Likewise.
13264         * modules/cloexec-tests (Files): Likewise.
13265         * modules/copy-file-tests (Files): Likewise.
13266         * modules/count-one-bits-tests (Files): Likewise.
13267         * modules/dprintf-posix-tests (Files): Likewise.
13268         * modules/dup2-tests (Files): Likewise.
13269         * modules/dup3-tests (Files): Likewise.
13270         * modules/duplocale-tests (Files): Likewise.
13271         * modules/fbufmode-tests (Files): Likewise.
13272         * modules/fchdir-tests (Files): Likewise.
13273         * modules/fcntl-safer-tests (Files): Likewise.
13274         * modules/fcntl-tests (Files): Likewise.
13275         * modules/fdopendir-tests (Files): Likewise.
13276         * modules/fdutimensat-tests (Files): Likewise.
13277         * modules/fflush-tests (Files): Likewise.
13278         * modules/filevercmp-tests (Files): Likewise.
13279         * modules/flock-tests (Files): Likewise.
13280         * modules/floorf-tests (Files): Likewise.
13281         * modules/floorl-tests (Files): Likewise.
13282         * modules/fnmatch-tests (Files): Likewise.
13283         * modules/fopen-safer-tests (Files): Likewise.
13284         * modules/fopen-tests (Files): Likewise.
13285         * modules/fpending-tests (Files): Likewise.
13286         * modules/fprintf-posix-tests (Files): Likewise.
13287         * modules/fpurge-tests (Files): Likewise.
13288         * modules/freadable-tests (Files): Likewise.
13289         * modules/freadahead-tests (Files): Likewise.
13290         * modules/freading-tests (Files): Likewise.
13291         * modules/freadptr-tests (Files): Likewise.
13292         * modules/freadseek-tests (Files): Likewise.
13293         * modules/freopen-tests (Files): Likewise.
13294         * modules/frexp-nolibm-tests (Files): Likewise.
13295         * modules/frexp-tests (Files): Likewise.
13296         * modules/frexpl-nolibm-tests (Files): Likewise.
13297         * modules/frexpl-tests (Files): Likewise.
13298         * modules/fseek-tests (Files): Likewise.
13299         * modules/fseeko-tests (Files): Likewise.
13300         * modules/fstrcmp-tests (Files): Likewise.
13301         * modules/fsync-tests (Files): Likewise.
13302         * modules/ftell-tests (Files): Likewise.
13303         * modules/ftello-tests (Files): Likewise.
13304         * modules/func-tests (Files): Likewise.
13305         * modules/futimens-tests (Files): Likewise.
13306         * modules/fwritable-tests (Files): Likewise.
13307         * modules/fwriting-tests (Files): Likewise.
13308         * modules/getcwd-tests (Files): Likewise.
13309         * modules/getdate-tests (Files): Likewise.
13310         * modules/getdelim-tests (Files): Likewise.
13311         * modules/getdtablesize-tests (Files): Likewise.
13312         * modules/getgroups-tests (Files): Likewise.
13313         * modules/getline-tests (Files): Likewise.
13314         * modules/getndelim2-tests (Files): Likewise.
13315         * modules/glob-tests (Files): Likewise.
13316         * modules/hash-tests (Files): Likewise.
13317         * modules/i-ring-tests (Files): Likewise.
13318         * modules/iconv-tests (Files): Likewise.
13319         * modules/iconv_open-utf-tests (Files): Likewise.
13320         * modules/idpriv-drop-tests (Files): Likewise.
13321         * modules/idpriv-droptemp-tests (Files): Likewise.
13322         * modules/inet_ntop-tests (Files): Likewise.
13323         * modules/inet_pton-tests (Files): Likewise.
13324         * modules/isblank-tests (Files): Likewise.
13325         * modules/isfinite-tests (Files): Likewise.
13326         * modules/isinf-tests (Files): Likewise.
13327         * modules/isnan-tests (Files): Likewise.
13328         * modules/isnand-nolibm-tests (Files): Likewise.
13329         * modules/isnand-tests (Files): Likewise.
13330         * modules/isnanf-nolibm-tests (Files): Likewise.
13331         * modules/isnanf-tests (Files): Likewise.
13332         * modules/isnanl-nolibm-tests (Files): Likewise.
13333         * modules/isnanl-tests (Files): Likewise.
13334         * modules/lchown-tests (Files): Likewise.
13335         * modules/ldexpl-tests (Files): Likewise.
13336         * modules/link-tests (Files): Likewise.
13337         * modules/linkat-tests (Files): Likewise.
13338         * modules/linked-list-tests (Files): Likewise.
13339         * modules/linkedhash-list-tests (Files): Likewise.
13340         * modules/localename-tests (Files): Likewise.
13341         * modules/lseek-tests (Files): Likewise.
13342         * modules/lstat-tests (Files): Likewise.
13343         * modules/mbmemcasecmp-tests (Files): Likewise.
13344         * modules/mbmemcasecoll-tests (Files): Likewise.
13345         * modules/mbrtowc-tests (Files): Likewise.
13346         * modules/mbscasecmp-tests (Files): Likewise.
13347         * modules/mbscasestr-tests (Files): Likewise.
13348         * modules/mbschr-tests (Files): Likewise.
13349         * modules/mbscspn-tests (Files): Likewise.
13350         * modules/mbsinit-tests (Files): Likewise.
13351         * modules/mbsncasecmp-tests (Files): Likewise.
13352         * modules/mbsnrtowcs-tests (Files): Likewise.
13353         * modules/mbspbrk-tests (Files): Likewise.
13354         * modules/mbspcasecmp-tests (Files): Likewise.
13355         * modules/mbsrchr-tests (Files): Likewise.
13356         * modules/mbsrtowcs-tests (Files): Likewise.
13357         * modules/mbsspn-tests (Files): Likewise.
13358         * modules/mbsstr-tests (Files): Likewise.
13359         * modules/memchr-tests (Files): Likewise.
13360         * modules/memchr2-tests (Files): Likewise.
13361         * modules/memcmp-tests (Files): Likewise.
13362         * modules/memmem-tests (Files): Likewise.
13363         * modules/memrchr-tests (Files): Likewise.
13364         * modules/mkdir-tests (Files): Likewise.
13365         * modules/mkfifo-tests (Files): Likewise.
13366         * modules/mkfifoat-tests (Files): Likewise.
13367         * modules/mknod-tests (Files): Likewise.
13368         * modules/nanosleep-tests (Files): Likewise.
13369         * modules/nl_langinfo-tests (Files): Likewise.
13370         * modules/obstack-printf-tests (Files): Likewise.
13371         * modules/open-tests (Files): Likewise.
13372         * modules/openat-tests (Files): Likewise.
13373         * modules/pipe-filter-gi-tests (Files): Likewise.
13374         * modules/pipe-filter-ii-tests (Files): Likewise.
13375         * modules/pipe2-tests (Files): Likewise.
13376         * modules/popen-safer-tests (Files): Likewise.
13377         * modules/popen-tests (Files): Likewise.
13378         * modules/posixtm-tests (Files): Likewise.
13379         * modules/pread-tests (Files): Likewise.
13380         * modules/printf-frexp-tests (Files): Likewise.
13381         * modules/printf-frexpl-tests (Files): Likewise.
13382         * modules/printf-posix-tests (Files): Likewise.
13383         * modules/priv-set-tests (Files): Likewise.
13384         * modules/quotearg-tests (Files): Likewise.
13385         * modules/random_r-tests (Files): Likewise.
13386         * modules/rawmemchr-tests (Files): Likewise.
13387         * modules/rbtree-list-tests (Files): Likewise.
13388         * modules/rbtree-oset-tests (Files): Likewise.
13389         * modules/rbtreehash-list-tests (Files): Likewise.
13390         * modules/readlink-tests (Files): Likewise.
13391         * modules/remove-tests (Files): Likewise.
13392         * modules/rename-tests (Files): Likewise.
13393         * modules/renameat-tests (Files): Likewise.
13394         * modules/rmdir-tests (Files): Likewise.
13395         * modules/round-tests (Files): Likewise.
13396         * modules/roundf-tests (Files): Likewise.
13397         * modules/roundl-tests (Files): Likewise.
13398         * modules/safe-alloc-tests (Files): Likewise.
13399         * modules/setenv-tests (Files): Likewise.
13400         * modules/sigaction-tests (Files): Likewise.
13401         * modules/signbit-tests (Files): Likewise.
13402         * modules/sleep-tests (Files): Likewise.
13403         * modules/snprintf-posix-tests (Files): Likewise.
13404         * modules/snprintf-tests (Files): Likewise.
13405         * modules/sprintf-posix-tests (Files): Likewise.
13406         * modules/stat-tests (Files): Likewise.
13407         * modules/stat-time-tests (Files): Likewise.
13408         * modules/strcasestr-tests (Files): Likewise.
13409         * modules/strchrnul-tests (Files): Likewise.
13410         * modules/strerror-tests (Files): Likewise.
13411         * modules/striconv-tests (Files): Likewise.
13412         * modules/striconveh-tests (Files): Likewise.
13413         * modules/striconveha-tests (Files): Likewise.
13414         * modules/strsignal-tests (Files): Likewise.
13415         * modules/strstr-tests (Files): Likewise.
13416         * modules/strtod-tests (Files): Likewise.
13417         * modules/strverscmp-tests (Files): Likewise.
13418         * modules/symlink-tests (Files): Likewise.
13419         * modules/symlinkat-tests (Files): Likewise.
13420         * modules/trunc-tests (Files): Likewise.
13421         * modules/truncf-tests (Files): Likewise.
13422         * modules/truncl-tests (Files): Likewise.
13423         * modules/uname-tests (Files): Likewise.
13424         * modules/unicase/cased-tests (Files): Likewise.
13425         * modules/unicase/ignorable-tests (Files): Likewise.
13426         * modules/unicase/locale-language-tests (Files): Likewise.
13427         * modules/unicase/tolower-tests (Files): Likewise.
13428         * modules/unicase/totitle-tests (Files): Likewise.
13429         * modules/unicase/toupper-tests (Files): Likewise.
13430         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13431         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13432         * modules/unicase/u8-casefold-tests (Files): Likewise.
13433         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13434         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13435         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13436         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13437         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13438         * modules/unicase/u8-tolower-tests (Files): Likewise.
13439         * modules/unicase/u8-totitle-tests (Files): Likewise.
13440         * modules/unicase/u8-toupper-tests (Files): Likewise.
13441         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13442         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13443         * modules/unicase/u16-casefold-tests (Files): Likewise.
13444         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13445         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13446         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13447         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13448         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13449         * modules/unicase/u16-tolower-tests (Files): Likewise.
13450         * modules/unicase/u16-totitle-tests (Files): Likewise.
13451         * modules/unicase/u16-toupper-tests (Files): Likewise.
13452         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13453         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13454         * modules/unicase/u32-casefold-tests (Files): Likewise.
13455         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13456         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13457         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13458         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13459         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13460         * modules/unicase/u32-tolower-tests (Files): Likewise.
13461         * modules/unicase/u32-totitle-tests (Files): Likewise.
13462         * modules/unicase/u32-toupper-tests (Files): Likewise.
13463         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13464         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13465         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13466         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13467         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13468         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13469         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13470         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13471         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13472         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13473         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13474         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13475         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13476         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13477         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13478         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13479         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13480         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13481         * modules/unictype/block-list-tests (Files): Likewise.
13482         * modules/unictype/block-of-tests (Files): Likewise.
13483         * modules/unictype/block-test-tests (Files): Likewise.
13484         * modules/unictype/category-C-tests (Files): Likewise.
13485         * modules/unictype/category-Cc-tests (Files): Likewise.
13486         * modules/unictype/category-Cf-tests (Files): Likewise.
13487         * modules/unictype/category-Cn-tests (Files): Likewise.
13488         * modules/unictype/category-Co-tests (Files): Likewise.
13489         * modules/unictype/category-Cs-tests (Files): Likewise.
13490         * modules/unictype/category-L-tests (Files): Likewise.
13491         * modules/unictype/category-Ll-tests (Files): Likewise.
13492         * modules/unictype/category-Lm-tests (Files): Likewise.
13493         * modules/unictype/category-Lo-tests (Files): Likewise.
13494         * modules/unictype/category-Lt-tests (Files): Likewise.
13495         * modules/unictype/category-Lu-tests (Files): Likewise.
13496         * modules/unictype/category-M-tests (Files): Likewise.
13497         * modules/unictype/category-Mc-tests (Files): Likewise.
13498         * modules/unictype/category-Me-tests (Files): Likewise.
13499         * modules/unictype/category-Mn-tests (Files): Likewise.
13500         * modules/unictype/category-N-tests (Files): Likewise.
13501         * modules/unictype/category-Nd-tests (Files): Likewise.
13502         * modules/unictype/category-Nl-tests (Files): Likewise.
13503         * modules/unictype/category-No-tests (Files): Likewise.
13504         * modules/unictype/category-P-tests (Files): Likewise.
13505         * modules/unictype/category-Pc-tests (Files): Likewise.
13506         * modules/unictype/category-Pd-tests (Files): Likewise.
13507         * modules/unictype/category-Pe-tests (Files): Likewise.
13508         * modules/unictype/category-Pf-tests (Files): Likewise.
13509         * modules/unictype/category-Pi-tests (Files): Likewise.
13510         * modules/unictype/category-Po-tests (Files): Likewise.
13511         * modules/unictype/category-Ps-tests (Files): Likewise.
13512         * modules/unictype/category-S-tests (Files): Likewise.
13513         * modules/unictype/category-Sc-tests (Files): Likewise.
13514         * modules/unictype/category-Sk-tests (Files): Likewise.
13515         * modules/unictype/category-Sm-tests (Files): Likewise.
13516         * modules/unictype/category-So-tests (Files): Likewise.
13517         * modules/unictype/category-Z-tests (Files): Likewise.
13518         * modules/unictype/category-Zl-tests (Files): Likewise.
13519         * modules/unictype/category-Zp-tests (Files): Likewise.
13520         * modules/unictype/category-Zs-tests (Files): Likewise.
13521         * modules/unictype/category-and-not-tests (Files): Likewise.
13522         * modules/unictype/category-and-tests (Files): Likewise.
13523         * modules/unictype/category-byname-tests (Files): Likewise.
13524         * modules/unictype/category-name-tests (Files): Likewise.
13525         * modules/unictype/category-none-tests (Files): Likewise.
13526         * modules/unictype/category-of-tests (Files): Likewise.
13527         * modules/unictype/category-or-tests (Files): Likewise.
13528         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13529         * modules/unictype/combining-class-tests (Files): Likewise.
13530         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13531         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13532         * modules/unictype/ctype-blank-tests (Files): Likewise.
13533         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13534         * modules/unictype/ctype-digit-tests (Files): Likewise.
13535         * modules/unictype/ctype-graph-tests (Files): Likewise.
13536         * modules/unictype/ctype-lower-tests (Files): Likewise.
13537         * modules/unictype/ctype-print-tests (Files): Likewise.
13538         * modules/unictype/ctype-punct-tests (Files): Likewise.
13539         * modules/unictype/ctype-space-tests (Files): Likewise.
13540         * modules/unictype/ctype-upper-tests (Files): Likewise.
13541         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13542         * modules/unictype/decimal-digit-tests (Files): Likewise.
13543         * modules/unictype/digit-tests (Files): Likewise.
13544         * modules/unictype/mirror-tests (Files): Likewise.
13545         * modules/unictype/numeric-tests (Files): Likewise.
13546         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13547         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13548         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13549         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13550         Likewise.
13551         * modules/unictype/property-bidi-block-separator-tests (Files):
13552         Likewise.
13553         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13554         Likewise.
13555         * modules/unictype/property-bidi-common-separator-tests (Files):
13556         Likewise.
13557         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13558         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13559         Likewise.
13560         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13561         Likewise.
13562         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13563         Likewise.
13564         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13565         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13566         Likewise.
13567         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13568         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13569         Likewise.
13570         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13571         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13572         * modules/unictype/property-bidi-segment-separator-tests (Files):
13573         Likewise.
13574         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13575         * modules/unictype/property-byname-tests (Files): Likewise.
13576         * modules/unictype/property-combining-tests (Files): Likewise.
13577         * modules/unictype/property-composite-tests (Files): Likewise.
13578         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13579         * modules/unictype/property-dash-tests (Files): Likewise.
13580         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13581         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13582         Likewise.
13583         * modules/unictype/property-deprecated-tests (Files): Likewise.
13584         * modules/unictype/property-diacritic-tests (Files): Likewise.
13585         * modules/unictype/property-extender-tests (Files): Likewise.
13586         * modules/unictype/property-format-control-tests (Files): Likewise.
13587         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13588         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13589         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13590         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13591         * modules/unictype/property-hyphen-tests (Files): Likewise.
13592         * modules/unictype/property-id-continue-tests (Files): Likewise.
13593         * modules/unictype/property-id-start-tests (Files): Likewise.
13594         * modules/unictype/property-ideographic-tests (Files): Likewise.
13595         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13596         * modules/unictype/property-ids-trinary-operator-tests (Files):
13597         Likewise.
13598         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13599         * modules/unictype/property-iso-control-tests (Files): Likewise.
13600         * modules/unictype/property-join-control-tests (Files): Likewise.
13601         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13602         * modules/unictype/property-line-separator-tests (Files): Likewise.
13603         * modules/unictype/property-logical-order-exception-tests (Files):
13604         Likewise.
13605         * modules/unictype/property-lowercase-tests (Files): Likewise.
13606         * modules/unictype/property-math-tests (Files): Likewise.
13607         * modules/unictype/property-non-break-tests (Files): Likewise.
13608         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13609         * modules/unictype/property-numeric-tests (Files): Likewise.
13610         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13611         * modules/unictype/property-other-default-ignorable-code-point-tests
13612         (Files): Likewise.
13613         * modules/unictype/property-other-grapheme-extend-tests (Files):
13614         Likewise.
13615         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13616         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13617         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13618         * modules/unictype/property-other-math-tests (Files): Likewise.
13619         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13620         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13621         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13622         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13623         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13624         * modules/unictype/property-private-use-tests (Files): Likewise.
13625         * modules/unictype/property-punctuation-tests (Files): Likewise.
13626         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13627         * modules/unictype/property-radical-tests (Files): Likewise.
13628         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13629         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13630         * modules/unictype/property-space-tests (Files): Likewise.
13631         * modules/unictype/property-terminal-punctuation-tests (Files):
13632         Likewise.
13633         * modules/unictype/property-test-tests (Files): Likewise.
13634         * modules/unictype/property-titlecase-tests (Files): Likewise.
13635         * modules/unictype/property-unassigned-code-value-tests (Files):
13636         Likewise.
13637         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13638         * modules/unictype/property-uppercase-tests (Files): Likewise.
13639         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13640         * modules/unictype/property-white-space-tests (Files): Likewise.
13641         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13642         * modules/unictype/property-xid-start-tests (Files): Likewise.
13643         * modules/unictype/property-zero-width-tests (Files): Likewise.
13644         * modules/unictype/scripts-tests (Files): Likewise.
13645         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13646         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13647         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13648         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13649         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13650         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13651         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13652         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13653         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13654         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13655         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13656         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13657         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13658         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13659         * modules/uninorm/composition-tests (Files): Likewise.
13660         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13661         * modules/uninorm/decomposition-tests (Files): Likewise.
13662         * modules/uninorm/filter-tests (Files): Likewise.
13663         * modules/uninorm/nfc-tests (Files): Likewise.
13664         * modules/uninorm/nfd-tests (Files): Likewise.
13665         * modules/uninorm/nfkc-tests (Files): Likewise.
13666         * modules/uninorm/nfkd-tests (Files): Likewise.
13667         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13668         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13669         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13670         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13671         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13672         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13673         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13674         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13675         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13676         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13677         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13678         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13679         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13680         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13681         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13682         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13683         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13684         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13685         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13686         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13687         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13688         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13689         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13690         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13691         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13692         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13693         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13694         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13695         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13696         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13697         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13698         * modules/uniwidth/u8-width-tests (Files): Likewise.
13699         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13700         * modules/uniwidth/u16-width-tests (Files): Likewise.
13701         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13702         * modules/uniwidth/u32-width-tests (Files): Likewise.
13703         * modules/uniwidth/width-tests (Files): Likewise.
13704         * modules/unlink-tests (Files): Likewise.
13705         * modules/unsetenv-tests (Files): Likewise.
13706         * modules/usleep-tests (Files): Likewise.
13707         * modules/utimens-tests (Files): Likewise.
13708         * modules/utimensat-tests (Files): Likewise.
13709         * modules/vasnprintf-posix-tests (Files): Likewise.
13710         * modules/vasnprintf-tests (Files): Likewise.
13711         * modules/vasprintf-posix-tests (Files): Likewise.
13712         * modules/vasprintf-tests (Files): Likewise.
13713         * modules/vdprintf-posix-tests (Files): Likewise.
13714         * modules/vfprintf-posix-tests (Files): Likewise.
13715         * modules/vprintf-posix-tests (Files): Likewise.
13716         * modules/vsnprintf-posix-tests (Files): Likewise.
13717         * modules/vsnprintf-tests (Files): Likewise.
13718         * modules/vsprintf-posix-tests (Files): Likewise.
13719         * modules/wcrtomb-tests (Files): Likewise.
13720         * modules/wcsnrtombs-tests (Files): Likewise.
13721         * modules/wcsrtombs-tests (Files): Likewise.
13722         * modules/wctype-tests (Files): Likewise.
13723         * modules/wcwidth-tests (Files): Likewise.
13724         * modules/xmemdup0-tests (Files): Likewise.
13725         * modules/xprintf-posix-tests (Files): Likewise.
13726         * modules/xvasprintf-tests (Files): Likewise.
13727
13728 2009-12-24  Eric Blake  <ebb9@byu.net>
13729
13730         test-nanosleep: fix typo
13731         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13732         patch.
13733         Reported by Bruno Haible.
13734
13735 2009-12-24  Bruno Haible  <bruno@clisp.org>
13736
13737         Reduce namespace pollution on glibc systems.
13738         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13739         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13740         systems.
13741         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13742         <getopt.h> on glibc systems.
13743         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13744         systems.
13745         * lib/fcntl.c: Include <unistd.h> here instead.
13746
13747 2009-12-24  Bruno Haible  <bruno@clisp.org>
13748
13749         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13750
13751 2009-12-24  Eric Blake  <ebb9@byu.net>
13752
13753         tests: add signature checks
13754         * tests/signature.h (SIGNATURE_CHECK): New file.
13755         * modules/atexit-tests (Files): Use it.
13756         * modules/btowc-tests (Files): Likewise.
13757         * modules/canonicalize-lgpl-tests (Files): Likewise.
13758         * modules/ceilf-tests (Files): Likewise.
13759         * modules/ceill-tests (Files): Likewise.
13760         * modules/chown-tests (Files): Likewise.
13761         * modules/dprintf-posix-tests (Files): Likewise.
13762         * modules/dup2-tests (Files): Likewise.
13763         * modules/dup3-tests (Files): Likewise.
13764         * modules/duplocale-tests (Files): Likewise.
13765         * modules/fchdir-tests (Files): Likewise.
13766         * modules/fcntl-tests (Files): Likewise.
13767         * modules/fdopendir-tests (Files): Likewise.
13768         * modules/fflush-tests (Files): Likewise.
13769         * modules/flock-tests (Files): Likewise.
13770         * modules/floorf-tests (Files): Likewise.
13771         * modules/floorl-tests (Files): Likewise.
13772         * modules/fnmatch-tests (Files): Likewise.
13773         * modules/fopen-tests (Files): Likewise.
13774         * modules/fprintf-posix-tests (Files): Likewise.
13775         * modules/freopen-tests (Files): Likewise.
13776         * modules/frexp-nolibm-tests (Files): Likewise.
13777         * modules/frexp-tests (Files): Likewise.
13778         * modules/frexpl-nolibm-tests (Files): Likewise.
13779         * modules/frexpl-tests (Files): Likewise.
13780         * modules/fseek-tests (Files): Likewise.
13781         * modules/fseeko-tests (Files): Likewise.
13782         * modules/fsync-tests (Files): Likewise.
13783         * modules/ftell-tests (Files): Likewise.
13784         * modules/ftello-tests (Files): Likewise.
13785         * modules/futimens-tests (Files): Likewise.
13786         * modules/getaddrinfo-tests (Files): Likewise.
13787         * modules/getcwd-tests (Files): Likewise.
13788         * modules/getdelim-tests (Files): Likewise.
13789         * modules/getdtablesize-tests (Files): Likewise.
13790         * modules/getgroups-tests (Files): Likewise.
13791         * modules/gethostname-tests (Files): Likewise.
13792         * modules/getline-tests (Files): Likewise.
13793         * modules/getopt-posix-tests (Files): Likewise.
13794         * modules/gettimeofday-tests (Files): Likewise.
13795         * modules/glob-tests (Files): Likewise.
13796         * modules/iconv-tests (Files): Likewise.
13797         * modules/inet_ntop-tests (Files): Likewise.
13798         * modules/inet_pton-tests (Files): Likewise.
13799         * modules/isblank-tests (Files): Likewise.
13800         * modules/lchown-tests (Files): Likewise.
13801         * modules/ldexpl-tests (Files): Likewise.
13802         * modules/link-tests (Files): Likewise.
13803         * modules/linkat-tests (Files): Likewise.
13804         * modules/lseek-tests (Files): Likewise.
13805         * modules/lstat-tests (Files): Likewise.
13806         * modules/mbrtowc-tests (Files): Likewise.
13807         * modules/mbsinit-tests (Files): Likewise.
13808         * modules/mbsnrtowcs-tests (Files): Likewise.
13809         * modules/mbsrtowcs-tests (Files): Likewise.
13810         * modules/memchr-tests (Files): Likewise.
13811         * modules/memcmp-tests (Files): Likewise.
13812         * modules/memmem-tests (Files): Likewise.
13813         * modules/memrchr-tests (Files): Likewise.
13814         * modules/mkdir-tests (Files): Likewise.
13815         * modules/mkfifo-tests (Files): Likewise.
13816         * modules/mkfifoat-tests (Files): Likewise.
13817         * modules/mknod-tests (Files): Likewise.
13818         * modules/nanosleep-tests (Files): Likewise.
13819         * modules/nl_langinfo-tests (Files): Likewise.
13820         * modules/obstack-printf-tests (Files): Likewise.
13821         * modules/open-tests (Files): Likewise.
13822         * modules/openat-tests (Files): Likewise.
13823         * modules/perror-tests (Files): Likewise.
13824         * modules/pipe2-tests (Files): Likewise.
13825         * modules/poll-tests (Files): Likewise.
13826         * modules/popen-tests (Files): Likewise.
13827         * modules/posix_spawn-tests (Files): Likewise.
13828         * modules/posix_spawnp-tests (Files): Likewise.
13829         * modules/pread-tests (Files): Likewise.
13830         * modules/printf-posix-tests (Files): Likewise.
13831         * modules/pty-tests (Files): Likewise.
13832         * modules/random_r-tests (Files): Likewise.
13833         * modules/rawmemchr-tests (Files): Likewise.
13834         * modules/readlink-tests (Files): Likewise.
13835         * modules/remove-tests (Files): Likewise.
13836         * modules/rename-tests (Files): Likewise.
13837         * modules/renameat-tests (Files): Likewise.
13838         * modules/rmdir-tests (Files): Likewise.
13839         * modules/round-tests (Files): Likewise.
13840         * modules/roundf-tests (Files): Likewise.
13841         * modules/roundl-tests (Files): Likewise.
13842         * modules/select-tests (Files): Likewise.
13843         * modules/setenv-tests (Files): Likewise.
13844         * modules/sigaction-tests (Files): Likewise.
13845         * modules/sleep-tests (Files): Likewise.
13846         * modules/snprintf-posix-tests (Files): Likewise.
13847         * modules/snprintf-tests (Files): Likewise.
13848         * modules/sprintf-posix-tests (Files): Likewise.
13849         * modules/stat-tests (Files): Likewise.
13850         * modules/strcasestr-tests (Files): Likewise.
13851         * modules/strchrnul-tests (Files): Likewise.
13852         * modules/strerror-tests (Files): Likewise.
13853         * modules/strsignal-tests (Files): Likewise.
13854         * modules/strstr-tests (Files): Likewise.
13855         * modules/strtod-tests (Files): Likewise.
13856         * modules/strverscmp-tests (Files): Likewise.
13857         * modules/symlink-tests (Files): Likewise.
13858         * modules/symlinkat-tests (Files): Likewise.
13859         * modules/times-tests (Files): Likewise.
13860         * modules/trunc-tests (Files): Likewise.
13861         * modules/truncf-tests (Files): Likewise.
13862         * modules/truncl-tests (Files): Likewise.
13863         * modules/tsearch-tests (Files): Likewise.
13864         * modules/uname-tests (Files): Likewise.
13865         * modules/unlink-tests (Files): Likewise.
13866         * modules/unsetenv-tests (Files): Likewise.
13867         * modules/usleep-tests (Files): Likewise.
13868         * modules/utimensat-tests (Files): Likewise.
13869         * modules/vasprintf-tests (Files): Likewise.
13870         * modules/vdprintf-posix-tests (Files): Likewise.
13871         * modules/vfprintf-posix-tests (Files): Likewise.
13872         * modules/vprintf-posix-tests (Files): Likewise.
13873         * modules/vsnprintf-posix-tests (Files): Likewise.
13874         * modules/vsnprintf-tests (Files): Likewise.
13875         * modules/vsprintf-posix-tests (Files): Likewise.
13876         * modules/wcrtomb-tests (Files): Likewise.
13877         * modules/wcsnrtombs-tests (Files): Likewise.
13878         * modules/wcsrtombs-tests (Files): Likewise.
13879         * modules/wcwidth-tests (Files): Likewise.
13880         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13881         * tests/test-isinf.c (isinf): Likewise.
13882         * tests/test-isnan.c (isnan): Likewise.
13883         * tests/test-signbit.c (signbit): Likewise.
13884         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13885         declaration, either as macro or with correct signature.
13886         (select): Ensure function under test is declared with correct
13887         signature in correct header.
13888         * tests/test-atexit.c (atexit): Likewise.
13889         * tests/test-btowc.c (btowc): Likewise.
13890         * tests/test-canonicalize-lgpl.c (realpath)
13891         (canonicalize_file_name): Likewise.
13892         * tests/test-ceilf1.c (ceilf): Likewise.
13893         * tests/test-ceill.c (ceill): Likewise.
13894         * tests/test-chown.c (chown): Likewise.
13895         * tests/test-dprintf-posix.c (dprintf): Likewise.
13896         * tests/test-dup2.c (dup2): Likewise.
13897         * tests/test-dup3.c (dup3): Likewise.
13898         * tests/test-duplocale.c (duplocale): Likewise.
13899         * tests/test-fchdir.c (fchdir): Likewise.
13900         * tests/test-fchownat.c (fchownat): Likewise.
13901         * tests/test-fcntl.c (fcntl): Likewise.
13902         * tests/test-fdopendir.c (fdopendir): Likewise.
13903         * tests/test-fflush.c (fflush): Likewise.
13904         * tests/test-flock.c (flock): Likewise.
13905         * tests/test-floorf1.c (floorf): Likewise.
13906         * tests/test-floorl.c (floorl): Likewise.
13907         * tests/test-fnmatch.c (fnmatch): Likewise.
13908         * tests/test-fopen.c (fopen): Likewise.
13909         * tests/test-fprintf-posix.c (fprintf): Likewise.
13910         * tests/test-freopen.c (freopen): Likewise.
13911         * tests/test-frexp.c (frexp): Likewise.
13912         * tests/test-frexpl.c (frexpl): Likewise.
13913         * tests/test-fseek.c (fseek): Likewise.
13914         * tests/test-fseeko.c (fseeko): Likewise.
13915         * tests/test-fstatat.c (fstatat): Likewise.
13916         * tests/test-fsync.c (fsync): Likewise.
13917         * tests/test-ftell.c (ftell): Likewise.
13918         * tests/test-ftello.c (ftello): Likewise.
13919         * tests/test-futimens.c (futimens): Likewise.
13920         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13921         (gai_strerror): Likewise.
13922         * tests/test-getcwd.c (getcwd): Likewise.
13923         * tests/test-getdelim.c (getdelim): Likewise.
13924         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13925         * tests/test-getgroups.c (getgroups): Likewise.
13926         * tests/test-gethostname.c (gethostname): Likewise.
13927         * tests/test-getline.c (getline): Likewise.
13928         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13929         Likewise.
13930         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13931         * tests/test-glob.c (glob, globfree): Likewise.
13932         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13933         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13934         * tests/test-inet_pton.c (inet_pton): Likewise.
13935         * tests/test-isblank.c (isblank): Likewise.
13936         * tests/test-lchown.c (lchown): Likewise.
13937         * tests/test-ldexpl.c (ldexpl): Likewise.
13938         * tests/test-link.c (link): Likewise.
13939         * tests/test-linkat.c (linkat): Likewise.
13940         * tests/test-lseek.c (lseek): Likewise.
13941         * tests/test-lstat.c (lstat): Likewise.
13942         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13943         * tests/test-mbsinit.c (mbsinit): Likewise.
13944         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13945         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13946         * tests/test-memchr.c (memchr): Likewise.
13947         * tests/test-memcmp.c (memcmp): Likewise.
13948         * tests/test-memmem.c (memmem): Likewise.
13949         * tests/test-memrchr.c (memrchr): Likewise.
13950         * tests/test-mkdir.c (mkdir): Likewise.
13951         * tests/test-mkdirat.c (mkdirat): Likewise.
13952         * tests/test-mkfifo.c (mkfifo): Likewise.
13953         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13954         * tests/test-mknod.c (mknod): Likewise.
13955         * tests/test-nanosleep.c (nanosleep): Likewise.
13956         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13957         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13958         Likewise.
13959         * tests/test-open.c (open): Likewise.
13960         * tests/test-openat.c (openat): Likewise.
13961         * tests/test-perror.c (perror): Likewise.
13962         * tests/test-pipe2.c (pipe2): Likewise.
13963         * tests/test-poll.c (poll): Likewise.
13964         * tests/test-popen.c (popen, pclose): Likewise.
13965         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13966         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13967         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13968         (posix_spawn_file_actions_destroy)
13969         (posix_spawn_file_actions_addclose)
13970         (posix_spawn_file_actions_addopen)
13971         (posix_spawn_file_actions_adddup2): Likewise.
13972         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13973         * tests/test-pread.c (pread): Likewise.
13974         * tests/test-printf-posix.c (printf): Likewise.
13975         * tests/test-pty.c (openpty, forkpty): Likewise.
13976         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13977         (random_r): Likewise.
13978         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13979         * tests/test-readlink.c (readlink): Likewise.
13980         * tests/test-remove.c (remove): Likewise.
13981         * tests/test-rename.c (rename): Likewise.
13982         * tests/test-renameat.c (renameat): Likewise.
13983         * tests/test-rmdir.c (rmdir): Likewise.
13984         * tests/test-round1.c (round): Likewise.
13985         * tests/test-roundf1.c (roundf): Likewise.
13986         * tests/test-roundl.c (roundl): Likewise.
13987         * tests/test-setenv.c (setenv): Likewise.
13988         * tests/test-sigaction.c (sigaction): Likewise.
13989         * tests/test-sleep.c (sleep): Likewise.
13990         * tests/test-snprintf.c (snprintf): Likewise.
13991         * tests/test-sprintf-posix.c (sprintf): Likewise.
13992         * tests/test-stat.c (stat): Likewise.
13993         * tests/test-stpncpy.c (stpncpy): Likewise.
13994         * tests/test-strcasestr.c (strcasestr): Likewise.
13995         * tests/test-strchrnul.c (strchrnul): Likewise.
13996         * tests/test-strerror.c (strerror): Likewise.
13997         * tests/test-strsignal.c (strsignal): Likewise.
13998         * tests/test-strstr.c (strstr): Likewise.
13999         * tests/test-strtod.c (strtod): Likewise.
14000         * tests/test-strverscmp.c (strverscmp): Likewise.
14001         * tests/test-symlink.c (symlink): Likewise.
14002         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
14003         * tests/test-times.c (times): Likewise.
14004         * tests/test-trunc1.c (trunc): Likewise.
14005         * tests/test-truncf1.c (truncf): Likewise.
14006         * tests/test-truncl.c (truncl): Likewise.
14007         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
14008         Likewise.
14009         * tests/test-uname.c (uname): Likewise.
14010         * tests/test-unlink.c (unlink): Likewise.
14011         * tests/test-unlinkat.c (unlinkat): Likewise.
14012         * tests/test-unsetenv.c (unsetenv): Likewise.
14013         * tests/test-usleep.c (usleep): Likewise.
14014         * tests/test-utimensat.c (utimensat): Likewise.
14015         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
14016         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
14017         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
14018         * tests/test-vprintf-posix.c (vprintf): Likewise.
14019         * tests/test-vsnprintf.c (vsnprintf): Likewise.
14020         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
14021         * tests/test-wcrtomb.c (wcrtomb): Likewise.
14022         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
14023         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
14024         * tests/test-wcwidth.c (wcwidth): Likewise.
14025
14026         build: pull in conditional headers during GNULIB_POSIXCHECK
14027         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
14028         definitions from any conditionally-included headers.
14029         * lib/stdlib.in.h (includes): Likewise.
14030         * lib/unistd.in.h (includes): Likewise.
14031
14032 2009-12-24  Bruno Haible  <bruno@clisp.org>
14033
14034         * tests/test-argv-iter.c: Include header file being tested immediately
14035         after config.h.
14036         * tests/test-base64.c: Likewise.
14037         * tests/test-flock.c: Likewise.
14038         * tests/test-fsync.c: Likewise.
14039         * tests/test-getdate.c: Likewise.
14040         * tests/test-getndelim2.c: Likewise.
14041         * tests/test-isfinite.c: Likewise.
14042         * tests/test-isinf.c: Likewise.
14043         * tests/test-strerror.c: Likewise.
14044         * tests/test-strsignal.c: Likewise.
14045
14046 2009-12-23  Eric Blake  <ebb9@byu.net>
14047
14048         unistd: work around cygwin bug
14049         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
14050         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
14051         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14052
14053 2009-12-23  Bruno Haible  <bruno@clisp.org>
14054
14055         localename: More tests.
14056         * tests/test-localename.c (SIZEOF): New macro.
14057         (categories): New variable.
14058         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
14059         test_locale_name_default): Add test w.r.t. thread locale.
14060         (test_locale_name_thread): New function.
14061         (main): Invoke it.
14062
14063         localename: Make aware of thread locale.
14064         * lib/localename.h (gl_locale_name_thread): New declaration.
14065         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
14066         behaviour with respect to thread locale.
14067         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
14068         <langinfo.h>, glthread/lock.h.
14069         (SIZE_BITS): New macro.
14070         (string_hash): New function.
14071         (struct hash_node): New type.
14072         (HASH_TABLE_SIZE): New macro.
14073         (struniq_hash_table, struniq_lock): New variables.
14074         (struniq): New function.
14075         (gl_locale_name_thread): New function.
14076         (gl_locale_name): Invoke it.
14077         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
14078         * modules/localename (Depends-on): Add lock.
14079         Reported by Mike Gran <spk121@yahoo.com>.
14080
14081 2009-12-23  Eric Blake  <ebb9@byu.net>
14082
14083         va-args: new module
14084         * modules/va-args: New file.
14085         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
14086         * MODULES.html.sh (Core language properties): Mention it.
14087
14088         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
14089         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
14090         named alias for __attribute__((__unused__)).
14091         * lib/chown.c: Update client.
14092         * lib/fchmodat.c: Likewise.
14093         * lib/fts.c: Likewise.
14094         * lib/getdate.y: Likewise.
14095         * lib/getgroups.c: Likewise.
14096         * lib/getopt.c: Likewise.
14097         * lib/getugroups.c: Likewise.
14098         * lib/mkdir.c: Likewise.
14099         * lib/mkfifo.c: Likewise.
14100         * lib/mkfifoat.c: Likewise.
14101         * lib/mknod.c: Likewise.
14102         * lib/mknodat.c: Likewise.
14103         * lib/readlink.c: Likewise.
14104         * lib/se-context.in.h: Likewise.
14105         * lib/se-selinux.in.h: Likewise.
14106         * lib/sockets.c: Likewise.
14107         * lib/symlink.c: Likewise.
14108         * lib/symlinkat.c: Likewise.
14109         * lib/unicodeio.c: Likewise.
14110         * lib/unistr.h: Likewise.
14111         * tests/test-areadlink.c: Likewise.
14112         * tests/test-areadlinkat.c: Likewise.
14113         * tests/test-filenamecat.c: Likewise.
14114         * tests/test-fseeko.c: Likewise.
14115         * tests/test-ftello.c: Likewise.
14116         * tests/test-getdate.c: Likewise.
14117         * tests/test-getgroups.c: Likewise.
14118         * tests/test-gethostname.c: Likewise.
14119         * tests/test-quotearg.c: Likewise.
14120         * tests/test-version-etc.c: Likewise.
14121         * tests/test-xalloc-die.c: Likewise.
14122         * tests/test-xfprintf-posix.c: Likewise.
14123         * tests/test-xprintf-posix.c: Likewise.
14124         * tests/test-xvasprintf.c: Likewise.
14125
14126         tests: avoid compiler warnings
14127         * tests/test-fcntl.c (main): Delete unused parameters.
14128         * tests/test-freopen-safer.c (main): Likewise.
14129         * tests/test-xalloc-die.c (main): Mark unused parameters.
14130         * tests/test-fseeko.c (main): Likewise.
14131         * tests/test-ftello.c (main): Likewise.
14132         * tests/test-nanosleep.c (main): Avoid declaration warning.
14133         * tests/test-sleep.c (main): Likewise.
14134         * tests/test-unsetenv.c (main): Silence warning about string
14135         literal.
14136         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14137
14138 2009-12-23  Bruno Haible  <bruno@clisp.org>
14139
14140         * tests/test-localename.c (test_locale_name): New function, extracted
14141         from main. Also test mixed situations.
14142         (test_locale_name_posix, test_locale_name_environ,
14143         test_locale_name_default): New functions.
14144         (main): Invoke them all.
14145         * modules/localename-tests (configure.ac): Test for newlocale.
14146
14147 2009-12-23  Bruno Haible  <bruno@clisp.org>
14148
14149         unistd: Ensure getcwd gets declared before being overridden.
14150         * lib/unistd.in.h: Conditionally include <io.h>.
14151
14152 2009-12-22  Bruno Haible  <bruno@clisp.org>
14153
14154         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14155         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14156         (gl_WCHAR_H): Invoke it.
14157         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14158         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14159         Reported by Karl Berry <karl@freefriends.org>.
14160
14161 2009-12-22  Eric Blake  <ebb9@byu.net>
14162
14163         math, unistd: avoid redundant includes
14164         * lib/math.in.h (isnan): No need to re-include <math.h>.
14165         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14166
14167         getsubopt: work around cygwin bug
14168         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14169         avoid conflicting with system getsubopt.
14170         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14171         bug.
14172
14173         getopt: synchronize from glibc
14174         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14175         parameter order.  Adjust all callers.
14176         (_getopt_internal_r, main): Adjust quoting in error messages.
14177         Drop considerations for outdated POSIX 1003.2 error message.
14178         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14179         callers.
14180         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14181
14182         test-getopt: test stderr behavior
14183         * modules/getopt-posix-tests (Depends-on): Add dup2.
14184         * tests/test-getopt.c (ASSERT): Avoid stderr.
14185         (main): Move stderr to a temporary file.
14186         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14187         Instead, add parameter to inform caller if output occurred.
14188         (test_getopt): Adjust all existing tests to expect silence, and
14189         add new tests of leading ":".
14190         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14191         glibc shortcomings with leading "-:" or "+:" in optstring.
14192         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14193         Likewise.
14194         * doc/posix-functions/getopt.texi (getopt): Likewise.
14195
14196         test-getopt: enhance test
14197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14198         supports optind=0.
14199         * tests/test-getopt.c (OPTIND_MIN): Move...
14200         * tests/test-getopt.h (OPTIND_MIN): ...here.
14201         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14202         Require that optind=0 works, since modern BSD supports it in
14203         addition to optreset, and since coreutils expects it.
14204         (test_getopt_long_only): New test.
14205         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14206         glibc shortcomings with 'W;', and enforcement of optind=0.
14207         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14208         Likewise.
14209
14210 2009-12-21  Bruno Haible  <bruno@clisp.org>
14211
14212         localename: Improvements for MacOS X and Cygwin.
14213         * lib/localename.h (gl_locale_name_environ): New declaration.
14214         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14215         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14216         (gl_locale_name_posix): Invoke it.
14217         (gl_locale_name_default): Add comments. Use Windows native API also on
14218         Cygwin.
14219
14220 2009-12-21  Bruno Haible  <bruno@clisp.org>
14221
14222         Update list of Win32 locale ids.
14223         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14224         (LANG_SAMI): Renamed from LANG_SAAMI.
14225         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14226         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14227         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14228         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14229         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14230         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14231         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14232         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14233         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14234         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14235         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14236         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14237         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14238         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14239         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14240         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14241         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14242         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14243         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14244         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14245         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14246         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14247         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14248         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14249         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14250         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14251         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14252         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14253         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14254         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14255         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14256         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14257         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14258         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14259         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14260         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14261         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14262         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14263         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14264         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14265         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14266         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14267         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14268         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14269         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14270         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14271         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14272         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14273         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14274         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14275         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14276         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14277         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14278         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14279         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14280         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14281         Add more languages and countries for Sami, Sorbian. Add more countries
14282         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14283         for Pashto. Change country for Syriac, Tswana.
14284
14285 2009-12-21  Eric Blake  <ebb9@byu.net>
14286
14287         test-utimens: avoid spurious failure
14288         * tests/test-chown.h (nap): Factor...
14289         * tests/nap.h: ...into new file.
14290         * tests/test-lchown.h (nap): Avoid duplication.
14291         * tests/test-utimens-common.h (nap): Use shared implementation,
14292         necessary on file systems with 1-second resolution.
14293         * modules/chown-tests (Files): Include new file.
14294         * modules/fdutimensat-tests (Files): Likewise.
14295         * modules/futimens-tests (Files): Likewise.
14296         * modules/lchown-tests (Files): Likewise.
14297         * modules/openat-tests (Files): Likewise.
14298         * modules/utimens-tests (Files): Likewise.
14299         * modules/utimensat-tests (Files): Likewise.
14300
14301 2009-12-19  Eric Blake  <ebb9@byu.net>
14302
14303         futimens, utimensat: work around Linux bug
14304         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14305         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14306         * lib/utimensat.c (rpl_utimensat): Work around it.
14307         * lib/futimens.c (rpl_futimens): Adjust comment.
14308
14309         utimens: work around Linux ctime bug
14310         * lib/utimens.c (detect_ctime_bug): New helper function.
14311         (update_timespec): Differentiate between workaround needed for
14312         this bug vs. what is needed for systems that lack utimensat.
14313         (fdutimens, lutimens): Work around bug.
14314
14315         utimens: check for ctime update
14316         * tests/test-utimens-common.h (check_ctime): Define.
14317         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14318         * tests/test-futimens.h (test_futimens): Likewise.
14319         * tests/test-lutimens.h (test_lutimens): Likewise.
14320         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14321         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14322
14323 2009-12-19  Bruno Haible  <bruno@clisp.org>
14324
14325         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14326         * tests/test-dprintf-posix2.sh: New file.
14327         * tests/test-dprintf-posix2.c: New file.
14328         * modules/dprintf-posix-tests (Files): Add them.
14329         (configure.ac): Check for getrlimit and setrlimit.
14330         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14331
14332 2009-12-19  Bruno Haible  <bruno@clisp.org>
14333
14334         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14335         * tests/test-fprintf-posix3.sh: New file.
14336         * tests/test-fprintf-posix3.c: New file.
14337         * modules/fprintf-posix-tests (Files): Add them.
14338         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14339
14340 2009-12-19  Eric Blake  <ebb9@byu.net>
14341
14342         dirfd: fix prototype
14343         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14344         * lib/dirfd.c (dirfd): Likewise.
14345
14346         canonicalize: reduce memory usage
14347         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14348         allocation to size.
14349         Reported by Solar Designer <solar@openwall.com>.
14350
14351 2009-12-19  Bruno Haible  <bruno@clisp.org>
14352
14353         New module attribute 'Applicability'.
14354         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14355         * gnulib-tool: New option --extract-applicability.
14356         (func_usage): Document it.
14357         (sed_extract_prog): Recognize it.
14358         (func_get_applicability): New function.
14359         (func_import): Generalize handling of 'link-warning' module.
14360         * modules/link-warning (Applicability): New section.
14361         * modules/arg-nonnull (Applicability): New section.
14362         Repoted by Simon Josefsson <simon@josefsson.org>.
14363
14364 2009-12-19  Bruno Haible  <bruno@clisp.org>
14365
14366         fflush: tweak
14367         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14368         * lib/fseeko.c (rpl_fseeko): Likewise.
14369
14370 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14371
14372         * lib/gl_list.h: Fix typo in comment.
14373
14374 2009-12-16  Eric Blake  <ebb9@byu.net>
14375
14376         fcntl: use to simplify other modules
14377         * modules/cloexec (Depends-on): Add fcntl.
14378         * modules/fchdir (Depends-on): Likewise.
14379         * modules/fd-safer-flag (Depends-on): Likewise.
14380         * modules/unistd-safer (Depends-on): Likewise.
14381         * modules/dup3 (configure.ac): Set module indicator.
14382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14383         missing.
14384         * lib/fchdir.c (_gl_register_dup): Fix comment.
14385         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14386         * lib/dup-safer.c (dup_safer): Likewise.
14387         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14388         * lib/dup3.c (dup3): Likewise.
14389         * tests/test-fchdir.c (main): Enhance test.
14390         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14391
14392         fcntl: port portions of fcntl to mingw
14393         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14394         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14395         replacement for mingw.
14396         * modules/fcntl (Description): Update.
14397         (Depends-on): Add dup2.
14398         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14399         * modules/fcntl-h (Makefile.am): Substitute it.
14400         * lib/fcntl.in.h (fcntl): Update declaration.
14401         (F_DUPFD, F_GETFD): New macros, when needed.
14402         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14403         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14404         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14405         we now guarantee.
14406
14407         fcntl: work around cygwin bug in F_DUPFD
14408         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14409         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14410         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14411         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14412         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14413
14414         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14415         * modules/fcntl (Files): List new files.
14416         (configure.ac): Run a test.
14417         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14418         * lib/fcntl.c (rpl_fcntl): Likewise.
14419         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14420         (gl_FCNTL_H): Always replace fcntl.h.
14421         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14422         * lib/fcntl.in.h (fcntl): Declare replacement.
14423         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14424         needed, plus a witness.
14425         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14426         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14427         * tests/test-fcntl.c: New file.
14428         * modules/fcntl-tests: Likewise.
14429
14430         binary-io: avoid potential compilation warning
14431         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14432         directives.
14433
14434         fflush: avoid compilation error on NetBSD
14435         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14436         between off_t and fpos_t, since the latter is sometimes a struct.
14437         * lib/fseeko.c (rpl_fseeko): Likewise.
14438         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14439
14440 2009-12-15  Eric Blake  <ebb9@byu.net>
14441
14442         fcntl-h, stdio, sys_ioctl: fix declarations
14443         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14444         function must not take arguments.
14445         * lib/sys_ioctl.in.h (ioctl): Likewise.
14446         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14447         (open): Add a link warning.
14448
14449 2009-12-15  Jim Meyering  <meyering@redhat.com>
14450
14451         areadlink, areadlink-with-size: relax license to LGPLv2+
14452         * modules/areadlink (License): Relax to LGPLv2+.
14453         * modules/areadlink-with-size (License): Likewise.
14454
14455 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14456             Bruno Haible  <bruno@clisp.org>
14457
14458         *printf: Fix memory leak.
14459         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14460         * lib/vfprintf.c (vfprintf): Likewise.
14461         * lib/dprintf.c (dprintf): Likewise.
14462         * lib/vdprintf.c (vdprintf): Likewise.
14463
14464 2009-12-14  Eric Blake  <ebb9@byu.net>
14465
14466         accept4: adjust module dependencies
14467         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14468
14469         utimens: one more try at avoiding compiler warning
14470         * lib/utimens.c (lutimens): Lower scope of result.
14471
14472 2009-12-13  Bruno Haible  <bruno@clisp.org>
14473
14474         Move the malloc checking from module 'list' to new module 'xlist'.
14475         * modules/xlist: New file.
14476         * lib/gl_xlist.h: New file.
14477         * lib/gl_xlist.c: New file.
14478         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14479         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14480         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14481         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14482         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14483         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14484         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14485         gl_sortedlist_nx_add): New declarations.
14486         (struct gl_list_implementation): Rename and change methods accordingly.
14487         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14488         (gl_list_nx_create): Renamed from gl_list_create.
14489         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14490         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14491         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14492         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14493         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14494         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14495         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14496         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14497         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14498         gl_list_create_empty.
14499         (gl_list_nx_create): Renamed from gl_list_create.
14500         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14501         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14502         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14503         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14504         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14505         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14506         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14507         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14508         * lib/gl_array_list.c: Don't include xalloc.h.
14509         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14510         NULL upon out-of-memory.
14511         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14512         out-of-memory.
14513         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14514         Change return type to 'int'.
14515         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14516         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14517         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14518         upon out-of-memory.
14519         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14520         upon out-of-memory.
14521         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14522         upon out-of-memory.
14523         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14524         upon out-of-memory.
14525         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14526         out-of-memory.
14527         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14528         Update.
14529         (gl_array_list_implementation): Update.
14530         * lib/gl_carray_list.c: Don't include xalloc.h.
14531         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14532         Return NULL upon out-of-memory.
14533         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14534         out-of-memory.
14535         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14536         Change return type to 'int'.
14537         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14538         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14539         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14540         upon out-of-memory.
14541         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14542         upon out-of-memory.
14543         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14544         out-of-memory.
14545         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14546         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14547         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14548         Update.
14549         (gl_carray_list_implementation): Update.
14550         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14551         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14552         gl_linked_create_empty. Return NULL upon out-of-memory.
14553         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14554         out-of-memory.
14555         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14556         Change return type to 'int'. Return -1 upon out-of-memory.
14557         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14558         out-of-memory.
14559         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14560         upon out-of-memory.
14561         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14562         upon out-of-memory.
14563         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14564         NULL upon out-of-memory.
14565         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14566         upon out-of-memory.
14567         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14568         out-of-memory.
14569         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14570         Update.
14571         * lib/gl_linked_list.c: Don't include xalloc.h.
14572         (gl_linked_list_implementation): Update.
14573         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14574         (add_to_bucket): Change return type to 'int'.
14575         (gl_linkedhash_list_implementation): Update.
14576         * lib/gl_anytree_list1.h (free_subtree): New function.
14577         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14578         gl_tree_create_empty. Return NULL upon out-of-memory.
14579         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14580         Change return type to 'int'. Return -1 upon out-of-memory.
14581         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14582         out-of-memory.
14583         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14584         (gl_tree_remove_node): New function, moved here from
14585         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14586         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14587         Update.
14588         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14589         malloc, not xmalloc. Return NULL upon out-of-memory.
14590         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14591         out-of-memory.
14592         (gl_tree_remove_node_from_tree): New function, extracted from
14593         gl_tree_remove_node.
14594         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14595         upon out-of-memory.
14596         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14597         out-of-memory.
14598         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14599         upon out-of-memory.
14600         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14601         upon out-of-memory.
14602         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14603         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14604         not xmalloc. Return NULL upon out-of-memory.
14605         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14606         out-of-memory.
14607         (gl_tree_remove_node_from_tree): New function, extracted from
14608         gl_tree_remove_node.
14609         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14610         upon out-of-memory.
14611         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14612         out-of-memory.
14613         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14614         upon out-of-memory.
14615         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14616         upon out-of-memory.
14617         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14618         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14619         gl_anytree_list1.h before gl_anyavltree_list2.h.
14620         (gl_avltree_list_implementation): Update.
14621         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14622         gl_anytree_list1.h before gl_anyavltree_list2.h.
14623         (gl_rbtree_list_implementation): Update.
14624         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14625         Change return type to 'int'. Return -1 upon out-of-memory. Use
14626         __builtin_expect.
14627         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14628         (gl_avltreehash_list_implementation): Update.
14629         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14630         (gl_rbtreehash_list_implementation): Update.
14631         * modules/array-list (Depends-on): Remove xalloc.
14632         * modules/carray-list (Depends-on): Likewise.
14633         * modules/linked-list (Depends-on): Likewise.
14634         * modules/linkedhash-list (Depends-on): Likewise.
14635         * modules/avltree-list (Depends-on): Likewise.
14636         * modules/rbtree-list (Depends-on): Likewise.
14637         * modules/avltreehash-list (Depends-on): Likewise.
14638         * modules/rbtreehash-list (Depends-on): Likewise.
14639
14640         * modules/xsublist: New file.
14641         * lib/gl_xsublist.h: New file.
14642         * lib/gl_xsublist.c: New file.
14643         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14644         (gl_sublist_nx_create): New declaration.
14645         * lib/gl_sublist.c: Don't include xalloc.h.
14646         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14647         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14648         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14649         Change return type to 'int'. Return -1 upon out-of-memory.
14650         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14651         upon out-of-memory.
14652         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14653         NULL upon out-of-memory.
14654         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14655         upon out-of-memory.
14656         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14657         NULL upon out-of-memory.
14658         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14659         NULL upon out-of-memory.
14660         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14661         upon out-of-memory.
14662         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14663         (gl_sublist_list_implementation): Update.
14664         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14665         upon out-of-memory.
14666         * modules/sublist (Depends-on): Remove xalloc.
14667
14668         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14669         * tests/test-carray_list.c: Likewise.
14670         * tests/test-linked_list.c: Likewise.
14671         * tests/test-linkedhash_list.c: Likewise.
14672         * tests/test-avltree_list.c: Likewise.
14673         * tests/test-rbtree_list.c: Likewise.
14674         * tests/test-avltreehash_list.c: Likewise.
14675         * tests/test-rbtreehash_list.c: Likewise.
14676         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14677         * modules/carray-list-tests (Makefile.am): Likewise.
14678         * modules/linked-list-tests (Makefile.am): Likewise.
14679         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14680         * modules/avltree-list-tests (Makefile.am): Likewise.
14681         * modules/rbtree-list-tests (Makefile.am): Likewise.
14682         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14683         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14684
14685         * NEWS: Mention the changes.
14686
14687         * lib/clean-temp.c: Include gl_xlist.h.
14688         * modules/clean-temp (Depends-on): Add xlist.
14689
14690         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14691         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14692
14693         * tests/test-array_oset.c: Include gl_xlist.h.
14694         * modules/array-oset-tests (Depends-on): Add xlist.
14695
14696         Reported by José E. Marchesi <jemarch@gnu.org>.
14697
14698 2009-12-13  Bruno Haible  <bruno@clisp.org>
14699
14700         Move the malloc checking from module 'oset' to new module 'xoset'.
14701         * modules/xoset: New file.
14702         * lib/gl_xoset.h: New file.
14703         * lib/gl_xoset.c: New file.
14704         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14705         declarations.
14706         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14707         (struct gl_oset_implementation): Rename and change methods accordingly.
14708         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14709         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14710         'int'. Mark as __warn_unused_result__.
14711         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14712         gl_oset_create_empty.
14713         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14714         'int'.
14715         * lib/gl_array_oset.c: Don't include xalloc.h.
14716         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14717         malloc, not xmalloc.
14718         (grow): Change return type to 'int'. Don't call xalloc_die.
14719         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14720         to 'int'.
14721         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14722         'int'.
14723         (gl_array_oset_implementation): Update.
14724         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14725         gl_tree_create_empty.
14726         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14727         'int'.
14728         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14729         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14730         xmalloc.
14731         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14732         not xmalloc.
14733         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14734         xmalloc.
14735         (gl_avltree_oset_implementation): Update.
14736         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14737         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14738         xmalloc.
14739         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14740         not xmalloc.
14741         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14742         xmalloc.
14743         (gl_rbtree_oset_implementation): Update.
14744         * modules/array-oset (Depends-on): Remove xalloc.
14745         * modules/avltree-oset (Depends-on): Likewise.
14746         * modules/rbtree-oset (Depends-on): Likewise.
14747         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14748         * tests/test-avltree_oset.c: Likewise.
14749         * tests/test-rbtree_oset.c: Likewise.
14750         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14751         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14752         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14753         * NEWS: Mention the change.
14754
14755 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14756
14757         maint.mk: allow a project to override release-prep commands
14758         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14759         commands into a new rule.
14760         (release-prep): New rule.
14761         (release-prep-hook): New overridable variable.
14762
14763 2009-12-13  Bruno Haible  <bruno@clisp.org>
14764
14765         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14766
14767 2009-12-13  Jim Meyering  <meyering@redhat.com>
14768
14769         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14770         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14771
14772 2009-12-12  Bruno Haible  <bruno@clisp.org>
14773
14774         duplocale: Tweak.
14775         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14776
14777 2009-12-12  Karl Berry  <karl@gnu.org>
14778
14779         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14780
14781 2009-12-12  Bruno Haible  <bruno@clisp.org>
14782
14783         * m4/po.m4: Undo incorrect untabification.
14784
14785 2009-12-12  Bruno Haible  <bruno@clisp.org>
14786
14787         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14788         * modules/c-strtod (Depends-on): Add locale.
14789         * modules/c-strtold (Depends-on): Likewise.
14790
14791 2009-12-12  Bruno Haible  <bruno@clisp.org>
14792
14793         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14794
14795 2009-12-11  Eric Blake  <ebb9@byu.net>
14796
14797         setenv: relax requirement in light of POSIX ruling
14798         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14799         not NULL.
14800         * tests/test-setenv.c (main): Relax test.
14801         * tests/test-unsetenv.c (main): Likewise.
14802         * doc/posix-functions/setenv.texi (setenv): Document this.
14803         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14804
14805 2009-12-11  Bruno Haible  <bruno@clisp.org>
14806
14807         New module 'fd-safer-flag'.
14808         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14809         * lib/dup-safer.c (dup_safer_flag): Remove function.
14810         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14811         * lib/fd-safer.c (fd_safer_flag): Remove function.
14812         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14813         * modules/cloexec (configure.ac): Drop indicator macro.
14814         * modules/fd-safer-flag: New file.
14815         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14816         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14817         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14818
14819 2009-12-11  Bruno Haible  <bruno@clisp.org>
14820
14821         Tests for module 'nl_langinfo'.
14822         * modules/nl_langinfo-tests: New file.
14823         * tests/test-nl_langinfo.sh: New file.
14824         * tests/test-nl_langinfo.c: New file.
14825
14826         New module 'nl_langinfo'.
14827         * lib/nl_langinfo.c: New file.
14828         * m4/nl_langinfo.m4: New file.
14829         * modules/nl_langinfo: New file.
14830         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14831
14832 2009-12-11  Bruno Haible  <bruno@clisp.org>
14833
14834         Tests for module 'langinfo'.
14835         * modules/langinfo-tests: New file.
14836         * tests/test-langinfo.c: New file.
14837
14838         New module 'langinfo'.
14839         * lib/langinfo.in.h: New file.
14840         * m4/langinfo_h.m4: New file.
14841         * modules/langinfo: New file.
14842         * doc/posix-headers/langinfo.texi: Mention the new module.
14843
14844 2009-12-11  Bruno Haible  <bruno@clisp.org>
14845
14846         * lib/config.charset: Untabify.
14847
14848 2009-12-11  Bruno Haible  <bruno@clisp.org>
14849
14850         * modules/unistd-safer (configure.ac): Drop indicator macro.
14851
14852 2009-12-11  Bruno Haible  <bruno@clisp.org>
14853
14854         Move pipe2-safer code to its own file.
14855         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14856         * lib/pipe-safer.c (pipe2_safer): Remove function.
14857         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14858         (Makefile.am): Add it to lib_SOURCES.
14859
14860 2009-12-10  Bruno Haible  <bruno@clisp.org>
14861
14862         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14863
14864 2009-12-10  Bruno Haible  <bruno@clisp.org>
14865
14866         Declare which arguments expect non-NULL values, for GCC and clang.
14867         * build-aux/arg-nonnull.h: New file.
14868         * modules/arg-nonnull: New file.
14869         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14870         (inet_ntop, inet_pton): Use it.
14871         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14872         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14873         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14874         (open, openat): Use it.
14875         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14876         (fnmatch): Use it.
14877         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14878         (getopt, getopt_long, getopt_long_only): Use it.
14879         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14880         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14881         Use it.
14882         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14883         (iconv_open): Use it.
14884         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14885         (strtoimax, strtoumax): Use it.
14886         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14887         (duplocale): Use it.
14888         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14889         (frexp, frexpl): Use it.
14890         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14891         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14892         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14893         (tsearch, tfind, tdelete, twalk): Use it.
14894         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14895         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14896         sigpending): Use it.
14897         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14898         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14899         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14900         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14901         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14902         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14903         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14904         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14905         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14906         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14907         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14908         Use it.
14909         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14910         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14911         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14912         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14913         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14914         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14915         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14916         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14917         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14918         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14919         strtoull, unsetenv): Use it.
14920         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14921         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14922         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14923         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14924         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14925         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14926         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14927         (strcasecmp, strncasecmp): Use it.
14928         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14929         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14930         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14931         rpl_setsockopt): Use it.
14932         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14933         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14934         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14935         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14936         (gettimeofday): Use it.
14937         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14938         (times): Use it.
14939         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14940         (uname): Use it.
14941         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14942         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14943         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14944         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14945         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14946         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14947         unlinkat, write): Use it.
14948         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14949         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14950         * lib/argv-iter.h: Include arg-nonnull.h.
14951         (_ATTRIBUTE_NONNULL_): Remove macro.
14952         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14953         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14954         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14955         optimization.
14956         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14957         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14958         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14959         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14960         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14961         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14962         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14963         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14964         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14965         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14966         * modules/dirent (Depends-on): Add arg-nonnull.
14967         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14968         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14969         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14970         * modules/fnmatch (Depends-on): Add arg-nonnull.
14971         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14972         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14973         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14974         * modules/glob (Depends-on): Add arg-nonnull.
14975         (Makefile.am): Insert arg-nonnull.h into glob.h.
14976         * modules/iconv_open (Depends-on): Add arg-nonnull.
14977         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14978         * modules/inttypes (Depends-on): Add arg-nonnull.
14979         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14980         * modules/locale (Depends-on): Add arg-nonnull.
14981         (Makefile.am): Insert arg-nonnull.h into locale.h.
14982         * modules/math (Depends-on): Add arg-nonnull.
14983         (Makefile.am): Insert arg-nonnull.h into math.h.
14984         * modules/netdb (Depends-on): Add arg-nonnull.
14985         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14986         * modules/search (Depends-on): Add arg-nonnull.
14987         (Makefile.am): Insert arg-nonnull.h into search.h.
14988         * modules/signal (Depends-on): Add arg-nonnull.
14989         (Makefile.am): Insert arg-nonnull.h into signal.h.
14990         * modules/spawn (Depends-on): Add arg-nonnull.
14991         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14992         * modules/stdio (Depends-on): Add arg-nonnull.
14993         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14994         * modules/stdlib (Depends-on): Add arg-nonnull.
14995         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14996         * modules/string (Depends-on): Add arg-nonnull.
14997         (Makefile.am): Insert arg-nonnull.h into string.h.
14998         * modules/strings (Depends-on): Add arg-nonnull.
14999         (Makefile.am): Insert arg-nonnull.h into strings.h.
15000         * modules/sys_socket (Depends-on): Add arg-nonnull.
15001         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
15002         * modules/sys_stat (Depends-on): Add arg-nonnull.
15003         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
15004         * modules/sys_time (Depends-on): Add arg-nonnull.
15005         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
15006         * modules/sys_times (Depends-on): Add arg-nonnull.
15007         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
15008         * modules/sys_utsname (Depends-on): Add arg-nonnull.
15009         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
15010         * modules/time (Depends-on): Add arg-nonnull.
15011         (Makefile.am): Insert arg-nonnull.h into time.h.
15012         * modules/unistd (Depends-on): Add arg-nonnull.
15013         (Makefile.am): Insert arg-nonnull.h into unistd.h.
15014         * modules/wchar (Depends-on): Add arg-nonnull.
15015         (Makefile.am): Insert arg-nonnull.h into wchar.h.
15016         * modules/argv-iter (Depends-on): Add arg-nonnull.
15017         * tests/test-canonicalize.c (null_ptr): New function.
15018         (main): Use it.
15019         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
15020         (main): Use it.
15021         * tests/test-memmem.c (null_ptr): New function.
15022         (main): Use it.
15023         Reported by Jim Meyering.
15024
15025 2009-12-10  Bruno Haible  <bruno@clisp.org>
15026
15027         Use spaces for indentation, not tabs.
15028         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15029         * m4/*.m4: Untabify.
15030         * build-aux/*.h: Untabify.
15031         * tests/**/*.[hc]: Untabify.
15032         * README: New section "Indent with spaces, not TABs", based on
15033         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
15034         * NEWS: Mention the change.
15035
15036 2009-12-10  Bruno Haible  <bruno@clisp.org>
15037
15038         pty test: Fix link error.
15039         * modules/pty-tests (Makefile.am): Add the default LDADD value to
15040         test_pty_LDADD.
15041
15042 2009-12-07  Simon Josefsson  <simon@josefsson.org>
15043
15044         * modules/pty: New file.
15045         * modules/pty-tests: New file.
15046         * m4/pty.m4: New file.
15047         * tests/test-pty.c: New file.
15048         * doc/glibc-headers/pty.texi: Modified.
15049         * doc/glibc-functions/forkpty.texi: Modified.
15050         * doc/glibc-functions/openpty.texi: Modified.
15051
15052 2009-12-10  Bruno Haible  <bruno@clisp.org>
15053
15054         Avoid syntax error in C++ mode.
15055         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
15056
15057 2009-12-10  Bruno Haible  <bruno@clisp.org>
15058
15059         Use sed with option -e.
15060         * gnulib-tool (func_version, func_emit_copyright_notice,
15061         func_emit_initmacro_end, func_import, func_create_testdir): Pass
15062         option -e to sed.
15063         * modules/link-warning (Makefile.am): Likewise.
15064
15065 2009-12-10  Jim Meyering  <meyering@redhat.com>
15066
15067         mgetgroups: do not write bytes beyond end of malloc'd buffer
15068         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
15069         username, we call getgroups with a one-element-shorter buffer,
15070         but still told it the length was original, max_n_groups.
15071
15072 2009-12-09  Eric Blake  <ebb9@byu.net>
15073
15074         cloexec: relax license
15075         * modules/cloexec (Maintainer): Add myself.
15076         (License): Use LGPL, not GPL.
15077
15078         link-warning: optimize generation
15079         * modules/link-warning (Makefile.am): Reduce process usage.
15080
15081 2009-12-09  Bruno Haible  <bruno@clisp.org>
15082
15083         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
15084         workaround was added on 2009-11-17.
15085
15086 2009-12-09  Jim Meyering  <meyering@redhat.com>
15087             Bruno Haible  <bruno@clisp.org>
15088
15089         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
15090         * modules/link-warning (Makefile.am): Make the comment-removing sed
15091         command more robust in the face of bootstrap-prepended comment lines.
15092
15093 2009-12-09  Bruno Haible  <bruno@clisp.org>
15094
15095         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
15096         most one group.
15097
15098 2009-12-09  Simon Josefsson <simon@josefsson.org>
15099             Bruno Haible  <bruno@clisp.org>
15100
15101         * build-aux/link-warning.h: Add copyright notice.
15102         * modules/link-warning (Makefile.am): Generate link-warning.h from
15103         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
15104         * NEWS: Mention change in link-warning module.
15105         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
15106         * modules/dirent (Makefile.am): Add dependency to dirent.h.
15107         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
15108         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
15109         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
15110         * modules/math (Makefile.am): Add dependency to math.h.
15111         * modules/search (Makefile.am): Add dependency to search.h.
15112         * modules/signal (Makefile.am): Add dependency to signal.h.
15113         * modules/spawn (Makefile.am): Add dependency to spawn.h.
15114         * modules/stdio (Makefile.am): Add dependency to stdio.h.
15115         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15116         * modules/string (Makefile.am): Add dependency to string.h.
15117         * modules/strings (Makefile.am): Add dependency to strings.h.
15118         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15119         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15120         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15121         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15122         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15123         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15124         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15125         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15126         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15127
15128 2009-12-09  Bruno Haible  <bruno@clisp.org>
15129
15130         fchdir: Optimize away rpl_fstat when possible.
15131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15132         REPLACE_OPEN_DIRECTORY.
15133         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15134
15135 2009-12-09  Bruno Haible  <bruno@clisp.org>
15136
15137         * lib/fchdir.c: Update comment.
15138
15139 2009-12-09  Bruno Haible  <bruno@clisp.org>
15140
15141         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15142
15143 2009-12-08  Eric Blake  <ebb9@byu.net>
15144
15145         fchdir: avoid memory leak on re-registration.
15146         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15147
15148 2009-12-08  Jim Meyering  <meyering@redhat.com>
15149
15150         init.sh: avoid Solaris 10 /bin/sh portability problem
15151         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15152         sourced script:
15153           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15154           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15155           bar
15156         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15157         and two tests used that idiom.
15158         * tests/init.sh: Update suggested usage comments.
15159         (path_prepend_): New function, to be used in place
15160         of the --src-path=DIR option.
15161         (setup_): Move PATH-prepending code into path_prepend_.
15162         * tests/test-pread.sh: Adapt to new usage.
15163         * tests/test-xalloc-die.sh: Likewise.
15164
15165 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15166
15167         * doc/gnulib.texi (Glibc pty.h): Add.
15168         * doc/glibc-functions/forkpty.texi: Add.
15169         * doc/glibc-functions/openpty.texi: Add.
15170         Suggested by Bruno Haible.
15171
15172 2009-12-08  Eric Blake  <ebb9@byu.net>
15173
15174         fchdir: fix logic bugs
15175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15176         * tests/test-fchdir.c (main): Enhance test.
15177         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15178         is in use.
15179
15180         dup2: fix logic bugs
15181         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15182         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15183         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15184         exists.
15185         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15186
15187 2009-12-07  Eric Blake  <ebb9@byu.net>
15188
15189         unlink: fix m4 detection
15190         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15191
15192         unistd-safer: add unit test
15193         * modules/unistd-safer-tests: New file.
15194         * tests/test-dup-safer.c: Likewise.
15195         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15196         * tests/test-dup2.c (setmode): Likewise.
15197         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15198
15199         cloexec: preserve text vs. binary across dup_cloexec
15200         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15201         mode.
15202         * modules/dup2-tests (Depends-on): Add binary-io.
15203         * modules/cloexec-tests (Depends-on): Likewise.
15204         * tests/test-dup2.c (setmode, is_mode): New helpers.
15205         (main): Add tests that translation mode is preserved.
15206         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15207         Reported by Bruno Haible.
15208
15209         mgetgroups: reduce duplicate listings
15210         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15211         resulting array.
15212         * tests/test-chown.h (test_chown): Simplify client.
15213         * tests/test-lchown.h (test_lchown): Likewise.
15214
15215 2009-12-06  Bruno Haible  <bruno@clisp.org>
15216
15217         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15218         value.
15219
15220 2009-12-06  Bruno Haible  <bruno@clisp.org>
15221
15222         * lib/progname.c: Include stdio.h, stdlib.h.
15223         (set_program_name): Reject a NULL argument.
15224
15225 2009-12-05  Eric Blake  <ebb9@byu.net>
15226
15227         pipe2-safer: new module
15228         * modules/pipe2-safer: New file.
15229         * lib/unistd-safer.h (pipe2_safer): New prototype.
15230         * lib/unistd--.h (pipe2): New wrapper.
15231         * lib/pipe-safer.c (pipe2_safer): New function.
15232         * modules/pipe (Depends-on): Add pipe2-safer.
15233         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15234
15235         stdlib-safer: preserve cloexec flag for mkostemp[s]
15236         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15237         fd_safer_flag.
15238
15239         unistd-safer: allow preservation of cloexec status via flag
15240         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15241         prototypes.
15242         * lib/dup-safer.c (dup_safer_flag): New function.
15243         * lib/fd-safer.c (fd_safer_flag): Likewise.
15244         * modules/cloexec (configure.ac): Set witness.
15245
15246         test-dup2: enhance test
15247         * modules/dup2-tests (Depends-on): Add cloexec.
15248         * tests/test-dup2.c (main): Enhance test.
15249
15250         cloexec: add dup_cloexec
15251         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15252         header and comments.
15253         * lib/cloexec.c (set_cloexec_flag): Add comments.
15254         (dup_cloexec): New function, with mingw implementation borrowed
15255         from...
15256         * lib/w32spawn.h (dup_noinherit): ...here.
15257         * modules/execute (Depends-on): Add cloexec.
15258         * modules/pipe (Depends-on): Likewise.
15259         * modules/cloexec (Depends-on): Add dup2.
15260         * modules/cloexec-tests (Files): New file.
15261         * tests/test-cloexec.c: Likewise.
15262
15263         test-xalloc-die: fix test for mingw
15264         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15265         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15266         directory and .exe suffix off argv[0] output.
15267
15268         test-fseeko: fix test for mingw
15269         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15270         than undefining fseek, so test will pass on mingw.
15271
15272 2009-12-05  Bruno Haible  <bruno@clisp.org>
15273
15274         * lib/progname.h (set_program_name): Clarify specification.
15275         * lib/progname.c (set_program_name): Likewise.
15276         Reported by Jim Meyering.
15277
15278 2009-12-05  Jim Meyering  <meyering@redhat.com>
15279
15280         maint.mk: backslash-escape parens in default regexp
15281         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15282         backslash-escape the literal parentheses.
15283
15284         maint.mk: news-date-check: use grep -E
15285         * top/maint.mk (today): Define a Make variable, not a...
15286         (news-date-check): ...shell variable.
15287         (news-date-regexp): Use the Make variable.
15288         Use grep's -E option.  Change the failing diagnostic to mention
15289         the variable, $(news-date-regexp).
15290
15291 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15292
15293         maintainer-makefile: allow customization of NEWS entry format
15294         * top/maint.mk (news-date-regexp): New overridable variable.
15295         (news-date-check): Use it.
15296
15297 2009-12-04  Eric Blake  <ebb9@byu.net>
15298
15299         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15300         * lib/mgetgroups.h (xgetgroups): New prototype.
15301         * lib/mgetgroups.c (xgetgroups): New wrapper.
15302         (mgetgroups): Handle ENOSYS.
15303         * modules/mgetgroups (Depends-on): Add realloc.
15304         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15305
15306         mgetgroups: avoid argument promotion issues with -1
15307         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15308         for invalid gid_t.
15309         * tests/test-chown.h (getegid, test_chown): Likewise.
15310         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15311
15312 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15313
15314         exclude: Fix header file problems.
15315         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15316
15317 2009-12-01  Jim Meyering  <meyering@redhat.com>
15318
15319         fts: fts_open: do not let an empty string cause immediate failure
15320         This is required in support of GNU rm, for which the command
15321         "rm A '' B" must process and remove both A and B, in spite of
15322         the empty string argument.
15323         * lib/fts.c (fts_open): Do not let the presence of an empty string
15324         cause fts_open to fail immediately.  Most fts-using tools must be
15325         able to process all arguments, in order, and can be expected to
15326         diagnose such arguments themselves.
15327
15328 2009-11-30  Eric Blake  <ebb9@byu.net>
15329
15330         utimens: fix compilation error
15331         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15332         Declare variable at right scope.
15333
15334 2009-11-29  Jim Meyering  <meyering@redhat.com>
15335
15336         bootstrap: handle perl-5.11's changed --version output
15337         * build-aux/bootstrap (get_version): Handle perl separately,
15338         since perl-5.11's --version output is different.
15339
15340 2009-11-28  Jim Meyering  <meyering@redhat.com>
15341
15342         userspec: depend on the inttostr module, too
15343         * modules/userspec (Depends-on): Add inttostr.
15344
15345         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15346         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15347         number of MAXUID when it evaluates to (uid_t) -1.
15348         Likewise for group ID.  Reported by Matt McCutchen in
15349         <http://savannah.gnu.org/bugs/?28113>
15350
15351         userspec: reformat to use spaces, not TABs
15352         * lib/userspec.c: Expand TABs to spaces.
15353         Add Emacs' "indent-tabs-mode: nil" hint.
15354
15355 2009-11-27  Eric Blake  <ebb9@byu.net>
15356
15357         getopt-gnu: flush out another BSD bug
15358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15359         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15360         flush out BSD bug.
15361         * tests/test-getopt.h (test_getopt): End lists with NULL.
15362         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15363         (test_getopt_long_posix): Enhance test.
15364         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15365         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15366         getopt-gnu.
15367         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15368         Likewise.
15369
15370 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15371
15372         * modules/idpriv-droptemp-tests (Notice): Fix text.
15373
15374 2009-11-27  Jim Meyering  <meyering@redhat.com>
15375
15376         test-xalloc-die: avoid spurious failure due to libtool argv difference
15377         In a libtool-enabled project, this test would fail due to a difference
15378         in the emitted program name, e.g.,
15379         -test-xalloc-die: memory exhausted
15380         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15381         Use program to avoid that.
15382         * modules/xalloc-die-tests (Depends-on): Add progname.
15383         * tests/test-xalloc-die.c: Include progname.h".
15384         (program_name): Remove decl.
15385         (main): Call set_program_name.
15386         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15387
15388 2009-11-26  Richard Jones  <rjones@redhat.com>
15389
15390         w32sock: leave win32 error in place.
15391         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15392
15393 2009-11-26  Eric Blake  <ebb9@byu.net>
15394
15395         init.sh: suggest to use skip_ and fail_ functions in comments
15396         * tests/init.sh: Add a sentence.
15397
15398 2009-11-25  Bruno Haible  <bruno@clisp.org>
15399
15400         init.sh: add documentation in comments
15401         * tests/init.sh: Add some developer and user documentation.
15402
15403 2009-11-26  Jim Meyering  <meyering@redhat.com>
15404
15405         init.sh: accommodate even those who specify bogus srcdir manually
15406         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15407         configure-time tests to be sanitized, so that there is no need to
15408         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15409         (with no double quotes) suffices.  However, since tests may be
15410         invoked manually, and since you may explicitly set srcdir to the
15411         name of a directory containing spaces, do quote its uses here.
15412         * tests/test-pread.sh: Likewise.
15413         Suggested by Bruno Haible.
15414
15415         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15416         * tests/test-pread.sh: Write no data into the pipe, because
15417         test-pread actually reads none.  This avoids a diagnostic,
15418         "bash: echo: write error: Broken pipe", that arises in the unusual
15419         event something is ignoring SIGPIPE, and might be interpreted
15420         as some sort of failure.  Reported by Bruno Haible.
15421
15422 2009-11-25  Jim Meyering  <meyering@redhat.com>
15423
15424         test-pread: cover failure with ESPIPE and EINVAL
15425         * tests/test-pread.c (main): Test for failure, too.
15426         * tests/test-pread.sh: Invoke with stdin on a pipe.
15427         Suggested by Eric Blake.
15428
15429         pread: improvement and fix
15430         * modules/pread (Depends-on): Depend on lseek, for portability to
15431         e.g., mingw.  Suggested by Eric Blake.
15432         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15433
15434         unistd.in.h: correct declaration of pread
15435         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15436         Reported by Richard W.M. Jones.
15437
15438         test-pread.sh: distribute the test script
15439         * modules/pread-tests (Files): Include test-pread.sh.
15440
15441         test-pread.sh: clean up
15442         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15443         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15444         That is unnecessary, since it's always ".".
15445         Suggestion from Eric Blake.
15446
15447         test-pread.sh: make executable
15448         * tests/test-pread.sh: Set executable bit.
15449         Reported by Eric Blake.
15450
15451         correct typo in test-pread.sh
15452         * tests/test-pread.sh: Add #! line.
15453
15454         test pread
15455         * tests/test-pread.c: New file.
15456         * tests/test-pread.sh: Likewise.
15457         * modules/pread-tests: Likewise.
15458
15459         pread: new module
15460         * modules/pread: New file.
15461         * lib/unistd.in.h (pread): Define/declare.
15462         * lib/pread.c (pread): New file.
15463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15464         * modules/unistd (Makefile.am): Substitute witnesses.
15465         * doc/posix-functions/pread.texi (pread): Update.
15466         * MODULES.html.sh: Add pread.
15467
15468 2009-11-25  Jim Meyering  <meyering@redhat.com>
15469
15470         tests/init.sh: new file to be used via most *.sh tests
15471         * tests/init.sh: New file.
15472
15473 2009-11-25  Eric Blake  <ebb9@byu.net>
15474
15475         utimens: work around older Linux failure with symlinks
15476         * lib/utimens.c (lutimensat_works_really): New variable.
15477         (fdutimens, lutimens): Use it to manage kernels that support
15478         nanosecond times on files, but not on symlinks.
15479         Reported by OndÅ™ej Vašík.
15480
15481         utimes: fix configure grammar
15482         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15483
15484 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15485
15486         regex: Fix fastmap for multibyte character ranges.
15487         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15488         characters when a multibyte character range is included.
15489
15490 2009-11-22  Andy Wingo  <wingo@pobox.com>
15491
15492         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15493         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15494
15495 2009-11-24  Bruno Haible  <bruno@clisp.org>
15496
15497         doc: Most *_l functions exist in MacOS X 10.5.
15498         * doc/posix-functions/duplocale.texi: Update platforms list.
15499         * doc/posix-functions/freelocale.texi: Likewise.
15500         * doc/posix-functions/newlocale.texi: Likewise.
15501         * doc/posix-functions/uselocale.texi: Likewise.
15502         * doc/posix-functions/isalnum_l.texi: Likewise.
15503         * doc/posix-functions/isalpha_l.texi: Likewise.
15504         * doc/posix-functions/isblank_l.texi: Likewise.
15505         * doc/posix-functions/iscntrl_l.texi: Likewise.
15506         * doc/posix-functions/isdigit_l.texi: Likewise.
15507         * doc/posix-functions/isgraph_l.texi: Likewise.
15508         * doc/posix-functions/islower_l.texi: Likewise.
15509         * doc/posix-functions/isprint_l.texi: Likewise.
15510         * doc/posix-functions/ispunct_l.texi: Likewise.
15511         * doc/posix-functions/isspace_l.texi: Likewise.
15512         * doc/posix-functions/isupper_l.texi: Likewise.
15513         * doc/posix-functions/iswalnum_l.texi: Likewise.
15514         * doc/posix-functions/iswalpha_l.texi: Likewise.
15515         * doc/posix-functions/iswblank_l.texi: Likewise.
15516         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15517         * doc/posix-functions/iswctype_l.texi: Likewise.
15518         * doc/posix-functions/iswdigit_l.texi: Likewise.
15519         * doc/posix-functions/iswgraph_l.texi: Likewise.
15520         * doc/posix-functions/iswlower_l.texi: Likewise.
15521         * doc/posix-functions/iswprint_l.texi: Likewise.
15522         * doc/posix-functions/iswpunct_l.texi: Likewise.
15523         * doc/posix-functions/iswspace_l.texi: Likewise.
15524         * doc/posix-functions/iswupper_l.texi: Likewise.
15525         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15526         * doc/posix-functions/isxdigit_l.texi: Likewise.
15527         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15528         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15529         * doc/posix-functions/strcoll_l.texi: Likewise.
15530         * doc/posix-functions/strfmon_l.texi: Likewise.
15531         * doc/posix-functions/strftime_l.texi: Likewise.
15532         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15533         * doc/posix-functions/strxfrm_l.texi: Likewise.
15534         * doc/posix-functions/tolower_l.texi: Likewise.
15535         * doc/posix-functions/toupper_l.texi: Likewise.
15536         * doc/posix-functions/towctrans_l.texi: Likewise.
15537         * doc/posix-functions/towlower_l.texi: Likewise.
15538         * doc/posix-functions/towupper_l.texi: Likewise.
15539         * doc/posix-functions/wcscoll_l.texi: Likewise.
15540         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15541         * doc/posix-functions/wctrans_l.texi: Likewise.
15542         * doc/posix-functions/wctype_l.texi: Likewise.
15543         * doc/glibc-functions/strptime_l.texi: Likewise.
15544         * doc/glibc-functions/strtod_l.texi: Likewise.
15545         * doc/glibc-functions/strtof_l.texi: Likewise.
15546         * doc/glibc-functions/strtol_l.texi: Likewise.
15547         * doc/glibc-functions/strtold_l.texi: Likewise.
15548         * doc/glibc-functions/strtoll_l.texi: Likewise.
15549         * doc/glibc-functions/strtoul_l.texi: Likewise.
15550         * doc/glibc-functions/strtoull_l.texi: Likewise.
15551         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15552         * doc/glibc-functions/wcstod_l.texi: Likewise.
15553         * doc/glibc-functions/wcstof_l.texi: Likewise.
15554         * doc/glibc-functions/wcstol_l.texi: Likewise.
15555         * doc/glibc-functions/wcstold_l.texi: Likewise.
15556         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15557         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15558         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15559
15560 2009-11-24  Bruno Haible  <bruno@clisp.org>
15561
15562         duplocale: Fix logic bug.
15563         * lib/duplocale.c: Don't include <langinfo.h>.
15564         (_NL_LOCALE_NAME): Remove macro.
15565         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15566         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15567
15568 2009-11-23  Jim Meyering  <meyering@redhat.com>
15569
15570         test-update-copyright: don't hard-code /usr/bin/perl
15571         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15572         perl to print the current year.  Gilles Espinasse reported that
15573         the replaced use of perl was hard-coded as /usr/bin/perl.
15574
15575 2009-11-23  Bruno Haible  <bruno@clisp.org>
15576
15577         duplocale: Add support for glibc 2.3.x.
15578         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15579
15580 2009-11-22  Bruno Haible  <bruno@clisp.org>
15581
15582         vasnprintf: Tiny optimization.
15583         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15584         MacOS X.
15585
15586 2009-11-22  Bruno Haible  <bruno@clisp.org>
15587
15588         Tests for module 'duplocale'.
15589         * modules/duplocale-tests: New file.
15590         * tests/test-duplocale.c: New file.
15591
15592         New module 'duplocale'.
15593         * m4/duplocale.m4: New file.
15594         * lib/locale.in.h (duplocale): New declaration.
15595         * lib/duplocale.c: New file.
15596         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15597         gl_LOCALE_H_DEFAULTS): New macros.
15598         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15599         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15600         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15601         REPLACE_DUPLOCALE.
15602         * modules/duplocale: New file.
15603         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15604
15605 2009-11-22  Bruno Haible  <bruno@clisp.org>
15606
15607         * modules/locale-tests (configure.ac): Test for newlocale function.
15608         * tests/test-locale.c: When the system has extended locale functions,
15609         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15610
15611         locale: Make locale_t available when possible.
15612         * lib/locale.in.h: Include <xlocale.h> when it exists.
15613         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15614         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15615         * modules/locale (Depends-on): Add extensions.
15616         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15617         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15618
15619 2009-11-22  Bruno Haible  <bruno@clisp.org>
15620
15621         Add comments.
15622         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15623         invocation.
15624         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15625         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15626         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15627
15628 2009-11-22  Bruno Haible  <bruno@clisp.org>
15629
15630         error: account for the possibility of freopen (stdout).
15631         * lib/error.c: Include <unistd.h>.
15632         (flush_stdout): New function, extracted from error and error_at_line.
15633         Determine stdout's fd dynamically.
15634         (error, error_at_line): Invoke flush_stdout.
15635         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15636         * modules/error (Depends-on): Add unistd.
15637
15638 2009-11-22  Bruno Haible  <bruno@clisp.org>
15639
15640         diffseq: Add comment.
15641         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15642
15643 2009-11-22  Jim Meyering  <meyering@redhat.com>
15644
15645         c-stack: avoid defining an unused static function
15646         * lib/c-stack.c (find_stack_direction): Do not define this function
15647         when it will not be used.
15648
15649         diffseq: avoid spurious gcc warnings
15650         * lib/diffseq.h (IF_LINT2): Define.
15651         (compareseq): Use it to initialize two members of "part".
15652         This avoids two used-uninitialized warnings.
15653
15654 2009-11-21  Jim Meyering  <meyering@redhat.com>
15655
15656         c-stack: avoid "ignoring return value of `write'" warning
15657         * lib/c-stack.c: Include "ignore-value.h".
15658         (die): Explicitly ignore each write return value.
15659         * modules/c-stack (Depends-on): Add ignore-value.
15660
15661 2009-11-21  Bruno Haible  <bruno@clisp.org>
15662
15663         diffseq: reduce scope of variable 'best'.
15664         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15665         variable, earlier used for two different purposes.
15666
15667 2009-11-21  Jim Meyering  <meyering@redhat.com>
15668
15669         diffseq: remove useless assignment to "best"
15670         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15671         assignment.  At that point "best" is already guaranteed to be zero.
15672
15673 2009-11-20  Eric Blake  <ebb9@byu.net>
15674
15675         build: mention ftp redirector in release announcements
15676         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15677         values that used to come from cfg.mk; mention FTP redirect URL.
15678         * build-aux/announce-gen: Mention the mirror list.
15679         Suggested by Karl Berry.
15680
15681         nanosleep: improve port to mingw
15682         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15684         LIB_NANOSLEEP, but only when needed.
15685         * modules/select (Link): Document LIBSOCKET.
15686         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15687         enough.
15688
15689         nanosleep: work around cygwin bug
15690         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15691         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15692         bug.
15693         (getnow): Delete, not needed.
15694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15695         LIB_CLOCK_GETTIME.
15696         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15697         clock-time, gettime.
15698         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15699         bug.
15700         * modules/nanosleep-tests: New test.
15701         * tests/test-nanosleep.c: New file.
15702
15703         sleep: work around cygwin bug
15704         * lib/sleep.c (rpl_sleep): Work around the bug.
15705         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15706         (gl_PREREQ_SLEEP): Delete unused macro.
15707         * modules/sleep (Depends-on): Add verify.
15708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15709         * modules/unistd (Makefile.am): Substitute witness.
15710         * lib/unistd.in.h (sleep): Update prototype.
15711         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15712         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15713         * modules/sleep-tests (Depends-on): Check for alarm.
15714
15715 2009-11-20  Jim Meyering  <meyering@redhat.com>
15716
15717         maint.mk: improve sc_prohibit_magic_number_exit
15718         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15719         so it does not match uses like System.exit(1).
15720         Add comments showing how to correct all offenders.
15721
15722 2009-11-19  Eric Blake  <ebb9@byu.net>
15723
15724         xalloc-die-tests: add missing library
15725         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15726
15727         test-xvasprintf: silence compiler warnings
15728         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15729         empty string from gcc.
15730
15731 2009-11-19  Jim Meyering  <meyering@redhat.com>
15732
15733         xfreopen: new module, from coreutils
15734         * modules/xfreopen: New module.
15735         * lib/xfreopen.c: New file.
15736         * lib/xfreopen.h: New file.
15737         * MODULES.html.sh (File stream based Input/Output"): Add it.
15738
15739 2009-11-19  Eric Blake  <ebb9@byu.net>
15740
15741         manywarnings: depend on warnings
15742         * modules/manywarnings (Depends-on): Add warnings.
15743
15744         build: avoid compiler warnings
15745         * lib/select.c (rpl_select): Delete unused variable.
15746         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15747
15748 2009-11-18  Eric Blake  <ebb9@byu.net>
15749
15750         tests: avoid false negative with --with-packager
15751         * tests/test-version-etc.sh: Discard packager information.
15752         * tests/test-argp-version-etc-1.sh: Likewise.
15753         Reported by Mike Frysinger.
15754
15755         utimens: fix regression on Solaris
15756         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15757         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15758         can only change fd timestamps via futimesat.  Instead, use an
15759         additional witness macro to avoid BSD bug.
15760         Reported by Jim Meyering.
15761
15762 2009-11-17  Eric Blake  <ebb9@byu.net>
15763
15764         usleep: use it to simplify tests
15765         * modules/stat-time-tests (Depends-on): Add usleep.
15766         (configure.ac): Drop usleep check.
15767         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15768         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15769         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15770         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15771         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15772         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15773         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15774         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15775         Likewise.
15776         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15777         * tests/test-lchown.h (nap): Likewise.
15778         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15779         * tests/test-stat-time.c (nap): Likewise.
15780         * tests/test-utimens-common.h (nap): Update comments.
15781
15782         usleep: new module
15783         * modules/usleep: New file.
15784         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15785         * lib/usleep.c (usleep): Likewise.
15786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15787         * modules/unistd (Makefile.am): Substitute witnesses.
15788         * lib/unistd.in.h (usleep): Add declaration.
15789         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15790         * MODULES.html.sh (Date and time): Likewise.
15791         * modules/usleep-tests (Depends-on): New test.
15792         * tests/test-usleep.c: New file.
15793
15794         chown: work around OpenBSD bug
15795         * lib/chown.c (rpl_chown): Work around the bug.
15796         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15797         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15798         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15799         * modules/chown (Depends-on): Add stdbool.
15800         * modules/lchown (Depends-on): Likewise.
15801         * doc/posix-functions/chown.texi (chown): Document the bug.
15802         * doc/posix-functions/lchown.texi (lchown): Likewise.
15803         * tests/test-lchown.h (test_chown): Relax test.
15804
15805         mkstemp: avoid conflict with C++ keyword template
15806         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15807         * lib/mkostemp.c (mkostemp): Likewise.
15808         * lib/mkostemps.c (mkostemps): Likewise.
15809         * lib/mkstemp.c (mkstemp): Likewise.
15810         * lib/mkstemps.c (mkstemps): Likewise.
15811
15812         xalloc-die-tests: optimize
15813         * tests/test-xalloc-die.sh: Reduce number of processes.
15814
15815 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15816
15817         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15818         patch from ludo@gnu.org (Ludovic Courtès).
15819
15820 2009-11-17  Jim Meyering  <meyering@redhat.com>
15821
15822         version-etc: use proper license string
15823         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15824         * modules/version-etc-fsf: Likewise.
15825
15826 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15827
15828         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15829         printed to stdout.  Deal with EOL differences.
15830
15831 2009-11-17  Eric Blake  <ebb9@byu.net>
15832
15833         unsetenv: work around Solaris bug
15834         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15835         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15836         Reported by Jim Meyering.
15837
15838         vasnprintf: avoid compiler warnings
15839         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15840         variables.
15841         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15842
15843 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15844
15845         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15846         settings since xalloc-die is no longer the self test,
15847         xalloc-die.sh is.
15848
15849 2009-11-17  Jim Meyering  <meyering@redhat.com>
15850
15851         test-xalloc-die.sh: make the code agree with the commit log
15852         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15853         at the end, just in case you happen to have a test-xalloc-die
15854         program in some other PATH directory.
15855
15856         test-xalloc-die.sh: fix a portability bug
15857         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15858         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15859         Otherwise, argv[0] (as often seen in diagnostics) would be too
15860         system-dependent, sometimes with, and sometimes without the leading "./".
15861
15862         version-etc-fsf: relax license to LGPLv3+
15863         * modules/version-etc-fsf (License): Relax license.
15864
15865 2009-11-16  Eric Blake  <ebb9@byu.net>
15866
15867         xalloc-die-tests: avoid printing null pointer
15868         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15869         shell script.
15870         * tests/test-xalloc-die.c (program_name): Declare.
15871         * tests/test-xalloc-die.sh (tmpfiles): New file.
15872
15873         setenv, unsetenv: work around various bugs
15874         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15875         (setenv) [HAVE_SETENV]: Work around bugs.
15876         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15877         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15878         for bugs.
15879         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15880         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15882         * modules/stdlib (Makefile.am): Update substitutions.
15883         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15884         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15885         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15886         * modules/setenv-tests: New test.
15887         * modules/unsetenv-tests: Likewise.
15888         * tests/test-setenv.c: New file.
15889         * tests/test-unsetenv.c: Likewise.
15890
15891 2009-11-16  Jim Meyering  <meyering@redhat.com>
15892
15893         version-etc: relax license to LGPLv3+
15894         * modules/version-etc (License): Relax license.
15895
15896         better AC_REQUIRE expanded-before-required-warning avoidance
15897         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15898         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15899         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15900         which is no longer needed.
15901
15902 2009-11-16  Eric Blake  <ebb9@byu.net>
15903
15904         test-freading: clean up temporary file
15905         * tests/test-freading.c (main): Remove file on success, and use
15906         ASSERT more liberally.
15907         Reported by Jim Meyering.
15908
15909 2009-11-16  Jim Meyering  <meyering@redhat.com>
15910
15911         avoid new AC_REQUIRE expanded-before-required warnings
15912         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15913         merely using it.
15914         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15915         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15916
15917 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15918
15919         * tests/test-xalloc-die.c: New file.
15920         * modules/xalloc-die-tests: New file.
15921         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15922         XFAIL_TESTS so it can be appended by modules.
15923
15924 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15925
15926         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15927         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15928
15929 2009-11-14  Eric Blake  <ebb9@byu.net>
15930
15931         fnmatch: avoid compiler warning
15932         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15933         to silence compiler warning about mismatch signedness in ?:.
15934         Reported by Robert Millan.
15935
15936         intprops: add double-inclusion guard
15937         * lib/intprops.h: Allow idempotent includes.
15938         Suggested by Bruce Korb.
15939
15940         openat: detect Solaris fchownat bug
15941         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15942         penalizing glibc chownat when only lchownat is broken.
15943         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15944         trailing slash bugs.
15945         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15946         * modules/openat-tests (Files): Include more files.
15947         (Depends-on): Add mgetgroups, sleep, stat-time.
15948         (configure.ac): Add additional checks.
15949         (Makefile.am): Build new test.
15950         * tests/test-fchownat.c: New file.
15951
15952         lchown: detect Solaris and FreeBSD bug
15953         * lib/lchown.c (rpl_lchown): Work around bug.
15954         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15956         * modules/unistd (Makefile.am): Populate it.
15957         * lib/unistd.in.h (lchown): Update declaration.
15958         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15959         * modules/lchown-tests: New file.
15960         * tests/test-lchown.h (test_lchown): Likewise.
15961         * tests/test-lchown.c (main): Likewise.
15962
15963         chown: detect Solaris and FreeBSD bug
15964         * lib/chown.c (rpl_chown): Work around bug.
15965         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15966         (gl_PREREQ_CHOWN): Delete.
15967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15968         * modules/unistd (Makefile.am): Populate it.
15969         * lib/unistd.in.h (chown): Update declaration.
15970         * lib/lchown.c (chown): Update client.
15971         * modules/lchown (Depends-on): Add lstat.
15972         * doc/posix-functions/chown.texi (chown): Document the bug.
15973         * doc/posix-functions/getgroups.texi (getgroups): Document
15974         getgroups pitfall.
15975         * modules/chown-tests: New file.
15976         * tests/test-chown.h (test_chown): Likewise.
15977         * tests/test-chown.c (main): Likewise.
15978
15979 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15980
15981         gnulib-tool: correctly detect absence of m4 directories
15982         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15983
15984 2009-11-14  Jim Meyering  <meyering@redhat.com>
15985
15986         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15987         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15988
15989 2009-11-14  John W. Eaton  <jwe@gnu.org>
15990
15991         strftime.h: wrap funtion declaration in extern "C" block
15992         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15993
15994 2009-11-13  Eric Blake  <ebb9@byu.net>
15995
15996         getgroups: avoid compiler warning
15997         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15998
15999         getgroups: work around FreeBSD bug
16000         * lib/getgroups.c (rpl_getgroups): Work around the bug.
16001         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
16002         * doc/posix-functions/getgroups.texi (getgroups): Document it.
16003         * tests/test-getgroups.c (main): Fix buffer overrun.
16004
16005         getgroups: avoid compilation failure
16006         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
16007         * modules/getgroups (Depends-on): Add stdint.
16008
16009 2009-11-13  Jim Meyering  <meyering@redhat.com>
16010
16011         test-getgroups: avoid compilation failure
16012         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
16013
16014 2009-11-13  Eric Blake  <ebb9@byu.net>
16015
16016         mgetgroups: new module, taken from coreutils
16017         * modules/mgetgroups: New file.
16018         * lib/mgetgroups.h: Likewise.
16019         * lib/mgetgroups.c (mgetgroups): Likewise.
16020         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
16021         * MODULES.html.sh (Users and groups): Mention it.
16022
16023         getgroups: don't expose GETGROUPS_T to user
16024         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
16025         an element at a time if GETGROUPS_T is wrong size.
16026         * lib/getugroups.h (getugroups): Change signature.
16027         * lib/unistd.in.h (getgroups): Likewise.
16028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
16029         signature needs fixing.
16030         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
16031         AC_TYPE_GETGROUPS.
16032         * modules/group-member (Depends-on): Add getgroups.
16033         * lib/group-member.c (group_info, get_group_info): Use gid_t.
16034         (group_member): Rely on getgroups replacement.
16035         * lib/getugroups.c (getugroups): Use gid_t.
16036         * tests/test-getgroups.c (main): Likewise.
16037         * NEWS: Mention the signature change.
16038         * doc/posix-functions/getgroups.texi (getgroups): Mention the
16039         problem with signature.
16040         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
16041         GETGROUPS_T is still useful for setgroups.
16042
16043         getgroups, getugroups: provide stubs for mingw
16044         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
16045         * lib/getugroups.c (getugroups): Likewise.
16046         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
16047         function.  Modernize replacement scheme.
16048         (gl_PREREQ_GETGROUPS): Delete.
16049         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
16050         * modules/getgroups (configure.ac): Declare witness.
16051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16052         * modules/unistd (Depends-on): Substitute witness.
16053         * lib/unistd.in.h (getgroups): Declare replacement.
16054
16055         getgroups: avoid calling exit
16056         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
16057         drop xalloc.
16058         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
16059         dependencies.
16060         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
16061         exiting, in the rare case of malloc failure.
16062
16063         getgroups: fix logic error
16064         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
16065         has more than 20 groups.
16066         * modules/getgroups-tests: New test.
16067         * tests/test-getgroups.c: New file.
16068
16069 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16070
16071         * tests/test-base64.c: Improve.
16072
16073 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16074
16075         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
16076         Blake <ebb9@byu.net>.
16077
16078 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16079
16080         * tests/test-xvasprintf.c: Add %s%s related checks.
16081
16082 2009-11-12  Eric Blake  <ebb9@byu.net>
16083
16084         version-etc: match standards.texi style
16085         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
16086         and use <> only for URLs.
16087
16088 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
16089
16090         fts: do not fail on a submount during traversal
16091         * lib/fts.c (fts_build): Read the stat info again after opening
16092         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
16093         Original report at http://bugzilla.redhat.com/501848.
16094
16095 2009-11-12  Jim Meyering  <meyering@redhat.com>
16096
16097         bootstrap: sync from coreutils
16098         * build-aux/bootstrap (bootstrap_epilogue): New function.
16099         Use git_modules_config in one more place.  This make bootstrap's
16100         --gnulib-srcdir option more useful for testing.
16101
16102         bootstrap: generalize autoheader check
16103         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
16104         AC_CONFIG_HEADERS.
16105
16106 2009-11-11  Eric Blake  <ebb9@byu.net>
16107
16108         mkfifoat: use new modules for Solaris and BSD bugs
16109         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
16110         * lib/mkfifoat.c (mknodat): Split...
16111         * lib/mknodat.c (mknodat): ...into new file.
16112         * modules/mkfifoat (Files): Ship new file.
16113         (Depends-on): Add mkfifo, mknod.
16114         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
16115         (Depends-on): Add symlink.
16116         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16117         redundant with test_mkfifo.h.
16118         (do_mkfifoat, do_mknodat): New helpers.
16119
16120         mknod: new module
16121         * modules/mknod: New file.
16122         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16123         * lib/mknod.c (mknod): Likewise.
16124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16125         defaults.
16126         * modules/sys_stat (Makefile.am): Substitute them.
16127         * lib/sys_stat.in.h (mknod): Declare replacement.
16128         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16129         Document it.
16130         * doc/posix-functions/mknod.texi (mknod): Likewise.
16131         * modules/mknod-tests: New test.
16132         * tests/test-mknod.c: Likewise.
16133
16134         mkfifo: new module
16135         * modules/mkfifo: New file.
16136         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16137         * lib/mkfifo.c (mkfifo): Likewise.
16138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16139         defaults.
16140         * modules/sys_stat (Makefile.am): Substitute them.
16141         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16142         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16143         Document it.
16144         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16145         * modules/mkfifo-tests: New test.
16146         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16147         from test-mkfifoat.c.
16148         * tests/test-mkfifo.c: New file.
16149
16150         readlink: detect FreeBSD bug
16151         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16152         slash on symlink.
16153         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16154         * tests/test-readlink.h (test_readlink): Enhance test.
16155
16156         symlink: detect FreeBSD bug
16157         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16158         slash on symlink.
16159         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16160         * tests/test-symlink.h (test_symlink): Enhance test.
16161
16162 2009-11-10  Eric Blake  <ebb9@byu.net>
16163
16164         link: detect FreeBSD bug
16165         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16166         symlink.
16167         * doc/posix-functions/link.texi (link): Document the bug.
16168         * tests/test-link.h (test_link): Enhance test.
16169         * tests/test-linkat.c (main): Update caller.
16170
16171         unlink, remove: detect FreeBSD bug
16172         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16173         slash on symlink.
16174         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16175         * doc/posix-functions/remove.texi (remove): Likewise.
16176         * tests/test-unlink.h (test_unlink): Enhance test.
16177         * tests/test-remove.c (main): Likewise.
16178
16179 2009-11-09  Eric Blake  <ebb9@byu.net>
16180
16181         rename: detect FreeBSD bug
16182         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16183         slash on symlink.
16184         * modules/renameat-tests (Depends-on): Add filenamecat.
16185         * tests/test-rename.h (test_rename): Allow one more errno.
16186         * tests/test-renameat.c (main): Likewise.
16187         * doc/posix-functions/rename.texi (rename): Document the bug.
16188
16189         open: detect FreeBSD bug
16190         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16191         symlink.
16192         * doc/posix-functions/open.texi (open): Document the bug.
16193         * doc/posix-functions/utimes.texi (utimes): Likewise.
16194         * tests/test-open.h (test_open): Add parameters, and test symlink
16195         handling.
16196         * tests/test-open.c (main): Adjust caller.
16197         * tests/test-fcntl-safer.c (main): Likewise.
16198         * modules/open-tests (Depends-on): Add stdbool, symlink.
16199         * modules/fcntl-safer-tests (Depends-on): Likewise.
16200         * tests/test-openat.c (main): Add test-open tests.
16201
16202         stat: detect FreeBSD bug
16203         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16204         symlink.
16205         * doc/posix-functions/stat.texi (stat): Document the bug.
16206         * tests/test-stat.h (test_stat_func): Add argument.
16207         * tests/test-stat.c (main): Adjust caller.
16208         * tests/test-fstatat.c (main): Likewise.
16209         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16210         Reported by Jim Meyering.
16211
16212 2009-11-09  James Youngman  <jay@gnu.org>
16213
16214         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16215         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16216
16217 2009-11-08  Jim Meyering  <meyering@redhat.com>
16218
16219         utimens: remove invalid futimesat call
16220         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16221         It used the file descriptor of the target file as the DIR_FD
16222         parameter and NULL as the file name.  That caused failure with
16223         errno == EFAULT on FreeBSD-8.0-rc2
16224
16225 2009-11-07  Eric Blake  <ebb9@byu.net>
16226
16227         fflush, freadseek: use fseeko, not fseek
16228         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16229         (clear_ungetc_buffer): Avoid potential problems on large files.
16230         * lib/freadseek.c (freadseek): Likewise.
16231         * modules/freadseek (Depends-on): Add fseeko.
16232         * modules/fseek (configure.ac): Set a witness.
16233         * tests/test-fflush.c (main): Use fseeko.
16234         * tests/test-fpurge.c (fseek): Disable link warning.
16235         * tests/test-freadable.c (fseek): Likewise.
16236         * tests/test-freading.c (fseek): Likewise.
16237         * tests/test-fseeko.c (fseek): Likewise.
16238         * tests/test-ftell.c (fseek): Likewise.
16239         * tests/test-ftello.c (fseek): Likewise.
16240         * tests/test-fwritable.c (fseek): Likewise.
16241         * tests/test-fwriting.c (fseek): Likewise.
16242
16243 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16244
16245         * modules/memchr (Depends-on): Drop getpagesize dependency.
16246
16247 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16248
16249         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16250         Reported by Ludovic Courtès.
16251         * build-aux/pmccabe2html: Improve example usage.
16252         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16253
16254 2009-11-06  Jim Meyering  <meyering@redhat.com>
16255
16256         do-release-commit-and-tag: New module.
16257         Automate the release-commit and tag process.
16258         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16259         * modules/do-release-commit-and-tag: New file.
16260         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16261
16262 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16263
16264         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16265         because test-select.c uses inet_pton.
16266
16267 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16268
16269         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16270         GETADDRINFO_LIB.  Bump serial number.
16271         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16272         Suggested by Eric Blake <ebb9@byu.net>.
16273
16274 2009-11-05  Eric Blake  <ebb9@byu.net>
16275
16276         strtod: detect darwin bug
16277         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16278         Reported by Leo Davis.
16279
16280         freopen-safer: new module
16281         * modules/freopen-safer: New module.
16282         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16283         * lib/freopen-safer.c (freopen_safer): New file.
16284         * lib/stdio-safer.h (freopen_safer): New declaration.
16285         * lib/stdio--.h (freopen): New override.
16286         * MODULES.html.sh (File stream based Input/Output): Mention it.
16287         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16288         freopen-safer module.
16289         * doc/posix-functions/stderr.texi (stderr): Likewise.
16290         * doc/posix-functions/stdin.texi (stdin): Likewise.
16291         * doc/posix-functions/stdout.texi (stdout): Likewise.
16292         * modules/freopen-safer-tests: New test.
16293         * tests/test-reopen-safer.c: New file.
16294
16295 2009-11-05  Jim Meyering  <meyering@redhat.com>
16296
16297         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16298         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16299
16300 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16301
16302         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16303
16304 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16305
16306         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16307
16308 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16309
16310         Fix link error.
16311         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16312         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16313
16314 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16315
16316         * tests/test-func.c: Also test value of __func__.
16317
16318 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16319
16320         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16321         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16322
16323 2009-11-05  Bruno Haible  <bruno@clisp.org>
16324
16325         Fix link error.
16326         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16327         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16328         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16329
16330 2009-11-05  Bruno Haible  <bruno@clisp.org>
16331
16332         Tests for module 'inet_pton'.
16333         * modules/inet_pton-tests: New file.
16334         * tests/test-inet_pton.c: New file.
16335
16336 2009-11-05  Bruno Haible  <bruno@clisp.org>
16337
16338         Tests for module 'inet_ntop'.
16339         * modules/inet_ntop-tests: New file.
16340         * tests/test-inet_ntop.c: New file.
16341
16342 2009-11-04  Eric Blake  <ebb9@byu.net>
16343
16344         stdlib-safer: wrap all mkstemp variants
16345         * modules/mkostemp (configure.ac): Set witness.
16346         * modules/mkostemps (configure.ac): Likewise.
16347         * modules/mkstemps (configure.ac): Likewise.
16348         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16349         (mkstemps_safer): Wrap more functions.
16350         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16351         wrapping.
16352         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16353         (mkstemps_safer): Implement the wrappers.
16354
16355         mkstemps, mkostemps: new modules
16356         * modules/mkostemps: New module.
16357         * modules/mkstemps: Likewise.
16358         * lib/mkostemps.c (mkostemps): New file.
16359         * lib/mkstemps.c (mkstemps): Likewise.
16360         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16361         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16363         * modules/stdlib (Makefile.am): Substitute them.
16364         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16365         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16366         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16367         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16368         * MODULES.html.sh (File system functions): Mention them.
16369
16370         tempname: resync from glibc
16371         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16372         same values for __GT_FILE as glibc.  Abort even when assertions
16373         are disabled.
16374         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16375         match its value otherwise.  Allow idempotent inclusion.
16376         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16377         * lib/mkostemp.c (mkostemp): Likewise.
16378         * lib/mkstemp.c (mkstemp): Likewise.
16379         * lib/tmpfile.c (tmpfile): Likewise.
16380         * NEWS: Document this.
16381
16382         utimens: fix use of futimens on older Linux
16383         * lib/utimens.c (fdutimens): Use updated, rather than original,
16384         timespec to avoid bug in older Linux kernel.
16385         Reported by Simon Josefsson.
16386
16387 2009-11-04  Bruno Haible  <bruno@clisp.org>
16388
16389         Make num_processors more flexible and consistent.
16390         * lib/nproc.h (enum nproc_query): New type.
16391         (num_processors): Add a 'query' argument.
16392         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16393         (num_processors): Add a 'query' argument. Test the value of the
16394         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16395         mingw, count the number of CPUs available for the current process.
16396         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16397         Check for sched_getaffinity and sched_getaffinity_np.
16398         * modules/nproc (Depends-on): Add c-ctype, extensions.
16399         * NEWS: Mention the change.
16400
16401 2009-11-03  Bruno Haible  <bruno@clisp.org>
16402
16403         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16404
16405 2009-11-03  Jim Meyering  <meyering@redhat.com>
16406
16407         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16408         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16409         if it is defined.
16410
16411 2009-11-02  Eric Blake  <ebb9@byu.net>
16412
16413         mktime, timegm: share common declaration
16414         * lib/mktime-internal.h: New file.
16415         * lib/mktime.c: Use it rather than open-coding a declaration.
16416         * lib/timegm.c: Likewise.
16417         * modules/mktime (Files): Ship it.
16418         * modules/timegm (Files): Likewise.
16419         Suggested by Bruno Haible.
16420
16421         test-update-copyright: update test to match script changes
16422         * tests/test-update-copyright.sh: Avoid hard-coding perl
16423         location.  Don't update *.bak created by earlier runs.
16424
16425 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16426             Simon Josefsson  <simon@josefsson.org>
16427             Bruno Haible  <bruno@clisp.org>
16428
16429         Fix link error on Solaris 8.
16430         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16431         also in libnsl. Define also INET_PTON_LIB.
16432         * modules/inet_pton (Link): New section.
16433
16434 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16435             Bruno Haible  <bruno@clisp.org>
16436
16437         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16438         * modules/inet_ntop (Link): New section.
16439         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16440
16441 2009-11-02  Eric Blake  <ebb9@byu.net>
16442
16443         maint: avoid compiler warnings in m4 macros
16444         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16445         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16446
16447 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16448
16449         * m4/pmccabe2html.m4: Remove file.
16450         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16451         function.  Change maintainer.
16452         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16453         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16454         Courtès).
16455
16456 2009-10-31  Eric Blake  <ebb9@byu.net>
16457
16458         fseeko: fix m4 regression
16459         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16460         regression from 2009-10-27.
16461         Reported by Ralf Wildenhues.
16462
16463 2009-10-31  Jim Meyering  <meyering@redhat.com>
16464
16465         inttostr: aesthetics and improved (compile-time) safety
16466         Define inttype_is_signed rather than inttype_is_unsigned,
16467         since the sole use is via "#if inttype_is_signed".
16468         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16469         inttype_is_unsigned.
16470         * lib/offtostr.c (inttype_is_signed): Likewise.
16471         * lib/uinttostr.c (inttype_is_signed): Likewise.
16472         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16473         * lib/inttostr.c (inttostr): Use verify to cross-check the
16474         inttype_is_signed value and the signedness of the actual type.
16475         * modules/inttostr (Depends-on): Add verify.
16476
16477 2009-10-30  Eric Blake  <ebb9@byu.net>
16478
16479         build: avoid compiler warnings
16480         * lib/fchmodat.c (lchmod): Mark unused variables.
16481         * lib/getopt.c (_getopt_initialize): Likewise.
16482         * lib/mktime.c (__mktime_internal): Provide prototype.
16483         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16484         older gcc that do not understand #pragma GCC diagnostic.
16485         * lib/uinttostr.c (inttype_is_unsigned): Define.
16486         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16487
16488 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16489
16490         stat: fix compilation on AIX
16491         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16492         only see struct stat64.
16493
16494 2009-10-30  Eric Blake  <ebb9@byu.net>
16495
16496         exclude: make more robust
16497         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16498         rather than masking a coding bug.
16499         Suggested by Bruno Haible.
16500
16501 2009-10-30  Jim Meyering  <meyering@redhat.com>
16502
16503         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16504         Rather than putting #!/usr/bin/perl on the first line,
16505         start with a variant of what's recommended by "man perlrun" that
16506         invokes the first "perl" program from your shell's search path.
16507         * build-aux/gitlog-to-changelog: Replace #!... as above.
16508         Add a "Local Variables" perl mode setting.
16509         Prompted by a patch from Ludovic Courtès.
16510         Improved by Eric Blake.
16511         * build-aux/useless-if-before-free: Likewise.
16512         * build-aux/announce-gen: Likewise.
16513         * build-aux/update-copyright: Likewise.
16514
16515 2009-10-29  Eric Blake  <ebb9@byu.net>
16516
16517         filenamecat-lgpl: adjust clients
16518         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16519         filenamecat.
16520         * modules/renameat (Depends-on): Likewise.
16521
16522         filenamecat: split into filenamecat-lgpl
16523         * modules/filenamecat-lgpl: New module.
16524         * modules/filenamecat (Files): Move library-safe files into
16525         filenamecat-lgpl.
16526         (Depends-on): Add filenamecat-lgpl.
16527         (configure.ac): Declare witness.
16528         * lib/filenamecat.h (file_name_concat): Only declare when using
16529         GPL module.
16530         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16531         Move...
16532         * lib/filenamecat-lgpl.c: ...into new file.
16533         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16534         (gl_FILE_NAME_CONCAT): Use it.
16535         * MODULES.html.sh (File system functions): Mention new module.
16536
16537         argp: avoid memory leak
16538         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16539         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16540         base_name, since the latter malloc()s and can call exit().
16541         Leak introduced 2006-07-03.
16542
16543         dirname-lgpl: adjust clients that don't need full dirname
16544         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16545         * modules/filenamecat (Depends-on): Likewise.
16546         * modules/linkat (Depends-on): Likewise.
16547         * modules/mkancesdirs (Depends-on): Likewise.
16548         * modules/mkdir (Depends-on): Likewise.
16549         * modules/openat (Depends-on): Likewise.
16550         * modules/savewd (Depends-on): Likewise.
16551         * modules/rename (Depends-on): Likewise.
16552         (License): Relax license.
16553         * modules/mkdir-tests (Depends-on): Drop progname.
16554         (Makefile.am): Delete unneeded LDADD.
16555         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16556
16557         dirname: split into dirname-lgpl
16558         * modules/dirname-lgpl: New module.
16559         * modules/dirname (Files): Move library-safe files into
16560         dirname-lgpl.
16561         (Depends-on): Add dirname-lgpl.
16562         (configure.ac): Declare witness.
16563         * modules/double-slash-root (License): Relax license.
16564         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16565         module.
16566         * lib/dirname.c (dir_len, mdir_name): Move...
16567         * lib/dirname-lgpl.c: ...into new file.
16568         * lib/basename.c (last_component, base_len): Move...
16569         * lib/basename-lgpl.c: ...into new file.
16570         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16571         (gl_DIRNAME): Use it.
16572         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16573         Mention new module.
16574         * modules/dirname-tests (Depends-on): Add progname.
16575         * tests/test-dirname.c (program_name): Delete.
16576
16577         mkdir: make safe for libraries
16578         * modules/mkdir (Depends-on): Drop xalloc.
16579         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16580         exit.
16581
16582         tests: avoid some compiler warnings
16583         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16584         literals.
16585         * tests/test-memchr.c (main): Avoid type mismatch.
16586         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16587         * tests/test-base64.c (main): Likewise.
16588         * tests/test-getdelim.c (main): Likewise.
16589         * tests/test-gethostname.c (main): Likewise.
16590         * tests/test-getline.c (main): Likewise.
16591         * tests/test-netinet_in.c (main): Likewise.
16592         * tests/test-select.c (open_server_socket, main): Likewise.
16593         * tests/test-select-stdin.c (main): Likewise.
16594         * tests/test-sockets.c (main): Likewise.
16595         * tests/test-strsignal.c (main): Likewise.
16596         * tests/test-sys_select.c (main): Likewise.
16597         * tests/test-sys_socket.c (main): Likewise.
16598         * tests/test-u64.c (main): Likewise.
16599         * tests/test-xfprintf-posix.c (main): Likewise.
16600         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16601
16602         sockets: avoid compiler warning
16603         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16604
16605         maint: detect usage(1) and other suspicious exits
16606         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16607
16608 2009-10-29  Jim Meyering  <meyering@redhat.com>
16609
16610         timespec: long-to-int truncation could make timespec_cmp malfunction
16611         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16612         a multiple of 2^32 nanoseconds as no difference.
16613
16614 2009-10-28  Jim Meyering  <meyering@redhat.com>
16615
16616         fprintftime: wrap macro code argument in "do {...} while(0)"
16617         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16618         cpy macro must be a statement that can be followed by a semicolon.
16619         Now that the else clause contains a comment and is hence longer
16620         than one line, I require curly braces.  That in turn requires
16621         that we wrap this code block in the standard do...while(0).
16622
16623         fprintftime: remove stray semicolon from previous change
16624         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16625
16626         fprintftime: avoid a warning about ignored fwrite return value
16627         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16628         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16629         that is unsafe.
16630         * modules/fprintftime (Depends-on): Add ignore-value.
16631
16632         exclude: avoid an unwarranted warning
16633         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16634
16635 2009-10-27  Eric Blake  <ebb9@byu.net>
16636
16637         fseek: avoid compilation failure when fflush is replaced
16638         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16639         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16640         module is in use.
16641         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16642         module is not in use; since REPLACE_FSEEK worked otherwise.
16643         (GNULIB_FTELLO): Likewise for ftell.
16644         Reported by Ian Beckwith and others.
16645
16646 2009-10-27  Bruno Haible  <bruno@clisp.org>
16647
16648         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16649         Reported by Jim Meyering.
16650
16651 2009-10-27  Jim Meyering  <jim@meyering.net>
16652             Bruno Haible  <bruno@clisp.org>
16653
16654         Avoid warning despite dropping the return value of fwrite.
16655         * lib/unicodeio.c: Include ignore-value.h.
16656         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16657         * modules/unicodeio (Depends-on): Add ignore-value.
16658
16659 2009-10-26  Eric Blake  <ebb9@byu.net>
16660
16661         areadlinkat: fix fallback path
16662         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16663         pointer and zero.
16664
16665 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16666
16667         Use a better IO block size for modern systems
16668         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16669         * lib/md2.c: Likewise.
16670         * lib/md4.c: Likewise.
16671         * lib/md5.c: Likewise.
16672         * lib/sha1.c: Likewise.
16673         * lib/sha256.c: Likewise.
16674         * lib/sha512.c: Likewise.
16675
16676 2009-10-22  Eric Blake  <ebb9@byu.net>
16677
16678         tests: avoid several compiler warnings
16679         * tests/test-getcwd.c (main): Avoid buffer underflow.
16680         * tests/test-getdate.c (main): String literals are not safe with
16681         putenv, so use setenv.  Declare unused argument.
16682         * modules/getdate-tests (Depends-on): Add setenv.
16683         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16684         problems with string literals in char *.
16685         * tests/test-hash.c (main): Avoid shadowing declaration.
16686         (insert_new): Treat string literals as char const *.
16687         * tests/test-getopt.h (test_getopt): Likewise.
16688         (getopt_loop): Alter types to minimize casting elsewhere.
16689         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16690         (test_getopt_long_posix): Likewise.
16691         (do_getopt_long): Add wrapper to minimize casting.
16692         * tests/test-atexit.c (clear_temp_file): Use void.
16693         * tests/test-areadlink-with-size.c (main): Declare unused
16694         arguments.
16695         * tests/test-areadlink.c (main): Likewise.
16696         * tests/test-areadlinkat-with-size.c (main): Likewise.
16697         * tests/test-areadlinkat.c (main): Likewise.
16698         * tests/test-canonicalize-lgpl.c (main): Likewise.
16699         * tests/test-canonicalize.c (main): Likewise.
16700         * tests/test-dirent-safer.c (main): Likewise.
16701         * tests/test-dirname.c (main): Likewise.
16702         * tests/test-dup2.c (main): Likewise.
16703         * tests/test-fchdir.c (main): Likewise.
16704         * tests/test-fcntl-h.c (main): Likewise.
16705         * tests/test-fcntl-safer.c (main): Likewise.
16706         * tests/test-fdopendir.c (main): Likewise.
16707         * tests/test-fdutimensat.c (main): Likewise.
16708         * tests/test-fflush.c (main): Likewise.
16709         * tests/test-filenamecat.c (main): Likewise.
16710         * tests/test-filevercmp.c (main): Likewise.
16711         * tests/test-fopen-safer.c (main): Likewise.
16712         * tests/test-fopen.c (main): Likewise.
16713         * tests/test-fpending.c (main): Likewise.
16714         * tests/test-fpurge.c (main): Likewise.
16715         * tests/test-freading.c (main): Likewise.
16716         * tests/test-fstatat.c (main): Likewise.
16717         * tests/test-fsync.c (main): Likewise.
16718         * tests/test-futimens.c (main): Likewise.
16719         * tests/test-getndelim2.c (main): Likewise.
16720         * tests/test-gettimeofday.c (main): Likewise.
16721         * tests/test-getopt.c (main): Likewise.
16722         * tests/test-i-ring.c (main): Likewise.
16723         * tests/test-inttypes.c (main): Likewise.
16724         * tests/test-link.c (main): Likewise.
16725         * tests/test-lstat.c (main): Likewise.
16726         * tests/test-math.c (main): Likewise.
16727         * tests/test-md5.c (main): Likewise.
16728         * tests/test-memchr2.c (main): Likewise.
16729         * tests/test-memrchr.c (main): Likewise.
16730         * tests/test-mkdir.c (main): Likewise.
16731         * tests/test-mkdirat.c (main): Likewise.
16732         * tests/test-mkfifoat.c (main): Likewise.
16733         * tests/test-open.c (main): Likewise.
16734         * tests/test-openat-safer.c (main): Likewise.
16735         * tests/test-openat.c (main): Likewise.
16736         * tests/test-quotearg.c (main): Likewise.
16737         * tests/test-rawmemchr.c (main): Likewise.
16738         * tests/test-readlink.c (main): Likewise.
16739         * tests/test-remove.c (main): Likewise.
16740         * tests/test-rename.c (main): Likewise.
16741         * tests/test-renameat.c (main): Likewise.
16742         * tests/test-rmdir.c (main): Likewise.
16743         * tests/test-sha1.c (main): Likewise.
16744         * tests/test-signal.c (main): Likewise.
16745         * tests/test-sigaction.c (main): Likewise.
16746         * tests/test-stat.c (main): Likewise.
16747         * tests/test-stat-time.c (main): Likewise.
16748         * tests/test-stddef.c (main): Likewise.
16749         * tests/test-stdint.c (main): Likewise.
16750         * tests/test-stdio.c (main): Likewise.
16751         * tests/test-stdlib.c (main): Likewise.
16752         * tests/test-strchrnul.c (main): Likewise.
16753         * tests/test-strerror.c (main): Likewise.
16754         * tests/test-string.c (main): Likewise.
16755         * tests/test-strtod.c (main): Likewise.
16756         * tests/test-strverscmp.c (main): Likewise.
16757         * tests/test-symlink.c (main): Likewise.
16758         * tests/test-symlinkat.c (main): Likewise.
16759         * tests/test-sys_stat.c (main): Likewise.
16760         * tests/test-sys_time.c (main): Likewise.
16761         * tests/test-time.c (main): Likewise.
16762         * tests/test-unistd.c (main): Likewise.
16763         * tests/test-unlink.c (main): Likewise.
16764         * tests/test-unlinkat.c (main): Likewise.
16765         * tests/test-utimens.c (main): Likewise.
16766         * tests/test-utimensat.c (main): Likewise.
16767         * tests/test-version-etc.c (main): Likewise.
16768         * tests/test-wchar.c (main): Likewise.
16769         * tests/test-wctype.c (main): Likewise.
16770         * tests/test-xprintf-posix.c (main): Likewise.
16771         * tests/test-posixtm.c (main): Likewise.
16772         (STREQ): Delete unused macro.
16773         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16774         shadowed variables.
16775         * tests/test-memchr.c (main): Likewise.
16776
16777 2009-10-21  Eric Blake  <ebb9@byu.net>
16778
16779         areadlinkat: avoid failure on older glibc
16780         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16781         rather than mis-comparing 0 against FUNC_RESULT of char*.
16782
16783 2009-10-21  Bruno Haible  <bruno@clisp.org>
16784
16785         * modules/stpncpy (License): Relicense under LGPLv2+.
16786         Reported by David Lutterkort <lutter@redhat.com>.
16787
16788 2009-10-20  Eric Blake  <ebb9@byu.net>
16789
16790         utimensat: work around Solaris 9 bug
16791         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16792         has trailing slash bugs.
16793         * tests/test-lutimens.h (test_lutimens): Enhance test.
16794         * tests/test-utimens.h (test_utimens): Likewise.
16795         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16796         * doc/posix-functions/utimes.texi (utimes): Likewise.
16797         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16798         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16799         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16800         * doc/posix-functions/futimens.texi (futimens): Likewise.
16801
16802         fdutimensat: new module
16803         * modules/fdutimensat: New file.
16804         * lib/fdutimensat.c (fdutimensat): Likewise.
16805         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16806         * MODULES.html.sh (File system functions): Mention module.
16807         * modules/fdutimensat-tests: New test.
16808         * tests/test-fdutimensat.c: Likewise.
16809
16810         doc: regenerate INSTALL
16811         * doc/INSTALL: Reflect recent autoconf update.
16812         * doc/INSTALL.ISO: Likewise.
16813         * doc/INSTALL.UTF-8: Likewise.
16814
16815 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16816
16817         acl: warn if ACL support is not detected
16818         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16819
16820 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16821
16822         * lib/nproc.h: Add extern "C" block for C++.
16823
16824 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16825             Bruno Haible  <bruno@clisp.org>
16826
16827         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16828         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16829         * doc/posix-functions/isalpha.texi: Likewise.
16830         * doc/posix-functions/isblank.texi: Likewise.
16831         * doc/posix-functions/iscntrl.texi: Likewise.
16832         * doc/posix-functions/isdigit.texi: Likewise.
16833         * doc/posix-functions/isgraph.texi: Likewise.
16834         * doc/posix-functions/islower.texi: Likewise.
16835         * doc/posix-functions/isprint.texi: Likewise.
16836         * doc/posix-functions/ispunct.texi: Likewise.
16837         * doc/posix-functions/isspace.texi: Likewise.
16838         * doc/posix-functions/isupper.texi: Likewise.
16839         * doc/posix-functions/isxdigit.texi: Likewise.
16840
16841 2009-10-18  Bruno Haible  <bruno@clisp.org>
16842
16843         Tests for module 'isblank'.
16844         * modules/isblank-tests: New file.
16845         * tests/test-isblank.c: New file.
16846
16847         New module 'isblank'.
16848         * lib/isblank.c: New file.
16849         * m4/isblank.m4: New file.
16850         * modules/isblank: New file.
16851         * doc/posix-functions/isblank.texi: Mention the new module.
16852
16853 2009-10-18  Bruno Haible  <bruno@clisp.org>
16854
16855         New module 'ctype'.
16856         * lib/ctype.in.h: New file.
16857         * m4/ctype.m4: New file.
16858         * modules/ctype: New file.
16859         * doc/posix-headers/ctype.texi: Mention the new module.
16860
16861 2009-10-18  Jim Meyering  <meyering@redhat.com>
16862
16863         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16864         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16865         right after its initialization, rather than farther down.
16866         Keeping these in close proximity makes it easier to ensure
16867         that each such variable is initialized.  E.g.,
16868
16869             LIB_CLOCK_GETTIME=
16870             AC_SUBST([LIB_CLOCK_GETTIME])
16871
16872         This change also increments these serial numbers.
16873         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16874         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16876
16877 2009-10-18  Bruno Haible  <bruno@clisp.org>
16878
16879         Don't let environment variables perturb build.
16880         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16881         (gl_PREREQ_GETHRXTIME): ... not here.
16882
16883 2009-10-18  Bruno Haible  <bruno@clisp.org>
16884
16885         Avoid symlink attack in localcharset module.
16886         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16887         (O_NOFOLLOW): Define fallback.
16888         (get_charset_aliases): Don't open the file if it is a symbolic link.
16889         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16890         gl_FCNTL_H.
16891         (gl_FCNTL_H): Require it.
16892         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16893         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16894         Reported by Fergal Glynn <fglynn@veracode.com>.
16895
16896 2009-10-18  Bruno Haible  <bruno@clisp.org>
16897
16898         Implement nproc for mingw.
16899         * lib/nproc.c: Include <windows.h>
16900         (num_processors): On native Windows platforms, try GetSystemInfo.
16901
16902 2009-10-18  Bruno Haible  <bruno@clisp.org>
16903
16904         Implement nproc for IRIX.
16905         * lib/nproc.c: Include <sys/sysmp.h>.
16906         (num_processors): On IRIX systems, try sysmp.
16907         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16908
16909 2009-10-18  Bruno Haible  <bruno@clisp.org>
16910
16911         Implement nproc for HP-UX.
16912         * lib/nproc.c: Include <sys/pstat.h>
16913         (num_processors): On HP-UX systems, try pstat_getdynamic.
16914         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16915         pstat_getdynamic.
16916
16917 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16918             Bruno Haible  <bruno@clisp.org>
16919
16920         Implement nproc for NetBSD, OpenBSD.
16921         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16922         (ARRAY_SIZE): New macro.
16923         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16924         * m4/nproc.m4: New file.
16925         * modules/nproc (Files): Add m4/nproc.m4.
16926         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16927         (Makefile.am): Instead, augment lib_SOURCES.
16928
16929 2009-10-18  Bruno Haible  <bruno@clisp.org>
16930
16931         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16932         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16933         sys/param.h.
16934
16935 2009-10-16  Eric Blake  <ebb9@byu.net>
16936
16937         utimensat: new module
16938         * modules/utimensat: New file.
16939         * lib/utimensat.c (utimensat): Likewise.
16940         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16941         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16942         so we can work around Linux bugs.
16943         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16944         * modules/sys_stat (Makefile.am): Substitute them.
16945         * lib/sys_stat.in.h (utimensat): Declare it.
16946         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16947         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16948         * modules/utimensat-tests: New test.
16949         * tests/test-utimensat.c: Likewise.
16950
16951         utimens: let lutimens work on non-symlinks
16952         * lib/utimens.c (lutimens): Fall back to utimens rather than
16953         failing with ENOSYS, when file is not a symlink.
16954         (utimens): Reduce redirection.
16955         * tests/test-lutimens.h (test_lutimens): Update test to cover
16956         non-symlinks.
16957         * tests/test-utimens.h (test_utimens): Update test to cover
16958         symlinks.
16959         * tests/test-utimens.c (main): Update caller.
16960
16961         utimens: cache whether utimensat syscall works
16962         * lib/utimens.c (utimensat_works_really): New cache variable.
16963         (fdutimens, lutimens): Use it to avoid failing syscall.
16964
16965         test-stat-time, test-utimens: improve portability
16966         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16967         ext4 on alpha, and for cygwin.
16968         * tests/test-utimens-common.h: New file.
16969         (nap): Factor delays into single function.
16970         * tests/test-lutimens.h (test_lutimens): Use new header.
16971         * tests/test-futimens.h (test_futimens): Likewise.
16972         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16973         timestamps to occur from same machine, as was done previously for
16974         test_utimens.
16975         * modules/utimens-tests (Files): Ship new file.
16976         * modules/futimens-tests (Files): Likewise.
16977         Reported in part by Jim Meyering.
16978
16979         sys_stat: sort replacement declarations
16980         * lib/sys_stat.in.h: Sort declarations.
16981         * lib/futimens.c (futimens): Fix typo.
16982
16983 2009-10-15  Jim Meyering  <meyering@redhat.com>
16984
16985         don't let environment settings perturb build
16986         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16987         could cause a configure-time and/or build-time malfunction.
16988         Typically, a configure-time function-in-library test is performed
16989         via code like this:
16990
16991           LIB_VAR=
16992           AC_SUBST([LIB_VAR])
16993           prefix_saved_LIBS=$LIBS
16994             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16995                        [test "$ac_cv_search_FUNC" = "none required" ||
16996                         LIB_VAR=$ac_cv_search_FUNC])
16997           LIBS=$prefix_saved_LIBS
16998
16999         However, in each of the files affected by this change, the LIB_VAR=
17000         initialization was omitted.  Thus, when set in the environment, its
17001         value would propagate into generated Makefiles when FUNC is not found
17002         in LIB_NAME.
17003         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
17004         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17006
17007 2009-10-14  Eric Blake  <ebb9@byu.net>
17008
17009         fchdir: avoid infinite recursion in mingw
17010         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
17011         recursing.
17012
17013         test-stat-time: port to mingw
17014         * tests/test-stat-time.c (force_unlink): Return a value.
17015         (test_ctime) [W32]: Fix compilation error.
17016         (nap): Don't call usleep with too large an argument.  Use
17017         force_unlink.
17018         * doc/pastposix-functions/usleep.texi (usleep): Document the
17019         portability issue.
17020
17021 2009-10-13  Jim Meyering  <meyering@redhat.com>
17022
17023         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
17024         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
17025         * modules/pipe-filter-ii: Likewise.
17026         * modules/sys_socket-tests: Likewise.
17027         * modules/tsearch-tests: Likewise.
17028         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
17029         (check): Depend on it.
17030
17031 2009-10-12  Eric Blake  <ebb9@byu.net>
17032
17033         utimens-tests: port to NFS file systems
17034         * tests/test-utimens.h (test_utimens): Refactor utimecmp
17035         comparisons to avoid spurious failures from timestamp drift
17036         between NFS machines.
17037
17038 2009-10-12  Eric Blake  <ebb9@byu.net>
17039
17040         stat-time-tests: minor cleanups
17041         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
17042         * tests/test-stat-time.c (nap): Separate assignment from call.
17043         Suggested by Paolo Bonzini and Bruno Haible.
17044
17045         sys_stat: guarantee struct timespec
17046         * lib/sys_stat.in.h (includes): Always include <time.h>
17047         * modules/sys_stat (Depends-on): Add time.
17048         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
17049         mode_t permission values.
17050         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
17051         get at subsecond timestamps.
17052
17053 2009-10-10  Eric Blake  <ebb9@byu.net>
17054
17055         futimens: new module
17056         * modules/futimens: New file.
17057         * lib/futimens.c (futimens): Likewise.
17058         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
17059         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
17060         we can work around Linux bugs.
17061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17062         * modules/sys_stat (Makefile.am): Substitute them.
17063         * lib/sys_stat.in.h (futimens): Declare it.
17064         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17065         * doc/posix-functions/futimens.texi (futimens): Likewise.
17066         * modules/futimens-tests: New test.
17067         * tests/test-futimens.c: Likewise.
17068
17069         utimens: introduce fdutimens
17070         * lib/utimens.h (fdutimens): New prototype.
17071         * lib/utimens.c (gl_futimens): Move guts...
17072         (fdutimens): ...to new interface.
17073         * tests/test-utimens.c (do_fdutimens): Use it.
17074
17075         utimens: add UTIME_NOW and UTIME_OMIT support
17076         * lib/utimens.c (validate_timespec, update_timespec): New helper
17077         functions.
17078         (gl_futimens, lutimens): Use them.
17079         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
17080         stdbool, sys_stat.
17081         (Link): Mention resulting library dependency.
17082         * modules/utimecmp (Link): Likewise.
17083         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
17084         (Makefile.am): Pick up library dependency.
17085         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
17086         definition.
17087         * tests/test-sys_stat.c: Test the definitions.
17088         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
17089         * NEWS: Document library dependency.
17090
17091         utimecmp: support symlink timestamps
17092         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
17093         hashing when possible.  Use pathconf when available.
17094         (SYSCALL_RESOLUTION): Recognize tighter resolution.
17095         * modules/utimecmp (Depends-on): Add lstat.
17096
17097         utimens: add lutimens interface
17098         * lib/utimens.c (lutimens): New function.
17099         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
17100         * lib/utimens.h (lutimens): Declare new interface.
17101         * tests/test-utimens.c (main): Enhance test.
17102         * tests/test-lutimens.h (test_lutimens): New file.
17103         * modules/utimens-tests (Files): Distribute it.
17104         (Depends-on): Add symlink.
17105         (configure.ac): Check for usleep.
17106
17107         utimens: validate futimens usage
17108         * lib/utimens.c (gl_futimens): Require valid fd up front, using
17109         fewer syscalls on failure later on.  Avoid compiler warning on
17110         mingw.
17111         * modules/utimens (Depends-on): Add dup2.
17112
17113         utimens: add test
17114         * modules/utimens-tests: New test.
17115         * tests/test-utimens.h: New file.
17116         * tests/test-futimens.h: Likewise.
17117         * tests/test-utimens.c: Likewise.
17118
17119         doc: mention timestamp portability issues
17120         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17121         instead.
17122         * doc/posix-functions/utime.texi (utime): Likewise.
17123         * doc/posix-functions/utimes.texi (utimes): Likewise.
17124         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17125         instead.
17126         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17127         module.
17128         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17129         Mention weakness with symlink timestamps.
17130         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17131         to utimensat/futimens instead.
17132         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17133
17134         test-dup2: enhance test
17135         * tests/test-dup2.c (main): Also check AT_FDCWD.
17136
17137         test-stat-time: avoid more spurious failures
17138         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17139         xfs; and avoid race if the two timestamps cross quantization edge.
17140
17141         relocatable: prefer 'file system' over 'filesystem'
17142         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17143         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17144         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17145         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17146         * lib/relocatable.c (compute_curr_prefix): Likewise.
17147
17148 2009-10-10  Jim Meyering  <meyering@redhat.com>
17149
17150         stat-time-tests: check for the usleep function
17151         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17152
17153 2009-10-10  Bruno Haible  <bruno@clisp.org>
17154
17155         * modules/xnanosleep: Put the Link section after the Include section.
17156
17157 2009-10-09  Eric Blake  <ebb9@byu.net>
17158
17159         dup2: work around FreeBSD 6.1 bug
17160         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17161         * doc/posix-functions/dup2.texi (dup2): Document it.
17162         Reported by Nelson H. F. Beebe and Jim Meyering.
17163
17164         test-stat-time: port to buggy NFS clients
17165         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17166         (test_ctime): Also skip test if mtime and ctime are skewed.
17167
17168         maint: prefer 'file system' over 'filesystem'
17169         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17170         * doc/posix-functions/lstat.texi (lstat): Likewise.
17171         * lib/file-has-acl.c (file_has_acl): Likewise.
17172         * lib/fwriteerror.c [TEST]: Likewise.
17173         * tests/test-areadlink.h (test_areadlink): Likewise.
17174         * tests/test-areadlinkat-with-size.c (main): Likewise.
17175         * tests/test-areadlinkat.c (main): Likewise.
17176         * tests/test-canonicalize-lgpl.c (main): Likewise.
17177         * tests/test-canonicalize.c (main): Likewise.
17178         * tests/test-fstatat.c (main): Likewise.
17179         * tests/test-linkat.c (main): Likewise.
17180         * tests/test-lstat.h (test_lstat_func): Likewise.
17181         * tests/test-mkdir.h (test_mkdir): Likewise.
17182         * tests/test-readlink.h (test_readlink): Likewise.
17183         * tests/test-remove.c (main): Likewise.
17184         * tests/test-rename.h (test_rename): Likewise.
17185         * tests/test-renameat.c (main): Likewise.
17186         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17187         * tests/test-symlink.h (test_symlink): Likewise.
17188         * tests/test-symlinkat.c (main): Likewise.
17189         * tests/test-unlink.h (test_unlink_func): Likewise.
17190         * tests/test-unlinkat.c (main): Likewise.
17191
17192         maint: make realtime library usage explicit
17193         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17194         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17195         * modules/settime (Link): Likewise.
17196         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17197
17198         test-stat-time: speed up execution
17199         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17200         warning on mingw.
17201         (nap): New helper function.
17202         (prepare_test): Use it to reduce sleep time.
17203         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17204         execution.
17205         * modules/stat-time-tests (configure.ac): Check for usleep.
17206
17207 2009-10-09  Jim Meyering  <meyering@redhat.com>
17208
17209         selinux-h: always use getfilecon wrappers
17210         * lib/getfilecon.c: New file.
17211         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17212         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17213         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17214         (fgetfilecon): Provide a stub.
17215         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17216         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17217         file unconditionally.
17218         When <selinux/selinux.h> is found, arrange to use wrappers.
17219         * modules/selinux-h (Files): Add getfilecon.c.
17220         (Makefile.am): Substitute include-next-related bits
17221         into the now-always-generated selinux/selinux.h file.
17222         * doc/glibc-functions/lgetfilecon.texi: New file.
17223         * doc/glibc-functions/fgetfilecon.texi: New file.
17224         * doc/glibc-functions/getfilecon.texi: New file.
17225         * doc/glibc-functions/getfilecon-desc.texi: New file.
17226         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17227         which to pull in the new files.
17228         * MODULES.html.sh (Misc): Add selinux-h.
17229
17230 2009-10-08  Jim Meyering  <meyering@redhat.com>
17231
17232         unistd: fix comment typo
17233         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17234
17235 2009-10-08  Eric Blake  <ebb9@byu.net>
17236
17237         areadlink: use SIZE_MAX consistently
17238         * modules/areadlink (Depends-on): Add stdint.
17239         * modules/areadlink-with-size (Depends-on): Likewise.
17240         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17241         gives NULL; drop sys/types, since unistd gives size_t; and add
17242         stdint for SIZE_MAX.
17243         (SIZE_MAX): Rely on headers.
17244         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17245         and add stdint.
17246         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17247         (SIZE_MAX): Likewise.
17248         (INITIAL_BUF_SIZE): Turn into enum.
17249         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17250
17251 2009-10-08  Jim Meyering  <meyering@redhat.com>
17252
17253         areadlinkat: avoid compilation failure
17254         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17255         Fix typo in comment.
17256
17257 2009-10-07  Eric Blake  <ebb9@byu.net>
17258
17259         areadlinkat-with-size: new module
17260         * modules/areadlinkat-with-size: New module.
17261         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17262         * lib/areadlink.h (areadlinkat): Declare it.
17263         * MODULES.html.sh (File system functions): Mention it.
17264         * modules/areadlinkat-with-size-tests: New test.
17265         * tests/test-areadlinkat-with-size.c: New file.
17266
17267         xreadlinkat: new module
17268         * modules/xreadlinkat: New module.
17269         * lib/xreadlinkat.c (xreadlinkat): New file.
17270         * lib/xreadlink.h (xreadlinkat): Declare it.
17271         * MODULES.html.sh (File system functions): Mention it.
17272
17273         areadlinkat: new module
17274         * lib/at-func.c (FUNC_FAIL): New define.
17275         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17276         * modules/areadlinkat: New module.
17277         * lib/linkat.c (areadlinkat): Move...
17278         * lib/areadlinkat.c (areadlinkat): ...to new file.
17279         * lib/areadlink.h (areadlinkat): Declare it.
17280         * modules/linkat (Depends-on): Add areadlinkat.
17281         * MODULES.html.sh (File system functions): Mention it.
17282         * modules/areadlinkat-tests: New test.
17283         * tests/test-areadlinkat.c: New file.
17284
17285         areadlink, areadlink-with-size: add tests
17286         * modules/areadlink-tests: New test.
17287         * modules/areadlink-with-size-tests: Likewise.
17288         * tests/test-areadlink.h: New file.
17289         * tests/test-areadlink.c: Likewise.
17290         * tests/test-areadlink-with-size.c: Likewise.
17291
17292         maint: minor cleanups
17293         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17294         _UNUSED_PARAMETER_ instead.
17295         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17296         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17297         * modules/linkat-tests (Files): Distribute test-link.h.
17298
17299         openat, utimens: whitespace cleanup
17300         * lib/openat.c: Prefer space throughout, rather than mix of 8
17301         spaces vs. tabs.
17302         * lib/at-func.c: Likewise.
17303         * lib/utimens.c: Likewise.
17304
17305         openat: avoid using wrong fd
17306         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17307         working directory chooses same fd.
17308         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17309
17310         mkdir, mkdirat: fix cygwin 1.5.x bug
17311         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17312         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17313         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17314         bug.
17315         (gl_PREREQ_MKDIR): Delete unused macro.
17316         * modules/mkdir (Files): Track file rename.
17317         (configure.ac): Update macro name.
17318         * modules/openat (Depends-on): Add mkdir.
17319         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17320
17321         mkdir, mkdirat: add tests
17322         * modules/mkdir-tests: New test.
17323         * tests/test-mkdir.h: New file.
17324         * tests/test-mkdir.c: Likewise.
17325         * tests/test-mkdirat.c: Likewise.
17326         * modules/openat-tests (Files): Add new files.
17327         (Makefile.am): Run new test.
17328
17329 2009-10-06  Eric Blake  <ebb9@byu.net>
17330
17331         doc: tweak *at function documentation
17332         * doc/posix-functions/faccessat.texi (faccessat): Mention
17333         known issue with replacement.
17334         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17335         * doc/posix-functions/linkat.texi (linkat): Likewise.
17336         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17337         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17338         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17339         * doc/posix-functions/renameat.texi (renameat): Likewise.
17340         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17341
17342         openat: fix GNU/Hurd bug in unlinkat
17343         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17344         broken.
17345         * doc/posix-functions/unlink.texi (unlink): Document this.
17346         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17347
17348         fdopendir: fix GNU/Hurd bug
17349         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17350         allowing non-directory fds.
17351         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17353         * modules/dirent (Makefile.am): Substitute it.
17354         * lib/dirent.in.h (fdopendir): Declare replacement.
17355         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17356         * tests/test-fdopendir.c (main): Test something other than
17357         /dev/null, since on Hurd that behaves like a directory.
17358
17359         test-symlink: port to GNU/Hurd
17360         * tests/test-symlink.h (test_symlink): Relax expected errno.
17361
17362         doc: tweak more cygwin information
17363         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17364         now compatible with glibc.
17365         * doc/posix-functions/getopt.texi (getopt): Likewise.
17366
17367         getopt-gnu: add another test
17368         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17369         guarantee behavior relied on by m4.
17370         * tests/test-getopt.c (main): Use it.
17371         * modules/getopt-posix-tests (Depends-on): Add setenv.
17372         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17373
17374         getopt: fix compilation on darwin
17375         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17376         include.
17377         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17378         Reported by Ludovic Courtès.
17379
17380 2009-10-06  Bruno Haible  <bruno@clisp.org>
17381
17382         * modules/size_max (Description): Discourage its use.
17383         Reported by Simon Josefsson.
17384
17385 2009-10-06  Jim Meyering  <meyering@redhat.com>
17386
17387         linkat: avoid compilation failure
17388         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17389
17390 2009-10-05  Eric Blake  <ebb9@byu.net>
17391
17392         linkat: support Linux 2.6.17
17393         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17394         linkat on Linux, but allow cache variable override.
17395         * lib/linkat.c (rpl_linkat): Define override.
17396         * modules/linkat (Depends-on): Add symlinkat.
17397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17398         * modules/unistd (Makefile.am): Substitute it.
17399         * lib/unistd.in.h (linkat): Declare replacement.
17400         Reported by Pádraig Brady.
17401
17402         quotearg: port test to systems with C.UTF-8 locale
17403         * tests/test-quotearg.c (struct result_strings): Add another
17404         member, differentiating between C.ASCII and C.UTF-8 handling.
17405         (compare_strings): Add parameter.
17406         (main): Adjust all callers.
17407
17408         getopt: avoid clash with FreeBSD _getopt_internal
17409         * lib/getopt.in.h (_getopt_internal): Override the name.
17410         * lib/getopt_int.h (includes): Pick up any overrides.
17411         Reported by Reuben Thomas.
17412
17413         hash: allow C89 compilation
17414         * lib/hash.c (check_tuning): Move declaration before statement.
17415         Reported by Reuben Thomas.
17416
17417 2009-10-05  Karl Berry  <karl@gnu.org>
17418
17419         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17420
17421 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17422             Bruno Haible  <bruno@clisp.org>
17423
17424         * lib/uname.c (uname): Use a table-driven algorithm to compute
17425         Windows NT versions.
17426
17427 2009-10-04  Bruno Haible  <bruno@clisp.org>
17428
17429         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17430         program_invocation_short_name.
17431         * modules/progname (configure.ac): Test for presence of
17432         program_invocation_short_name.
17433         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17434
17435 2009-10-04  Bruno Haible  <bruno@clisp.org>
17436
17437         * lib/progname.c (set_program_name): Fix comment.
17438         Reported by Jim Meyering.
17439
17440 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17441             Bruno Haible  <bruno@clisp.org>
17442
17443         * lib/uname.c: Include <string.h>.
17444         (uname): Do only one call to GetVersionEx in the common case.
17445
17446 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17447             Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17450         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17451         (uname): Add support for Windows CE and various non-x86 CPU types.
17452
17453 2009-10-03  Bruno Haible  <bruno@clisp.org>
17454
17455         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17456         invocation to tests/configure.ac.
17457         Reported by Ian Beckwith <ianb@erislabs.net>.
17458
17459 2009-10-02  Eric Blake  <ebb9@byu.net>
17460
17461         fchdir: avoid compiler warning
17462         * lib/fchdir.c (canonicalize_file_name)
17463         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17464
17465         test-open: support mingw errno values
17466         * tests/test-open.h (test_open): Relax test.
17467         * tests/test-fopen.h (test_fopen): Likewise.
17468         * tests/test-openat-safer.c (main): Likewise.
17469
17470         open: fix opening directory on mingw
17471         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17472
17473         test-open: on GNU/Hurd, /dev/null is a directory
17474         * tests/test-fopen.h (main): Rename...
17475         (test_fopen): ...to this.  Use a guaranteed non-directory when
17476         confirming open behavior on trailing slash.
17477         * tests/test-openat-safer.c (main): Likewise.
17478         * tests/test-open.h (main): Likewise....
17479         (test_open): ...to this.
17480         * tests/test-fopen.c (main): Adjust caller.
17481         * tests/test-fopen-safer.c (main): Likewise.
17482         * tests/test-open.c (main): Likewise.
17483         * tests/test-fcntl-safer.c (main): Likewise.
17484         Reported by Samuel Thibault.
17485
17486         rename, fchdir: don't ignore chdir failure
17487         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17488         * lib/rename.c (rpl_rename) [W32]: Likewise.
17489         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17490         an empty destination directory if source cannot be renamed,
17491         although there is still possibility for failure.
17492         * doc/posix-functions/rename.texi (rename): Document the race.
17493         Reported by Jim Meyering.
17494
17495         maint: cleanup whitespace in recent commits
17496         * lib/rename.c (rpl_rename): Remove tabs.
17497         * tests/test-link.h (test_link): Likewise.
17498         * lib/fchdir.c (get_name): Likewise.
17499         Reported by Jim Meyering.
17500
17501 2009-10-02  Ben Pfaff  <blp@gnu.org>
17502
17503         relocatable-prog-wrapper: Add missing dependency on
17504         double-slash-root.
17505         * modules/relocatable-prog-wrapper: Add dependency.
17506         Reported by Ian Beckwith <ianb@erislabs.net>.
17507
17508 2009-10-02  Eric Blake  <ebb9@byu.net>
17509
17510         renameat: fix Solaris bugs
17511         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17512         needed fixing.
17513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17514         * modules/stdio (Makefile.am): Substitute it.
17515         * lib/stdio.in.h (renameat): Declare replacement.
17516         * lib/renameat.c (rpl_renameat): Implement fix.
17517
17518         renameat: new module
17519         * modules/renameat: New file.
17520         * lib/renameat.c (renameat): Likewise.
17521         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17523         * modules/stdio (Makefile.am): Substitute them.
17524         * lib/stdio.in.h (renameat): Declare it.
17525         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17526         * doc/posix-functions/renameat.texi (renameat): Likewise.
17527         * modules/renameat-tests: New test.
17528         * tests/test-renameat.c: Likewise.
17529
17530         rename: fix mingw bugs
17531         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17532         directory overwrite bugs.
17533
17534         rename: fix another cygwin 1.5 bug
17535         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17536         checks.
17537         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17538         unnecessary cygwin workarounds.  Also work around bug with moving
17539         full directory onto an empty one.
17540         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17541
17542         rename-dest-slash: merge into rename module
17543         * modules/rename-dest-slash (Status): Mark obsolete.
17544         (Depends-on): Add rename.
17545         (Files): Let rename do it all.
17546         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17547         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17548         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17549         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17550         * lib/rename.c (rpl_rename): Update comments.
17551
17552         rename: fix cygwin 1.5.x bugs
17553         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17554         * lib/rename.c (rpl_rename): Work around them.
17555         * modules/rename (Depends-on): Add same-inode.
17556
17557         rename: fix Solaris 10 bug
17558         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17559         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17560         was the only bug.
17561
17562         rename: fix Solaris 9 bug
17563         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17564         on non-directory.  Avoid calling exit.
17565         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17566         strdup.
17567         * modules/rename-tests (Depends-on): Drop lstat.
17568         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17569         (gl_PREREQ_RENAME): Delete unused macro.
17570
17571         rename-dest-slash: fix NetBSD bug
17572         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17573         links.
17574         * modules/rename-dest-slash (Depends-on): Add same-inode.
17575
17576         rename-tests: new test, exposes several platform bugs
17577         * modules/rename-tests: New file.
17578         * tests/test-rename.h: Likewise.
17579         * tests/test-rename.c: Likewise.
17580         * doc/posix-functions/rename.texi (rename): Improve documentation,
17581         including bugs that will eventually be fixed in gnulib.
17582
17583 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17584
17585         * lib/uname.c: Include <stdlib.h>
17586         (uname): Assume version info is available.
17587
17588 2009-10-02  Jim Meyering  <meyering@redhat.com>
17589
17590         gnu-web-doc-update: correct --help output
17591         * build-aux/gnu-web-doc-update: Make --help output relevant.
17592
17593         gnu-web-doc-update: add standard options
17594         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17595
17596         gnu-web-doc-update: New module.
17597         Use this script to automatically update the on-line web documentation
17598         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17599         * modules/gnu-web-doc-update: New file, from coreutils.
17600         * build-aux/gnu-web-doc-update: New script.
17601
17602 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17603
17604         link: LoadLibrary is not needed.
17605         * lib/link.c: Use GetModuleHandle.
17606
17607 2009-10-01  Eric Blake  <ebb9@byu.net>
17608
17609         getopt: bump serial number
17610         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17611         change.
17612
17613         tests: tighten link, rmdir, and remove tests
17614         * tests/test-link.h (includes): No need to use <config.h> here.
17615         Clean up if directory hard link was created, otherwise test for
17616         trailing '.'.
17617         * tests/test-linkat.c (main): Simplify.
17618         * tests/test-remove.c (main): Enhance test for trailing '.'.
17619         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17620
17621 2009-10-01  Jim Meyering  <meyering@redhat.com>
17622
17623         maint.mk: requiring "make major" was annoying, for a "minor" release.
17624         What is intended is "stable", to contrast with alpha and beta,
17625         so require "make stable", not "make major".
17626         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17627         (get_tool_versions): Likewise.
17628         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17629
17630 2009-09-30  Ben Pfaff  <blp@gnu.org>
17631
17632         Fix broken build of replacement for Windows tmpfile().
17633         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17634         flags argument added along with the 'mkostemp' module.
17635
17636 2009-09-28  Bruno Haible  <bruno@clisp.org>
17637
17638         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17639         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17640         to 'remove_elt'.
17641         (gl_list_remove): Update.
17642         * lib/gl_list.c (gl_list_remove): Update.
17643         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17644         to 'remove_elt'.
17645         (gl_oset_remove): Update.
17646         * lib/gl_list.c (gl_oset_remove): Update.
17647         Reported by Eric Blake.
17648
17649 2009-09-28  Eric Blake  <ebb9@byu.net>
17650
17651         doc: mention yet more cygwin 1.7 status
17652         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17653         cygwin.
17654         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17655         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17656
17657         argp: fix test failure
17658         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17659         that are not upper-case.  Pass correct range to tolower.
17660
17661 2009-09-27  Jim Meyering  <meyering@redhat.com>
17662
17663         test-yesno: work around sparc-dash here-document infelicity
17664         Without this change, the literal \177 byte in a here document
17665         would make dash 0.5.5.1-3 access uninitialized memory.
17666         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17667         Instead, use a marker, "@", and filter through tr to create the desired
17668         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17669
17670 2009-09-27  Bruno Haible  <bruno@clisp.org>
17671
17672         Disable untested support for new flavours of ACLs on AIX.
17673         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17674         progress.
17675         * lib/set-mode-acl.c (qset_acl): Likewise.
17676
17677 2008-12-07  Bruno Haible  <bruno@clisp.org>
17678
17679         Add support for new flavours of ACLs on AIX. (Untested.)
17680         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17681         (file_has_acl): Add support for newer AIX.
17682         * lib/set-mode-acl.c (qset_acl): Likewise.
17683         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17684         Rainer Tammer <tammer@tammer.net>.
17685
17686 2009-09-26  Eric Blake  <ebb9@byu.net>
17687
17688         argp: fix compilation of getopt
17689         * lib/getopt.in.h (includes): Use different guard than glibc.
17690         Reported by Sergey Poznyakoff.
17691
17692         doc: mention more cygwin 1.7 status
17693         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17694         bug.
17695         * doc/posix-functions/execl.texi (execl): Likewise.
17696         * doc/posix-functions/execle.texi (execle): Likewise.
17697         * doc/posix-functions/execlp.texi (execlp): Likewise.
17698         * doc/posix-functions/execv.texi (execv): Likewise.
17699         * doc/posix-functions/execve.texi (execve): Likewise.
17700         * doc/posix-functions/execvp.texi (execvp): Likewise.
17701         * doc/glibc-functions/canonicalize_file_name.texi
17702         (canonicalize_file_name): Cygwin 1.7 now provides this.
17703         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17704         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17705         on AT_SYMLINK_NOFOLLOW.
17706
17707 2009-09-24  Eric Blake  <ebb9@byu.net>
17708
17709         test-linkat: make test more robust
17710         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17711
17712         getopt: fix inclusion guards for cygwin
17713         * modules/getopt-posix (Depends-on): Add include-next.
17714         (Makefile.am): Substitute more items in replacement header.
17715         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17716         <getopt.h>.
17717         * lib/getopt.in.h (includes): Use split inclusion guard, and
17718         prefer <getopt.h> over include <unistd.h> when one is present.
17719         (option): Also override name of 'struct option'.
17720
17721         same-inode: revert prior change; it is not yet ready
17722         * NEWS: Undo mention of this change.
17723         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17724         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17725         * lib/cycle-check.c (cycle_check): Likewise.
17726         * lib/same.c (same_name): Likewise.
17727         * lib/at-func2.c (at_func2): Likewise.
17728
17729 2009-09-23  Eric Blake  <ebb9@byu.net>
17730
17731         linkat: new module
17732         * modules/linkat: New file.
17733         * lib/at-func2.c (at_func2): Likewise.
17734         * lib/linkat.c (linkat): Likewise.
17735         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17736         * lib/openat-priv.h (at_func2): Add declaration.
17737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17738         * modules/unistd (Makefile.am): Substitute them.
17739         * lib/unistd.in.h (linkat): Declare it.
17740         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17741         * doc/posix-functions/linkat.texi (linkat): Likewise.
17742         * doc/posix-functions/link.texi (link): Tweak wording.
17743         * tests/test-link.c (main): Move guts...
17744         * tests/test-link.h (test_link): ...into new file.
17745         * modules/linkat-tests: New test.
17746         * tests/test-linkat.c: Likewise.
17747         * modules/link-tests (Files): Ship new file.
17748         (Depends-on): Add stdbool.
17749
17750         dirname: add library-safe mdir_name
17751         * lib/dirname.h (mdir_name): New prototype.
17752         * lib/dirname.c (dir_name): Move guts...
17753         (mdir_name): ...to new function that avoids xalloc_die.
17754
17755         fchdir: another mingw fix
17756         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17757         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17758         on mingw (where it has not yet been ported), and make it optional
17759         elsewhere.
17760         (_gl_register_fd): Use it.
17761
17762         same-inode: make SAME_INODE tri-state, to port to mingw
17763         * NEWS: Mention this change.
17764         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17765         st_ino always being 0.
17766         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17767         * lib/cycle-check.c (cycle_check): Likewise.
17768         * lib/same.c (same_name): Likewise.
17769
17770         lstat: avoid mingw compilation error
17771         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17772         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17773         lstat ourselves.
17774         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17775         was adequate.
17776         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17777         the checks for lstat.
17778         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17779
17780         link: fix test failure on Solaris 9
17781         * lib/link.c (rpl_link): Don't assume link will catch bogus
17782         trailing slash on source.
17783
17784         test-symlinkat: enhance test
17785         * tests/test-readlink.c (main): Move guts...
17786         * tests/test-readlink.h (test_readlink): ...into new file.
17787         * tests/test-symlink.c (main): Move guts...
17788         * tests/test-symlink.h (test_symlink): ...into new file.
17789         * tests/test-symlinkat.c (main): Use new files for further
17790         coverage.
17791         (do_symlink, do_readlink): New helper functions.
17792         * modules/symlink-tests (Files): Ship new file.
17793         (Depends-on): Add stdbool.
17794         * modules/readlink-tests (Files): Ship new file.
17795         (Depends-on): Add stdbool.
17796         * modules/symlinkat-tests (Files): Use new files.
17797
17798 2009-09-23  Eric Blake  <ebb9@byu.net>
17799
17800         readlink: document portability issue with symlink length
17801         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17802         systems have bogus st_size on symlinks, and mention the
17803         areadlink-with-size module.
17804         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17805         * doc/posix-functions/readlink.texi (readlink): Mention the
17806         areadlink module, and ERANGE failure.
17807         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17808         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17809
17810         readlink: fix Solaris 9 bug with trailing slash
17811         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17812         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17813         * doc/posix-functions/readlink.texi (readlink): Document this.
17814         * modules/readlink-tests: New test.
17815         * tests/test-readlink.c: Likewise.
17816
17817         readlink: fix cygwin 1.5.x bug with return type
17818         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17819         * lib/unistd.in.h (readlink): Use ssize_t.
17820         * lib/readlink.c (readlink): Likewise.
17821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17822         * modules/unistd (Makefile.am): Substitute it.
17823         * lib/unistd.in.h (readlink): Declare replacement.
17824         * doc/posix-functions/readlink.texi (readlink): Document this.
17825
17826         symlink: use throughout gnulib
17827         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17828         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17829         symlink is not used.
17830         * modules/symlinkat (Depends-on): Add symlink.
17831         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17832         * modules/canonicalize-tests (Depends-on): Likewise.
17833         * modules/lstat-tests (Depends-on): Likewise.
17834         * modules/openat-tests (Depends-on): Likewise.
17835         * modules/remove-tests (Depends-on): Likewise.
17836         * modules/rmdir-tests (Depends-on): Likewise.
17837         * modules/unlink-tests (Depends-on): Likewise.
17838         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17839         * tests/test-canonicalize.c (symlink): Likewise.
17840         * tests/test-fstatat.c (symlink): Likewise.
17841         * tests/test-lstat.c (symlink): Likewise.
17842         * tests/test-remove.c (symlink): Likewise.
17843         * tests/test-rmdir.c (symlink): Likewise.
17844         * tests/test-unlink.c (symlink): Likewise.
17845         * tests/test-unlinkat.c (symlink): Likewise.
17846
17847         symlink: new module, for Solaris 9 bug
17848         * modules/symlink: New file.
17849         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17850         * lib/symlink.c: Likewise.
17851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17852         * modules/unistd (Makefile.am): Substitute them.
17853         * lib/unistd.in.h (symlink): Declare replacement.
17854         * MODULES.html.sh (File system functions): Mention it.
17855         * doc/posix-functions/symlink.texi (symlink): Likewise.
17856         * modules/symlink-tests: New test.
17857         * tests/test-symlink.c: Likewise.
17858
17859 2009-09-23  Bruno Haible  <bruno@clisp.org>
17860
17861         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17862         when needed.
17863         Test case: gnulib-tool --import --with-tests atexit inttypes.
17864         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17865
17866 2009-09-23  Bruno Haible  <bruno@clisp.org>
17867
17868         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17869         subcommand, not in a subshell.
17870
17871 2009-09-22  Eric Blake  <ebb9@byu.net>
17872
17873         unistd: sort replacement declarations
17874         * lib/unistd.in.h: Sort declarations.
17875
17876         open, openat: minor optimization
17877         * lib/open.c (open): If open succeeded, len is non-zero.
17878         * lib/openat.c (rpl_openat): Likewise.
17879
17880         link-follow: ensure correct result
17881         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17882         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17883         distinguish between possible failures.
17884
17885 2009-09-21  Eric Blake  <ebb9@byu.net>
17886
17887         fts: avoid compiler warning
17888         * lib/fts.c (dirent_inode_sort_may_be_useful)
17889         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17890
17891 2009-09-19  Bruno Haible  <bruno@clisp.org>
17892
17893         * lib/progreloc.c (canonicalize_file_name): New declaration.
17894
17895 2009-09-19  Eric Blake  <ebb9@byu.net>
17896
17897         link: fix quoting
17898         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17899
17900         openat: fix openat bugs on Solaris 9
17901         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17902         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17903         * modules/openat (Depends-on): Add open.
17904         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17905         * modules/fcntl-h (Makefile.am): Substitute it.
17906         * lib/fcntl.in.h (openat): Declare replacement.
17907         * doc/posix-functions/openat.texi (openat): Document this.
17908
17909         openat: move fstatat and unlinkat into correct files
17910         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17911         compiled.
17912         * lib/openat.c (fstatat, unlinkat): Move...
17913         * lib/fstatat.c (fstatat): ...into correct files.
17914         * lib/unlinkat.c (unlinkat): Likewise.
17915
17916         openat: fix unlinkat bugs on Solaris 9
17917         * lib/unlinkat.c (unlinkat): New file.
17918         * modules/openat (Depends-on): Add unlink.
17919         (Files): Distribute it.
17920         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17921         trailing slash behavior is broken.
17922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17923         * modules/unistd (Makefile.am): Substitute it.
17924         * lib/unistd.in.h (unlinkat): Declare replacement.
17925         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17926
17927         openat: fix fstatat bugs on Solaris 9
17928         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17929         stat.
17930         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17931
17932         test-unlinkat: enhance test, to expose Solaris 9 bug
17933         * tests/test-unlink.c (main): Factor guts...
17934         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17935         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17936         * tests/test-rmdir.c (main): Adjust caller.
17937         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17938         (unlinker): New helper function.
17939         (rmdirat): Enhance check.
17940         * modules/rmdir-tests (Depends-on): Add stdbool.
17941         * modules/unlink-tests (Depends-on): Likewise.
17942         (Files): Add test-unlink.h.
17943         * modules/openat-tests (Files): Likewise.
17944         (Depends-on): Add unlinkdir.
17945
17946         test-fstatat: new test, to expose Solaris 9 bugs
17947         * tests/test-stat.c (main): Factor guts...
17948         * tests/test-stat.h (test_stat_func): ...into new file.
17949         * tests/test-lstat.c (main): Factor guts...
17950         * tests/test-lstat.h (test_lstat_func): ...into new file.
17951         * tests/test-fstatat.c: New file.
17952         * modules/stat-tests (Files): Add test-stat.h.
17953         * modules/lstat-tests (Files): Add test-lstat.h.
17954         (Depends-on): Add stdbool.
17955         * modules/openat-tests (Depends-on): Add pathmax.
17956         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17957         (Makefile.am): Run new test.
17958
17959         remove: new module, for mingw and Solaris 9 bugs
17960         * modules/remove: New file.
17961         * lib/remove.c: Likewise.
17962         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17964         * modules/stdio (Makefile.am): Use them.
17965         * lib/stdio.in.h (remove): Declare replacement.
17966         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17967         * doc/posix-functions/remove.texi (remove): Likewise.
17968         * modules/remove-tests: New test.
17969         * tests/test-remove.c: Likewise.
17970
17971         unlink: new module, for Solaris 9 bug
17972         * modules/unlink: New file.
17973         * lib/unlink.c: Likewise.
17974         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17976         * modules/unistd (Makefile.am): Use them.
17977         * lib/unistd.in.h (stat): Declare replacement.
17978         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17979         * doc/posix-functions/unlink.texi (unlink): Likewise.
17980         * modules/unlink-tests: New test.
17981         * tests/test-unlink.c: Likewise.
17982
17983         lstat: fix Solaris 9 bug
17984         * lib/lstat.c (lstat): Also check for trailing slash on
17985         non-symlink, non-directories.  Use stat module to simplify logic.
17986         * doc/posix-functions/lstat.texi (lstat): Document it.
17987         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17988         (configure.ac): Check for symlink.
17989         * tests/test-lstat.c (main): Add more tests.
17990
17991         stat: add as dependency to other modules
17992         * modules/chown (Depends-on): Add stat.
17993         * modules/euidaccess (Depends-on): Likewise.
17994         * modules/fchdir (Depends-on): Likewise.
17995         * modules/isdir (Depends-on): Likewise.
17996         * modules/link (Depends-on): Likewise.
17997         * modules/lstat (Depends-on): Likewise.
17998         * modules/mkdir-p (Depends-on): Likewise.
17999         * modules/modechange (Depends-on): Likewise.
18000         * modules/open (Depends-on): Likewise.
18001         * modules/readlink (Depends-on): Likewise.
18002         * modules/same (Depends-on): Likewise.
18003
18004         stat: fix Solaris 9 bug
18005         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
18006         slash.
18007         * lib/stat.c (rpl_stat): Work around it.
18008         * doc/posix-functions/stat.texi (stat): Update documentation.
18009
18010         stat: new module, for mingw bug
18011         * modules/stat: New file.
18012         * lib/stat.c: Likewise.
18013         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18015         * modules/sys_stat (Makefile.am): Use them.
18016         * lib/sys_stat.in.h (stat): Declare replacement.
18017         * lib/openat.c (fstatat): Deal with lstat and stat being function
18018         macros.
18019         * modules/openat (Depends-on): Add inline.
18020         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18021         * doc/posix-functions/stat.texi (stat): Likewise.
18022         * modules/stat-tests: New test.
18023         * tests/test-stat.c: Likewise.
18024
18025 2009-09-19  Jim Meyering  <meyering@redhat.com>
18026
18027         syntax-check: detect unnecessary inclusion of canonicalize.h
18028         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
18029
18030 2009-09-19  Eric Blake  <ebb9@byu.net>
18031
18032         canonicalize-lgpl: adjust clients to use correct header
18033         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18034         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
18035         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
18036         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
18037         * lib/progreloc.c (includes): Likewise.
18038
18039 2009-09-19  Jim Meyering  <meyering@redhat.com>
18040
18041         test-posixtm.c: correct a comment
18042         * tests/test-posixtm.c: Correct first-line comment.
18043         Spotted by Eric Blake.
18044
18045 2009-09-16  Jim Meyering  <meyering@redhat.com>
18046
18047         posixtm-tests: make T const-correct; add a test case
18048         * tests/test-posixtm.c (T): Declare const.
18049         Add a test for -(2^31+1).
18050         Remove useless can-succeed-only-in-2002 test.
18051
18052         posixtm-tests: adjust the sole failing test
18053         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
18054         expected output matches what mktime now produces.  Cross-checked via
18055         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
18056
18057         posixtm: move #ifdef'd tests into a new module
18058         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
18059         * tests/test-posixtm.c: ... this new file.
18060         * modules/posixtm-tests: New module.
18061
18062 2009-09-19  Eric Blake  <ebb9@byu.net>
18063
18064         openat: simplify use of at-func.c
18065         * lib/at-func.c (includes): Include prerequisites here, to
18066         simplify requirements on client files.
18067         * lib/openat-priv.h: Add double-inclusion guard.
18068         * lib/faccessat.c (includes): Simplify.
18069         * lib/fchmodat.c (includes): Likewise.
18070         * lib/fchownat.c (includes): Likewise.
18071         * lib/mkdirat.c (includes): Likewise.
18072         * lib/mkfifoat.c (includes): Likewise.
18073         * lib/symlinkat.c (includes): Likewise.
18074
18075         openat: allow return of fd 0
18076         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
18077         * modules/save-cwd (Depends-on): Replace fcntl-safer with
18078         unistd-safer.
18079         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
18080         <fcntl.h>; this module does not leak fds.
18081         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
18082         must be allowed to return 0, leaving openat_safer to add the
18083         safety.
18084         (openat_permissive): Avoid writing to just-opened fd 2 if
18085         restoring the current directory fails.
18086         * lib/openat-die.c (openat_restore_fail): Add comment.
18087         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
18088         (save_cwd): Guarantee safe fd, but without use of open_safer.
18089         * tests/test-openat.c: New test.
18090         * modules/openat-tests (Files, Makefile.am): Distribute and build
18091         new file.
18092
18093         relocatable-prog-wrapper: fix build
18094         * modules/relocatable-prog-wrapper (Files): Update name of
18095         canonicalize m4 file, broken on 2009-09-17.
18096         Reported by emad hajjar <aleppos@hotmail.com>.
18097
18098 2009-09-19  Bruno Haible  <bruno@clisp.org>
18099
18100         * lib/safe-alloc.h: Use the standard header with GPL copyright.
18101         * lib/safe-alloc.c: Likewise.
18102         Reported by Ian Beckwith <ianb@erislabs.net>.
18103
18104 2009-09-18  Bruno Haible  <bruno@clisp.org>
18105
18106         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
18107         Reported by <erobles@sensacd.com.mx>.
18108
18109 2009-09-17  Eric Blake  <ebb9@byu.net>
18110
18111         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
18112         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
18113         slashes when checking if last component is missing.
18114         * tests/test-canonicalize.c (main): Test this.
18115
18116         canonicalize, canonicalize-lgpl: honor // if distinct from /
18117         * modules/canonicalize (Files): Add double-slash-root.m4.
18118         * modules/canonicalize-lgpl (Files): Likewise.
18119         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18120         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18121         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18122         fallback definition.
18123         (canonicalize_filename_mode): Use it to protect //.
18124         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18125         (__realpath): Likewise.
18126         * tests/test-canonicalize.c (main): Test this.
18127         * tests/test-canonicalize-lgpl.c (main): Likewise.
18128         * modules/canonicalize-tests (Depends-on): Add same-inode.
18129         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18130
18131         canonicalize-lgpl: fix glibc bug with trailing slash
18132         * m4/canonicalize-lgpl.m4: Move contents...
18133         * m4/canonicalize.m4: ...here.
18134         (gl_CANONICALIZE_LGPL): Factor realpath check...
18135         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18136         glibc 2.3.5 bug, fixed 2005-04-27.
18137         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18138         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18139         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18140         * modules/canonicalize-lgpl (Files): Manage file rename.
18141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18142         * modules/stdlib (Makefile.am): Substitute witness.
18143         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18144         is needed.
18145         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18146         replacement is required.
18147         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18148         * doc/glibc-functions/canonicalize_file_name.texi
18149         (canonicalize_file_name): Document this.
18150         * doc/posix-functions/realpath.texi (realpath): Likewise.
18151
18152         canonicalize-lgpl: reject non-directory with trailing slash
18153         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18154         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18155         catches failures in glibc 2.3.5.
18156         * tests/test-canonicalize.c (main): Likewise.
18157
18158         canonicalize-lgpl: use native realpath if it works
18159         * lib/canonicalize-lgpl.c (realpath): Guard with
18160         FUNC_REALPATH_WORKS.
18161         * lib/stdlib.in.h (realpath): Make declaration optional based on
18162         HAVE_REALPATH.
18163         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18164         native realpath works.
18165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18166         * modules/stdlib (Makefile.am): Substitute witness.
18167
18168         canonicalize, canonicalize-lgpl: use <stdlib.h>
18169         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18170         (Include): Mention <stdlib.h>.
18171         (configure.ac): Mention functions we provide.
18172         * modules/canonicalize (configure.ac): Likewise.
18173         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18174         realpath if canonicalize_file_name is missing.
18175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18176         * modules/stdlib (Makefile.am): Substitute witnesses.
18177         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18178         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18179         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18180         * NEWS: Document this.
18181         * doc/glibc-functions/canonicalize_file_name.texi
18182         (canonicalize_file_name): Likewise.
18183         * doc/posix-functions/realpath.texi (realpath): Likewise.
18184         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18185
18186         test-canonicalize: consolidate into single C program
18187         * tests/test-canonicalize.sh: Delete; move setup into...
18188         * tests/test-canonicalize.c (main): ...the program, making it
18189         easier to run in debugger.  Add some tests.
18190         * modules/canonicalize-tests (Files): Remove unused file.
18191         (Depends-on): Add progname.
18192         (configure.ac, Makefile.am): Simplify.
18193
18194         test-canonicalize-lgpl: consolidate into single C program
18195         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18196         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18197         easier to run in debugger.  Add some tests.
18198         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18199         (configure.ac, Makefile.am): Simplify.
18200
18201         canonicalize: avoid resolvepath
18202         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18203         unnecessary checks.
18204         * lib/canonicalize.c (includes): Simplify.
18205         (canonicalize_file_name): Drop resolvepath implementation.
18206         * modules/canonicalize (Depends-on): Drop filenamecat.
18207
18208         canonicalize: don't lose errno
18209         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18210         over calls to free.
18211
18212         canonicalize: simplify errno handling
18213         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18214         assignment.
18215
18216         canonicalize, canonicalize-lgpl: update module dependencies
18217         * modules/canonicalize (Depends-on): Add extensions, lstat,
18218         pathmax, stdlib.
18219         (Files): Drop pathmax.h.
18220         (configure.ac): Adjust macro name.
18221         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18222         lstat, stdlib, sys_stat.
18223         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18224         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18225         extensions.
18226         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18227         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18228         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18229         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18230         declaration, if available.
18231         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18232         we can rely on the readlink module.
18233         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18234         (includes): Use <unistd.h> unconditionally.
18235
18236 2009-09-17  Eric Blake  <ebb9@byu.net>
18237
18238         maint: make Include sections of modules consistent
18239         * modules/alloca: Use only header name; no need to list #include.
18240         * modules/alloca-opt: Likewise.
18241         * modules/arpa_inet: Likewise.
18242         * modules/canon-host: Likewise.
18243         * modules/configmake: Likewise.
18244         * modules/dirent: Likewise.
18245         * modules/eealloc: Likewise.
18246         * modules/environ: Likewise.
18247         * modules/fchdir: Likewise.
18248         * modules/fcntl: Likewise.
18249         * modules/fcntl-h: Likewise.
18250         * modules/gethrxtime: Likewise.
18251         * modules/gettime: Likewise.
18252         * modules/ignore-value: Likewise.
18253         * modules/inet_ntop: Likewise.
18254         * modules/inet_pton: Likewise.
18255         * modules/inttypes: Likewise.
18256         * modules/isnand-nolibm: Likewise.
18257         * modules/isnanf-nolibm: Likewise.
18258         * modules/mbchar: Likewise.
18259         * modules/mbfile: Likewise.
18260         * modules/mbiter: Likewise.
18261         * modules/mbuiter: Likewise.
18262         * modules/netdb: Likewise.
18263         * modules/netinet_in: Likewise.
18264         * modules/nproc: Likewise.
18265         * modules/pagealign_alloc: Likewise.
18266         * modules/poll: Likewise.
18267         * modules/printf-frexp: Likewise.
18268         * modules/pthread: Likewise.
18269         * modules/putenv: Likewise.
18270         * modules/random_r: Likewise.
18271         * modules/relocatable-prog: Likewise.
18272         * modules/search: Likewise.
18273         * modules/select: Likewise.
18274         * modules/selinux-h: Likewise.
18275         * modules/settime: Likewise.
18276         * modules/signal: Likewise.
18277         * modules/size_max: Likewise.
18278         * modules/socklen: Likewise.
18279         * modules/ssize_t: Likewise.
18280         * modules/stdarg: Likewise.
18281         * modules/stdbool: Likewise.
18282         * modules/stddef: Likewise.
18283         * modules/stdint: Likewise.
18284         * modules/stdio: Likewise.
18285         * modules/stdlib: Likewise.
18286         * modules/string: Likewise.
18287         * modules/strings: Likewise.
18288         * modules/sys_file: Likewise.
18289         * modules/sys_ioctl: Likewise.
18290         * modules/sys_select: Likewise.
18291         * modules/sys_socket: Likewise.
18292         * modules/sys_stat: Likewise.
18293         * modules/sys_time: Likewise.
18294         * modules/sys_times: Likewise.
18295         * modules/sys_utsname: Likewise.
18296         * modules/sys_wait: Likewise.
18297         * modules/sysexits: Likewise.
18298         * modules/time: Likewise.
18299         * modules/times: Likewise.
18300         * modules/tmpfile: Likewise.
18301         * modules/trim: Likewise.
18302         * modules/unistd: Likewise.
18303         * modules/wchar: Likewise.
18304         * modules/wctype: Likewise.
18305
18306 2009-09-17  Bruno Haible  <bruno@clisp.org>
18307
18308         Make getdate.y compile on QNX and NetBSD 5 / i386.
18309         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18310         TIME_T_FITS_IN_LONG_INT.
18311         * lib/getdate.y (long_time_t): New type.
18312         (relative_time): Change type of 'seconds' field to long_time_t.
18313         (get_date): Update types of local variables. Check against overflow
18314         during conversion from long_time_t to time_t.
18315         Reported by Matt Kraai <kraai@ftbfs.org>
18316         and Hasso Tepper <hasso@netbsd.org>.
18317
18318 2009-09-17  Bruno Haible  <bruno@clisp.org>
18319
18320         * modules/COPYING: Update copyright years.
18321         * modules/README: Likeiwse.
18322         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18323         Reported by Ian Beckwith <ianb@erislabs.net>.
18324
18325 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18326
18327         * users.txt: Update references for gnuit package.
18328
18329 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18330
18331         * m4/getdelim.m4: Fix typo in copyright line.
18332
18333 2009-09-17  Bruno Haible  <bruno@clisp.org>
18334
18335         * lib/atoll.c: Use the standard header with GPL copyright.
18336         * lib/argz.in.h: Likewise.
18337         * lib/glob.c: Likewise.
18338         * lib/glob-libc.h: Likewise.
18339         * lib/random_r.c: Likewise.
18340         * lib/siglist.h: Likewise.
18341         * lib/strsignal.c: Likewise.
18342         Reported by Ian Beckwith <ianb@erislabs.net>.
18343
18344 2009-09-17  Eric Blake  <ebb9@byu.net>
18345
18346         rmdir: ensure correct dependency order
18347         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18348
18349 2009-09-17  Bruno Haible  <bruno@clisp.org>
18350
18351         Disable assertion that fails on NetBSD 5 / i386.
18352         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18353         Reported by Sam Steingold <sds@gnu.org>
18354         and Hasso Tepper <hasso@netbsd.org>.
18355
18356 2009-09-16  Eric Blake  <ebb9@byu.net>
18357
18358         unlinkdir: port to mingw
18359         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18360         on which no one can unlink a directory.
18361
18362         stdlib: sort witness names
18363         * modules/stdlib (Makefile.am): Sort replacements.
18364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18365         * lib/stdlib.in.h: Likewise.
18366
18367         parse-duration-tests: avoid link failure
18368         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18369         LIBINTL.
18370         Reported by Tom G. Christensen.
18371
18372         openat-tests: ensure unlinkat behaves like rmdir
18373         * tests/test-rmdir.c (main): Factor guts...
18374         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18375         * modules/rmdir-tests (Files): Ship new file.
18376         * modules/openat-tests: New test.
18377         * tests/test-unlinkat.c: Likewise.
18378
18379         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18380         * modules/rmdir-errno (Status, Notice): Now obsolete.
18381
18382         rmdir: work around cygwin 1.5.x and mingw bugs
18383         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18384         * lib/rmdir.c (rmdir): Work around it.
18385         * modules/rmdir (Status, Notice): No longer obsolete.
18386         (Files): Add dos.m4.
18387         (Depends-on): Add unistd.
18388         (configure.ac): Set witnesses.
18389         (License): Relax to LGPLv2+.
18390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18391         * modules/unistd (Makefile.am): Substitute witnesses.
18392         * lib/unistd.in.h (rmdir): Declare replacement.
18393         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18394         * modules/rmdir-tests: New tests.
18395         * tests/test-rmdir.c: Likewise.
18396
18397 2009-09-15  Eric Blake  <ebb9@byu.net>
18398
18399         fchdir: improve use of replacement functions
18400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18403         REPLACE_CLOSEDIR.
18404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18405         * modules/sys_stat (Makefile.am): Substitute correct witness.
18406         * modules/dirent (Makefile.am): Likewise.
18407         * modules/unistd (Makefile.am): Likewise.
18408         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18409         * lib/unistd.in.h (dup): Likewise.
18410         * lib/sys_stat.in.h (fstat): Likewise.
18411
18412         maint: ignore gnulib-tool temp files
18413         * .gitignore: Ignore files created during gnulib-tool --test.
18414
18415 2009-09-13  Jim Meyering  <meyering@redhat.com>
18416
18417         posixtm: don't reject a time that specify "60" as the number of seconds
18418         * lib/posixtm.c (posixtime): The code to reject invalid dates
18419         would also reject a time specified with the .60 suffix.
18420         But POSIX allows that, in order to accommodate leap seconds.
18421         So don't reject it.
18422         (main): Adjust tests accordingly.
18423         * modules/posixtm (Depends-on): Add stpcpy.
18424
18425 2009-09-11  Jim Meyering  <meyering@redhat.com>
18426
18427         announce-gen: include [$release_type] in emitted Subject:
18428         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18429         e.g., [stable] in the emitted Subject: line.
18430
18431 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18432
18433         Remove obsolete macros from several modules.
18434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18435         obsolete Autoconf macros with their modern counterparts.
18436         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18437         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18438         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18439         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18440         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18441         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18443         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18444         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18445         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18446         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18447         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18448         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18449         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18450         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18451         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18452         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18453         * m4/time_r.m4 (gl_TIME_R): Likewise.
18454         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18455         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18456         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18457
18458         Fix copyright header in build-aux scripts.
18459         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18460         recommendation.
18461         * build-aux/ncftpput-ftp: Likewise.
18462         * build-aux/update-copyright: Likewise.
18463
18464 2009-09-09  Eric Blake  <ebb9@byu.net>
18465
18466         test-link: allow Linux choice of errno
18467         * tests/test-link.c (main): Relax test for alternate error.
18468
18469         strndup: fix improper m4 caching
18470         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18471         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18472         (gl_PREREQ_STRNDUP): Delete.
18473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18474         * modules/string (Makefile.am): Substitute it.
18475         * lib/string.in.h (strndup): Modernize prototype.
18476
18477         getcwd: port to mingw
18478         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18479         different from the POSIX assumptions made throughout the getcwd
18480         module; fortunately, the mingw getcwd does not need replacement.
18481         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18482         * modules/getcwd-tests: New test.
18483         * tests/test-getcwd.c: Likewise.
18484
18485         link: fix platform bugs
18486         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18487         * lib/link.c (link): Work around them.  Fix related mingw bug.
18488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18489         * modules/unistd (Makefile.am): Substitute it.
18490         * lib/unistd.in.h (link): Declare replacement.
18491         * doc/posix-functions/link.texi (link): Document this.
18492         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18493
18494         test-link: consolidate into single C program, test more cases
18495         * tests/test-link.sh: Delete.
18496         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18497         at least Cygwin and Solaris.
18498         * modules/link-tests (Files): Remove unused file.
18499         (Depends-on): Add errno, sys_stat.
18500         (Makefile.am): Simplify.
18501
18502 2009-09-08  Bruno Haible  <bruno@clisp.org>
18503
18504         Work around towlower, towupper bug on mingw.
18505         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18506         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18507         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18508         * doc/posix-functions/towupper.texi: Likewise.
18509         Reported by Eric Blake.
18510
18511 2009-09-08  Jim Meyering  <meyering@redhat.com>
18512
18513         build: don't try to run autoheader if we don't use it
18514         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18515         is not used in configure.ac.
18516
18517 2009-09-08  Eric Blake  <ebb9@byu.net>
18518
18519         euidaccess: fix compilation error
18520         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18521
18522         rawmemchr: relax license
18523         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18524         okay.
18525         Reported by Jim Meyering.
18526
18527         mkfifoat: new module
18528         * modules/mkfifoat: New file.
18529         * lib/mkfifoat.c: Likewise.
18530         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18531         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18532         * modules/sys_stat (Makefile.am): Use them.
18533         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18534         * MODULES.html.sh (File system functions): Mention module.
18535         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18536         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18537         * modules/mkfifoat-tests: New test.
18538         * tests/test-mkfifoat.c: Likewise.
18539
18540         strchrnul: relax license
18541         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18542         okay.
18543         Reported by Jim Meyering.
18544
18545 2009-09-08  Eric Blake  <ebb9@byu.net>
18546
18547         fstatat: fix compilation on Solaris
18548         * lib/fstatat.c (includes): Add fcntl.h.
18549         Reported by Pádraig Brady.
18550
18551 2009-09-07  Eric Blake  <ebb9@byu.net>
18552
18553         rename: modernize replacement
18554         * modules/rename (Depends-on): Add stdio.
18555         (configure.ac): Declare witness.
18556         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18557         stdio take care of replacement.
18558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18559         * modules/stdio (Makefile.am): Substitute them.
18560         * lib/stdio.in.h (rename): Declare replacement.
18561         * lib/rename.c (includes): Allow cross-compilation to non-windows
18562         machines.
18563         * doc/posix-functions/rename.texi (rename): Improve
18564         documentation.
18565
18566         stdio: sort witness names
18567         * modules/stdio (Makefile.am): Sort replacements.
18568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18569         * lib/stdio.in.h: Likewise.
18570
18571         getcwd: minor cleanups
18572         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18573         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18574
18575         openat: provide more convenience names
18576         * modules/faccessat (configure.ac): Add C witness.
18577         * lib/unistd.in.h (readlinkat): Fix typo.
18578         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18579         convenience wrappers.
18580         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18581         wrappers in syntax checks.
18582
18583 2009-09-06  Eric Blake  <ebb9@byu.net>
18584
18585         doc: fix comments in recent patches
18586         * lib/faccessat.c: Mention correct function.
18587         * lib/fchmodat.c: Likewise.
18588         * lib/fchownat.c: Likewise.
18589         * lib/symlinkat.c: Likewise.
18590         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18591         constants.
18592
18593         faccessat, symlinkat: continue cleanup of previous patch
18594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18595         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18596         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18598         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18599         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18600         set.
18601
18602 2009-09-06  Bruno Haible  <bruno@clisp.org>
18603
18604         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18605         (fstatat): Declare if GNULIB_FSTATAT is set.
18606         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18607         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18608         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18609         * modules/fcntl-h (Files): Remove m4/openat.m4.
18610         * modules/sys_stat (Files): Remove m4/openat.m4.
18611         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18612         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18613         * modules/unistd (Files): Remove m4/openat.m4.
18614         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18615         GNULIB_OPENAT.
18616         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18617         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18618         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18619         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18620         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18621         gl_OPENAT_DEFAULTS.
18622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18623         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18624         Don't require gl_OPENAT_DEFAULTS.
18625         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18626         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18627         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18628         (gl_OPENAT_DEFAULTS): Remove macro.
18629
18630 2009-09-06  Bruno Haible  <bruno@clisp.org>
18631
18632         * modules/openat (configure.ac): Remove unneeded witness.
18633
18634 2009-09-06  Bruno Haible  <bruno@clisp.org>
18635
18636         Set errno to ENOSYS when a function is entirely unsupported.
18637         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18638         EOPNOTSUPP.
18639         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18640         * modules/chown (Depends-on): Remove errno.
18641
18642 2009-09-06  Bruno Haible  <bruno@clisp.org>
18643
18644         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18645
18646 2009-09-06  Bruno Haible  <bruno@clisp.org>
18647
18648         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18649
18650 2009-09-06  Ben Pfaff  <blp@gnu.org>
18651             Bruno Haible  <bruno@clisp.org>
18652
18653         Work around a glibc bug in strtok_r.
18654         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18655         Undefine if UNDEFINE_STRTOK_R is set.
18656         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18658         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18659         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18660         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18661         UNDEFINE_STRTOK_R.
18662         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18663
18664 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18665
18666         exclude: minor fix
18667         * lib/exclude.c: Include wctype.h
18668
18669 2009-09-06  Akim Demaille  <demaille@gostai.com>
18670
18671         bootstrap: improve error message
18672         * build-aux/bootstrap (find_tool): Upon failure, report the list
18673         of candidates.
18674         Honor the initial value of the envvar.
18675
18676 2009-09-05  Eric Blake  <ebb9@byu.net>
18677
18678         symlinkat: new module
18679         * modules/symlinkat: New file.
18680         * lib/symlinkat.c: Likewise.
18681         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18683         * modules/unistd (Makefile.am): Use them.
18684         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18685         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18686         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18687         * MODULES.html.sh (File system functions): Mention module.
18688         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18689         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18690         * modules/symlinkat-tests: New test.
18691         * tests/test-symlinkat.c: Likewise.
18692
18693         test-openat-safer: add more checks
18694         * tests/test-openat-safer.c (main): Check more code paths.
18695
18696 2009-09-05  Jim Meyering  <meyering@redhat.com>
18697
18698         syntax-check: detect unnecessary inclusion of openat.h
18699         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18700
18701 2009-09-05  Bruno Haible  <bruno@clisp.org>
18702
18703         Support towlower, towupper.
18704         * doc/posix-functions/towlower.texi: Mention module wctype.
18705         * doc/posix-functions/towupper.texi: Likewise.
18706         * lib/wctype.in.h (towlower, towupper): New functions.
18707         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18708         (ASSERT): New macro.
18709         (e): New variable.
18710         (main): Test also towlower, towupper. Test WEOF argument.
18711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18712
18713 2009-09-05  Bruno Haible  <bruno@clisp.org>
18714
18715         Fix conversion behaviour when the input is invalid.
18716         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18717         mark occurring in first pass of indirect conversion.
18718         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18719         input.
18720         Found by clang's static analyzer.
18721
18722 2009-09-05  Bruno Haible  <bruno@clisp.org>
18723
18724         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18725         where direct conversion is possible.
18726
18727 2009-09-04  Eric Blake  <ebb9@byu.net>
18728
18729         openat: fail with ENOENT on empty name
18730         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18731         buffer.
18732
18733         link-follow: fix logic bug in prior patch
18734         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18735         reversed sense of yes and no in prior patch.  Avoid confusing
18736         compilation failure with desired semantics.
18737
18738         link-follow: accomodate mingw and cross-compilation
18739         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18740         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18741         cross-compilation results to -1, to make linkat easier to
18742         implement when cross-compiling.  Trivially support mingw.
18743         * modules/link-follow (configure.ac): Call new name.
18744         * NEWS: Mention this.
18745
18746 2009-09-03  Eric Blake  <ebb9@byu.net>
18747
18748         faccessat: compile replacement
18749         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18750         needed.
18751
18752         fts: fix compilation error
18753         * lib/fts.c (includes): Re-add "openat.h", for
18754         openat_needs_fchdir.
18755
18756         faccessat: new module
18757         * modules/faccessat: New file.
18758         * lib/faccessat.c: Likewise.
18759         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18761         * modules/unistd (Makefile.am): Use it.
18762         * lib/unistd.in.h (faccessat): Declare it.
18763         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18764         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18765         * MODULES.html.sh (File system functions): Mention it.
18766         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18767         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18768
18769         euidaccess: prefer POSIX over non-standard implementation
18770         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18771         * lib/euidaccess.c (euidaccess): Use it if available.
18772
18773         openat: make template easier to use
18774         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18775         AT_FUNC_F2 to be undefined.
18776         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18777         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18778         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18779         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18780         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18781         Likewise.
18782         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18783         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18784         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18785         Likewise.
18786
18787         openat: declare in POSIX headers
18788         * NEWS: Mention this.
18789         * modules/openat (configure.ac): Declare witnesses.
18790         (Depends-on): Add fcntl-h, sys_stat, unistd.
18791         (Include): Mention correct headers.
18792         * modules/fcntl-h (Depends-on): Add link-warning.
18793         (Files): Add openat.m4.
18794         (Makefile.am): Substitute witnesses.
18795         * modules/sys_stat (Files, Makefile.am): Likewise.
18796         * modules/unistd (Files, Makefile.am): Likewise.
18797         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18798         (gl_OPENAT_DEFAULTS): New macro.
18799         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18801         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18802         (SYS_STAT_H): Remove unused variable.
18803         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18804         * lib/fcntl--.h (includes): Remove unneeded header.
18805         * lib/openat-safer.c (includes): Likewise.
18806         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18807         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18808         appropriate headers.
18809         (__OPENAT_PREFIX): Delete.
18810         * lib/fcntl.in.h (openat): Provide declaration.
18811         (AT_FDCWD): Fix Solaris bug.
18812         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18813         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18814         * lib/fchmodat.c (includes):  Adjust to find declaration.
18815         * lib/fchownat.c (includes): Likewise.
18816         * lib/mkdirat.c (includes): Likewise.
18817         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18818         still visible.
18819
18820 2009-09-02  Eric Blake  <ebb9@byu.net>
18821
18822         errno: use consistently
18823         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18824         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18825         * lib/canonicalize.c (ELOOP): Likewise.
18826         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18827         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18828         * lib/lchown.c (EOPNOTSUPP): Likewise.
18829         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18830         * lib/savewd.c (ESTALE): Likewise.
18831         * lib/settime.c (ENOSYS): Likewise.
18832         * lib/utimens.c (ENOSYS): Likewise.
18833         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18834         * lib/chdir-safer.c (ELOOP): Likewise.
18835         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18836         * modules/c-stack (Depends-on): Add errno.
18837         * modules/canonicalize (Depends-on): Likewise.
18838         * modules/chdir-safer (Depends-on): Likewise.
18839         * modules/fdopendir (Depends-on): Likewise.
18840         * modules/inet_ntop (Depends-on): Likewise.
18841         * modules/inet_pton (Depends-on): Likewise.
18842         * modules/lchown (Depends-on): Likewise.
18843         * modules/openat (Depends-on): Likewise.
18844         * modules/savewd (Depends-on): Likewise.
18845         * modules/settime (Depends-on): Likewise.
18846         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18847
18848         fts: avoid leaking fds
18849         * modules/fts (Depends-on): Add cloexec.
18850         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18851         flag.
18852
18853         fts: make directory fds more robust
18854         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18855         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18856
18857         backupfile, chdir-long, fts, savedir: make safer
18858         * lib/backupfile.c (includes): Use "dirent--.h", since
18859         numbered_backup can write to stderr during readdir.
18860         * lib/savedir.c (includes): Likewise.
18861         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18862         emulation can write to stderr on failure.
18863         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18864         * lib/getcwd.c: Document why opendir_safer is unused.
18865         * lib/glob.c: Likewise.
18866         * lib/scandir.c: Likewise.
18867         * lib/openat-proc.c: Likewise, for open_safer.
18868         * modules/backupfile (Depends-on): Add dirent-safer.
18869         * modules/savedir (Depends-on): Likewise.
18870         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18871         * modules/chdir-long (Depends-on): Add openat-safer.
18872
18873         openat-safer: new module
18874         * modules/openat-safer: New file.
18875         * lib/openat-safer.c: Likewise.
18876         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18877         * lib/fcntl-safer.h (openat_safer): Declare.
18878         * lib/fcntl--.h (openat): Override.
18879         * MODULES.html.sh (File descriptor based I/O): Mention it.
18880         * lib/openat.h: Add double-inclusion guards.
18881         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18882         "fcntl--.h", so we can implement openat.
18883         * modules/openat-safer-tests: New test.
18884         * tests/test-openat-safer.c: New file.
18885
18886         dirent-safer: new module
18887         * modules/dirent-safer: New file.
18888         * lib/dirent--.h: Likewise.
18889         * lib/dirent-safer.h: Likewise.
18890         * lib/opendir-safer.c: Likewise.
18891         * m4/dirent-safer.m4: Likewise.
18892         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18893         * modules/dirent-safer-tests: New test.
18894         * tests/test-dirent-safer.c: New file.
18895         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18896
18897         fdopendir: optimize on mingw
18898         * lib/unistd.in.h (_gl_directory_name): New prototype.
18899         * lib/fchdir.c (_gl_directory_name): Implement it.
18900         (fchdir): Use it to simplify implementation.
18901         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18902         fchdir, when available, to avoid calling [f]chdir().
18903
18904         fdopendir: split into its own module
18905         * lib/openat.c (fdopendir): Move...
18906         * lib/fdopendir.c: ...into new file.
18907         * modules/fdopendir: New module.
18908         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18909         * modules/openat (Depends-on): Add fdopendir.
18910         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18911         fdopendir here.
18912         * modules/savedir (Depends-on): Only need fdopendir, not full
18913         openat.
18914         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18915         * lib/openat.h (fdopendir): Drop prototype.
18916         * lib/dirent.in.h (fdopendir): Provide prototype.
18917         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18918         * modules/dirent (Makefile.am): Substitute them.
18919         * MODULES.html.sh (File system functions): Mention it.
18920         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18921         * modules/fdopendir-tests: New file.
18922         * tests/test-fdopendir.c: Likewise.
18923
18924         fchdir: use more consistent macro convention
18925         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18926         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18927         REPLACE_FCHDIR, rather than relying on config.h macros.
18928         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18929         inside a single make-time REPLACE_FCHDIR block, rather than using
18930         the config.h FCHDIR_REPLACEMENT.
18931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18932         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18933         Manage fstat replacement.
18934         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18935         REPLACE_FCHDIR.
18936         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18937         (Makefile.am): Substitute REPLACE_FCHDIR.
18938         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18939         FCHDIR_REPLACEMENT.
18940         * lib/dup-safer.c (dup_safer): Likewise.
18941         * lib/dup2.c (rpl_dup2): Likewise.
18942         * lib/dup3.c (rpl_dup3): Likewise.
18943         * lib/open.c (rpl_open): Likewise.
18944
18945         fchdir: simplify error handling, and support dup3
18946         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18947         stdbool, malloc-posix, realloc-posix.
18948         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18949         (ensure_dirs_slot): Return false on allocation failure.
18950         (rpl_dup2): Delete.
18951         (_gl_register_dup): New function.
18952         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18953         (_gl_register_fd): Close fd on allocation failure.
18954         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18955         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18956         prototype.
18957         (rpl_dup2_fchdir): Delete prototype.
18958         * lib/open.c (open): Update caller.
18959         * lib/dup2.c (dup2): Track fchdir metadata.
18960         * lib/dup3.c (dup3): Likewise.
18961         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18963
18964 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18965
18966         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18967         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18968         don't pass arguments to AC_OUTPUT.
18969
18970 2009-09-02  Bruno Haible  <bruno@clisp.org>
18971
18972         * modules/mkdtemp (License): Relicense under LGPLv2+.
18973         Reported by Paolo Bonzini.
18974
18975 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18976
18977         Replace uses of obsolete autoconf macros in Jim's modules.
18978         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18979         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18980         can evoke a warning from autoconf when run with -Wobsolete
18981         enabled.  They were declared obsolete for good reasons (see
18982         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18983         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18984         should not continue using the deprecated macros.
18985         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18986         obsolete Autoconf macros with modern counterparts.
18987         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18988         * m4/dos.m4 (gl_AC_DOS): Likewise.
18989         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18991         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18992         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18993         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18994         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18995         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18996         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18997         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18998         Likewise.
18999         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19000         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19001         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
19002         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
19003         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19004         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
19005
19006 2009-09-01  Eric Blake  <ebb9@byu.net>
19007
19008         fchdir: fix off-by-one bug in previous patch
19009         * lib/fchdir.c (rpl_fstat): Use correct bounds.
19010         (_gl_unregister_fd): Delete useless if.
19011
19012 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
19013
19014         maint.mk: sort the list of syntax-check rules
19015         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
19016         easier to get a sense of progress when the rules are run sequentially
19017         and take a long time.
19018
19019 2009-09-01  Simon Josefsson  <simon@josefsson.org>
19020
19021         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
19022         * modules/netinet_in: Likewise.
19023         * modules/sys_file: Likewise.
19024         * modules/sys_ioctl: Likewise.
19025         * modules/sys_select: Likewise.
19026         * modules/sys_socket: Likewise.
19027         * modules/sys_stat: Likewise.
19028         * modules/sys_time: Likewise.
19029         * modules/sys_times: Likewise.
19030         * modules/sys_utsname: Likewise.
19031         * modules/sys_wait: Likewise.
19032
19033 2009-09-01  Jim Meyering  <meyering@redhat.com>
19034
19035         fts: help ensure that return values are not ignored
19036         * lib/fts_.h (__GNUC_PREREQ): Define.
19037         (__attribute_warn_unused_result__): Define.
19038         (fts_children, fts_close, fts_open, fts_read): Declare with
19039         __attribute_warn_unused_result__.
19040
19041         fts: fts_close now fails also when closing a dir file descriptor fails
19042         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
19043         and propagate to caller, along with errno.
19044
19045         announce-gen: correct formatting in --help output
19046         * build-aux/announce-gen (usage): Move the one-line description in
19047         --help output "up", to where it belongs, just after Usage:.
19048
19049 2009-08-31  Eric Blake  <ebb9@byu.net>
19050
19051         fchdir: port to mingw
19052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
19053         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
19054         opened, then use a substitute.
19055         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
19056         replacement.
19057         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
19058         (_gl_register_fd): No need to check stat if open already filters
19059         all directories.
19060         (fchdir): Fix error condition to match POSIX.
19061         * modules/fchdir (Depends-on): Add sys_stat.
19062         * doc/posix-functions/open.texi (open): Document the limitation.
19063         * modules/fchdir-tests: New file.
19064         * tests/test-fchdir.c: Likewise.
19065
19066         canonicalize: allow cross-testing from cygwin to mingw
19067         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
19068         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
19069         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
19070         Likewise.
19071         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
19072         target does not support symlinks.
19073         * tests/test-canonicalize-lgpl.sh: Likewise.
19074
19075         chown: avoid compilation warning on mingw
19076         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
19077         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
19078         mingw.
19079         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19080         * modules/chown (Depends-on): Add errno.
19081
19082 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19083
19084         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
19085         command.
19086
19087 2009-08-31  Jim Meyering  <meyering@redhat.com>
19088
19089         canonicalize: remove useless initialization
19090         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
19091         initialization of local, "end".
19092
19093 2009-08-30  Bruno Haible  <bruno@clisp.org>
19094
19095         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
19096         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
19097         ENOSYS.
19098
19099 2009-08-30  Bruno Haible  <bruno@clisp.org>
19100
19101         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
19102         /usr/xpg4/bin/tr when it exists.
19103         * tests/test-pipe-filter-gi1.sh: Likewise.
19104
19105 2009-08-30  Bruno Haible  <bruno@clisp.org>
19106
19107         Work around deficient /usr/bin/id program on Solaris.
19108         * tests/test-file-has-acl.sh (ID): New variable.
19109         * tests/test-set-mode-acl.sh (ID): Likewise.
19110         * tests/test-copy-acl.sh (ID): Likewise.
19111         * tests/test-copy-file.sh (ID): Likewise.
19112
19113 2009-08-30  Bruno Haible  <bruno@clisp.org>
19114
19115         New module 'xstriconveh'.
19116         * lib/xstriconveh.h: New file.
19117         * lib/xstriconveh.c: New file.
19118         * modules/xstriconveh: New file.
19119
19120 2009-08-30  Bruno Haible  <bruno@clisp.org>
19121
19122         Make it easier to use mem_cd_iconveh.
19123         * lib/striconveh.h (iconveh_t): New type.
19124         (iconveh_open, iconveh_close): New declarations.
19125         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19126         with a single 'const iconveh_t *' argument.
19127         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19128         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19129         with a single 'const iconveh_t *' argument.
19130         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19131         * tests/test-striconveh.c (main): Update.
19132         * NEWS: Mention the change.
19133
19134 2009-08-30  Bruno Haible  <bruno@clisp.org>
19135
19136         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19137         problem.
19138
19139 2009-08-30  Bruno Haible  <bruno@clisp.org>
19140
19141         Work around iconv_open problem on Solaris.
19142         * lib/iconv_open-solaris.gperf: New file.
19143         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19145         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19146         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19147         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19148         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19149
19150 2009-08-29  Jim Meyering  <meyering@redhat.com>
19151
19152         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19153         * top/maint.mk (cvs-check): Remove target; it was just an alias
19154         to the better-named vc-diff-check.
19155         (maintainer-distcheck): Remove rule.  It was used only from
19156         the (alpha/beta/major) target, and all of its commands but one
19157         were coreutils-specific.
19158         (vc-dist): Remove rule.
19159         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19160         Run vc-diff-check, not vc-dist.
19161         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19162
19163 2009-08-27  Bruno Haible  <bruno@clisp.org>
19164
19165         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19166         of 0.
19167
19168 2009-08-27  Bruno Haible  <bruno@clisp.org>
19169
19170         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19171         compilers.
19172         * doc/func.texi: Document the SunPRO C bug.
19173
19174 2009-08-27  Bruno Haible  <bruno@clisp.org>
19175
19176         Fix link error on Solaris.
19177         * tests/test-parse-duration.c (xstrdup): Remove function.
19178
19179 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19180
19181         ignore-value: handle pointer types, too
19182         * lib/ignore-value.h (__attribute__): Remove definition.
19183         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19184         of a more concise and more-often effective "(void) i" statement.
19185         (ignore_ptr): New function to suppress warnings from functions that
19186         return pointers, and to make it explicit that one function doesn't
19187         handle all cases.
19188
19189 2009-08-25  Bruno Haible  <bruno@clisp.org>
19190
19191         dup2: work around a Linux bug.
19192         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19193         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19194         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19195         Reported by Simon Josefsson.
19196
19197 2009-08-25  Jim Meyering  <meyering@redhat.com>
19198
19199         libguestfs uses gnulib
19200         * users.txt: Add libguestfs.
19201
19202 2009-08-24  Eric Blake  <ebb9@byu.net>
19203
19204         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19205         * lib/pipe2.c (includes): Add binary-io.h.
19206         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19207
19208 2009-08-24  Bruno Haible  <bruno@clisp.org>
19209
19210         Tolerate declared but missing accept4 syscall.
19211         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19212         available.
19213         * lib/sys_socket.in.h (accept4): If the function is already present,
19214         override it.
19215         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19216         * modules/accept4 (Makefile.am): Compile accept4.c always.
19217         Reported by Paolo Bonzini and Eric Blake.
19218
19219 2009-08-23  Bruno Haible  <bruno@clisp.org>
19220
19221         New module 'accept4'.
19222         * lib/sys_socket.in.h (accept4): New declaration.
19223         * lib/accept4.c: New file.
19224         * m4/accept4.m4: New file.
19225         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19226         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19227         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19228         HAVE_ACCEPT4.
19229         * modules/accept4: New file.
19230         * doc/glibc-functions/accept4.texi: Mention the new module.
19231
19232 2009-08-24  Jim Meyering  <meyering@redhat.com>
19233
19234         progname: also set global program_invocation_name, when possible
19235         Before this change, a libtool-enabled program that calls glibc's
19236         error function would report the program name as
19237         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19238         * modules/progname (configure.ac): Check for a declaration of
19239         program_invocation_name.
19240         * lib/progname.c:  Include <errno.h>.
19241         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19242         Set program_invocation_name.
19243
19244 2009-08-23  Bruno Haible  <bruno@clisp.org>
19245
19246         * lib/dup3.c: Include <string.h>.
19247
19248 2009-08-23  Bruno Haible  <bruno@clisp.org>
19249
19250         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19251         * lib/pipe2.c (pipe2): Likewise.
19252         Suggested by Eric Blake.
19253
19254 2009-08-23  Bruno Haible  <bruno@clisp.org>
19255
19256         Tolerate declared but missing dup3 syscall.
19257         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19258         * lib/unistd.in.h (dup3): If the function is already present,
19259         override it.
19260         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19261         * modules/dup3 (Makefile.am): Compile dup3.c always.
19262         Reported by Paolo Bonzini.
19263
19264 2009-08-23  Bruno Haible  <bruno@clisp.org>
19265
19266         Tolerate declared but missing pipe2 syscall.
19267         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19268         available.
19269         * lib/unistd.in.h (pipe2): If the function is already present,
19270         override it.
19271         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19272         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19273         Reported by Paolo Bonzini.
19274
19275 2009-08-23  Bruno Haible  <bruno@clisp.org>
19276
19277         * lib/pipe2.c (pipe2): Move #ifs inside function.
19278
19279 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19280
19281         quotearg: document limitations of quote_these_too
19282         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19283         those limitations are created.
19284         * lib/quotearg.h (set_char_quoting): Document that digits and
19285         letters that are special after backslash are not permitted.
19286         (quotearg_char): Cross-reference set_char_quoting documentation.
19287
19288 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19289
19290         quotearg: implement custom_quoting_style
19291         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19292         right_quote fields.
19293         (set_custom_quoting): New public function.
19294         (quotearg_buffer_restyled): Add left_quote and right_quote
19295         arguments, handle them very much like locale quoting, and update
19296         all uses.
19297         (quotearg_n_custom): New public function.
19298         (quotearg_n_custom_mem): New public function.
19299         (quotearg_custom): New public function.
19300         (quotearg_custom_mem): New public function.
19301         * lib/quotearg.h: Prototype and document new public functions.
19302         (enum quoting_style): For escape_quoting_style and
19303         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19304         ignored even though they're otherwise like c_quoting_style.
19305         Add custom_quoting_style member and document with comparison to
19306         clocale_quoting_style.
19307         * tests/test-quotearg.c (custom_quotes): New array.
19308         (custom_results): New array.
19309         (main): Extend to test custom quoting.
19310
19311 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19312
19313         quotearg: fix right quote escaping when it's in quote_these_too
19314         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19315         quote, be sure to prepend only one backslash.
19316         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19317         (main): Test it.
19318
19319 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19320
19321         quotearg-tests: test escaping of embedded locale quotes
19322         * tests/test-quotearg.c (struct result_strings): Add member for
19323         new input.
19324         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19325         (inputs): Add new input.
19326         (results_g): Add expected results.
19327         (flag_results): Likewise.
19328         (locale_results): Likewise.
19329         (compare_strings): Check those.
19330
19331 2009-08-23  Bruno Haible  <bruno@clisp.org>
19332
19333         Tests for module 'dup3'.
19334         * modules/dup3-tests: New file.
19335         * tests/test-dup3.c: New file.
19336
19337         New module 'dup3'.
19338         * lib/unistd.in.h (dup3): New declaration.
19339         * lib/dup3.c: New file.
19340         * m4/dup3.m4: New file.
19341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19342         HAVE_DUP3.
19343         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19344         * modules/dup3: New file.
19345         * doc/glibc-functions/dup3.texi: Mention the new module.
19346
19347 2009-08-23  Bruno Haible  <bruno@clisp.org>
19348
19349         Tweak the dup2 test.
19350         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19351         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19352         the test file is still empty. Fix argument order of lseek.
19353
19354 2009-08-23  Bruno Haible  <bruno@clisp.org>
19355
19356         Avoid test link errors when the modules getopt-gnu, gettext are used.
19357         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19359
19360 2009-08-23  Bruno Haible  <bruno@clisp.org>
19361
19362         Fix getdtablesize() on mingw.
19363         * lib/getdtablesize.c (getdtablesize): Implement differently.
19364         * lib/unistd.in.h (getdtablesize): Improve comment.
19365
19366 2009-08-23  Bruno Haible  <bruno@clisp.org>
19367
19368         New module 'mkostemp'.
19369         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19370         * lib/stdlib.in.h (mksotemp): New declaration.
19371         * lib/mkostemp.c: New file, from glibc with modifications.
19372         * lib/tempname.h (GT_FILE): Remove outdated comment.
19373         (gen_tempname): Add flags argument.
19374         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19375         (__GT_FILE): Map to 1.
19376         (small_open, large_open): Remove macros.
19377         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19378         * lib/mkstemp.c (mkstemp): Update.
19379         * lib/mkdtemp.c (mkdtemp): Likewise.
19380         * m4/mkostemp.m4: New file.
19381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19382         HAVE_MKOSTEMP.
19383         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19384         HAVE_MKOSTEMP.
19385         * modules/mkostemp: New file, based on modules/mkstemp.
19386         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19387         * NEWS: Mention the change.
19388
19389 2009-08-23  Bruno Haible  <bruno@clisp.org>
19390
19391         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19392         Reported by Eric Blake.
19393
19394 2009-08-23  Bruno Haible  <bruno@clisp.org>
19395
19396         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19397         Reported by Eric Blake.
19398
19399 2009-08-23  Bruno Haible  <bruno@clisp.org>
19400
19401         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19402         * modules/pipe2 (Depends-on): Likewise.
19403
19404 2009-08-23  Eric Blake  <ebb9@byu.net>
19405
19406         fcntl-h: add O_TTY_INIT support
19407         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19408         * tests/test-fcntl-h.c (o): Test it.
19409         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19410
19411         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19412         * modules/fcntl: Move <fcntl.h> header replacement...
19413         * modules/fcntl-h: ...to new name, so as not to collide with
19414         like-named function.
19415         * tests/test-fcntl.c: Rename...
19416         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19417         * modules/fcntl-tests: Rename...
19418         * modules/fcntl-h-tests: ...to this.  Update test file name.
19419         * modules/chdir-long (Depends-on): Update clients.
19420         * modules/chdir-safer (Depends-on): Likewise.
19421         * modules/fcntl-safer (Depends-on): Likewise.
19422         * modules/fts (Depends-on): Likewise.
19423         * modules/mkancesdirs (Depends-on): Likewise.
19424         * modules/mkdir-p (Depends-on): Likewise.
19425         * modules/open (Depends-on): Likewise.
19426         * modules/savewd (Depends-on): Likewise.
19427         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19428         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19429
19430 2009-08-22  Bruno Haible  <bruno@clisp.org>
19431
19432         * modules/binary-io (License): Relicense under LGPL.
19433         * modules/pipe2 (License): Likewise.
19434
19435 2009-08-22  Bruno Haible  <bruno@clisp.org>
19436
19437         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19438         return value.
19439         * lib/pipe-filter-gi.c (filter_init): Likewise.
19440         Reported by Eric Blake.
19441
19442 2009-08-22  Bruno Haible  <bruno@clisp.org>
19443
19444         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19445         * modules/pipe (Depends-on): Add pipe2.
19446
19447 2009-08-22  Bruno Haible  <bruno@clisp.org>
19448
19449         Tests for module 'pipe2'.
19450         * modules/pipe2-tests: New file.
19451         * tests/test-pipe2.c: New file.
19452
19453         New module 'pipe2'.
19454         * lib/unistd.in.h (pipe2): New declaration.
19455         * lib/pipe2.c: New file.
19456         * m4/pipe2.m4: New file.
19457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19458         HAVE_PIPE2.
19459         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19460         * modules/pipe2: New file.
19461         * doc/glibc-functions/pipe2.texi: Mention the new module.
19462
19463 2009-08-22  Bruno Haible  <bruno@clisp.org>
19464
19465         Reference some new glibc functions.
19466         * doc/glibc-functions/accept4.texi: New file.
19467         * doc/glibc-functions/dup3.texi: New file.
19468         * doc/glibc-functions/mkostemp.texi: New file.
19469         * doc/glibc-functions/pipe2.texi: New file.
19470         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19471         (Glibc sys/socket.h): Refer to accept4.
19472         (Glibc unistd.h): Refer to dup3, pipe2.
19473         Reported by Eric Blake.
19474
19475 2009-08-22  Jim Meyering  <meyering@redhat.com>
19476             Bruno Haible  <bruno@clisp.org>
19477
19478         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19479         This makes it so packages using automake-1.11's silent-rules option
19480         can print e.g., a single "GEN    configmake.h" line, rather than
19481         the 30+ statements that perform the job.  If you want to see the
19482         actual commands, you can still run "make V=1".
19483         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19484         so that make output is abbreviated when those variables are defined
19485         appropriately.
19486         * modules/argz: Likewise.
19487         * modules/arpa_inet: Likewise.
19488         * modules/byteswap: Likewise.
19489         * modules/configmake: Likewise.
19490         * modules/dirent: Likewise.
19491         * modules/errno: Likewise.
19492         * modules/fcntl: Likewise.
19493         * modules/float: Likewise.
19494         * modules/fnmatch: Likewise.
19495         * modules/getopt-posix: Likewise.
19496         * modules/glob: Likewise.
19497         * modules/iconv_open: Likewise.
19498         * modules/inttypes: Likewise.
19499         * modules/localcharset: Likewise.
19500         * modules/locale: Likewise.
19501         * modules/math: Likewise.
19502         * modules/netdb: Likewise.
19503         * modules/netinet_in: Likewise.
19504         * modules/poll: Likewise.
19505         * modules/posix_spawnp-tests: Likewise.
19506         * modules/sched: Likewise.
19507         * modules/search: Likewise.
19508         * modules/selinux-h: Likewise.
19509         * modules/signal: Likewise.
19510         * modules/spawn: Likewise.
19511         * modules/stdarg: Likewise.
19512         * modules/stdbool: Likewise.
19513         * modules/stddef: Likewise.
19514         * modules/stdint: Likewise.
19515         * modules/stdio: Likewise.
19516         * modules/stdlib: Likewise.
19517         * modules/string: Likewise.
19518         * modules/strings: Likewise.
19519         * modules/sys_file: Likewise.
19520         * modules/sys_ioctl: Likewise.
19521         * modules/sys_select: Likewise.
19522         * modules/sys_socket: Likewise.
19523         * modules/sys_stat: Likewise.
19524         * modules/sys_time: Likewise.
19525         * modules/sys_times: Likewise.
19526         * modules/sys_utsname: Likewise.
19527         * modules/sys_wait: Likewise.
19528         * modules/sysexits: Likewise.
19529         * modules/time: Likewise.
19530         * modules/unistd: Likewise.
19531         * modules/wchar: Likewise.
19532         * modules/wctype: Likewise.
19533
19534 2009-08-22  Jim Meyering  <meyering@redhat.com>
19535
19536         announce-gen: detect write failure
19537         * build-aux/announce-gen: Add Coda at end.
19538         Remove equivalent-but-more-verbose block at top.
19539
19540 2009-08-19  Akim Demaille  <demaille@gostai.com>
19541
19542         bootstrap: --help to stdout.
19543         * bootstrap (usage): Don't send --help to stderr.
19544         Use a here doc instead of a long string.
19545
19546 2009-08-21  Eric Blake  <ebb9@byu.net>
19547
19548         test-popen-safer: split from test-popen
19549         * tests/test-popen.c (main): Move...
19550         * tests/test-popen.h: ...into new file.
19551         * tests/test-popen-safer2.c: New file.
19552         * modules/popen-tests (Files): Add test-popen.h.
19553         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19554         Suggested by Bruno Haible.
19555
19556         test-fcntl-safer: split from test-open
19557         * tests/test-open.c (main): Move...
19558         * tests/test-open.h: ...into new file.
19559         * tests/test-fcntl-safer.c: New file.
19560         * modules/open-tests (Files): Add test-open.h.
19561         * modules/fcntl-safer-tests: New file.
19562         Suggested by Bruno Haible.
19563
19564         test-fopen-safer: split from test-fopen
19565         * tests/test-fopen.c (main): Move...
19566         * tests/test-fopen.h: ...into new file.
19567         * tests/test-fopen-safer.c: New file.
19568         * modules/fopen-tests (Files): Add test-fopen.h.
19569         * modules/fopen-safer-tests: New file.
19570         Suggested by Bruno Haible.
19571
19572 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19573
19574         popen-safer: test O_CLOEXEC at run-time.
19575         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19576
19577 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19578
19579         fcntl: move more flags to the header
19580         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19581         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19582         * lib/fcntl.in.h: Do both things here.
19583
19584 2009-08-21  Jim Meyering  <meyering@redhat.com>
19585
19586         consistently remove $@-t before redirecting to it
19587         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19588         * modules/alloca-opt: Likewise.
19589         * modules/byteswap: Likewise.
19590         * modules/fnmatch: Likewise.
19591         * modules/getopt-posix: Likewise.
19592         * modules/glob: Likewise.
19593         * modules/poll: Likewise.
19594         * modules/posix_spawnp-tests: Likewise.
19595         * modules/sys_socket: Likewise.
19596         * modules/sysexits: Likewise.
19597
19598 2009-08-21  Eric Blake  <ebb9@byu.net>
19599
19600         popen: simplify access to original popen
19601         * lib/popen.c (rpl_popen): No need to worry about popen being a
19602         macro.
19603         Reported by Bruno Haible.
19604
19605 2009-08-20  Eric Blake  <ebb9@byu.net>
19606
19607         build: avoid some compiler warnings
19608         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19609         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19610         type.
19611         (new_exclude_segment, excluded_file_pattern_p)
19612         (excluded_file_name_p): Reduce scope.
19613         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19614         old-style declaration.
19615
19616 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19617
19618         * tests/test-exclude1.sh: Handle Windows EOL.
19619         * tests/test-exclude2.sh: Likewise.
19620         * tests/test-exclude3.sh: Likewise.
19621         * tests/test-exclude4.sh: Likewise.
19622         * tests/test-exclude5.sh: Likewise.
19623         * tests/test-exclude6.sh: Likewise.
19624         * tests/test-exclude7.sh: Likewise.
19625
19626 2009-08-19  Akim Demaille  <demaille@gostai.com>
19627
19628         bootstrap: find sha1sum when named gsha1sum.
19629         * bootstrap (find_tool): New.
19630         ($SHA1SUM): New.
19631         Use it.
19632
19633 2009-08-20  Jim Meyering  <meyering@redhat.com>
19634
19635         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19636         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19637         expression that converts "." in a file name to "\." in the resulting
19638         regexp.  Start with a dummy statement, so that prior shell variable
19639         definitions are expanded portably.  Reported by Simon Josefsson.
19640
19641 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19642
19643         Fix polling for writeability of a screen buffer.
19644         * lib/poll.c: Distinguish input and screen buffers for the
19645         Win32 implementation.
19646         * lib/select.c: Likewise.
19647
19648 2009-08-19  Eric Blake  <ebb9@byu.net>
19649
19650         popen-safer: prevent popen from clobbering std descriptors
19651         * modules/popen-safer: New file.
19652         * lib/popen-safer.c: Likewise.
19653         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19654         * lib/stdio--.h (popen): Provide override.
19655         * lib/stdio-safer.h (popen_safer): Provide declaration.
19656         * tests/test-popen.c (includes): Partially test this.
19657         * modules/popen-safer-tests: New file, for more tests.
19658         * tests/test-popen-safer.c: Likewise.
19659         * MODULES.html.sh (file stream based Input/Output): Mention it.
19660
19661         tests: test some of the *-safer modules
19662         * modules/fopen-safer (Depends-on): Add fopen.
19663         * modules/fcntl-safer (Depends-on): Add fcntl.
19664         * modules/stdlib-safer (Depends-on): Add stdlib.
19665         (configure.ac): Set indicator.
19666         * modules/unistd-safer (configure.ac): Likewise.
19667         * modules/tmpfile-safer (configure.ac): Likewise.
19668         (Depends-on): Add tmpfile.
19669         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19670         active.
19671         * tests/test-fopen.c (includes): Test safer versions when they are
19672         in use.
19673         * tests/test-open.c (includes): Likewise.
19674
19675         popen: fix cygwin 1.5 bug when stdin closed
19676         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19677         * modules/popen: New file.
19678         * modules/popen-tests: Likewise.
19679         * tests/test-popen.c: Likewise.
19680         * m4/popen.m4: Likewise.
19681         * lib/popen.c: Likewise.
19682         * lib/stdio.in.h (popen): New declaration.
19683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19684         * modules/stdio (Makefile.am): Likewise.
19685         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19686
19687 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19688
19689         maint.mk: give full control over update-copyright exclusions
19690         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19691         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19692         (update-copyright): Don't force inclusion of top-level
19693         ChangeLog.  Don't force exclusion of all COPYING files, but make
19694         them the default exclusion instead.
19695
19696 2009-08-16  Bruno Haible  <bruno@clisp.org>
19697
19698         Fix test failures on Solaris 10.
19699         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19700         tests when Solaris iconv() is used.
19701         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19702         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19703         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19704         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19705         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19706
19707 2009-08-16  Bruno Haible  <bruno@clisp.org>
19708
19709         Fix test failures on Solaris 10.
19710         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19711         'tr' program and pass it as first argument.
19712         * tests/test-pipe-filter-gi1.sh: Likewise.
19713         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19714         program as first argument.
19715         * tests/test-pipe-filter-gi1.c (main): Likewise.
19716
19717 2009-08-16  Eric Blake  <ebb9@byu.net>
19718
19719         fpurge: fix previous commits
19720         * modules/fpurge (Makefile.am): Make replacement conditional,
19721         partially reverting 2007-04-29 change; missed in previous
19722         attempt.
19723         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19724         is missing.
19725
19726 2009-08-16  Bruno Haible  <bruno@clisp.org>
19727
19728         Clarify fpurge's effect on the file position.
19729         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19730         * tests/test-fpurge.c (main): Make a second pass for checking the file
19731         position.
19732
19733 2009-08-16  Bruno Haible  <bruno@clisp.org>
19734
19735         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19736         declaration of fpurge is missing.
19737         * tests/test-fpurge.c (main): Check that the file has not more contents
19738         than expected. Close the file before removing it.
19739
19740 2009-08-15  Eric Blake  <ebb9@byu.net>
19741
19742         fpurge: don't wrap working cygwin implementation
19743         * lib/fpurge.c (fpurge): Fix comment typo.
19744         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19745         1.7 to avoid replacement.
19746         * tests/test-fpurge.c (main): Enhance test.
19747
19748 2009-08-15  Eric Blake  <ebb9@byu.net>
19749         and Jim Meyering  <meyering@redhat.com>
19750
19751         test-update-copyright: skip if perl is insufficient
19752         * tests/test-update-copyright.sh: Failure to run maintainer tool
19753         should not cause testsuite failure on cygwin 1.5.
19754
19755 2009-08-14  Eric Blake  <ebb9@byu.net>
19756
19757         doc: mention more functions added in cygwin 1.7.0
19758         * doc/posix-headers/limits.texi (limits.h): Update for recent
19759         cygwin additions.
19760         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19761         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19762         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19763         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19764         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19765
19766 2009-08-14  Eric Blake  <ebb9@byu.net>
19767
19768         maint.mk: simplify update-copyright rule
19769         * top/maint.mk (update-copyright-local): Delete, and document how
19770         to do it in cfg.mk instead.
19771         (update-copyright-exclude-regexp): Delete, and document how to do
19772         it in .x-update-copyright instead.
19773         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19774         exclude ChangeLog.
19775
19776 2009-08-14  Bruno Haible  <bruno@clisp.org>
19777
19778         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19779
19780 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19781
19782         maint.mk: support update-copyright-env
19783         * top/maint.mk (update-copyright-env): Define place-holder.
19784         (update-copyright): Expand $(update-copyright-env) before
19785         invoking update-copyright.
19786
19787 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19788
19789         update-copyright: implement forced reformatting
19790         * build-aux/update-copyright: Implement and document
19791         UPDATE_COPYRIGHT_FORCE.
19792         * tests/test-update-copyright.sh: Test it.
19793
19794 2009-08-14  Eric Blake  <ebb9@byu.net>
19795         and Bruno Haible  <bruno@clisp.org>
19796
19797         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19798         * tests/test-locale.c: Revert previous patch related to NULL.
19799         * tests/test-stdio.c: Likewise.
19800         * tests/test-stdlib.c: Likewise.
19801         * tests/test-string.c: Likewise.
19802         * tests/test-unistd.c: Likewise.
19803         * modules/time-tests (Depends-on): Add verify.
19804         * modules/wchar-tests (Depends-on): Likewise.
19805         * tests/test-time.c: Test for NULL compliance.
19806         * tests/test-wchar.c: Likewise.
19807         * modules/locale (Depends-on): Add stddef.
19808         * modules/stdio (Depends-on): Likewise.
19809         * modules/stdlib (Depends-on): Likewise.
19810         * modules/string (Depends-on): Likewise.
19811         * modules/time (Depends-on): Likewise.
19812         * modules/unistd (Depends-on): Likewise.
19813         * modules/wchar (Depends-on): Likewise.
19814         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19815         * lib/stdlib.in.h (includes): Likewise.
19816         * lib/string.in.h (includes): Likewise.
19817         * lib/time.in.h (includes): Likewise.
19818         * lib/unistd.in.h (includes): Likewise.
19819         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19820         replaced.
19821         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19822         * m4/stddef_h.m4: New file.
19823         * modules/stddef: Likewise.
19824         * lib/stddef.in.h: Likewise.
19825         * modules/stddef-tests: Likewise.
19826         * tests/test-stddef.c: Likewise.
19827         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19828         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19829         * doc/posix-headers/locale.texi (locale.h): Likewise.
19830         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19831         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19832         * doc/posix-headers/string.texi (string.h): Likewise.
19833         * doc/posix-headers/time.texi (time.h): Likewise.
19834         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19835         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19836
19837 2009-08-14  Eric Blake  <ebb9@byu.net>
19838
19839         doc: improve git diff of texinfo files
19840         * .gitattributes: Add rule for *.texi files, with hint on how to
19841         use it.
19842         Copied from m4, and based on a report by Bruno Haible.
19843
19844 2009-08-14  Bruno Haible  <bruno@clisp.org>
19845
19846         Disable multithread support by default on Cygwin 1.5.x for real.
19847         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19848
19849 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19850
19851         update-copyright: much ado about intervals
19852         * build-aux/update-copyright: Implement and document
19853         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19854         of copyright year intervals.
19855         Also, document UPDATE_COPYRIGHT_YEAR.
19856         * tests/test-update-copyright.sh: Test it.
19857
19858         update-copyright: convert 2-digit to 4-digit years
19859         * build-aux/update-copyright: Implement and document.
19860         * tests/test-update-copyright.sh: Update.
19861
19862 2009-08-14  Jim Meyering  <meyering@redhat.com>
19863
19864         test-exclude: avoid coreutils "make check" failure
19865         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19866         just as in test-argmatch.c.
19867
19868 2009-08-13  Eric Blake  <ebb9@byu.net>
19869
19870         test-dup2: fix bad assumption
19871         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19872         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19873
19874         test-version-etc: fix CRLF portability issue
19875         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19876         recognize \r.
19877         * tests/test-argp-version-etc-1.sh: Likewise.
19878
19879         getopt: update client modules
19880         * modules/argp (Depends-on): Use getopt-gnu.
19881         * modules/git-merge-changelog (Depends-on): Likewise.
19882         * modules/long-options (Depends-on): Likewise.
19883         * modules/xstrtol (Depends-on): Likewise.
19884
19885 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19886
19887         * tests/test-version-etc.sh: Don't fail on different
19888         project/version.  Don't fail on CRLF differences.  Rewrite to use
19889         multiple -e instead of multiple sed forks, suggested by Eric Blake
19890         <ebb9@byu.net>.
19891         * tests/test-argp-version-etc-1.sh: Likewise.
19892
19893 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19894
19895         * tests/test-version-etc.sh: Don't fail on different
19896         project/version.
19897
19898 2009-08-12  Bruno Haible  <bruno@clisp.org>
19899
19900         Tests for modules 'getopt-posix', 'getopt-gnu'.
19901         * modules/getopt-posix-tests: New file.
19902         * tests/test-getopt.c: New file.
19903         * tests/test-getopt.h: New file.
19904         * tests/test-getopt_long.h: New file.
19905
19906         New modules 'getopt-posix', 'getopt-gnu'.
19907         * modules/getopt-gnu: New file, renamed from modules/getopt.
19908         * modules/getopt-posix: New file.
19909         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19910         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19911         (gl_GETOPT): Remove macro.
19912         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19913         Disable the test against BSD systems that declare optreset. Test
19914         against mingw bug. Test against lack of support of optional arguments
19915         on many platforms.
19916         * doc/glibc-headers/getopt.texi: Update module name and list of
19917         relevant platforms.
19918         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19919         'getopt-gnu' and more portability problems.
19920         * NEWS: Mention the changes.
19921
19922 2009-08-12  Bruno Haible  <bruno@clisp.org>
19923
19924         Ensure that optarg etc. get declared by <unistd.h>.
19925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19926         AC_USE_SYSTEM_EXTENSIONS.
19927         * modules/getopt (Depends-on): Add 'extensions'.
19928
19929 2009-08-12  Bruno Haible  <bruno@clisp.org>
19930
19931         Avoid test link errors.
19932         * modules/pipe-filter-ii-tests (Makefile.am): Define
19933         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19934         * modules/pipe-filter-gi-tests (Makefile.am): Define
19935         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19937
19938 2009-08-12  Bruno Haible  <bruno@clisp.org>
19939
19940         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19941         gl_GETOPT_SUBSTITUTE before.
19942         (gl_GETOPT): Use it.
19943         * m4/argp.m4 (gl_ARGP): Update.
19944         Reported by Sergey Poznyakoff.
19945
19946         * m4/getopt.m4: Reorder macros.
19947         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19948         (gl_GETOPT_SUBSTITUTE): Remove macro.
19949
19950 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19951
19952         Minor improvement in gitlog-to-changelog
19953
19954         * build-aux/gitlog-to-changelog: New option `--format' makes
19955         output format string configurable.
19956
19957 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19958
19959         Optimize exclude: use hash tables for non-wildcard patterns.
19960
19961         * lib/exclude.c: Include hash.h and mbuiter.h
19962         (struct exclude_pattern, exclude_segment): New data types.
19963         (struct exclude): Rewrite.
19964         (fnmatch_pattern_has_wildcards): New function.
19965         (new_exclude_segment, free_exclude_segment): New functions.
19966         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19967         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19968         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19969         * modules/exclude: Depend on hash and mbuiter.
19970
19971         * modules/exclude-tests: New file.
19972         * tests/test-exclude.c: New file.
19973         * tests/test-exclude1.sh: New file.
19974         * tests/test-exclude2.sh: New file.
19975         * tests/test-exclude3.sh: New file.
19976         * tests/test-exclude4.sh: New file.
19977         * tests/test-exclude5.sh: New file.
19978         * tests/test-exclude6.sh: New file.
19979         * tests/test-exclude7.sh: New file.
19980
19981 2009-08-12  Bruno Haible  <bruno@clisp.org>
19982
19983         Ensure that getopt() gets declared by <unistd.h>.
19984         * lib/unistd.in.h: Conditionally include getopt.h.
19985         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19986         Set GNULIB_UNISTD_H_GETOPT.
19987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19988         GNULIB_UNISTD_H_GETOPT.
19989         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19990
19991 2009-08-12  Bruno Haible  <bruno@clisp.org>
19992
19993         Clarify logic.
19994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19995         gl_replace_getopt instead of GETOPT_H.
19996
19997 2009-08-12  Bruno Haible  <bruno@clisp.org>
19998
19999         * m4/getopt.m4: Add comments.
20000
20001 2009-08-12  Bruno Haible  <bruno@clisp.org>
20002
20003         Disable multithread support by default on Cygwin 1.5.x.
20004         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
20005         set gl_use_threads=no if not specified otherwise.
20006
20007 2009-08-11  Bruno Haible  <bruno@clisp.org>
20008
20009         Avoid compilation error on NetBSD 5.0.
20010         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
20011         * tests/test-stdio.c: Likewise.
20012         * tests/test-stdlib.c: Likewise.
20013         * tests/test-string.c: Likewise.
20014         * tests/test-unistd.c: Likewise.
20015         Reported by Greg Troxel <gdt@ir.bbn.com>
20016         at <https://savannah.gnu.org/support/?106973>.
20017
20018 2009-08-11  Bruno Haible  <bruno@clisp.org>
20019
20020         * modules/dup2-tests (Depends-on): Remove close.
20021
20022         Undo 2009-07-19 commit.
20023         * modules/acl-tests (Depends-on): Remove close.
20024         * modules/binary-io-tests (Depends-on): Likewise.
20025         * modules/closein-tests (Depends-on): Likewise.
20026         * modules/flock-tests (Depends-on): Likewise.
20027         * modules/fsync-tests (Depends-on): Likewise.
20028         * modules/lseek-tests (Depends-on): Likewise.
20029         * modules/pipe-tests (Depends-on): Likewise.
20030         * modules/posix_spawn-tests (Depends-on): Likewise.
20031         * modules/posix_spawnp-tests (Depends-on): Likewise.
20032         * modules/stat-time-tests (Depends-on): Likewise.
20033         * modules/yesno-tests (Depends-on): Likewise.
20034
20035 2009-08-10  Bruno Haible  <bruno@clisp.org>
20036
20037         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
20038
20039 2009-08-10  Bruno Haible  <bruno@clisp.org>
20040
20041         Fix a gcc warning.
20042         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
20043
20044 2009-08-10  Bruno Haible  <bruno@clisp.org>
20045
20046         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
20047         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
20048         not only the first time.
20049         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
20050         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
20051         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
20052         is 1, not only the the first time.
20053
20054 2009-08-10  Bruno Haible  <bruno@clisp.org>
20055
20056         Make it possible to use module 'gethostname' without module 'close'.
20057         * lib/unistd.in.h (close): Evoke a link error only if
20058         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20060         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20061         * modules/unistd (Makefile.am): Substitute
20062         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20063         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
20064         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20065         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20066         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20067         * modules/sys_ioctl (Makefile.am): Substitute
20068         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20069         * modules/socket (configure.ac): On native Windows, set
20070         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
20071         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20072         Reported by Sam Steingold <sds@gnu.org>.
20073
20074 2009-08-10  Bruno Haible  <bruno@clisp.org>
20075
20076         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
20077         * modules/ioctl (configure.ac): Likewise.
20078
20079 2009-08-10  Bruno Haible  <bruno@clisp.org>
20080
20081         Avoid collision between gnulib wrapper and libintl wrapper.
20082         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
20083         already defined in intl/printf.c.
20084         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
20085         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
20086
20087 2009-08-09  Bruno Haible  <bruno@clisp.org>
20088
20089         Make <sys/select.h> really self-contained, also on Solaris 10.
20090         * lib/sys_select.in.h: Include <string.h>.
20091         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
20092         Solaris 10 problem.
20093         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
20094         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
20095         Reported by Jim Meyering.
20096
20097 2009-08-09  Bruno Haible  <bruno@clisp.org>
20098
20099         Avoid warnings from 'aclocal' that are due to a use of macro name
20100         AM_XGETTEXT_OPTION that is not defined in automake.
20101         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
20102         automake.
20103         * modules/error (configure.ac): Likewise.
20104         * modules/propername (configure.ac): Likewise.
20105         * modules/vasprintf (configure.ac): Likewise.
20106         * modules/verror (configure.ac): Likewise.
20107         * modules/xprintf (configure.ac): Likewise.
20108         * modules/xvasprintf (configure.ac): Likewise.
20109
20110 2009-08-08  Bruno Haible  <bruno@clisp.org>
20111
20112         Avoid compilation error in C++ mode.
20113         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
20114         Reported by Sam Steingold <sds@gnu.org>.
20115
20116 2009-08-08  Bruno Haible  <bruno@clisp.org>
20117
20118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20119         for the various Unix platforms.
20120         * doc/posix-headers/limits.texi: Update platforms list regarding
20121         HOST_NAME_MAX.
20122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20123
20124 2009-08-07  Jim Meyering  <meyering@redhat.com>
20125
20126         selinux-at: fix typo in a comment
20127         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20128         Spotted by Paolo Bonzini.
20129
20130         selinux-at: remove redundant m4 code, add documentation
20131         * modules/selinux-at (configure.ac): Remove redundant code.
20132         LIB_SELINUX is already set via the dependent module, selinux-h.
20133         (Include): Add quotes around selinux-at.h.
20134         * lib/selinux-at.h: Add documentation.
20135         Reported by Bruno Haible in
20136         http://marc.info/?l=gnulib-bug&m=124958988300749
20137
20138 2009-08-07  Bruno Haible  <bruno@clisp.org>
20139
20140         Avoid link error on MacOS X 10.3 and 10.4.
20141         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20142         on non-ELF systems.
20143         * lib/argp-pv.c (argp_program_version): Likewise.
20144         Reported by Simon Josefsson.
20145
20146 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20147
20148         * tests/test-version-etc.sh: Use $EXEEXT.
20149
20150 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20151
20152         update-copyright: update documentation to point to maint.mk
20153         * build-aux/update-copyright: Here.
20154
20155 2009-08-06  Jim Meyering  <meyering@redhat.com>
20156
20157         maint.mk: support update-copyright-local
20158         * top/maint.mk (update-copyright-local): Define place-holder.
20159         (update-copyright): Depend on $(update-copyright-local).
20160
20161 2009-08-06  Jim Meyering  <meyering@redhat.com>
20162
20163         selinux-at: new module
20164         Initially written for coreutils, this module will soon be
20165         used by findutils, too.
20166         * MODULES.html.sh [Misc]: Add selinux-at.
20167         * lib/selinux-at.h: New file, from coreutils.
20168         * lib/selinux-at.c: Likewise.
20169         * modules/selinux-at: Likewise.
20170         (License): Change from LGPL to GPL, since it depends
20171         on the GPL'd openat module.
20172
20173         doc: update README
20174         * README: Remove references to cogito.
20175         Remove cvs-repo-updating instructions from 2007.
20176         Don't imply that CVS is better if you have limited disk space.
20177
20178 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20179
20180         update-copyright: support C-style comments
20181         * build-aux/update-copyright: Implement and document.
20182         * tests/test-update-copyright.sh: Test.
20183
20184 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20185
20186         update-copyright: support omitted "(C)"
20187         * build-aux/update-copyright: Implement and document.  Also,
20188         allow variable whitespace before "(C)".
20189         * tests/test-update-copyright.sh: Test.
20190
20191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20192
20193         update-copyright: don't trip on non-FSF copyright statements
20194         * build-aux/update-copyright: Fix so that the first correctly
20195         formatted FSF copyright statement is recognized no matter what
20196         appears before it.  Update documentation.
20197         * tests/test-update-copyright.sh: Test that.
20198
20199 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20200
20201         update-copyright: clean up code a little
20202         * build-aux/update-copyright: Append "_re" to the name of any
20203         variable holding a regular expression.
20204         Replace "old" and "new" with "stmt" in variable names.
20205         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20206         handled correctly.
20207         Format code more consistently.
20208
20209 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20210
20211         update-copyright-tests: improve portability
20212         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20213         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20214
20215 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20216
20217         update-copyright: support @copyright{} and &copy;
20218         * build-aux/update-copyright: Implement and document.
20219         * tests/test-update-copyright.sh: Test.
20220
20221 2009-08-04  Jim Meyering  <meyering@redhat.com>
20222
20223         update-copyright-tests: correctly test EOL=\r\n handling
20224         * tests/test-update-copyright.sh: Put \r at the end of some lines
20225         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20226
20227         maint.mk: make update-copyright exclusion list more configurable
20228         * top/maint.mk (update-copyright): Default to excluding COPYING,
20229         but allow an override, in case someone does want to update that file.
20230
20231         maint.mk: don't update copyright date in COPYING
20232         * top/maint.mk (update-copyright): Exclude COPYING.
20233
20234         maint.mk: add a copyright-updating rule
20235         * top/maint.mk (update-copyright): New rule.
20236         Derived from coreutils/Makefile.am.
20237
20238         update-copyright: rename some variables
20239         * build-aux/update-copyright: Rename a few variables for clarity.
20240         Tweak syntax.  List Joel E. Denny as coauthor.
20241
20242 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20243
20244         update-copyright: fix bug for 2-digit last year and add tests
20245         * build-aux/update-copyright: Fix bug.
20246         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20247         specified.
20248         * modules/update-copyright-tests: New
20249         * tests/test-update-copyright.sh: New.
20250
20251 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20252
20253         update-copyright: handle leading tabs in line prefix
20254         * build-aux/update-copyright: Count leading tabs as 8 spaces
20255         when computing margin.  This helps with the formatting of
20256         ChangeLogs, for example.
20257         Fix documentation a little.
20258
20259 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20260
20261         update-copyright: support EOL=\r\n
20262         * build-aux/update-copyright: Implement that.
20263
20264 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20265
20266         update-copyright: automatically format copyright statements
20267         * build-aux/update-copyright: Implement that.
20268         Also, be a little more predictable and safer by always failing
20269         when the full copyright format is not perfectly recognized as an
20270         unbroken whole.  Discussed at
20271         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20272         Rewrite documentation.
20273
20274 2009-08-03  Bruno Haible  <bruno@clisp.org>
20275
20276         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20277
20278 2009-08-02  Bruno Haible  <bruno@clisp.org>
20279
20280         Tests for module 'uname'.
20281         * modules/uname-tests: New file.
20282         * tests/test-uname.c: New file.
20283
20284         New module 'uname'.
20285         * lib/uname.c: New file.
20286         * m4/uname.m4: New file.
20287         * modules/uname: New file.
20288         * doc/posix-functions/uname.texi: Mention the new module.
20289
20290 2009-08-02  Bruno Haible  <bruno@clisp.org>
20291
20292         Tests for module 'sys_utsname'.
20293         * modules/sys_utsname-tests: New file.
20294         * tests/test-sys_utsname.c: New file.
20295
20296         New module 'sys_utsname'.
20297         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20298         * m4/sys_utsname_h.m4: New file.
20299         * modules/sys_utsname: New file.
20300         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20301
20302 2009-08-02  Bruno Haible  <bruno@clisp.org>
20303
20304         Implicitly initialize the sockets library.
20305         * lib/gethostname.c: Include sockets.h.
20306         (rpl_gethostname): Invoke gl_sockets_startup.
20307         * lib/socket.c: Include sockets.h.
20308         (rpl_socket): Invoke gl_sockets_startup.
20309         * modules/gethostname (Depends-on): Add sockets.
20310         * modules/socket (Depends-on): Likewise.
20311         * tests/test-poll.c: Don't include sockets.h.
20312         (main): Don't invoke gl_sockets_startup.
20313         * tests/test-select.c: Don't include sockets.h.
20314         (main): Don't invoke gl_sockets_startup.
20315
20316 2009-08-02  Bruno Haible  <bruno@clisp.org>
20317
20318         Allow multiple calls to gl_sockets_startup.
20319         * lib/sockets.c (initialized_sockets_version): New variable.
20320         (gl_sockets_startup): Do nothing if already called for this or a higher
20321         version.
20322         (gl_sockets_cleanup): Reset initialized_sockets_version.
20323
20324 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20325
20326         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20327         different project/version.
20328
20329 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20330             Bruno Haible  <bruno@clisp.org>
20331
20332         Tests for module 'pipe-filter-gi'.
20333         * modules/pipe-filter-gi-tests: New file.
20334         * tests/test-pipe-filter-gi1.sh: New file.
20335         * tests/test-pipe-filter-gi1.c: New file.
20336         * tests/test-pipe-filter-gi2.sh: New file.
20337         * tests/test-pipe-filter-gi2-main.c: New file.
20338         * tests/test-pipe-filter-gi2-child.c: New file.
20339
20340         New module 'pipe-filter-gi'.
20341         * lib/pipe-filter-gi.c: New file.
20342         * modules/pipe-filter-gi: New file.
20343
20344 2009-08-02  Bruno Haible  <bruno@clisp.org>
20345             Paolo Bonzini  <bonzini@gnu.org>
20346
20347         Tests for module 'pipe-filter-ii'.
20348         * modules/pipe-filter-ii-tests: New file.
20349         * tests/test-pipe-filter-ii1.sh: New file.
20350         * tests/test-pipe-filter-ii1.c: New file.
20351         * tests/test-pipe-filter-ii2.sh: New file.
20352         * tests/test-pipe-filter-ii2-main.c: New file.
20353         * tests/test-pipe-filter-ii2-child.c: New file.
20354
20355         New module 'pipe-filter-ii'.
20356         * lib/pipe-filter.h: New file.
20357         * lib/pipe-filter-ii.c: New file.
20358         * lib/pipe-filter-aux.h: New file.
20359         * modules/pipe-filter-ii: New file.
20360
20361 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20362
20363         * lib/gc-libgcrypt.c: Change copyright to FSF.
20364         * lib/gc-gnulib.c: Likewise.
20365
20366 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20367
20368         * lib/gethostname.c: Include limits.h.
20369
20370 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20371             Bruno Haible  <bruno@clisp.org>
20372
20373         Ensure HOST_NAME_MAX as part of the gethostname module.
20374         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20375         define also HOST_NAME_MAX.
20376         * tests/test-gethostname.c: Include <limits.h>.
20377         (main): Check also HOST_NAME_MAX.
20378         * doc/posix-headers/limits.texi: Document the mingw problem.
20379
20380 2009-08-02  Bruno Haible  <bruno@clisp.org>
20381
20382         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20383         Add comments.
20384
20385 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20386
20387         * lib/gethostname.c: Add Windows wrapper.
20388         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20389         * modules/gethostname: Depend on sys_socket & errno, for also
20390         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20391         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20392
20393 2009-07-31  Jim Meyering  <meyering@redhat.com>
20394
20395         getloadavg: fix symbol name in comment
20396         * lib/getloadavg.c: Correct a typo I introduced when adding
20397         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20398         Matt Kraai spotted the problem.
20399
20400 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20401
20402         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20403         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20404         code also if ! defined N_NAME_POINTER.
20405         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20406         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20407         but the n_name member is a 12-byte array.
20408
20409 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20410
20411         update-copyright: generalize comment handling
20412         * build-aux/update-copyright: Handle copyright statements
20413         within more comment styles.
20414         Document usage.
20415         Report any file with an external copyright holder or parse failure.
20416
20417 2009-07-29  Jim Meyering  <meyering@redhat.com>
20418
20419         mktime: correct setting of REPLACE_MKTIME
20420         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20421
20422         update-copyright: new module
20423         * modules/update-copyright: New file.
20424         * build-aux/update-copyright: New file.
20425         * MODULES.html.sh (maint+release support): Add update-copyright.
20426
20427 2009-07-27  Bruno Haible  <bruno@clisp.org>
20428
20429         Fix compilation error when <ctime> is used and mktime is replaced.
20430         * lib/time.in.h (mktime): New declaration.
20431         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20432         REPLACE_MKTIME instead of defining mktime in config.h.
20433         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20434         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20435         Reported by Ross McFarland <rwmcfa1@neces.com>.
20436
20437 2009-07-27  Bruno Haible  <bruno@clisp.org>
20438
20439         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20440         Reported by Matt Kraai <mkraai@beckman.com>.
20441
20442 2009-07-25  Jim Meyering  <meyering@redhat.com>
20443
20444         maint.mk: avoid warnings about missing files
20445         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20446         diagnostic when .prev-version does not exist.
20447         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20448         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20449         nonexistent cfg.mk.
20450         Suggestions from Simon Josefsson.
20451
20452 2009-07-25  Bruno Haible  <bruno@clisp.org>
20453
20454         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20455         defined as macros. Needed on QNX 6.4.1.
20456         Reported by Matt Kraai <mkraai@beckman.com>.
20457
20458 2009-07-23  Jim Meyering  <meyering@redhat.com>
20459
20460         maint.mk: invoke "make dist" with a working value of XZ_OPT
20461         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20462
20463 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20464
20465         Make fseeko.c compile on QNX.
20466         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20467
20468 2009-07-22  Peter Simons  <simons@cryp.to>
20469
20470         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20471         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20472         * lib/md4.h: Likewise.
20473         * lib/md5.h: Likewise.
20474         * lib/sha1.h: Likewise.
20475         * lib/sha256.h: Likewise.
20476         * lib/sha512.h: Likewise.
20477
20478         tests-sha1: don't assign literal string to 'char *' variable
20479         * tests/test-sha1.c (main): Declare locals with "const" to match
20480         attributes of the right hand side.
20481
20482 2009-07-21  Eric Blake  <ebb9@byu.net>
20483
20484         dup2: fix more mingw problems
20485         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20486         fd to itself.
20487         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20488         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20489         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20490         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20491         care of mingw bugs.
20492
20493 2009-07-21  Jim Meyering  <meyering@redhat.com>
20494
20495         vc-list-files: avoid failure when /bin/sh is dash
20496         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20497         On some Debian based systems, /bin/sh is a symlink to dash, and running
20498         this command would omit the "/" following each 'tests' prefix:
20499           dash -x build-aux/vc-list-files -C . tests
20500         That is because bash and dash work differently:
20501           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20502           bash ok
20503           dash odd
20504
20505 2009-07-21  Eric Blake  <ebb9@byu.net>
20506
20507         dup2-tests: test previous patch
20508         * modules/dup2-tests: New file.
20509         * tests/test-dup2.c: Likewise.
20510         * tests/test-open.c (main): Avoid unspecified behavior.
20511         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20512         test.
20513
20514         dup2: work around mingw and cygwin 1.5 bug
20515         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20517         * modules/unistd (Makefile.am): Substitute it.
20518         * lib/unistd.in.h (dup2): Declare the replacement.
20519         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20520         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20521         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20522         * modules/execute (Depends-on): Add dup2.
20523         * modules/fseterr (Depends-on): Likewise.
20524         * modules/pipe (Depends-on): Likewise.
20525         * modules/posix_spawn-internal (Depends-on): Likewise.
20526
20527 2009-07-21  Bruno Haible  <bruno@clisp.org>
20528
20529         * modules/.gitattributes: New file.
20530
20531 2009-07-20  Bruno Haible  <bruno@clisp.org>
20532
20533         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20534         (main): Use it.
20535
20536 2009-07-20  Eric Blake  <ebb9@byu.net>
20537
20538         test-pipe: make a bit more robust.
20539         * tests/test-pipe.c (myerr): Allow error messages regardless of
20540         what we do to stderr.
20541         (test_pipe): Rearrange to avoid deadlock.
20542         (child_main): Try a larger read, to ensure we avoided deadlock.
20543         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20544         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20545         if misused.
20546
20547 2009-07-19  Jim Meyering  <meyering@redhat.com>
20548
20549         fts: avoid false-positive cycle-detection
20550         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20551         for each new command line argument.
20552
20553 2009-07-19  Bruno Haible  <bruno@clisp.org>
20554
20555         Fix build error on mingw with the modules sys_select and unistd.
20556         * modules/acl-tests (Depends-on): Add close.
20557         * modules/binary-io-tests (Depends-on): Likewise.
20558         * modules/closein-tests (Depends-on): Likewise.
20559         * modules/flock-tests (Depends-on): Likewise.
20560         * modules/fsync-tests (Depends-on): Likewise.
20561         * modules/lseek-tests (Depends-on): Likewise.
20562         * modules/pipe-tests (Depends-on): Likewise.
20563         * modules/posix_spawn-tests (Depends-on): Likewise.
20564         * modules/posix_spawnp-tests (Depends-on): Likewise.
20565         * modules/stat-time-tests (Depends-on): Likewise.
20566         * modules/yesno-tests (Depends-on): Likewise.
20567
20568 2009-07-19  Bruno Haible  <bruno@clisp.org>
20569
20570         Unify conditionals.
20571         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20572         macros, not at the compiler macros.
20573         * lib/pipe.c: Likewise.
20574         * lib/execute.c: Likewise.
20575         * lib/spawni.c: Likewise.
20576
20577 2009-07-19  Bruno Haible  <bruno@clisp.org>
20578
20579         Fix handling of closed stdin/stdout/stderr on mingw.
20580         * lib/w32spawn.h: Include unistd.h.
20581         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20582         file descriptor with O_NOINHERIT flag.
20583         (fd_safer_noinherit): New function, based on fd-safer.c.
20584         (dup_safer_noinherit): New function, based on dup-safer.c.
20585         (undup_safer_noinherit): New function.
20586         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20587         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20588         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20589         instead of fd_safer.
20590         * tests/test-pipe.c: Include <windows.h>.
20591         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20592
20593         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20594         from main.
20595         (test_pipe): Pass an extra argument for disambiguation.
20596         (main): Invoke parent_main or child_main.
20597
20598         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20599         consistently.
20600
20601 2009-07-18  Eric Blake  <ebb9@byu.net>
20602
20603         test-pipe: fix mingw build
20604         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20605
20606 2009-07-18  Bruno Haible  <bruno@clisp.org>
20607
20608         * modules/pipe-tests (Makefile.am): Fix typo.
20609
20610 2009-07-18  Eric Blake  <ebb9@byu.net>
20611
20612         error: fix mingw build
20613         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20614         Reported by Bruno Haible.
20615
20616         error: avoid undefined use of stdout
20617         * lib/error.c (error, error_at_line): Check that fd 1 is open
20618         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20619         is handling faults and the close_stdout module wants to report the
20620         detection of closed stdout as an error.
20621
20622 2009-07-17  Eric Blake  <ebb9@byu.net>
20623
20624         pipe: be robust in face of closed fds
20625         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20626         should cause child to misbehave.
20627         * modules/pipe-tests: New module.
20628         * tests/test-pipe.c: New file.
20629         * tests/test-pipe.sh: New file.
20630         Reported by Akim Demaille.
20631
20632 2009-07-14  Bruno Haible  <bruno@clisp.org>
20633
20634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20635         Reported by anonymous kc.
20636
20637 2009-07-07  Jim Meyering  <meyering@redhat.com>
20638
20639         maint.mk: don't look for translatable strings in *.m4 or *.mk
20640         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20641         when searching for translatable strings.
20642
20643 2009-07-05  Jim Meyering  <meyering@redhat.com>
20644
20645         remove superfluous parentheses in STREQ definition
20646         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20647         * lib/getugroups.c (STREQ): Likewise.
20648         * lib/fnmatch.c (STREQ): Likewise.
20649         Spotted by Bruno Haible.
20650
20651 2009-07-04  Jim Meyering  <meyering@redhat.com>
20652
20653         argv-iter: new module
20654         * MODULES.html.sh: Add argv-iter.
20655         * lib/argv-iter.c, lib/argv-iter.h: New files.
20656         * modules/argv-iter: New file.
20657         * modules/argv-iter-tests: New file.
20658         * tests/test-argv-iter.c: Test it.
20659
20660 2009-07-04  Bruno Haible  <bruno@clisp.org>
20661
20662         Fix assertion.
20663         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20664         contains more exact copies of a given entry than file2, leave the extra
20665         copies unpaired rather than aborting.
20666         Reported by Eric Blake.
20667
20668 2009-07-02  Bruno Haible  <bruno@clisp.org>
20669
20670         Speedup git-merge-changelog for git cherry-pick.
20671         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20672         (entries_mapping_get): New function, extracted from compute_mapping.
20673         (entries_mapping_reverse_get): New function.
20674         (compute_mapping): Add a 'full' argument. Return the result in a
20675         'struct entries_mapping'.
20676         (main): Update. Access the mappings through entries_mapping_get.
20677         Reported by Eric Blake.
20678
20679 2009-07-02  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20682         best_i.
20683
20684 2009-07-02  Bruno Haible  <bruno@clisp.org>
20685
20686         Speed up approximate search for matching ChangeLog entries.
20687         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20688         argument. Call fstrcmp_bounded instead of fstrcmp.
20689         (compute_mapping, try_split_merged_entry, main): Update callers.
20690
20691 2009-07-02  Bruno Haible  <bruno@clisp.org>
20692
20693         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20694
20695 2009-06-30  Bruno Haible  <bruno@clisp.org>
20696
20697         Reduce the number of uc_is_cased calls.
20698         * lib/unicase.h (casing_suffix_context_t): Add
20699         'first_char_except_ignorable' field.
20700         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20701         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20702         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20703         Update initializer.
20704         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20705         case-ignorable characters.
20706         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20707         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20708         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20709         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20710         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20711
20712 2009-06-30  Bruno Haible  <bruno@clisp.org>
20713
20714         Tests for module 'unicase/ignorable'.
20715         * modules/unicase/ignorable-tests: New file.
20716         * tests/unicase/test-ignorable.c: New file, generated by
20717         gen-uni-tables.
20718
20719         Tests for module 'unicase/cased'.
20720         * modules/unicase/cased-tests: New file.
20721         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20722         * tests/unicase/test-predicate-part1.h: New file, derived from
20723         tests/unictype/test-predicate-part1.h.
20724         * tests/unicase/test-predicate-part2.h: New file, same as
20725         tests/unictype/test-predicate-part2.h.
20726
20727         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20728         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20729         (output_casing_properties): New function.
20730         (main): Call it.
20731         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20732         * lib/unicase/cased.c: Include unictype/bitmap.h.
20733         (uc_is_cased): Define through a bitmap lookup.
20734         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20735         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20736         (uc_is_case_ignorable): Define through a bitmap lookup.
20737         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20738         lib/unictype/bitmap.h.
20739         (Depends-on): Add inline. Clean up.
20740         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20741         lib/unictype/bitmap.h.
20742         (Depends-on): Add inline. Clean up.
20743         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20744         recognition.
20745         * tests/unicase/test-u16-tolower.c (main): Likewise.
20746         * tests/unicase/test-u32-tolower.c (main): Likewise.
20747
20748 2009-06-30  Bruno Haible  <bruno@clisp.org>
20749
20750         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20751         * lib/unicase/u16-casemap.c: Likewise.
20752         * lib/unicase/u32-casemap.c: Likewise.
20753
20754 2009-06-29  Bruno Haible  <bruno@clisp.org>
20755
20756         Define u32_casefold as a wrapper around u32_ct_casefold.
20757         * lib/unicase/u32-casefold.c: Update.
20758         * modules/unicase/u32-casefold (Depends-on): Add
20759         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20760         unicase/empty-suffix-context. Clean up.
20761
20762         Define u16_casefold as a wrapper around u16_ct_casefold.
20763         * lib/unicase/u16-casefold.c: Update.
20764         * modules/unicase/u16-casefold (Depends-on): Add
20765         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20766         unicase/empty-suffix-context. Clean up.
20767
20768         Define u8_casefold as a wrapper around u8_ct_casefold.
20769         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20770         * lib/unicase/u8-casefold.c: Update.
20771         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20772         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20773
20774         Define u32_totitle as a wrapper around u32_ct_totitle.
20775         * lib/unicase/u32-totitle.c: Update.
20776         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20777         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20778
20779         Define u16_totitle as a wrapper around u16_ct_totitle.
20780         * lib/unicase/u16-totitle.c: Update.
20781         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20782         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20783
20784         Define u8_totitle as a wrapper around u8_ct_totitle.
20785         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20786         functions.
20787         (FUNC): Delegate to U_CT_TOTITLE.
20788         * lib/unicase/u8-totitle.c: Update.
20789         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20790         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20791
20792         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20793         invocation.
20794         * modules/unicase/u32-tolower (Depends-on): Add
20795         unicase/empty-prefix-context, unicase/empty-suffix-context.
20796
20797         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20798         invocation.
20799         * modules/unicase/u16-tolower (Depends-on): Add
20800         unicase/empty-prefix-context, unicase/empty-suffix-context.
20801
20802         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20803         * modules/unicase/u8-tolower (Depends-on): Add
20804         unicase/empty-prefix-context, unicase/empty-suffix-context.
20805
20806         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20807         invocation.
20808         * modules/unicase/u32-toupper (Depends-on): Add
20809         unicase/empty-prefix-context, unicase/empty-suffix-context.
20810
20811         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20812         invocation.
20813         * modules/unicase/u16-toupper (Depends-on): Add
20814         unicase/empty-prefix-context, unicase/empty-suffix-context.
20815
20816         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20817         * modules/unicase/u8-toupper (Depends-on): Add
20818         unicase/empty-prefix-context, unicase/empty-suffix-context.
20819
20820         New module 'unicase/u32-ct-casefold'.
20821         * lib/unicase/u32-ct-casefold.c: New file.
20822         * modules/unicase/u32-ct-casefold: New file.
20823
20824         New module 'unicase/u16-ct-casefold'.
20825         * lib/unicase/u16-ct-casefold.c: New file.
20826         * modules/unicase/u16-ct-casefold: New file.
20827
20828         New module 'unicase/u8-ct-casefold'.
20829         * lib/unicase/u8-ct-casefold.c: New file.
20830         * lib/unicase/u-ct-casefold.h: New file, derived from
20831         lib/unicase/u-casefold.h.
20832         * modules/unicase/u8-ct-casefold: New file.
20833
20834         New module 'unicase/u32-ct-totitle'.
20835         * lib/unicase/u32-ct-totitle.c: New file.
20836         * modules/unicase/u32-ct-totitle: New file.
20837
20838         New module 'unicase/u16-ct-totitle'.
20839         * lib/unicase/u16-ct-totitle.c: New file.
20840         * modules/unicase/u16-ct-totitle: New file.
20841
20842         New module 'unicase/u8-ct-totitle'.
20843         * lib/unicase/u8-ct-totitle.c: New file.
20844         * lib/unicase/u-ct-totitle.h: New file, derived from
20845         lib/unicase/u-totitle.h.
20846         * modules/unicase/u8-ct-totitle: New file.
20847
20848         New module 'unicase/u32-ct-tolower'.
20849         * lib/unicase/u32-ct-tolower.c: New file.
20850         * modules/unicase/u32-ct-tolower: New file.
20851
20852         New module 'unicase/u16-ct-tolower'.
20853         * lib/unicase/u16-ct-tolower.c: New file.
20854         * modules/unicase/u16-ct-tolower: New file.
20855
20856         New module 'unicase/u8-ct-tolower'.
20857         * lib/unicase/u8-ct-tolower.c: New file.
20858         * modules/unicase/u8-ct-tolower: New file.
20859
20860         New module 'unicase/u32-ct-toupper'.
20861         * lib/unicase/u32-ct-toupper.c: New file.
20862         * modules/unicase/u32-ct-toupper: New file.
20863
20864         New module 'unicase/u16-ct-toupper'.
20865         * lib/unicase/u16-ct-toupper.c: New file.
20866         * modules/unicase/u16-ct-toupper: New file.
20867
20868         New module 'unicase/u8-ct-toupper'.
20869         * lib/unicase/u8-ct-toupper.c: New file.
20870         * modules/unicase/u8-ct-toupper: New file.
20871
20872         Add context arguments to u*_casemap functions.
20873         * lib/unicase/unicasemap.h: Include unicase.h.
20874         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20875         suffix_context arguments.
20876         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20877         functions.
20878         (FUNC): Add prefix_context and suffix_context arguments. Use
20879         uc_is_cased and uc_is_case_ignorable.
20880         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20881         * lib/unicase/u16-casemap.c: Likewise.
20882         * lib/unicase/u32-casemap.c: Likewise.
20883         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20884         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20885         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20886         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20887         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20888         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20889
20890         New module 'unicase/u32-suffix-context'.
20891         * lib/unicase/u32-suffix-context.c: New file.
20892         * modules/unicase/u32-suffix-context: New file.
20893
20894         New module 'unicase/u16-suffix-context'.
20895         * lib/unicase/u16-suffix-context.c: New file.
20896         * modules/unicase/u16-suffix-context: New file.
20897
20898         New module 'unicase/u8-suffix-context'.
20899         * lib/unicase/u8-suffix-context.c: New file.
20900         * lib/unicase/u-suffix-context.h: New file.
20901         * modules/unicase/u8-suffix-context: New file.
20902
20903         New module 'unicase/empty-suffix-context'.
20904         * lib/unicase/empty-suffix-context.c: New file.
20905         * modules/unicase/empty-suffix-context: New file.
20906
20907         New module 'unicase/u32-prefix-context'.
20908         * lib/unicase/u32-prefix-context.c: New file.
20909         * modules/unicase/u32-prefix-context: New file.
20910
20911         New module 'unicase/u16-prefix-context'.
20912         * lib/unicase/u16-prefix-context.c: New file.
20913         * modules/unicase/u16-prefix-context: New file.
20914
20915         New module 'unicase/u8-prefix-context'.
20916         * lib/unicase/u8-prefix-context.c: New file.
20917         * lib/unicase/u-prefix-context.h: New file.
20918         * lib/unicase/context.h: New file.
20919         * modules/unicase/u8-prefix-context: New file.
20920
20921         New module 'unicase/empty-prefix-context'.
20922         * lib/unicase/empty-prefix-context.c: New file.
20923         * modules/unicase/empty-prefix-context: New file.
20924
20925         New module 'unicase/ignorable'.
20926         * lib/unicase/ignorable.c: New file.
20927         * modules/unicase/ignorable: New file.
20928
20929         New module 'unicase/cased'.
20930         * lib/unicase/caseprop.h: New file.
20931         * lib/unicase/cased.c: New file.
20932         * modules/unicase/cased: New file.
20933
20934         New functions for case mapping of substrings.
20935         * lib/unicase.h (casing_prefix_context_t): New type.
20936         (unicase_empty_prefix_context): New variable.
20937         (u8_casing_prefix_context, u16_casing_prefix_context,
20938         u32_casing_prefix_context, u8_casing_prefixes_context,
20939         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20940         declarations.
20941         (casing_suffix_context_t): New type.
20942         (unicase_empty_suffix_context): New variable.
20943         (u8_casing_suffix_context, u16_casing_suffix_context,
20944         u32_casing_suffix_context, u8_casing_suffixes_context,
20945         u16_casing_suffixes_context, u32_casing_suffixes_context,
20946         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20947         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20948         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20949         declarations.
20950
20951 2009-06-28  Jim Meyering  <meyering@redhat.com>
20952
20953         boostrap: indent only with spaces
20954         * build-aux/bootstrap: Indent only with spaces, never TABs.
20955
20956         bootstrap: split long lines
20957         * build-aux/bootstrap: Keep line length < 80.
20958
20959         bootstrap: sync from coreutils
20960         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20961         just as autoreconf does.  Verify a list of prerequisite
20962         package-name,version-number pairs if defined in bootstrap.conf.
20963         Refer to README-prereq, if prerequisites are not satisfied.
20964
20965 2009-06-27  Eric Blake  <ebb9@byu.net>
20966
20967         tests: add test for bogus NULL definition
20968         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20969         * tests/test-stdlib.c: Likewise.
20970         * tests/test-string.c: Likewise.
20971         * tests/test-locale.c: Likewise.
20972         * tests/test-unistd.c: Likewise.
20973         * modules/stdio-tests (Depends-on): Add verify.
20974         * modules/stdlib-tests (Depends-on): Likewise.
20975         * modules/string-tests (Depends-on): Likewise.
20976         * modules/locale-tests (Depends-on): Likewise.
20977         * modules/unistd-tests (Depends-on): Likewise.
20978
20979 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20980
20981         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20982         self-explaining comment.
20983         * m4/selinux-selinux-h: Update serial.
20984         (gl_LIBSELINUX): New macro, adding a warning for missing development
20985         packages to code extracted from...
20986         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20987         Add warning for missing development packages here, too.
20988
20989 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20990
20991         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20992
20993 2009-06-25  Eric Blake  <ebb9@byu.net>
20994
20995         version-etc: fix regression
20996         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20997         gcc.
20998         (version_etc): Use it, to catch bugs with trailing NULL.
20999         * lib/version-etc.c (version_etc_arn): Delete unused argument.
21000         (version_etc_va): Fix logic bug.
21001         * modules/version-etc-tests: Add test.
21002         * tests/test-version-etc.c: New file.
21003         * tests/test-version-etc.sh: Likewise.
21004
21005 2009-06-25  Sam Steingold  <sds@gnu.org>
21006
21007         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
21008         mbtowc declaration.
21009
21010 2009-06-25  Eric Blake  <ebb9@byu.net>
21011
21012         fpurge: migrate into <stdio.h>
21013         * lib/fpurge.h: Delete...
21014         * lib/stdio.in.h (fpurge): ...and declare here, instead.
21015         * lib/fpurge.c (fpurge): Change declaring header.
21016         * modules/fpurge (Files): Drop deleted file.
21017         (Depends-on): Add stdio.
21018         (configure.ac): Set witness.
21019         * modules/stdio (Makefile.am): Support fpurge macros.
21020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21021         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
21022         * lib/fflush.c: Update client.
21023         * tests/test-fpurge.c: Likewise.
21024         * NEWS: Mention the change.
21025
21026 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21027
21028         * lib/argp-version-etc.c (program_authors): Add const
21029         qualifier.
21030         * lib/version-etc.c: Fix typos in the comments.
21031         * modules/argp-version-etc: Depends on version-etc.
21032
21033 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21034
21035         argp-version-etc: new module.
21036
21037         * lib/argp-version-etc.c: New file.
21038         * lib/argp-version-etc.h: New file.
21039         * modules/argp-version-etc: New file.
21040         * modules/argp-version-etc-tests: New file.
21041         * tests/test-argp-version-etc.c: New test.
21042         * tests/test-argp-version-etc-1.sh: New test.
21043
21044 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21045
21046         Provide additional interfaces and documentation for version-etc
21047         module.
21048
21049         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
21050         interfaces.
21051         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
21052         prototypes.
21053
21054 2009-06-24  Bruno Haible  <bruno@clisp.org>
21055
21056         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
21057         HAVE_LIB${NAME} macro.
21058         Reported by Sam Steingold <sds@gnu.org>.
21059
21060 2009-06-23  Simon Josefsson  <simon@josefsson.org>
21061
21062         * modules/hash-tests (test_hash_LDADD): Link to libintl when
21063         needed.
21064
21065 2009-06-21  Bruno Haible  <bruno@clisp.org>
21066
21067         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
21068         work.
21069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
21070         together with LIB${NAME}, LTLIB${NAME}.
21071         Reported by Sam Steingold <sds@gnu.org>.
21072
21073 2009-06-20  Jim Meyering  <meyering@redhat.com>
21074
21075         tests: make sc_require_test_exit_idiom more generic
21076         * top/maint.mk (Exit_witness_file): New overridable variable.
21077         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
21078         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
21079
21080 2009-06-19  Jim Meyering  <meyering@redhat.com>
21081
21082         hash: reverse order of src/dst parameters in an internal interface
21083         * lib/hash.c (transfer_entries): Reverse order of parameters to
21084         put DST before SRC.  Adjust callers.
21085
21086         tests: test-hash: avoid wholesale duplication
21087         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
21088         Instead, use a loop and add a single conditional.
21089
21090         tests: test-hash: allow seed selection via a command line argument
21091         * tests/test-hash.c (get_seed): New function.
21092         (main): Use it.
21093
21094 2009-06-19  Eric Blake  <ebb9@byu.net>
21095
21096         hash: avoid memory leak on allocation failure
21097         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
21098         failure.  Factor repeated algorithm...
21099         (transfer_entries): ...into new helper routine.
21100         (hash_delete): React to hash_rehash return value.
21101
21102         hash: reduce memory pressure in hash_rehash no-op case
21103         * lib/hash.c (next_prime): Avoid overflow.
21104         (hash_initialize): Factor bucket size computation...
21105         (compute_bucket_size): ...into new helper function.
21106         (hash_rehash): Use new function and open coding to reduce memory
21107         pressure, and avoid a memory leak in USE_OBSTACK code.
21108         Reported by Jim Meyering.
21109
21110 2009-06-18  Eric Blake  <ebb9@byu.net>
21111
21112         hash: make rotation more obvious
21113         * modules/hash (Depends-on): Add bitrotate and stdint.
21114         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
21115         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21116         (SIZE_MAX): Rely on headers for definition.
21117         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21118         (raw_hasher): Use rotr_sz.
21119         Suggested by Jim Meyering.
21120
21121         hash: fix memory leak in last patch
21122         * lib/hash.c (hash_rehash): Avoid memory leak.
21123
21124         hash: avoid no-op rehashing
21125         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21126
21127         hash: provide default callback functions
21128         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21129         (hash_initialize): Use them as defaults.
21130         * tests/test-hash.c (main): Test this.
21131
21132         hash: minor optimization
21133         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21134         when possible.
21135         (hash_initialize): Document this promise.
21136         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21137         * tests/test-hash.c (hash_compare_strings): Test this.
21138
21139 2009-06-18  Bruno Haible  <bruno@clisp.org>
21140
21141         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21142         going to be replaced anyway.
21143
21144 2009-06-18  Bruno Haible  <bruno@clisp.org>
21145
21146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21147         in one place.
21148         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21149         be replaced anyway.
21150
21151 2009-06-18  Eric Blake  <ebb9@byu.net>
21152
21153         hash: check for resize before insertion
21154         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21155         threshold before insertion, so that a pathological hash_rehash
21156         that fills every bucket can still trigger another rehash.
21157
21158 2009-06-18  Jim Meyering  <meyering@redhat.com>
21159
21160         hash-tests: add a loop around the small tests
21161         * tests/test-hash.c (main): Repeat small tests with selected
21162         small initial table sizes.
21163
21164 2009-06-17  Eric Blake  <ebb9@byu.net>
21165
21166         hash: minor cleanups
21167         * lib/hash.h (hash_entry): Make opaque, by moving...
21168         * lib/hash.c (hash_entry): ...here.
21169         (hash_insert): Clarify restrictions on what can be inserted.
21170         (hash_get_next): Clarify when it is safe to remove an element
21171         during traversal.
21172         (check_tuning): Skip verification when tuning is known safe.
21173         (hash_initialize): Clarify restrictions on tuning.
21174
21175 2009-06-17  Jim Meyering  <jim@meyering.net>
21176         and Eric Blake  <ebb9@byu.net>
21177
21178         hash-tests: new module
21179         * modules/hash-tests: New file.
21180         * tests/test-hash.c: New file.
21181
21182 2009-06-17  Eric Blake  <ebb9@byu.net>
21183
21184         strstr-simple: document new module
21185         * MODULES.html.sh: Document new module.
21186
21187         strstr, strcasestr: replace on platforms with broken memchr
21188         * modules/strstr: Split into...
21189         * modules/strstr-simple: ...new module that does not care about
21190         performance, but does care about glibc bug.
21191         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21192         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21193         if platform memchr is broken, per Debian bug 521737.
21194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21195         memchr.
21196         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21197         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21198         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21199         * modules/mountlist (Depends-on): Add strstr-simple.
21200         * modules/gen-uni-tables (Depends-on): Likewise.
21201         * modules/argz (Depends-on): Add strstr.
21202
21203 2009-06-17  Bruno Haible  <bruno@clisp.org>
21204
21205         * modules/posix_spawn-internal (Depends-on): Add errno.
21206
21207 2009-06-17  Bruno Haible  <bruno@clisp.org>
21208
21209         Define missing ESTALE on Interix 3.5.
21210         * lib/errno.in.h (ESTALE): Assign a value if missing.
21211         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21212         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21213         missing.
21214         * doc/posix-headers/errno.texi: Mention the Interix bug.
21215         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21216
21217 2009-06-15  Eric Blake  <ebb9@byu.net>
21218
21219         memchr, memchr2: add valgrind exception
21220         * lib/memchr.valgrind: New file.
21221         * lib/memchr2.valgrind: New file.
21222         * modules/memchr (Files): Distribute valgrind file.
21223         * modules/memchr2 (Files): Likewise.
21224
21225         docs: memchr is no longer obsolete
21226         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21227         * lib/string.in.h (memchr): Simplify logic.
21228
21229 2009-06-14  Jim Meyering  <meyering@redhat.com>
21230
21231         link-follow: fix the "checking..." message to not mention trailing slash
21232         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21233         never considered trailing slashes.
21234
21235 2009-06-14  Bruno Haible  <bruno@clisp.org>
21236
21237         * m4/memchr.m4: Mention also the bug on IA-64.
21238         * doc/posix-functions/memchr.texi: Likewise.
21239
21240 2009-06-12  Eric Blake  <ebb9@byu.net>
21241
21242         memchr: detect broken x86_64 and alpha implementations
21243         * modules/memchr-tests (Depends-on): Move mmap detection...
21244         * modules/memchr (Depends-on): ...here.
21245         (configure.ac): Set indicator.
21246         * lib/string.in.h (memchr): Declare replacement.
21247         * modules/string (Makefile.am): Trigger replacement.
21248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21249         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21250         bugs.
21251         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21252         * modules/getpagesize (License): Relax license.
21253
21254 2009-06-11  Bruno Haible  <bruno@clisp.org>
21255
21256         * lib/idpriv.h: Add more references.
21257
21258 2009-06-08  Bruno Haible  <bruno@clisp.org>
21259
21260         Tests for module 'idpriv-droptemp'.
21261         * modules/idpriv-droptemp-tests: New file.
21262         * tests/test-idpriv-droptemp.sh: New file.
21263         * tests/test-idpriv-droptemp.su.sh: New file.
21264         * tests/test-idpriv-droptemp.c: New file.
21265
21266         New module 'idpriv-droptemp'.
21267         * lib/idpriv-droptemp.c: New file.
21268         * modules/idpriv-droptemp: New file.
21269
21270 2009-06-08  Bruno Haible  <bruno@clisp.org>
21271
21272         Tests for module 'idpriv-drop'.
21273         * modules/idpriv-drop-tests: New file.
21274         * tests/test-idpriv-drop.sh: New file.
21275         * tests/test-idpriv-drop.su.sh: New file.
21276         * tests/test-idpriv-drop.c: New file.
21277
21278         New module 'idpriv-drop'.
21279         * lib/idpriv.h: New file.
21280         * lib-idpriv-drop.c: New file.
21281         * m4/idpriv.m4: New file.
21282         * modules/idpriv-drop: New file.
21283
21284 2009-06-08  Bruno Haible  <bruno@clisp.org>
21285
21286         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21287         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21288         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21289         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21290         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21291         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21292         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21293
21294 2009-06-08  Eric Blake  <ebb9@byu.net>
21295
21296         test-strstr: use memory fence, when possible
21297         * tests/test-strstr.c (main): Use memory fence, in order to be
21298         more likely to trigger Debian bug 521737.
21299         * modules/strstr-tests (Files): Pull in additional files.
21300
21301         memchr: no longer obsolete, for wider field testing
21302         * modules/memchr (Status, Notice): Delete, this module is no
21303         longer obsolete.
21304         * modules/vasnprintf (Depends-on): Add memchr.
21305
21306 2009-06-07  Jim Meyering  <meyering@redhat.com>
21307
21308         hash: declare some functions with the warn_unused_result attribute
21309         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21310
21311 2009-06-07  Bruno Haible  <bruno@clisp.org>
21312
21313         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21314         Reported by Eric Blake.
21315
21316 2009-06-06  Eric Blake  <ebb9@byu.net>
21317
21318         test-alignof: fix typo with long double
21319         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21320         compiler error.
21321
21322 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21323
21324         Escape non-texinfo { and }s.
21325         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21326         markup error.
21327
21328 2009-06-04  Jim Meyering  <meyering@redhat.com>
21329
21330         gitlog-to-changelog: don't infloop on an empty commit log
21331         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21332         Reported by Boris Petersen <transacid@centerim.org>.
21333
21334 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21335
21336         version-etc: extend for packagers
21337         Add three new configure options, intended for packagers:
21338           --with-packager="packager name"
21339           --with-packager-version="packager-specific version"
21340           --with-packager-bug-reports="packager bug reporting"
21341         An example with coreutils:
21342           $ ./configure \
21343             --with-packager=Gentoo \
21344             --with-packager-bug-report=http://bugs.gentoo.org/ \
21345             --with-packager-version="patchset 1.6"
21346           $ ./src/ls --version | head -n2
21347           ls (GNU coreutils) 7.1-dirty
21348           Packaged by Gentoo (patchset 1.6)
21349         Note that the bug reporting info via --help doesn't show up because
21350         coreutils uses its own custom emit_bug_reporting_address() implementation
21351         in src/system.h.  If it didn't, it'd look like:
21352           $ ./src/ls --help | tail -n4
21353           Report bugs to <bug-coreutils@gnu.org>.
21354           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21355           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21356           General help using GNU software: <http://www.gnu.org/gethelp/>.
21357         * lib/version-etc.c: Print new information, if provided.
21358         * m4/version-etc.m4: New file.
21359         * modules/version-etc (Files): Add m4/version-etc.m4.
21360         (configure.ac): Add gl_VERSION_ETC.
21361
21362 2009-05-31  Bruno Haible  <bruno@clisp.org>
21363
21364         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21365         and 'int64_t'.
21366         * modules/alignof-tests (Dependencies): Add stdint.
21367         Reported by Eric Blake.
21368
21369 2009-05-31  Bruno Haible  <bruno@clisp.org>
21370
21371         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21372         restriction due to compiler bugs.
21373         Reported by Eric Blake.
21374
21375 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21376             Bruno Haible  <bruno@clisp.org>
21377
21378         Fix test-alignof failure.
21379         * lib/alignof.h (alignof_slot): New macro.
21380         (alignof_type): New macro, with the same semantics as the previous
21381         'alignof'.
21382         (alignof): Alias to alignof_slot.
21383         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21384         check that the results are usable as constant expressions.
21385
21386 2009-05-31  Bruno Haible  <bruno@clisp.org>
21387
21388         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21389         * tests/test-memchr.c (main): Check that memchr does not read past the
21390         first occurrence of the byte.
21391         * tests/test-strstr.c (main): Update comment.
21392         Suggested by Eric Blake.
21393
21394 2009-05-30  Bruno Haible  <bruno@clisp.org>
21395
21396         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21397         detail how to use dumpbin.
21398         Reported by David Byron <dbyron@dbyron.com>.
21399
21400 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21401
21402         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21403
21404 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21405
21406         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21407
21408 2009-05-28  Bruno Haible  <bruno@clisp.org>
21409
21410         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21411         build-aux/ files.
21412
21413 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21414
21415         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21416
21417 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21418
21419         * gnulib-tool (sed_transform_main_lib_file)
21420         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21421         regexps.
21422
21423 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21424
21425         * tests/test-strstr.c: Add another self-test.
21426         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21427         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21428
21429 2009-05-23  Bruno Haible  <bruno@clisp.org>
21430
21431         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21432         change.
21433
21434 2009-05-21  Bruno Haible  <bruno@clisp.org>
21435
21436         Simplify use of mode_t varargs.
21437         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21438         uses 'mode_t' or 'int'.
21439         * lib/openat.c (openat): Likewise.
21440         * lib/open-safer.c (open_safer): Likewise.
21441         * m4/mode_t.m4: New file.
21442         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21443         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21444         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21445         * modules/open (Files): Add m4/mode_t.m4.
21446         * modules/openat (Files): Likewise.
21447         * modules/fcntl-safer (Files): Likewise.
21448         Suggested by Eric Blake.
21449
21450 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21451
21452         * doc/glibc-functions/fallocate.texi: New file.
21453         * doc/gnulib.texi: Include it.
21454
21455 2009-05-21  Eric Blake  <ebb9@byu.net>
21456             Bruno Haible  <bruno@clisp.org>
21457
21458         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21459         invocations.
21460         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21461
21462 2009-05-21  Eric Blake  <ebb9@byu.net>
21463             Bruno Haible  <bruno@clisp.org>
21464
21465         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21466         include_next. Fix of 2008-11-20 commit.
21467         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21468         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21469         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21470         NEXT_MATH_H.
21471         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21472         instead of NEXT_MATH_H.
21473
21474 2009-05-21  Bruno Haible  <bruno@clisp.org>
21475
21476         Avoid redefinition warnings for SIZE_MAX.
21477         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21478         Reported by Simon Josefsson.
21479
21480 2009-05-21  Bruno Haible  <bruno@clisp.org>
21481
21482         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21483         AC_CACHE_VAL.
21484
21485 2009-05-20  Bruno Haible  <bruno@clisp.org>
21486
21487         Make zeroptr.h work on mingw.
21488         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21489         mprotect.
21490         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21491         * modules/memchr2-tests (configure.ac): Likewise.
21492         * modules/memcmp-tests (configure.ac): Likewise.
21493         * modules/memmem-tests (configure.ac): Likewise.
21494         * modules/memrchr-tests (configure.ac): Likewise.
21495         Reported by Simon Josefsson.
21496
21497 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21498
21499         * tests/test-glob.c: Include string.h for strcmp prototype.
21500
21501 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21502
21503         * modules/getdelim (Depends-on): Add explicit stdint, although it
21504         was implicitly already pulled in via realloc-posix.
21505         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21506
21507 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21508
21509         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21510         G. Christensen" <tgc@jupiterrise.com>.
21511         * m4/sys_socket_h.m4: Check for sa_family_t.
21512         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21513         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21514         * tests/test-sys_socket.c: Check that sa_family_t works.
21515
21516 2009-05-18  Eric Blake  <ebb9@byu.net>
21517
21518         maint.mk: allow gnulib_dir in VPATH build
21519         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21520
21521 2009-05-15  Jim Meyering  <meyering@redhat.com>
21522
21523         maint.mk: Give gnulib_dir a default definition.
21524         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21525         Thus, most packages no longer need to specify this variable in cfg.mk
21526
21527 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21528
21529         rename.m4: fix typos that would make non-mingw cross-configure fail
21530         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21531
21532 2009-05-13  Eric Blake  <ebb9@byu.net>
21533
21534         mmap-anon: avoid out-of-order autoconf expansion
21535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21536         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21537         * modules/memchr-tests (Depends-on): Add extensions.
21538         * modules/memchr2-tests (Depends-on): Add extensions.
21539         * modules/memcmp-tests (Depends-on): Add extensions.
21540         * modules/memmem-tests (Depends-on): Add extensions.
21541         * modules/memrchr-tests (Depends-on): Add extensions.
21542
21543 2009-05-13  Bruno Haible  <bruno@clisp.org>
21544
21545         Make some tests ISO C 99 compliant.
21546         * tests/zerosize-ptr.h: New file.
21547         * tests/test-memchr.c: Include zerosize-ptr.h.
21548         (main): Use a zero-size object pointer instead of NULL.
21549         * tests/test-memchr2.c: Include zerosize-ptr.h.
21550         (main): Use a zero-size object pointer instead of NULL.
21551         * tests/test-memcmp.c: Include zerosize-ptr.h.
21552         (main): Use a zero-size object pointer instead of NULL.
21553         * tests/test-memmem.c: Include zerosize-ptr.h.
21554         (main): Use a zero-size object pointer instead of NULL.
21555         * tests/test-memrchr.c: Include zerosize-ptr.h.
21556         (main): Use a zero-size object pointer instead of NULL.
21557         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21558         m4/mmap-anon.m4.
21559         (Depends-on): Add getpagesize.
21560         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21561         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21562         m4/mmap-anon.m4.
21563         (Depends-on): Add getpagesize.
21564         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21565         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21566         m4/mmap-anon.m4.
21567         (Depends-on): Add getpagesize.
21568         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21569         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21570         m4/mmap-anon.m4.
21571         (Depends-on): Add getpagesize.
21572         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21573         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21574         m4/mmap-anon.m4.
21575         (Depends-on): Add getpagesize.
21576         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21577
21578 2009-05-12  Bruno Haible  <bruno@clisp.org>
21579
21580         Tests for module 'alignof'.
21581         * modules/alignof-tests: New file.
21582         * tests/test-alignof.c: New file.
21583
21584 2009-05-12  Bruno Haible  <bruno@clisp.org>
21585
21586         Fix alignof macro.
21587         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21588         vendor compilers that are always correct.
21589
21590 2009-05-12  Bruno Haible  <bruno@clisp.org>
21591
21592         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21593         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21594         not whether its fully works.
21595
21596 2009-05-12  Bruno Haible  <bruno@clisp.org>
21597
21598         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21599
21600 2009-05-12  Jim Meyering  <meyering@redhat.com>
21601
21602         * top/maint.mk: Adjust backslash alignment.
21603
21604 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21605
21606         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21607
21608 2009-05-11  Eric Blake  <ebb9@byu.net>
21609
21610         argp: avoid undefined behavior
21611         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21612         macros.
21613
21614 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21615
21616         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21617         user.name to prevent git commit from complaining.
21618
21619 2009-05-10  Bruno Haible  <bruno@clisp.org>
21620
21621         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21622         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21623         it rewrites every file name only once.
21624         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21625
21626 2009-05-08  Bruno Haible  <bruno@clisp.org>
21627
21628         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21629         instead of 'max'.
21630
21631 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21632
21633         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21634         sockaddr_storage test.
21635
21636 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21637
21638         * modules/sys_socket (Makefile.am): Substitute
21639         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21640         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21641         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21642         * tests/test-sys_socket.c: Check sockaddr_storage.
21643
21644 2009-05-08  Bruno Haible  <bruno@clisp.org>
21645
21646         New module 'alignof'.
21647         * lib/alignof.h: New file.
21648         * modules/alignof: New file.
21649
21650 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21651             Bruno Haible  <bruno@clisp.org>
21652
21653         Fix test-file-has-acl on FreeBSD.
21654         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21655         mask is implicitly added.
21656         * tests/test-file-has-acl.c: Include <signal.h>.
21657         (main): Terminate the test after 5 seconds.
21658         * modules/acl-tests (configure.ac): Check for alarm function.
21659
21660 2009-05-04  Bruno Haible  <bruno@clisp.org>
21661
21662         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21663         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21664         * modules/errno (configure.ac): Drop AC_REQUIRE.
21665         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21666         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21667
21668 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21669
21670         * modules/glob-tests: New module.
21671         * tests/test-glob.c: Add.
21672
21673 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21674
21675         * modules/fnmatch-tests: New module.
21676         * tests/test-fnmatch.c: Add.
21677
21678 2009-05-04  Eric Blake  <ebb9@byu.net>
21679
21680         maint: make the new no-submodule-changes rule VPATH-safe
21681         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21682
21683 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21684             Bruno Haible  <bruno@clisp.org>
21685
21686         acl: Fix infinite loop on FreeBSD.
21687         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21688         of return value from acl_get_entry.
21689         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21690         Likewise.
21691
21692 2009-05-03  Bruno Haible  <bruno@clisp.org>
21693
21694         * lib/acl-internal.h (acl_entries): Clarify return value.
21695         * lib/acl_entries.c (acl_entries): Likewise.
21696
21697 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21698
21699         Bug fix in acl module.
21700         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21701
21702 2009-05-03  Bruno Haible  <bruno@clisp.org>
21703
21704         Create gperf-generated file in the source dir, not in the build dir.
21705         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21706         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21707         * modules/unicase/locale-language (unicase/locale-languages.h):
21708         Likewise.
21709         * modules/unicase/special-casing (unicase/special-casing-table.h):
21710         Likewise.
21711         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21712         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21713         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21714         Reported by Ralf Wildenhues.
21715
21716 2009-05-03  Bruno Haible  <bruno@clisp.org>
21717
21718         * modules/fnmatch (Description, configure.ac): Taken from
21719         fnmatch-posix.
21720         * modules/fnmatch-posix: Turn into a symbolic reference to the
21721         'fnmatch' module, and deprecate.
21722         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21723
21724 2009-05-03  Bruno Haible  <bruno@clisp.org>
21725
21726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21727         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21728         Reported by Ralf Wildenhues.
21729
21730 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21731
21732         * m4/fnmatch.m4: Fix fnmatch re-define.
21733
21734 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21735
21736         priv-set: new module and tests; adapt write-any-file
21737         * lib/priv-set.c: New file.
21738         * lib/priv-set.h: New file.
21739         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21740         * lib/write-any-file.c: Simplify by using priv-set module.
21741         * m4/priv-set.m4: New file.
21742         * modules/priv-set: New file.
21743         * modules/unlinkdir: Add dependency on priv-set module.
21744         * modules/write-any-file: Likewise.
21745
21746         Tests for module 'priv-set'.
21747         * modules/priv-set-tests: New file.
21748         * tests/test-priv-set.c: New file.
21749
21750 2009-05-03  Jim Meyering  <meyering@redhat.com>
21751             Bruno Haible  <bruno@clisp.org>
21752
21753         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21754         use the converted UTF-8 variant of the name instead.
21755
21756 2009-05-03  Jim Meyering  <meyering@redhat.com>
21757
21758         tests: tighten some getdate tests
21759         * tests/test-getdate.c (main): Tighten tests: require equality,
21760         not just greater than.  Set TZ envvar to UTC0.
21761
21762 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21763
21764         getdate: correctly interpret "next monday" when run on a Monday
21765         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21766         that e.g., "next tues" (when run on a tuesday) results in a date
21767         that is one week in the future, and not today's date.
21768         I.e., add a week when the wday is the same as the current one.
21769         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21770         and earlier by Martin Bernreuther and Jan Minář.
21771         * tests/test-getdate.c (main): Check that "next DAY" is always in
21772         the future and that "last DAY" is always in the past.
21773
21774 2009-05-02  Jim Meyering  <meyering@redhat.com>
21775
21776         build: ensure that a release build fails when a submodule is unclean
21777         * top/maint.mk (no-submodule-changes): New rule.
21778         (alpha beta major): Depend on it.
21779
21780 2009-05-02  Bruno Haible  <bruno@clisp.org>
21781
21782         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21783         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21784         shell variable gl_fnmatch_required to detect which variant is
21785         requested.
21786         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21787         gl_FUNC_FNMATCH_POSIX.
21788         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21789         exclude fnmatch-posix.
21790
21791 2009-05-02  Bruno Haible  <bruno@clisp.org>
21792
21793         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21794         * modules/mbsrtowcs (License): Change to LGPLv2+.
21795         * modules/strnlen1 (License): Likewise.
21796         Reported by Simon Josefsson.
21797
21798 2009-05-02  Bruno Haible  <bruno@clisp.org>
21799
21800         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21801         "cross".
21802         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21803         gnulib-tool was called with option --source-base=lib.
21804
21805 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21806
21807         Use automake *-local hooks without commands, for extensibility.
21808         * modules/localcharset (Makefile.am): Rename install-exec-local
21809         rule to install-exec-localcharset, and make it a prerequisite of
21810         install-exec-local.  Likewise, rename the uninstall-local rule to
21811         uninstall-localcharset, and make it a prerequisite of the former.
21812
21813 2009-05-01  Bruno Haible  <bruno@clisp.org>
21814
21815         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21816         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21817         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21819         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21820         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21821         m4/locale-zh.m4, m4/codeset.m4.
21822
21823         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21824         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21825         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21826         m4/locale-zh.m4.
21827
21828         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21829         REPLACE_WCRTOMB if mbstate_t must be replaced.
21830         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21831         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21832
21833 2009-05-01  Bruno Haible  <bruno@clisp.org>
21834
21835         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21836         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21837         dngettext, dcngettext, textdomain, bindtextdomain,
21838         bind_textdomain_codeset): Undefine before redefining.
21839
21840 2009-04-30  Bruno Haible  <bruno@clisp.org>
21841
21842         Fix bug introduced on 2009-04-25.
21843         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21844         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21845         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21846         is defined.
21847         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21848         is defined.
21849         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21850         is defined.
21851         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21852
21853 2009-04-28  Bruno Haible  <bruno@clisp.org>
21854
21855         Comment tweaks.
21856         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21857         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21858         * lib/unicase.h (u*_casexfrm): Likewise.
21859         Reported by Paolo Bonzini.
21860
21861 2009-04-28  Bruno Haible  <bruno@clisp.org>
21862
21863         Fix a compilation error.
21864         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21865         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21866         Reported by Jim Meyering.
21867
21868 2009-04-27  Bruno Haible  <bruno@clisp.org>
21869
21870         New module 'libunistring'.
21871         * modules/libunistring: New file.
21872         * m4/libunistring.m4: New file.
21873         * MODULES.html.sh (Unicode string functions): Add it.
21874
21875 2009-04-27  Eric Blake  <ebb9@byu.net>
21876
21877         maint.mk: allow package-specific header to provide <config.h>
21878         * top/maint.mk (sc_require_config_h): New variable.
21879         (sc_require_config_h, sc_require_config_h_first): Use it.
21880
21881 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21882
21883         * top/maint.mk (sc_avoid_if_before_free): Except
21884         useless-if-before-free script.
21885
21886 2009-04-27  Eric Blake  <ebb9@byu.net>
21887
21888         maintainer-makefile: depend on all required helper scripts
21889         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21890         useless-if-before-free.
21891         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21892         version, rather than assuming gnulib checkout is available.
21893         Reported by Simen Josefsson.
21894
21895 2009-04-26  Bruno Haible  <bruno@clisp.org>
21896
21897         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21898         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21899         "../" or "..".
21900
21901 2009-04-26  Bruno Haible  <bruno@clisp.org>
21902
21903         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21904         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21905         AC_LIB_HAVE_LINKFLAGS.
21906
21907 2009-04-26  Bruno Haible  <bruno@clisp.org>
21908
21909         Simplify calling convention of u*_conv_from_encoding.
21910         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21911         u32_conv_from_encoding): Expect a resultbuf argument and return the
21912         result directly as a pointer.
21913         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21914         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21915         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21916         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21917         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21918         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21919         Update.
21920         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21921         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21922         * lib/vasnprintf.c (VASNPRINTF): Update.
21923         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21924         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21925         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21926         * NEWS: Mention the change.
21927
21928 2009-04-26  Bruno Haible  <bruno@clisp.org>
21929
21930         Simplify calling convention of u*_conv_to_encoding.
21931         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21932         u32_conv_to_encoding): Expect a resultbuf argument and return the
21933         result directly as a pointer.
21934         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21935         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21936         freeing scaled_offsets if mem_iconveha failed.
21937         * lib/unicase/u-casexfrm.h (FUNC): Update.
21938         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21939         * lib/vasnprintf.c (VASNPRINTF): Update.
21940         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21941         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21942         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21943         * NEWS: Mention the change.
21944
21945 2009-04-26  Bruno Haible  <bruno@clisp.org>
21946
21947         Avoid test failures on AIX and OSF/1.
21948         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21949         malloc(0).
21950         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21951         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21952         Likewise.
21953         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21954         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21955         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21956         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21957         * doc/posix-functions/malloc.texi: Document the portability problem
21958         related to malloc(0).
21959
21960 2009-04-26  Bruno Haible  <bruno@clisp.org>
21961
21962         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21963         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21964         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21965
21966 2009-04-25  Bruno Haible  <bruno@clisp.org>
21967
21968         Avoid link error when creating a namespace clean library.
21969         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21970         as macro with arguments if already defined as an alias.
21971         * lib/signbitf.c (gl_signbitf): Don't undefine.
21972         * lib/signbitd.c (gl_signbitd): Don't undefine.
21973         * lib/signbitl.c (gl_signbitl): Don't undefine.
21974
21975 2009-04-25  Jim Meyering  <meyering@redhat.com>
21976
21977         vc-list-files: fix another quoting bug
21978         * build-aux/vc-list-files: Avoid sed backslash expansion
21979         of pathological directory names.
21980
21981 2009-04-25  Eric Blake  <ebb9@byu.net>
21982
21983         vc-list-files: fix shell quoting error
21984         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21985         timestamp.
21986
21987 2009-04-25  Jim Meyering  <meyering@redhat.com>
21988
21989         vc-list-files: restore lost functionality with subdir argument
21990         * build-aux/vc-list-files: When given a non-"." sub-directory
21991         argument, substitute the $dir/ prefix back onto each resulting name.
21992         Otherwise, coreutils' root_tests check would fail.
21993
21994 2009-04-24  Eric Blake  <ebb9@byu.net>
21995
21996         vc-list-files: ignore git symlinks
21997         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21998         than ls-files, to ignore git symlinks.
21999
22000         maint.mk: import improvements from m4
22001         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
22002         (move_if_change): Delete unused macro.
22003         (news-date-check, vc-diff-check): Support VPATH builds.
22004         (announcement): Likewise.  Split --bootstrap-tools list...
22005         (boostrap-tools): ...into separate list, which can be overridden
22006         in cfg.mk.
22007         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
22008         requiring dependency on useless-if-before-free module.
22009         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
22010         Support VPATH builds.
22011
22012 2009-04-24  Jim Meyering  <meyering@redhat.com>
22013
22014         maint.mk: remove coreutils-specific rules and variables
22015         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
22016         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
22017         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
22018
22019         maint.mk: remove obsolete rule
22020         * top/maint.mk (rel-check): Remove rule.
22021         (WGET, WGETFLAGS): Remove now-unused variables.
22022
22023 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22024
22025         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
22026         consistency.
22027
22028         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
22029         '$(PATH_SEPARATOR)' instead of ':'.
22030
22031 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22032
22033         * lib/getopt1.c (main): Use 'const' for static array.
22034
22035 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22036
22037         * top/maint.mk: Sync with coreutils.
22038         * NEWS: Explain incompatibilities.
22039
22040 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22041             Bruno Haible  <bruno@clisp.org>
22042
22043         Fix cross-compilation results.
22044         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
22045         statement, as third argument of AC_TRY_RUN.
22046         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22047         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22048         Likewise.
22049         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22050         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22051         Likewise.
22052         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
22054         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
22055
22056 2009-04-20  Bruno Haible  <bruno@clisp.org>
22057
22058         Avoid test failure on mingw.
22059         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
22060
22061 2009-04-20  Bruno Haible  <bruno@clisp.org>
22062
22063         Avoid compilation error on mingw.
22064         * modules/localename-tests (Depends-on): Add locale.
22065
22066 2009-04-19  Bruno Haible  <bruno@clisp.org>
22067
22068         Support for building a shared library on Windows platforms.
22069         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
22070         (main): Test the presence of UNINORM_NFC here.
22071         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
22072         (main): Test the presence of UNINORM_NFD here.
22073         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
22074         (main): Test the presence of UNINORM_NFKC here.
22075         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
22076         (main): Test the presence of UNINORM_NFKD here.
22077
22078 2009-04-19  Bruno Haible  <bruno@clisp.org>
22079
22080         Avoid a compiler warning.
22081         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
22082         Change type of variable 'sequence'.
22083
22084 2009-04-19  Bruno Haible  <bruno@clisp.org>
22085
22086         * modules/configmake (Makefile.am): When the contents of configmake.h
22087         does not change, arrange to preserve its modification time.
22088
22089 2009-04-17  Simon Josefsson  <simon@josefsson.org>
22090
22091         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
22092         gettext domain.
22093
22094 2009-04-16  Jim Meyering  <meyering@redhat.com>
22095
22096         useless-if-before-free: improve conversion code
22097         * build-aux/useless-if-before-free: Adjust code-in-comment to match
22098         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
22099
22100 2009-04-14  Bruno Haible  <bruno@clisp.org>
22101
22102         * modules/fcntl (Depends-on): Add extensions.
22103         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
22104
22105 2009-04-12  Ben Pfaff  <blp@gnu.org>
22106
22107         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
22108         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
22109
22110 2009-03-20  Ben Pfaff  <blp@gnu.org>
22111
22112         Make rename replace existing destinations on Windows.
22113         * m4/rename.m4: Add test for Mingw.
22114         * lib/rename.c: Add rename replacement that uses MoveFileEx with
22115         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22116         * doc/posix-functions/rename.texi: Document.
22117
22118 2009-04-10  Bruno Haible  <bruno@clisp.org>
22119
22120         New include file "iconveh.h".
22121         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22122         * lib/striconveh.h: Include it.
22123         (enum iconv_ilseq_handler): Remove definition.
22124         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22125         striconveh.h.
22126         * lib/striconveha.c: Include striconveh.h.
22127         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22128         * modules/striconveh (Files): Add lib/iconveh.h.
22129         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22130         lib/striconveh.h.
22131
22132 2009-04-10  Bruno Haible  <bruno@clisp.org>
22133
22134         * lib/uniconv.h: Update comment.
22135
22136 2009-04-10  Bruno Haible  <bruno@clisp.org>
22137
22138         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22139         always.
22140         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22141         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22142         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22143         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22144         "unistring-notinline.h", so that the function gets defined always.
22145         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22146         * lib/unistr/u8-uctomb.c: Likewise.
22147         * lib/unistr/u16-mbtouc.c: Likewise.
22148         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22149         * lib/unistr/u16-uctomb.c: Likewise.
22150         * lib/unistr/u32-mbtouc.c: Likewise.
22151         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22152         * lib/unistr/u32-uctomb.c: Likewise.
22153
22154 2009-04-10  Bruno Haible  <bruno@clisp.org>
22155
22156         Mark 'utime' obsolete.
22157         * modules/utime (Status, Notice): New sections.
22158         Suggested by Jim Meyering.
22159
22160         Fix cross-compile guess for utime test.
22161         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22162         autoconf.
22163         * doc/posix-functions/utime.texi: Give more precisions.
22164         Reported by Jan <ipif@ymail.com>.
22165
22166 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22167
22168         filevercmp: correct today's change
22169         * lib/filevercmp.c: Also handle coreutils' test inputs.
22170         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22171
22172         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22173         for reporting it.
22174         * lib/filevercmp.c: Special handle for "", "." and "..".
22175         * tests/test-filevercmp.c: Enlarge the set suite.
22176
22177 2009-04-07  Jim Meyering  <meyering@redhat.com>
22178
22179         useless-if-before-free: show how to remove braced useless free, too
22180         * build-aux/useless-if-before-free: still only in a comment, though.
22181
22182 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22183
22184         maint.mk: import changes to syntax-check macros from coreutils
22185         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22186         Use them in the relevant macros.
22187
22188 2009-04-06  Bruno Haible  <bruno@clisp.org>
22189
22190         Fix unportable use of bit-fields.
22191         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22192         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22193         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22194
22195 2009-04-06  Bruno Haible  <bruno@clisp.org>
22196
22197         Avoid test failures on AIX and OSF/1.
22198         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22199         that malloc(0) = NULL.
22200         * tests/unicase/test-u8-tolower.c (check): Likewise.
22201         * tests/unicase/test-u8-totitle.c (check): Likewise.
22202         * tests/unicase/test-u8-toupper.c (check): Likewise.
22203         * tests/unicase/test-u16-casefold.c (check): Likewise.
22204         * tests/unicase/test-u16-tolower.c (check): Likewise.
22205         * tests/unicase/test-u16-totitle.c (check): Likewise.
22206         * tests/unicase/test-u16-toupper.c (check): Likewise.
22207         * tests/unicase/test-u32-casefold.c (check): Likewise.
22208         * tests/unicase/test-u32-tolower.c (check): Likewise.
22209         * tests/unicase/test-u32-totitle.c (check): Likewise.
22210         * tests/unicase/test-u32-toupper.c (check): Likewise.
22211         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22212         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22213         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22214         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22215         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22216         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22217         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22218         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22219         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22220         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22221         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22222         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22223
22224 2009-04-05  Bruno Haible  <bruno@clisp.org>
22225
22226         Work around an autoconf limitation.
22227         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22228         comment line if it would be longer than 3 KB.
22229
22230 2009-04-05  Bruno Haible  <bruno@clisp.org>
22231
22232         Avoid test failure with libiconv-1.13.
22233         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22234         of the expected test results.
22235
22236 2009-04-05  Bruno Haible  <bruno@clisp.org>
22237
22238         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22239         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22240         that it should be installed.
22241
22242 2009-04-05  Bruno Haible  <bruno@clisp.org>
22243
22244         * gnulib-tool: New option --copy-file.
22245         (func_usage): Document it.
22246         (func_dest_tmpfilename): Moved out of func_import.
22247         (func_add_file, func_update_file): New functions, extracted from
22248         func_import.
22249         (func_import): Update.
22250
22251 2009-04-05  Karl Berry  <karl@gnu.org>
22252
22253         * README: prominently mention gnulib-tool.
22254         Rearrange sections so getting the code is near the top.
22255
22256 2009-04-05  Bruno Haible  <bruno@clisp.org>
22257
22258         * lib/unicase.h: Mention u*_cmp2.
22259         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22260         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22261         * lib/unicase/ulc-casecmp.c: Likewise.
22262         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22263         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22264         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22265         unistr/u8-cmp.
22266         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22267         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22268         unistr/u16-cmp.
22269         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22270         unistr/u32-cmp.
22271
22272         * lib/uninorm.h: Mention u*_cmp2.
22273         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22274         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22275         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22276         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22277         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22278         unistr/u8-cmp.
22279         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22280         unistr/u16-cmp.
22281         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22282         unistr/u32-cmp.
22283
22284         New module 'unistr/u32-cmp2'.
22285         * lib/unistr/u32-cmp2.c: New file.
22286         * modules/unistr/u32-cmp2: New file.
22287
22288         New module 'unistr/u16-cmp2'.
22289         * lib/unistr/u16-cmp2.c: New file.
22290         * modules/unistr/u16-cmp2: New file.
22291
22292         New module 'unistr/u8-cmp2'.
22293         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22294         * lib/unistr/u8-cmp2.c: New file.
22295         * lib/unistr/u-cmp2.h: New file.
22296         * modules/unistr/u8-cmp2: New file.
22297
22298 2009-04-05  Bruno Haible  <bruno@clisp.org>
22299
22300         * lib/unictype.h (uc_property_is_valid): New macro.
22301         * tests/unictype/test-pr_byname.c (main): Use it.
22302
22303         * lib/unistr.h: Doc fixes.
22304         * lib/uniconv.h: Doc fixes.
22305         * lib/unictype.h: Doc fixes.
22306
22307 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22308
22309         Port coreutils 7.2 to Solaris 8.
22310
22311         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22312         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22313         for Solaris 8.  This is a bit of a hack, as it means it's the
22314         caller's responsibility to add -lnsl if needed, but most likely it
22315         won't be needed since only getaddrinfo uses this and getaddrinfo
22316         isn't needed on Solaris 8.
22317
22318         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22319         problem to Solaris 8 encountered with coreutils 7.2, which
22320         resulted in a message "fnmatch.c:292: warning: passing argument 4
22321         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22322         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22323
22324 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22325
22326         * m4/ld-version-script.m4: Add FIXME comment.
22327
22328 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22329
22330         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22331         SOVERSION variable.
22332
22333 2009-04-02  Bruno Haible  <bruno@clisp.org>
22334
22335         * Makefile (info, html, dvi, pdf): Combine the rules.
22336         Suggested by Jim Meyering.
22337
22338 2009-04-01  Bruno Haible  <bruno@clisp.org>
22339
22340         * Makefile (info, html, dvi, pdf): New targets.
22341         Reported by Reuben Thomas <rrt@sc3d.org>.
22342
22343 2009-04-01  Bruno Haible  <bruno@clisp.org>
22344
22345         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22346         can be put into PATH.
22347         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22348
22349 2009-04-01  Bruno Haible  <bruno@clisp.org>
22350
22351         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22352
22353 2009-04-01  Bruno Haible  <bruno@clisp.org>
22354
22355         Rename module 'visibility'.
22356         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22357         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22358         * doc/gnulib.texi: Update.
22359         * MODULES.html.sh (Misc): Update.
22360         * NEWS: Mention the change.
22361
22362 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22363
22364         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22365         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22366         Eric Blake <ebb9@byu.net> for review.
22367         * MODULES.html.sh: Add lib-msvc-compat.
22368         * doc/gnulib.texi: Link to new section.
22369         * m4/ld-output-def.m4: New file.
22370         * doc/ld-output-def.texi: New file.
22371
22372 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22373
22374         Rename ld-version-script to lib-symbol-versions.  Suggested by
22375         Bruno Haible <bruno@clisp.org>.
22376         * modules/ld-version-script: Renamed to lib-symbol-versions.
22377         * doc/ld-version-script.texi: Fix module name.
22378         * MODULES.html.sh: Add lib-symbol-versions.
22379
22380 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22381
22382         * modules/u64-tests: New file.
22383         * tests/test-u64.c: New file.
22384
22385 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22386
22387         * MODULES.html.sh: Mention u64.
22388         * modules/u64: New module.
22389         * modules/crypto/sha512: Depend on u64 module instead of providing
22390         u64.h.
22391
22392 2009-03-27  Eric Blake  <ebb9@byu.net>
22393
22394         test-strerror: make debugging EAI_SYSTEM easier
22395         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22396         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22397         failure was EAI_SYSTEM.
22398
22399 2009-03-25  Bruno Haible  <bruno@clisp.org>
22400
22401         Fix a problem with --enable-relocatable on Solaris 7.
22402         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22403         since 2008-02-24.
22404
22405 2009-03-25  Eric Blake  <ebb9@byu.net>
22406
22407         test-sockets: avoid gcc warning
22408         * tests/test-sockets.c (main): Silence compiler warning.
22409
22410 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22411
22412         New modules nproc, pthread, contributed by Glen Lenker.
22413
22414         * MODULES.html.sh: Add pthread, nproc.
22415         * lib/nproc.c: New file.
22416         * lib/nproc.h: New file.
22417         * lib/pthread.in.h: New file.
22418         * m4/pthread.m4: New file.
22419         * modules/nproc: New file.
22420         * modules/pthread: New file.
22421
22422 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22423
22424         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22425         New variable.
22426
22427 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22428
22429         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22430         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22431         * tests/test-filevercmp.c: Add tests for backup suffixes.
22432
22433 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22434
22435         * modules/stdlib (Depends-on): Add stdint, needed when defining
22436         struct random_data on, for example, HP-UX 10.20.  Reported by
22437         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22438
22439 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22440
22441         * lib/readline.c (readline): Call fflush on stdout after printing
22442         prompt.
22443
22444 2009-03-20  Bruno Haible  <bruno@clisp.org>
22445
22446         Remove dependency from 'close' module to -lws2_32 on native Windows.
22447         * lib/close-hook.h: New file.
22448         * lib/close-hook.c: New file.
22449         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22450         w32sock.h.
22451         (_gl_close_fd_maybe_socket): Remove function.
22452         (rpl_close): Invoke execute_all_close_hooks instead of
22453         _gl_close_fd_maybe_socket.
22454         * lib/sockets.c: Include close-hook.h, w32sock.h.
22455         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22456         (close_sockets_hook): New variable.
22457         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22458         (gl_sockets_cleanup): Unregister it.
22459         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22460         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22461         * modules/close-hook: New file.
22462         * modules/close (Files): Remove lib/w32sock.h.
22463         (Depends-on): Add close-hook.
22464         (Link): Remove section.
22465         * modules/sockets (Files): Add lib/w32sock.h.
22466         (Depends-on): Add close-hook.
22467         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22468         invocation.
22469         * NEWS: Mention that LIB_CLOSE is gone.
22470
22471 2009-03-23  Eric Blake  <ebb9@byu.net>
22472
22473         signal-tests: test previous patch
22474         * tests/test-signal.c: New file.
22475         * modules/signal-tests: Likewise.
22476
22477         signal.h: always support 'volatile sig_atomic_t'
22478         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22479         (gl_SIGNAL_H_DEFAULTS): Add a default.
22480         * modules/signal (Makefile.am): Substitute if needed.
22481         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22482         users can blindly add volatile.
22483         * doc/posix-headers/signal.texi (signal.h): Document it.
22484         Reported by Matthew Woehlke.
22485
22486 2009-03-23  Jim Meyering  <meyering@redhat.com>
22487
22488         pathmax: PATH_MAX: use pathconf only when available
22489         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22490         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22491         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22492         This avoids a link failure in a PSP cross-compilation environment
22493         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22494
22495         * lib/vasnprintf.c (divide): Fix typo in comment.
22496
22497 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22498
22499         * gnulib-tool (func_filter_filelist): Fix comment.
22500
22501 2009-03-20  Bruno Haible  <bruno@clisp.org>
22502
22503         Make sockets.h self-contained.
22504         * lib/sockets.c: Include sockets.h first.
22505         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22506
22507 2009-03-19  Eric Blake  <ebb9@byu.net>
22508
22509         doc: mention more functions added in cygwin 1.7.0
22510         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22511         addition.
22512         * doc/posix-functions/log2f.texi: Likewise.
22513
22514 2009-03-19  Jim Meyering  <meyering@redhat.com>
22515
22516         fsusage: avoid syntax error due to statement-before-declaration
22517         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22518         after all declarations.  Reported by Matthew Woehlke in
22519         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22520
22521 2009-03-18  Eric Blake  <ebb9@byu.net>
22522
22523         build-aux/compile: sync from automake
22524         * build-aux/compile: New file, from automake.
22525         * config/srclist.txt: Mention build-aux/compile.
22526
22527 2009-03-17  Bruno Haible  <bruno@clisp.org>
22528
22529         * lib/git-merge-changelog.c: Fix typo in comment.
22530         Reported by Reuben Thomas <rrt@sc3d.org>.
22531
22532 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22533
22534         * m4/regex.m4: update and improve help for
22535         --without-included-regex.
22536
22537 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22538
22539         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22540         failure on missing include files.
22541
22542 2009-03-17  Eric Blake  <ebb9@byu.net>
22543
22544         doc: mention more functions added in cygwin 1.7.0
22545         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22546         addition.
22547         * doc/posix-functions/fwscanf.texi: Likewise.
22548         * doc/posix-functions/swprintf.texi: Likewise.
22549         * doc/posix-functions/swscanf.texi: Likewise.
22550         * doc/posix-functions/vfwprintf.texi: Likewise.
22551         * doc/posix-functions/vfwscanf.texi: Likewise.
22552         * doc/posix-functions/vswprintf.texi: Likewise.
22553         * doc/posix-functions/vswscanf.texi: Likewise.
22554         * doc/posix-functions/vwprintf.texi: Likewise.
22555         * doc/posix-functions/vwscanf.texi: Likewise.
22556         * doc/posix-functions/wcscasecmp.texi: Likewise.
22557         * doc/posix-functions/wcsdup.texi: Likewise.
22558         * doc/posix-functions/wcsftime.texi: Likewise.
22559         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22560         * doc/posix-functions/wprintf.texi: Likewise.
22561         * doc/posix-functions/wscanf.texi: Likewise.
22562         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22563
22564 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22565
22566         maint.mk: really add $(AM_MAKEFLAGS)
22567         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22568         was inadvertently omitted in the last commit.
22569         Spotted by Bruno Haible.
22570
22571         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22572         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22573         $(AM_MAKEFLAGS)' rather than plain `make'.
22574
22575         gnulib-tool: execute $MAKE not make
22576         * gnulib-tool: Default $MAKE to 'make'.
22577         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22578         than make.  Initialize $MAKE in the do-autobuild script.
22579
22580         gnulib-tool: use $MAKE not make in generated files
22581         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22582         make, in generated files.  Initialize $MAKE in the do-autobuild
22583         script.
22584
22585         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22586
22587         GNUmakefile: disable parallelism only for multiple, recursive targets
22588         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22589         additions in the Makefile.
22590         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22591         by Automake.
22592         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22593         are listed on the command line and at least one of them is
22594         listed in $(ALL_RECURSIVE_TARGETS).
22595
22596 2009-03-14  Bruno Haible  <bruno@clisp.org>
22597
22598         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22599         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22600         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22601         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22602         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22603         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22604         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22605         unistr/u8-uctomb.
22606         * modules/unistr/u8-strchr (Depends-on): Likewise.
22607         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22608         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22609         unistr/u16-uctomb.
22610         * modules/unistr/u16-strchr (Depends-on): Likewise.
22611         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22612
22613 2009-03-12  Bruno Haible  <bruno@clisp.org>
22614
22615         Work around select() bug on Interix 3.5.
22616         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22617         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22618         * m4/select.m4: New file.
22619         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22620         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22621         * modules/select (Files): Add m4/select.m4.
22622         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22623         * modules/nanosleep (Depends-on): Add select.
22624         * modules/poll (Depends-on): Likewise.
22625         * doc/posix-functions/select.texi: Mention the Interix bug.
22626         Reported by Markus Duft <mduft@gentoo.org>.
22627
22628         * lib/select.c: Renamed from lib/winsock-select.c.
22629         * modules/select (Files): Add lib/select.c, remove
22630         lib/winsock-select.c.
22631         (configure.ac): Update.
22632
22633 2009-03-12  Jim Meyering  <meyering@redhat.com>
22634
22635         avoid gcc warnings about unused macro definitions
22636         * lib/readtokens.c (STREQ): Remove unused definition.
22637         * lib/xmalloc.c (SIZE_MAX): Likewise.
22638         * lib/openat-die.c (N_): Likewise.
22639         * lib/mountlist.c (SIZE_MAX): Remove definition.
22640         Instead, include <stdint.h>.
22641         * lib/readutmp.c: Likewise.
22642         * modules/readutmp (Depends-on): Add stdint.
22643         * modules/mountlist (Depends-on): Add stdint.
22644         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22645
22646 2009-03-10  Bruno Haible  <bruno@clisp.org>
22647
22648         Tests for module 'mbmemcasecoll'.
22649         * modules/mbmemcasecoll-tests: New file.
22650         * tests/test-mbmemcasecoll1.sh: New file.
22651         * tests/test-mbmemcasecoll2.sh: New file.
22652         * tests/test-mbmemcasecoll3.sh: New file.
22653         * tests/test-mbmemcasecoll.c: New file.
22654
22655         New module 'mbmemcasecoll'.
22656         * lib/mbmemcasecoll.h: New file.
22657         * lib/mbmemcasecoll.c: New file.
22658         * modules/mbmemcasecoll: New file.
22659
22660         * tests/test-mbmemcasecmp.h: New file, extracted from
22661         tests/test-mbmemcasecmp.c.
22662         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22663         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22664         (main): Update.
22665         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22666
22667 2009-03-09  Bruno Haible  <bruno@clisp.org>
22668
22669         Tests for module 'mbmemcasecmp'.
22670         * modules/mbmemcasecmp-tests: New file.
22671         * tests/test-mbmemcasecmp1.sh: New file.
22672         * tests/test-mbmemcasecmp2.sh: New file.
22673         * tests/test-mbmemcasecmp3.sh: New file.
22674         * tests/test-mbmemcasecmp.c: New file.
22675
22676         New module 'mbmemcasecmp'.
22677         * lib/mbmemcasecmp.h: New file.
22678         * lib/mbmemcasecmp.c: New file.
22679         * modules/mbmemcasecmp: New file.
22680
22681 2009-03-09  Bruno Haible  <bruno@clisp.org>
22682
22683         Tests for module 'unicase/ulc-casecoll'.
22684         * modules/unicase/ulc-casecoll-tests: New file.
22685         * tests/unicase/test-ulc-casecoll1.sh: New file.
22686         * tests/unicase/test-ulc-casecoll2.sh: New file.
22687         * tests/unicase/test-ulc-casecoll.c: New file.
22688
22689         New module 'unicase/ulc-casecoll'.
22690         * lib/unicase.h (ulc_casecoll): New declaration.
22691         * lib/unicase/ulc-casecoll.c: New file.
22692         * modules/unicase/ulc-casecoll: New file.
22693
22694         New module 'unicase/ulc-casexfrm'.
22695         * lib/unicase.h (ulc_casexfrm): New declaration.
22696         * lib/unicase/ulc-casexfrm.c: New file.
22697         * modules/unicase/ulc-casexfrm: New file.
22698
22699 2009-03-09  Bruno Haible  <bruno@clisp.org>
22700
22701         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22702         invocations.
22703
22704         * m4/mbscasecmp.m4: Remove file.
22705         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22706         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22707
22708         * m4/mbscasestr.m4: Remove file.
22709         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22710         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22711
22712         * m4/mbschr.m4: Remove file.
22713         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22714         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22715
22716         * m4/mbscspn.m4: Remove file.
22717         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22718         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22719
22720         * m4/mbslen.m4: Remove file.
22721         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22722         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22723
22724         * m4/mbsncasecmp.m4: Remove file.
22725         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22726         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22727
22728         * m4/mbsnlen.m4: Remove file.
22729         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22730         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22731
22732         * m4/mbspbrk.m4: Remove file.
22733         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22734         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22735
22736         * m4/mbspcasecmp.m4: Remove file.
22737         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22738         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22739
22740         * m4/mbsrchr.m4: Remove file.
22741         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22742         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22743
22744         * m4/mbssep.m4: Remove file.
22745         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22746         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22747
22748         * m4/mbsspn.m4: Remove file.
22749         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22750         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22751
22752         * m4/mbsstr.m4: Remove file.
22753         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22754         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22755
22756         * m4/mbstok_r.m4: Remove file.
22757         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22758         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22759
22760         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22761
22762         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22763         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22764
22765         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22766
22767 2009-03-08  Bruno Haible  <bruno@clisp.org>
22768
22769         Tests for module 'unicase/ulc-casecmp'.
22770         * modules/unicase/ulc-casecmp-tests: New file.
22771         * tests/unicase/test-ulc-casecmp1.sh: New file.
22772         * tests/unicase/test-ulc-casecmp2.sh: New file.
22773         * tests/unicase/test-ulc-casecmp.c: New file.
22774
22775         New module 'unicase/ulc-casecmp'.
22776         * lib/unicase.h (ulc_casecmp): New declaration.
22777         * lib/unicase/ulc-casecmp.c: New file.
22778         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22779         'const SRC_UNIT *'.
22780         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22781         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22782         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22783         * modules/unicase/ulc-casecmp: New file.
22784
22785         Tests for module 'unicase/u32-is-cased'.
22786         * modules/unicase/u32-is-cased-tests: New file.
22787         * tests/unicase/test-u32-is-cased.c: New file.
22788
22789         Tests for module 'unicase/u16-is-cased'.
22790         * modules/unicase/u16-is-cased-tests: New file.
22791         * tests/unicase/test-u16-is-cased.c: New file.
22792
22793         Tests for module 'unicase/u8-is-cased'.
22794         * modules/unicase/u8-is-cased-tests: New file.
22795         * tests/unicase/test-u8-is-cased.c: New file.
22796         * tests/unicase/test-is-cased.h: New file.
22797
22798         New module 'unicase/u32-is-cased'.
22799         * lib/unicase/u32-is-cased.c: New file.
22800         * modules/unicase/u32-is-cased: New file.
22801
22802         New module 'unicase/u16-is-cased'.
22803         * lib/unicase/u16-is-cased.c: New file.
22804         * modules/unicase/u16-is-cased: New file.
22805
22806         New module 'unicase/u8-is-cased'.
22807         * lib/unicase/u8-is-cased.c: New file.
22808         * lib/unicase/u-is-cased.h: New file.
22809         * modules/unicase/u8-is-cased: New file.
22810
22811         Tests for module 'unicase/u32-is-casefolded'.
22812         * modules/unicase/u32-is-casefolded-tests: New file.
22813         * tests/unicase/test-u32-is-casefolded.c: New file.
22814
22815         Tests for module 'unicase/u16-is-casefolded'.
22816         * modules/unicase/u16-is-casefolded-tests: New file.
22817         * tests/unicase/test-u16-is-casefolded.c: New file.
22818
22819         Tests for module 'unicase/u8-is-casefolded'.
22820         * modules/unicase/u8-is-casefolded-tests: New file.
22821         * tests/unicase/test-u8-is-casefolded.c: New file.
22822         * tests/unicase/test-is-casefolded.h: New file.
22823
22824         New module 'unicase/u32-is-casefolded'.
22825         * lib/unicase/u32-is-casefolded.c: New file.
22826         * modules/unicase/u32-is-casefolded: New file.
22827
22828         New module 'unicase/u16-is-casefolded'.
22829         * lib/unicase/u16-is-casefolded.c: New file.
22830         * modules/unicase/u16-is-casefolded: New file.
22831
22832         New module 'unicase/u8-is-casefolded'.
22833         * lib/unicase/u8-is-casefolded.c: New file.
22834         * modules/unicase/u8-is-casefolded: New file.
22835
22836         Tests for module 'unicase/u32-is-titlecase'.
22837         * modules/unicase/u32-is-titlecase-tests: New file.
22838         * tests/unicase/test-u32-is-titlecase.c: New file.
22839
22840         Tests for module 'unicase/u16-is-titlecase'.
22841         * modules/unicase/u16-is-titlecase-tests: New file.
22842         * tests/unicase/test-u16-is-titlecase.c: New file.
22843
22844         Tests for module 'unicase/u8-is-titlecase'.
22845         * modules/unicase/u8-is-titlecase-tests: New file.
22846         * tests/unicase/test-u8-is-titlecase.c: New file.
22847         * tests/unicase/test-is-titlecase.h: New file.
22848
22849         New module 'unicase/u32-is-titlecase'.
22850         * lib/unicase/u32-is-titlecase.c: New file.
22851         * modules/unicase/u32-is-titlecase: New file.
22852
22853         New module 'unicase/u16-is-titlecase'.
22854         * lib/unicase/u16-is-titlecase.c: New file.
22855         * modules/unicase/u16-is-titlecase: New file.
22856
22857         New module 'unicase/u8-is-titlecase'.
22858         * lib/unicase/u8-is-titlecase.c: New file.
22859         * modules/unicase/u8-is-titlecase: New file.
22860
22861         Tests for module 'unicase/u32-is-lowercase'.
22862         * modules/unicase/u32-is-lowercase-tests: New file.
22863         * tests/unicase/test-u32-is-lowercase.c: New file.
22864
22865         Tests for module 'unicase/u16-is-lowercase'.
22866         * modules/unicase/u16-is-lowercase-tests: New file.
22867         * tests/unicase/test-u16-is-lowercase.c: New file.
22868
22869         Tests for module 'unicase/u8-is-lowercase'.
22870         * modules/unicase/u8-is-lowercase-tests: New file.
22871         * tests/unicase/test-u8-is-lowercase.c: New file.
22872         * tests/unicase/test-is-lowercase.h: New file.
22873
22874         New module 'unicase/u32-is-lowercase'.
22875         * lib/unicase/u32-is-lowercase.c: New file.
22876         * modules/unicase/u32-is-lowercase: New file.
22877
22878         New module 'unicase/u16-is-lowercase'.
22879         * lib/unicase/u16-is-lowercase.c: New file.
22880         * modules/unicase/u16-is-lowercase: New file.
22881
22882         New module 'unicase/u8-is-lowercase'.
22883         * lib/unicase/u8-is-lowercase.c: New file.
22884         * modules/unicase/u8-is-lowercase: New file.
22885
22886         Tests for module 'unicase/u32-is-uppercase'.
22887         * modules/unicase/u32-is-uppercase-tests: New file.
22888         * tests/unicase/test-u32-is-uppercase.c: New file.
22889
22890         Tests for module 'unicase/u16-is-uppercase'.
22891         * modules/unicase/u16-is-uppercase-tests: New file.
22892         * tests/unicase/test-u16-is-uppercase.c: New file.
22893
22894         Tests for module 'unicase/u8-is-uppercase'.
22895         * modules/unicase/u8-is-uppercase-tests: New file.
22896         * tests/unicase/test-u8-is-uppercase.c: New file.
22897         * tests/unicase/test-is-uppercase.h: New file.
22898
22899         New module 'unicase/u32-is-uppercase'.
22900         * lib/unicase/u32-is-uppercase.c: New file.
22901         * modules/unicase/u32-is-uppercase: New file.
22902
22903         New module 'unicase/u16-is-uppercase'.
22904         * lib/unicase/u16-is-uppercase.c: New file.
22905         * modules/unicase/u16-is-uppercase: New file.
22906
22907         New module 'unicase/u8-is-uppercase'.
22908         * lib/unicase/u8-is-uppercase.c: New file.
22909         * modules/unicase/u8-is-uppercase: New file.
22910
22911         New module 'unicase/u32-is-invariant'.
22912         * lib/unicase/u32-is-invariant.c: New file.
22913         * modules/unicase/u32-is-invariant: New file.
22914
22915         New module 'unicase/u16-is-invariant'.
22916         * lib/unicase/u16-is-invariant.c: New file.
22917         * modules/unicase/u16-is-invariant: New file.
22918
22919         New module 'unicase/u8-is-invariant'.
22920         * lib/unicase/u8-is-invariant.c: New file.
22921         * lib/unicase/invariant.h: New file.
22922         * lib/unicase/u-is-invariant.h: New file.
22923         * modules/unicase/u8-is-invariant: New file.
22924
22925         Tests for module 'unicase/u32-casecoll'.
22926         * modules/unicase/u32-casecoll-tests: New file.
22927         * tests/unicase/test-u32-casecoll.c: New file.
22928
22929         Tests for module 'unicase/u16-casecoll'.
22930         * modules/unicase/u16-casecoll-tests: New file.
22931         * tests/unicase/test-u16-casecoll.c: New file.
22932
22933         Tests for module 'unicase/u8-casecoll'.
22934         * modules/unicase/u8-casecoll-tests: New file.
22935         * tests/unicase/test-u8-casecoll.c: New file.
22936
22937         New module 'unicase/u32-casecoll'.
22938         * lib/unicase/u32-casecoll.c: New file.
22939         * modules/unicase/u32-casecoll: New file.
22940
22941         New module 'unicase/u16-casecoll'.
22942         * lib/unicase/u16-casecoll.c: New file.
22943         * modules/unicase/u16-casecoll: New file.
22944
22945         New module 'unicase/u8-casecoll'.
22946         * lib/unicase/u8-casecoll.c: New file.
22947         * lib/unicase/u-casecoll.h: New file.
22948         * modules/unicase/u8-casecoll: New file.
22949
22950         New module 'unicase/u32-casexfrm'.
22951         * lib/unicase/u32-casexfrm.c: New file.
22952         * modules/unicase/u32-casexfrm: New file.
22953
22954         New module 'unicase/u16-casexfrm'.
22955         * lib/unicase/u16-casexfrm.c: New file.
22956         * modules/unicase/u16-casexfrm: New file.
22957
22958         New module 'unicase/u8-casexfrm'.
22959         * lib/unicase/u8-casexfrm.c: New file.
22960         * lib/unicase/u-casexfrm.h: New file.
22961         * modules/unicase/u8-casexfrm: New file.
22962
22963         Tests for module 'unicase/u32-casecmp'.
22964         * modules/unicase/u32-casecmp-tests: New file.
22965         * tests/unicase/test-u32-casecmp.c: New file.
22966
22967         Tests for module 'unicase/u16-casecmp'.
22968         * modules/unicase/u16-casecmp-tests: New file.
22969         * tests/unicase/test-u16-casecmp.c: New file.
22970
22971         Tests for module 'unicase/u8-casecmp'.
22972         * modules/unicase/u8-casecmp-tests: New file.
22973         * tests/unicase/test-u8-casecmp.c: New file.
22974         * tests/unicase/test-casecmp.h: New file.
22975
22976         New module 'unicase/u32-casecmp'.
22977         * lib/unicase/u32-casecmp.c: New file.
22978         * modules/unicase/u32-casecmp: New file.
22979
22980         New module 'unicase/u16-casecmp'.
22981         * lib/unicase/u16-casecmp.c: New file.
22982         * modules/unicase/u16-casecmp: New file.
22983
22984         New module 'unicase/u8-casecmp'.
22985         * lib/unicase/u8-casecmp.c: New file.
22986         * lib/unicase/u-casecmp.h: New file.
22987         * modules/unicase/u8-casecmp: New file.
22988
22989         Tests for module 'unicase/u32-casefold'.
22990         * modules/unicase/u32-casefold-tests: New file.
22991         * tests/unicase/test-u32-casefold.c: New file.
22992
22993         Tests for module 'unicase/u16-casefold'.
22994         * modules/unicase/u16-casefold-tests: New file.
22995         * tests/unicase/test-u16-casefold.c: New file.
22996
22997         Tests for module 'unicase/u8-casefold'.
22998         * modules/unicase/u8-casefold-tests: New file.
22999         * tests/unicase/test-u8-casefold.c: New file.
23000
23001         New module 'unicase/u32-casefold'.
23002         * lib/unicase/u32-casefold.c: New file.
23003         * modules/unicase/u32-casefold: New file.
23004
23005         New module 'unicase/u16-casefold'.
23006         * lib/unicase/u16-casefold.c: New file.
23007         * modules/unicase/u16-casefold: New file.
23008
23009         New module 'unicase/u8-casefold'.
23010         * lib/unicase/u8-casefold.c: New file.
23011         * lib/unicase/u-casefold.h: New file.
23012         * modules/unicase/u8-casefold: New file.
23013
23014         New module 'unicase/tocasefold'.
23015         * lib/unicase/casefold.h: New file.
23016         * lib/unicase/tocasefold.c: New file.
23017         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
23018         * modules/unicase/tocasefold: New file.
23019
23020         Tests for module 'unicase/u32-totitle'.
23021         * modules/unicase/u32-totitle-tests: New file.
23022         * tests/unicase/test-u32-totitle.c: New file.
23023
23024         Tests for module 'unicase/u16-totitle'.
23025         * modules/unicase/u16-totitle-tests: New file.
23026         * tests/unicase/test-u16-totitle.c: New file.
23027
23028         Tests for module 'unicase/u8-totitle'.
23029         * modules/unicase/u8-totitle-tests: New file.
23030         * tests/unicase/test-u8-totitle.c: New file.
23031
23032         New module 'unicase/u32-totitle'.
23033         * lib/unicase/u32-totitle.c: New file.
23034         * modules/unicase/u32-totitle: New file.
23035
23036         New module 'unicase/u16-totitle'.
23037         * lib/unicase/u16-totitle.c: New file.
23038         * modules/unicase/u16-totitle: New file.
23039
23040         New module 'unicase/u8-totitle'.
23041         * lib/unicase/u8-totitle.c: New file.
23042         * lib/unicase/u-totitle.h: New file.
23043         * modules/unicase/u8-totitle: New file.
23044
23045         Tests for module 'unicase/u32-tolower'.
23046         * modules/unicase/u32-tolower-tests: New file.
23047         * tests/unicase/test-u32-tolower.c: New file.
23048
23049         Tests for module 'unicase/u16-tolower'.
23050         * modules/unicase/u16-tolower-tests: New file.
23051         * tests/unicase/test-u16-tolower.c: New file.
23052
23053         Tests for module 'unicase/u8-tolower'.
23054         * modules/unicase/u8-tolower-tests: New file.
23055         * tests/unicase/test-u8-tolower.c: New file.
23056
23057         New module 'unicase/u32-tolower'.
23058         * lib/unicase/u32-tolower.c: New file.
23059         * modules/unicase/u32-tolower: New file.
23060
23061         New module 'unicase/u16-tolower'.
23062         * lib/unicase/u16-tolower.c: New file.
23063         * modules/unicase/u16-tolower: New file.
23064
23065         New module 'unicase/u8-tolower'.
23066         * lib/unicase/u8-tolower.c: New file.
23067         * modules/unicase/u8-tolower: New file.
23068
23069         Tests for module 'unicase/u32-toupper'.
23070         * modules/unicase/u32-toupper-tests: New file.
23071         * tests/unicase/test-u32-toupper.c: New file.
23072
23073         Tests for module 'unicase/u16-toupper'.
23074         * modules/unicase/u16-toupper-tests: New file.
23075         * tests/unicase/test-u16-toupper.c: New file.
23076
23077         Tests for module 'unicase/u8-toupper'.
23078         * modules/unicase/u8-toupper-tests: New file.
23079         * tests/unicase/test-u8-toupper.c: New file.
23080
23081         New module 'unicase/u32-toupper'.
23082         * lib/unicase/u32-toupper.c: New file.
23083         * modules/unicase/u32-toupper: New file.
23084
23085         New module 'unicase/u16-toupper'.
23086         * lib/unicase/u16-toupper.c: New file.
23087         * modules/unicase/u16-toupper: New file.
23088
23089         New module 'unicase/u8-toupper'.
23090         * lib/unicase/u8-toupper.c: New file.
23091         * modules/unicase/u8-toupper: New file.
23092
23093         New module 'unicase/u32-casemap'.
23094         * lib/unicase/u32-casemap.c: New file.
23095         * modules/unicase/u32-casemap: New file.
23096
23097         New module 'unicase/u16-casemap'.
23098         * lib/unicase/u16-casemap.c: New file.
23099         * modules/unicase/u16-casemap: New file.
23100
23101         New module 'unicase/u8-casemap'.
23102         * lib/unicase/unicasemap.h: New file.
23103         * lib/unicase/u8-casemap.c: New file.
23104         * lib/unicase/u-casemap.h: New file.
23105         * modules/unicase/u8-casemap: New file.
23106
23107         New module 'unicase/special-casing'.
23108         * lib/unicase/special-casing.h: New file.
23109         * lib/unicase/special-casing.c: New file.
23110         * lib/unicase/special-casing-table.gperf: New file, generated by
23111         gen-uni-tables.c.
23112         * modules/unicase/special-casing: New file.
23113
23114         Tests for module 'unicase/locale-language'.
23115         * modules/unicase/locale-language-tests: New file.
23116         * tests/unicase/test-locale-language.sh: New file.
23117         * tests/unicase/test-locale-language.c: New file.
23118
23119         New module 'unicase/locale-language'.
23120         * lib/unicase/locale-language.c: New file.
23121         * lib/unicase/locale-languages.gperf: New file.
23122         * modules/unicase/locale-language: New file.
23123
23124         Generate more tables for case conversion and case folding.
23125         * lib/gen-uni-tables.c (SCC_*): New enum items.
23126         (struct special_casing_rule): New type.
23127         (casing_rules, num_casing_rules, allocated_casing_rules): New
23128         variables.
23129         (add_casing_rule, fill_casing_rules): New functions.
23130         (struct casefold_rule): New type.
23131         (casefolding_rules, num_casefolding_rules,
23132         allocated_casefolding_rules): New variables.
23133         (fill_casefolding_rules): New function.
23134         (unicode_casefold): New variable.
23135         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23136         sort_casing_rules, output_casing_rules): New functions.
23137         (main): Accept to more arguments: SpecialCasing.txt and
23138         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23139         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23140         Output mapping for casefolding.
23141
23142         * lib/unicase.h: Include stdbool.h, uninorm.h.
23143         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23144         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23145         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23146         arguments.
23147         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23148         resultp arguments.
23149         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23150         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23151         resultp arguments.
23152         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23153         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23154         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23155         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23156         declarations.
23157         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23158
23159 2009-03-08  Bruno Haible  <bruno@clisp.org>
23160
23161         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23162         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23163         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23164         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23165
23166 2009-03-07  Bruno Haible  <bruno@clisp.org>
23167
23168         Adjust u*_normcmp, u*_normcoll API.
23169         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23170         u16_normcoll, u32_normcoll): Change failure conventions.
23171         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23172         errno and return -1.
23173         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23174
23175 2009-03-07  Bruno Haible  <bruno@clisp.org>
23176
23177         Tests for module 'uninorm/u32-normcoll'.
23178         * modules/uninorm/u32-normcoll-tests: New file.
23179         * tests/uninorm/test-u32-normcoll.c: New file.
23180
23181         Tests for module 'uninorm/u16-normcoll'.
23182         * modules/uninorm/u16-normcoll-tests: New file.
23183         * tests/uninorm/test-u16-normcoll.c: New file.
23184
23185         Tests for module 'uninorm/u8-normcoll'.
23186         * modules/uninorm/u8-normcoll-tests: New file.
23187         * tests/uninorm/test-u8-normcoll.c: New file.
23188
23189 2009-03-07  Bruno Haible  <bruno@clisp.org>
23190
23191         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23192         tests/uninorm/test-u32-normcmp.c.
23193         * tests/uninorm/test-u32-normcmp.c: Include it.
23194         (test_nonascii): New function, extracted from main. Add some more
23195         tests.
23196         (main): Invoke test_ascii and test_nonascii.
23197         * modules/uninorm/u32-normcmp-tests (Files): Add
23198         tests/uninorm/test-u32-normcmp.h.
23199         (Depends-on): Remove uninorm/u32-normcmp.
23200
23201         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23202         tests/uninorm/test-u16-normcmp.c.
23203         * tests/uninorm/test-u16-normcmp.c: Include it.
23204         (test_nonascii): New function, extracted from main. Add some more
23205         tests.
23206         (main): Invoke test_ascii and test_nonascii.
23207         * modules/uninorm/u16-normcmp-tests (Files): Add
23208         tests/uninorm/test-u16-normcmp.h.
23209         (Depends-on): Remove uninorm/u16-normcmp.
23210
23211         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23212         tests/uninorm/test-u8-normcmp.c.
23213         * tests/uninorm/test-u8-normcmp.c: Include it.
23214         (test_nonascii): New function, extracted from main. Add some more
23215         tests.
23216         (main): Invoke test_ascii and test_nonascii.
23217         * modules/uninorm/u8-normcmp-tests (Files): Add
23218         tests/uninorm/test-u8-normcmp.h.
23219         (Depends-on): Remove uninorm/u8-normcmp.
23220
23221 2009-03-07  Bruno Haible  <bruno@clisp.org>
23222
23223         New module 'uninorm/u32-normcoll'.
23224         * lib/uninorm/u32-normcoll.c: New file.
23225         * modules/uninorm/u32-normcoll: New file.
23226
23227         New module 'uninorm/u16-normcoll'.
23228         * lib/uninorm/u16-normcoll.c: New file.
23229         * modules/uninorm/u16-normcoll: New file.
23230
23231         New module 'uninorm/u8-normcoll'.
23232         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23233         declarations.
23234         * lib/uninorm/u8-normcoll.c: New file.
23235         * lib/uninorm/u-normcoll.h: New file.
23236         * modules/uninorm/u8-normcoll: New file.
23237
23238         New module 'uninorm/u32-normxfrm'.
23239         * lib/uninorm/u32-normxfrm.c: New file.
23240         * modules/uninorm/u32-normxfrm: New file.
23241
23242         New module 'uninorm/u16-normxfrm'.
23243         * lib/uninorm/u16-normxfrm.c: New file.
23244         * modules/uninorm/u16-normxfrm: New file.
23245
23246         New module 'uninorm/u8-normxfrm'.
23247         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23248         declarations.
23249         * lib/uninorm/u8-normxfrm.c: New file.
23250         * lib/uninorm/u-normxfrm.h: New file.
23251         * modules/uninorm/u8-normxfrm: New file.
23252
23253 2009-03-07  Bruno Haible  <bruno@clisp.org>
23254
23255         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23256         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23257         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23258
23259 2009-03-07  Bruno Haible  <bruno@clisp.org>
23260
23261         New module 'memxfrm'.
23262         * lib/memxfrm.h: New file.
23263         * lib/memxfrm.c: New file.
23264         * modules/memxfrm: New file.
23265
23266 2009-03-07  Bruno Haible  <bruno@clisp.org>
23267
23268         New module 'memcmp2'.
23269         * lib/memcmp2.h: New file.
23270         * lib/memcmp2.c: New file.
23271         * modules/memcmp2: New file.
23272
23273 2009-03-07  Bruno Haible  <bruno@clisp.org>
23274
23275         Tests for module 'uninorm/decomposing-form'.
23276         * modules/uninorm/decomposing-form-tests: New file.
23277         * tests/uninorm/test-decomposing-form.c: New file.
23278
23279         New module 'uninorm/decomposing-form'.
23280         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23281         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23282         Add 'decomposing_variant' field.
23283         * lib/uninorm/decomposing-form.c: New file.
23284         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23285         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23286         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23287         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23288         * modules/uninorm/decomposing-form: New file.
23289         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23290         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23291
23292 2009-03-07  Bruno Haible  <bruno@clisp.org>
23293
23294         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23295         strings.
23296
23297 2009-03-06  Bruno Haible  <bruno@clisp.org>
23298
23299         Tests for module 'uninorm/u32-normcmp'.
23300         * tests/uninorm/test-u32-normcmp.c: New file.
23301         * modules/uninorm/u32-normcmp-tests: New file.
23302
23303         Tests for module 'uninorm/u16-normcmp'.
23304         * tests/uninorm/test-u16-normcmp.c: New file.
23305         * modules/uninorm/u16-normcmp-tests: New file.
23306
23307         Tests for module 'uninorm/u8-normcmp'.
23308         * tests/uninorm/test-u8-normcmp.c: New file.
23309         * modules/uninorm/u8-normcmp-tests: New file.
23310
23311         New module 'uninorm/u32-normcmp'.
23312         * lib/uninorm/u32-normcmp.c: New file.
23313         * modules/uninorm/u32-normcmp: New file.
23314
23315         New module 'uninorm/u16-normcmp'.
23316         * lib/uninorm/u16-normcmp.c: New file.
23317         * modules/uninorm/u16-normcmp: New file.
23318
23319         New module 'uninorm/u8-normcmp'.
23320         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23321         declarations.
23322         * lib/uninorm/u8-normcmp.c: New file.
23323         * lib/uninorm/u-normcmp.h: New file.
23324         * modules/uninorm/u8-normcmp: New file.
23325
23326 2009-03-06  Bruno Haible  <bruno@clisp.org>
23327
23328         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23329         Reported by Eric Blake.
23330
23331 2009-03-06  Eric Blake  <ebb9@byu.net>
23332             Bruno Haible  <bruno@clisp.org>
23333
23334         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23335         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23336         condition.
23337         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23338         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23339         condition.
23340         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23341
23342 2009-03-06  Eric Blake  <ebb9@byu.net>
23343
23344         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23345         to avoid compiler warnings.
23346         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23347
23348 2009-03-05  Bruno Haible  <bruno@clisp.org>
23349
23350         * tests/test-ftell.c (main): Disable test beyond end of file on
23351         FreeMiNT.
23352         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23353
23354 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23355
23356         * lib/filevercmp.c: Move hidden files up in ordering.
23357         * tests/test-filevercmp.c: Add tests for hidden files.
23358
23359 2009-03-04  Bruno Haible  <bruno@clisp.org>
23360
23361         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23362         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23363         AM_CFLAGS.
23364         Reported by Simon Josefsson.
23365
23366 2009-03-03  Bruno Haible  <bruno@clisp.org>
23367
23368         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23369         Reported by Simon Josefsson.
23370
23371         * doc/ld-version-script.texi: Update node reference.
23372
23373 2009-03-03  Bruno Haible  <bruno@clisp.org>
23374
23375         * modules/visibility (License): Change to 'unlimited'.
23376         Suggested by Simon Josefsson.
23377
23378 2009-03-03  Jim Meyering  <meyering@redhat.com>
23379
23380         unlinkdir: cannot_unlink_dir may modify process state
23381         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23382         it's neither thread-safe nor appropriate for use in a library.
23383
23384 2009-03-03  Eric Blake  <ebb9@byu.net>
23385
23386         test-closein: silence test under Darwin
23387         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23388         care if it dies from EPIPE or EBADF.
23389
23390 2009-03-03  Bruno Haible  <bruno@clisp.org>
23391
23392         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23393         earlier.
23394         * doc/visibility.texi: Fix @node and @section.
23395
23396 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23397
23398         * doc/gnulib.texi: Link to sections for ld version script and
23399         visibility.
23400         * doc/visibility.texi: Add @node and @section.
23401         * modules/ld-version-script: New module.
23402         * m4/ld-version-script.m4: New file.
23403         * doc/ld-version-script.texi: New file.
23404
23405 2009-03-02  David Lutterkort  <lutter@redhat.com>
23406
23407         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23408         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23409
23410 2009-03-02  Bruno Haible  <bruno@clisp.org>
23411
23412         * doc/visibility.texi: Mention libtool's -export-symbols option.
23413
23414 2009-03-02  Jim Meyering  <meyering@redhat.com>
23415
23416         announce-gen: new option: --no-print-checksums
23417         * build-aux/announce-gen (usage): Describe it.
23418         (print_checksums): Print a newline here, not in the [*] footnote.
23419         (main): Honor it.
23420
23421 2009-03-01  Bruno Haible  <bruno@clisp.org>
23422
23423         Use socklen_t in the native Windows replacements prototypes.
23424         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23425         instead of 'int'.
23426         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23427         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23428         * modules/getsockopt (Depends-on): Add socklen.
23429         * modules/setsockopt (Depends-on): Add socklen.
23430
23431 2009-03-01  Bruno Haible  <bruno@clisp.org>
23432
23433         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23434         least 4.2.
23435
23436 2009-03-01  Eric Blake  <ebb9@byu.net>
23437             Bruno Haible  <bruno@clisp.org>
23438
23439         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23440         error messages.
23441         * lib/wait-process.c (wait_subprocess): Omit error message about
23442         deadly signal sent to the child of termsigp != NULL.
23443
23444 2009-03-01  Eric Blake  <ebb9@byu.net>
23445
23446         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23447
23448 2009-03-01  Bruno Haible  <bruno@clisp.org>
23449
23450         Avoid a gcc warning.
23451         * tests/test-sched.c (b): Make global.
23452         Reported by Eric Blake.
23453
23454 2009-01-19  Martin Lambers  <marlam@marlam.de>
23455
23456         Provide POSIX semantics for socket timeout options on W32.
23457         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23458         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23459         * modules/setsockopt: Depend on sys_time module for struct timeval.
23460         * modules/getsockopt: Depend on sys_time module for struct timeval.
23461
23462 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23463
23464         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23465         __USE_GNU, for consistency with netdb.in.h.
23466         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23467
23468 2009-03-01  Bruno Haible  <bruno@clisp.org>
23469
23470         More support for FreeMiNT.
23471         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23472         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23473
23474 2009-03-01  Bruno Haible  <bruno@clisp.org>
23475
23476         More support for FreeMiNT.
23477         * lib/fpurge.c (fpurge): Correct last commit.
23478         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23479
23480 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23481
23482         Fix unportable awk script in vc-list-files.
23483         * build-aux/vc-list-files: In the replacement awk script, use
23484         substr with a second argument of 1, not zero.
23485         Report by Simon Josefsson.
23486
23487 2009-02-28  Bruno Haible  <bruno@clisp.org>
23488
23489         More support for FreeMiNT.
23490         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23491         to FreeMiNT today.
23492         * lib/fwriting.c (fwriting): Likewise.
23493         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23494
23495 2009-02-28  Bruno Haible  <bruno@clisp.org>
23496
23497         * tests/test-freadseek.c (main): Disable test beyond end of file on
23498         FreeMiNT.
23499         * tests/test-ftello.c (main): Likewise.
23500         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23501
23502 2009-02-28  Bruno Haible  <bruno@clisp.org>
23503
23504         Add tentative support for FreeMiNT.
23505         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23506         * lib/fpurge.c (fpurge): Likewise.
23507         * lib/freadable.c (freadable): Likewise.
23508         * lib/freading.c (freading): Likewise.
23509         * lib/freadptr.c (freadptr): Likewise.
23510         * lib/freadseek.c (freadptrinc): Likewise.
23511         * lib/fseeko.c (rpl_fseeko): Likewise.
23512         * lib/fseterr.c (fseterr): Likewise.
23513         * lib/fwritable.c (fwritable): Likewise.
23514         * lib/fwriting.c (fwriting): Likewise.
23515         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23516         Hourihane.
23517         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23518
23519 2009-02-28  Bruno Haible  <bruno@clisp.org>
23520
23521         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23522         SIGCHLD.
23523         Reported by Jim Meyering.
23524
23525 2009-02-28  Bruno Haible  <bruno@clisp.org>
23526
23527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23528         Mention the results of these tests on various platforms.
23529         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23530         order.
23531         * doc/posix-functions/printf.texi: Likewise.
23532         * doc/posix-functions/snprintf.texi: Likewise.
23533         * doc/posix-functions/sprintf.texi: Likewise.
23534         * doc/posix-functions/vfprintf.texi: Likewise.
23535         * doc/posix-functions/vprintf.texi: Likewise.
23536         * doc/posix-functions/vsnprintf.texi: Likewise.
23537         * doc/posix-functions/vsprintf.texi: Likewise.
23538         * doc/glibc-functions/obstack_printf.texi: Likewise.
23539         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23540
23541 2009-02-28  Bruno Haible  <bruno@clisp.org>
23542
23543         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23544         Reported by Loïc Minier <lool@dooz.org>.
23545
23546 2009-02-27  Bruno Haible  <bruno@clisp.org>
23547
23548         * gnulib-tool (func_import): Make the sed expression used to create the
23549         sed script for updating the .gitignore file POSIX compliant.
23550         Reported by Eric Blake.
23551
23552 2009-02-27  Bruno Haible  <bruno@clisp.org>
23553
23554         * gnulib-tool (sed): Don't alias as "sed --posix".
23555         Reported by Eric Blake.
23556
23557 2009-02-27  Bruno Haible  <bruno@clisp.org>
23558
23559         Avoid test link errors.
23560         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23561         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23562         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23563         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23565
23566 2009-02-27  Bruno Haible  <bruno@clisp.org>
23567
23568         Avoid spurious "(cached)" in configure output.
23569         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23570         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23571         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23572         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23573         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23574         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23575         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23576         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23577         Reported by Eric Blake.
23578
23579 2009-02-27  Eric Blake  <ebb9@byu.net>
23580
23581         printf: fix regression in previous patch
23582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23583
23584 2009-02-27  Bruno Haible  <bruno@clisp.org>
23585
23586         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23587         value.
23588         * lib/stdint.in.h: Likewise.
23589         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23590
23591 2009-02-27  Eric Blake  <ebb9@byu.net>
23592
23593         doc: mention more functions added in cygwin 1.7.0
23594         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23595         addition.
23596         * doc/posix-functions/open_wmemstream.texi: Likewise.
23597         * doc/posix-functions/wcsnlen.texi: Likewise.
23598         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23599         * doc/posix-functions/wcstod.texi: Likewise.
23600         * doc/posix-functions/wcstof.texi: Likewise.
23601         * doc/posix-functions/wcstoimax.texi: Likewise.
23602         * doc/posix-functions/wcstok.texi: Likewise.
23603         * doc/posix-functions/wcstoumax.texi: Likewise.
23604
23605         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23606         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23607         * doc/posix-functions/fprintf.texi: Update.
23608         * doc/posix-functions/printf.texi: Update.
23609         * doc/posix-functions/snprintf.texi: Update.
23610         * doc/posix-functions/sprintf.texi: Update.
23611         * doc/posix-functions/vfprintf.texi: Update.
23612         * doc/posix-functions/vprintf.texi: Update.
23613         * doc/posix-functions/vsnprintf.texi: Update.
23614         * doc/posix-functions/vsprintf.texi: Update.
23615         * doc/glibc-functions/obstack_printf.texi: Update.
23616         * doc/glibc-functions/obstack_vprintf.texi: Update.
23617
23618 2009-02-26  Eric Blake  <ebb9@byu.net>
23619
23620         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23621         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23622         compilation bug by using runtime conversion.
23623         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23624         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23625         * modules/ceill-tests (Files): Use nan.h.
23626         * modules/floorl-tests (Files): Likewise.
23627         * modules/frexpl-tests (Files): Likewise.
23628         * modules/isnanl-tests (Files): Likewise.
23629         * modules/ldexpl-tests (Files): Likewise.
23630         * modules/roundl-tests (Files): Likewise.
23631         * modules/truncl-tests (Files): Likewise.
23632         * tests/test-ceill.c (main): Use a working NaN.
23633         * tests/test-floorl.c (main): Likewise.
23634         * tests/test-frexpl.c (main): Likewise.
23635         * tests/test-isnan.c (test_long_double): Likewise.
23636         * tests/test-isnanl.h (main): Likewise.
23637         * tests/test-ldexpl.h (main): Likewise.
23638         * tests/test-roundl.h (main): Likewise.
23639         * tests/test-truncl.h (main): Likewise.
23640         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23641
23642 2009-02-26  Eric Blake  <ebb9@byu.net>
23643             Bruno Haible  <bruno@clisp.org>
23644
23645         Work around a *printf bug with %ls on Solaris.
23646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23647         precision is specified, sprintf stops converting the wide string
23648         argument when the number of bytes that have been produced by this
23649         conversion equals or exceeds the precision.
23650         * doc/posix-functions/fprintf.texi: Update.
23651         * doc/posix-functions/printf.texi: Update.
23652         * doc/posix-functions/snprintf.texi: Update.
23653         * doc/posix-functions/sprintf.texi: Update.
23654         * doc/posix-functions/vfprintf.texi: Update.
23655         * doc/posix-functions/vprintf.texi: Update.
23656         * doc/posix-functions/vsnprintf.texi: Update.
23657         * doc/posix-functions/vsprintf.texi: Update.
23658         * doc/glibc-functions/obstack_printf.texi: Update.
23659         * doc/glibc-functions/obstack_vprintf.texi: Update.
23660
23661 2009-02-26  Eric Blake  <ebb9@byu.net>
23662
23663         stdlib: favor compiler check of random.h
23664         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23665         to avoid an ObjC random.h installed by Swarm.
23666
23667 2009-02-26  Bruno Haible  <bruno@clisp.org>
23668
23669         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23670         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23671         Reported by Gary V. Vaughan <gary@gnu.org>.
23672
23673 2009-02-26  Bruno Haible  <bruno@clisp.org>
23674
23675         Fix *printf behaviour regarding the %ls directive.
23676         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23677         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23678         NEED_PRINTF_DIRECTIVE_LS.
23679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23680         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23681         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23682         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23683         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23684         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23685         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23688         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23690         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23694         * doc/posix-functions/fprintf.texi: Update.
23695         * doc/posix-functions/printf.texi: Update.
23696         * doc/posix-functions/snprintf.texi: Update.
23697         * doc/posix-functions/sprintf.texi: Update.
23698         * doc/posix-functions/vfprintf.texi: Update.
23699         * doc/posix-functions/vprintf.texi: Update.
23700         * doc/posix-functions/vsnprintf.texi: Update.
23701         * doc/posix-functions/vsprintf.texi: Update.
23702         * doc/glibc-functions/obstack_printf.texi: Update.
23703         * doc/glibc-functions/obstack_vprintf.texi: Update.
23704         Reported by Eric Blake.
23705
23706 2009-02-25  Bruno Haible  <bruno@clisp.org>
23707
23708         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23709         with known value.
23710         Reported by Gary V. Vaughan <gary@gnu.org>.
23711
23712 2009-02-25  Bruno Haible  <bruno@clisp.org>
23713
23714         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23715         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23716         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23717         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23718         Reported by Gary V. Vaughan <gary@gnu.org>.
23719
23720 2009-02-25  Bruno Haible  <bruno@clisp.org>
23721
23722         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23723         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23724         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23725         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23726         Reported by Gary V. Vaughan <gary@gnu.org>.
23727
23728 2009-02-25  Eric Blake  <ebb9@byu.net>
23729
23730         tests: skip fseek/ftell tests if ungetc is broken
23731         * m4/ungetc.m4: New file.
23732         * modules/fseek-tests: Split test, so ungetc dependency is
23733         separate from rest of test.
23734         * modules/fseeko-tests: Likewise.
23735         * modules/ftell-tests: Likewise.
23736         * modules/ftello-tests: Likewise.
23737         * tests/test-fseek.c (main): Isolate ungetc dependency.
23738         * tests/test-fseeko.c (main): Likewise.
23739         * tests/test-ftell.c (main): Likewise.
23740         * tests/test-ftello.c (main): Likewise.
23741         * tests/test-fseek2.sh: New file.
23742         * tests/test-fseeko2.sh: Likewise.
23743         * tests/test-ftell2.sh: Likewise.
23744         * tests/test-ftello2.sh: Likewise.
23745
23746 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23747
23748         test-getaddrinfo: fix usage of skip return code 77
23749         * tests/test-gettaddrinfo.c: Return skip code 77 only
23750         for first occurance of skip (4x77 is not 77)
23751
23752 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23753
23754         strtod: avoid C99 decl-after-statement
23755         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23756
23757 2009-02-24  Eric Blake  <ebb9@byu.net>
23758
23759         strtod: detect HP-UX 11.31 bug
23760         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23761         Reported by Gary V. Vaughan.
23762
23763 2009-02-23  Bruno Haible  <bruno@clisp.org>
23764
23765         Fix invalid read past end of memory block.
23766         * lib/vasnprintf.c (DCHAR_SET): Define.
23767         (local_wcslen): Define only when needed.
23768         (local_strnlen, local_wcsnlen): New functions.
23769         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23770         directives that involve a conversion ourselves.
23771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23772         wcsnlen, mbrtowc, wcrtomb.
23773         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23774         * tests/test-vasprintf-posix.c (test_function): Likewise.
23775         * tests/test-snprintf-posix.h (test_function): Likewise.
23776         * tests/test-sprintf-posix.h (test_function): Likewise.
23777         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23778
23779 2009-02-22  Bruno Haible  <bruno@clisp.org>
23780
23781         Implement new clarified decomposition of Hangul syllables.
23782         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23783         of type LTV, return only a pairwise decomposition.
23784         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23785         Likewise.
23786         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23787         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23788         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23789
23790 2009-02-22  Bruno Haible  <bruno@clisp.org>
23791
23792         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23793         zero-length results and shrink excess allocated memory.
23794         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23795         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23796         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23797         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23798         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23799         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23800         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23801         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23802         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23803         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23804         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23805         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23806
23807 2009-02-21  Bruno Haible  <bruno@clisp.org>
23808
23809         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23810         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23811         spaces after a period. Put a space between a macro name and its
23812         argument list. Trivial rewordings.
23813         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23814         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23815         (main): Return 0 explicitly.
23816
23817 2009-02-21  Bruno Haible  <bruno@clisp.org>
23818
23819         Tests for module 'uninorm/filter'.
23820         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23821         * modules/uninorm/filter-tests: New file.
23822
23823         New module 'uninorm/filter'.
23824         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23825         uninorm_filter_flush, uninorm_filter_free): New declarations.
23826         * lib/uninorm/uninorm-filter.c: New file.
23827         * modules/uninorm/filter: New file.
23828
23829 2009-02-21  Bruno Haible  <bruno@clisp.org>
23830
23831         Tests for module 'uninorm/nfkc'.
23832         * tests/uninorm/test-nfkc.c: New file.
23833         * tests/uninorm/test-u8-nfkc.c: New file.
23834         * tests/uninorm/test-u16-nfkc.c: New file.
23835         * tests/uninorm/test-u32-nfkc.c: New file.
23836         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23837         * tests/uninorm/test-u32-nfkc-big.c: New file.
23838         * modules/uninorm/nfkc-tests: New file.
23839
23840         New module 'uninorm/nfkc'.
23841         * lib/uninorm/nfkc.c: New file.
23842         * modules/uninorm/nfkc: New file.
23843
23844         Tests for module 'uninorm/nfkd'.
23845         * tests/uninorm/test-nfkd.c: New file.
23846         * tests/uninorm/test-u8-nfkd.c: New file.
23847         * tests/uninorm/test-u16-nfkd.c: New file.
23848         * tests/uninorm/test-u32-nfkd.c: New file.
23849         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23850         * tests/uninorm/test-u32-nfkd-big.c: New file.
23851         * modules/uninorm/nfkd-tests: New file.
23852
23853         New module 'uninorm/nfkd'.
23854         * lib/uninorm/nfkd.c: New file.
23855         * modules/uninorm/nfkd: New file.
23856
23857         Tests for module 'uninorm/nfc'.
23858         * tests/uninorm/test-nfc.c: New file.
23859         * tests/uninorm/test-u8-nfc.c: New file.
23860         * tests/uninorm/test-u16-nfc.c: New file.
23861         * tests/uninorm/test-u32-nfc.c: New file.
23862         * tests/uninorm/test-u32-nfc-big.sh: New file.
23863         * tests/uninorm/test-u32-nfc-big.c: New file.
23864         * modules/uninorm/nfc-tests: New file.
23865
23866         New module 'uninorm/nfc'.
23867         * lib/uninorm/nfc.c: New file.
23868         * modules/uninorm/nfc: New file.
23869
23870         Tests for module 'uninorm/nfd'.
23871         * tests/uninorm/test-nfd.c: New file.
23872         * tests/uninorm/test-u8-nfd.c: New file.
23873         * tests/uninorm/test-u16-nfd.c: New file.
23874         * tests/uninorm/test-u32-nfd.c: New file.
23875         * tests/uninorm/test-u32-nfd-big.sh: New file.
23876         * tests/uninorm/test-u32-nfd-big.c: New file.
23877         * tests/uninorm/test-u32-normalize-big.h: New file.
23878         * tests/uninorm/test-u32-normalize-big.c: New file.
23879         * tests/uninorm/NormalizationTest.txt: New file, created from
23880         Unicode 5.1.0 NormalizationTest.txt.
23881         * modules/uninorm/nfd-tests: New file.
23882
23883         New module 'uninorm/nfd'.
23884         * lib/uninorm/nfd.c: New file.
23885         * modules/uninorm/nfd: New file.
23886
23887         New module 'uninorm/u32-normalize'.
23888         * lib/uninorm/u32-normalize.c: New file.
23889         * modules/uninorm/u32-normalize: New file.
23890
23891         New module 'uninorm/u16-normalize'.
23892         * lib/uninorm/u16-normalize.c: New file.
23893         * modules/uninorm/u16-normalize: New file.
23894
23895         New module 'uninorm/u8-normalize'.
23896         * lib/uninorm/u8-normalize.c: New file.
23897         * lib/uninorm/normalize-internal.h: New file.
23898         * lib/uninorm/u-normalize-internal.h: New file.
23899         * modules/uninorm/u8-normalize: New file.
23900
23901         New module 'uninorm/decompose-internal'.
23902         * lib/uninorm/decompose-internal.c: New file.
23903         * modules/uninorm/decompose-internal: New file.
23904
23905         Tests for module 'uninorm/composition'.
23906         * tests/uninorm/test-composition.c: New file.
23907         * modules/uninorm/composition-tests: New file.
23908
23909         New module 'uninorm/composition'.
23910         * lib/uninorm/composition.c: New file.
23911         * lib/uninorm/composition-table.gperf: New file, generated by
23912         gen-uni-tables.
23913         * modules/uninorm/composition: New file.
23914
23915         Tests for module 'uninorm/compat-decomposition'.
23916         * tests/uninorm/test-compat-decomposition.c: New file.
23917         * modules/uninorm/compat-decomposition-tests: New file.
23918
23919         New module 'uninorm/compat-decomposition'.
23920         * lib/uninorm/decompose-internal.h: New file.
23921         * lib/uninorm/compat-decomposition.c: New file.
23922         * modules/uninorm/compat-decomposition: New file.
23923
23924         Tests for module 'uninorm/canonical-decomposition'.
23925         * tests/uninorm/test-canonical-decomposition.c: New file.
23926         * modules/uninorm/canonical-decomposition-tests: New file.
23927
23928         New module 'uninorm/canonical-decomposition'.
23929         * lib/uninorm/canonical-decomposition.c: New file.
23930         * modules/uninorm/canonical-decomposition: New file.
23931
23932         Tests for module 'uninorm/decomposition'.
23933         * tests/uninorm/test-decomposition.c: New file.
23934         * modules/uninorm/decomposition-tests: New file.
23935
23936         New module 'uninorm/decomposition'.
23937         * lib/uninorm/decomposition.c: New file.
23938         * modules/uninorm/decomposition: New file.
23939
23940         New module 'uninorm/decomposition-table'.
23941         * lib/uninorm/decomposition-table.h: New file.
23942         * lib/uninorm/decomposition-table.c: New file.
23943         * lib/uninorm/decomposition-table1.h: New file, generated by
23944         gen-uni-tables.
23945         * lib/uninorm/decomposition-table2.h: New file, generated by
23946         gen-uni-tables.
23947         * modules/uninorm/decomposition-table: New file.
23948
23949         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23950         (UC_DECOMP_*): New enumeration items.
23951         (get_decomposition): New function.
23952         (struct decomp_table): New type.
23953         (output_decomposition, output_decomposition_tables): New functions.
23954         (unicode_composition_exclusions): New variable.
23955         (fill_composition_exclusions, debug_output_composition_tables): New
23956         functions.
23957         (main): Accept one more argument. Invoke fill_composition_exclusions.
23958         Output decomposition and composition tables.
23959
23960         New module 'uninorm/base'.
23961         * lib/uninorm.h: New file.
23962         * lib/unictype.h: Update comment.
23963         * modules/uninorm/base: New file.
23964
23965 2009-02-21  David Lutterkort  <lutter@redhat.com>
23966
23967         Tests for module 'safe-alloc'.
23968         * tests/test-safe-alloc.c: New file.
23969         * modules/safe-alloc-tests: New file.
23970
23971         New module 'safe-alloc'.
23972         * lib/safe-alloc.h: New file.
23973         * lib/safe-alloc.c: New file.
23974         * m4/safe-alloc.m4: New file.
23975         * modules/safe-alloc: New file.
23976         * doc/safe-alloc.texi: New file.
23977         * doc/gnulib.texi: Include it.
23978         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23979         safe-alloc.
23980
23981 2009-02-18  Bruno Haible  <bruno@clisp.org>
23982
23983         Fix link error on non-glibc systems.
23984         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23985         variable.
23986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23987
23988 2009-02-18  Jim Meyering  <meyering@redhat.com>
23989
23990         fts: avoid used-uninitialized error due to recent change
23991         * lib/fts.c (fts_read): Guard uses of the new member,
23992         parent->fts_n_dirs_remaining, since it's not relevant for
23993         the parent of a directory specified on the command-line.
23994
23995 2009-02-17  James Youngman  <jay@gnu.org>
23996             Bruno Haible  <bruno@clisp.org>
23997
23998         * m4/include_next.m4: Reformulate comment.
23999
24000 2009-02-16  Jim Meyering  <meyering@redhat.com>
24001
24002         fts: add #if guards so that the fts_lgpl module still builds
24003         * lib/fts.c: Guard just-added hash-table-using parts with
24004         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
24005         Reported by Simon Josefsson.
24006
24007 2009-02-15  Bruno Haible  <bruno@clisp.org>
24008
24009         * modules/array-mergesort-tests: New file.
24010         * tests/test-array-mergesort.c: New file.
24011
24012         New module 'array-mergesort'.
24013         * modules/array-mergesort: New file.
24014         * lib/array-mergesort.h: New file.
24015
24016 2009-02-15  Bruno Haible  <bruno@clisp.org>
24017
24018         Fix 2009-02-07 commit.
24019         * lib/gen-uni-tables.c (output_predicate, output_category,
24020         output_combclass, output_bidi_category, output_decimal_digit,
24021         output_digit, output_numeric, output_mirror, output_scripts,
24022         output_ident_category, output_simple_mapping): Fix format directives.
24023         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
24024
24025 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
24026
24027         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
24028         fixes are available from IBM.
24029
24030 2009-02-13  Jim Meyering  <meyering@redhat.com>
24031
24032         fts: arrange not to stat non-directories in more cases
24033         This makes GNU find (when it doesn't need to stat each file)
24034         *much* more efficient at traversing reiserfs file systems.
24035         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
24036         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
24037         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
24038         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
24039         (leaf_optimization_applies): New function.
24040         (LCO_hash, LCO_compare): New helper functions.
24041         (link_count_optimize_ok): New function.
24042         (fts_stat): Initialize new member (if dir).
24043         (fts_read): Decrement parent's fts_n_dirs_remaining count if
24044         we've just stat'ed a directory.  Skip the stat call when possible.
24045         ---
24046         Note this AFS-related exchange:
24047         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
24048         and note find's pioctl call in find/fstype.c.
24049         But that is necessary only if you want to enable the
24050         optimization for AFS, and for now, I don't.
24051
24052         fts: move a function definition "up" (no semantic change)
24053         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
24054         "up" to precede upcoming use of a related function.
24055
24056 2009-02-11  Jim Meyering  <meyering@redhat.com>
24057
24058         fts: correct internal computation of nlinks (optimization-related)
24059         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
24060         whether the current entry is a directory, so don't test it.
24061
24062 2009-02-10  Bruno Haible  <bruno@clisp.org>
24063
24064         Tests for module 'uniwbrk/ulc-wordbreaks'.
24065         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
24066         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
24067         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
24068
24069         Tests for module 'uniwbrk/u32-wordbreaks'.
24070         * modules/uniwbrk/u32-wordbreaks-tests: New file.
24071         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
24072
24073         Tests for module 'uniwbrk/u16-wordbreaks'.
24074         * modules/uniwbrk/u16-wordbreaks-tests: New file.
24075         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
24076
24077         Tests for module 'uniwbrk/u8-wordbreaks'.
24078         * modules/uniwbrk/u8-wordbreaks-tests: New file.
24079         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
24080
24081 2009-02-10  Bruno Haible  <bruno@clisp.org>
24082
24083         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
24084         property.
24085         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
24086         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
24087         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
24088
24089 2009-02-10  Simon Josefsson  <simon@josefsson.org>
24090
24091         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
24092         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
24093
24094 2009-02-10  Bruno Haible  <bruno@clisp.org>
24095
24096         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
24097         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
24098         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
24099         * lib/unilbrk/u8-possible-linebreaks.c: Update.
24100         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
24101         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
24102
24103 2009-02-09  Simon Josefsson  <simon@josefsson.org>
24104
24105         * lib/sockets.h (gl_fd_to_handle): New function.
24106
24107         * tests/test-sockets.c: Call gl_fd_to_handle.
24108
24109 2009-02-09  Bruno Haible  <bruno@clisp.org>
24110
24111         * doc/havelib.texi: Document the conventions on bi-arch systems.
24112
24113 2009-02-08  Bruno Haible  <bruno@clisp.org>
24114
24115         Document the AC_LIB_LINKFLAGS macro.
24116         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24117         * doc/gnulib.texi: Include it.
24118
24119 2009-02-08  Bruno Haible  <bruno@clisp.org>
24120
24121         Fix wrong order of sections, compared to TOC.
24122         * doc/gnulib.texi: Include relocatable-maint.texi after the
24123         "Regular expressions" node, not before.
24124
24125 2009-02-08  Bruno Haible  <bruno@clisp.org>
24126
24127         Tests for module 'unicase/totitle'.
24128         * modules/unicase/totitle-tests: New file.
24129
24130         Tests for module 'unicase/tolower'.
24131         * modules/unicase/tolower-tests: New file.
24132
24133         Tests for module 'unicase/toupper'.
24134         * modules/unicase/toupper-tests: New file.
24135         * tests/unicase/test-mapping-part1.h: New file.
24136         * tests/unicase/test-mapping-part2.h: New file.
24137
24138         New module 'unicase/totitle'.
24139         * modules/unicase/totitle: New file.
24140         * lib/unicase/totitle.c: New file.
24141
24142         New module 'unicase/tolower'.
24143         * modules/unicase/tolower: New file.
24144         * lib/unicase/tolower.c: New file.
24145
24146         New module 'unicase/toupper'.
24147         * modules/unicase/toupper: New file.
24148         * lib/unicase/toupper.c: New file.
24149         * lib/unicase/simple-mapping.h: New file.
24150
24151         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24152         (mapping_table): New structure.
24153         (output_simple_mapping): New function.
24154         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24155         * modules/gen-uni-tables (Description): Update.
24156         * lib/unicase/toupper.h: New file, automatically generated by
24157         gen-uni-tables.
24158         * lib/unicase/tolower.h: New file, automatically generated by
24159         gen-uni-tables.
24160         * lib/unicase/totitle.h: New file, automatically generated by
24161         gen-uni-tables.
24162         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24163         gen-uni-tables.
24164         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24165         gen-uni-tables.
24166         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24167         gen-uni-tables.
24168
24169         New module 'unicase/base'.
24170         * modules/unicase/base: New file.
24171         * lib/unicase.h: New file.
24172
24173 2009-02-08  Bruno Haible  <bruno@clisp.org>
24174
24175         New module 'uniwbrk/ulc-wordbreaks'.
24176         * modules/uniwbrk/ulc-wordbreaks: New file.
24177         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24178
24179         New module 'uniwbrk/u32-wordbreaks'.
24180         * modules/uniwbrk/u32-wordbreaks: New file.
24181         * lib/uniwbrk/u32-wordbreaks.c: New file.
24182
24183         New module 'uniwbrk/u16-wordbreaks'.
24184         * modules/uniwbrk/u16-wordbreaks: New file.
24185         * lib/uniwbrk/u16-wordbreaks.c: New file.
24186
24187         New module 'uniwbrk/u8-wordbreaks'.
24188         * modules/uniwbrk/u8-wordbreaks: New file.
24189         * lib/uniwbrk/u8-wordbreaks.c: New file.
24190         * lib/uniwbrk/u-wordbreaks.h: New file.
24191
24192         New module 'uniwbrk/table'.
24193         * modules/uniwbrk/table: New file.
24194         * lib/uniwbrk/wbrktable.h: New file.
24195         * lib/uniwbrk/wbrktable.c: New file.
24196
24197         New module 'uniwbrk/wordbreak-property'.
24198         * modules/uniwbrk/wordbreak-property: New file.
24199         * lib/uniwbrk/wordbreak-property.c: New file.
24200
24201         * lib/gen-uni-tables.c (WBP_*): New enum items.
24202         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24203         (unicode_org_wbp): New variable.
24204         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24205         New functions.
24206         (wbp_table): New structure.
24207         (output_wbp, output_wbrk_tables): New functions.
24208         (main): Accept additional argument. Invoke fill_org_wbp,
24209         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24210         output_wbrk_tables.
24211         * modules/gen-uni-tables (Description): Update.
24212         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24213         gen-uni-tables.
24214
24215         New module 'uniwbrk/base'.
24216         * modules/uniwbrk/base: New file.
24217         * lib/uniwbrk.h: New file.
24218
24219 2009-02-08  Bruno Haible  <bruno@clisp.org>
24220
24221         Update to Unicode 5.1.0.
24222         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24223         U+2185..U+2188.
24224         (is_property_default_ignorable_code_point): Don't include characters
24225         of category Cc or Cs and not-a-characters.
24226         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24227         U+0D79, U+109E, U+109F, U+A60C.
24228         * lib/unictype/bidi_of.h: Regenerated.
24229         * lib/unictype/blocks.h: Regenerated.
24230         * lib/unictype/categ_C.h: Regenerated.
24231         * lib/unictype/categ_Cf.h: Regenerated.
24232         * lib/unictype/categ_Cn.h: Regenerated.
24233         * lib/unictype/categ_L.h: Regenerated.
24234         * lib/unictype/categ_Ll.h: Regenerated.
24235         * lib/unictype/categ_Lm.h: Regenerated.
24236         * lib/unictype/categ_Lo.h: Regenerated.
24237         * lib/unictype/categ_Lu.h: Regenerated.
24238         * lib/unictype/categ_M.h: Regenerated.
24239         * lib/unictype/categ_Mc.h: Regenerated.
24240         * lib/unictype/categ_Me.h: Regenerated.
24241         * lib/unictype/categ_Mn.h: Regenerated.
24242         * lib/unictype/categ_N.h: Regenerated.
24243         * lib/unictype/categ_Nd.h: Regenerated.
24244         * lib/unictype/categ_Nl.h: Regenerated.
24245         * lib/unictype/categ_No.h: Regenerated.
24246         * lib/unictype/categ_P.h: Regenerated.
24247         * lib/unictype/categ_Pd.h: Regenerated.
24248         * lib/unictype/categ_Pe.h: Regenerated.
24249         * lib/unictype/categ_Pf.h: Regenerated.
24250         * lib/unictype/categ_Pi.h: Regenerated.
24251         * lib/unictype/categ_Po.h: Regenerated.
24252         * lib/unictype/categ_Ps.h: Regenerated.
24253         * lib/unictype/categ_S.h: Regenerated.
24254         * lib/unictype/categ_Sk.h: Regenerated.
24255         * lib/unictype/categ_Sm.h: Regenerated.
24256         * lib/unictype/categ_So.h: Regenerated.
24257         * lib/unictype/categ_of.h: Regenerated.
24258         * lib/unictype/combining.h: Regenerated.
24259         * lib/unictype/ctype_alnum.h: Regenerated.
24260         * lib/unictype/ctype_alpha.h: Regenerated.
24261         * lib/unictype/ctype_graph.h: Regenerated.
24262         * lib/unictype/ctype_lower.h: Regenerated.
24263         * lib/unictype/ctype_print.h: Regenerated.
24264         * lib/unictype/ctype_punct.h: Regenerated.
24265         * lib/unictype/ctype_upper.h: Regenerated.
24266         * lib/unictype/decdigit.h: Regenerated.
24267         * lib/unictype/digit.h: Regenerated.
24268         * lib/unictype/mirror.h: Regenerated.
24269         * lib/unictype/numeric.h: Regenerated.
24270         * lib/unictype/pr_alphabetic.h: Regenerated.
24271         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24272         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24273         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24274         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24275         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24276         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24277         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24278         * lib/unictype/pr_combining.h: Regenerated.
24279         * lib/unictype/pr_dash.h: Regenerated.
24280         * lib/unictype/pr_decimal_digit.h: Regenerated.
24281         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24282         * lib/unictype/pr_deprecated.h: Regenerated.
24283         * lib/unictype/pr_diacritic.h: Regenerated.
24284         * lib/unictype/pr_extender.h: Regenerated.
24285         * lib/unictype/pr_format_control.h: Regenerated.
24286         * lib/unictype/pr_grapheme_base.h: Regenerated.
24287         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24288         * lib/unictype/pr_grapheme_link.h: Regenerated.
24289         * lib/unictype/pr_id_continue.h: Regenerated.
24290         * lib/unictype/pr_id_start.h: Regenerated.
24291         * lib/unictype/pr_ideographic.h: Regenerated.
24292         * lib/unictype/pr_ignorable_control.h: Regenerated.
24293         * lib/unictype/pr_lowercase.h: Regenerated.
24294         * lib/unictype/pr_math.h: Regenerated.
24295         * lib/unictype/pr_numeric.h: Regenerated.
24296         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24297         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24298         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24299         * lib/unictype/pr_other_id_continue.h: Regenerated.
24300         * lib/unictype/pr_other_lowercase.h: Regenerated.
24301         * lib/unictype/pr_other_math.h: Regenerated.
24302         * lib/unictype/pr_punctuation.h: Regenerated.
24303         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24304         * lib/unictype/pr_soft_dotted.h: Regenerated.
24305         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24306         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24307         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24308         * lib/unictype/pr_uppercase.h: Regenerated.
24309         * lib/unictype/pr_xid_continue.h: Regenerated.
24310         * lib/unictype/pr_xid_start.h: Regenerated.
24311         * lib/unictype/pr_zero_width.h: Regenerated.
24312         * lib/unictype/scripts.h: Regenerated.
24313         * lib/unictype/scripts_byname.gperf: Regenerated.
24314         * lib/unictype/sy_java_ident.h: Regenerated.
24315         * lib/unilbrk/lbrkprop1.h: Regenerated.
24316         * lib/unilbrk/lbrkprop2.h: Regenerated.
24317         * tests/unictype/test-categ_C.c: Regenerated.
24318         * tests/unictype/test-categ_Cf.c: Regenerated.
24319         * tests/unictype/test-categ_Cn.c: Regenerated.
24320         * tests/unictype/test-categ_L.c: Regenerated.
24321         * tests/unictype/test-categ_Ll.c: Regenerated.
24322         * tests/unictype/test-categ_Lm.c: Regenerated.
24323         * tests/unictype/test-categ_Lo.c: Regenerated.
24324         * tests/unictype/test-categ_Lu.c: Regenerated.
24325         * tests/unictype/test-categ_M.c: Regenerated.
24326         * tests/unictype/test-categ_Mc.c: Regenerated.
24327         * tests/unictype/test-categ_Me.c: Regenerated.
24328         * tests/unictype/test-categ_Mn.c: Regenerated.
24329         * tests/unictype/test-categ_N.c: Regenerated.
24330         * tests/unictype/test-categ_Nd.c: Regenerated.
24331         * tests/unictype/test-categ_Nl.c: Regenerated.
24332         * tests/unictype/test-categ_No.c: Regenerated.
24333         * tests/unictype/test-categ_P.c: Regenerated.
24334         * tests/unictype/test-categ_Pd.c: Regenerated.
24335         * tests/unictype/test-categ_Pe.c: Regenerated.
24336         * tests/unictype/test-categ_Pf.c: Regenerated.
24337         * tests/unictype/test-categ_Pi.c: Regenerated.
24338         * tests/unictype/test-categ_Po.c: Regenerated.
24339         * tests/unictype/test-categ_Ps.c: Regenerated.
24340         * tests/unictype/test-categ_S.c: Regenerated.
24341         * tests/unictype/test-categ_Sk.c: Regenerated.
24342         * tests/unictype/test-categ_Sm.c: Regenerated.
24343         * tests/unictype/test-categ_So.c: Regenerated.
24344         * tests/unictype/test-ctype_alnum.c: Regenerated.
24345         * tests/unictype/test-ctype_alpha.c: Regenerated.
24346         * tests/unictype/test-ctype_graph.c: Regenerated.
24347         * tests/unictype/test-ctype_lower.c: Regenerated.
24348         * tests/unictype/test-ctype_print.c: Regenerated.
24349         * tests/unictype/test-ctype_punct.c: Regenerated.
24350         * tests/unictype/test-ctype_upper.c: Regenerated.
24351         * tests/unictype/test-decdigit.h: Regenerated.
24352         * tests/unictype/test-digit.h: Regenerated.
24353         * tests/unictype/test-numeric.h: Regenerated.
24354         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24355         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24356         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24357         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24358         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24359         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24360         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24361         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24362         * tests/unictype/test-pr_combining.c: Regenerated.
24363         * tests/unictype/test-pr_dash.c: Regenerated.
24364         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24365         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24366         * tests/unictype/test-pr_deprecated.c: Regenerated.
24367         * tests/unictype/test-pr_diacritic.c: Regenerated.
24368         * tests/unictype/test-pr_extender.c: Regenerated.
24369         * tests/unictype/test-pr_format_control.c: Regenerated.
24370         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24371         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24372         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24373         * tests/unictype/test-pr_id_continue.c: Regenerated.
24374         * tests/unictype/test-pr_id_start.c: Regenerated.
24375         * tests/unictype/test-pr_ideographic.c: Regenerated.
24376         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24377         * tests/unictype/test-pr_lowercase.c: Regenerated.
24378         * tests/unictype/test-pr_math.c: Regenerated.
24379         * tests/unictype/test-pr_numeric.c: Regenerated.
24380         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24381         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24382         Regenerated.
24383         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24384         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24385         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24386         * tests/unictype/test-pr_other_math.c: Regenerated.
24387         * tests/unictype/test-pr_punctuation.c: Regenerated.
24388         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24389         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24390         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24391         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24392         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24393         * tests/unictype/test-pr_uppercase.c: Regenerated.
24394         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24395         * tests/unictype/test-pr_xid_start.c: Regenerated.
24396         * tests/unictype/test-pr_zero_width.c: Regenerated.
24397
24398         Update to Unicode 5.1.0.
24399         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24400         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24401         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24402         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24403         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24404         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24405         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24406         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24407         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24408         (nonspacing_table_ind): Update.
24409         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24410
24411         Update to Unicode 5.1.0.
24412         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24413         code transform.
24414         * lib/uniname/uniname.c (unicode_character_name,
24415         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24416         * lib/uniname/uninames.h: Regenerated.
24417         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24418
24419 2009-02-07  Bruno Haible  <bruno@clisp.org>
24420
24421         Merge gen-ctype and gen-lbrk into a single program.
24422         * lib/gen-uni-tables.c: New file, incorporating
24423         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24424         Add directory prefixes to the names of the generated files.
24425         * lib/unictype/gen-ctype.c: Remove file.
24426         * lib/unilbrk/gen-lbrk.c: Remove file.
24427         * modules/gen-uni-tables: New file.
24428         * modules/unictype/gen-ctype: Remove file.
24429         * modules/unilbrk/gen-lbrk: Remove file.
24430
24431 2009-02-07  Bruno Haible  <bruno@clisp.org>
24432
24433         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24434
24435         New module 'unistr/u32-strcoll'.
24436         * modules/unistr/u32-strcoll: New file.
24437         * lib/unistr/u32-strcoll.c: New file.
24438
24439         New module 'unistr/u16-strcoll'.
24440         * modules/unistr/u16-strcoll: New file.
24441         * lib/unistr/u16-strcoll.c: New file.
24442
24443         New module 'unistr/u8-strcoll'.
24444         * modules/unistr/u8-strcoll: New file.
24445         * lib/unistr/u8-strcoll.c: New file.
24446         * lib/unistr/u-strcoll.h: New file.
24447
24448 2009-02-07  Bruno Haible  <bruno@clisp.org>
24449
24450         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24451         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24452         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24453         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24454         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24455         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24456
24457 2009-02-07  Bruno Haible  <bruno@clisp.org>
24458
24459         Make 64-bit clean.
24460         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24461         output_combclass, output_bidi_category, output_decimal_digit,
24462         output_digit, output_numeric, output_mirror, output_scripts,
24463         output_ident_category): Use proper width specifier in format strings.
24464
24465 2009-02-07  Bruno Haible  <bruno@clisp.org>
24466
24467         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24468         failure behaviour.
24469
24470 2009-02-07  Jim Meyering  <meyering@redhat.com>
24471
24472         regex: avoid compilation failure with upcoming gcc-4.4
24473         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24474         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24475         "... error: integer overflow in preprocessor expression".
24476
24477 2009-02-05  Ben Pfaff  <blp@gnu.org>
24478
24479         Fix link errors on Windows when close module is used.
24480         * modules/close: Add $(LIB_CLOSE) to Link section.
24481         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24482         $(LIB_CLOSE) on Windows.
24483
24484 2009-02-05  Jim Meyering  <meyering@redhat.com>
24485
24486         still avoid unused-parameter warnings, but do it cleanly
24487         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24488         (get_fs_usage): Cast to void instead.
24489         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24490         (dev_from_mount_options, read_file_system_list): Cast to void.
24491         Prompted by Bruno Haible.
24492
24493 2009-02-04  Jim Meyering  <meyering@redhat.com>
24494
24495         fsusage.c: correct copyright year
24496         * lib/fsusage.c: Reflect year in which the change is pushed into
24497
24498         avoid misc. warnings
24499         * lib/fsusage.c (UNUSED_PARAM): Define.
24500         (get_fs_usage): Mark parameter "disk" as unused.
24501         * lib/getugroups.c (getgrent): Use "void" in prototype.
24502         * lib/mountlist.c: Mark unused parameters.
24503         (read_file_system_list): Declare a local with "const".
24504         * lib/nanosleep.c (getnow): Declare static.
24505         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24506
24507         dirfd: set errno upon failure
24508         * lib/dirfd.c: Include <errno.h>.
24509         Set errno to ENOTSUP when returning -1.
24510         * modules/dirfd (Depends-on): Add errno.
24511         Suggested by John Kodis <kodis@comcast.net>.
24512
24513 2009-02-01  Bruno Haible  <bruno@clisp.org>
24514
24515         Don't assume sizeof (long) >= sizeof (void *).
24516         * lib/memcmp.c: Include stdint.h.
24517         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24518         srcp2 to 'const byte *'.
24519         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24520         types to uintptr_t.
24521         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24522         * modules/memcmp (Depends-on): Add stdint.
24523         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24524
24525 2009-01-30  Eric Blake  <ebb9@byu.net>
24526
24527         fix more require-before-expand issues
24528         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24529         expand, AC_PROG_AWK.
24530         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24531
24532 2009-01-28  Eric Blake  <ebb9@byu.net>
24533
24534         version-etc: use consistent URL formatting
24535         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24536         Improve formatting.  Use fputs for string without %.
24537
24538 2009-01-28  Jim Meyering  <meyering@redhat.com>
24539
24540         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24541         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24542         "underquoted definition of NAME" from autoconf-2.59.
24543
24544 2009-01-28  Bruno Haible  <bruno@clisp.org>
24545
24546         * doc/gnulib.texi: Add "Obsolete modules" to index.
24547
24548 2009-01-28  Jim Meyering  <meyering@redhat.com>
24549
24550         useless-if-before-free: recognize more variants
24551         * build-aux/useless-if-before-free: Also recognize e.g.,
24552         if (NULL != p) free (p);
24553
24554 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24555
24556         test-getaddrinfo: skip (don't fail) this test when there's no network
24557         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24558         on the presumption that it means you lack network access.
24559
24560 2009-01-26  Jim Meyering  <meyering@redhat.com>
24561
24562         fflush: avoid warnings on modern systems
24563         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24564         pos and result, into scopes where they're used.
24565
24566 2009-01-26  Eric Blake  <ebb9@byu.net>
24567
24568         Silence warning reintroduced by recent extensions patch.
24569         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24570         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24571         autoconf.
24572
24573         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24574         * m4/00gnulib.m4: New file.
24575         * gnulib-tool (func_get_filelist): Always use it.
24576         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24577         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24578
24579 2009-01-25  Bruno Haible  <bruno@clisp.org>
24580
24581         Make test-quotearg work on MacOS X and AIX.
24582         * tests/test-quotearg.sh: New file.
24583         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24584         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24585         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24586         include <libintl.h>.
24587         (fake_locale): Remove variable.
24588         (gettext, dgettext, dcgettext): Remove functions.
24589         (main): Instead of setting a fake locale, set a real locale. Call
24590         textdomain and bindtextdomain.
24591         * modules/quotearg-tests (Files): Add the new files.
24592         (Depends-on): Add gettext, setenv, unsetenv.
24593         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24594         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24595         Augment TESTS_ENVIRONMENT.
24596
24597 2009-01-25  Bruno Haible  <bruno@clisp.org>
24598
24599         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24600         fr_FR.ISO8859-1 locale on MacOS X.
24601         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24602         ja_JP.eucJP locale on MacOS X.
24603         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24604         zh_CN.GB18030 locale on MacOS X.
24605
24606 2009-01-25  Bruno Haible  <bruno@clisp.org>
24607
24608         Avoid link errors on MacOS X 10.3.
24609         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24610         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24611
24612 2009-01-25  Bruno Haible  <bruno@clisp.org>
24613
24614         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24615         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24616         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24617         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24618         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24619         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24620         posix_spawnattr_init, posix_spawnattr_setsigmask,
24621         posix_spawnattr_setflags, posix_spawnattr_destroy.
24622
24623         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24624         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24625         * modules/execute (Files): Remove m4/posix_spawn.m4.
24626         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24627         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24628         posix_spawnattr_init, posix_spawnattr_setsigmask,
24629         posix_spawnattr_setflags, posix_spawnattr_destroy.
24630
24631 2009-01-25  Bruno Haible  <bruno@clisp.org>
24632
24633         * lib/glthread/threadlib.c: Include <stdlib.h>.
24634
24635 2009-01-25  Bruno Haible  <bruno@clisp.org>
24636
24637         * lib/glthread/threadlib.c (dummy): New declaration.
24638
24639 2009-01-25  Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24642         multibyte characters also for the GB18030 encoding. Don't crash when
24643         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24644
24645 2009-01-25  Bruno Haible  <bruno@clisp.org>
24646
24647         Avoid redefining 'struct random_data' on OSF/1 5.1.
24648         * lib/stdlib.in.h: Include <random.h> if it exists.
24649         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24650         HAVE_RANDOM_H. Include <random.h> when testing whether
24651         'struct random_data' exists.
24652         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24653
24654 2009-01-25  Bruno Haible  <bruno@clisp.org>
24655
24656         Don't install charset.alias on MacOS X >= 10.3.
24657         * lib/localcharset.c (DARWIN7): New macro.
24658         (get_charset_aliases): Hardcode the result for Darwin7.
24659         * modules/localcharset (install-exec-local): Don't install
24660         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24661
24662 2009-01-25  Bruno Haible  <bruno@clisp.org>
24663
24664         Don't install charset.alias on mingw and Cygwin.
24665         * modules/localcharset (install-exec-local): Don't install
24666         charset.alias on mingw and Cygwin, if the file does not yet exist.
24667         The result for these platforms is hardcoded in localcharset.c.
24668
24669 2009-01-25  Bruno Haible  <bruno@clisp.org>
24670
24671         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24672         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24673         before requiring AC_USE_SYSTEM_EXTENSIONS.
24674
24675 2009-01-25  Jim Meyering  <meyering@redhat.com>
24676
24677         c-strtod: avoid warnings
24678         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24679         "assignment discards qualifiers from pointer target type" warnings.
24680
24681 2009-01-24  Bruno Haible  <bruno@clisp.org>
24682
24683         Add support for non-UTF-8 locales on MacOS X.
24684         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24685         canonical encodings. For Darwin 7 and newer, don't map traditional
24686         encodings to UTF-8.
24687         Reported by Vincent Lefevre <vincent@vinc17.org>
24688         at <http://savannah.gnu.org/bugs/?25235>.
24689
24690 2009-01-24  Bruno Haible  <bruno@clisp.org>
24691
24692         * doc/gnulib.texi (Obsolete modules): New section.
24693         Reported by Mike Frysinger <vapier@gentoo.org>.
24694
24695 2009-01-24  Bruno Haible  <bruno@clisp.org>
24696
24697         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24698         (%.dvi): New rule.
24699
24700 2009-01-24  Bruno Haible  <bruno@clisp.org>
24701
24702         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24703         Reported by Eric Blake.
24704
24705 2009-01-24  Bruno Haible  <bruno@clisp.org>
24706
24707         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24708         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24709         Reported by Gary V. Vaughan <gary@gnu.org>.
24710
24711 2009-01-24  Bruno Haible  <bruno@clisp.org>
24712
24713         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24714
24715 2009-01-23  Bruno Haible  <bruno@clisp.org>
24716
24717         Make c-strtod, c-strtold usable in libraries.
24718         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24719         (C_STRTOD): Call strdup instead of xstrdup.
24720         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24721         * modules/c-strtold (Depends-on): Likewise.
24722         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24723         * NEWS: Mention the change.
24724         Reported by Michael Gold <mgold@ncf.ca>.
24725
24726 2009-01-23  Jim Meyering  <meyering@redhat.com>
24727
24728         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24729         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24730         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24731
24732 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24733
24734         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24735         GNU CoreUtils.
24736         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24737         * modules/version-etc (Description): Update.
24738
24739 2009-01-22  Bruno Haible  <bruno@clisp.org>
24740
24741         Cache the C locale object.
24742         * lib/c-strtod.c (c_locale_cache): New variable.
24743         (c_locale): New function.
24744         (C_STRTOD): Use it, and don't call freelocale.
24745         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24746         Suggested by Paolo Bonzini.
24747
24748 2009-01-21  Bruno Haible  <bruno@clisp.org>
24749
24750         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24751         conditions other than overflow.
24752
24753 2009-01-21  Bruno Haible  <bruno@clisp.org>
24754
24755         * lib/c-strtod.c: Include errno.h.
24756         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24757         value from STRTOD_L and STRTOD.
24758
24759 2009-01-21  Bruno Haible  <bruno@clisp.org>
24760         and Jim Meyering  <meyering@redhat.com>
24761
24762         nanosleep: skip configure test (fail it) for apple universal builds
24763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24764         universal builds, assume that nanosleep does not work.
24765         * modules/nanosleep (Depends-on): Add multiarch.
24766
24767         mktime: skip configure test (fail it) for apple universal builds
24768         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24769         universal builds, assume that mktime does not work.
24770         * modules/mktime (Depends-on): Add multiarch.
24771
24772 2009-01-21  Eric Blake  <ebb9@byu.net>
24773
24774         multiarch: avoid expand-before-require warning
24775         * modules/multiarch (configure.ac): Require, rather than expand,
24776         gl_MULTIARCH.
24777         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24778         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24779         enforce that all clients require it.  Partial reversion of
24780         2008-12-29 patch.
24781
24782         error: avoid expand-before-require warning
24783         * modules/errno (configure.ac): Require, rather than expand,
24784         gl_HEADER_ERRNO_H.
24785         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24786         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24787         enforce that all clients require it.
24788
24789         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24790         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24791         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24792         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24793
24794 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24795
24796         Revert:
24797         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24798
24799         regex: do not depend on obsolete modules.
24800         * modules/regex: Remove memcmp and memmove.
24801
24802 2009-01-20  Bruno Haible  <bruno@clisp.org>
24803
24804         Make the 'link' module link on Windows NT 4.
24805         * lib/link.c (_WIN32_WINNT): Don't define.
24806         (CreateHardLinkFuncType): New type.
24807         (CreateHardLinkFunc, initialized): New variables.
24808         (initialize): New function.
24809         (link): Invoke CreateHardLink indirectly through the function pointer.
24810
24811 2009-01-20  Bruno Haible  <bruno@clisp.org>
24812
24813         Fix compilation failure on mingw.
24814         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24815
24816 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24817
24818         * doc/c-strtod.texi: Mention a couple of restrictions.
24819
24820 2009-01-20  Jim Meyering  <meyering@redhat.com>
24821
24822         gettimeofday: move more declarations out of functions
24823         * lib/gettimeofday.c: Move extern declarations of tzset and
24824         gmtime out of containing functions.  Prompted by Bruno Haible.
24825
24826 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24827
24828         regex: do not depend on obsolete modules.
24829         * modules/regex: Remove memcmp and memmove.
24830
24831 2009-01-19  Bruno Haible  <bruno@clisp.org>
24832
24833         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24834         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24835         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24836         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24837         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24838
24839 2009-01-19  Bruno Haible  <bruno@clisp.org>
24840
24841         * tests/test-link.c: Include <errno.h>.
24842         (main): Exit with code 77 when a hard link cannot be created due to
24843         the file system.
24844         * tests/test-link.sh: Skip test when a hard link cannot be created due
24845         to the file system.
24846         Suggested by Eric Blake.
24847
24848 2009-01-19  Martin Lambers  <marlam@marlam.de>
24849
24850         * modules/link-tests: New file.
24851         * tests/test-link.sh: New file.
24852         * tests/test-link.c: New file.
24853
24854 2009-01-19  Eric Blake  <ebb9@byu.net>
24855
24856         doc: mention another function added in cygwin 1.7.0
24857         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24858         Another new function in cygwin 1.7.
24859
24860 2009-01-19  Bruno Haible  <bruno@clisp.org>
24861
24862         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24863         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24864         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24865         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24866         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24867         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24868         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24869         * m4/md4.m4 (gl_MD4): Likewise.
24870         * m4/md5.m4 (gl_MD5): Likewise.
24871         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24872         * m4/sha1.m4 (gl_SHA1): Likewise.
24873         * m4/sha256.m4 (gl_SHA256): Likewise.
24874         * m4/sha512.m4 (gl_SHA512): Likewise.
24875
24876 2009-01-19  Bruno Haible  <bruno@clisp.org>
24877
24878         * modules/uniname/uniname-tests (Depends-on): Add progname.
24879         * tests/uniname/test-uninames.c: Include progname.h.
24880         (main): Call set_program_name.
24881
24882         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24883         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24884         (main): Call set_program_name.
24885
24886         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24887         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24888         (main): Call set_program_name.
24889
24890         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24891         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24892         (main): Call set_program_name.
24893
24894         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24895         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24896         (main): Call set_program_name.
24897
24898         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24899         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24900         (main): Call set_program_name.
24901
24902         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24903         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24904         (main): Call set_program_name.
24905
24906         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24907         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24908         (main): Call set_program_name.
24909
24910         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24911         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24912         (main): Call set_program_name.
24913
24914 2009-01-19  Eric Blake  <ebb9@byu.net>
24915
24916         test-unistd: test previous patch
24917         * tests/test-unistd.c: Test *_FILENO macros.
24918
24919         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24920         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24921         Guarantee a definition.
24922         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24923         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24924         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24925         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24926         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24927         Likewise.
24928         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24929         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24930         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24931         Likewise.
24932         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24933         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24934         (STDERR_FILENO): Likewise.
24935         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24936         (STDERR_FILENO): Likewise.
24937         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24938         (STDERR_FILENO): Likewise.
24939         Reported by Elbert Pol.
24940
24941 2009-01-19  Eric Blake  <ebb9@byu.net>
24942
24943         doc: mention more functions added in cygwin 1.7.0
24944         * doc/posix-functions/abort.texi (abort): Update wording related
24945         to cygwin.
24946         * doc/posix-functions/daylight.texi (daylight): Likewise.
24947         * doc/posix-functions/optarg.texi (optarg): Likewise.
24948         * doc/posix-functions/optarg.texi (opterr): Likewise.
24949         * doc/posix-functions/optarg.texi (optind): Likewise.
24950         * doc/posix-functions/optarg.texi (optopt): Likewise.
24951         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24952         worked in 1.5.x, and was withdrawn in 1.7.
24953         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24954         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24955         cygwin versions.
24956         * doc/posix-functions/perror.texi (perror): Likewise.
24957         * doc/posix-functions/printf.texi (printf): Likewise.
24958         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24959         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24960         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24961         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24962         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24963         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24964         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24965         Likewise.
24966         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24967         Likewise.
24968         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24969         this function.
24970         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24971         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24972         Likewise.
24973         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24974         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24975         * doc/posix-functions/confstr.texi (confstr): Likewise.
24976         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24977         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24978         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24979         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24980         * doc/posix-functions/fputws.texi (fputws): Likewise.
24981         * doc/posix-functions/fwide.texi (fwide): Likewise.
24982         * doc/posix-functions/getwc.texi (getwc): Likewise.
24983         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24984         * doc/posix-functions/putwc.texi (putwc): Likewise.
24985         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24986         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24987         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24988         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24989         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24990         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24991         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24992         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24993         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24994         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24995         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24996
24997 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24998
24999         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
25000         * lib/ioctl.c: Include <sys/ioctl.h>.
25001
25002 2009-01-19  Simon Josefsson  <simon@josefsson.org>
25003
25004         * modules/getdate-tests (Depends-on): Add progname.
25005         * tests/test-getdate.c: Use progname module, to avoid link errors
25006         on non-glibc systems.
25007
25008 2009-01-18  Simon Josefsson  <simon@josefsson.org>
25009
25010         * modules/filenamecat-tests (Depends-on): Add progname.
25011         * modules/fstrcmp-tests (Depends-on): Likewise.
25012
25013         * tests/test-filenamecat.c: Use progname module, to avoid link
25014         errors on non-glibc systems.
25015         * tests/test-fstrcmp.c: Likewise.
25016
25017 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25018
25019         gettimeofday: avoid warning: nested extern declaration of 'localtime'
25020         * lib/gettimeofday.c: Move extern declaration out of function.
25021
25022 2009-01-18  Bruno Haible  <bruno@clisp.org>
25023
25024         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
25025         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
25026         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
25027
25028 2009-01-18  Bruno Haible  <bruno@clisp.org>
25029
25030         * lib/strftime.c (MEMPCPY): Remove unused macro.
25031         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
25032
25033 2009-01-18  Martin Lambers  <marlam@marlam.de>
25034
25035         New module 'link'.
25036         * lib/unistd.in.h (link): New declaration.
25037         * lib/link.c: New file.
25038         * m4/link.m4: New file.
25039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
25040         HAVE_LINK.
25041         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
25042         * modules/link: New file.
25043         * doc/posix-functions/link.texi: Mention the new module.
25044
25045 2009-01-18  Bruno Haible  <bruno@clisp.org>
25046
25047         * tests/test-avltree_list.c (main): Call set_program_name.
25048         * tests/test-avltree_oset.c (main): Likewise.
25049         * tests/test-obstack-printf.c: Include progname.h.
25050         (main): Call set_program_name.
25051         * tests/test-quotearg.c: Include progname.h.
25052         (main): Call set_program_name.
25053         * tests/test-xmemdup0.c: Include progname.h.
25054         (main): Call set_program_name.
25055
25056 2009-01-18  Bruno Haible  <bruno@clisp.org>
25057
25058         New module 'alphasort'.
25059         * lib/dirent.in.h (alphasort): New declaration.
25060         * lib/alphasort.c: New file, from glibc with modifications.
25061         * m4/alphasort.m4: New file.
25062         * modules/alphasort: New file.
25063         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
25064         HAVE_ALPHASORT.
25065         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
25066         HAVE_ALPHASORT.
25067         * doc/posix-functions/alphasort.texi: Mention the new module and the
25068         portability problems.
25069
25070 2009-01-18  Bruno Haible  <bruno@clisp.org>
25071
25072         New module 'scandir'.
25073         * lib/dirent.in.h (scandir): New declaration.
25074         * lib/scandir.c: New file, from glibc with modifications.
25075         * m4/scandir.m4: New file.
25076         * modules/scandir: New file.
25077         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
25078         HAVE_SCANDIR.
25079         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
25080         HAVE_SCANDIR.
25081         * doc/posix-functions/scandir.texi: Mention the new module and the
25082         portability problems.
25083
25084 2009-01-17  Bruno Haible  <bruno@clisp.org>
25085
25086         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
25087         Update documentation.
25088         (func_remove_suffix): Escape all dots in the suffix. Update
25089         documentation.
25090         (func_filter_filelist): Update documentation.
25091         Reported by Ralf Wildenhues.
25092
25093 2009-01-17  Bruno Haible  <bruno@clisp.org>
25094
25095         * modules/dprintf-posix-tests: New file.
25096         * tests/test-dprintf-posix.sh: New file.
25097         * tests/test-dprintf-posix.c: New file.
25098
25099         New modules 'dprintf', 'dprintf-posix'.
25100         * lib/stdio.in.h (dprintf): New declaration.
25101         * lib/dprintf.c: New file.
25102         * m4/dprintf.m4: New file.
25103         * m4/dprintf-posix.m4: New file.
25104         * modules/dprintf: New file.
25105         * modules/dprintf-posix: New file.
25106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
25107         HAVE_DPRINTF, REPLACE_DPRINTF.
25108         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
25109         HAVE_DPRINTF, REPLACE_DPRINTF.
25110         * doc/posix-functions/dprintf.texi: Mention the new modules.
25111
25112 2009-01-17  Bruno Haible  <bruno@clisp.org>
25113
25114         * modules/vdprintf-posix-tests: New file.
25115         * tests/test-vdprintf-posix.sh: New file.
25116         * tests/test-vdprintf-posix.c: New file.
25117
25118         New modules 'vdprintf', 'vdprintf-posix'.
25119         * lib/stdio.in.h (vdprintf): New declaration.
25120         * lib/vdprintf.c: New file.
25121         * m4/vdprintf.m4: New file.
25122         * m4/vdprintf-posix.m4: New file.
25123         * modules/vdprintf: New file.
25124         * modules/vdprintf-posix: New file.
25125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25126         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25127         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25128         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25129         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25130
25131 2009-01-17  Bruno Haible  <bruno@clisp.org>
25132
25133         Fix replacement of fopen on mingw.
25134         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25135         mingw.
25136
25137 2009-01-17  Bruno Haible  <bruno@clisp.org>
25138
25139         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25140         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25141
25142 2009-01-17  Bruno Haible  <bruno@clisp.org>
25143
25144         Avoid test-fflush2.sh failure on mingw.
25145         * tests/test-fflush2.c: Include binary-io.h.
25146         (main): Put standard input into binary mode.
25147         * modules/fflush-tests (Depends-on): Add binary-io.
25148
25149 2009-01-17  Bruno Haible  <bruno@clisp.org>
25150
25151         * lib/wchar.in.h: In another particular situation, include only the
25152         system's <wchar.h> file.
25153         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25154         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25155         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25156
25157 2009-01-17  Bruno Haible  <bruno@clisp.org>
25158
25159         Support for stripping executables in --enable-relocatable.
25160         * build-aux/install-reloc: Expect one more argument, or an environment
25161         variable RELOC_STRIP_PROG. If set, strip the destination program and
25162         its wrapper.
25163         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25164         RELOC_STRIP_PROG.
25165         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25166         to set RELOCATABLE_STRIP.
25167         * NEWS: Mention the new Makefile requirement.
25168
25169 2009-01-17  Bruno Haible  <bruno@clisp.org>
25170
25171         * build-aux/install-reloc: Remove debugging information left over by
25172         C compiler on MacOS X.
25173
25174 2009-01-17  Bruno Haible  <bruno@clisp.org>
25175
25176         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25177         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25178         _NSGetExecutablePath.
25179
25180 2009-01-16  Jim Meyering  <meyering@redhat.com>
25181
25182         strerror: avoid warnings about discarding "const"
25183         * lib/strerror.c (rpl_strerror): Instead of returning a const
25184         string from each and every "case", use a variable, and add a single
25185         cast after the switch.
25186
25187 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25188
25189         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25190
25191 2009-01-16  Bruno Haible  <bruno@clisp.org>
25192
25193         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25194         array initializer syntax that also works in C++ mode.
25195         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25196
25197 2009-01-16  Jim Meyering  <meyering@redhat.com>
25198
25199         poll: suppress a warning
25200         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25201         to ignore "...unsigned expression < 0 is always false" warnings.
25202
25203 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25204
25205         poll: remove declarations of unused variables
25206         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25207         sockbuf and optlen.
25208
25209 2009-01-15  Bruno Haible  <bruno@clisp.org>
25210
25211         Make fflush-after-ungetc POSIX compliant on BSD systems.
25212         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25213         (clear_ungetc_buffer): Implement also for other systems.
25214         (rpl_fflush): On glibc systems, invoke
25215         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25216         clear_ungetc_buffer after fetching the stream's position, not before.
25217
25218 2009-01-15  Bruno Haible  <bruno@clisp.org>
25219
25220         Make fflush-after-ungetc POSIX compliant on glibc systems.
25221         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25222         after ungetc.
25223         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25224         (rpl_fflush): On glibc systems, simply call the system's fflush
25225         function after clearing the ungetc buffer.
25226         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25227         Instead, lseek only to the end of file, then use the system's fseeko
25228         for the rest. On glibc systems, reset the EOF indicator bit.
25229
25230 2009-01-15  Jim Meyering  <meyering@redhat.com>
25231
25232         openmp.m4: revert quote-adding change, for portability to older autoconf
25233         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25234         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25235         Simon Josefsson noticed the problem when using autoconf-2.61.
25236
25237 2009-01-15  Bruno Haible  <bruno@clisp.org>
25238
25239         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25240         * tests/test-fflush2.c (ASSERT): Always fail.
25241         (main): Add two tests for fflush() after ungetc(), taking into account
25242         the Austin Group's clarification.
25243         Suggested by Eric Blake.
25244
25245 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25246
25247         mktime.m4: remove K&R-style function prototypes
25248         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25249         for the Sun C++ compiler.
25250
25251 2009-01-14  Bruno Haible  <bruno@clisp.org>
25252
25253         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25254         while including <wchar.h>.
25255         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25256         the system's <wchar.h> file.
25257         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25258
25259 2009-01-14  Bruno Haible  <bruno@clisp.org>
25260
25261         * m4/csharp.m4: Don't mention gettext on the serial number line.
25262         * m4/csharpexec.m4: Likewise.
25263         * m4/eaccess.m4: Likewise.
25264         * m4/javaexec.m4: Likewise.
25265         * m4/sig_atomic_t.m4: Likewise.
25266         * m4/tmpdir.m4: Likewise.
25267         * m4/intldir.m4: Bump gettext version.
25268         * m4/lib-ld.m4: Likewise.
25269
25270 2009-01-14  Bruno Haible  <bruno@clisp.org>
25271
25272         * lib/progname.c (set_program_name): Add more comments.
25273         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25274
25275 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25276
25277         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25278         were sys/stat.h does not define it.
25279
25280 2009-01-14  Jim Meyering  <meyering@redhat.com>
25281
25282         many *.m4 files: improve m4 quoting
25283         99% of this change was performed by running the following commands:
25284         git ls-files | grep '\.m4$' | xargs perl -pi \
25285           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25286           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25287           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25288           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25289         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25290         The remainder were to add Copyright dates, increment serial numbers,
25291         undo some changes in comments, exclude m4/intl.m4, and add quotes
25292         around the "1" in ",1" where the unusual spacing prohibited the
25293         above regexps from doing the job.  For more details, see
25294         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25295         * m4/acl.m4: Modified.
25296         * m4/afs.m4: Likewise.
25297         * m4/alloca.m4: Likewise.
25298         * m4/argp.m4: Likewise.
25299         * m4/argz.m4: Likewise.
25300         * m4/atexit.m4: Likewise.
25301         * m4/bison-i18n.m4: Likewise.
25302         * m4/bison.m4: Likewise.
25303         * m4/byteswap.m4: Likewise.
25304         * m4/c-stack.m4: Likewise.
25305         * m4/c-strtod.m4: Likewise.
25306         * m4/calloc.m4: Likewise.
25307         * m4/canonicalize-lgpl.m4: Likewise.
25308         * m4/chown.m4: Likewise.
25309         * m4/clock_time.m4: Likewise.
25310         * m4/codeset.m4: Likewise.
25311         * m4/copy-file.m4: Likewise.
25312         * m4/csharp.m4: Likewise.
25313         * m4/csharpcomp.m4: Likewise.
25314         * m4/csharpexec.m4: Likewise.
25315         * m4/d-ino.m4: Likewise.
25316         * m4/d-type.m4: Likewise.
25317         * m4/dirfd.m4: Likewise.
25318         * m4/double-slash-root.m4: Likewise.
25319         * m4/eaccess.m4: Likewise.
25320         * m4/eealloc.m4: Likewise.
25321         * m4/environ.m4: Likewise.
25322         * m4/errno_h.m4: Likewise.
25323         * m4/euidaccess.m4: Likewise.
25324         * m4/execute.m4: Likewise.
25325         * m4/fatal-signal.m4: Likewise.
25326         * m4/fchdir.m4: Likewise.
25327         * m4/fcntl_h.m4: Likewise.
25328         * m4/fileblocks.m4: Likewise.
25329         * m4/filenamecat.m4: Likewise.
25330         * m4/findprog.m4: Likewise.
25331         * m4/flexmember.m4: Likewise.
25332         * m4/fnmatch.m4: Likewise.
25333         * m4/fopen.m4: Likewise.
25334         * m4/fpending.m4: Likewise.
25335         * m4/fprintf-posix.m4: Likewise.
25336         * m4/free.m4: Likewise.
25337         * m4/frexp.m4: Likewise.
25338         * m4/frexpl.m4: Likewise.
25339         * m4/fsusage.m4: Likewise.
25340         * m4/ftruncate.m4: Likewise.
25341         * m4/gc-camellia.m4: Likewise.
25342         * m4/gc-random.m4: Likewise.
25343         * m4/gc.m4: Likewise.
25344         * m4/getaddrinfo.m4: Likewise.
25345         * m4/getcwd-abort-bug.m4: Likewise.
25346         * m4/getcwd-path-max.m4: Likewise.
25347         * m4/getdate.m4: Likewise.
25348         * m4/getdomainname.m4: Likewise.
25349         * m4/getgroups.m4: Likewise.
25350         * m4/gethostname.m4: Likewise.
25351         * m4/gethrxtime.m4: Likewise.
25352         * m4/getline.m4: Likewise.
25353         * m4/getloadavg.m4: Likewise.
25354         * m4/getndelim2.m4: Likewise.
25355         * m4/getpass.m4: Likewise.
25356         * m4/gettext.m4: Likewise.
25357         * m4/gettime.m4: Likewise.
25358         * m4/gettimeofday.m4: Likewise.
25359         * m4/gnulib-common.m4: Likewise.
25360         * m4/group-member.m4: Likewise.
25361         * m4/host-os.m4: Likewise.
25362         * m4/iconv.m4: Likewise.
25363         * m4/iconv_open.m4: Likewise.
25364         * m4/inet_ntop.m4: Likewise.
25365         * m4/inet_pton.m4: Likewise.
25366         * m4/inline.m4: Likewise.
25367         * m4/intldir.m4: Likewise.
25368         * m4/intlmacosx.m4: Likewise.
25369         * m4/intmax.m4: Likewise.
25370         * m4/intmax_t.m4: Likewise.
25371         * m4/inttypes.m4: Likewise.
25372         * m4/inttypes_h.m4: Likewise.
25373         * m4/inttypes-pri.m4: Likewise.
25374         * m4/isapipe.m4: Likewise.
25375         * m4/isnand.m4: Likewise.
25376         * m4/isnanf.m4: Likewise.
25377         * m4/isnanl.m4: Likewise.
25378         * m4/javacomp.m4: Likewise.
25379         * m4/javaexec.m4: Likewise.
25380         * m4/jm-winsz1.m4: Likewise.
25381         * m4/jm-winsz2.m4: Likewise.
25382         * m4/lchown.m4: Likewise.
25383         * m4/lcmessage.m4: Likewise.
25384         * m4/ldexpl.m4: Likewise.
25385         * m4/lib-ld.m4: Likewise.
25386         * m4/lib-link.m4: Likewise.
25387         * m4/libsigsegv.m4: Likewise.
25388         * m4/link-follow.m4: Likewise.
25389         * m4/localcharset.m4: Likewise.
25390         * m4/locale-fr.m4: Likewise.
25391         * m4/locale-ja.m4: Likewise.
25392         * m4/locale-tr.m4: Likewise.
25393         * m4/locale-zh.m4: Likewise.
25394         * m4/lock.m4: Likewise.
25395         * m4/longlong.m4: Likewise.
25396         * m4/ls-mntd-fs.m4: Likewise.
25397         * m4/lstat.m4: Likewise.
25398         * m4/malloc.m4: Likewise.
25399         * m4/mathl.m4: Likewise.
25400         * m4/mbrtowc.m4: Likewise.
25401         * m4/mbstate_t.m4: Likewise.
25402         * m4/mbswidth.m4: Likewise.
25403         * m4/memchr.m4: Likewise.
25404         * m4/memcmp.m4: Likewise.
25405         * m4/memcpy.m4: Likewise.
25406         * m4/memmem.m4: Likewise.
25407         * m4/memmove.m4: Likewise.
25408         * m4/mempcpy.m4: Likewise.
25409         * m4/memrchr.m4: Likewise.
25410         * m4/memset.m4: Likewise.
25411         * m4/minmax.m4: Likewise.
25412         * m4/mkdir-slash.m4: Likewise.
25413         * m4/mkdtemp.m4: Likewise.
25414         * m4/mktime.m4: Likewise.
25415         * m4/mmap-anon.m4: Likewise.
25416         * m4/mountlist.m4: Likewise.
25417         * m4/nanosleep.m4: Likewise.
25418         * m4/nls.m4: Likewise.
25419         * m4/nocrash.m4: Likewise.
25420         * m4/open.m4: Likewise.
25421         * m4/openat.m4: Likewise.
25422         * m4/openmp.m4: Likewise.
25423         * m4/pathmax.m4: Likewise.
25424         * m4/perl.m4: Likewise.
25425         * m4/physmem.m4: Likewise.
25426         * m4/pipe.m4: Likewise.
25427         * m4/po.m4: Likewise.
25428         * m4/poll.m4: Likewise.
25429         * m4/posixtm.m4: Likewise.
25430         * m4/posixver.m4: Likewise.
25431         * m4/printf-frexp.m4: Likewise.
25432         * m4/printf-frexpl.m4: Likewise.
25433         * m4/printf-posix.m4: Likewise.
25434         * m4/printf-posix-rpl.m4: Likewise.
25435         * m4/printf.m4: Likewise.
25436         * m4/progtest.m4: Likewise.
25437         * m4/putenv.m4: Likewise.
25438         * m4/readline.m4: Likewise.
25439         * m4/readlink.m4: Likewise.
25440         * m4/readutmp.m4: Likewise.
25441         * m4/realloc.m4: Likewise.
25442         * m4/regex.m4: Likewise.
25443         * m4/relocatable.m4: Likewise.
25444         * m4/relocatable-lib.m4: Likewise.
25445         * m4/rename-dest-slash.m4: Likewise.
25446         * m4/rename.m4: Likewise.
25447         * m4/rmdir-errno.m4: Likewise.
25448         * m4/rmdir.m4: Likewise.
25449         * m4/roundf.m4: Likewise.
25450         * m4/roundl.m4: Likewise.
25451         * m4/rpmatch.m4: Likewise.
25452         * m4/save-cwd.m4: Likewise.
25453         * m4/selinux-selinux-h.m4: Likewise.
25454         * m4/setenv.m4: Likewise.
25455         * m4/settime.m4: Likewise.
25456         * m4/sig2str.m4: Likewise.
25457         * m4/sig_atomic_t.m4: Likewise.
25458         * m4/signalblocking.m4: Likewise.
25459         * m4/signbit.m4: Likewise.
25460         * m4/sigpipe.m4: Likewise.
25461         * m4/sockets.m4: Likewise.
25462         * m4/sockpfaf.m4: Likewise.
25463         * m4/st_dm_mode.m4: Likewise.
25464         * m4/stat-time.m4: Likewise.
25465         * m4/stdbool.m4: Likewise.
25466         * m4/stdint.m4: Likewise.
25467         * m4/stdint_h.m4: Likewise.
25468         * m4/stpcpy.m4: Likewise.
25469         * m4/stpncpy.m4: Likewise.
25470         * m4/strcase.m4: Likewise.
25471         * m4/strchrnul.m4: Likewise.
25472         * m4/strcspn.m4: Likewise.
25473         * m4/strdup.m4: Likewise.
25474         * m4/strftime.m4: Likewise.
25475         * m4/strndup.m4: Likewise.
25476         * m4/strnlen.m4: Likewise.
25477         * m4/strpbrk.m4: Likewise.
25478         * m4/strptime.m4: Likewise.
25479         * m4/strsep.m4: Likewise.
25480         * m4/strtod.m4: Likewise.
25481         * m4/strtoimax.m4: Likewise.
25482         * m4/strtok_r.m4: Likewise.
25483         * m4/strtol.m4: Likewise.
25484         * m4/strtoll.m4: Likewise.
25485         * m4/strtoul.m4: Likewise.
25486         * m4/strtoull.m4: Likewise.
25487         * m4/strtoumax.m4: Likewise.
25488         * m4/strverscmp.m4: Likewise.
25489         * m4/threadlib.m4: Likewise.
25490         * m4/timegm.m4: Likewise.
25491         * m4/tm_gmtoff.m4: Likewise.
25492         * m4/tmpdir.m4: Likewise.
25493         * m4/tmpfile.m4: Likewise.
25494         * m4/tzset.m4: Likewise.
25495         * m4/uintmax_t.m4: Likewise.
25496         * m4/unlinkdir.m4: Likewise.
25497         * m4/unlocked-io.m4: Likewise.
25498         * m4/uptime.m4: Likewise.
25499         * m4/userspec.m4: Likewise.
25500         * m4/utimbuf.m4: Likewise.
25501         * m4/utime.m4: Likewise.
25502         * m4/utimes-null.m4: Likewise.
25503         * m4/utimes.m4: Likewise.
25504         * m4/vararrays.m4: Likewise.
25505         * m4/vasnprintf.m4: Likewise.
25506         * m4/vfprintf-posix.m4: Likewise.
25507         * m4/vprintf-posix.m4: Likewise.
25508         * m4/wait-process.m4: Likewise.
25509         * m4/wchar_t.m4: Likewise.
25510         * m4/wint_t.m4: Likewise.
25511         * m4/write-any-file.m4: Likewise.
25512         * m4/yield.m4: Likewise.
25513
25514 2009-01-13  Bruno Haible  <bruno@clisp.org>
25515
25516         Avoid test-copy-file.sh failures when ACL support insufficient.
25517         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25518         TESTS_ENVIRONMENT.
25519         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25520         Reported by Jim Meyering.
25521
25522 2009-01-13  Bruno Haible  <bruno@clisp.org>
25523
25524         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25525         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25526         * modules/unistdio/u8-printf-parse (Files): Likewise.
25527         * modules/unistdio/u32-printf-parse (Files): Likewise.
25528         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25529
25530 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25531
25532         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25533         and m4/inttypes_h.m4 too.
25534
25535 2009-01-12  Eric Blake  <ebb9@byu.net>
25536
25537         tests: IRIX 6.2 cc can't compile -0.0 into .data
25538         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25539         rather than at compile-time.
25540         * tests/test-floorl.c (minus_zero): Likewise.
25541         * tests/test-frexpl.c (minus_zero): Likewise.
25542         * tests/test-isnan.c (minus_zerol): Likewise.
25543         * tests/test-isnanl.h (minus_zero): Likewise.
25544         * tests/test-ldexpl.c (minus_zero): Likewise.
25545         * tests/test-roundl.c (minus_zero): Likewise.
25546         * tests/test-signbit.c (minus_zerol): Likewise.
25547         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25548         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25549         * tests/test-truncl.c (minus_zero): Likewise.
25550         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25551         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25552         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25553
25554 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25555
25556         regex: fix glibc bug 9697
25557         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25558         handling.
25559
25560 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25561
25562         regex: fix glibc bug 697
25563         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25564         being NULL also if there are no backreferences.
25565
25566 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25567
25568         regex: merge glibc changes
25569         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25570         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25571         re_string_skip_chars, re_string_reconstruct): Likewise.
25572         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25573
25574 2009-01-07  Jim Meyering  <meyering@redhat.com>
25575
25576         poll: filter through cppi
25577         * lib/poll.c: Indent cpp directives to reflect nesting.
25578
25579 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25580
25581         poll: don't return uninitialized
25582         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25583
25584 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25585
25586         avoid compile failure on AIX 6.1
25587         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25588         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25589
25590 2009-01-04  Jim Meyering  <meyering@redhat.com>
25591
25592         remove duplicate inclusion of <stdio.h>
25593         * tests/test-fprintf-posix.c: Likewise.
25594         * tests/test-printf-posix.c: Likewise.
25595         * tests/test-snprintf-posix.c: Likewise.
25596         * tests/test-sprintf-posix.c: Likewise.
25597         * tests/test-vasprintf-posix.c: Likewise.
25598         * tests/test-vfprintf-posix.c: Likewise.
25599         * tests/test-vprintf-posix.c: Likewise.
25600         * tests/test-vsnprintf-posix.c: Likewise.
25601         * tests/test-vsprintf-posix.c: Likewise.
25602
25603 2009-01-03  Jim Meyering  <meyering@redhat.com>
25604
25605         gnulib-tool: fix sed-based filtering
25606         * gnulib-tool (func_filter_filelist): Remove extra backslash
25607         in sed_fff_filter definition.
25608
25609 2009-01-02  Jim Meyering  <meyering@redhat.com>
25610
25611         strftime: avoid compilation failure on Solaris 2.6
25612         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25613         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25614         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25615         be available.  Reported by Tom G. Christensen.  Details in
25616         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25617
25618 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25619             Bruno Haible  <bruno@clisp.org>
25620
25621         Speed up gnulib-tool by doing more string processing through shell
25622         built-ins.
25623         * gnulib-tool (fast_func_append): New variable.
25624         (func_remove_prefix, func_remove_suffix): New functions.
25625         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25626         (func_filter_filelist): New function.
25627         (func_get_dependencies): Use func_remove_suffix instead of sed.
25628         (func_get_automake_snippet): Use func_filter_filelist instead of a
25629         subshell and sed invocation.
25630
25631 2009-01-01  Bruno Haible  <bruno@clisp.org>
25632
25633         Fix a security bug.
25634         * gnulib-tool (func_import, import, update): Don't allow the characters
25635         '"', '$', '`', '\' in macro arguments that become part of commands that
25636         are evaluated.
25637
25638 2009-01-01  Bruno Haible  <bruno@clisp.org>
25639
25640         * gnulib-tool (func_reset_sigpipe): Add more comments.
25641
25642 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25643
25644         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25645         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25646         already know the answer.
25647
25648 2009-01-01  Jim Meyering  <meyering@redhat.com>
25649
25650         * lib/version-etc.c (version_etc_va): Update copyright year.
25651
25652 2008-12-30  Bruno Haible  <bruno@clisp.org>
25653
25654         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25655         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25656         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25657
25658 2008-12-29  Eric Blake  <ebb9@byu.net>
25659
25660         multiarch: avoid autoconf AC_REQUIRE bug
25661         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25662         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25663         2.63 and older.
25664         Reported by Bruno Haible, and analyzed in
25665         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25666
25667 2008-12-29  Bruno Haible  <bruno@clisp.org>
25668
25669         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25670         files in subdirectories correctly.
25671         Reported by Ralf Wildenhues.
25672
25673 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25674
25675         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25676         rather than 'join FILE -', for Solaris join.
25677
25678 2008-12-29  Bruno Haible  <bruno@clisp.org>
25679
25680         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25681         quoting.
25682         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25683         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25684         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25685         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25686         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25687         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25688         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25689         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25690         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25691         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25692         * m4/nls.m4 (AM_NLS): Likewise.
25693         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25694         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25695         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25696         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25697         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25698         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25699         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25700         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25701         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25702         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25703         * m4/xsize.m4 (gl_XSIZE): Likewise.
25704         Suggested by Jim Meyering.
25705
25706 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25707
25708         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25709         * lib/parse-duration.c: use a switch instead of cascading if's.
25710
25711 2008-12-29  Eric Blake  <ebb9@byu.net>
25712
25713         wchar.h: supply WEOF on Irix 5.3
25714         * lib/wchar.in.h (wint_t): Also supply WEOF.
25715         * lib/wctype.in.h (wint_t): Likewise.
25716         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25717         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25718         Reported by Tom G. Christensen.
25719
25720 2008-12-26  Bruno Haible  <bruno@clisp.org>
25721
25722         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25723         i486, i586, i686.
25724
25725 2008-12-26  Bruno Haible  <bruno@clisp.org>
25726
25727         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25728
25729 2008-12-26  Bruno Haible  <bruno@clisp.org>
25730
25731         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25732         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25733         not __STDC_CONSTANT_MACROS.
25734         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25735
25736 2008-12-25  Bruno Haible  <bruno@clisp.org>
25737
25738         Add support for universal builds to vasnprintf.
25739         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25740         universal builds, guess no.
25741         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25742         * modules/vasprintf-posix (Depends-on): Likewise.
25743         * modules/fprintf-posix (Depends-on): Likewise.
25744         * modules/vfprintf-posix (Depends-on): Likewise.
25745         * modules/snprintf-posix (Depends-on): Likewise.
25746         * modules/vsnprintf-posix (Depends-on): Likewise.
25747         * modules/sprintf-posix (Depends-on): Likewise.
25748         * modules/vsprintf-posix (Depends-on): Likewise.
25749         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25750         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25751         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25752         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25753         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25754         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25755         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25756
25757         Add support for universal builds to <inttypes.h>.
25758         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25759         _SCNu64_PREFIX): In Apple
25760         universal builds, define directly, using _LP64.
25761         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25762         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25763         * modules/inttypes (Depends-on): Add multiarch.
25764         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25765
25766         Add support for universal builds to <stdint.h>.
25767         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25768         universal builds, define directly, using _LP64.
25769         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25770         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25771         and size_t.
25772         * modules/stdint (Depends-on): Add multiarch.
25773         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25774
25775         New module 'multiarch'.
25776         * modules/multiarch: New file.
25777         * m4/multiarch.m4: New file.
25778
25779 2008-12-25  Bruno Haible  <bruno@clisp.org>
25780
25781         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25782
25783 2008-12-25  Bruno Haible  <bruno@clisp.org>
25784
25785         * modules/btowc (License): Relicense under LGPLv2+.
25786         * modules/mbsinit (License): Likewise.
25787         * modules/mbrtowc (License): Likewise.
25788         * modules/wcrtomb (License): Likewise.
25789         * modules/streq (License): Likewise.
25790         Reported by David Lutterkort <lutter@redhat.com>.
25791
25792 2008-12-23  Bruno Haible  <bruno@clisp.org>
25793
25794         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25795
25796 2008-12-23  Bruno Haible  <bruno@clisp.org>
25797
25798         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25800         GETADDRINFO_LIB, not in LIBS.
25801         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25802         * modules/canon-host (Link): Likewise.
25803         * NEWS: Mention the change.
25804         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25805         GETADDRINFO_LIB.
25806
25807 2008-12-22  Bruno Haible  <bruno@clisp.org>
25808
25809         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25810         * doc/posix-functions/iswalpha_l.texi: Likewise.
25811         * doc/posix-functions/iswblank_l.texi: Likewise.
25812         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25813         * doc/posix-functions/iswctype_l.texi: Likewise.
25814         * doc/posix-functions/iswdigit_l.texi: Likewise.
25815         * doc/posix-functions/iswgraph_l.texi: Likewise.
25816         * doc/posix-functions/iswlower_l.texi: Likewise.
25817         * doc/posix-functions/iswprint_l.texi: Likewise.
25818         * doc/posix-functions/iswpunct_l.texi: Likewise.
25819         * doc/posix-functions/iswspace_l.texi: Likewise.
25820         * doc/posix-functions/iswupper_l.texi: Likewise.
25821         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25822         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25823         * doc/posix-functions/open_wmemstream.texi: Likewise.
25824         * doc/posix-functions/swscanf.texi: Likewise.
25825         * doc/posix-functions/towctrans_l.texi: Likewise.
25826         * doc/posix-functions/towlower.texi: Likewise.
25827         * doc/posix-functions/towlower_l.texi: Likewise.
25828         * doc/posix-functions/towupper.texi: Likewise.
25829         * doc/posix-functions/towupper_l.texi: Likewise.
25830         * doc/posix-functions/vfwprintf.texi: Likewise.
25831         * doc/posix-functions/vfwscanf.texi: Likewise.
25832         * doc/posix-functions/vswscanf.texi: Likewise.
25833         * doc/posix-functions/vwprintf.texi: Likewise.
25834         * doc/posix-functions/vwscanf.texi: Likewise.
25835         * doc/posix-functions/wcpcpy.texi: Likewise.
25836         * doc/posix-functions/wcpncpy.texi: Likewise.
25837         * doc/posix-functions/wcscasecmp.texi: Likewise.
25838         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25839         * doc/posix-functions/wcscoll_l.texi: Likewise.
25840         * doc/posix-functions/wcsdup.texi: Likewise.
25841         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25842         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25843         * doc/posix-functions/wcsnlen.texi: Likewise.
25844         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25845         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25846         * doc/posix-functions/wctrans_l.texi: Likewise.
25847         * doc/posix-functions/wctype_l.texi: Likewise.
25848         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25849         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25850         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25851         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25852         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25853         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25854         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25855         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25856         * doc/glibc-functions/wcschrnul.texi: Likewise.
25857         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25858         * doc/glibc-functions/wcstod_l.texi: Likewise.
25859         * doc/glibc-functions/wcstof_l.texi: Likewise.
25860         * doc/glibc-functions/wcstol_l.texi: Likewise.
25861         * doc/glibc-functions/wcstold_l.texi: Likewise.
25862         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25863         * doc/glibc-functions/wcstoq.texi: Likewise.
25864         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25865         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25866         * doc/glibc-functions/wcstouq.texi: Likewise.
25867         * doc/glibc-functions/wmempcpy.texi: Likewise.
25868
25869 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25870             Eric Blake  <ebb9@byu.net>
25871             Paolo Bonzini  <bonzini@gnu.org>
25872             Bruno Haible  <bruno@clisp.org>
25873
25874         Make c-stack work on Haiku.
25875         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25876         (c_stack_action): Use SA_ONSTACK flag.
25877
25878 2008-12-22  Bruno Haible  <bruno@clisp.org>
25879
25880         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25881
25882 2008-12-22  Bruno Haible  <bruno@clisp.org>
25883
25884         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25885         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25886         being overridden.
25887         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25888         New macros.
25889         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25891         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25892         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25893
25894 2008-12-22  Bruno Haible  <bruno@clisp.org>
25895
25896         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25897         from test code.
25898
25899 2008-12-22  Eric Blake  <ebb9@byu.net>
25900
25901         Avoid gcc warnings on cygwin.
25902         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25903         Avoid unused variable.
25904         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25905         Likewise.
25906
25907 2008-12-22  Bruno Haible  <bruno@clisp.org>
25908
25909         Remove HAVE_MBRTOWC conditionals.
25910         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25911         (mbscasecmp): Assume mbrtowc function.
25912         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25913         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25914         * lib/mbschr.c: Include mbuiter.h unconditionally.
25915         (mbschr): Assume mbrtowc function.
25916         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25917         (mbscspn): Assume mbrtowc function.
25918         * lib/mbslen.c: Include mbuiter.h unconditionally.
25919         (mbslen): Assume mbrtowc function.
25920         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25921         (mbsncasecmp): Assume mbrtowc function.
25922         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25923         (mbsnlen): Assume mbrtowc function.
25924         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25925         (mbspbrk): Assume mbrtowc function.
25926         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25927         (mbspcasecmp): Assume mbrtowc function.
25928         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25929         (mbsrchr): Assume mbrtowc function.
25930         * lib/mbssep.c: Include mbuiter.h unconditionally.
25931         (mbssep): Assume mbrtowc function.
25932         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25933         (mbsspn): Assume mbrtowc function.
25934         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25935         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25936         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25937         (mbstok_r): Assume mbrtowc function.
25938         * lib/propername.c: Include mbuiter.h unconditionally.
25939         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25940         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25941         (trim2): Assume mbrtowc function.
25942         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25943         (mbsnwidth): Assume mbrtowc function.
25944         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25945         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25946         fallback definitions.
25947         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25948
25949 2008-12-22  Bruno Haible  <bruno@clisp.org>
25950
25951         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25952
25953 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25954
25955         * modules/regex: Request emulations for the mb*/wc* functions we need.
25956         * m4/regex.m4: Don't look for those functions here.
25957         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25958
25959 2008-12-22  Bruno Haible  <bruno@clisp.org>
25960
25961         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25962
25963 2008-12-21  Bruno Haible  <bruno@clisp.org>
25964
25965         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25966         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25967         (Include): Remove conditionalization.
25968         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25969         (Include): Remove conditionalization.
25970         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25971         (Include): Remove conditionalization.
25972         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25973         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25974         * NEWS: Mention the change.
25975         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25976         via Sergey Poznyakoff <gray@gnu.org.ua>.
25977
25978 2008-12-21  Bruno Haible  <bruno@clisp.org>
25979
25980         * MODULES.html.sh (Extended multibyte and wide character utilities
25981         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25982         wcrtomb, wcsrtombs.
25983         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25984         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25985         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25986         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25987
25988 2008-12-21  Bruno Haible  <bruno@clisp.org>
25989
25990         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25991
25992 2008-12-21  Bruno Haible  <bruno@clisp.org>
25993
25994         * modules/wcsnrtombs-tests: New file.
25995         * tests/test-wcsnrtombs1.sh: New file.
25996         * tests/test-wcsnrtombs2.sh: New file.
25997         * tests/test-wcsnrtombs3.sh: New file.
25998         * tests/test-wcsnrtombs4.sh: New file.
25999         * tests/test-wcsnrtombs.c: New file.
26000
26001         New module 'wcsnrtombs'.
26002         * lib/wchar.in.h (wcsnrtombs): New declaration.
26003         * lib/wcsnrtombs.c: New file.
26004         * lib/wcsrtombs-state.c: New file.
26005         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
26006         (internal_state): Remove variable.
26007         * m4/wcsnrtombs.m4: New file.
26008         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
26009         compilation units.
26010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
26011         HAVE_WCSNRTOMBS.
26012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
26013         HAVE_WCSNRTOMBS.
26014         * modules/wcsnrtombs: New file.
26015         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
26016         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
26017
26018 2008-12-21  Bruno Haible  <bruno@clisp.org>
26019
26020         * modules/wcsrtombs-tests: New file.
26021         * tests/test-wcsrtombs1.sh: New file.
26022         * tests/test-wcsrtombs2.sh: New file.
26023         * tests/test-wcsrtombs3.sh: New file.
26024         * tests/test-wcsrtombs4.sh: New file.
26025         * tests/test-wcsrtombs.c: New file.
26026
26027         New module 'wcsrtombs'.
26028         * lib/wchar.in.h (wcsrtombs): New declaration.
26029         * lib/wcsrtombs.c: New file.
26030         * m4/wcsrtombs.m4: New file.
26031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
26032         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
26034         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26035         * modules/wcsrtombs: New file.
26036         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
26037         bugs.
26038
26039 2008-12-21  Bruno Haible  <bruno@clisp.org>
26040
26041         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
26042         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
26043         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
26044         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
26045         if not correct.
26046         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
26047         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
26048         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26049         m4/locale-zh.m4, m4/codeset.m4.
26050         * doc/posix-functions/wcrtomb.texi: Document the bug.
26051
26052 2008-12-21  Bruno Haible  <bruno@clisp.org>
26053
26054         Work around a btowc() bug on IRIX 6.5.
26055         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
26056         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
26057         REPLACE_WTOBC if not.
26058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
26059         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
26060         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
26061
26062 2008-12-21  Bruno Haible  <bruno@clisp.org>
26063
26064         * modules/wcrtomb-tests: New file.
26065         * tests/test-wcrtomb.sh: New file.
26066         * tests/test-wcrtomb.c: New file.
26067
26068         New module 'wcrtomb'.
26069         * lib/wchar.in.h (wcrtomb): New declaration.
26070         * lib/wcrtomb.c: New file.
26071         * m4/wcrtomb.m4: New file.
26072         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
26073         HAVE_WCRTOMB.
26074         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
26075         HAVE_WCRTOMB.
26076         * modules/wcrtomb: New file.
26077         * doc/posix-functions/wcrtomb.texi: Mention the new module.
26078
26079 2008-12-21  Bruno Haible  <bruno@clisp.org>
26080
26081         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
26082         * modules/mbsrtowcs (Files): Likewise.
26083         * modules/wctob (Files): Likewise.
26084         * modules/c-strcase-tests (Files): Likewise.
26085         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26086         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26087         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26088         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26089         * modules/vasnprintf-posix-tests (Files): Likewise.
26090
26091 2008-12-21  William Pursell  <bill.pursell@gmail.com>
26092
26093         gitlog-to-changelog: pass all command-line arguments to git-log
26094         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
26095         it is sometimes convenient to filter the commits in various ways.
26096         gitlog-to-changelog only allows --since to specify a start date,
26097         but git-log itself supports many other filtering mechanisms.
26098         At the moment, I want to filter by branch name.  Rather than
26099         adding a --branch option to gitlog-to-changelog, it seems more
26100         flexible to simply pass all options directly to git-log and let
26101         git do the work.  Notice that this effectively makes --since a
26102         redundant option for gitlog-to-changelog, but removing it would
26103         require current usage to change since calls would then require
26104         an additional '--'.
26105
26106 2008-12-21  Bruno Haible  <bruno@clisp.org>
26107
26108         * modules/mbsnrtowcs-tests: New file.
26109         * tests/test-mbsnrtowcs1.sh: New file.
26110         * tests/test-mbsnrtowcs2.sh: New file.
26111         * tests/test-mbsnrtowcs3.sh: New file.
26112         * tests/test-mbsnrtowcs4.sh: New file.
26113         * tests/test-mbsnrtowcs.c: New file.
26114
26115         New module 'mbsnrtowcs'.
26116         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26117         * lib/mbsnrtowcs.c: New file.
26118         * lib/mbsrtowcs-state.c: New file.
26119         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26120         (internal_state): Remove variable.
26121         * m4/mbsnrtowcs.m4: New file.
26122         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26123         compilation units.
26124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26125         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26126         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26127         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26128         * modules/mbsnrtowcs: New file.
26129         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26130         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26131         portability problem.
26132
26133 2008-12-21  Bruno Haible  <bruno@clisp.org>
26134
26135         Work around mbsrtowcs bug.
26136         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26137         (gl_FUNC_MBSRTOWCS): Invoke it.
26138         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26139         m4/locale-zh.m4.
26140         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26141
26142 2008-12-21  Bruno Haible  <bruno@clisp.org>
26143
26144         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26145
26146 2008-12-21  Bruno Haible  <bruno@clisp.org>
26147
26148         Update doc for AIX.
26149         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26150         16-bit wchar_t type.
26151         * doc/posix-functions/btowc.texi: Likewise.
26152         * doc/posix-functions/fgetwc.texi: Likewise.
26153         * doc/posix-functions/fgetws.texi: Likewise.
26154         * doc/posix-functions/fputwc.texi: Likewise.
26155         * doc/posix-functions/fputws.texi: Likewise.
26156         * doc/posix-functions/fwide.texi: Likewise.
26157         * doc/posix-functions/fwprintf.texi: Likewise.
26158         * doc/posix-functions/fwscanf.texi: Likewise.
26159         * doc/posix-functions/getwchar.texi: Likewise.
26160         * doc/posix-functions/getwc.texi: Likewise.
26161         * doc/posix-functions/iswalnum.texi: Likewise.
26162         * doc/posix-functions/iswalpha.texi: Likewise.
26163         * doc/posix-functions/iswblank.texi: Likewise.
26164         * doc/posix-functions/iswcntrl.texi: Likewise.
26165         * doc/posix-functions/iswctype.texi: Likewise.
26166         * doc/posix-functions/iswdigit.texi: Likewise.
26167         * doc/posix-functions/iswgraph.texi: Likewise.
26168         * doc/posix-functions/iswlower.texi: Likewise.
26169         * doc/posix-functions/iswprint.texi: Likewise.
26170         * doc/posix-functions/iswpunct.texi: Likewise.
26171         * doc/posix-functions/iswspace.texi: Likewise.
26172         * doc/posix-functions/iswupper.texi: Likewise.
26173         * doc/posix-functions/iswxdigit.texi: Likewise.
26174         * doc/posix-functions/mbrtowc.texi: Likewise.
26175         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26176         * doc/posix-functions/mbstowcs.texi: Likewise.
26177         * doc/posix-functions/mbtowc.texi: Likewise.
26178         * doc/posix-functions/putwchar.texi: Likewise.
26179         * doc/posix-functions/putwc.texi: Likewise.
26180         * doc/posix-functions/swprintf.texi: Likewise.
26181         * doc/posix-functions/tolower.texi: Likewise.
26182         * doc/posix-functions/toupper.texi: Likewise.
26183         * doc/posix-functions/towctrans.texi: Likewise.
26184         * doc/posix-functions/ungetwc.texi: Likewise.
26185         * doc/posix-functions/vswprintf.texi: Likewise.
26186         * doc/posix-functions/wcrtomb.texi: Likewise.
26187         * doc/posix-functions/wcscat.texi: Likewise.
26188         * doc/posix-functions/wcschr.texi: Likewise.
26189         * doc/posix-functions/wcscmp.texi: Likewise.
26190         * doc/posix-functions/wcscoll.texi: Likewise.
26191         * doc/posix-functions/wcscpy.texi: Likewise.
26192         * doc/posix-functions/wcscspn.texi: Likewise.
26193         * doc/posix-functions/wcsftime.texi: Likewise.
26194         * doc/posix-functions/wcslen.texi: Likewise.
26195         * doc/posix-functions/wcsncat.texi: Likewise.
26196         * doc/posix-functions/wcsncmp.texi: Likewise.
26197         * doc/posix-functions/wcsncpy.texi: Likewise.
26198         * doc/posix-functions/wcspbrk.texi: Likewise.
26199         * doc/posix-functions/wcsrchr.texi: Likewise.
26200         * doc/posix-functions/wcsrtombs.texi: Likewise.
26201         * doc/posix-functions/wcsspn.texi: Likewise.
26202         * doc/posix-functions/wcsstr.texi: Likewise.
26203         * doc/posix-functions/wcstod.texi: Likewise.
26204         * doc/posix-functions/wcstof.texi: Likewise.
26205         * doc/posix-functions/wcstoimax.texi: Likewise.
26206         * doc/posix-functions/wcstok.texi: Likewise.
26207         * doc/posix-functions/wcstold.texi: Likewise.
26208         * doc/posix-functions/wcstoll.texi: Likewise.
26209         * doc/posix-functions/wcstol.texi: Likewise.
26210         * doc/posix-functions/wcstombs.texi: Likewise.
26211         * doc/posix-functions/wcstoull.texi: Likewise.
26212         * doc/posix-functions/wcstoul.texi: Likewise.
26213         * doc/posix-functions/wcstoumax.texi: Likewise.
26214         * doc/posix-functions/wcswidth.texi: Likewise.
26215         * doc/posix-functions/wcsxfrm.texi: Likewise.
26216         * doc/posix-functions/wctob.texi: Likewise.
26217         * doc/posix-functions/wctomb.texi: Likewise.
26218         * doc/posix-functions/wctrans.texi: Likewise.
26219         * doc/posix-functions/wctype.texi: Likewise.
26220         * doc/posix-functions/wcwidth.texi: Likewise.
26221         * doc/posix-functions/wmemchr.texi: Likewise.
26222         * doc/posix-functions/wmemcmp.texi: Likewise.
26223         * doc/posix-functions/wmemcpy.texi: Likewise.
26224         * doc/posix-functions/wmemmove.texi: Likewise.
26225         * doc/posix-functions/wmemset.texi: Likewise.
26226         * doc/posix-functions/wprintf.texi: Likewise.
26227         * doc/posix-functions/wscanf.texi: Likewise.
26228
26229 2008-12-21  Bruno Haible  <bruno@clisp.org>
26230
26231         Update doc for HP-UX 11.11.
26232         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26233         in HP-UX version 11.00, not in all versions of HP-UX 11.
26234         * doc/posix-functions/fwide.texi: Likewise.
26235         * doc/posix-functions/fwprintf.texi: Likewise.
26236         * doc/posix-functions/fwscanf.texi: Likewise.
26237         * doc/posix-functions/inet_ntop.texi: Likewise.
26238         * doc/posix-functions/inet_pton.texi: Likewise.
26239         * doc/posix-functions/mbrlen.texi: Likewise.
26240         * doc/posix-functions/mbrtowc.texi: Likewise.
26241         * doc/posix-functions/mbsinit.texi: Likewise.
26242         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26243         * doc/posix-functions/swprintf.texi: Likewise.
26244         * doc/posix-functions/swscanf.texi: Likewise.
26245         * doc/posix-functions/towctrans.texi: Likewise.
26246         * doc/posix-functions/vfwprintf.texi: Likewise.
26247         * doc/posix-functions/vswprintf.texi: Likewise.
26248         * doc/posix-functions/vwprintf.texi: Likewise.
26249         * doc/posix-functions/wcrtomb.texi: Likewise.
26250         * doc/posix-functions/wcsrtombs.texi: Likewise.
26251         * doc/posix-functions/wcsstr.texi: Likewise.
26252         * doc/posix-functions/wctob.texi: Likewise.
26253         * doc/posix-functions/wctrans.texi: Likewise.
26254         * doc/posix-functions/wmemchr.texi: Likewise.
26255         * doc/posix-functions/wmemcmp.texi: Likewise.
26256         * doc/posix-functions/wmemcpy.texi: Likewise.
26257         * doc/posix-functions/wmemmove.texi: Likewise.
26258         * doc/posix-functions/wmemset.texi: Likewise.
26259         * doc/posix-functions/wprintf.texi: Likewise.
26260         * doc/posix-functions/wscanf.texi: Likewise.
26261
26262 2008-12-21  Bruno Haible  <bruno@clisp.org>
26263
26264         Work around a portability problem.
26265         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26266         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26267
26268 2008-12-20  Bruno Haible  <bruno@clisp.org>
26269
26270         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26271         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26272         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26274         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26275
26276         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26277         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26278         set.
26279         (GNULIB_defined_mbstate_t): New macro.
26280         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26281         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26282         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26283         reuses the system's mbrtowc function but works around the bugs.
26284         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26285         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26286         macros.
26287         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26288         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26289         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26290         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26291         REPLACE_MBSINIT if mbsinit needs to be overridden.
26292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26293         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26294         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26295         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26296         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26297         m4/locale-zh.m4.
26298         (Depends): Add mbsinit.
26299         * modules/mbsinit (Depends): Add mbrtowc.
26300         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26301
26302 2008-12-20  Bruno Haible  <bruno@clisp.org>
26303
26304         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26305         so that there are no conversion errors on AIX.
26306         * tests/test-mbsrtowcs.c (main): LIkewise.
26307
26308 2008-12-20  Bruno Haible  <bruno@clisp.org>
26309
26310         Work around wctob bug on Solaris <= 9.
26311         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26312         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26314         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26315         * modules/wctob (Files): Add m4/locale-fr.m4.
26316         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26317
26318 2008-12-20  Bruno Haible  <bruno@clisp.org>
26319
26320         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26321         /dev/null.
26322         * tests/test-select-in.sh: Likewise.
26323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26324
26325 2008-12-20  Bruno Haible  <bruno@clisp.org>
26326
26327         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26328         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26329         Cygwin 1.5.x.
26330
26331 2008-12-20  Bruno Haible  <bruno@clisp.org>
26332
26333         Ensure mbstate_t is defined on HP-UX 11.11.
26334         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26335         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26336         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26337         AC_USE_SYSTEM_EXTENSIONS.
26338         * modules/fnmatch (Depends-on): Add extensions.
26339         * modules/mbrlen (Depends-on): Likewise.
26340         * modules/mbrtowc (Depends-on): Likewise.
26341         * modules/mbsinit (Depends-on): Likewise.
26342         * modules/mbsrtowcs (Depends-on): Likewise.
26343         * modules/mbswidth (Depends-on): Likewise.
26344         * modules/quotearg (Depends-on): Likewise.
26345         * modules/strftime (Depends-on): Likewise.
26346
26347 2008-12-20  Bruno Haible  <bruno@clisp.org>
26348
26349         Ensure wctob is declared on IRIX 6.5.
26350         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26351         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26352         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26354         of HAVE_WCTOB.
26355         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26356         HAVE_WCTOB.
26357         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26358
26359 2008-12-19  Bruno Haible  <bruno@clisp.org>
26360
26361         * modules/mbsrtowcs-tests: New file.
26362         * tests/test-mbsrtowcs1.sh: New file.
26363         * tests/test-mbsrtowcs2.sh: New file.
26364         * tests/test-mbsrtowcs3.sh: New file.
26365         * tests/test-mbsrtowcs4.sh: New file.
26366         * tests/test-mbsrtowcs.c: New file.
26367
26368         New module 'mbsrtowcs'.
26369         * lib/wchar.in.h (mbsrtowcs): New declaration.
26370         * lib/mbsrtowcs.c: New file.
26371         * m4/mbsrtowcs.m4: New file.
26372         * modules/mbsrtowcs: New file.
26373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26374         HAVE_MBSRTOWCS.
26375         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26376         HAVE_MBSRTOWCS.
26377         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26378
26379 2008-12-19  Bruno Haible  <bruno@clisp.org>
26380
26381         New module 'mbrlen'.
26382         * lib/wchar.in.h (mbrlen): New declaration.
26383         * lib/mbrlen.c: New file.
26384         * m4/mbrlen.m4: New file.
26385         * modules/mbrlen: New file.
26386         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26387         HAVE_MBRLEN.
26388         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26389         HAVE_MBRLEN.
26390         * doc/posix-functions/mbrlen.texi: Document the new module.
26391
26392 2008-12-19  Bruno Haible  <bruno@clisp.org>
26393
26394         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26395         * modules/mbrtowc (Depends-on): Add verify.
26396         Suggested by Paul Eggert.
26397
26398 2008-12-18  Bruno Haible  <bruno@clisp.org>
26399
26400         * modules/mbsinit-tests: New file.
26401         * tests/test-mbsinit.sh: New file.
26402         * tests/test-mbsinit.c: New file.
26403
26404 2008-12-18  Bruno Haible  <bruno@clisp.org>
26405
26406         * modules/mbrtowc-tests: New file.
26407         * tests/test-mbrtowc1.sh: New file.
26408         * tests/test-mbrtowc2.sh: New file.
26409         * tests/test-mbrtowc3.sh: New file.
26410         * tests/test-mbrtowc4.sh: New file.
26411         * tests/test-mbrtowc.c: New file.
26412
26413         New module 'mbrtowc'.
26414         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26415         mbsinit and mbrtowc.
26416         (mbrtowc): New declaration.
26417         * lib/mbrtowc.c: New file.
26418         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26419         * modules/mbrtowc: New file.
26420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26421         HAVE_MBRTOWC.
26422         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26423         HAVE_MBRTOWC.
26424         * doc/posix-functions/mbrtowc.texi: Document the new module.
26425
26426 2008-12-18  Bruno Haible  <bruno@clisp.org>
26427
26428         New module 'wctob'.
26429         * lib/wchar.in.h (wctob): New declaration.
26430         * lib/wctob.c: New file.
26431         * m4/wctob.m4: New file.
26432         * modules/wctob: New file.
26433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26434         HAVE_WCTOB.
26435         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26436         * doc/posix-functions/wctob.texi: Document the new module.
26437
26438 2008-12-18  Bruno Haible  <bruno@clisp.org>
26439
26440         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26441         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26442
26443 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26444
26445         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26446         G. Christensen" <tgc@jupiterrise.com>.
26447
26448         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26449         G. Christensen" <tgc@jupiterrise.com>.
26450
26451         * lib/flock.c: Need to include string.h.  Reported by "Tom
26452         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26453         <ebb9@byu.net>.
26454
26455 2008-12-18  Bruno Haible  <bruno@clisp.org>
26456
26457         * m4/locale-ja.m4: New file, from GNU gettext.
26458
26459 2008-12-17  Bruno Haible  <bruno@clisp.org>
26460
26461         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26462         Suggested by Eric Blake.
26463
26464 2008-12-17  Bruno Haible  <bruno@clisp.org>
26465
26466         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26467
26468 2008-12-17  Bruno Haible  <bruno@clisp.org>
26469
26470         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26471         * modules/mbsinit (Depends-on): Add verify.
26472         Suggested by Paul Eggert.
26473
26474 2008-12-17  Bruno Haible  <bruno@clisp.org>
26475
26476         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26477         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26478         gl_FUNC_MBRTOWC.
26479         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26480         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26481         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26482         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26483         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26484         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26485         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26486         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26487         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26488         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26489         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26490         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26491         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26492         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26493         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26494         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26495         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26496         * modules/trim (configure.ac): Likewise.
26497
26498 2008-12-17  Bruno Haible  <bruno@clisp.org>
26499
26500         * modules/btowc-tests: New file.
26501         * tests/test-btowc1.sh: New file.
26502         * tests/test-btowc2.sh: New file.
26503         * tests/test-btowc.c: New file.
26504
26505         New module 'btowc'.
26506         * lib/wchar.in.h (btowc): New declaration.
26507         * lib/btowc.c: New file.
26508         * m4/btowc.m4: New file.
26509         * modules/btowc: New file.
26510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26511         HAVE_BTOWC.
26512         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26513         * doc/posix-functions/btowc.texi: Document the new module.
26514
26515 2008-12-17  Bruno Haible  <bruno@clisp.org>
26516
26517         New module 'mbsinit'.
26518         * lib/wchar.in.h (mbsinit): New declaration.
26519         * lib/mbsinit.c: New file.
26520         * m4/mbsinit.m4: New file.
26521         * modules/mbsinit: New file.
26522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26523         HAVE_MBSINIT.
26524         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26525         HAVE_MBSINIT.
26526         * doc/posix-functions/mbsinit.texi: Document the new module.
26527
26528 2008-12-16  Bruno Haible  <bruno@clisp.org>
26529
26530         * lib/unistd.in.h: Add comment.
26531         * tests/test-environ.c: Don't include <stdlib.h>.
26532
26533 2008-12-16  Bruno Haible  <bruno@clisp.org>
26534
26535         * lib/parse-duration.h (parse_duration): Document return value
26536         convention.
26537         * lib/parse-duration.c: Include specification header first. Add
26538         comments.
26539         (_): Remove macro.
26540         (parse_year_month_day, parse_hour_minute_second): Move side effects
26541         outside of strchr call.
26542         (parse_non_iso8601): Move side effects outside of isspace call.
26543         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26544         call.
26545
26546 2008-12-16  Bruno Haible  <bruno@clisp.org>
26547
26548         * tests/test-parse-duration.sh: Produce no output when the test
26549         succeeds.
26550
26551 2008-12-16  Bruno Haible  <bruno@clisp.org>
26552
26553         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26554         expressions.
26555
26556 2008-12-15  Bruno Haible  <bruno@clisp.org>
26557
26558         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26559         * doc/glibc-functions/flistxattr.texi: Likewise.
26560         * doc/glibc-functions/fopencookie.texi: Likewise.
26561         * doc/glibc-functions/fremovexattr.texi: Likewise.
26562         * doc/glibc-functions/fsetxattr.texi: Likewise.
26563         * doc/glibc-functions/getxattr.texi: Likewise.
26564         * doc/glibc-functions/lgetxattr.texi: Likewise.
26565         * doc/glibc-functions/listxattr.texi: Likewise.
26566         * doc/glibc-functions/llistxattr.texi: Likewise.
26567         * doc/glibc-functions/lremovexattr.texi: Likewise.
26568         * doc/glibc-functions/lsetxattr.texi: Likewise.
26569         * doc/glibc-functions/removexattr.texi: Likewise.
26570         * doc/glibc-functions/setxattr.texi: Likewise.
26571         * doc/posix-functions/open_memstream.texi: Likewise.
26572
26573 2008-12-15  Eric Blake  <ebb9@byu.net>
26574
26575         Update doc for cygwin 1.7.
26576         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26577         functions.
26578         * doc/posix-functions/fchmodat.texi: Likewise.
26579         * doc/posix-functions/fchownat.texi: Likewise.
26580         * doc/posix-functions/fdopendir.texi: Likewise.
26581         * doc/posix-functions/fmemopen.texi: Likewise.
26582         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26583         * doc/posix-functions/fstatat.texi: Likewise.
26584         * doc/posix-functions/futimens.texi: Likewise.
26585         * doc/posix-functions/gai_strerror.texi: Likewise.
26586         * doc/posix-functions/getaddrinfo.texi: Likewise.
26587         * doc/posix-functions/getnameinfo.texi: Likewise.
26588         * doc/posix-functions/if_freenameindex.texi: Likewise.
26589         * doc/posix-functions/if_indextoname.texi: Likewise.
26590         * doc/posix-functions/if_nameindex.texi: Likewise.
26591         * doc/posix-functions/if_nametoindex.texi: Likewise.
26592         * doc/posix-functions/insque.texi: Likewise.
26593         * doc/posix-functions/linkat.texi: Likewise.
26594         * doc/posix-functions/llrint.texi: Likewise.
26595         * doc/posix-functions/llrintf.texi: Likewise.
26596         * doc/posix-functions/llrintl.texi: Likewise.
26597         * doc/posix-functions/lockf.texi: Likewise.
26598         * doc/posix-functions/lrintl.texi: Likewise.
26599         * doc/posix-functions/mkdirat.texi: Likewise.
26600         * doc/posix-functions/mkfifoat.texi: Likewise.
26601         * doc/posix-functions/mknodat.texi: Likewise.
26602         * doc/posix-functions/mq_close.texi: Likewise.
26603         * doc/posix-functions/mq_getattr.texi: Likewise.
26604         * doc/posix-functions/mq_notify.texi: Likewise.
26605         * doc/posix-functions/mq_open.texi: Likewise.
26606         * doc/posix-functions/mq_receive.texi: Likewise.
26607         * doc/posix-functions/mq_send.texi: Likewise.
26608         * doc/posix-functions/mq_setattr.texi: Likewise.
26609         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26610         * doc/posix-functions/mq_timedsend.texi: Likewise.
26611         * doc/posix-functions/mq_unlink.texi: Likewise.
26612         * doc/posix-functions/open_memstream.texi: Likewise.
26613         * doc/posix-functions/openat.texi: Likewise.
26614         * doc/posix-functions/posix_fadvise.texi: Likewise.
26615         * doc/posix-functions/posix_fallocate.texi: Likewise.
26616         * doc/posix-functions/posix_madvise.texi: Likewise.
26617         * doc/posix-functions/posix_memalign.texi: Likewise.
26618         * doc/posix-functions/posix_openpt.texi: Likewise.
26619         * doc/posix-functions/readlinkat.texi: Likewise.
26620         * doc/posix-functions/remque.texi: Likewise.
26621         * doc/posix-functions/renameat.texi: Likewise.
26622         * doc/posix-functions/rintl.texi: Likewise.
26623         * doc/posix-functions/sem_unlink.texi: Likewise.
26624         * doc/posix-functions/shm_open.texi: Likewise.
26625         * doc/posix-functions/shm_unlink.texi: Likewise.
26626         * doc/posix-functions/signgam.texi: Likewise.
26627         * doc/posix-functions/sigset.texi: Likewise.
26628         * doc/posix-functions/stpcpy.texi: Likewise.
26629         * doc/posix-functions/stpncpy.texi: Likewise.
26630         * doc/posix-functions/strerror.texi: Likewise.
26631         * doc/posix-functions/strtod.texi: Likewise.
26632         * doc/posix-functions/symlinkat.texi: Likewise.
26633         * doc/posix-functions/unlinkat.texi: Likewise.
26634         * doc/posix-functions/utimensat.texi: Likewise.
26635         * doc/glibc-functions/bindresvport.texi: Likewise.
26636         * doc/glibc-functions/dn_expand.texi: Likewise.
26637         * doc/glibc-functions/exp10.texi: Likewise.
26638         * doc/glibc-functions/exp10f.texi: Likewise.
26639         * doc/glibc-functions/fgetxattr.texi: Likewise.
26640         * doc/glibc-functions/flistxattr.texi: Likewise.
26641         * doc/glibc-functions/fopencookie.texi: Likewise.
26642         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26643         * doc/glibc-functions/fremovexattr.texi: Likewise.
26644         * doc/glibc-functions/fsetxattr.texi: Likewise.
26645         * doc/glibc-functions/getifaddrs.texi: Likewise.
26646         * doc/glibc-functions/getxattr.texi: Likewise.
26647         * doc/glibc-functions/lgetxattr.texi: Likewise.
26648         * doc/glibc-functions/listxattr.texi: Likewise.
26649         * doc/glibc-functions/llistxattr.texi: Likewise.
26650         * doc/glibc-functions/lremovexattr.texi: Likewise.
26651         * doc/glibc-functions/lsetxattr.texi: Likewise.
26652         * doc/glibc-functions/pow10.texi: Likewise.
26653         * doc/glibc-functions/pow10f.texi: Likewise.
26654         * doc/glibc-functions/rcmd_af.texi: Likewise.
26655         * doc/glibc-functions/removexattr.texi: Likewise.
26656         * doc/glibc-functions/res_init.texi: Likewise.
26657         * doc/glibc-functions/res_mkquery.texi: Likewise.
26658         * doc/glibc-functions/res_query.texi: Likewise.
26659         * doc/glibc-functions/res_querydomain.texi: Likewise.
26660         * doc/glibc-functions/res_send.texi: Likewise.
26661         * doc/glibc-functions/rresvport_af.texi: Likewise.
26662         * doc/glibc-functions/setxattr.texi: Likewise.
26663         * doc/glibc-functions/strcasestr.texi: Likewise.
26664
26665 2008-12-15  Bruno Haible  <bruno@clisp.org>
26666
26667         Fix compilation error on OSF/1 4.0.
26668         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26669         <sys/time.h>, simply delegate to the system header.
26670         Reported by Daniel Richard G. <oss@teragram.com>.
26671
26672 2008-12-15  Bruno Haible  <bruno@clisp.org>
26673
26674         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26675         * doc/posix-functions/fchmodat.texi: Likewise.
26676         * doc/posix-functions/fchownat.texi: Likewise.
26677         * doc/posix-functions/fdopendir.texi: Likewise.
26678         * doc/posix-functions/fstatat.texi: Likewise.
26679         * doc/posix-functions/mkdirat.texi: Likewise.
26680         * doc/posix-functions/unlinkat.texi: Likewise.
26681
26682 2008-12-14  Bruno Haible  <bruno@clisp.org>
26683
26684         Update doc for POSIX:2008.
26685         * doc/posix-functions/faccessat.texi: New file.
26686         * doc/posix-functions/fchmodat.texi: New file.
26687         * doc/posix-functions/fchownat.texi: New file.
26688         * doc/posix-functions/fdopendir.texi: New file.
26689         * doc/posix-functions/fstatat.texi: New file.
26690         * doc/posix-functions/futimens.texi: New file.
26691         * doc/posix-functions/linkat.texi: New file.
26692         * doc/posix-functions/mkdirat.texi: New file.
26693         * doc/posix-functions/mkfifoat.texi: New file.
26694         * doc/posix-functions/mknodat.texi: New file.
26695         * doc/posix-functions/open_wmemstream.texi: New file.
26696         * doc/posix-functions/openat.texi: New file.
26697         * doc/posix-functions/psiginfo.texi: New file.
26698         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26699         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26700         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26701         * doc/posix-functions/readlinkat.texi: New file.
26702         * doc/posix-functions/renameat.texi: New file.
26703         * doc/posix-functions/strerror_l.texi: New file.
26704         * doc/posix-functions/symlinkat.texi: New file.
26705         * doc/posix-functions/unlinkat.texi: New file.
26706         * doc/posix-functions/utimensat.texi: New file.
26707         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26708
26709 2008-12-14  Bruno Haible  <bruno@clisp.org>
26710
26711         Update doc for POSIX:2008.
26712         * doc/posix-functions/alphasort.texi: Renamed from
26713         doc/glibc-functions/alphasort.texi.
26714         * doc/posix-functions/dirfd.texi: Renamed from
26715         doc/glibc-functions/dirfd.texi.
26716         * doc/posix-functions/dprintf.texi: Renamed from
26717         doc/glibc-functions/dprintf.texi.
26718         * doc/posix-functions/duplocale.texi: Renamed from
26719         doc/glibc-functions/duplocale.texi.
26720         * doc/posix-functions/fexecve.texi: Renamed from
26721         doc/glibc-functions/fexecve.texi.
26722         * doc/posix-functions/fmemopen.texi: Renamed from
26723         doc/glibc-functions/fmemopen.texi.
26724         * doc/posix-functions/freelocale.texi: Renamed from
26725         doc/glibc-functions/freelocale.texi.
26726         * doc/posix-functions/getdate_err.texi: Renamed from
26727         doc/glibc-functions/getdate_err.texi.
26728         * doc/posix-functions/isalnum_l.texi: Renamed from
26729         doc/glibc-functions/isalnum_l.texi.
26730         * doc/posix-functions/isalpha_l.texi: Renamed from
26731         doc/glibc-functions/isalpha_l.texi.
26732         * doc/posix-functions/isblank_l.texi: Renamed from
26733         doc/glibc-functions/isblank_l.texi.
26734         * doc/posix-functions/iscntrl_l.texi: Renamed from
26735         doc/glibc-functions/iscntrl_l.texi.
26736         * doc/posix-functions/isdigit_l.texi: Renamed from
26737         doc/glibc-functions/isdigit_l.texi.
26738         * doc/posix-functions/isgraph_l.texi: Renamed from
26739         doc/glibc-functions/isgraph_l.texi.
26740         * doc/posix-functions/islower_l.texi: Renamed from
26741         doc/glibc-functions/islower_l.texi.
26742         * doc/posix-functions/isprint_l.texi: Renamed from
26743         doc/glibc-functions/isprint_l.texi.
26744         * doc/posix-functions/ispunct_l.texi: Renamed from
26745         doc/glibc-functions/ispunct_l.texi.
26746         * doc/posix-functions/isspace_l.texi: Renamed from
26747         doc/glibc-functions/isspace_l.texi.
26748         * doc/posix-functions/isupper_l.texi: Renamed from
26749         doc/glibc-functions/isupper_l.texi.
26750         * doc/posix-functions/iswalnum_l.texi: Renamed from
26751         doc/glibc-functions/iswalnum_l.texi.
26752         * doc/posix-functions/iswalpha_l.texi: Renamed from
26753         doc/glibc-functions/iswalpha_l.texi.
26754         * doc/posix-functions/iswblank_l.texi: Renamed from
26755         doc/glibc-functions/iswblank_l.texi.
26756         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26757         doc/glibc-functions/iswcntrl_l.texi.
26758         * doc/posix-functions/iswctype_l.texi: Renamed from
26759         doc/glibc-functions/iswctype_l.texi.
26760         * doc/posix-functions/iswdigit_l.texi: Renamed from
26761         doc/glibc-functions/iswdigit_l.texi.
26762         * doc/posix-functions/iswgraph_l.texi: Renamed from
26763         doc/glibc-functions/iswgraph_l.texi.
26764         * doc/posix-functions/iswlower_l.texi: Renamed from
26765         doc/glibc-functions/iswlower_l.texi.
26766         * doc/posix-functions/iswprint_l.texi: Renamed from
26767         doc/glibc-functions/iswprint_l.texi.
26768         * doc/posix-functions/iswpunct_l.texi: Renamed from
26769         doc/glibc-functions/iswpunct_l.texi.
26770         * doc/posix-functions/iswspace_l.texi: Renamed from
26771         doc/glibc-functions/iswspace_l.texi.
26772         * doc/posix-functions/iswupper_l.texi: Renamed from
26773         doc/glibc-functions/iswupper_l.texi.
26774         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26775         doc/glibc-functions/iswxdigit_l.texi.
26776         * doc/posix-functions/isxdigit_l.texi: Renamed from
26777         doc/glibc-functions/isxdigit_l.texi.
26778         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26779         doc/glibc-functions/mbsnrtowcs.texi.
26780         * doc/posix-functions/mkdtemp.texi: Renamed from
26781         doc/glibc-functions/mkdtemp.texi.
26782         * doc/posix-functions/newlocale.texi: Renamed from
26783         doc/glibc-functions/newlocale.texi.
26784         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26785         doc/glibc-functions/nl_langinfo_l.texi.
26786         * doc/posix-functions/open_memstream.texi: Renamed from
26787         doc/glibc-functions/open_memstream.texi.
26788         * doc/posix-functions/opterr.texi: Renamed from
26789         doc/glibc-functions/opterr.texi.
26790         * doc/posix-functions/optind.texi: Renamed from
26791         doc/glibc-functions/optind.texi.
26792         * doc/posix-functions/optopt.texi: Renamed from
26793         doc/glibc-functions/optopt.texi.
26794         * doc/posix-functions/psignal.texi: Renamed from
26795         doc/glibc-functions/psignal.texi.
26796         * doc/posix-functions/scandir.texi: Renamed from
26797         doc/glibc-functions/scandir.texi.
26798         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26799         doc/glibc-functions/sched_get_priority_min.texi.
26800         * doc/posix-functions/signgam.texi: Renamed from
26801         doc/glibc-functions/signgam.texi.
26802         * doc/posix-functions/stpcpy.texi: Renamed from
26803         doc/glibc-functions/stpcpy.texi.
26804         * doc/posix-functions/stpncpy.texi: Renamed from
26805         doc/glibc-functions/stpncpy.texi.
26806         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26807         doc/glibc-functions/strcasecmp_l.texi.
26808         * doc/posix-functions/strcoll_l.texi: Renamed from
26809         doc/glibc-functions/strcoll_l.texi.
26810         * doc/posix-functions/strfmon_l.texi: Renamed from
26811         doc/glibc-functions/strfmon_l.texi.
26812         * doc/posix-functions/strftime_l.texi: Renamed from
26813         doc/glibc-functions/strftime_l.texi.
26814         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26815         doc/glibc-functions/strncasecmp_l.texi.
26816         * doc/posix-functions/strndup.texi: Renamed from
26817         doc/glibc-functions/strndup.texi.
26818         * doc/posix-functions/strnlen.texi: Renamed from
26819         doc/glibc-functions/strnlen.texi.
26820         * doc/posix-functions/strsignal.texi: Renamed from
26821         doc/glibc-functions/strsignal.texi.
26822         * doc/posix-functions/strxfrm_l.texi: Renamed from
26823         doc/glibc-functions/strxfrm_l.texi.
26824         * doc/posix-functions/timer_gettime.texi: Renamed from
26825         doc/glibc-functions/timer_gettime.texi.
26826         * doc/posix-functions/tolower_l.texi: Renamed from
26827         doc/glibc-functions/tolower_l.texi.
26828         * doc/posix-functions/toupper_l.texi: Renamed from
26829         doc/glibc-functions/toupper_l.texi.
26830         * doc/posix-functions/towctrans_l.texi: Renamed from
26831         doc/glibc-functions/towctrans_l.texi.
26832         * doc/posix-functions/towlower_l.texi: Renamed from
26833         doc/glibc-functions/towlower_l.texi.
26834         * doc/posix-functions/towupper_l.texi: Renamed from
26835         doc/glibc-functions/towupper_l.texi.
26836         * doc/posix-functions/uselocale.texi: Renamed from
26837         doc/glibc-functions/uselocale.texi.
26838         * doc/posix-functions/vdprintf.texi: Renamed from
26839         doc/glibc-functions/vdprintf.texi.
26840         * doc/posix-functions/wcpcpy.texi:
26841         Renamed from doc/glibc-functions/wcpcpy.texi.
26842         * doc/posix-functions/wcpncpy.texi: Renamed from
26843         doc/glibc-functions/wcpncpy.texi.
26844         * doc/posix-functions/wcscasecmp.texi: Renamed from
26845         doc/glibc-functions/wcscasecmp.texi.
26846         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26847         doc/glibc-functions/wcscasecmp_l.texi.
26848         * doc/posix-functions/wcscoll_l.texi: Renamed from
26849         doc/glibc-functions/wcscoll_l.texi.
26850         * doc/posix-functions/wcsdup.texi: Renamed from
26851         doc/glibc-functions/wcsdup.texi.
26852         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26853         doc/glibc-functions/wcsncasecmp.texi.
26854         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26855         doc/glibc-functions/wcsncasecmp_l.texi.
26856         * doc/posix-functions/wcsnlen.texi: Renamed from
26857         doc/glibc-functions/wcsnlen.texi.
26858         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26859         doc/glibc-functions/wcsnrtombs.texi.
26860         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26861         doc/glibc-functions/wcsxfrm_l.texi.
26862         * doc/posix-functions/wctrans_l.texi: Renamed from
26863         doc/glibc-functions/wctrans_l.texi.
26864         * doc/posix-functions/wctype_l.texi: Renamed from
26865         doc/glibc-functions/wctype_l.texi.
26866         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26867         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26868         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26869         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26870         these subsections.
26871         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26872         Remove sections.
26873
26874 2008-12-14  Bruno Haible  <bruno@clisp.org>
26875
26876         Update doc for POSIX:2008.
26877         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26878
26879 2008-12-14  Bruno Haible  <bruno@clisp.org>
26880
26881         Update doc for POSIX:2008.
26882         * doc/pastposix-functions/bcmp.texi: Renamed from
26883         doc/posix-functions/bcmp.texi.
26884         * doc/pastposix-functions/bcopy.texi: Renamed from
26885         doc/posix-functions/bcopy.texi.
26886         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26887         doc/posix-functions/bsd_signal.texi.
26888         * doc/pastposix-functions/bzero.texi: Renamed from
26889         doc/posix-functions/bzero.texi.
26890         * doc/pastposix-functions/ecvt.texi: Renamed from
26891         doc/posix-functions/ecvt.texi.
26892         * doc/pastposix-functions/fcvt.texi: Renamed from
26893         doc/posix-functions/fcvt.texi.
26894         * doc/pastposix-functions/ftime.texi: Renamed from
26895         doc/posix-functions/ftime.texi.
26896         * doc/pastposix-functions/gcvt.texi: Renamed from
26897         doc/posix-functions/gcvt.texi.
26898         * doc/pastposix-functions/getcontext.texi: Renamed from
26899         doc/posix-functions/getcontext.texi.
26900         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26901         doc/posix-functions/gethostbyaddr.texi.
26902         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26903         doc/posix-functions/gethostbyname.texi.
26904         * doc/pastposix-functions/getwd.texi: Renamed from
26905         doc/posix-functions/getwd.texi.
26906         * doc/pastposix-functions/h_errno.texi: Renamed from
26907         doc/posix-functions/h_errno.texi.
26908         * doc/pastposix-functions/index.texi: Renamed from
26909         doc/posix-functions/index.texi.
26910         * doc/pastposix-functions/makecontext.texi: Renamed from
26911         doc/posix-functions/makecontext.texi.
26912         * doc/pastposix-functions/mktemp.texi: Renamed from
26913         doc/posix-functions/mktemp.texi.
26914         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26915         doc/posix-functions/pthread_attr_getstackaddr.texi.
26916         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26917         doc/posix-functions/pthread_attr_setstackaddr.texi.
26918         * doc/pastposix-functions/rindex.texi: Renamed from
26919         doc/posix-functions/rindex.texi.
26920         * doc/pastposix-functions/scalb.texi: Renamed from
26921         doc/posix-functions/scalb.texi.
26922         * doc/pastposix-functions/setcontext.texi: Renamed from
26923         doc/posix-functions/setcontext.texi.
26924         * doc/pastposix-functions/swapcontext.texi: Renamed from
26925         doc/posix-functions/swapcontext.texi.
26926         * doc/pastposix-functions/ualarm.texi: Renamed from
26927         doc/posix-functions/ualarm.texi.
26928         * doc/pastposix-functions/usleep.texi: Renamed from
26929         doc/posix-functions/usleep.texi.
26930         * doc/pastposix-functions/vfork.texi: Renamed from
26931         doc/posix-functions/vfork.texi.
26932         * doc/pastposix-functions/wcswcs.texi: Renamed from
26933         doc/posix-functions/wcswcs.texi.
26934         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26935         (Function Substitutes): Update.
26936
26937 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26938
26939         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26940         m4/strerror.m4.
26941
26942 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26943             Bruno Haible  <bruno@clisp.org>
26944
26945         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26946
26947 2008-12-13  Bruno Haible  <bruno@clisp.org>
26948
26949         * modules/strtoull (Depends-on): Remove unistd.
26950
26951 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26952
26953         * modules/strtoull (Depends-on): Add stdlib.
26954
26955 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26956
26957         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26958
26959 2008-12-10  Jim Meyering  <meyering@redhat.com>
26960
26961         gl_ASSERT: don't say assertions are disabled when they're not
26962         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26963         "checking whether to enable assertions... no", when they are in
26964         fact enabled.  This is solely a bug in the output of configure.
26965         In spite of saying "no", NDEBUG was not defined in that case.
26966         Also, as noted by Eric Blake, leave assertions enabled upon
26967         --enable-assert=INVALID.
26968
26969 2008-12-10  Bruno Haible  <bruno@clisp.org>
26970
26971         Change MODULES.html to refer to POSIX:2008 where possible.
26972         * MODULES.html.sh (POSIX2008_URL): New variable.
26973         (posix_headers): Remove sys/timeb, ucontext.
26974         (posix2001_headers): New variable.
26975         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26976         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26977         index, makecontext, mktemp, pthread_attr_getstackaddr,
26978         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26979         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26980         (posix2001_functions): New variable.
26981         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26982         otherwise.
26983
26984 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26985
26986         add missing include to parse-duration.c
26987         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26988         * modules/parse-duration (Depends-on): Add xalloc.
26989
26990         fix sed script reading maint.mk
26991         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26992         (syntax-check-rules): Use it.
26993
26994 2008-12-09  Bruno Haible  <bruno@clisp.org>
26995
26996         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26997         MacOS X 10.4/PowerPC.
26998         Reported by Simon Josefsson.
26999
27000 2008-12-08  Jim Meyering  <meyering@redhat.com>
27001
27002         work around mingw's lack of some S_IF definitions
27003         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
27004         Reported by Simon Josefsson.
27005
27006 2008-12-08  Bruno Haible  <bruno@clisp.org>
27007
27008         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
27009         applied to variables. Needed on MacOS X 10.4/PowerPC.
27010         Reported by Simon Josefsson.
27011
27012 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
27013         and Eric Blake  <ebb9@byu.net>
27014
27015         assert: honor --enable-assert
27016         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
27017         order to honor --enable-assert, rather than treating it as a
27018         synonym for --disable-assert.
27019
27020 2008-12-08  Jim Meyering  <meyering@redhat.com>
27021
27022         * lib/posixtm.c: Remove now-useless declaration of mktime.
27023
27024         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
27025
27026 2008-12-07  Bruno Haible  <bruno@clisp.org>
27027
27028         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
27029         test_once): Mark functions as static.
27030         * tests/test-tls.c (test_tls): Likewise.
27031
27032 2008-12-07  Bruno Haible  <bruno@clisp.org>
27033
27034         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
27035         iconv_register_autodetect.
27036
27037 2008-12-07  Jim Meyering  <meyering@redhat.com>
27038
27039         posixtm.c: avoid a warning
27040         * lib/posixtm.c (posixtime): Don't initialize tm0.
27041         It's no longer needed to placate gcc4's -Wuninitialized,
27042         and the attempt to placate would elicit a new warning.
27043
27044         unicodeio.c: mark unused parameters
27045         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27046         (fallback_failure_callback): Likewise.
27047
27048 2008-12-07  Bruno Haible  <bruno@clisp.org>
27049
27050         * gnulib-tool (func_create_testdir): When building the tests
27051         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
27052         Reported by Simon Josefsson.
27053
27054 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27055
27056         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
27057
27058 2008-12-06  Bruno Haible  <bruno@clisp.org>
27059
27060         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
27061         Suggested by Eric Blake.
27062
27063 2008-12-06  Bruno Haible  <bruno@clisp.org>
27064
27065         Fix a c-stack test failure on MacOS X.
27066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
27067         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
27068         handler for SIGBUS as well.
27069         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
27070         install a signal handler for SIGBUS as well.
27071         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
27072
27073 2008-12-06  Bruno Haible  <bruno@clisp.org>
27074
27075         Advocacy documentation.
27076         * doc/gnulib-intro.texi (Benefits): New section.
27077         * doc/gnulib.texi: Update.
27078
27079 2008-12-06  Bruno Haible  <bruno@clisp.org>
27080
27081         Document the 'manywarnings' module.
27082         * doc/manywarnings.texi: New file.
27083         * doc/gnulib.texi: Include it.
27084
27085 2008-12-05  Eric Blake  <ebb9@byu.net>
27086
27087         tests: silence some gcc warnings
27088         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27089         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
27090         type mismatches.
27091
27092 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27093             Bruno Haible  <bruno@clisp.org>
27094
27095         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
27096
27097 2008-11-29  Jim Meyering  <meyering@redhat.com>
27098
27099         unicodeio.c: mark unused parameters
27100         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27101         (fallback_failure_callback): Likewise.
27102
27103         fts: fix a thinko
27104         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
27105         (set_stat_type): Return S_IF*-valued "type" directly.
27106         Prompted by James Youngman's spotting a related bug.
27107         Confirmed by further testing through find.
27108
27109         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
27110         * lib/fts.c (D_TYPE): Define.
27111         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
27112         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
27113         (s_ifmt_shift_bits): New function.
27114         (set_stat_type): New function.
27115         (fts_build): When not calling fts_stat, call set_stat_type
27116         to propagate dirent.d_type info to fts_read caller.
27117         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27118         fts_statp->st_mode type information may be valid.
27119
27120 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27121
27122         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27123         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27124         <sds@gnu.org>.
27125
27126 2008-11-20  Bruno Haible  <bruno@clisp.org>
27127
27128         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27129         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27130         INCLUDE_NEXT.
27131         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27132         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27133         * modules/math (Makefile.am): Substitute
27134         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27136
27137 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27138             Bruno Haible  <bruno@clisp.org>
27139
27140         * lib/stdint.in.h: Define all type macros so that their expansion is
27141         a single typedef'ed token. Fixes a compilation failure in Boost which
27142         does "using ::int8_t;".
27143
27144 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27145
27146         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27147         gl_MANYWARN_ALL_GCC.
27148         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27149         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27150         * modules/manywarnings: New file.
27151         * MODULES.html.sh: Mention manywarnings module.
27152
27153 2008-11-18  Bruno Haible  <bruno@clisp.org>
27154
27155         * doc/gnulib-tool.texi (Unit tests): New section.
27156
27157 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27158
27159         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27160         paths like 'lib/po/foo.po'.
27161
27162 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27163
27164         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27165         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27166
27167 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27168
27169         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27170         parameter works.
27171
27172 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27173
27174         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27175
27176 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27177
27178         * modules/parse-duration-tests: New file.
27179         * tests/test-parse-duration.sh: New file.
27180         * tests/test-parse-duration.c: New file.
27181
27182         New module 'parse-duration'.
27183         * lib/parse-duration.h: New file.
27184         * lib/parse-duration.c: New file.
27185         * modules/parse-duration: New file.
27186
27187 2008-11-17  Bruno Haible  <bruno@clisp.org>
27188
27189         * tests/test-select-out.sh: Comment out the first pipe test.
27190         Reported by Simon Josefsson.
27191
27192 2008-11-17  Bruno Haible  <bruno@clisp.org>
27193
27194         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27196         gl_HOSTENT.
27197
27198 2008-11-17  Bruno Haible  <bruno@clisp.org>
27199
27200         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27201         -lnetwork and -lnet. Needed for Haiku and BeOS.
27202
27203 2008-11-16  Bruno Haible  <bruno@clisp.org>
27204
27205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27206
27207 2008-11-16  Bruno Haible  <bruno@clisp.org>
27208
27209         Avoid test failure on Haiku.
27210         * tests/test-fsync.c: Include <errno.h>.
27211         (main): Don't require that fsync (0) fails.
27212
27213 2008-11-15  Bruno Haible  <bruno@clisp.org>
27214
27215         New module 'hostent'.
27216         * modules/hostent: New file.
27217         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27218
27219 2008-11-15  Bruno Haible  <bruno@clisp.org>
27220
27221         New module 'servent'.
27222         * modules/servent: New file.
27223         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27224
27225 2008-11-15  Bruno Haible  <bruno@clisp.org>
27226
27227         Avoid generating same test program with two different rules.
27228         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27229         test-frexp to test-frexp-nolibm.
27230         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27231         test-frexpl to test-frexpl-nolibm.
27232
27233 2008-11-15  Bruno Haible  <bruno@clisp.org>
27234
27235         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27236         $(FREXPL_LIBM).
27237
27238 2008-11-15  Bruno Haible  <bruno@clisp.org>
27239
27240         * lib/netdb.in.h: Activate the definitions also when the system's
27241         <netdb.h> has 'struct addrinfo'.
27242         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27243         EAI_OVERFLOW or AI_NUMERICSERV.
27244         * doc/posix-headers/netdb.texi: Document the problem.
27245
27246 2008-11-15  Bruno Haible  <bruno@clisp.org>
27247
27248         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27249
27250         Make the 'sched' module work on platforms where <sched.h> exists but
27251         is incomplete (such as Haiku).
27252         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27253         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27254         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27255         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27256         HAVE_STRUCT_SCHED_PARAM.
27257         * modules/sched (Depends-on): Add include_next.
27258         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27259         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27260         * doc/posix-headers/sched.texi: Document the issue.
27261
27262 2008-11-13  Jim Meyering  <meyering@redhat.com>
27263
27264         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27265         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27266         test would fail due to the difference in the Report bugs to ...
27267         line.  The expected address is empty, "<>", while the actual
27268         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27269
27270 2008-11-12  Bruno Haible  <bruno@clisp.org>
27271
27272         lstat: don't compile lstat.c on systems lacking lstat
27273         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27274         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27275         Reported by Daniel P. Berrange via Jim Meyering.
27276
27277 2008-11-12  Jim Meyering  <meyering@redhat.com>
27278
27279         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27280
27281 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27282
27283         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27284         instead.
27285
27286 2008-11-12  Bruno Haible  <bruno@clisp.org>
27287
27288         * lib/unicodeio.c: Include unistr.h.
27289         (utf8_wctomb): Remove function.
27290         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27291
27292 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27293
27294         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27295         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27296         <bruno@clisp.org>.
27297         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27298
27299 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27300
27301         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27302         * doc/gnulib.texi: Add section for warnings.
27303
27304 2008-11-11  Bruno Haible  <bruno@clisp.org>
27305
27306         * lib/sockets.h: Add a comment.
27307
27308 2008-11-11  Karl Berry  <karl@gnu.org>
27309
27310         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27311
27312 2008-11-11  Eric Blake  <ebb9@byu.net>
27313
27314         fdl.texi: avoid git symlinks
27315         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27316
27317 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27318
27319         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27320
27321 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27322
27323         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27324         (gl_WARN_ADD): Substitute $2 if literal.
27325
27326 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27327
27328         * m4/warning.m4: Remove.
27329
27330 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27331
27332         * m4/warnings.m4: Almost complete rewrite. :-)
27333
27334 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27335
27336         * modules/warnings: New module.
27337         * m4/warnings.m4: New file.
27338         * MODULES.html.sh: Mention warnings module.
27339         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27340         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27341
27342 2008-11-10  Eric Blake  <ebb9@byu.net>
27343
27344         fdl.texi: make a symlink to the latest version
27345         * doc/standards.texi: Revert today's earlier change.
27346         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27347         * doc/fdl.texi: ...and replace this with a symlink to the newer
27348         fdl-1.3.texi.
27349
27350 2008-11-10  Bruno Haible  <bruno@clisp.org>
27351
27352         * tests/test-select-fd.c (main): Accept the result file name as fourth
27353         argument.
27354         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27355         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27356
27357 2008-11-10  Bruno Haible  <bruno@clisp.org>
27358
27359         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27360         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27361         as autoconf-substituted macros.
27362         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27363         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27364         gl_NETDB_H_DEFAULTS. Set these variables.
27365         * modules/netdb (Makefile.am): Substitute these variables.
27366
27367 2008-11-10  Eric Blake  <ebb9@byu.net>
27368
27369         standards.texi: include correct file for FDL 1.3
27370         * doc/standards.texi (GNU Free Documentation License): Change
27371         include file to pull in FDL 1.3, not 1.2.
27372
27373         fdl.texi: revert accidental change to license
27374         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27375
27376 2008-11-10  Bruno Haible  <bruno@clisp.org>
27377
27378         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27379         cross-compiling guesses also when the native compile gives no result.
27380
27381 2008-11-10  Bruno Haible  <bruno@clisp.org>
27382
27383         * lib/spawni.c (__spawni): Force variable into the stack.
27384
27385 2008-11-10  Bruno Haible  <bruno@clisp.org>
27386
27387         Add support for Haiku.
27388         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27389         glibc and BeOS, but also on Haiku.
27390         * lib/fpurge.c (fpurge): Likewise.
27391         * lib/freadable.c (freadable): Likewise.
27392         * lib/freadahead.c (freadahead): Likewise.
27393         * lib/freading.c (freading): Likewise.
27394         * lib/freadptr.c (freadptr): Likewise.
27395         * lib/freadseek.c (freadptrinc): Likewise.
27396         * lib/fseeko.c (rpl_fseeko): Likewise.
27397         * lib/fseterr.c (fseterr): Likewise.
27398         * lib/fwritable.c (fwritable): Likewise.
27399         * lib/fwriting.c (fwriting): Likewise.
27400         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27401
27402 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27403
27404         * lib/config.charset: Treat Haiku like BeOS.
27405
27406 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27407
27408         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27409         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27410
27411 2008-11-08  Bruno Haible  <bruno@clisp.org>
27412
27413         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27414         AC_CACHE_CHECK.
27415
27416 2008-11-08  Bruno Haible  <bruno@clisp.org>
27417
27418         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27419
27420 2008-11-08  Bruno Haible  <bruno@clisp.org>
27421
27422         * tests/test-select-fd.c: New file.
27423         * tests/test-select-in.sh: New file.
27424         * tests/test-select-out.sh: New file.
27425         * tests/test-select-stdin.c: New file.
27426         * modules/select-tests (Files): Add the new files.
27427         (Depends-on): Add gettimeofday.
27428         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27429         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27430         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27431
27432 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27433             Bruno Haible  <bruno@clisp.org>
27434
27435         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27436
27437 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27438
27439         * build-aux/pmccabe2html: Added support for C++ source files.
27440
27441 2008-11-05  Ben Pfaff  <blp@gnu.org>
27442
27443         Fix lib/close.c build on Windows.
27444         * modules/close (Files): Add lib/w32sock.h.
27445
27446 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27447
27448         Accept Bison's NEWS format.
27449         * build-aux/announce-gen (print_news_deltas): Tweak
27450         $re_prefix.
27451
27452 2008-11-04  Bruno Haible  <bruno@clisp.org>
27453
27454         * modules/random_r (Maintainer): Add glibc.
27455
27456 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27457
27458         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27459         by karl@freefriends.org (Karl Berry).
27460         * doc/alloca.texi: Likewise.
27461         * doc/c-ctype.texi: Likewise.
27462         * doc/c-strcase.texi: Likewise.
27463         * doc/c-strcaseeq.texi: Likewise.
27464         * doc/c-strcasestr.texi: Likewise.
27465         * doc/c-strstr.texi: Likewise.
27466         * doc/c-strtod.texi: Likewise.
27467         * doc/c-strtold.texi: Likewise.
27468         * doc/ctime.texi: Likewise.
27469         * doc/error.texi: Likewise.
27470         * doc/fdl.texi: Likewise.
27471         * doc/gcd.texi: Likewise.
27472         * doc/getdate.texi: Likewise.
27473         * doc/gnulib-intro.texi: Likewise.
27474         * doc/gnulib-tool.texi: Likewise.
27475         * doc/gnulib.texi: Likewise.
27476         * doc/inet_ntoa.texi: Likewise.
27477         * doc/maintain.texi: Likewise.
27478         * doc/make-stds.texi: Likewise.
27479         * doc/quote.texi: Likewise.
27480         * doc/regexprops-generic.texi: Likewise.
27481         * doc/standards.texi: Likewise.
27482         * doc/verify.texi: Likewise.
27483         * doc/visibility.texi: Likewise.
27484         * doc/gnulib.texi (GNU Free Documentation License): Include
27485         fdl-1.3.texi instead of fdl.texi.
27486
27487 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27488
27489         * doc/fdl-1.3.texi: New file, from
27490         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27491         * modules/fdl-1.3: Add.
27492         * MODULES.html.sh: Add fdl-1.3.
27493
27494 2008-11-03  Bruno Haible  <bruno@clisp.org>
27495
27496         Make determination of absolute name of header file work with AIX xlc.
27497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27498         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27499         preprocessing.
27500         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27501         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27502
27503 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27504
27505         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27506         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27507         <ludo@gnu.org>.
27508
27509 2008-11-02  Bruno Haible  <bruno@clisp.org>
27510
27511         Mark 'strpbrk' obsolete.
27512         * modules/strpbrk (Status, Notice): New sections.
27513         * modules/strtok_r (Depends-on): Add strpbrk.
27514
27515 2008-11-02  Bruno Haible  <bruno@clisp.org>
27516
27517         Mark 'strdup' obsolete.
27518         * modules/strdup (Status, Notice): New sections.
27519         * modules/findprog (Depends-on): Add strdup.
27520         * modules/getaddrinfo (Depends-on): Likewise.
27521         * modules/localename (Depends-on): Likewise.
27522         * modules/relocatable-lib (Depends-on): Likewise.
27523         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27524         * modules/relocatable-prog (Depends-on): Likewise.
27525         * modules/trim (Depends-on): Likewise.
27526         * modules/unictype/gen-ctype (Depends-on): Likewise.
27527         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27528
27529 2008-11-02  Bruno Haible  <bruno@clisp.org>
27530
27531         Mark 'strcspn' obsolete.
27532         * modules/strcspn (Status, Notice): New sections.
27533
27534 2008-11-02  Bruno Haible  <bruno@clisp.org>
27535
27536         Mark 'rmdir' obsolete.
27537         * modules/rmdir (Status, Notice): New sections.
27538         * modules/clean-temp (Depends-on): Add rmdir.
27539         * modules/openat (Depends-on): Likewise.
27540
27541 2008-11-02  Bruno Haible  <bruno@clisp.org>
27542
27543         Mark 'raise' obsolete.
27544         * modules/raise (Status, Notice): New sections.
27545         (Include): Specify <signal.h>.
27546         * modules/stdio (Depends-on): Add raise.
27547         * modules/write (Depends-on): Likewise.
27548
27549 2008-11-02  Bruno Haible  <bruno@clisp.org>
27550
27551         Mark 'memset' obsolete.
27552         * modules/memset (Status, Notice): New sections.
27553
27554 2008-11-02  Bruno Haible  <bruno@clisp.org>
27555
27556         Mark 'memmove' obsolete.
27557         * modules/memmove (Status, Notice): New sections.
27558         * modules/argp (Depends-on): Add memmove.
27559         * modules/argz (Depends-on): Likewise.
27560         * modules/canonicalize (Depends-on): Likewise.
27561         * modules/canonicalize-lgpl (Depends-on): Likewise.
27562         * modules/fts (Depends-on): Likewise.
27563         * modules/getcwd (Depends-on): Likewise.
27564         * modules/human (Depends-on): Likewise.
27565         * modules/regex (Depends-on): Likewise.
27566         * modules/striconveh (Depends-on): Likewise.
27567         * modules/trim (Depends-on): Likewise.
27568         * modules/unistr/u8-move (Depends-on): Likewise.
27569         * modules/unistr/u16-move (Depends-on): Likewise.
27570         * modules/unistr/u32-move (Depends-on): Likewise.
27571
27572 2008-11-02  Bruno Haible  <bruno@clisp.org>
27573
27574         Mark 'memcpy' obsolete.
27575         * modules/memcpy (Status, Notice): New sections.
27576
27577 2008-11-02  Bruno Haible  <bruno@clisp.org>
27578
27579         Mark 'memcmp' obsolete.
27580         * modules/memcmp (Status, Notice): New sections.
27581         * modules/argmatch (Depends-on): Add memchr.
27582         * modules/backupfile (Depends-on): Likewise.
27583         * modules/c-strcasestr (Depends-on): Likewise.
27584         * modules/crypto/des (Depends-on): Likewise.
27585         * modules/csharpcomp (Depends-on): Likewise.
27586         * modules/fnmatch (Depends-on): Likewise.
27587         * modules/git-merge-changelog (Depends-on): Likewise.
27588         * modules/isnand (Depends-on): Likewise.
27589         * modules/isnand-nolibm (Depends-on): Likewise.
27590         * modules/isnanf (Depends-on): Likewise.
27591         * modules/isnanf-nolibm (Depends-on): Likewise.
27592         * modules/isnanl (Depends-on): Likewise.
27593         * modules/isnanl-nolibm (Depends-on): Likewise.
27594         * modules/mbchar (Depends-on): Likewise.
27595         * modules/memcoll (Depends-on): Likewise.
27596         * modules/quotearg (Depends-on): Likewise.
27597         * modules/regex (Depends-on): Likewise.
27598         * modules/relocatable-prog (Depends-on): Likewise.
27599         * modules/same (Depends-on): Likewise.
27600         * modules/signbit (Depends-on): Likewise.
27601         * modules/strcasestr-simple (Depends-on): Likewise.
27602         * modules/unictype/gen-ctype (Depends-on): Likewise.
27603         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27604         * modules/uniname/uniname (Depends-on): Likewise.
27605         * modules/unistr/u8-cmp (Depends-on): Likewise.
27606
27607 2008-11-02  Bruno Haible  <bruno@clisp.org>
27608
27609         Mark 'memchr' obsolete.
27610         * modules/memchr (Status, Notice): New sections.
27611         * modules/argp (Depends-on): Add memchr.
27612         * modules/base64 (Depends-on): Likewise.
27613         * modules/c-strcasestr (Depends-on): Likewise.
27614         * modules/chdir-long (Depends-on): Likewise.
27615         * modules/fnmatch (Depends-on): Likewise.
27616         * modules/getsubopt (Depends-on): Likewise.
27617         * modules/git-merge-changelog (Depends-on): Likewise.
27618         * modules/glob (Depends-on): Likewise.
27619         * modules/strcasestr-simple (Depends-on): Likewise.
27620         * modules/strnlen (Depends-on): Likewise.
27621
27622 2008-11-02  Bruno Haible  <bruno@clisp.org>
27623
27624         Mark 'atexit' obsolete.
27625         * modules/atexit (Status, Notice): New sections.
27626         * modules/chdir-long (Depends-on): Add atexit.
27627         * modules/wait-process (Depends-on): Likewise.
27628
27629 2008-11-02  Bruno Haible  <bruno@clisp.org>
27630
27631         * gnulib-tool: New option --with-obsolete.
27632         (func_usage): Document it.
27633         (func_modules_transitive_closure): Drop obsolete dependencies if
27634         incobsolete is not true.
27635         (func_import): Read and save the incobsolete variable to the cache.
27636
27637 2008-11-02  Bruno Haible  <bruno@clisp.org>
27638
27639         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27640         * gnulib-tool: New option --extract-status.
27641         (func_usage): Document it.
27642         (sed_extract_prog): Recognize it.
27643         (func_get_status): New function.
27644
27645 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27646
27647         * modules/sockets (License): Change from LGPL to LGPLv2+.
27648
27649 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27650
27651         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27652
27653 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27654
27655         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27656         Mention times and sys_times.
27657         * modules/sys_times, modules/sys_times-tests: New modules.
27658         * modules/times, modules/times-tests: Likewise
27659         * m4/sys_times_h.m4: New file.
27660         * lib/sys_times.in.h: Likewise
27661         * lib/times.c: Likewise.
27662         * tests/test-sys_times.c: Likewise.
27663         * tests/test-times.c: Likewise.
27664         * doc/posix-headers/sys_times.texi: Update.
27665         * doc/posix-functions/times.texi: Update.
27666
27667 2008-10-28  Jim Meyering  <meyering@redhat.com>
27668
27669         * modules/tempname (Depends-on): Add lstat.
27670
27671         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27672
27673 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27674
27675         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27676         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27677         using idiom used elsewhere in gnulib.
27678
27679 2008-10-27  Jim Meyering  <meyering@redhat.com>
27680
27681         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27682
27683 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27684
27685         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27686         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27687         programs.
27688         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27689
27690 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27691
27692         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27693
27694 2008-10-27  Bruno Haible  <bruno@clisp.org>
27695
27696         * tests/test-lstat.c: Include <stdio.h>.
27697
27698 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27699
27700         * modules/lstat-tests: New module.
27701         * tests/test-lstat.c: New file.
27702
27703 2008-10-26  Jim Meyering  <meyering@redhat.com>
27704
27705         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27706
27707 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27708             Bruno Haible  <bruno@clisp.org>
27709
27710         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27711         * modules/configmake (Include): Add a note that the include must come
27712         after all system headers.
27713         * lib/javaversion.c: Include configmake.h after all other includes.
27714
27715 2008-10-26  Bruno Haible  <bruno@clisp.org>
27716
27717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27718         HAVE_STRUCT_RANDOM_DATA to 1.
27719         (gl_STDLIB_H): Simplify.
27720
27721 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27722
27723         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27724         substitute HAVE_STRUCT_RANDOM_DATA.
27725         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27726         random_data.
27727         * modules/stdlib (Makefile.am): Substitute
27728         HAVE_STRUCT_RANDOM_DATA.
27729
27730 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27731
27732         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27733         * doc/gnulib-intro.texi (Copyright): Likewise.
27734
27735 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27736
27737         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27738         findings.
27739
27740 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27741             Bruno Haible  <bruno@clisp.org>
27742
27743         * lib/unistd.in.h: Include <winsock2.h>.
27744         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27745         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27746         Provide dummy declarations.
27747         (gethostname): Override.
27748         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27750         gl_PREREQ_SYS_H_WINSOCK2.
27751         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27752         * doc/posix-functions/gethostname.texi: More details.
27753
27754 2008-10-25  Bruno Haible  <bruno@clisp.org>
27755
27756         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27757         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27758         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27759
27760         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27761         here ...
27762         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27763         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27764         gl_UNISTD_H_DEFAULTS.
27765
27766 2008-10-25  Eric Blake  <ebb9@byu.net>
27767
27768         signbit: avoid spurious compiler failure
27769         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27770         declarations inside function.
27771
27772 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27773             Bruno Haible  <bruno@clisp.org>
27774
27775         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27776         * modules/random_r (Depends-on): Add stdint.
27777
27778 2008-10-24  Bruno Haible  <bruno@clisp.org>
27779
27780         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27781         Eggert.
27782         * modules/strerror (License): Likewise.
27783
27784 2008-10-24  Jim Meyering  <meyering@redhat.com>
27785
27786         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27787         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27788
27789 2008-10-24  Eric Blake  <ebb9@byu.net>
27790
27791         getgroups: fix compilation when getgroups is available
27792         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27793         but with <config.h> override of getgroups disabled.
27794
27795 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27796
27797         * doc/gnulib.texi (Header files): Add note about C++ problems.
27798         Explained by Bruno Haible <bruno@clisp.org>.
27799
27800 2008-10-23  Bruno Haible  <bruno@clisp.org>
27801
27802         Define a dummy SA_NODEFER macro on Interix.
27803         * lib/signal.in.h (SA_NODEFER): Define fallback.
27804         Reported by Aleksey Cheusov <cheusov@tut.by> via
27805         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27806
27807 2008-10-23  Bruno Haible  <bruno@clisp.org>
27808
27809         * modules/freadahead (License): Change to LGPLv2+.
27810         Suggested by Simon Josefsson.
27811
27812 2008-10-23  Jim Meyering  <meyering@redhat.com>
27813
27814         random_r: new module
27815         * modules/random_r: New file.
27816         * m4/random_r.m4: New file.
27817         * lib/random_r.c: New file, from glibc.
27818         * modules/random_r-tests: New file.
27819         * tests/test-random_r.c: New file.
27820         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27821          Declare.
27822         (RAND_MAX): Define.
27823         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27824         * modules/stdlib: Substitute them, too.
27825         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27826         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27827         * doc/glibc-functions/random_r.texi: Likewise.
27828         * doc/glibc-functions/setstate_r.texi: Likewise.
27829         * doc/glibc-functions/srandom_r.texi: Likewise.
27830         * config/srclist.txt: Mention it.
27831
27832 2008-10-23  David Lutterkort  <lutter@redhat.com>
27833
27834         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27835         link requirement
27836
27837 2008-10-23  Jim Meyering  <meyering@redhat.com>
27838
27839         selinux-h: mark parameters of stub functions as intentionally unused
27840         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27841         * lib/se-context.in.h: Likewise.
27842
27843 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27844
27845         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27846
27847 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27848
27849         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27850
27851 2008-10-22  Eric Blake  <ebb9@byu.net>
27852
27853         glthread/thread: avoid compiler warning
27854         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27855         Add unreachable abort to silence compiler.
27856
27857 2008-10-22  Eric Blake  <ebb9@byu.net>
27858
27859         netdb: also supply struct addrinfo for cygwin 1.5.x
27860         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27861         older cygwin.
27862         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27863         cygwin.
27864         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27865
27866 2008-10-22  Bruno Haible  <bruno@clisp.org>
27867
27868         * users.txt: Update entry about pspp.
27869
27870 2008-10-21  Bruno Haible  <bruno@clisp.org>
27871
27872         Simplification.
27873         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27874         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27875
27876         Simplification.
27877         * lib/ioctl.c (ioctl): Don't undefine.
27878         * lib/socket.c (socket): Don't undefine.
27879
27880         Remove unused module indicator macros.
27881         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27882         GNULIB_$1 as a C macro.
27883
27884         * doc/posix-functions/close.texi: Undo last change.
27885         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27886         Windows platforms.
27887
27888 2008-10-21  Bruno Haible  <bruno@clisp.org>
27889
27890         Add gethostname() declaration to <unistd.h>.
27891         * lib/unistd.in.h (gethostname): New declaration.
27892         * lib/gethostname.c: Include <unistd.h>.
27893         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27894         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27896         and HAVE_GETHOSTNAME.
27897         * modules/gethostname (Depends-on): Add unistd.
27898         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27899         (Include): Specify <unistd.h>.
27900         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27901         HAVE_GETHOSTNAME.
27902         * tests/test-gethostname.c: Include <unistd.h> first.
27903
27904 2008-10-21  Bruno Haible  <bruno@clisp.org>
27905
27906         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27907         * modules/select-tests (Depends-on): Likewise.
27908         Reported by Simon Josefsson.
27909
27910 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27911
27912         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27913         * lib/accept.c: New file, based on winsock.c.
27914         * lib/bind.c: New file, based on winsock.c.
27915         * lib/connect.c: New file, based on winsock.c.
27916         * lib/getpeername.c: New file, based on winsock.c.
27917         * lib/getsockname.c: New file, based on winsock.c.
27918         * lib/getsockopt.c: New file, based on winsock.c.
27919         * lib/ioctl.c: New file, based on winsock.c.
27920         * lib/listen.c: New file, based on winsock.c.
27921         * lib/recv.c: New file, based on winsock.c.
27922         * lib/recvfrom.c: New file, based on winsock.c.
27923         * lib/send.c: New file, based on winsock.c.
27924         * lib/sendto.c: New file, based on winsock.c.
27925         * lib/setsockopt.c: New file, based on winsock.c.
27926         * lib/shutdown.c: New file, based on winsock.c.
27927         * lib/socket.c: New file, based on winsock.c.
27928         * lib/w32sock.h: New file, based on winsock.c.
27929         * lib/winsock.c: Remove file.
27930         * modules/accept: Likewise.
27931         * modules/bind: Likewise.
27932         * modules/connect: Likewise.
27933         * modules/getpeername: Likewise.
27934         * modules/getsockname: Likewise.
27935         * modules/getsockopt: Likewise.
27936         * modules/ioctl: Likewise.
27937         * modules/listen: Likewise.
27938         * modules/recv: Likewise.
27939         * modules/recvfrom: Likewise.
27940         * modules/send: Likewise.
27941         * modules/sendto: Likewise.
27942         * modules/setsockopt: Likewise.
27943         * modules/shutdown: Likewise.
27944         * modules/socket: Use socket.c instead of winsock.c.
27945         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27946         * doc/posix-functions/accept.texi: Doc fix.
27947         * doc/posix-functions/bind.texi: Doc fix.
27948         * doc/posix-functions/close.texi: Doc fix.
27949         * doc/posix-functions/connect.texi: Doc fix.
27950         * doc/posix-functions/getpeername.texi: Doc fix.
27951         * doc/posix-functions/getsockname.texi: Doc fix.
27952         * doc/posix-functions/getsockopt.texi: Doc fix.
27953         * doc/posix-functions/ioctl.texi: Doc fix.
27954         * doc/posix-functions/listen.texi: Doc fix.
27955         * doc/posix-functions/recv.texi: Doc fix.
27956         * doc/posix-functions/recvfrom.texi: Doc fix.
27957         * doc/posix-functions/send.texi: Doc fix.
27958         * doc/posix-functions/sendto.texi: Doc fix.
27959         * doc/posix-functions/setsockopt.texi: Doc fix.
27960         * doc/posix-functions/shutdown.texi: Doc fix.
27961         * doc/posix-functions/socket.texi: Doc fix.
27962
27963 2008-10-20  Bruno Haible  <bruno@clisp.org>
27964
27965         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27966         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27967         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27968         as an alias for SIGABRT.
27969         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27970         (sigaction): Map it to SIGABRT.
27971         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27972
27973 2008-10-20  Bruno Haible  <bruno@clisp.org>
27974
27975         * lib/fts.c: Don't include lstat.h.
27976         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27977
27978         Move the lstat() declaration to <sys/stat.h>.
27979         * lib/lstat.h: Remove file.
27980         * lib/sys_stat.in.h: Add special invocation convention.
27981         (lstat): New declaration.
27982         * lib/lstat.c (orig_lstat): New function.
27983         (rpl_lstat): Use orig_lstat instead of lstat.
27984         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27985         AC_C_INLINE. Set REPLACE_LSTAT.
27986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27987         and REPLACE_LSTAT.
27988         * modules/lstat (Files): Remove lib/lstat.h.
27989         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27990         (Include): Specify <sys/stat.h> instead of lstat.h.
27991         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27992         REPLACE_LSTAT.
27993         * NEWS: Mention the change.
27994
27995 2008-10-20  Bruno Haible  <bruno@clisp.org>
27996
27997         * modules/posix_spawn-tests: New file.
27998         * tests/test-posix_spawn3.c: New file.
27999
28000 2008-10-20  Bruno Haible  <bruno@clisp.org>
28001
28002         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
28003         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28004         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
28005         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28006         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
28007
28008 2008-10-20  Bruno Haible  <bruno@clisp.org>
28009
28010         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
28011         of posix_spawn on AIX 5.3.
28012
28013 2008-10-20  Bruno Haible  <bruno@clisp.org>
28014
28015         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
28016
28017 2008-10-20  Bruno Haible  <bruno@clisp.org>
28018
28019         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
28020         of AC_LANG_PROGRAM.
28021
28022 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28023
28024         * lib/netdb.in.h: Don't define GNU specific constants until they
28025         are supported or needed.  Reported by Bruno Haible
28026         <bruno@clisp.org>.
28027
28028 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28029
28030         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
28031
28032 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28033
28034         * lib/getaddrinfo.h: Remove file.
28035         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
28036         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
28037         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
28038         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
28039         * modules/netdb: Substitute GNULIB_GETADDRINFO.
28040         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
28041         * tests/test-getaddrinfo.c: Likewise.
28042         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
28043         * NEWS: Mention change.
28044
28045 2008-10-19  Bruno Haible  <bruno@clisp.org>
28046
28047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
28048
28049 2008-10-19  Bruno Haible  <bruno@clisp.org>
28050
28051         * lib/wait-process.c: Include simply <sys/wait.h>.
28052         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
28053         WIFSTOPPED): Remove fallback definitions.
28054         * modules/wait-process (Depends-on): Add sys_wait.
28055
28056         New module 'sys_wait'.
28057         * modules/sys_wait: New file.
28058         * lib/sys_wait.in.h: New file, partially copied from
28059         lib/wait-process.c.
28060         * m4/sys_wait_h.m4: New file.
28061         * doc/posix-headers/sys_wait.texi: Mention the new module.
28062
28063 2008-10-19  Bruno Haible  <bruno@clisp.org>
28064
28065         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
28066
28067 2008-10-19  Bruno Haible  <bruno@clisp.org>
28068
28069         Assume that waitpid() fills an 'int' status, not a 'union wait'.
28070         * lib/wait-process.c (WAIT_T): Remove type.
28071         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
28072         (wait_subprocess): Update.
28073
28074 2008-10-19  Bruno Haible  <bruno@clisp.org>
28075
28076         New module 'atoll'.
28077         * modules/atoll: New file.
28078         * lib/stdlib.in.h (atoll): New declaration.
28079         * lib/atoll.c: New file, from glibc with modifications.
28080         * m4/atoll.m4: New file.
28081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
28082         HAVE_ATOLL.
28083         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
28084         * doc/posix-functions/atoll.texi: Mention the new module.
28085
28086 2008-10-19  Bruno Haible  <bruno@clisp.org>
28087
28088         Add strtoull() declaration to <stdlib.h>.
28089         * lib/stdlib.in.h (strtoull): New declaration.
28090         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28091         Set HAVE_STRTOULL.
28092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
28093         HAVE_STRTOULL.
28094         * modules/strtoull (Depends-on): Add stdlib.
28095         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28096         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
28097         HAVE_STRTOULL.
28098
28099 2008-10-19  Bruno Haible  <bruno@clisp.org>
28100
28101         Add strtoll() declaration to <stdlib.h>.
28102         * lib/stdlib.in.h (strtoll): New declaration.
28103         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28104         Set HAVE_STRTOLL.
28105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
28106         HAVE_STRTOLL.
28107         * modules/strtoll (Depends-on): Add stdlib.
28108         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28109         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
28110
28111 2008-10-19  Bruno Haible  <bruno@clisp.org>
28112
28113         * modules/bcopy (Depends-on): Add strings.
28114         (Include): Specify <strings.h>.
28115
28116 2008-10-19  Bruno Haible  <bruno@clisp.org>
28117
28118         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28119
28120 2008-10-19  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28123         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28124         mingw.
28125
28126 2008-10-19  Bruno Haible  <bruno@clisp.org>
28127
28128         * lib/atanl.c: Don't include isnanl.h.
28129         * lib/cosl.c: Likewise.
28130         * lib/ldexpl.c: Likewise.
28131         * lib/logl.c: Likewise.
28132         * lib/sinl.c: Likewise.
28133         * lib/sqrtl.c: Likewise.
28134         * lib/tanl.c: Likewise.
28135
28136         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28137         * lib/isnanf.h: Remove file.
28138         * lib/isnand.h: Remove file.
28139         * lib/isnanl.h: Remove file.
28140         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28141         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28142         macros.
28143         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28144         HAVE_ISNANF, don't define it as a C macro.
28145         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28146         HAVE_ISNAND, don't define it as a C macro.
28147         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28148         HAVE_ISNANL, don't define it as a C macro.
28149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28150         HAVE_ISNAN[FDL].
28151         * modules/isnanf (Files): Remove lib/isnanf.h.
28152         (Depends-on): Add math.
28153         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28154         (Include): Specify <math.h> instead of isnanf.h.
28155         * modules/isnand (Files): Remove lib/isnand.h.
28156         (Depends-on): Add math.
28157         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28158         (Include): Specify <math.h> instead of isnand.h.
28159         * modules/isnanl (Files): Remove lib/isnanl.h.
28160         (Depends-on): Add math.
28161         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28162         (Include): Specify <math.h> instead of isnanl.h.
28163         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28164         HAVE_ISNAN[FDL].
28165         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28166         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28167         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28168         * NEWS: Mention the change.
28169
28170 2008-10-18  Bruno Haible  <bruno@clisp.org>
28171
28172         Add getusershell(), setusershell(), endusershell() declarations to
28173         <unistd.h>.
28174         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28175         declarations.
28176         * lib/getusershell.c: Include unistd.h.
28177         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28178         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28179         HAVE_GETUSERSHELL.
28180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28181         and HAVE_GETUSERSHELL.
28182         * modules/getusershell (Depends-on): Add unistd, extensions.
28183         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28184         (Include): Specify <unistd.h>.
28185         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28186         HAVE_GETUSERSHELL.
28187
28188 2008-10-18  Bruno Haible  <bruno@clisp.org>
28189
28190         Add a getloadavg() declaration to <stdlib.h>.
28191         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28192         getloadavg declaration.
28193         (getloadavg): New declaration.
28194         * lib/getloadavg.c: Include <stdlib.h> first.
28195         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28196         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28197         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28199         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28200         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28201         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28202         (Include): Specify <stdlib.h>.
28203         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28204         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28205
28206 2008-10-18  Bruno Haible  <bruno@clisp.org>
28207
28208         * lib/dirchownmod.c: Don't include lchmod.h.
28209
28210         Move the lchmod() declaration to <sys/stat.h>.
28211         * lib/lchmod.h: Remove file.
28212         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28213         (lchmod): New declaration, moved here from lib/lchown.h.
28214         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28215         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28216         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28217         and HAVE_LCHMOD.
28218         * modules/lchmod (Files): Remove lib/lchmod.h.
28219         (Depends-on): Add sys_stat, extensions.
28220         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28221         (Include): Specify <sys/stat.h> instead of lchmod.h.
28222         * modules/sys_stat (Depends-on): Add link-warning.
28223         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28224         definition of GL_LINK_WARNING.
28225         * NEWS: Mention the change.
28226
28227 2008-10-18  Bruno Haible  <bruno@clisp.org>
28228
28229         * lib/fchdir.c: Don't include dirfd.h.
28230         * lib/fts.c: Likewise.
28231         * lib/getcwd.c: Likewise.
28232         * lib/glob.c: Likewise.
28233
28234         Move the dirfd() declaration to <dirent.h>.
28235         * lib/dirfd.h: Remove file.
28236         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28237         (dirfd): New declaration.
28238         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28239         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28240         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28241         HAVE_DECL_DIRFD.
28242         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28243         HAVE_DECL_DIRFD.
28244         * modules/dirfd (Files): Remove lib/dirfd.h.
28245         (Depends-on): Add dirent, extensions.
28246         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28247         (Include): Specify <dirent.h> instead of dirfd.h.
28248         * modules/dirent (Depends-on): Add link-warning.
28249         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28250         definition of GL_LINK_WARNING.
28251         * NEWS: Mention the change.
28252
28253 2008-10-18  Bruno Haible  <bruno@clisp.org>
28254
28255         Move the euidaccess() declaration to <unistd.h>.
28256         * lib/euidaccess.h: Remove file.
28257         * lib/unistd.in.h (euidaccess): New declaration.
28258         * lib/euidaccess.c: Don't include euidaccess.h.
28259         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28260         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28262         and HAVE_EUIDACCESS.
28263         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28264         (Depends-on): Add unistd.
28265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28266         (Include): Specify <unistd.h> instead of euidaccess.h.
28267         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28268         HAVE_EUIDACCESS.
28269         * NEWS: Mention the change.
28270
28271 2008-10-18  Bruno Haible  <bruno@clisp.org>
28272
28273         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28274
28275         Move the getdomainname() declaration to <unistd.h>.
28276         * lib/getdomainname.h: Remove file.
28277         * lib/unistd.in.h (getdomainname): New declaration.
28278         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28279         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28280         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28281         HAVE_GETDOMAINNAME.
28282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28283         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28284         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28285         (Depends-on): Add unistd, extensions.
28286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28287         (Includes): Specify <unistd.h> instead of getdomainname.h.
28288         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28289         HAVE_GETDOMAINNAME.
28290         * NEWS: Mention the change.
28291
28292 2008-10-18  Bruno Haible  <bruno@clisp.org>
28293
28294         * modules/dirent: New file.
28295         * m4/dirent_h.m4: New file.
28296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28297         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28298         * modules/fchdir (Files): Remove lib/dirent.in.h.
28299         (Depends-on): Add dirent.
28300         (Makefile.am): Move rules to modules/dirent.
28301         * doc/posix-headers/dirent.texi: Mention the new module.
28302
28303 2008-10-18  Bruno Haible  <bruno@clisp.org>
28304
28305         Avoid -Wunused-parameter warnings in public gnulib header files.
28306         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28307         macro.
28308         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28309
28310 2008-10-18  Bruno Haible  <bruno@clisp.org>
28311
28312         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28313         * doc/glibc-functions/error.texi: Mention the module 'error'.
28314         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28315         * doc/glibc-functions/getdomainname.texi: Mention the module
28316         'getdomainname'.
28317         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28318         * doc/glibc-functions/getpagesize.texi: Mention the module
28319         'getpagesize'.
28320         * doc/glibc-functions/getusershell.texi: Mention the module
28321         'getusershell'.
28322         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28323         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28324         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28325         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28326         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28327         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28328         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28329         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28330         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28331         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28332         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28333         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28334         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28335         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28336
28337 2008-10-17  Bruno Haible  <bruno@clisp.org>
28338
28339         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28340         HP-UX and IRIX, use -0.0L.
28341         * tests/test-ceill.c (minus_zero): Likewise.
28342         * tests/test-floorl.c (minus_zero): Likewise.
28343         * tests/test-frexpl.c (minus_zero): Likewise.
28344         * tests/test-isnan.c (minus_zerol): Likewise.
28345         * tests/test-isnanl.h (minus_zero): Likewise.
28346         * tests/test-ldexpl.c (minus_zero): Likewise.
28347         * tests/test-roundl.c (minus_zero): Likewise.
28348         * tests/test-signbit.c (minus_zerol): Likewise.
28349         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28350         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28351         * tests/test-truncl.c (minus_zero): Likewise.
28352         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28353         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28354         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28355         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28356
28357 2008-10-17  Bruno Haible  <bruno@clisp.org>
28358
28359         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28360         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28361         that it gets activated only for gcc >= 3.0.
28362         * lib/dirent.in.h: Likewise.
28363         * lib/errno.in.h: Likewise.
28364         * lib/fcntl.in.h: Likewise.
28365         * lib/float.in.h: Likewise.
28366         * lib/iconv.in.h: Likewise.
28367         * lib/inttypes.in.h: Likewise.
28368         * lib/locale.in.h: Likewise.
28369         * lib/math.in.h: Likewise.
28370         * lib/netdb.in.h: Likewise.
28371         * lib/netinet_in.in.h: Likewise.
28372         * lib/search.in.h: Likewise.
28373         * lib/signal.in.h: Likewise.
28374         * lib/spawn.in.h: Likewise.
28375         * lib/stdarg.in.h: Likewise.
28376         * lib/stdint.in.h: Likewise.
28377         * lib/stdio.in.h: Likewise.
28378         * lib/stdlib.in.h: Likewise.
28379         * lib/string.in.h: Likewise.
28380         * lib/strings.in.h: Likewise.
28381         * lib/sys_file.in.h: Likewise.
28382         * lib/sys_ioctl.in.h: Likewise.
28383         * lib/sys_select.in.h: Likewise.
28384         * lib/sys_socket.in.h: Likewise.
28385         * lib/sys_stat.in.h: Likewise.
28386         * lib/sys_time.in.h: Likewise.
28387         * lib/sysexits.in.h: Likewise.
28388         * lib/time.in.h: Likewise.
28389         * lib/unistd.in.h: Likewise.
28390         * lib/wchar.in.h: Likewise.
28391         * lib/wctype.in.h: Likewise.
28392         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28393
28394 2008-10-17  Jim Meyering  <meyering@redhat.com>
28395
28396         ignore-value: don't depend on inline module
28397         * modules/ignore-value (Depends-on): Remove 'inline'.
28398         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28399         Suggestion from Bruno Haible.
28400
28401 2008-10-17  Bruno Haible  <bruno@clisp.org>
28402
28403         New implementation of condition variables for Win32.
28404         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28405         (gl_linked_waitqueue_t): New type.
28406         (gl_cond_t): Use it.
28407         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28408         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28409         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28410         (glthread_cond_init_func, glthread_cond_wait_func,
28411         glthread_cond_timedwait_func, glthread_cond_signal_func,
28412         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28413         Reimplemented on the basis of gl_linked_waitqueue_t.
28414         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28415         gl_waitqueue_t.
28416         (gl_rwlock_t): Update.
28417         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28418
28419 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28420
28421         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28422         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28423
28424 2008-10-17  Jim Meyering  <meyering@redhat.com>
28425
28426         ignore-value: new module
28427         * modules/ignore-value: New file.
28428         * lib/ignore-value.h: New file.
28429         * MODULES.html.sh (Compiler warning management): New section,
28430         just for this module.  More to come.
28431
28432 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28433
28434         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28435         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28436         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28437
28438 2008-10-16  Jim Meyering  <meyering@redhat.com>
28439
28440         openat-die.c: avoid 'no previous prototype' warning
28441         * lib/openat-die.c: Include "openat.h".
28442         Reported by Reuben Thomas <rrt@sc3d.org>.
28443
28444 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28445
28446         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28447         * lib/netdb.in.h: Fix typo.
28448         Reported by Bruno Haible  <bruno@clisp.org>
28449
28450         * lib/netdb.in.h: Include sys/socket.h for platforms without
28451         netdb.h, to get structures like hostent on MinGW.
28452         * modules/netdb (Depends-on): Add sys_socket.
28453
28454 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28455
28456         * modules/netdb, modules/netdb-tests: New file.
28457         * m4/netdb_h.m4: New file.
28458         * lib/netdb.in.h: Add, currently just an empty file pending
28459         definitions.
28460         * tests/test-netdb.c: New file.
28461         * doc/posix-headers/netdb.texi: Mention that we replace it if
28462         needed.
28463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28464         netdb.
28465
28466 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28467
28468         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28469         with code.
28470
28471 2008-10-13  Bruno Haible  <bruno@clisp.org>
28472
28473         * lib/glthread/cond.c (glthread_cond_wait_func,
28474         glthread_cond_timedwait_func): Add a comment.
28475
28476 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28477
28478         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28479         * tests/test-select.c: Likewise,
28480
28481 2008-10-13  Bruno Haible  <bruno@clisp.org>
28482
28483         * lib/glthread/cond.c (glthread_cond_wait_func,
28484         glthread_cond_timedwait_func): Fix variable name.
28485         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28486
28487 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28488
28489         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28490         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28491         struct sockaddr.sa_len.
28492         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28493
28494 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28495
28496         * build-aux/pmccabe2html: Add css and css_url parameters.
28497
28498 2008-10-12  Bruno Haible  <bruno@clisp.org>
28499
28500         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28501         calling aclx_get.
28502         Reported by Rainer Tammer <tammer@tammer.net>.
28503
28504 2008-10-12  Bruno Haible  <bruno@clisp.org>
28505
28506         Use msvcrt aware primitives for creation/termination of Win32 threads.
28507         * lib/glthread/thread.c: Include <process.h>.
28508         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28509         (wrapper_func): Update signature.
28510         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28511
28512 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28513             Bruno Haible  <bruno@clisp.org>
28514
28515         Provide a Win32 implementation of the 'cond' module.
28516         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28517         * lib/glthread/cond.c (glthread_cond_init_func,
28518         glthread_cond_wait_func, glthread_cond_timedwait_func,
28519         glthread_cond_signal_func, glthread_cond_broadcast_func,
28520         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28521         * modules/cond (Dependencies): Add gettimeofday.
28522
28523 2008-10-11  Bruno Haible  <bruno@clisp.org>
28524
28525         Make sleep work on older versions of mingw.
28526         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28527         only whether it exists.
28528         * doc/posix-functions/sleep.texi: Mention the problem with older
28529         versions of mingw.
28530
28531 2008-10-11  Bruno Haible  <bruno@clisp.org>
28532
28533         New module 'shutdown'.
28534         * modules/shutdown: New file.
28535         * lib/sys_socket.in.h (shutdown): New declaration.
28536         * lib/winsock.c (shutdown): New function.
28537         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28538         GNULIB_SHUTDOWN.
28539         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28540         * doc/posix-functions/shutdown.texi: Document the new module.
28541
28542 2008-10-11  Jim Meyering  <meyering@redhat.com>
28543
28544         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28545
28546 2008-10-11  Bruno Haible  <bruno@clisp.org>
28547
28548         New module 'fclose'.
28549         * modules/fclose: New file.
28550         * lib/stdio.in.h (fclose): New declaration.
28551         * lib/fclose.c: New file.
28552         * m4/fclose.m4: New file.
28553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28554         REPLACE_FCLOSE.
28555         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28556         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28557         REPLACE_FCLOSE.
28558         * modules/close (Depends-on): fclose.
28559         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28560
28561 2008-10-11  Bruno Haible  <bruno@clisp.org>
28562
28563         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28564         set errno and don't call _close.
28565
28566 2008-10-10  Bruno Haible  <bruno@clisp.org>
28567
28568         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28569         ACL, not afterwards. Fixes test failure on Cygwin.
28570
28571 2008-10-09  Ben Pfaff  <blp@gnu.org>
28572
28573         * build-aux/announce-gen: Fix gnulib version related part of usage
28574         message.  Die with a useful error message if no tarballs are
28575         found.
28576
28577 2008-10-10  Jim Meyering  <meyering@redhat.com>
28578
28579         bootstrap: use git's --depth=N option only if it's supported
28580         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28581         recognize the --depth option.  Reported by Pádraig Brady.
28582
28583 2008-10-09  Bruno Haible  <bruno@clisp.org>
28584
28585         New module 'ioctl'.
28586         * modules/ioctl: New file.
28587         * lib/sys_socket.in.h (ioctl): Remove declaration.
28588         * lib/winsock.c: Include <sys/ioctl.h>.
28589         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28590         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28591         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28592         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28593         * doc/posix-functions/ioctl.texi: Mention the new module.
28594
28595 2008-10-09  Bruno Haible  <bruno@clisp.org>
28596
28597         New module 'sys_ioctl'.
28598         * lib/sys_ioctl.in.h: New file.
28599         * m4/sys_ioctl_h.m4: New file.
28600         * modules/sys_ioctl: New file.
28601         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28602
28603 2008-10-09  Bruno Haible  <bruno@clisp.org>
28604
28605         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28606         * lib/winsock.c: Include <stdarg.h>.
28607         (rpl_ioctl): Change to second argument 'int' and then varargs.
28608
28609 2008-10-09  Bruno Haible  <bruno@clisp.org>
28610
28611         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28612         when the sys_socket module is present and the system has <winsock2.h>.
28613
28614 2008-10-09  Bruno Haible  <bruno@clisp.org>
28615
28616         * doc/posix-functions/close.texi: Mention module 'close' instead of
28617         module 'sys_socket'.
28618
28619 2008-10-09  Bruno Haible  <bruno@clisp.org>
28620
28621         * doc/glibc-headers/sys_ioctl.texi: New file.
28622         * doc/gnulib.texi: Include it.
28623
28624 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28625             Bruno Haible  <bruno@clisp.org>
28626
28627         Combine the two replacements of 'close'.
28628         * lib/sys_socket.in.h (close): Define to a reminder to include
28629         <unistd.h>.
28630         (_gl_close_fd_maybe_socket): New declaration.
28631         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28632         * lib/winsock.c (close): Remove undefinition.
28633         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28634         needed for the gnulib module 'close'.
28635         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28636         define to an error symbol or to a warning, if suitable.
28637         * lib/close.c: Include <sys/socket.h>.
28638         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28639         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28640         UNISTD_H_HAVE_WINSOCK2_H.
28641         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28643         UNISTD_H_HAVE_WINSOCK2_H.
28644         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28645         (configure.ac): Set a module indicator.
28646         (Makefile.am): Substitute GNULIB_CLOSE.
28647         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28648         * modules/poll-tests (Depends-on): Add close.
28649         * modules/select-tests (Depends-on): Likewise.
28650
28651 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28652             Bruno Haible  <bruno@clisp.org>
28653
28654         New module 'close'.
28655         * modules/close: New file.
28656         * lib/unistd.in.h (close): Move declaration out of the
28657         FCHDIR_REPLACEMENT scope.
28658         (_gl_unregister_fd): New declaration.
28659         * lib/close.c: New file.
28660         * lib/fchdir.c (rpl_close): Remove function.
28661         * m4/close.m4: New file.
28662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28663         close.
28664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28665         REPLACE_CLOSE.
28666         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28667         REPLACE_CLOSE.
28668         * modules/fchdir (Depends-on): Add close.
28669
28670 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28671             Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/fcntl.in.h (open): Simplify conditionals.
28674         (_gl_register_fd): New declaration.
28675         * lib/fchdir.c (rpl_open): Remove function.
28676         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28677         also.
28678         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28680         open.
28681
28682 2008-10-09  Jim Meyering  <meyering@redhat.com>
28683
28684         GNUmakefile: use the more name-space-friendly "_version"
28685         * top/GNUmakefile (_dummy): Update.
28686         (_version): Rename from "version".
28687
28688 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28689             Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28692         rpl_close.
28693         (_gl_register_fd): New function, extracted from rpl_open.
28694         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28695         (rpl_open, rpl_opendir): Use _gl_register_fd.
28696
28697 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28698
28699         Fix organization of 'open' replacement.
28700         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28701         (gl_FUNC_OPEN): Use it.
28702         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28703
28704 2008-10-08  Bruno Haible  <bruno@clisp.org>
28705
28706         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28707
28708 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28709
28710         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28711         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28712         listen).
28713
28714 2008-10-08  Eric Blake  <ebb9@byu.net>
28715
28716         GNUmakefile: add 'make version' target
28717         * top/GNUmakefile (_curr-ver): Split version update rules...
28718         (version): ...into a target.
28719
28720 2008-10-07  Bruno Haible  <bruno@clisp.org>
28721
28722         Use a more portable replacement expression for -0.0L.
28723         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28724         instead of -0.0L. Fix m4 quotation.
28725
28726         * tests/test-signbit.c: Include <float.h>.
28727         (minus_zero): New variable.
28728         (test_signbitl): Use minus_zero instead of -zero.
28729         * modules/signbit-tests (Depends-on): Add float.
28730
28731         * tests/test-ceill.c: Include <float.h>.
28732         (zero): Remove variable.
28733         (minus_zero): New variable.
28734         (main): Use minus_zero instead of -zero.
28735         * modules/ceill-tests (Depends-on): Add float.
28736
28737         * tests/test-floorl.c: Include <float.h>.
28738         (zero): Remove variable.
28739         (minus_zero): New variable.
28740         (main): Use minus_zero instead of -zero.
28741         * modules/floorl-tests (Depends-on): Add float.
28742
28743         * tests/test-roundl.c: Include <float.h>.
28744         (zero): Remove variable.
28745         (minus_zero): New variable.
28746         (main): Use minus_zero instead of -zero.
28747         * modules/roundl-tests (Depends-on): Add float.
28748
28749         * tests/test-truncl.c: Include <float.h>.
28750         (zero): Remove variable.
28751         (minus_zero): New variable.
28752         (main): Use minus_zero instead of -zero.
28753         * modules/truncl-tests (Depends-on): Add float.
28754
28755         * tests/test-frexpl.c (zero): Remove variable.
28756         (minus_zero): New variable.
28757         (main): Use minus_zero instead of -zero.
28758         * modules/frexpl-tests (Depends-on): Add float.
28759
28760         * tests/test-isnan.c (zerol): Remove variable.
28761         (minus_zerol): New variable.
28762         (test_long_double): Use minus_zerol instead of -zerol.
28763         * modules/isnan-tests (Depends-on): Add float.
28764
28765         * tests/test-isnanl.h (zero): Remove variable.
28766         (minus_zero): New variable.
28767         (main): Use minus_zero instead of -zero.
28768         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28769         * modules/isnanl-tests (Depends-on): Add float.
28770
28771         * tests/test-ldexpl.c (zero): Remove variable.
28772         (minus_zero): New variable.
28773         (main): Use minus_zero instead of -zero.
28774         * modules/ldexpl-tests (Depends-on): Add float.
28775
28776         * tests/test-snprintf-posix.h (zerol): Remove variable.
28777         (minus_zerol): New variable.
28778         (test_function): Use minus_zerol instead of -zerol.
28779         * modules/snprintf-posix-tests (Depends-on): Add float.
28780         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28781
28782         * tests/test-sprintf-posix.h (zerol): Remove variable.
28783         (minus_zerol): New variable.
28784         (test_function): Use minus_zerol instead of -zerol.
28785         * modules/sprintf-posix-tests (Depends-on): Add float.
28786         * modules/vsprintf-posix-tests (Depends-on): Add float.
28787
28788         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28789         (minus_zerol): New variable.
28790         (test_function): Use minus_zerol instead of -zerol.
28791         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28792
28793         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28794         (minus_zerol): New variable.
28795         (test_function): Use minus_zerol instead of -zerol.
28796         * modules/vasprintf-posix-tests (Depends-on): Add float.
28797
28798 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28799
28800         * MODULES.html.sh (Support for building documentation): Mention
28801         pmccabe2html.  Sort entries.
28802
28803         Add pmccabe2html module, from gnupdf.
28804         * build-aux/pmccabe.css: New file.
28805         * build-aux/pmccabe2html: New file.
28806         * m4/pmccabe2html.m4: New file.
28807         * modules/pmccabe2html: New file.
28808
28809 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28810
28811         flock: new module
28812         * MODULES.html.sh: Add to list of modules.
28813         * lib/flock.c: flock implementation for Windows and Unix systems
28814         which have fcntl.
28815         * doc/glibc-functions/flock.texi: Update documentation.
28816         * lib/sys_file.in.h: <sys/file.h> header file.
28817         * m4/flock.m4: M4 macros.
28818         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28819         * modules/flock: flock module.
28820         * modules/flock-tests: flock tests module.
28821         * modules/sys_file: sys/file.h module.
28822         * tests/test-flock.c: test suite for flock.
28823
28824 2008-10-06  Jim Meyering  <meyering@redhat.com>
28825
28826         bootstrap: check for LT_INIT more portably still ;-)
28827         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28828         Spotted by Bruno Haible.
28829
28830 2008-10-06  Eric Blake  <ebb9@byu.net>
28831
28832         test-signbit: avoid tripping Irix cc bug on -0.0L
28833         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28834         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28835         entire testsuite consistent and avoids an Irix 6.2 bug.
28836
28837 2008-10-05  Bruno Haible  <bruno@clisp.org>
28838             Jim Meyering  <jim@meyering.net>
28839
28840         Add an option for ignoring EPIPE during close_stdout.
28841         * lib/closeout.h: Include <stdbool.h>.
28842         (close_stdout_set_ignore_EPIPE): New declaration.
28843         * lib/closeout.c: Include <stdbool.h>.
28844         (ignore_EPIPE): New variable.
28845         (close_stdout_set_ignore_EPIPE): New function.
28846         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28847         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28848         failure.
28849         * modules/closeout (Depends-on): Add stdbool.
28850
28851 2008-10-05  Bruno Haible  <bruno@clisp.org>
28852
28853         * modules/accept: New file.
28854         * modules/bind: New file.
28855         * modules/connect: New file.
28856         * modules/getpeername: New file.
28857         * modules/getsockname: New file.
28858         * modules/getsockopt: New file.
28859         * modules/listen: New file.
28860         * modules/recv: New file.
28861         * modules/recvfrom: New file.
28862         * modules/send: New file.
28863         * modules/sendto: New file.
28864         * modules/setsockopt: New file.
28865         * modules/socket: New file.
28866         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28867         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28868         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28869         the particular module is requested. Add a link warning when the
28870         particular module is not requested.
28871         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28872         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28873         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28874         the particular module is requested.
28875         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28876         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28877         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28878         * modules/sys_socket (Depends-on): Add link-warning.
28879         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28880         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28881         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28882         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28883         GL_LINK_WARNING.
28884         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28885         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28886         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28887         * doc/posix-functions/getpeername.texi: Mention the new module
28888         'getpeername'.
28889         * doc/posix-functions/getsockname.texi: Mention the new module
28890         'getsockname'.
28891         * doc/posix-functions/getsockopt.texi: Mention the new module
28892         'getsockopt'.
28893         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28894         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28895         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28896         * doc/posix-functions/send.texi: Mention the new module 'send'.
28897         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28898         * doc/posix-functions/setsockopt.texi: Mention the new module
28899         'setsockopt'.
28900         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28901         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28902         listen, connect, accept.
28903         * modules/select-tests (Depends-on): Likewise.
28904
28905 2008-10-05  Bruno Haible  <bruno@clisp.org>
28906
28907         * lib/winsock.c (strerror): Remove unused #undef.
28908         (rpl_close): Remove unused local variable.
28909
28910         * modules/sys_socket (Depends-on); Add errno.
28911
28912 2008-10-05  Bruno Haible  <bruno@clisp.org>
28913
28914         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28915         (select): Add a link warning when the 'select' module is not used.
28916         * modules/sys_select (Depends-on): Add link-warning.
28917         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28918         Suggested by Paolo Bonzini.
28919
28920 2008-10-05  Jim Meyering  <meyering@redhat.com>
28921
28922         bootstrap: check for LT_INIT more portably
28923         * build-aux/bootstrap: Avoid using grep -E, since it's not
28924         portable enough.  Suggestion from Bruno Haible.
28925
28926 2008-10-05  Bruno Haible  <bruno@clisp.org>
28927
28928         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28929         as being fixed by gnulib.
28930
28931 2008-10-05  Bruno Haible  <bruno@clisp.org>
28932
28933         * modules/select-tests: New file, mostly copied from
28934         modules/sys_select-tests.
28935         * tests/test-select.c: New file, mostly copied from
28936         tests/test-sys_select.c.
28937         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28938         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28939         (Makefile.am): Remove test_sys_select_LDADD.
28940
28941         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28942         to an undefined symbol, for an error message.
28943         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28944         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28945         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28946         winsock-select.c here.
28947         * modules/sys_select (Files): Remove lib/winsock-select.c.
28948         (Depends-on): Remove alloca.
28949         (Makefile.am): Substitute GNULIB_SELECT.
28950         * modules/select: New file.
28951         * doc/posix-functions/select.texi: Update.
28952
28953 2008-10-05  Bruno Haible  <bruno@clisp.org>
28954
28955         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28956         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28957         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28958         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28959         getdtablesize.
28960         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28961         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28962
28963 2008-10-05  Bruno Haible  <bruno@clisp.org>
28964
28965         * modules/getdtablesize-tests: New file.
28966         * tests/test-getdtablesize.c: New file.
28967
28968         New module 'getdtablesize'.
28969         * lib/unistd.in.h (getdtablesize): New declaration.
28970         * lib/getdtablesize.c: New file.
28971         * m4/getdtablesize.m4: New file.
28972         * modules/getdtablesize: New file.
28973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28974         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28975         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28976         HAVE_GETDTABLESIZE.
28977         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28978
28979 2008-10-05  Bruno Haible  <bruno@clisp.org>
28980
28981         * modules/sched (Makefile.am): Fix typo.
28982         Reported by Simon Josefsson.
28983
28984 2008-10-05  Jim Meyering  <meyering@redhat.com>
28985
28986         bootstrap: check for LT_INIT, too
28987         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28988         are deprecated.  Suggestion from Ralf Wildenhues.
28989
28990 2008-10-05  Bruno Haible  <bruno@clisp.org>
28991
28992         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28993         overriding them by ours.
28994         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28995
28996 2008-10-05  Jim Meyering  <meyering@redhat.com>
28997
28998         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28999         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
29000         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
29001
29002 2008-10-04  Bruno Haible  <bruno@clisp.org>
29003
29004         * modules/dup2 (License): Change to LGPLv2+.
29005         * modules/sleep (License): Likewise.
29006         * modules/perror (License): Likewise.
29007         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
29008         Blake.
29009         * modules/signal (License): Likewise.
29010         * modules/sigprocmask (License): Likewise.
29011         * modules/raise (License): Change to LGPLv2+, with approval by Jim
29012         Meyering.
29013
29014 2008-10-04  Bruno Haible  <bruno@clisp.org>
29015
29016         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
29017         Reported by Rainer Tammer <tammer@tammer.net>.
29018
29019 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
29020             Bruno Haible  <bruno@clisp.org>
29021
29022         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
29023         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
29024         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
29025
29026 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
29027
29028         filevercmp: new module
29029         * lib/filevercmp.h: New function filevercmp comparing version strings.
29030         * lib/filevercmp.c: Implementation of filevercmp function.
29031         * modules/filevercmp: Module metadata.
29032         * tests/test-filevercmp.c: Unit test for new module.
29033         * modules/filevercmp-tests: Unit test metadata.
29034         * MODULES.html.sh: Add filevercmp module.
29035
29036 2008-10-03  Bruno Haible  <bruno@clisp.org>
29037
29038         * lib/c-ctype.h: Add comment.
29039         Reported by Jim Meyering.
29040
29041 2008-10-02  Bruno Haible  <bruno@clisp.org>
29042
29043         * modules/posix_spawn-internal (Depends-on): Add 'open'.
29044
29045 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29046
29047         * build-aux/bootstrap: Allow renaming bootstrap, and change the
29048         name of bootstrap.conf accordingly.
29049
29050 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29051
29052         * build-aux/bootstrap: Install git-merge-changelog configuration
29053         items into .gitconfig if needed.
29054
29055 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29056
29057         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
29058         git repository, and initialize/update it accordingly.
29059
29060 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
29061
29062         * modules/fsync-tests: New file.
29063         * tests/test-fsync.c: New file.
29064
29065         New module 'fsync'.
29066         * lib/fsync.c: New file.
29067         * m4/fsync.m4: New file.
29068         * modules/fsync: New file.
29069         * lib/unistd.in.h (fsync): New declaration.
29070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
29071         GNULIB_FSYNC and HAVE_FSYNC.
29072         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
29073         * MODULES.html.sh (posix_functions): Add fsync.
29074         * doc/posix-functions/fsync.texi: Mention the new module.
29075
29076 2008-10-02  Jim Meyering  <meyering@redhat.com>
29077
29078         fts.c: sync with similar code from coreutils' remove.c
29079         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
29080         Guard also with "#if defined __linux__", since for now at least,
29081         this code is Linux-kernel-specific.
29082
29083 2008-10-02  Jim Meyering  <meyering@redhat.com>
29084
29085         fts: bug fixes
29086         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
29087         Include <sys/vfs.h>, not <sys/statfs.h>.
29088
29089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
29090         Include <sys/vfs.h>, not <sys/statfs.h>.
29091
29092 2008-10-01  Bruno Haible  <bruno@clisp.org>
29093
29094         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
29095         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
29096         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
29097         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
29098         * doc/posix-functions/posix_spawnp.texi: Likewise.
29099         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
29100         whether posix_spawn actually works.
29101         * m4/pipe.m4 (gl_PIPE): Likewise.
29102         * modules/execute (Files): Add m4/posix_spawn.m4.
29103         * modules/pipe (Files): Add m4/posix_spawn.m4.
29104         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
29105
29106 2008-10-01  Jim Meyering  <meyering@redhat.com>
29107
29108         remove trailing spaces
29109         * NEWS: Likewise.
29110         * lib/poll.c (poll): Likewise.
29111         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29112         * lib/winsock.c (rpl_close): Likewise.
29113         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
29114         * modules/yield: Likewise.
29115         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29116         * tests/test-sys_select.c (connect_to_socket): Likewise.
29117
29118         fts.c: adjust a new interface to be more generally useful
29119         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29120         (fts_build): Adjust caller.
29121
29122 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29123
29124         * modules/cond-tests: New file.
29125         * tests/test-cond.c: New file.
29126
29127 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29128             Bruno Haible  <bruno@clisp.org>
29129
29130         * modules/cond (Dependencies): Add errno, time.
29131         * lib/glthread/cond.h: Include <time.h>.
29132         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29133         across platforms.
29134
29135 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29136             Bruno Haible  <bruno@clisp.org>
29137
29138         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29139
29140 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29141             Bruno Haible  <bruno@clisp.org>
29142
29143         * modules/tls-tests (Depends-on): Add thread, yield.
29144         (configure.ac): Remove all checks.
29145         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29146         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29147         gl_thread_self): Remove definitions. Include glthread/thread.h and
29148         glthread/yield.h instead.
29149         (test_tls): Pass an additional NULL argument to gl_thread_join.
29150
29151 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29152             Bruno Haible  <bruno@clisp.org>
29153
29154         * modules/lock-tests (Depends-on): Add thread, yield.
29155         (configure.ac): Remove all checks.
29156         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29157         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29158         gl_thread_self): Remove definitions. Include glthread/thread.h and
29159         glthread/yield.h instead.
29160         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29161         additional NULL argument to gl_thread_join.
29162
29163 2008-09-30  Bruno Haible  <bruno@clisp.org>
29164
29165         Fix the Win32 implementation of the 'thread' module.
29166         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29167         pointer type.
29168         (gl_thread_self): Invoke gl_thread_self_func.
29169         (gl_thread_self_func): New declaration.
29170         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29171         (do_init_self_key, init_self_key): New functions.
29172         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29173         Remove some fields.
29174         (running_threads, running_lock): Remove variables.
29175         (get_current_thread_handle): New function.
29176         (gl_thread_self_func, wrapper_func, glthread_create_func,
29177         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29178         simplified.
29179
29180 2008-09-30  Bruno Haible  <bruno@clisp.org>
29181
29182         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29183         files.
29184
29185 2008-09-30  Jim Meyering  <meyering@redhat.com>
29186
29187         fts.m4: correct the test for statfs.f_type
29188         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29189         when checking for statfs.f_type.
29190
29191 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29192
29193         tests: avoid some compiler warnings
29194         * tests/test-memchr.c (main): Pass NULL indirectly.
29195         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29196
29197 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29198
29199         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29200         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29201         exactly specified dayshifts.
29202         (dayshift): New rule.
29203         (rel): Add dayshift.
29204         (relative_time_table) [tomorrow, yesterday, today, now]:
29205         Use tDAY_SHIFT in place of tDAY_UNIT.
29206         * tests/test-getdate.c: Add tests for now-disallowed countable
29207         dayshifts, e.g., "4 yesterday ago".
29208
29209 2008-09-29  Bruno Haible  <bruno@clisp.org>
29210
29211         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29212         * tests/test-posix_spawn1.in.sh: Renamed from
29213         tests/test-posix_spawn.in.sh.
29214         * tests/test-posix_spawn2.c: New file.
29215         * tests/test-posix_spawn2.in.sh: New file.
29216         * modules/posix_spawnp-tests (Files): Update.
29217         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29218
29219 2008-09-29  Bruno Haible  <bruno@clisp.org>
29220
29221         Propagate effects of putenv/setenv/unsetenv to child processes.
29222         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29223         * lib/pipe.c (create_pipe): Likewise.
29224
29225 2008-09-29  Bruno Haible  <bruno@clisp.org>
29226
29227         Enable use of shell scripts as executables in mingw.
29228         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29229         run the program as a shell script.
29230         * lib/pipe.c (create_pipe): Likewise.
29231         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29232         resulting array.
29233
29234 2008-09-29  Eric Blake  <ebb9@byu.net>
29235
29236         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29237
29238 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29239
29240         * doc/posix-functions/accept.texi: Update mingw problems.
29241         * doc/posix-functions/bind.texi: Update mingw problems.
29242         * doc/posix-functions/close.texi: Update mingw problems.
29243         * doc/posix-functions/connect.texi: Update mingw problems.
29244         * doc/posix-functions/getpeername.texi: Update mingw problems.
29245         * doc/posix-functions/getsockname.texi: Update mingw problems.
29246         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29247         * doc/posix-functions/ioctl.texi: Update mingw problems.
29248         * doc/posix-functions/listen.texi: Update mingw problems.
29249         * doc/posix-functions/recv.texi: Update mingw problems.
29250         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29251         * doc/posix-functions/select.texi: Update mingw problems.
29252         * doc/posix-functions/send.texi: Update mingw problems.
29253         * doc/posix-functions/sendto.texi: Update mingw problems.
29254         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29255         * doc/posix-functions/socket.texi: Update mingw problems.
29256
29257 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29258             Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/sys_select.in.h: Include sys/time.h.
29261         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29262         * modules/sys_select: Depend on sys_time.
29263         * tests/test-sys_select.c: Test that sys/select.h defines struct
29264         timeval fully.
29265
29266 2008-09-29  Bruno Haible  <bruno@clisp.org>
29267
29268         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29269         * lib/sys_select.in.h: Likewise.
29270
29271 2008-09-29  Bruno Haible  <bruno@clisp.org>
29272
29273         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29274
29275 2008-09-29  Bruno Haible  <bruno@clisp.org>
29276
29277         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29278         Set LIBSOCKET instead of augmenting LIBS.
29279         * modules/sockets (Link): New section.
29280         * modules/sockets-tests (test_sockets_LDADD): New variable.
29281         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29282         * modules/poll-tests (test_poll_LDADD): New variable.
29283         * NEWS: Document the change.
29284
29285 2008-09-29  Bruno Haible  <bruno@clisp.org>
29286
29287         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29288         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29289         ARPA_INET_H directly.
29290         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29291
29292 2008-09-28  Bruno Haible  <bruno@clisp.org>
29293
29294         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29295         from gl_HEADER_SYS_SOCKET.
29296         (gl_HEADER_SYS_SOCKET): Invoke it.
29297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29298
29299 2008-09-28  Bruno Haible  <bruno@clisp.org>
29300
29301         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29302         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29303         Needed on OSF/1 4.0.
29304
29305 2008-09-28  Bruno Haible  <bruno@clisp.org>
29306
29307         Override open more carefully.
29308         * lib/open.c (orig_open): New function.
29309         (rpl_open): Use orig_open instead of open.
29310         * lib/fcntl.in.h: Add special invocation convention.
29311         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29312         (gl_FUNC_OPEN): Invoke it.
29313
29314         Override freopen more carefully.
29315         * lib/freopen.c (orig_freopen): New function.
29316         (rpl_freopen): Use orig_freopen instead of freopen.
29317         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29318         (gl_FUNC_FREOPEN): Invoke it.
29319
29320         Override fopen more carefully.
29321         * lib/fopen.c (orig_fopen): New function.
29322         (rpl_fopen): Use orig_fopen instead of fopen.
29323         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29324         (gl_FUNC_FOPEN): Invoke it.
29325         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29326
29327 2008-09-28  Bruno Haible  <bruno@clisp.org>
29328
29329         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29330         SIGPIPE.
29331
29332 2008-09-28  Bruno Haible  <bruno@clisp.org>
29333
29334         * tests/test-sigaction.c (handler, main): Disable the check whether
29335         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29336         glibc systems with LinuxThreads.
29337
29338 2008-09-28  Bruno Haible  <bruno@clisp.org>
29339
29340         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29341
29342         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29343         with AIX xlc.
29344         * lib/fcntl.in.h (open): Likewise.
29345         Reported by Rainer Tammer <tammer@tammer.net>.
29346
29347 2008-09-28  Bruno Haible  <bruno@clisp.org>
29348
29349         * modules/posix_spawnp-tests: New file.
29350         * tests/test-posix_spawn.c: New file.
29351         * tests/test-posix_spawn.in.sh: New file.
29352
29353         New module 'posix_spawnp'.
29354         * modules/posix_spawnp: New file.
29355         * lib/spawnp.c: New file, from GNU libc with modifications.
29356         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29357
29358         New module 'posix_spawn'.
29359         * modules/posix_spawn: New file.
29360         * lib/spawn.c: New file, from GNU libc with modifications.
29361         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29362
29363         New module 'posix_spawnattr_destroy'.
29364         * modules/posix_spawnattr_destroy: New file.
29365         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29366         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29367         module.
29368
29369         New module 'posix_spawnattr_setsigmask'.
29370         * modules/posix_spawnattr_setsigmask: New file.
29371         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29372         modifications.
29373         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29374         new module.
29375
29376         New module 'posix_spawnattr_getsigmask'.
29377         * modules/posix_spawnattr_getsigmask: New file.
29378         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29379         modifications.
29380         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29381         new module.
29382
29383         New module 'posix_spawnattr_setsigdefault'.
29384         * modules/posix_spawnattr_setsigdefault: New file.
29385         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29386         modifications.
29387         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29388         new module.
29389
29390         New module 'posix_spawnattr_getsigdefault'.
29391         * modules/posix_spawnattr_getsigdefault: New file.
29392         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29393         modifications.
29394         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29395         new module.
29396
29397         New module 'posix_spawnattr_setschedpolicy'.
29398         * modules/posix_spawnattr_setschedpolicy: New file.
29399         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29400         modifications.
29401         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29402         new module.
29403
29404         New module 'posix_spawnattr_getschedpolicy'.
29405         * modules/posix_spawnattr_getschedpolicy: New file.
29406         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29407         modifications.
29408         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29409         new module.
29410
29411         New module 'posix_spawnattr_setschedparam'.
29412         * modules/posix_spawnattr_setschedparam: New file.
29413         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29414         modifications.
29415         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29416         new module.
29417
29418         New module 'posix_spawnattr_getschedparam'.
29419         * modules/posix_spawnattr_getschedparam: New file.
29420         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29421         modifications.
29422         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29423         new module.
29424
29425         New module 'posix_spawnattr_setpgroup'.
29426         * modules/posix_spawnattr_setpgroup: New file.
29427         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29428         modifications.
29429         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29430         module.
29431
29432         New module 'posix_spawnattr_getpgroup'.
29433         * modules/posix_spawnattr_getpgroup: New file.
29434         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29435         modifications.
29436         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29437         module.
29438
29439         New module 'posix_spawnattr_setflags'.
29440         * modules/posix_spawnattr_setflags: New file.
29441         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29442         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29443         module.
29444
29445         New module 'posix_spawnattr_getflags'.
29446         * modules/posix_spawnattr_getflags: New file.
29447         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29448         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29449         module.
29450
29451         New module 'posix_spawnattr_init'.
29452         * modules/posix_spawnattr_init: New file.
29453         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29454         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29455         module.
29456
29457         New module 'posix_spawn_file_actions_destroy'.
29458         * modules/posix_spawn_file_actions_destroy: New file.
29459         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29460         modifications.
29461         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29462         the new module.
29463
29464         New module 'posix_spawn_file_actions_addopen'.
29465         * modules/posix_spawn_file_actions_addopen: New file.
29466         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29467         modifications.
29468         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29469         the new module.
29470
29471         New module 'posix_spawn_file_actions_adddup2'.
29472         * modules/posix_spawn_file_actions_adddup2: New file.
29473         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29474         modifications.
29475         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29476         the new module.
29477
29478         New module 'posix_spawn_file_actions_addclose'.
29479         * modules/posix_spawn_file_actions_addclose: New file.
29480         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29481         modifications.
29482         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29483         the new module.
29484
29485         New module 'posix_spawn_file_actions_init'.
29486         * modules/posix_spawn_file_actions_init: New file.
29487         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29488         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29489         new module.
29490
29491         New module 'posix_spawn-internal'.
29492         * modules/posix_spawn-internal: New file.
29493         * lib/spawn_int.h: New file, from GNU libc with modifications.
29494         * lib/spawni.c: New file, from GNU libc with modifications.
29495         * m4/posix_spawn.m4: New file.
29496
29497         New module 'spawn'.
29498         * modules/spawn: New file.
29499         * lib/spawn.in.h: New file, from GNU libc with modifications.
29500         * m4/spawn_h.m4: New file.
29501         * doc/posix-headers/spawn.texi: Mention the new module.
29502
29503 2008-09-28  Bruno Haible  <bruno@clisp.org>
29504
29505         * modules/sched-tests: New file.
29506         * tests/test-sched.c: New file.
29507
29508         New module 'sched'.
29509         * modules/sched: New file.
29510         * lib/sched.in.h: New file.
29511         * m4/sched_h.m4: New file.
29512         * doc/posix-headers/sched.texi: Mention the new module.
29513
29514 2008-09-27  Eric Blake  <ebb9@byu.net>
29515
29516         Fix previous patch, and tweak references to $0.
29517         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29518         (func_version, func_gnulib_dir): Don't call this program
29519         gnulib-tool.
29520         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29521         with using $0 in function.
29522         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29523         (func_fatal_error): Reuse the name the user invoked us with.
29524
29525 2008-09-27  Bruno Haible  <bruno@clisp.org>
29526
29527         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29528         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29529         (gl_ICONV_H): Not here.
29530         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29531         instead of assigning ICONV_H directly.
29532
29533         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29534         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29535         WCHAR_H directly.
29536
29537 2008-09-27  Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29540         * modules/arpa_inet (Depends-on): Add link-warning.
29541         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29542         * modules/unistd (Makefile.am): Likewise.
29543
29544 2008-09-26  Bruno Haible  <bruno@clisp.org>
29545
29546         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29547         variables.
29548         (func_version): Essentially copied from gnulib-tool.
29549         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29550         func_readlink): Copied from gnulib-tool.
29551
29552 2008-09-26  Bruno Haible  <bruno@clisp.org>
29553
29554         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29555         invoking git-version-gen.
29556
29557 2008-09-26  Bruno Haible  <bruno@clisp.org>
29558
29559         * posix-modules: Update to directory names changed on 2008-01-19.
29560         Remove commas in output before splitting into words. No more need to
29561         avoid 'ftruncate' since 2007-02-19.
29562
29563 2008-09-26  Bruno Haible  <bruno@clisp.org>
29564
29565         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29566
29567 2008-09-26  Bruno Haible  <bruno@clisp.org>
29568
29569         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29570         * modules/fwriteerror (Depends-on): Add errno.
29571
29572 2008-09-26  Bruno Haible  <bruno@clisp.org>
29573
29574         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29575         * tests/test-vc-list-files-cvs.sh: Likewise.
29576
29577 2008-09-26  Bruno Haible  <bruno@clisp.org>
29578
29579         * doc/posix-headers/sys_resource.texi: Reorder items.
29580
29581 2008-09-26  Jim Meyering  <meyering@redhat.com>
29582
29583         fts: tweak inode comparison function
29584         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29585         inode numbers, as documented.
29586
29587         fts: sort dirent entries on inode number before traversing
29588         This avoids a quadratic, seek-related performance penalty when
29589         operating on a directory containing many entries (measurable at 10k;
29590         3.5 hours at 2 million entries with a cold cache) on certain types
29591         of file systems, including ext3 and ext4, but not tmpfs.
29592         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29593         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29594         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29595         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29596         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29597         (fts_build): Set the stat.st_ino member from D_INO.
29598         If it is likely to be useful, sort dirent entries on inode number.
29599
29600         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29601         and the struct statfs.f_type member.
29602         * modules/fts (Depends-on): Add d-ino.
29603
29604 2008-09-26  Bruno Haible  <bruno@clisp.org>
29605
29606         * modules/sigpipe-die (Depends-on): Add sigpipe.
29607
29608         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29609         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29610         and GNULIB_STDIO_H_SIGPIPE are set.
29611         * lib/stdio-write.c: New file.
29612         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29613         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29614         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29615         REPLACE_STDIO_WRITE_FUNCS.
29616         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29617         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29618         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29619         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29620         * modules/stdio (Files): Add lib/stdio-write.c.
29621         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29622         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29623         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29624         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29625         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29626         REPLACE_FPRINTF_POSIX.
29627         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29628         REPLACE_PRINTF_POSIX.
29629         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29630         REPLACE_VFPRINTF_POSIX.
29631         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29632         REPLACE_VPRINTF_POSIX.
29633         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29634         SIGPIPE issue.
29635         * doc/posix-functions/fputc.texi: Likewise.
29636         * doc/posix-functions/fputs.texi: Likewise.
29637         * doc/posix-functions/fwrite.texi: Likewise.
29638         * doc/posix-functions/printf.texi: Likewise.
29639         * doc/posix-functions/putc.texi: Likewise.
29640         * doc/posix-functions/putchar.texi: Likewise.
29641         * doc/posix-functions/puts.texi: Likewise.
29642         * doc/posix-functions/vfprintf.texi: Likewise.
29643         * doc/posix-functions/vprintf.texi: Likewise.
29644
29645         * modules/safe-write (Depends-on): Add write.
29646
29647         * modules/sigpipe-tests: New file.
29648         * tests/test-sigpipe.c: New file.
29649         * tests/test-sigpipe.sh: New file.
29650
29651         * modules/write: New file.
29652         * lib/unistd.in.h: Include <sys/types.h>.
29653         (write): New declaration.
29654         * lib/write.c: New file.
29655         * m4/write.m4: New file.
29656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29657         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29658         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29659         GNULIB_WRITE, REPLACE_WRITE.
29660         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29661         and the SIGPIPE issue.
29662
29663         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29664         (raise): New declaration.
29665         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29666         (ext_signal): New function.
29667         (rpl_raise): New function.
29668         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29669         GNULIB_SIGNAL_H_SIGPIPE.
29670         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29671         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29672
29673         * modules/sigpipe: New file.
29674         * m4/sigpipe.m4: New file.
29675
29676 2008-09-25  Derek Price  <derek@ximbiot.com>
29677             Bruno Haible  <bruno@clisp.org>
29678
29679         * gnulib-tool (func_import): Report all license incompatibilities, not
29680         just the first one.
29681
29682 2008-09-25  Bruno Haible  <bruno@clisp.org>
29683
29684         * gnulib-tool (func_import): When computing the edits, consider not
29685         only the Makefile.ams that exist but also those that will be generated.
29686
29687 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29688
29689         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29690         fixes gnulib-tool --test warning about duplicate dependency.
29691
29692 2008-09-25  Bruno Haible  <bruno@clisp.org>
29693
29694         * gnulib-tool: Don't ask the user to perform edits in the generated
29695         Makefile.ams.
29696         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29697         apply to the Makefile.am being generated.
29698         (func_emit_tests_Makefile_am): Execute edits that apply to the
29699         Makefile.am being generated.
29700         (func_import): Setup list of Makefile.am edits before emitting the
29701         Makefile.ams, not at the end.
29702         (func_create_testdir): Update.
29703         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29704
29705 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29706
29707         * gnulib-tool (func_import): Store the --tests-base option in the
29708         comment in gnulib-cache.m4.
29709
29710 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29711
29712         * NEWS: Document increased portability that sys_select now provides.
29713
29714         * lib/sys_select.in.h: Install select wrapper.
29715         * lib/sys_socket.in.h: Use more descriptive name when there is no
29716         select wrapper.
29717         * lib/winsock-select.c: New.
29718         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29719         Require gl_HEADER_SYS_SOCKET.
29720         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29721         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29722         * tests/test-sys_select.c: Add functional tests.
29723
29724 2008-09-24  Eric Blake  <ebb9@byu.net>
29725
29726         open, fopen: close fd leak in last patch
29727         * lib/open.c (rpl_open): Close fd before returning error.
29728         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29729         * doc/posix-functions/open.texi (open): Document that Irix also
29730         has the bug.
29731         * doc/posix-functions/fopen.texi (fopen): Likewise.
29732         Reported by Paolo Bonzini.
29733
29734 2008-09-24  Bruno Haible  <bruno@clisp.org>
29735
29736         Ensure that a filename ending in a slash cannot be used to access a
29737         non-directory.
29738         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29739         to check whether it's really a directory.
29740         * lib/fopen.c: Include fcntl.h, unistd.h.
29741         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29742         and fdopen().
29743         * modules/fopen (Depends-on): Add unistd.
29744         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29745         * tests/test-fopen.c (main): Likewise.
29746         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29747         * doc/posix-functions/fopen.texi: Likewise.
29748         Reported by Eric Blake.
29749
29750 2008-09-23  Eric Blake  <ebb9@byu.net>
29751
29752         c-stack: avoid compiler optimizations when provoking overflow
29753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29754         recursion harder to optimize, to ensure a stack overflow occurs.
29755         * tests/test-c-stack.c (recurse): Likewise.
29756         Borrowed from libsigsegv.
29757
29758         c-stack: work around Irix sigaltstack bug
29759         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29760         whether sigaltstack uses wrong end of stack_t (copied in part from
29761         libsigsegv).
29762         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29763         Irix bug, without requiring an over-allocation.
29764         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29765         bug.
29766
29767         fopen: document mingw bug on directories
29768         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29769         not allowing a stream visiting a directory, even though reading
29770         from such a stream is not portable.
29771
29772 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29773
29774         * lib/poll.c: Rewrite.
29775         * modules/poll: Depend on alloca.
29776
29777 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29778
29779         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29780         instead define prototypes for a full set of wrappers.  Ensure
29781         that Cygwin does not use the compatibility code, which is only
29782         for MinGW.
29783         * lib/winsock.c: New.
29784         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29785         * modules/sys_socket: Add lib/winsock.c.
29786
29787         * modules/poll-tests: Add errno and perror.
29788         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29789
29790 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29791
29792         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29793
29794 2008-09-23  Bruno Haible  <bruno@clisp.org>
29795
29796         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29797         * doc/glibc-functions/*: Likewise.
29798
29799 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29800
29801         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29802         success.
29803
29804 2008-09-22  Eric Blake  <ebb9@byu.net>
29805             Bruno Haible  <bruno@clisp.org>
29806
29807         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29808         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29809         supply %A but mishandle pseudo-NaN.
29810         Reported by Simon Josefsson.
29811
29812 2008-09-21  Bruno Haible  <bruno@clisp.org>
29813
29814         * tests/test-lock.c (main): Tweak skip message.
29815         * tests/test-tls.c (main): Likewise.
29816
29817 2008-09-21  Bruno Haible  <bruno@clisp.org>
29818
29819         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29820         whether 'struct sigaction' has sa_sigaction here...
29821         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29822         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29823
29824 2008-09-21  Bruno Haible  <bruno@clisp.org>
29825
29826         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29827         section.
29828         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29829         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29830         the new section.
29831         (Support for obsolete systems lacking POSIX:2001): New section.
29832         (String handling <string.h>): Move strdup to the new section.
29833         Suggested by Simon Josefsson and Paolo Bonzini.
29834
29835 2008-09-21  Bruno Haible  <bruno@clisp.org>
29836
29837         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29838         exponents in %e and %g results on 'long double'. Needed for mingw's
29839         improved *printf functions.
29840         * tests/test-vasprintf-posix.c (test_function): Likewise.
29841         * tests/test-snprintf-posix.h (test_function): Likewise.
29842         * tests/test-sprintf-posix.h (test_function): Likewise.
29843         Reported by Eric Blake.
29844
29845 2008-09-21  Bruno Haible  <bruno@clisp.org>
29846
29847         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29848         * tests/test-sprintf-posix.h (test_function): Likewise.
29849
29850 2008-09-21  Bruno Haible  <bruno@clisp.org>
29851
29852         * modules/getpass (Depends-on): Add strdup-posix.
29853
29854         New module 'strdup-posix'.
29855         * modules/strdup-posix: New file.
29856         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29857         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29859         REPLACE_STRDUP.
29860         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29861         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29862         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29863         strdup-posix.
29864
29865         * modules/strdup (Depends-on): Remove malloc-posix.
29866
29867 2008-09-20  Bruno Haible  <bruno@clisp.org>
29868
29869         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29870         Wildenhues.
29871
29872 2008-09-20  Bruno Haible  <bruno@clisp.org>
29873
29874         Ensure that wint_t gets defined on IRIX 5.3.
29875         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29876         * lib/wctype.in.h (wint_t): Likewise.
29877         (__wctype_wint_t): Remove type.
29878         (isw*): Use wint_t instead of __wctype_wint_t.
29879         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29880         * modules/wchar (Files): Add m4/wint_t.m4.
29881         (Makefile.am): Substitute HAVE_WINT_T.
29882         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29883         * tests/test-wctype.c: Check that wint_t is defined.
29884         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29885         * doc/posix-headers/wctype.texi: Likewise.
29886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29887
29888 2008-09-18  Bruno Haible  <bruno@clisp.org>
29889
29890         * gnulib-tool (func_exit): Update comment.
29891
29892 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29893
29894         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29895         assumes strdup exists and does not depend on strdup to return
29896         ENOMEM on out of memory conditions.
29897
29898 2008-09-18  Bruno Haible  <bruno@clisp.org>
29899
29900         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
29901         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29902         digits for the exponent.
29903
29904 2008-09-18  Jim Meyering  <meyering@redhat.com>
29905             Bruno Haible  <bruno@clisp.org>
29906
29907         * lib/vasnprintf.c (decimal_point_char): Define also if
29908         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29909
29910 2008-09-16  Bruno Haible  <bruno@clisp.org>
29911         and Eric Blake  <ebb9@byu.net>
29912
29913         vasnprintf: support Irix 5.3
29914         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29915         that mishandle long double infinity.
29916         Reported by Tom G. Christensen.
29917
29918 2008-09-16  Bruno Haible  <bruno@clisp.org>
29919
29920         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29921         Solaris 9.
29922         * doc/glibc-functions/alphasort.texi: Likewise.
29923         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29924
29925 2008-09-16  Jim Meyering  <meyering@redhat.com>
29926
29927         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29928         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29929         a umask modification leak out of a subshell.  Otherwise, the
29930         opensolaris /bin/sh would be accepted and thus cause unwarranted
29931         failures in the coreutils test suite.
29932
29933 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29934
29935         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29936         to succeed.
29937
29938 2008-09-16  Jim Meyering  <meyering@redhat.com>
29939
29940         avoid spurious test failure when library is built without ACL support
29941         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29942         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29943         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29944         * tests/test-copy-acl.sh: Likewise.
29945
29946 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29947
29948         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29949         based on character occurrence counts.
29950
29951 2008-09-15  Eric Blake  <ebb9@byu.net>
29952
29953         tests: avoid some compiler warnings
29954         * tests/test-memchr.c (main): Pass NULL indirectly.
29955         * tests/test-closein.c (main): Avoid unused variable.
29956
29957 2008-09-15  Bruno Haible  <bruno@clisp.org>
29958
29959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29960         are missing on OpenBSD 4.0 individually.
29961         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29962
29963 2008-09-15  Bruno Haible  <bruno@clisp.org>
29964
29965         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29966         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29967         * doc/posix-functions/perror.texi: Likewise.
29968         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29969         is missing.
29970         Reported by Eric Blake.
29971
29972         * lib/errno.in.h: Use replacement values >= 2000.
29973         Reported by Eric Blake.
29974
29975 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29976
29977         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29978         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29979         limit.
29980         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29981         compareseq was aborted.
29982
29983 2008-09-14  Bruno Haible  <bruno@clisp.org>
29984
29985         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29986         yvec_edit_count.
29987         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29988         (fstrcmp_bounded): Simplify result computation accordingly.
29989
29990 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29991
29992         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29993         (fstrcmp): Define in terms of fstrcmp_bounded.
29994         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29995         lower_bound argument.
29996         Return quickly if the result is certainly < lower_bound.
29997         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29998
29999 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30000
30001         * lib/diffseq.h (EARLY_ABORT): New macro.
30002         (compareseq): Change return type to bool. Return true when EARLY_ABORT
30003         evaluates to true.
30004
30005 2008-09-14  Bruno Haible  <bruno@clisp.org>
30006
30007         * modules/perror-tests: New file.
30008         * tests/test-perror.sh: New file.
30009         * tests/test-perror.c: New file.
30010
30011         New module 'perror'.
30012         * lib/stdio.in.h (perror): New declaration.
30013         * lib/perror.c: New file.
30014         * m4/perror.m4: New file.
30015         * modules/perror: New file.
30016         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
30017         * doc/posix-functions/perror.texi: Mention the perror module.
30018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
30019         REPLACE_PERROR.
30020         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
30021         REPLACE_PERROR.
30022
30023 2008-09-14  Bruno Haible  <bruno@clisp.org>
30024
30025         * modules/stdio (Makefile.am): Reorder to match the order in
30026         lib/stdio.in.h.
30027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30028
30029 2008-09-13  Bruno Haible  <bruno@clisp.org>
30030
30031         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
30032
30033 2008-09-13  Bruno Haible  <bruno@clisp.org>
30034
30035         Extend strerror to cover the added errno values.
30036         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
30037         (rpl_strerror): Provide error messages for the added errno values and
30038         for the WSA* values.
30039         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
30040         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
30041         strerror.
30042         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
30043         * modules/strerror (Depends-on): Add errno.
30044         * doc/posix-functions/strerror.texi: Document the change.
30045         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
30046         and EOVERFLOW.
30047
30048 2008-09-13  Bruno Haible  <bruno@clisp.org>
30049
30050         * modules/EOVERFLOW: Remove file.
30051         * m4/eoverflow.m4: Remove file.
30052         * modules/EOVERFLOW-tests: Remove file.
30053         * tests/test-EOVERFLOW.c: Remove file.
30054         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
30055         * modules/ftell (Depends-on): Likewise.
30056         * modules/getdelim (Depends-on): Likewise.
30057         * modules/getugroups (Depends-on): Likewise.
30058         * modules/poll (Depends-on): Likewise.
30059         * modules/snprintf (Depends-on): Likewise.
30060         * modules/sprintf-posix (Depends-on): Likewise.
30061         * modules/vasnprintf (Depends-on): Likewise.
30062         * modules/vasprintf (Depends-on): Likewise.
30063         * modules/vfprintf-posix (Depends-on): Likewise.
30064         * modules/vsnprintf (Depends-on): Likewise.
30065         * modules/vsprintf-posix (Depends-on): Likewise.
30066         * modules/xvasprintf (Depends-on): Likewise.
30067         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30068         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
30069         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
30070         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
30071         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30072         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
30073         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
30074         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
30075         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30076         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
30077         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
30078         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
30079         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30080         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
30081         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
30082         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
30083         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30084         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
30085         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
30086         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
30087         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30088         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
30089         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
30090         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
30091         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
30092         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30093         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
30094         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
30095         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
30096         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
30097         * MODULES.html.sh: Remove EOVERFLOW.
30098         * NEWS: Mention the change.
30099
30100 2008-09-13  Bruno Haible  <bruno@clisp.org>
30101
30102         * modules/errno-tests: New file.
30103         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
30104
30105         * lib/errno.in.h: New file.
30106         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
30107         * modules/errno: New file.
30108         * doc/posix-headers/errno.texi: Update documentation.
30109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
30110
30111 2008-09-13  Bruno Haible  <bruno@clisp.org>
30112
30113         * tests/test-poll.c: Use #if for native Windows, rather than testing
30114         __MSVCRT__.
30115
30116 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30117             Bruno Haible  <bruno@clisp.org>
30118
30119         * lib/glob.c: Don't include <pwd.h> on native Windows.
30120         (WINDOWS32): New macro.
30121         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30122
30123 2008-09-13  Bruno Haible  <bruno@clisp.org>
30124
30125         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30126         (ETIMEDOUT): Remove macro.
30127         (glthread_cond_timedwait_multithreaded): New declaration.
30128         (glthread_cond_timedwait): Use it.
30129         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30130         (glthread_cond_timedwait_multithreaded): New function.
30131
30132 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30133
30134         * modules/poll-tests: Do not check for io.h.
30135         * tests/test-poll.c: Check for __MSVCRT__ instead.
30136
30137 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30138
30139         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30140         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30141         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30142
30143 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30144
30145         * modules/poll-tests: New.
30146         * tests/test-poll.c: New.
30147
30148 2008-09-12  Eric Blake  <ebb9@byu.net>
30149
30150         frexp: test for NetBSD failure on -0.0
30151         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30152         not all, bugs from NetBSD 3.0 have been fixed.
30153         * doc/posix-functions/frexp.texi (frexp): Document bug.
30154         Reported by Thomas Klausner.
30155
30156         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30157         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30158         literal -0.0.
30159         Reported by Jonathan C. Patschke <jp@centtech.com>.
30160
30161 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30162
30163         * lib/glthread/cond.h: Use dummy implementation also if
30164         USE_WIN32_THREADS.
30165
30166 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30167
30168         * modules/fnmatch-posix (License): Change to LGPLv2+.
30169         * modules/fnmatch-gnu (License): Likewise.
30170
30171 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30172
30173         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30174
30175 2008-09-11  Jim Meyering  <meyering@redhat.com>
30176
30177         * users.txt: Add gtk-vnc.
30178
30179 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30180
30181         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30182         rotate amounts.
30183
30184         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30185         required for 16-bit and 8-bit rotates.
30186         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30187         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30188         UINT8_MAX instead of hard-coded constants.
30189         Suggested by Paul Eggert.
30190
30191 2008-09-07  Bruno Haible  <bruno@clisp.org>
30192
30193         * tests/test-striconveh.c (main): Check behaviour when converting from
30194         UTF-7.
30195
30196         Make striconveh work better with stateful encodings.
30197         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30198         that iconv does not increment the inptr when returning -1/EINVAL.
30199
30200 2008-09-07  Bruno Haible  <bruno@clisp.org>
30201
30202         * build-aux/config.rpath: Update according to libtool-2.2.6.
30203         * build-aux/config.libpath: Likewise.
30204
30205 2008-09-06  Bruno Haible  <bruno@clisp.org>
30206
30207         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30208         * lib/freadptr.c (freadptr): Likewise.
30209         * lib/freadseek.c (freadptrinc): Likewise.
30210         Reported by Simon Josefsson.
30211
30212 2008-09-06  Bruno Haible  <bruno@clisp.org>
30213
30214         * modules/freadptr (License): Change to LGPLv2+.
30215         * modules/freadseek (License): Likewise.
30216         Suggested by Eric Blake.
30217
30218         * modules/memchr2 (License): Change to LGPLv2+.
30219         Approved by Eric Blake.
30220
30221 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30222             Bruno Haible  <bruno@clisp.org>
30223
30224         Make gnulib-tool work with native 'sed' on AIX.
30225         * gnulib-tool (sed_noop): New variable.
30226         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30227         func_add_or_update, func_create_testdir): Use it to initialize sed
30228         script variables.
30229         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30230
30231 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30232             Bruno Haible  <bruno@clisp.org>
30233
30234         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30235         also works after #include directives.
30236
30237 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30238
30239         getdate.y: reject an out-of-range timezone value
30240         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30241         the range [-24...+24].  When specified with only one or two digits,
30242         * tests/test-getdate.c: Tests for the fix.
30243         * doc/getdate.texi: Document this change.
30244
30245 2008-09-03  Bruno Haible  <bruno@clisp.org>
30246
30247         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30248
30249 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30250
30251         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30252         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30253         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30254         Blake <ebb9@byu.net>.
30255
30256         * tests/test-bitrotate.c: Add more test vectors.
30257
30258 2008-09-02  Eric Blake  <ebb9@byu.net>
30259
30260         vasnprintf-posix: handle large precision via %.*d
30261         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30262         when handling it ourselves.
30263         * tests/test-vasnprintf-posix.c (test_function): Add test.
30264         * tests/test-snprintf-posix.h (test_function): Likewise.
30265         * tests/test-sprintf-posix.h (test_function): Likewise.
30266         * tests/test-vasprintf-posix.c (test_function): Likewise.
30267         Reported by Alain Guibert.
30268
30269 2008-09-01  Eric Blake  <ebb9@byu.net>
30270
30271         c-stack: make configure-time check more robust
30272         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30273         successful sigaction call.
30274         Reported by Tom G. Christensen.
30275
30276 2008-09-01  Bruno Haible  <bruno@clisp.org>
30277
30278         New module 'findprog-lgpl'.
30279         * modules/findprog-lgpl: New file.
30280         * lib/findprog-lgpl.c: New file.
30281         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30282         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30283         to decide whether to use strdup or xstrdup, concatenated_filename or
30284         xconcatenated_filename.
30285
30286 2008-09-01  Bruno Haible  <bruno@clisp.org>
30287
30288         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30289         'xconcat-filename' (GPL).
30290         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30291         (License): Change to LGPLv2+.
30292         * modules/xconcat-filename: New file.
30293         * lib/concat-filename.h (concatenated_filename): Change specification.
30294         (xconcatenated_filename): New declaration.
30295         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30296         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30297         memory situations.
30298         * lib/xconcat-filename.c: New file.
30299         * NEWS: Mention the change.
30300         * lib/findprog.c: Include concat-filename.h, not filename.h.
30301         (find_in_path): Use xconcatenated_filename instead of
30302         concatenated_filename.
30303         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30304         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30305         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30306         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30307         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30308         instead of concatenated_filename.
30309         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30310         (execute_java_class): Use xconcatenated_filename instead of
30311         concatenated_filename.
30312         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30313         * modules/javacomp (Depends-on): Likewise.
30314         * modules/javaexec (Depends-on): Likewise.
30315
30316 2008-09-01  Bruno Haible  <bruno@clisp.org>
30317
30318         Split module 'filename' into 'filename' and 'concat-filename'.
30319         * modules/filename: Keep only lib/filename.h.
30320         (License): Change to LGPLv2+.
30321         * modules/concat-filename: New file, extracted from modules/filename.
30322         * lib/filename.h (concatenated_filename): Remove declaration.
30323         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30324         * lib/concat-filename.c: Include concat-filename.h.
30325         * NEWS: Mention the change.
30326
30327 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30328
30329         * lib/bitrotate.h (rotl8, rotr8): Add.
30330
30331         * modules/bitrotate (configure.ac): Need
30332         AC_REQUIRE([AC_C_INLINE]).
30333         (Description): Mention stdint.h.  Reported by Bruno Haible
30334         <bruno@clisp.org>.
30335
30336         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30337         Paolo Bonzini <bonzini@gnu.org>.
30338
30339 2008-08-31  Bruno Haible  <bruno@clisp.org>
30340
30341         Assume Solaris specific bi-arch conventions on Solaris systems.
30342         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30343         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30344         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30345         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30346         like acl_libdirstem.
30347         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30348         acl_libdirstem.
30349         * NEWS: Mention the change.
30350         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30351
30352 2008-08-31  Jim Meyering  <meyering@redhat.com>
30353
30354         * lib/strftime.h: Add comments describing the two added arguments.
30355
30356         remove duplicate #include directives
30357         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30358         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30359
30360 2008-08-31  Bruno Haible  <bruno@clisp.org>
30361
30362         New module 'sigpipe-die'.
30363         * modules/sigpipe-die: New file.
30364         * lib/sigpipe-die.h: New file.
30365         * lib/sigpipe-die.c: New file.
30366         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30367
30368 2008-08-31  Bruno Haible  <bruno@clisp.org>
30369
30370         Don't override previously installed signal handlers.
30371         * lib/fatal-signal.c (saved_sigactions): New variable.
30372         (uninstall_handlers): Reset the signal to the saved handler, not
30373         to SIG_DFL (except when ignored).
30374         (install_handlers): Save the previous handlers.
30375
30376 2008-08-30  Bruno Haible  <bruno@clisp.org>
30377
30378         * gnulib-tool (func_reset_sigpipe): New function.
30379         (func_get_automake_snippet, func_modules_transitive_closure,
30380         func_import): Invoke it before a join command that reads from stdin,
30381         to avoid "echo: write error: Broken pipe" error messages on stderr.
30382         Reported by Sam Steingold <sds@gnu.org>.
30383
30384 2008-08-30  Bruno Haible  <bruno@clisp.org>
30385
30386         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30387         Code copied from m4/open.m4.
30388         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30389         access and the filename ends in a slash. Code copied from lib/open.c.
30390         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30391         * tests/test-fopen.c (main): Check against bug with trailing slash.
30392
30393 2008-08-29  Bruno Haible  <bruno@clisp.org>
30394
30395         Avoid some "gcc -pedantic" warnings.
30396         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30397         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30398         * lib/dirent.in.h: Likewise.
30399         * lib/fcntl.in.h: Likewise.
30400         * lib/float.in.h: Likewise.
30401         * lib/iconv.in.h: Likewise.
30402         * lib/inttypes.in.h: Likewise.
30403         * lib/locale.in.h: Likewise.
30404         * lib/math.in.h: Likewise.
30405         * lib/netinet_in.in.h: Likewise.
30406         * lib/search.in.h: Likewise.
30407         * lib/signal.in.h: Likewise.
30408         * lib/stdarg.in.h: Likewise.
30409         * lib/stdint.in.h: Likewise.
30410         * lib/stdio.in.h: Likewise.
30411         * lib/stdlib.in.h: Likewise.
30412         * lib/string.in.h: Likewise.
30413         * lib/strings.in.h: Likewise.
30414         * lib/sys_select.in.h: Likewise.
30415         * lib/sys_socket.in.h: Likewise.
30416         * lib/sys_stat.in.h: Likewise.
30417         * lib/sys_time.in.h: Likewise.
30418         * lib/sysexits.in.h: Likewise.
30419         * lib/time.in.h: Likewise.
30420         * lib/unistd.in.h: Likewise.
30421         * lib/wchar.in.h: Likewise.
30422         * lib/wctype.in.h: Likewise.
30423         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30424         * modules/fchdir (Makefile.am): Likewise.
30425         * modules/fcntl (Makefile.am): Likewise.
30426         * modules/float (Makefile.am): Likewise.
30427         * modules/iconv_open (Makefile.am): Likewise.
30428         * modules/inttypes (Makefile.am): Likewise.
30429         * modules/locale (Makefile.am): Likewise.
30430         * modules/math (Makefile.am): Likewise.
30431         * modules/netinet_in (Makefile.am): Likewise.
30432         * modules/search (Makefile.am): Likewise.
30433         * modules/signal (Makefile.am): Likewise.
30434         * modules/stdarg (Makefile.am): Likewise.
30435         * modules/stdint (Makefile.am): Likewise.
30436         * modules/stdio (Makefile.am): Likewise.
30437         * modules/stdlib (Makefile.am): Likewise.
30438         * modules/string (Makefile.am): Likewise.
30439         * modules/strings (Makefile.am): Likewise.
30440         * modules/sys_select (Makefile.am): Likewise.
30441         * modules/sys_socket (Makefile.am): Likewise.
30442         * modules/sys_stat (Makefile.am): Likewise.
30443         * modules/sys_time (Makefile.am): Likewise.
30444         * modules/sysexits (Makefile.am): Likewise.
30445         * modules/time (Makefile.am): Likewise.
30446         * modules/unistd (Makefile.am): Likewise.
30447         * modules/wchar (Makefile.am): Likewise.
30448         * modules/wctype (Makefile.am): Likewise.
30449         Reported by Reuben Thomas <rrt@sc3d.org>.
30450
30451 2008-08-29  Bruno Haible  <bruno@clisp.org>
30452
30453         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30454         any more.
30455
30456 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30457
30458         * MODULES.html.sh (Misc): Add bitrotate.
30459
30460         * modules/bitrotate: New file.
30461
30462         * lib/bitrotate.h: New file.
30463
30464         * modules/bitrotate-tests: New file.
30465
30466         * tests/test-bitrotate.c: New file.
30467
30468         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30469         on the bitrotate module.
30470
30471         * lib/arctwo.c: Use new bitrotate module.
30472
30473 2008-08-29  Jim Meyering  <meyering@redhat.com>
30474
30475         bootstrap: merge changes from coreutils
30476         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30477         of copied files.  Remove a kludge, now that this is fixed.
30478         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30479         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30480         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30481
30482 2008-08-29  Bruno Haible  <bruno@clisp.org>
30483
30484         * MODULES.html.sh: Remove --cvs-urls option.
30485
30486 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30487
30488         maint.mk: adjust to file name change
30489         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30490
30491 2008-08-28  Jim Meyering  <meyering@redhat.com>
30492
30493         * modules/getndelim2 (License): Relicense to LGPLv2+.
30494         Approved by Richard Stallman for the version of 1995, and by
30495         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30496
30497 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30498
30499         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30500         dummy if one is not available.  Do not touch them if
30501         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30502         (getc_maybe_unlocked): New.
30503         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30504
30505 2008-08-26  Eric Blake  <ebb9@byu.net>
30506
30507         doc/INSTALL: resync from autoconf
30508         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30509         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30510         moving...
30511         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30512         * INSTALL: Regenerate.
30513         * INSTALL.ISO: New file.
30514         * INSTALL.UTF-8: Likewise.
30515
30516 2008-08-26  Jim Meyering  <meyering@redhat.com>
30517
30518         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30519         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30520         these definitions conditional, so that they may be overridden, too.
30521
30522 2008-08-26  Bruno Haible  <bruno@clisp.org>
30523
30524         Generate INSTALL file variants with prettier quotes.
30525         * doc/Makefile (INSTALL_PRELUDE): New macro.
30526         (INSTALL): Use it.
30527         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30528
30529 2008-08-26  Bruno Haible  <bruno@clisp.org>
30530
30531         Run makeinfo in an English locale.
30532         * doc/Makefile (MAKEINFO): New variable.
30533
30534 2008-08-26  Bruno Haible  <bruno@clisp.org>
30535
30536         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30537         Suggested by Eric Blake.
30538
30539 2008-08-25  Bruno Haible  <bruno@clisp.org>
30540
30541         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30542
30543 2008-08-25  Eric Blake  <ebb9@byu.net>
30544
30545         c-stack: test that stack overflow can be caught
30546         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30547         that platform allows handling stack overflow; at least OS/2 EMX
30548         has sigaltstack, but crashes before transferring control to
30549         handler on stack overflow.
30550         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30551         check for HAVE_STACK_OVERFLOW_HANDLING.
30552         Reported by Elbert Pol.
30553
30554 2008-08-25  Bruno Haible  <bruno@clisp.org>
30555
30556         * doc/posix-functions/strftime.texi: Fix description of strftime
30557         module.
30558
30559 2008-08-24  Bruno Haible  <bruno@clisp.org>
30560
30561         * tests/uniwidth/test-uc_width2.c: New file.
30562         * tests/uniwidth/test-uc_width2.sh: New file.
30563         * modules/uniwidth/width-tests (Files): Add the new files.
30564         (TESTS): Add uniwidth/test-uc_width2.sh.
30565         (TESTS_ENVIRONMENT): New variable.
30566         (check_PROGRAMS): Add test-uc_width2.
30567         (test_uc_width2_SOURCES): New variable.
30568
30569         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30570         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30571         not 0x00AB.
30572         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30573
30574 2008-08-22  Eric Blake  <ebb9@byu.net>
30575
30576         test-lock, test-tls: mention why a test is skipped
30577         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30578         skipped.
30579         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30580
30581         count-one-bits: relax license
30582         * modules/count-one-bits (License): Relicense to LGPLv2+.
30583         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30584
30585 2008-08-22  Andreas Schwab  <schwab@suse.de>
30586
30587         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30588         Remove spurious space in assignment.
30589
30590 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30591
30592         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30593         Paul Eggert <eggert@CS.UCLA.EDU>.
30594
30595 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30596
30597         * modules/gettext: Add m4/threadlib.m4.
30598
30599 2008-08-19  Eric Blake  <ebb9@byu.net>
30600
30601         test-c-stack: fix compilation failure on FreeBSD 5.0
30602         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30603         headers before <sys/resource.h>.
30604         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30605         the bug.
30606         Reported by Nelson H. F. Beebe.
30607
30608         strverscmp: migrate from "strverscmp.h" to <string.h>
30609         * modules/string (Makefile.am): Add new hooks.
30610         * modules/strverscmp (Files): Remove strverscmp.h.
30611         (Depends-on): Add string.
30612         (configure.ac): Add indicator.
30613         (Include): Mention new header.
30614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30615         defaults.
30616         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30617         results.
30618         * lib/strverscmp.h: Delete.
30619         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30620         * tests/test-strverscmp.c (includes): Adjust client.
30621         * lib/check-version.c (includes): Likewise.
30622         * NEWS: Document the change.
30623
30624         strverscmp: add unit test
30625         * modules/strverscmp-tests: New file.
30626         * tests/test-strverscmp.c: Likewise.
30627
30628 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30629
30630         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30631         regarding Windows crypto stuff, from Mono.
30632
30633 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30634
30635         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30636         if present, for intel RND.  Return error on failures.
30637
30638 2008-08-18  Ben Pfaff  <blp@gnu.org>
30639
30640         gitlog-to-changelog: give better diagnostic for failed pipe-open
30641         * build-aux/gitlog-to-changelog: Improve error message: suggest
30642         that the version of Git may be too old.
30643
30644 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30645
30646         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30647         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30648
30649 2008-08-18  Bruno Haible  <bruno@clisp.org>
30650
30651         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30652         pthread_in_use().
30653
30654 2008-08-18  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/glthread/threadlib.c: Include <pthread.h>.
30657
30658 2008-08-18  Bruno Haible  <bruno@clisp.org>
30659
30660         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30661         glthread_recursive_lock_* macros.
30662         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30663         Fix syntax error.
30664
30665 2008-08-18  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/glthread/thread.c: Avoid forcing a context switch right after
30668         thread creation.
30669
30670 2008-08-17  Bruno Haible  <bruno@clisp.org>
30671
30672         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30673         * lib/glthread/thread.h: Provide Win32 specific implementation.
30674         * modules/thread (Files): Add lib/glthread/thread.c.
30675         (Depends-on): Add lock.
30676         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30677
30678 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30679
30680         New module 'yield'.
30681         * modules/yield: New file.
30682         * lib/glthread/yield.h: New file.
30683         * m4/yield.m4: New file.
30684         * MODULES.html.sh (Multithreading): Add yield.
30685
30686 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30687
30688         New module 'thread'.
30689         * modules/thread: New file.
30690         * lib/glthread/thread.h: New file.
30691         * m4/thread.m4: New file.
30692         * MODULES.html.sh (Multithreading): Add thread.
30693
30694 2008-08-17  Bruno Haible  <bruno@clisp.org>
30695
30696         * lib/glthread/lock.h: Include <stdlib.h> always.
30697         * lib/glthread/tls.h: Likewise.
30698         * lib/glthread/cond.h: Likewise.
30699
30700 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30701
30702         New module 'cond'.
30703         * modules/cond: New file.
30704         * lib/glthread/cond.h: New file.
30705         * lib/glthread/cond.c: New file.
30706         * m4/cond.m4: New file.
30707         * MODULES.html.sh (Multithreading): Add cond.
30708
30709 2008-08-16  Eric Blake  <ebb9@byu.net>
30710
30711         c-stack: fix regression on Irix 5.3 from 2008-06-21
30712         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30713         sa_sigaction...
30714         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30715         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30716         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30717         * modules/signal (Makefile.am): Use the value.
30718         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30719         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30720         * doc/posix-headers/signal.texi (signal.h): Document this
30721         portability issue.
30722         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30723         Reported by Tom G. Christensen.
30724
30725 2008-08-17  Bruno Haible  <bruno@clisp.org>
30726
30727         New module 'threadlib'.
30728         * modules/threadlib: New file.
30729         * lib/glthread/threadlib.c: New file, extracted from
30730         lib/glthread/lock.c.
30731         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30732         functions.
30733         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30734         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30735         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30736         macros.
30737         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30738         (gl_DISABLE_THREADS): Remove macro.
30739         * modules/lock (Files): Remove build-aux/config.rpath.
30740         (Depends-on): Remove havelib. Add threadlib.
30741         (configure.ac-early): Remove section.
30742         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30743         * modules/tls (Depends-on): Remove lock. Add threadlib.
30744         (Link): New section, copied from threadlib.
30745         * MODULES.html.sh (Multithreading): Add threadlib.
30746
30747 2008-08-14  Bruno Haible  <bruno@clisp.org>
30748
30749         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30750         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30751         glthread_rwlock_unlock, glthread_rwlock_destroy,
30752         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30753         glthread_recursive_lock_destroy): Define as macros always.
30754         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30755         glthread_lock_lock.
30756         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30757         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30758         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30759         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30760         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30761         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30762         (glthread_recursive_lock_lock_func): Renamed from
30763         glthread_recursive_lock_lock.
30764         (glthread_recursive_lock_unlock_func): Renamed from
30765         glthread_recursive_lock_unlock.
30766         (glthread_recursive_lock_destroy_func): Renamed from
30767         glthread_recursive_lock_destroy.
30768
30769 2008-08-14  Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/glthread/lock.h: Renamed from lib/lock.h.
30772         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30773         * lib/glthread/tls.h: Renamed from lib/tls.h.
30774         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30775         * lib/fstrcmp.c: Update includes.
30776         * lib/strsignal.c: Update includes.
30777         * modules/lock (Files, Makefile.am): Update.
30778         (Include): Change to "glthread/lock.h".
30779         * modules/tls (Files, Makefile.am): Update.
30780         (Include): Change to "glthread/tls.h".
30781         * tests/test-lock.c: Update includes.
30782         * tests/test-tls.c: Update includes.
30783         * NEWS: Mention the renamed header files.
30784
30785 2008-08-11  Jim Meyering  <meyering@redhat.com>
30786
30787         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30788
30789 2008-08-11  Eric Blake  <ebb9@byu.net>
30790
30791         test-c-stack: avoid C99-ism
30792         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30793         before statement.
30794         Reported by Alain Guibert.
30795
30796 2008-08-10  Jim Meyering  <meyering@redhat.com>
30797
30798         ensure that return value of uinttostr et al are not ignored
30799         * lib/inttostr.h (__GNUC_PREREQ): Define.
30800         (__attribute_warn_unused_result__): Define.
30801         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30802
30803 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30804
30805         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30806         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30807
30808 2008-08-07  Jim Meyering  <meyering@redhat.com>
30809
30810         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30811
30812         * modules/mkstemp (License): Relicense under LGPLv2+.
30813         * modules/tempname (License): Likewise.
30814
30815 2008-08-06  Bruno Haible  <bruno@clisp.org>
30816
30817         * lib/poll.c (poll): Further micro-optimization.
30818
30819 2008-08-06  Jim Meyering  <meyering@redhat.com>
30820
30821         inet_pton.c: use locale-independent tolower
30822         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30823         (inet_pton6): Use c_tolower rather than tolower.
30824         * modules/inet_pton (Depends-on): Add c-ctype.
30825
30826 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30827
30828         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30829         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30830
30831 2008-08-06  Jim Meyering  <meyering@redhat.com>
30832
30833         * modules/inet_pton (License): Relicense under LGPLv2+.
30834
30835 2008-08-03  Bruno Haible  <bruno@clisp.org>
30836
30837         Additional non-aborting API for lock and tls.
30838         * lib/lock.h: Include <errno.h>.
30839         (glthread_lock_init): New macro/function.
30840         (gl_lock_init): Define as wrapper around glthread_lock_init.
30841         (glthread_lock_lock): New macro/function.
30842         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30843         (glthread_lock_unlock): New macro/function.
30844         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30845         (glthread_lock_destroy): New macro/function.
30846         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30847         (glthread_rwlock_init): New macro/function.
30848         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30849         (glthread_rwlock_rdlock): New macro/function.
30850         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30851         (glthread_rwlock_wrlock): New macro/function.
30852         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30853         (glthread_rwlock_unlock): New macro/function.
30854         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30855         (glthread_rwlock_destroy): New macro/function.
30856         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30857         (glthread_recursive_lock_init): New macro/function.
30858         (gl_recursive_lock_init): Define as wrapper around
30859         glthread_recursive_lock_init.
30860         (glthread_recursive_lock_lock): New macro/function.
30861         (gl_recursive_lock_lock): Define as wrapper around
30862         glthread_recursive_lock_lock.
30863         (glthread_recursive_lock_unlock): New macro/function.
30864         (gl_recursive_lock_unlock): Define as wrapper around
30865         glthread_recursive_lock_unlock.
30866         (glthread_recursive_lock_destroy): New macro/function.
30867         (gl_recursive_lock_destroy): Define as wrapper around
30868         glthread_recursive_lock_destroy.
30869         (glthread_once): New macro/function.
30870         (gl_once): Define as wrapper around glthread_once.
30871         Update function declarations.
30872         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30873         glthread_rwlock_init. Return error code.
30874         (glthread_rwlock_rdlock_multithreaded): Renamed from
30875         glthread_rwlock_rdlock. Return error code.
30876         (glthread_rwlock_wrlock_multithreaded): Renamed from
30877         glthread_rwlock_wrlock. Return error code.
30878         (glthread_rwlock_unlock_multithreaded): Renamed from
30879         glthread_rwlock_unlock. Return error code.
30880         (glthread_rwlock_destroy_multithreaded): Renamed from
30881         glthread_rwlock_destroy. Return error code.
30882         (glthread_recursive_lock_init_multithreaded): Renamed from
30883         glthread_recursive_lock_init. Return error code.
30884         (glthread_recursive_lock_lock_multithreaded): Renamed from
30885         glthread_recursive_lock_lock. Return error code.
30886         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30887         glthread_recursive_lock_unlock. Return error code.
30888         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30889         glthread_recursive_lock_destroy. Return error code.
30890         (glthread_once_call): Make static.
30891         (glthread_once_multithreaded): Renamed from glthread_once.
30892         * lib/tls.h: Include <errno.h>.
30893         (glthread_tls_key_init): New macro/function.
30894         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30895         (glthread_tls_set): New macro/function.
30896         (gl_tls_set): Define as wrapper around glthread_tls_set.
30897         (glthread_tls_key_destroy): New macro/function.
30898         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30899         Update function declarations.
30900         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30901         glthread_tls_get.
30902         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30903
30904 2008-08-04  Eric Blake  <ebb9@byu.net>
30905
30906         gnumakefile: use space, not TAB, outside of targets
30907         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30908
30909 2008-08-02  Jim Meyering  <meyering@redhat.com>
30910
30911         getdate.y: avoid locale-dependent date parsing failure
30912         In Turkish locales, getdate would fail to recognize keywords
30913         containing a lowercase "i".  The solution is not to rely on
30914         locale-sensitive case-conversion.
30915         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30916         (lookup_word): Use c_toupper in place of toupper.
30917         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30918         Reported by Vefa Bicakci <bicave@superonline.com> in
30919         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30920         * modules/getdate (Depends-on): Add c-ctype.
30921
30922 2008-08-02  Bruno Haible  <bruno@clisp.org>
30923
30924         * gnulib-tool (func_import): When updating or creating a .gitignore
30925         file, prepend each added line with a slash, and ignore leading slashes
30926         from the existing lines.
30927         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30928
30929 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30930
30931         Portability fix for GNU make 3.79.1.
30932         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30933         versions do not understand.
30934
30935 2008-08-01  Bruno Haible  <bruno@clisp.org>
30936
30937         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30938         * tests/test-isnanf.h (zero): New variable.
30939         (main): Avoid literal -0.0f.
30940         * tests/test-isnand.h (zero): New variable.
30941         (main): Avoid literal -0.0.
30942         * tests/test-isnanl.h (zero): New variable.
30943         (main): Avoid literal -0.0L.
30944         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30945         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30946         -0.0, -0.0L.
30947         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30948         (test_signbitd): Avoid literal -0.0.
30949         (test_signbitl): Avoid literal -0.0L.
30950         * tests/test-ceilf1.c (zero): New variable.
30951         (main): Avoid literal -0.0f.
30952         * tests/test-ceill.c (zero): New variable.
30953         (main): Avoid literal -0.0L.
30954         * tests/test-floorf1.c (zero): New variable.
30955         (main): Avoid literal -0.0f.
30956         * tests/test-floorl.c (zero): New variable.
30957         (main): Avoid literal -0.0L.
30958         * tests/test-roundf1.c (zero): New variable.
30959         (main): Avoid literal -0.0f.
30960         * tests/test-round1.c (zero): New variable.
30961         (main): Avoid literal -0.0.
30962         * tests/test-roundl.c (zero): New variable.
30963         (main): Avoid literal -0.0L.
30964         * tests/test-truncf1.c (zero): New variable.
30965         (main): Avoid literal -0.0f.
30966         * tests/test-trunc1.c (zero): New variable.
30967         (main): Avoid literal -0.0.
30968         * tests/test-truncl.c (zero): New variable.
30969         (main): Avoid literal -0.0L.
30970         * tests/test-frexp.c (zero): New variable.
30971         (main): Avoid literal -0.0.
30972         * tests/test-frexpl.c (zero): New variable.
30973         (main): Avoid literal -0.0L.
30974         * tests/test-ldexpl.c (zero): New variable.
30975         (main): Avoid literal -0.0L.
30976         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30977         (zerod, zerol): New variables.
30978         (test_function): Avoid literals -0.0, -0.0L.
30979         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30980         (zerod, zerol): New variables.
30981         (test_function): Avoid literals -0.0, -0.0L.
30982         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30983         (zerod, zerol): New variables.
30984         (test_function): Avoid literals -0.0, -0.0L.
30985         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30986         (zerod, zerol): New variables.
30987         (test_function): Avoid literals -0.0, -0.0L.
30988         * tests/test-strtod.c (zero): New variable.
30989         (main): Avoid literal -0.0.
30990         Reported by Jonathan C. Patschke <jp@centtech.com>.
30991
30992 2008-07-31  Jim Meyering  <meyering@redhat.com>
30993
30994         sha256.h: correct definition of SHA224_DIGEST_SIZE
30995         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30996         Reported by Paulie Pena IV <paulie4@gmail.com>.
30997         Define as 224 / 8, rather than as a literal.
30998         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30999         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
31000         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
31001
31002 2008-07-31  Bruno Haible  <bruno@clisp.org>
31003
31004         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
31005         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
31006         Reported by Jonathan Patschke <jp@centtech.com>.
31007
31008 2008-07-31  Bruno Haible  <bruno@clisp.org>
31009
31010         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
31011         Reported by Paolo Bonzini <bonzini@gnu.org>.
31012
31013 2008-07-30  Eric Blake  <ebb9@byu.net>
31014
31015         test-strtod: allow compilation without -lm
31016         * tests/test-strtod.c (main): Avoid link dependence on fabs.
31017         Reported by Dennis Clarke <blastwave@gmail.com>.
31018
31019 2008-07-28  Jim Meyering  <meyering@redhat.com>
31020
31021         bootstrap: work also when there are no .po files in po/
31022         * build-aux/bootstrap (update_po_files): Complete the change
31023         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
31024
31025 2008-07-27  Jim Meyering  <meyering@redhat.com>
31026
31027         * users.txt: Add zile.
31028
31029 2008-07-26  Ben Pfaff  <blp@gnu.org>
31030
31031         Add missing dependencies on new m4/exponent[fdl].m4 files.
31032         * modules/isnanf-nolibm: Add m4/exponentf.m4.
31033         * modules/isnand-nolibm: Add m4/exponentd.m4.
31034         * modules/isnanl-nolibm: Add m4/exponentl.m4.
31035         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
31036         m4/isnan[fdl].m4, because the macros actually used moved.
31037         Reported by Jim Meyering.
31038
31039 2008-07-14  Ben Pfaff  <blp@gnu.org>
31040
31041         Add isinf module.
31042         * lib/isinf.c: New file.
31043         * lib/math.in.h: Define isinf macro if we have decided to replace
31044         it.
31045         * m4/isinf.m4: New file.
31046         * m4/math_h.m4: Initialize and substitute variables for isinf
31047         module.
31048         * modules/isinf: New file.
31049         * modules/isinf-tests: New file.
31050         * modules/math: Add substitutions for new module.
31051         * tests/test-isinf.c: New file.
31052         * doc/posix-functions/isinf.texi: Mention new module.
31053         * MODULES.html.sh: Mention new module.
31054
31055 2008-07-14  Ben Pfaff  <blp@gnu.org>
31056
31057         Factor out some macros for use by additional modules.
31058         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
31059         exponentf.m4.
31060         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
31061         exponentd.m4.
31062         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
31063         file exponentl.m4.
31064         * m4/exponentf.m4: New file.
31065         * m4/exponentd.m4: New file.
31066         * m4/exponentl.m4: New file.
31067         * modules/isnanf: Use new file m4/exponentf.m4.
31068         * modules/isnand: Use new file m4/exponentd.m4.
31069         * modules/isnanl: Use new file m4/exponentl.m4.
31070
31071 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
31072
31073         mktime.c: normalize tp->tm_isdst value to -1/0/1.
31074         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
31075         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
31076         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
31077
31078         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
31079         readlink on platforms without PATH_MAX.
31080
31081 2008-07-21  Eric Blake  <ebb9@byu.net>
31082
31083         Warn, not fail, on stale version.
31084         * top/GNUmakefile (_curr-ver): Tone down previous patch.
31085
31086         Don't allow installation with stale devel version number.
31087         * top/GNUmakefile (_is-install-target): New macro.
31088         (_curr-ver): Forbid installation with stale version number.
31089
31090 2008-07-20  Bruno Haible  <bruno@clisp.org>
31091
31092         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
31093         TESTS_ENVIRONMENT.
31094         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
31095
31096 2008-07-20  Bruno Haible  <bruno@clisp.org>
31097
31098         * lib/c-stack.h (c_stack_action): Add documentation.
31099         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
31100
31101 2008-07-20  Bruno Haible  <bruno@clisp.org>
31102
31103         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
31104         * modules/readlink (License): Likewise.
31105
31106 2008-07-17  Eric Blake  <ebb9@byu.net>
31107
31108         * modules/c-stack (Link): Fix typo.
31109
31110         Make c-stack use libsigsegv, when available.
31111         * modules/c-stack (Depends-on): Add libsigsegv.
31112         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
31113         needed.
31114         * lib/c-stack.c (SIGSTKSZ): Define fallback.
31115         (segv_handler, overflow_handler, c_stack_action)
31116         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31117         implementation when libsigsegv is available, but only when using
31118         the library is necessary.
31119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31120         comment, explaining why XSI check fails on Linux.
31121         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31122         * tests/test-c-stack2.sh: Tweak skip message.
31123         * NEWS: Document new link-time requirements.
31124
31125 2008-07-16  Eric Blake  <ebb9@byu.net>
31126
31127         c-stack: Expose false positives when not using libsigsegv.
31128         * modules/c-stack-tests (Files): Expand test.
31129         * tests/test-c-stack.c (main): Add means to conditionally trigger
31130         non-overflow SIGSEGV.
31131         * tests/test-c-stack2.sh: New file.
31132
31133 2008-07-14  Bruno Haible  <bruno@clisp.org>
31134
31135         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31136         Reported by Eric Blake.
31137
31138 2008-07-14  Sam Steingold  <sds@gnu.org>
31139             Bruno Haible  <bruno@clisp.org>
31140
31141         New module libsigsegv.
31142         * modules/libsigsegv: New file.
31143         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31144         modifications.
31145         * MODULES.html.sh (Signal handling): New section.
31146
31147 2008-07-14  Bruno Haible  <bruno@clisp.org>
31148
31149         * modules/unictype/ctype-* (Description): Add the word "function".
31150         Improves the resulting doc in MODULES.html.
31151
31152 2008-07-12  Ben Pfaff  <blp@gnu.org>
31153
31154         Add longlong module.
31155         * modules/longlong: New file.
31156
31157 2008-07-12  Bruno Haible  <bruno@clisp.org>
31158
31159         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31160         to empty.
31161
31162 2008-07-10  Ben Pfaff  <blp@gnu.org>
31163
31164         Add isnan module.
31165         * doc/posix-functions/isnan.texi: Mention new module.
31166         * lib/math.in.h: Define isnan macro if we have decided to replace
31167         it.
31168         * m4/isnan.m4: New file.
31169         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31170         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31171         also.
31172         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31173         redundancy.
31174         * m4/math_h.m4: Initialize and substitute variables for isnan
31175         module.
31176         * modules/isnan: New file.
31177         * modules/isnan-tests: New file.
31178         * modules/math: Add substitutions for new module.
31179         * tests/test-isnan.c: New file.
31180         * MODULES.html.sh: Mention new module.
31181
31182 2008-07-10  Ben Pfaff  <blp@gnu.org>
31183
31184         Add isnanf module.
31185         * lib/isnanf.m4: New file.
31186         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31187         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31188         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31189         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31190         * modules/isnanf: New file.
31191         * modules/isnanf-tests: New file.
31192         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31193         files.
31194         * tests/test-isnanf-nolibm.c: factored most of its contents into
31195         new file tests/test-isnanf.h.
31196         * tests/test-isnanf.h: New file.
31197         * tests/test-isnanf.c: New file.
31198         * MODULES.html.sh: Mention new module.
31199         * doc/glibc-functions/isnanf.texi: Mention new module.
31200
31201 2008-07-10  Ben Pfaff  <blp@gnu.org>
31202
31203         Add isnand module.
31204         * lib/isnand.h: New file.
31205         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31206         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31207         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31208         functionality also.
31209         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31210         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31211         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31212         * modules/isnand: New file.
31213         * modules/isnand-tests: New file.
31214         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31215         files.
31216         * tests/test-isnand-nolibm.c: factored most of its contents into
31217         new file tests/test-isnand.h.
31218         * tests/test-isnand.h: New file.
31219         * tests/test-isnand.c: New file.
31220         * MODULES.html.sh: Mention new module.
31221
31222 2008-07-10  Ben Pfaff  <blp@gnu.org>
31223
31224         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31225         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31226         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31227         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31228         * modules/isnanf-nolibm: Update references to renamed files.
31229         * modules/isnand-nolibm: Likewise.
31230         * modules/isnanf-nolibm-tests: Likewise.
31231         * modules/isnand-nolibm-tests: Likewise.
31232         * lib/frexp.c: Likewise.
31233         * lib/isfinite.c: Likewise.
31234         * lib/signbitd.c: Likewise.
31235         * lib/signbitf.c: Likewise.
31236         * lib/vasnprintf.c: Likewise.
31237         * tests/test-ceilf1.c: Likewise.
31238         * tests/test-ceilf2.c: Likewise.
31239         * tests/test-floorf1.c: Likewise.
31240         * tests/test-floorf2.c: Likewise.
31241         * tests/test-frexp.c: Likewise.
31242         * tests/test-round1.c: Likewise.
31243         * tests/test-round2.c: Likewise.
31244         * tests/test-roundf1.c: Likewise.
31245         * tests/test-strtod.c: Likewise.
31246         * tests/test-trunc1.c: Likewise.
31247         * tests/test-trunc2.c: Likewise.
31248         * tests/test-truncf1.c: Likewise.
31249         * tests/test-truncf2.c: Likewise.
31250         * NEWS: Mention the renamed header files.
31251
31252 2008-07-11  Jim Meyering  <meyering@redhat.com>
31253
31254         vc-list-files: make the last-resort awk code more portable
31255         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31256         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31257         does not support it.
31258
31259 2008-07-10  Eric Blake  <ebb9@byu.net>
31260
31261         Work with tar's bootstrap.
31262         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31263         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31264         an m4 comment.
31265
31266 2008-07-09  Jim Meyering  <meyering@redhat.com>
31267
31268         posix-shell.m4: fix typo that made this test malfunction
31269         * m4/posix-shell.m4: Remove capitalization in variable name.
31270
31271 2008-07-08  Bruno Haible  <bruno@clisp.org>
31272
31273         * m4/onceonly.m4: Update comments.
31274         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31275
31276 2008-07-04  Jim Meyering  <meyering@redhat.com>
31277
31278         * users.txt: Add vc-dwim.
31279         (bison, coreutils): Use the gitweb URL.
31280
31281 2008-07-03  Jim Meyering  <meyering@redhat.com>
31282
31283         * users.txt: Add libffcall.  From Sam Steingold.
31284
31285 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31286
31287         getdate.y: do not ignore TZ with relative day, month or year offset
31288         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31289         relative-date-handling, since otherwise, the latter would clobber the
31290         sole output (an updated Start value) of the tz-handling block.
31291         * tests/test-getdate.c: Tests for the fix
31292
31293 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31294
31295         Recognize 'foo_LIBRARIES += libgnu.a'.
31296         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31297         makefile snippet has already specified an installation location,
31298         also using '+='.
31299
31300 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31301
31302         getdate.y: factor out common actions
31303         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31304         Use them in place of open-coded actions.
31305
31306 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31307
31308         Add self-test for getdate module.
31309         * modules/getdate-tests: New file.
31310         * tests/test-getdate.c: New file.
31311
31312 2008-06-29  Bruno Haible  <bruno@clisp.org>
31313
31314         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31315         .gitignore.
31316         Reported by Sylvain Beucler <beuc@beuc.net>.
31317
31318 2008-06-29  Bruno Haible  <bruno@clisp.org>
31319
31320         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31321         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31322
31323 2008-06-29  Bruno Haible  <bruno@clisp.org>
31324
31325         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31326         EXTRA_DIST.
31327         Reported by Sylvain Beucler <beuc@beuc.net>.
31328
31329 2008-06-26  Jim Meyering  <meyering@redhat.com>
31330
31331         make several modules depend on the "open" module
31332         This provides slightly increased consistency when opening-for-write
31333         the name of a non-directory spelled with a trailing slash.
31334         * modules/chdir-safer: Likewise.
31335         * modules/chown: Likewise.
31336         * modules/clean-temp: Likewise.
31337         * modules/copy-file: Likewise.
31338         * modules/fchdir: Likewise.
31339         * modules/fcntl-safer: Likewise.
31340         * modules/pipe: Likewise.
31341         * modules/utime: Likewise.
31342         Prompted by Eric Blake and Bruno Haible.
31343
31344 2008-06-24  Andreas Schwab  <schwab@suse.de>
31345
31346         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31347         literals can be used as initializers for global variables.
31348
31349 2008-06-23  Eric Blake  <ebb9@byu.net>
31350
31351         Make gnulib-cache.m4 easier to diff.
31352         * gnulib-tool (func_import): Allow newlines when reading cached
31353         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31354
31355 2008-06-23  Bruno Haible  <bruno@clisp.org>
31356
31357         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31358         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31359         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31360         m4/signalblocking.m4.
31361         (gl_PREREQ_SIGACTION): Don't invoke it.
31362         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31363         gl_PREREQ_SIG_HANDLER_H.
31364         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31365         Don't check for sigaction here.
31366
31367 2008-06-23  Bruno Haible  <bruno@clisp.org>
31368
31369         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31370         (install_handlers): Don't set the SA_RESETHAND flag.
31371
31372 2008-06-23  Bruno Haible  <bruno@clisp.org>
31373
31374         * m4/sigaction.m4: Comment fixes.
31375         * lib/signal.in.h: Likewise.
31376
31377 2008-06-23  Eric Blake  <ebb9@byu.net>
31378
31379         Fix typo.
31380         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31381
31382         Avoid SA_ namespace.
31383         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31384         Reported by Ralf Wildenhues.
31385
31386         Avoid test failure due to SA_RESTORER.
31387         * tests/test-sigaction.c (SA_MASK): New macro.
31388         (main): Avoid failing due to extension flags being set.
31389         Reported by Jim Meyering.
31390
31391         Revert use of sig-handler.h in sigprocmask.c.
31392         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31393         it requires the existence of struct sigaction.
31394         * lib/sigprocmask.c (handler_t): Restore typedef.
31395         (rpl_signal, old_handlers): Use local type.
31396
31397 2008-06-22  Bruno Haible  <bruno@clisp.org>
31398
31399         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31400         conditionally.
31401         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31402
31403 2008-06-22  Bruno Haible  <bruno@clisp.org>
31404
31405         * doc/posix-functions/siginterrupt.texi: Move note.
31406
31407         * lib/signal.in.h (SA_RESTART): New macro.
31408         * lib/sigaction.c: Update comment.
31409
31410         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31411
31412         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31413         (gl_PREREQ_SIGPROCMASK): Invoke it.
31414         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31415
31416         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31417
31418         * lib/sigprocmask.c: Update a comment.
31419
31420 2008-06-21  Eric Blake  <ebb9@byu.net>
31421
31422         Use sigaction module rather than signal().
31423         * modules/c-stack (Depends-on): Add sigaction.
31424         * modules/fatal-signal (Depends-on): Likewise.
31425         * modules/nanosleep (Depends-on): Likewise.
31426         * modules/sigprocmask (Files): Add sig-handler.h.
31427         * modules/sigaction (Files): Likewise.
31428         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31429         Eggert.
31430         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31431         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31432         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31433         (init_fatal_signals): Likewise.
31434         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31435         (siginterrupt): Delete fallback.
31436         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31437         instead.
31438         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31439         siginterrupt.
31440
31441         New module sigaction, for mingw.
31442         * modules/sigaction: New module...
31443         * modules/sigaction-tests: ...and its test.
31444         * m4/sigaction.m4: New file.
31445         * lib/sigaction.c: Likewise.
31446         * tests/test-sigaction.c: Likewise.
31447         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31448         * modules/signal (Makefile.am): Likewise.
31449         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31450         needed.
31451         * doc/posix-headers/signal.texi (signal.h): Mention provided
31452         types.
31453         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31454         that sigaction is preferable.
31455         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31456         module.
31457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31458         sigaction.
31459
31460         Improve robustness of sigprocmask by overriding signal.
31461         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31462         is in use.
31463         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31464         (SIGKILL, SIGSTOP): Provide fallbacks.
31465         (rpl_signal): Implement.
31466         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31467         signal can be called inside handlers.
31468
31469         Fix nanosleep module on mingw.
31470         * modules/nanosleep (Depends-on): Add sys_select.
31471         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31472
31473         Fix licensing of sigprocmask.
31474         * modules/raise (License): Relicense as LGPL.
31475
31476 2008-06-21  Bruno Haible  <bruno@clisp.org>
31477
31478         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31479         result if it contains question marks.
31480         Reported by Michael Geng <linux@michaelgeng.de>.
31481
31482 2008-06-19  Bruno Haible  <bruno@clisp.org>
31483
31484         Fix CVS-ism.
31485         * doc/gnulib.texi: Include updated-stamp.texi.
31486         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31487         (updated-stamp.texi): New rule.
31488         (gnulib.info): Depend on it.
31489         * doc/.gitignore: Add updated-stamp.texi.
31490         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31491
31492 2008-06-19  Bruno Haible  <bruno@clisp.org>
31493
31494         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31495         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31496
31497 2008-06-19  Eric Blake  <ebb9@byu.net>
31498
31499         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31500         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31501         Reported by Stepan Kasal.
31502
31503 2008-06-18  Bruno Haible  <bruno@clisp.org>
31504
31505         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31506         Reported by Eric Blake.
31507
31508 2008-06-18  Eric Blake  <ebb9@byu.net>
31509
31510         Work around cygwin 1.5.25 strsignal bug.
31511         * tests/test-strsignal.c: Allow for const char *.
31512         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31513
31514 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31515
31516         * users.txt: Update URL to article and add author/date
31517         information.
31518
31519 2008-06-17  Bruno Haible  <bruno@clisp.org>
31520
31521         New macro gl_DISABLE_THREADS.
31522         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31523         if the user did not pass --enable-threads or --disable-threads option.
31524         (gl_DISABLE_THREADS): New macro.
31525         Reported by Eric Blake <ebb9@byu.net>.
31526
31527 2008-06-17  Bruno Haible  <bruno@clisp.org>
31528
31529         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31530         when the macro ignores it.
31531         Based on a patch by Eric Blake <ebb9@byu.net>.
31532
31533 2008-06-17  Bruno Haible  <bruno@clisp.org>
31534
31535         * modules/tls (License): Change to LGPLv2+.
31536         Reported by Eric Blake.
31537
31538 2008-06-17  Eric Blake  <ebb9@byu.net>
31539
31540         Simplify c-stack prerequisites.
31541         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31542         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31543         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31544         check.
31545         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31546         <sys/resource.h>.
31547
31548         Move c-stack test into testsuite.
31549         * modules/c-stack-tests: New file.
31550         * lib/c-stack.c [DEBUG]: Move test program...
31551         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31552         fail test if sigaltstack is lacking.
31553         * tests/test-c-stack.sh: New driver file.
31554
31555 2008-06-16  Eric Blake  <ebb9@byu.net>
31556
31557         Use raise module consistently.
31558         * modules/fatal-signal (Depends-on): Add raise.
31559         * modules/sigprocmask (Depends-on): Likewise.
31560         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31561         * lib/sigprocmask.c (sigprocmask): Likewise.
31562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31564
31565         Fix compliance bug in sigpending.
31566         * lib/sigprocmask.c (sigpending): Return pending array via
31567         parameter, not return value.
31568
31569 2008-06-14  Eric Blake  <ebb9@byu.net>
31570
31571         Improve obstack-printf test code.
31572         * tests/test-obstack-printf.c (test_function): Fix comment, and
31573         simplify usage of obstack_* in macros.  Add a test for coverage.
31574         Reported by Bruno Haible.
31575
31576 2008-06-14  Bruno Haible  <bruno@clisp.org>
31577
31578         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31579         array size as a constant, not as a const variable.
31580         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31581         AC_USE_SYSTEM_EXTENSIONS.
31582         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31583         Test whether the obstack_printf function actually exists.
31584         * modules/obstack-printf (Depends-on): Add extensions.
31585         (Include): Remove obstack.h.
31586         * modules/obstack-printf-posix (Depends-on): Add extensions.
31587         (Include): Remove obstack.h.
31588
31589 2008-06-13  Eric Blake  <ebb9@byu.net>
31590
31591         Add obstack-printf and obstack-printf-posix modules.
31592         * modules/obstack-printf: New file.
31593         * modules/obstack-printf-posix: Likewise.
31594         * MODULES.html.sh (Misc): Mention them.
31595         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31596         Likewise.
31597         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31598         Likewise.
31599         * modules/stdio (Makefile.am): Accomodate new modules.
31600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31601         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31602         Declare.
31603         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31604         functions.
31605         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31606         (gl_REPLACE_OBSTACK_PRINTF): New macros
31607         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31608         * tests/test-obstack-printf.c: New file.
31609         * modules/obstack-printf-tests: Likewise.
31610         * modules/obstack-printf-posix-tests: Likewise.
31611
31612 2008-06-11  Bruno Haible  <bruno@clisp.org>
31613
31614         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31615         * lib/open.c: Include errno.h.
31616         (open): Fail when attempting to write to a file that has a trailing
31617         slash.
31618         * tests/test-open.c (main): Test against trailing slash bug.
31619         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31620
31621 2008-06-10  Bruno Haible  <bruno@clisp.org>
31622
31623         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31624         for $? to work inside the trap command, with various /bin/sh-s.
31625         * tests/test-vc-list-files-cvs.sh: Likewise.
31626
31627 2008-06-10  Bruno Haible  <bruno@clisp.org>
31628
31629         * lib/acl-internal.h: Don't include gettext.h here.
31630         * lib/set-mode-acl.c: Include gettext.h here.
31631         * lib/copy-acl.c: Likewise.
31632
31633 2008-06-10  Bruno Haible  <bruno@clisp.org>
31634
31635         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31636         * lib/wait-process.c (wait_subprocess): Likewise.
31637         * lib/execute.h (execute): Add termsigp argument.
31638         * lib/execute.c (execute): Likewise.
31639         * lib/csharpcomp.c (compile_csharp_using_pnet,
31640         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31641         * lib/csharpexec.c (execute_csharp_using_pnet,
31642         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31643         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31644         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31645         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31646         is_jikes_present): Update.
31647         * lib/javaexec.c (execute_java_class): Update.
31648         * lib/javaversion.c (execute_and_read_line): Update.
31649         * NEWS: Document the changes.
31650         Reported by Eric Blake.
31651
31652 2008-06-10  Eric Blake  <ebb9@byu.net>
31653
31654         Add missing include.
31655         * tests/test-strstr.c (includes): Add <signal.h>.
31656         * tests/test-strcasestr.c (includes): Likewise.
31657         * tests/test-memmem.c (includes): Likewise.
31658
31659 2008-06-10  Bruno Haible  <bruno@clisp.org>
31660
31661         * lib/wait-process.c (wait_subprocess): Add an assertion.
31662
31663 2008-06-10  Bruno Haible  <bruno@clisp.org>
31664
31665         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31666
31667 2008-06-10  Bruno Haible  <bruno@clisp.org>
31668
31669         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31670         using alarm().
31671         * tests/test-strcasestr.c (main): Likewise.
31672         * tests/test-strstr.c (main): Likewise.
31673
31674 2008-06-09  Bruno Haible  <bruno@clisp.org>
31675
31676         Work around the Solaris 10 ACE ACLs ABI change.
31677         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31678         declare if ACL_NO_TRIVIAL is present.
31679         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31680         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31681         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31682         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31683         define if ACL_NO_TRIVIAL is present.
31684         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31685         and use the current ABI.
31686         (file_has_acl): Use same #if condition as elsewhere.
31687         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31688         in use, and use the current ABI.
31689         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31690         Reported by Jim Meyering.
31691
31692 2008-06-09  Eric Blake  <ebb9@byu.net>
31693
31694         Work around environments that (stupidly) ignore SIGALRM.
31695         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31696         before using alarm().
31697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31698         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31699         Reported by Ian Beckwith <ianb@erislabs.net>.
31700
31701         Produce autobuild blurb earlier in log.
31702         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31703
31704 2008-06-09  Jim Meyering  <meyering@redhat.com>
31705         and OndÅ™ej Vašík  <ovasik@redhat.com>
31706
31707         utimens.c: correct kernel bug work-around
31708         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31709         failure, not success, and the kernel bug we're trying to work
31710         around affects not just the utimensat call, but also the fallback
31711         futimens call.
31712         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31713         not success.
31714         [HAVE_FUTIMENS]: Use the same work-around, here.
31715
31716 2008-06-09  Jim Meyering  <meyering@redhat.com>
31717
31718         add more guards around definition of ACE_-related code
31719         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31720         ALLOW and ACE_OWNER are also defined.
31721
31722 2008-06-08  Bruno Haible  <bruno@clisp.org>
31723
31724         * lib/acl-internal.h: Add me as co-author.
31725         * lib/file-has-acl.c: Likewise.
31726         * lib/set-mode-acl.c: Likewise.
31727         * lib/copy-acl.c: Likewise.
31728
31729 2008-06-08  Bruno Haible  <bruno@clisp.org>
31730
31731         Add support for AIX ACLs.
31732         * lib/acl-internal.h (acl_nontrivial): New declaration.
31733         * lib/file-has-acl.c (acl_nontrivial): New function.
31734         (file_has_acl): Add implementation using AIX 4 ACL API.
31735         * lib/set-mode-acl.c (qset_acl): Likewise.
31736         * lib/copy-acl.c (qcopy_acl): Likewise.
31737
31738 2008-06-08  Bruno Haible  <bruno@clisp.org>
31739
31740         Add support for HP-UX ACLs.
31741         * lib/acl-internal.h (acl_nontrivial): New declaration.
31742         * lib/file-has-acl.c (acl_nontrivial): New function.
31743         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31744         * lib/set-mode-acl.c (qset_acl): Likewise.
31745         * lib/copy-acl.c (qcopy_acl): Likewise.
31746
31747 2008-06-08  Bruno Haible  <bruno@clisp.org>
31748
31749         Add support for Cygwin ACLs.
31750         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31751         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31752         the chmod_or_fchmod call.
31753         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31754
31755 2008-06-08  Bruno Haible  <bruno@clisp.org>
31756
31757         Fix bug with setuid modes in Solaris 10+ code.
31758         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31759         succeeded, when the mode contains some special bits.
31760
31761 2008-06-08  Bruno Haible  <bruno@clisp.org>
31762
31763         Add support for Solaris 7..10 ACLs.
31764         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31765         declarations.
31766         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31767         functions.
31768         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31769         * lib/set-mode-acl.c (qset_acl): Likewise.
31770         * lib/copy-acl.c (qcopy_acl): Likewise.
31771
31772 2008-06-08  Bruno Haible  <bruno@clisp.org>
31773
31774         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31775         declaration.
31776         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31777         (acl_access_nontrivial): Remove MacOS X case.
31778         (file_has_acl): Use acl_extended_nontrivial.
31779         * lib/copy-acl.c (qcopy_acl): Likewise.
31780
31781 2008-06-08  Bruno Haible  <bruno@clisp.org>
31782
31783         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31784
31785 2008-06-08  Jim Meyering  <meyering@redhat.com>
31786
31787         * modules/acl (Maintainer): Add Bruno Haible.
31788
31789 2008-06-07  Bruno Haible  <bruno@clisp.org>
31790
31791         Improve support for Tru64 ACLs.
31792         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31793         ACL on OSF/1.
31794
31795 2008-06-07  Bruno Haible  <bruno@clisp.org>
31796
31797         Add support for MacOS X ACLs.
31798         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31799         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31800         * lib/set-mode-acl.c (qset_acl): Likewise.
31801         * lib/copy-acl.c (qcopy_acl): Likewise.
31802
31803 2008-06-07  Bruno Haible  <bruno@clisp.org>
31804
31805         Fix memory leak introduced on 2008-05-22.
31806         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31807         use.
31808
31809 2008-06-07  Bruno Haible  <bruno@clisp.org>
31810
31811         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31812         to construct an empty ACL.
31813
31814 2008-06-07  Bruno Haible  <bruno@clisp.org>
31815
31816         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31817         precisely.
31818         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31819
31820 2008-06-07  Bruno Haible  <bruno@clisp.org>
31821
31822         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31823         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31824
31825 2008-06-07  Bruno Haible  <bruno@clisp.org>
31826
31827         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31828         regardless of POSIX.
31829         * doc/posix-functions/_longjmp.texi: Likewise.
31830         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31831         SystemV platform in this case.
31832
31833 2008-06-06  Eric Blake  <ebb9@byu.net>
31834
31835         Document abort() bugs.
31836         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31837
31838         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31839         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31840         sigsetjmp.
31841         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31842         siglongjmp, but only as a macro.
31843         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31844         is obsolete.
31845         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31846
31847         Tweak documentation to cover cygwin argz bugs.
31848         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31849         argz bug fix; no code change needed since no cygwin releases
31850         occurred between the last fix and the bug being tested.
31851         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31852         module and recently fixed cygwin bugs.
31853         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31854         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31855         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31856         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31857         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31858         Likewise.
31859         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31860         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31861         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31862         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31863         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31864         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31865         Likewise.
31866
31867         Avoid gcc warning on cygwin.
31868         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31869         !ACL_NO_TRIVIAL]: Avoid unused variable.
31870
31871 2008-06-05  Eric Blake  <ebb9@byu.net>
31872
31873         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31874         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31875         git-version-gen fails to come up with a version.
31876         Reported by Simon Josefsson.
31877
31878 2008-06-05  Jim Meyering  <meyering@redhat.com>
31879             Paul Eggert  <eggert@cs.ucla.edu>
31880
31881         utimens.c: work around a probable Linux kernel bug
31882         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31883         appears to be a kernel bug that causes utimensat to return 280
31884         instead of 0, indicating success.
31885
31886 2008-06-04  Bruno Haible  <bruno@clisp.org>
31887
31888         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31889         2008-06-01 commit.
31890
31891 2008-06-04  Bruno Haible  <bruno@clisp.org>
31892
31893         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31894         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31895         (file_has_acl): Use it. Save errno afterwards.
31896         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31897
31898 2008-06-03  Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31901         draft code. Simplify #ifs.
31902         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31903         Put Solaris code after POSIX-draft code. Fix comments regarding
31904         Solaris 10, HP-UX. Mention Cygwin.
31905         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31906
31907 2008-06-03  Eric Blake  <ebb9@byu.net>
31908
31909         Provide fallback for older kernels.
31910         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31911         Provide runtime fallback if kernel lacks support.
31912         Reported by Mike Frysinger.
31913
31914 2008-06-02  Bruno Haible  <bruno@clisp.org>
31915
31916         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31917         it exists.
31918
31919 2008-06-02  Bruno Haible  <bruno@clisp.org>
31920
31921         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31922         * lib/copy-acl.c (qcopy_acl): Update comment.
31923
31924 2008-06-02  Bruno Haible  <bruno@clisp.org>
31925
31926         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31927         like ACL APIs.
31928
31929 2008-06-02  Bruno Haible  <bruno@clisp.org>
31930
31931         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31932         * tests/test-set-mode-acl.sh: Likewise.
31933         * tests/test-copy-acl.sh: Likewise.
31934         * tests/test-copy-file.sh: Likewise.
31935
31936 2008-06-02  Bruno Haible  <bruno@clisp.org>
31937
31938         * tests/test-file-has-acl.sh: Remove unused code.
31939
31940 2008-06-01  Bruno Haible  <bruno@clisp.org>
31941
31942         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31943         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31944         messages.
31945         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31946
31947 2008-06-01  Bruno Haible  <bruno@clisp.org>
31948
31949         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31950         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31951         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31952         APIs.
31953         * modules/acl-tests (configure.ac): Remove tests now contained in
31954         m4/acl.m4.
31955
31956 2008-06-02  Jim Meyering  <meyering@redhat.com>
31957
31958         announce-gen: use a better key-server host name
31959         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31960         it may be more consistently reliable.  Suggested by Werner Koch
31961         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31962
31963 2008-06-01  Bruno Haible  <bruno@clisp.org>
31964
31965         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31966         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31967
31968 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31969
31970         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31971
31972 2008-06-01  Bruno Haible  <bruno@clisp.org>
31973
31974         New ACL tests.
31975         * tests/test-file-has-acl.sh: New file.
31976         * tests/test-file-has-acl.c: New file.
31977         * tests/test-set-mode-acl.sh: New file.
31978         * tests/test-set-mode-acl.c: New file.
31979         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31980         * tests/test-copy-acl.c: New file.
31981         * modules/acl-tests: New file, based on modules/copy-file-tests.
31982         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31983         (Depends-on): Add acl-tests.
31984         (configure.ac): Remove checks.
31985         (Makefile.am): Don't create test-sameacls program here any more.
31986
31987 2008-06-01  Bruno Haible  <bruno@clisp.org>
31988
31989         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31990         * tests/test-sameacls.c: Include progname.h.
31991         (main): Invoke set_program_name. Portability fixes for MacOS X,
31992         Solaris, HP-UX.
31993
31994 2008-06-01  Bruno Haible  <bruno@clisp.org>
31995
31996         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31997         function.
31998         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31999
32000 2008-06-01  Bruno Haible  <bruno@clisp.org>
32001
32002         * modules/rpmatch (Depends-on): Add strdup.
32003
32004 2008-06-01  Bruno Haible  <bruno@clisp.org>
32005
32006         * lib/pipe.c: Include unistd-safer.h.
32007         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
32008         * modules/pipe (Depends-on): Add unistd-safer.
32009
32010 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32011
32012         * modules/autobuild (configure.ac): Call AB_INIT.
32013
32014 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32015
32016         * tests/test-getaddrinfo.c: Don't print debug messages by default.
32017         Suggested by Bruno Haible <bruno@clisp.org>.
32018
32019 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32020
32021         * tests/test-base64.c: Cast size_t to unsigned long when invoking
32022         printf.  Use %lu instead of %d.  Reported by Bruno Haible
32023         <bruno@clisp.org>.
32024
32025 2008-05-29  Eric Blake  <ebb9@byu.net>
32026
32027         Prefer new POSIX 200x interfaces over futimesat.
32028         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
32029         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
32030         when available.
32031         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
32032
32033 2008-05-28  Bruno Haible  <bruno@clisp.org>
32034
32035         * modules/stpcpy (License): Change to LGPLv2+.
32036         Requested by David Lutterkort <dlutter@redhat.com>.
32037
32038 2008-05-27  Bruno Haible  <bruno@clisp.org>
32039
32040         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
32041         current mingw.
32042         Reported by Jose E. Marchesi <jemarch@gnu.org>.
32043
32044 2008-05-27  Bruno Haible  <bruno@clisp.org>
32045
32046         * modules/iconv_open (Link): New section, from module 'iconv'.
32047         * modules/striconv (Link): Likewise.
32048         * modules/striconveh (Link): Likewise.
32049         * modules/xstriconv (Link): Likewise.
32050         * modules/unicodeio (Link): Likewise.
32051         * modules/propername (Link): Likewise.
32052         Reported by Jim Meyering.
32053
32054 2008-05-26  Jim Meyering  <meyering@redhat.com>
32055
32056         sha256: do not artificially restrict buffer length to be < 2^32
32057         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
32058         uint32_t to size_t.
32059         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
32060         to match.
32061
32062         avoid unaligned access errors, e.g., on sparc
32063         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
32064         direct access through a possibly-unaligned uint64* pointer.
32065         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
32066         direct access through a possibly-unaligned uint32* pointer.
32067         Prompted by this patch from Tom "spot" Callaway:
32068         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
32069
32070         sha512.c: fix typo in comment
32071         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
32072
32073 2008-05-25  Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/set-mode-acl.c: Renamed from lib/acl.c.
32076         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
32077         (Makefile.am): Update lib_SOURCES.
32078
32079 2008-05-25  Bruno Haible  <bruno@clisp.org>
32080
32081         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
32082
32083 2008-05-25  Jim Meyering  <meyering@redhat.com>
32084
32085         useless-if-before-free: freed expr may have white-space differences
32086         * build-aux/useless-if-before-free: Recognize cases in which the
32087         freed expression differs from the tested one in embedded white
32088         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
32089         $1 was used, so we can't make any regexp shy.  Improved tests now
32090         detect this.
32091
32092         useless-if-before-free: accept white space in the expression.
32093         * build-aux/useless-if-before-free: For now, any white space
32094         in the expression must be identical in the free argument.
32095
32096         useless-if-before-free: efficiency tweak
32097         * build-aux/useless-if-before-free: Make the expression-matching
32098         regexp "shy".
32099         Make the *outer* regexp shy, not the expr-matching one.
32100
32101         update code-in-comment to accept cast of free arg
32102         * build-aux/useless-if-before-free: Update regexp.
32103
32104 2008-05-25  Bruno Haible  <bruno@clisp.org>
32105
32106         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
32107         * modules/copy-file-tests (Files, Makefile.am): Update.
32108         * tests/test-copy-file.c (func_test_copy): Update.
32109
32110 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
32111
32112         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
32113
32114 2008-05-23  Bruno Haible  <bruno@clisp.org>
32115
32116         Improve support for ACLs on OSF/1.
32117         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32118         Remove fallback for unknown flavors of ACLs.
32119
32120 2008-05-22  Bruno Haible  <bruno@clisp.org>
32121
32122         Add support for ACLs on OSF/1.
32123         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32124         replacements.
32125         (acl_free_text): New macro fallback.
32126         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32127         acl_free.
32128         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32129         acl_free_text function. Require AC_C_INLINE.
32130
32131 2008-05-22  Bruno Haible  <bruno@clisp.org>
32132
32133         Make copy_acl work on MacOS X 10.5.
32134         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32135         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32136         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32137         If MODE_INSIDE_ACL, don't assume that every system has the same text
32138         representation for ACLs as FreeBSD.
32139         * lib/copy-acl.c (copy_acl): Add support for platforms with
32140         !MODE_INSIDE_ACL.
32141         * lib/file-has-acl.c (file_has_acl): Likewise.
32142         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32143         FreeBSD, MacOS X, or IRIX, respectively.
32144
32145 2008-05-22  Bruno Haible  <bruno@clisp.org>
32146
32147         * lib/acl.h: Don't include <sys/acl.h>.
32148         (GETACLCNT): Move fallback to lib/acl-internal.h.
32149         * lib/acl-internal.h: Include <sys/acl.h> here.
32150         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32151
32152 2008-05-22  Bruno Haible  <bruno@clisp.org>
32153
32154         Split off copy_acl function to separate file.
32155         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32156         * lib/acl.c (copy_acl): Moved function to separate file.
32157         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32158         * modules/acl (Files): Add lib/copy-acl.c.
32159         (Makefiles.am): Augment lib_SOURCES.
32160
32161 2008-05-22  Bruno Haible  <bruno@clisp.org>
32162
32163         * modules/copy-file-tests: New file.
32164         * tests/test-copy-file.sh: New file.
32165         * tests/test-copy-file.c: New file.
32166         * tests/test-copy-file-sameacls.c: New file.
32167
32168 2008-05-22  Eric Blake  <ebb9@byu.net>
32169
32170         Avoid gcc warning.
32171         * tests/test-memcmp.c (main): Pass NULL indirectly.
32172
32173 2008-05-21  Bruno Haible  <bruno@clisp.org>
32174
32175         Add reference doc about ACLs.
32176         * doc/acl-resources.txt: New file.
32177         * doc/acl-cygwin.txt: New file.
32178
32179 2008-05-21  Bruno Haible  <bruno@clisp.org>
32180
32181         Avoid one more warning from gcc.
32182         * lib/vasnprintf.c (IF_LINT): Update comments.
32183         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32184
32185 2008-05-21  Jim Meyering  <meyering@redhat.com>
32186
32187         avoid a warning from gcc
32188         * lib/vasnprintf.c (IF_LINT): Define.
32189         (scale10_round_decimal_long_double):
32190         Use it to avoid a "may be used uninitialized" warning.
32191         (scale10_round_decimal_double): Likewise.
32192
32193 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32194
32195         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32196         declared.
32197
32198 2008-05-20  Bruno Haible  <bruno@clisp.org>
32199
32200         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32201         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32202
32203 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32204
32205         * modules/memcmp-tests: New file.
32206         * tests/test-memcmp.c: New file.
32207
32208 2008-05-19  Bruno Haible  <bruno@clisp.org>
32209
32210         * modules/propername (Notice, configure.ac): Put quoted "..." into
32211         --keyword option.
32212         * lib/propername.h: Update comments accordingly.
32213         Reported by Eric Blake.
32214
32215 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32216
32217         * modules/getpass-gnu (Depends-on): Add fseeko.
32218
32219 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32220
32221         * modules/base64-tests: New file.
32222
32223 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32224
32225         * lib/base64.c (base64_decode_ctx): If a decode context structure
32226         was passed in use it to ignore newlines.  If a context structure
32227         was _not_ passed in, continue to treat newlines as garbage (this
32228         is the historical behavior).  Formerly base64_decode.
32229         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32230         takes a decode context structure.
32231         * lib/base64.h (base64_decode): Macro for four-argument calls.
32232         (base64_decode_alloc): Likewise.
32233         * lib/base64.c (base64_decode_ctx): If a decode context structure
32234         was passed in use it to ignore newlines.  If a context structure
32235         was _not_ passed in, continue to treat newlines as garbage (this
32236         is the historical behavior).  Formerly base64_decode.
32237         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32238         takes a decode context structure.
32239         * lib/base64.h (base64_decode): Macro for four-argument calls.
32240         (base64_decode_alloc): Likewise.
32241
32242 2008-05-19  Jim Meyering  <meyering@redhat.com>
32243
32244         avoid a warning from gcc
32245         * lib/trim.c (IF_LINT): Define.
32246         (trim2): Use it to avoid a "may be used uninitialized" warning.
32247
32248         Fix doc typo.
32249         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32250
32251 2008-05-19  Bruno Haible  <bruno@clisp.org>
32252
32253         * doc/glibc-functions/getpass.texi: Document limits of other
32254         implementations.
32255
32256 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32257             Bruno Haible <bruno@clisp.org>
32258
32259         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32260
32261 2008-05-18  Bruno Haible  <bruno@clisp.org>
32262
32263         * modules/propername: New file, from GNU gettext.
32264         * lib/propername.h: New file, from GNU gettext.
32265         * lib/propername.c: New file, from GNU gettext.
32266         * MODULES.html.sh (Internationalization functions): Add propername.
32267
32268 2008-05-16  Jim Meyering  <meyering@redhat.com>
32269             Bruno Haible  <bruno@clisp.org>
32270
32271         Avoid some warnings from "gcc -Wshadow".
32272         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32273
32274 2008-05-15  Eric Blake  <ebb9@byu.net>
32275
32276         Extend previous patch to cygwin 1.7.0.
32277         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32278         fast implementation in cygwin >= 1.7.0.
32279         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32281
32282 2008-05-15  Bruno Haible  <bruno@clisp.org>
32283
32284         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32285         implementation in glibc >= 2.9.
32286         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32288
32289 2008-05-15  Bruno Haible  <bruno@clisp.org>
32290
32291         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32292         (Unicode string functions): Add unilbrk/*.
32293         Reported by Karl Berry.
32294
32295 2008-05-15  Eric Blake  <ebb9@byu.net>
32296
32297         Fix violation of <stdbool.h> replacement in regex.
32298         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32299         * lib/regexec.c (re_search_internal): Likewise.
32300         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32301
32302 2008-05-15  Jim Meyering  <meyering@redhat.com>
32303
32304         avoid distracting test output when git or cvs is not found
32305         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32306         * tests/test-vc-list-files-git.sh: Likewise.
32307
32308 2008-05-15  Eric Blake  <ebb9@byu.net>
32309
32310         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32311         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32312         glibc version.
32313         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32314         * doc/posix-functions/strstr.texi (strstr): Likewise.
32315         * lib/str-two-way.h (MAX): Sychronize with glibc.
32316
32317 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32318
32319         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32320         opr.ctx_type.
32321         (calc_first): Initialize constraint field.
32322         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32323         Fix grammar.
32324         (duplicate_node): Merge constraint field for all node types.
32325         (calc_eclosure_iter): Look at constraint field for all node types.
32326         * lib/regex_internal.c (create_cd_newstate): Don't look at
32327         opr.ctx_type.
32328
32329 2008-05-14  Bruno Haible  <bruno@clisp.org>
32330
32331         Help GCC to do better code generation.
32332         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32333         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32334         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32335         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32336         Declare with attribute 'malloc' if supported.
32337
32338 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32339
32340         use "echo STR|wc -c" rather than unportable "expr length STR"
32341         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32342         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32343
32344 2008-05-14  Jim Meyering  <meyering@redhat.com>
32345
32346         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32347         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32348         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32349         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32350         via Collin Lasse.
32351
32352 2008-05-14  Eric Blake  <ebb9@byu.net>
32353
32354         Avoid quadratic growth in gl_LIBSOURCES.
32355         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32356         Suggested by Bruno Haible.
32357
32358         Test xmemdup0.
32359         * modules/xmemdup0-tests: New file.
32360         * tests/test-xmemdup0.c: Likewise.
32361
32362 2008-05-13  Eric Blake  <ebb9@byu.net>
32363
32364         Split xmemdup0 into its own module.
32365         * modules/xmemdup0: New file.
32366         * lib/xmemdup0.h: Likewise.
32367         * lib/xmemdup0.c: Likewise.
32368         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32369         * lib/xalloc.h (xmemdup0): Remove.
32370         * lib/xmalloc.c (xmemdup0): Likewise.
32371
32372 2008-05-13  Eric Blake  <ebb9@byu.net>
32373             Bruno Haible  <bruno@clisp.org>
32374
32375         Reduce number of forks required during autoconf.
32376         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32377         and gl_LIBSOURCES_DIR.
32378         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32379         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32380         m4_syscmd per file.
32381         <m4_foreach_w>: Move...
32382         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32383
32384 2008-05-13  Eric Blake  <ebb9@byu.net>
32385
32386         * gnulib-tool: Fix various comment typos.
32387
32388 2008-05-12  Bruno Haible  <bruno@clisp.org>
32389
32390         Tailor the linebreaking algorithm.
32391         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32392
32393 2008-05-12  Bruno Haible  <bruno@clisp.org>
32394
32395         Update to Unicode 5.0.0.
32396         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32397         LBP_JV, LBP_JT. Redistribute values.
32398         (unilbrk_table): Change size.
32399         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32400         Unicode TR#14 rev. 22.
32401         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32402         LBP_JV, LBP_JT. Redistribute values.
32403         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32404         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32405         Update.
32406         * lib/unilbrk/lbrkprop1.h: Regenerated.
32407         * lib/unilbrk/lbrkprop2.h: Regenerated.
32408         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32409         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32410         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32411         Likewise.
32412         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32413         Likewise.
32414         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32415         result.
32416         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32417         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32418         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32419         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32420         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32421         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32422
32423 2008-05-11  Bruno Haible  <bruno@clisp.org>
32424
32425         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32426
32427 2008-05-11  Bruno Haible  <bruno@clisp.org>
32428
32429         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32430         * modules/unilbrk/gen-lbrk: New file.
32431
32432 2008-05-11  Bruno Haible  <bruno@clisp.org>
32433
32434         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32435         * m4/sha512.m4 (gl_SHA512): Likewise.
32436
32437 2008-05-11  Jim Meyering  <meyering@redhat.com>
32438
32439         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32440         * modules/crypto/sha256: New file.
32441         * modules/crypto/sha512: Likewise.
32442         * lib/sha256.c: Likewise.
32443         * lib/sha256.h: Likewise.
32444         * lib/sha512.c: Likewise.
32445         * lib/sha512.h: Likewise.
32446         * lib/u64.h: Likewise.
32447         * m4/sha256.m4: Likewise.
32448         * m4/sha512.m4: Likewise.
32449         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32450
32451 2008-05-10  Bruno Haible  <bruno@clisp.org>
32452
32453         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32454         (Input/Output <stdio.h>): Add xprintf.
32455         (Signal handling <signal.h>): Add strsignal.
32456         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32457         (Core language properties): Add func.
32458         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32459         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32460         strings.
32461         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32462         (Input/output): New section.
32463         (File system functions): Add openat-die, stat-macros.
32464         (Networking functions): Add sockets.
32465         (Unicode string functions): Add unictype/*.
32466         (Support for building libraries and executables): Add gperf.
32467         (Support for building documentation): Add agpl-3.0.
32468         (Misc): Add nocrash.
32469
32470 2008-05-10  Bruno Haible  <bruno@clisp.org>
32471
32472         * modules/unictype/gen-ctype: New file.
32473
32474 2008-05-10  Jim Meyering  <meyering@redhat.com>
32475
32476         Make chdir-safer.c more efficient on a system with no symlinks.
32477         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32478         also if ELOOP is zero.  Suggested by Bruno Haible.
32479
32480         Make chdir-safer.c slightly safer.
32481         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32482         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32483
32484         Avoid compile failure on systems without ELOOP (like mingw).
32485         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32486         Reported by Bruno Haible.
32487
32488 2008-05-10  Bruno Haible  <bruno@clisp.org>
32489
32490         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32491         (is_utf8_encoding): Use a case-insensitive comparison.
32492         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32493         streq.
32494
32495 2008-05-10  Bruno Haible  <bruno@clisp.org>
32496
32497         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32498         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32499         * lib/unilbrk/ulc-common.h (iconv_string_length,
32500         iconv_string_keeping_offsets): Remove declarations.
32501         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32502         Don't include <iconv.h>, streq.h, xsize.h.
32503         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32504         conversion.
32505         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32506         <iconv.h>, streq.h, xsize.h.
32507         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32508         conversion.
32509         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32510         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32511         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32512         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32513
32514 2008-05-10  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32517         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32518
32519         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32520         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32521
32522         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32523         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32524
32525         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32526         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32527
32528         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32529         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32530
32531         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32532         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32533
32534         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32535         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32536
32537         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32538         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32539
32540 2008-05-10  Bruno Haible  <bruno@clisp.org>
32541
32542         Split up 'linebreak' module.
32543         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32544         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32545         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32546         modifications.
32547         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32548         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32549         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32550         lib/linebreak.c.
32551         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32552         lib/linebreak.c.
32553         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32554         lib/linebreak.c.
32555         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32556         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32557         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32558         lib/linebreak.c.
32559         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32560         lib/linebreak.c.
32561         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32562         lib/linebreak.c.
32563         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32564         lib/linebreak.c.
32565         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32566         lib/linebreak.c.
32567         * modules/unilbrk/base: New file.
32568         * modules/unilbrk/tables: New file.
32569         * modules/unilbrk/u8-possible-linebreaks: New file.
32570         * modules/unilbrk/u16-possible-linebreaks: New file.
32571         * modules/unilbrk/u32-possible-linebreaks: New file.
32572         * modules/unilbrk/ulc-common: New file.
32573         * modules/unilbrk/ulc-possible-linebreaks: New file.
32574         * modules/unilbrk/u8-width-linebreaks: New file.
32575         * modules/unilbrk/u16-width-linebreaks: New file.
32576         * modules/unilbrk/u32-width-linebreaks: New file.
32577         * modules/unilbrk/ulc-width-linebreaks: New file.
32578         * lib/linebreak.h: Remove file.
32579         * lib/linebreak.c: Remove file.
32580         * m4/linebreak.m4: Remove file.
32581         * modules/linebreak: Remove file.
32582         * NEWS: Mention the changes.
32583
32584 2008-05-09  Eric Blake  <ebb9@byu.net>
32585
32586         Add xmemdup0.
32587         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32588         implementation.
32589         * lib/xmalloc.c (xmemdup0): New C implementation.
32590
32591 2008-05-08  Bruno Haible  <bruno@clisp.org>
32592
32593         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32594
32595 2008-05-07  Eric Blake  <ebb9@byu.net>
32596
32597         Support cross-compilation of <wctype.h>.
32598         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32599         AC_CACHE_CHECK.
32600
32601 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32602
32603         * build-aux/vc-list-files: Add support for bzr.
32604
32605 2008-05-03  Jim Meyering  <meyering@redhat.com>
32606
32607         avoid failed assertion with tight malloc
32608         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32609
32610 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32611
32612         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32613         are needed from arpa/inet.h.
32614         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32615         Reported by Bruno Haible.
32616
32617 2008-05-02  Jim Meyering  <meyering@redhat.com>
32618
32619         avoid compilation error on FreeBSD 6
32620         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32621
32622 2008-05-01  Jim Meyering  <meyering@redhat.com>
32623
32624         useless-if-before-free: correct --help's exit status description
32625         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32626         for one or more matches, etc.  Reported by Bruno Haible.
32627
32628         vc-list-files: make the stand-alone gnulib test work
32629         * modules/vc-list-files-tests (configure.ac):
32630         Define and AC_SUBST abs_aux_dir.
32631         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32632         $(abs_top_srcdir) to each script and having each of them
32633         duplicate the work of setting PATH, set PATH here, using
32634         the new variable, abs_aux_dir instead.
32635         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32636         * tests/test-vc-list-files-git.sh: Likewise.
32637         Reported by Bruno Haible.
32638
32639 2008-05-01  Bruno Haible  <bruno@clisp.org>
32640
32641         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32642         reallocation. Rename 'done' to 'found_delimiter'.
32643
32644 2008-05-01  Jim Meyering  <meyering@redhat.com>
32645
32646         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32647         * build-aux/vc-list-files: Use `...`, not $(...).
32648
32649 2008-04-30  Jim Meyering  <meyering@redhat.com>
32650
32651         add tests for vc-list-files
32652         * modules/vc-list-files-tests: New module.
32653         * tests/test-vc-list-files-cvs.sh: New file.
32654         * tests/test-vc-list-files-git.sh: New file.
32655
32656         avoid a warning from gcc
32657         * lib/getndelim2.c (IF_LINT): Define.
32658         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32659
32660         vc-list-files: work properly with build-aux/cvsu, too
32661         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32662         to all cvs-based clauses.
32663
32664         vc-list-files: work properly in the CVS+awk case, too
32665         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32666
32667         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32668         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32669         take more than one file argument, so .  Add quotes, just in case $dir
32670         ever contains a shell meta-character.  Prompted by Soren Hansen in
32671         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32672
32673 2008-04-29  Eric Blake  <ebb9@byu.net>
32674
32675         Optimize getndelim2 to use block operations when possible.
32676         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32677         freadseek, and memchr2.
32678         * lib/getndelim2.c (getndelim2): Use them for block reads.
32679
32680 2008-04-29  Bruno Haible  <bruno@clisp.org>
32681
32682         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32683         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32684         * modules/inet_ntop (Depends-on): Add extensions.
32685         * modules/inet_pton (Depends-on): Likewise.
32686         Reported by Simon Josefsson.
32687
32688 2008-04-29  Jim Meyering  <meyering@redhat.com>
32689
32690         When the is more than one match in a block, match all of them.
32691         * build-aux/useless-if-before-free: Iterate through each block
32692         until there are no more matches.
32693
32694         Fix broken useless-if-before-free script.
32695         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32696         the expression to match cast of argument to free-like function.
32697
32698 2008-04-29  Eric Blake  <ebb9@byu.net>
32699
32700         Use new header.
32701         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32702
32703 2008-04-29  Jim Meyering  <meyering@redhat.com>
32704
32705         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32706         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32707         by gnulib to exist and to declare e.g., inet_ntop.
32708         Don't include "inet_ntop.h", now removed.
32709
32710         * m4/arpa_inet_h.m4: Remove trailing blanks.
32711
32712 2008-04-29  Eric Blake  <ebb9@byu.net>
32713
32714         Silence valgrind on safe reads beyond potential array bounds.
32715         * lib/rawmemchr.valgrind: New file.
32716         * lib/strchrnul.valgrind: Likewise.
32717         * modules/rawmemchr (Files): Distribute new file.
32718         * modules/strchrnul (Files): Likewise.
32719         Suggested by Bruno Haible.
32720
32721 2008-04-29  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32724         (inet_ntop, inet_pton): Change portability warning's wording.
32725         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32726         Invoke gl_CHECK_NEXT_HEADERS.
32727         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32728         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32729         set ARPA_INET_H.
32730         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32731         * modules/arpa_inet (Description): No longer only for systems that
32732         lack it.
32733         (Depends-on): Add include_next.
32734         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32735         HAVE_ARPA_INET_H.
32736
32737 2008-04-29  Jim Meyering  <meyering@redhat.com>
32738
32739         * modules/mkdir (License): Re-license as LGPLv2+.
32740
32741 2008-04-29  Bruno Haible  <bruno@clisp.org>
32742
32743         * modules/rawmemchr (Maintainer): Set to Eric.
32744         * modules/strchrnul (Maintainer): Likewise.
32745
32746 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32747
32748         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32749         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32750
32751         * modules/arpa_inet (arpa/inet.h): Use them.
32752
32753 2008-04-28  Eric Blake  <ebb9@byu.net>
32754
32755         Test getndelim2.
32756         * modules/getndelim2-tests: New file.
32757         * tests/test-getndelim2.c: Likewise.
32758         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32759         stream.
32760         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32761
32762         * MODULES.html.sh: Document new module.
32763
32764 2008-04-20  Bruno Haible  <bruno@clisp.org>
32765
32766         * lib/c-stack.c (die): Use raise.
32767         * modules/c-stack (Depends-on): Add raise.
32768
32769 2008-04-28  Bruno Haible  <bruno@clisp.org>
32770
32771         Expect rpmatch to be declared.
32772         * lib/yesno.c (rpmatch): Remove declaration.
32773
32774         Declare rpmatch.
32775         * lib/stdlib.in.h (rpmatch): New declaration.
32776         * lib/rpmatch.c: Include <stdlib.h> first.
32777         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32778         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32780         HAVE_RPMATCH.
32781         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32783         (Include): Set to <stdlib.h>.
32784         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32785         HAVE_RPMATCH.
32786         * NEWS: Document the change.
32787
32788 2008-04-28  Bruno Haible  <bruno@clisp.org>
32789
32790         Change rpmatch to use nl_langinfo when appropriate.
32791         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32792         (N_): New macro.
32793         (localized_pattern): New function/macro.
32794         (try): Remove match, nomatch arguments. Copy the pattern into safe
32795         memory before caching it.
32796         (rpmatch): Use localized_pattern. Add translator comments.
32797         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32798         Suggested by Eric Blake.
32799         * modules/rpmatch (Depends-on): Add stdbool.
32800
32801 2008-04-28  Eric Blake  <ebb9@byu.net>
32802
32803         Add rawmemchr module, matching glibc.
32804         * modules/string (Makefile.am): New indicator.
32805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32806         * lib/string.in.h (rawmemchr): Declare when appropriate.
32807         * modules/rawmemchr: New file.
32808         * m4/rawmemchr.m4: Likewise.
32809         * lib/rawmemchr.c: Likewise.
32810         * modules/rawmemchr-tests: Likewise.
32811         * tests/test-rawmemchr.c: Likewise.
32812         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32813         module.
32814         * modules/strchrnul (Depends-on): Add rawmemchr.
32815         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32816
32817         Whitespace cleanup.
32818         * tests/test-strchrnul.c: Reindent.
32819         * lib/strchrnul.c: Likewise.
32820
32821         Optimize and test strchrnul.
32822         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32823         * modules/strchrnul-tests: New file.
32824         * tests/test-strchrnul.c: Likewise.
32825
32826         Remove intprops dependency.
32827         * modules/memchr (Depends-on): Remove intprops.
32828         * modules/memrchr (Depends-on): Likewise.
32829         * modules/memchr2 (Depends-on): Likewise.
32830         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32831         * lib/memrchr.c (__memrchr): Likewise.
32832         * lib/memrchr2.c (memchr2): Likewise.
32833         Reported by Simon Josefsson.
32834
32835 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32836
32837         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32838         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32839
32840 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32841
32842         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32843
32844         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32845
32846         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32847
32848         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32849         declarations.
32850         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32851
32852         * m4/inet_pton.m4: Don't check for header files.
32853
32854         * m4/inet_ntop.m4: Don't check for header files.
32855
32856 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32857
32858         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32859         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32860         trigger for cygwin).
32861         Reported by Bruno Haible  <bruno@clisp.org>.
32862
32863 2008-04-28  Bruno Haible  <bruno@clisp.org>
32864
32865         * doc/posix-functions/strdup.texi: Mention mingw problem.
32866
32867 2008-04-27  Bruno Haible  <bruno@clisp.org>
32868
32869         * modules/stat-time-tests (Depends-on): Add sleep.
32870         * tests/test-stat-time.c (force_unlink): New function.
32871         (cleanup): Use it.
32872         (test_mtime): Remove the ctime related tests.
32873         (test_ctime): New function, containing the ctime related tests.
32874         (main): Call test_ctime, except on native Windows platforms.
32875
32876 2008-04-27  Bruno Haible  <bruno@clisp.org>
32877
32878         * lib/rpmatch.c (rpmatch): Add some comments.
32879         Reported by James Youngman <jay@gnu.org>.
32880
32881 2008-04-27  Bruno Haible  <bruno@clisp.org>
32882
32883         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32884         quiet NaNs.
32885
32886 2008-04-27  Bruno Haible  <bruno@clisp.org>
32887
32888         Make test-yesno.sh work on mingw.
32889         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32890         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32891         (main): Set stdin to binary mode.
32892         * modules/yesno-tests (Depends-on): Add binary-io.
32893
32894 2008-04-27  Bruno Haible  <bruno@clisp.org>
32895
32896         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32897         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32898         argument that lie outside the IEEE 854 domain.
32899         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32900         (gl_ISFINITE): Use it.
32901         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32902
32903 2008-04-27  Bruno Haible  <bruno@clisp.org>
32904
32905         Allow local renaming in config.h.
32906         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32907
32908 2008-04-27  Bruno Haible  <bruno@clisp.org>
32909
32910         * lib/memchr.c (__memchr): Change type of 'i'.
32911         * lib/memchr2.c (memchr2): Likewise.
32912
32913 2008-04-26  Eric Blake  <ebb9@byu.net>
32914         and Bruno Haible  <bruno@clisp.org>
32915
32916         Optimize and test memrchr.
32917         * modules/memrchr (Depends-on): Add intprops.
32918         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32919         * modules/memrchr-tests: New file.
32920         * tests/test-memrchr.c: New file.
32921
32922 2008-04-26  Bruno Haible  <bruno@clisp.org>
32923
32924         Add tentative support for DragonFly BSD.
32925         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32926         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32927         fp.
32928         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32929         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32930         * lib/fpurge.c (fpurge): Likewise.
32931         * lib/freadable.c (freaadable): Likewise.
32932         * lib/freadahead.c (freadahead): Likewise.
32933         * lib/freading.c (freading): Likewise.
32934         * lib/freadptr.c (freadptr): Likewise.
32935         * lib/freadseek.c (freadptrinc): Likewise.
32936         * lib/fseeko.c (fseeko): Likewise.
32937         * lib/fseterr.c (fseterr): Likewise.
32938         * lib/fwritable.c (fwritable): Likewise.
32939         * lib/fwriting.c (fwriting): Likewise.
32940
32941 2008-04-26  Bruno Haible  <bruno@clisp.org>
32942
32943         * lib/stdio-impl.h: New file.
32944         * lib/fbufmode.c: Include stdio-impl.h.
32945         (fbufmode): Use fp_, remove redundant #defines.
32946         * lib/fflush.c: Include stdio-impl.h.
32947         (clear_ungetc_buffer): Remove redundant #defines.
32948         * lib/fpurge.c: Include stdio-impl.h.
32949         (fpurge): Remove redundant #defines.
32950         * lib/freadable.c: Include stdio-impl.h.
32951         (freadable): Remove redundant #defines.
32952         * lib/freadahead.c: Include stdio-impl.h.
32953         (freadahead): Remove redundant #defines.
32954         * lib/freading.c: Include stdio-impl.h.
32955         (freading): Remove redundant #defines.
32956         * lib/freadptr.c: Include stdio-impl.h.
32957         (freadptr): Remove redundant #defines.
32958         * lib/freadseek.c: Include stdio-impl.h.
32959         (freadptrinc): Remove redundant #defines.
32960         * lib/fseeko.c: Include stdio-impl.h.
32961         (rpl_fseeko): Remove redundant #defines.
32962         * lib/fseterr.c: Include stdio-impl.h.
32963         (fseterr): Remove redundant #defines.
32964         * lib/fwritable.c: Include stdio-impl.h.
32965         (fwritable: Remove redundant #defines.
32966         * lib/fwriting.c: Include stdio-impl.h.
32967         (fwriting): Remove redundant #defines.
32968         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32969         * modules/fflush (Files): Likewise.
32970         * modules/fpurge (Files): Likewise.
32971         * modules/freadable (Files): Likewise.
32972         * modules/freadahead (Files): Likewise.
32973         * modules/freading (Files): Likewise.
32974         * modules/freadptr (Files): Likewise.
32975         * modules/freadseek (Files): Likewise.
32976         * modules/fseeko (Files): Likewise.
32977         * modules/fseterr (Files): Likewise.
32978         * modules/fwritable (Files): Likewise.
32979         * modules/fwriting (Files): Likewise.
32980
32981 2008-04-26  Bruno Haible  <bruno@clisp.org>
32982
32983         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32984         restore_seek_optimization, update_fpos_cache): New functions, extracted
32985         from rpl_fflush.
32986         (rpl_fflush): Use them.
32987         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32988         (gl_REPLACE_FFLUSH): Use it.
32989
32990 2008-04-26  Bruno Haible  <bruno@clisp.org>
32991
32992         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32993         on Solaris.
32994         * tests/test-xstrtoimax.sh: Likewise.
32995         * tests/test-xstrtoumax.sh: Likewise.
32996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32997
32998 2008-04-26  Bruno Haible  <bruno@clisp.org>
32999
33000         * modules/memchr-tests: New file.
33001         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
33002
33003 2008-04-26  Eric Blake  <ebb9@byu.net>
33004             Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/memchr.c: Include intprops.h.
33007         (__memchr): Optimize parallel detection of matching bytes. Rename local
33008         variables. Add explanatory comments.
33009
33010 2008-04-26  Bruno Haible  <bruno@clisp.org>
33011
33012         Fix module 'memchr', broken since 2000-10-28.
33013         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
33014
33015 2008-04-26  Bruno Haible  <bruno@clisp.org>
33016
33017         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
33018         comments.
33019
33020 2008-04-25  Eric Blake  <ebb9@byu.net>
33021
33022         Use native fstatat on cygwin 1.7.0.
33023         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
33024         first.
33025
33026 2008-04-23  Eric Blake  <ebb9@byu.net>
33027
33028         Improve memchr2 performance.
33029         * lib/memchr2.c (memchr2): Further optimize parallel detection of
33030         NUL bytes.
33031         * modules/memchr2 (Depends-on): Use intprops.h.
33032
33033 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33034
33035         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
33036         an inline function instead of a CPP macro.  Patch by Ben Pfaff
33037         <blp@cs.stanford.edu>.
33038
33039 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33040
33041         * lib/arpa_inet.in.h: New file.
33042
33043         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
33044         (Makefile.am): Sed in substitute header file.
33045
33046         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
33047         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
33048
33049         * modules/inet_ntop (configure.ac): Use
33050         gl_ARPA_INET_MODULE_INDICATOR.
33051
33052         * modules/inet_pton (configure.ac): Use
33053         gl_ARPA_INET_MODULE_INDICATOR.
33054
33055 2008-04-22  Jim Meyering  <meyering@redhat.com>
33056
33057         * modules/verify (License): Re-license as LGPLv2+.
33058
33059 2008-04-22  Simon Josefsson  <simon@josefsson.org>
33060
33061         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
33062         parameter to void* as per POSIX standard (MinGW uses char*).
33063
33064 2008-04-21  Bruno Haible  <bruno@clisp.org>
33065
33066         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33067         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33068         Define to replacements if REPLACE_ISWCNTRL is 1.
33069         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
33070         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
33071         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
33072         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
33073         what it fixes.
33074         * doc/posix-functions/iswalpha.texi: Likewise.
33075         * doc/posix-functions/iswblank.texi: Likewise.
33076         * doc/posix-functions/iswcntrl.texi: Likewise.
33077         * doc/posix-functions/iswdigit.texi: Likewise.
33078         * doc/posix-functions/iswgraph.texi: Likewise.
33079         * doc/posix-functions/iswlower.texi: Likewise.
33080         * doc/posix-functions/iswprint.texi: Likewise.
33081         * doc/posix-functions/iswpunct.texi: Likewise.
33082         * doc/posix-functions/iswspace.texi: Likewise.
33083         * doc/posix-functions/iswupper.texi: Likewise.
33084         * doc/posix-functions/iswxdigit.texi: Likewise.
33085         Reported by Alain Guibert.
33086
33087 2008-04-21  Bruno Haible  <bruno@clisp.org>
33088
33089         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
33090         Patch by Alain Guibert.
33091
33092 2008-04-21  Bruno Haible  <bruno@clisp.org>
33093
33094         Fix test failures on mingw.
33095         * tests/test-xstrtol.c (print_no_progname): New function.
33096         (main): Install it in error_print_progname hook.
33097         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
33098         * tests/test-xstrtoimax.sh: Likewise.
33099         * tests/test-xstrtoumax.sh: Likewise.
33100
33101 2008-04-21  Bruno Haible  <bruno@clisp.org>
33102
33103         Fix test failure on mingw.
33104         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
33105
33106 2008-04-21  Bruno Haible  <bruno@clisp.org>
33107
33108         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
33109         Actually assign a value.
33110
33111 2008-04-20  Bruno Haible  <bruno@clisp.org>
33112
33113         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
33114         take 2.
33115         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33116         'canonicalize-lgpl' module is also used.
33117         * lib/canonicalize-lgpl.c: Undo last change.
33118         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33119
33120 2008-04-20  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33123         config.h. Provide _mkdir based fallback for mingw.
33124         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33125         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33126         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33127         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33128         rather than defining mkdir in config.h.
33129         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33130         (gl_SYS_STAT_H_DEFAULTS): New macro.
33131         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33132         HAVE_IO_H any more.
33133         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33134         HAVE_DECL_MKDIR and HAVE_IO_H.
33135
33136 2008-04-20  Bruno Haible  <bruno@clisp.org>
33137
33138         * lib/isapipe.c: Port to native Windows platforms.
33139
33140 2008-04-20  Bruno Haible  <bruno@clisp.org>
33141
33142         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33143
33144 2008-04-21  Eric Blake  <ebb9@byu.net>
33145
33146         Work around preprocessors that don't handle UINTMAX_MAX.
33147         * lib/memchr2.c (memchr2): Avoid embedded #if.
33148         Reported by Alain Guibert, fix suggested by Bruno Haible.
33149
33150 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33151
33152         * doc/posix-functions/strftime.texi (strftime): Explain better
33153         Windows incompatibility.  Suggested by Micah Cowan
33154         <micah@cowan.name>.
33155
33156 2008-04-20  Bruno Haible  <bruno@clisp.org>
33157
33158         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33159         unistr/u8-mblen.
33160
33161 2008-04-20  Bruno Haible  <bruno@clisp.org>
33162
33163         Fix test failure on platforms with non-GNU iconv.
33164         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33165         (U_TO_U8): Use it, rather than u16_to_u8.
33166         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33167         units at the end of the input string.
33168         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33169
33170 2008-04-20  Bruno Haible  <bruno@clisp.org>
33171
33172         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33173         when the resulting length is 0.
33174         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33175
33176 2008-04-20  Bruno Haible  <bruno@clisp.org>
33177
33178         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33179         works.
33180         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33181
33182 2008-04-20  Bruno Haible  <bruno@clisp.org>
33183
33184         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33185         * modules/tsearch-tests (configure.ac): Test for initstate function.
33186
33187 2008-04-20  Bruno Haible  <bruno@clisp.org>
33188
33189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33190         for nlink_t if missing.
33191         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33192
33193 2008-04-19  Bruno Haible  <bruno@clisp.org>
33194
33195         Work around snprintf bug on Linux libc5.
33196         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33198         gl_SNPRINTF_SIZE1.
33199         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33200         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33201         that test failed.
33202         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33203         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33204         * modules/snprintf (Files): Add m4/printf.m4.
33205         * modules/vsnprintf (Files): Likewise.
33206         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33207         * doc/posix-functions/vsnprintf.texi: Likewise.
33208
33209 2008-04-19  Bruno Haible  <bruno@clisp.org>
33210
33211         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33212         from 0.0058 to less than 10^-7.
33213
33214 2008-04-19  Bruno Haible  <bruno@clisp.org>
33215
33216         Fix rounding when a precision is given.
33217         * lib/vasnprintf.c (is_borderline): New function.
33218         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33219         9...9x.
33220         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33221         %e, %g.
33222         * tests/test-vasprintf-posix.c (test_function): Likewise.
33223         * tests/test-snprintf-posix.h (test_function): Likewise.
33224         * tests/test-sprintf-posix.h (test_function): Likewise.
33225         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33226         * tests/test-printf-posix.h (test_function): Likewise.
33227         * tests/test-printf-posix.output: Update.
33228         Reported by John Darrington <john@darrington.wattle.id.au> via
33229         Ben Pfaff <blp@cs.stanford.edu>.
33230
33231 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33232
33233         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33234         Suggested by Bruno Haible <bruno@clisp.org>.
33235
33236 2008-04-17  Bruno Haible  <bruno@clisp.org>
33237
33238         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33239         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33240         implementation.
33241         Patch by Bruce Merry <bmerry@gmail.com>.
33242
33243 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33244
33245         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33246         doesn't work under Windows.
33247
33248 2008-04-16  Bruno Haible  <bruno@clisp.org>
33249
33250         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33251         New macros.
33252         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33253         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33254         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33255         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33256         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33257         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33258         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33259         macros.
33260         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33261         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33262         Northern Sotho, Uighur.
33263
33264 2008-04-16  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33267         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33268         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33269         Reported by Daniel Bergström <daniel@octocode.com>.
33270
33271 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33272             Bruno Haible  <bruno@clisp.org>
33273
33274         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33275         function.
33276         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33277         New functions, mostly extracted from gl_locale_name_default.
33278         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33279
33280 2008-04-16  Eric Blake  <ebb9@byu.net>
33281
33282         Adjust strtod detection to catch glibc 2.7 bug.
33283         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33284         Reported by John Gatewood Ham.
33285
33286 2008-04-16  Bruno Haible  <bruno@clisp.org>
33287
33288         Add tentative support for Linux libc5.
33289         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33290         * lib/fpurge.c (fpurge): Likewise.
33291         * lib/freadable.c (freadable): Likewise.
33292         * lib/freadahead.c (freadahead): Likewise.
33293         * lib/freading.c (freading): Likewise.
33294         * lib/freadptr.c (freadptr): Likewise.
33295         * lib/freadseek.c (freadptrinc): Likewise.
33296         * lib/fseeko.c (rpl_fseeko): Likewise.
33297         * lib/fseterr.c (fseterr): Likewise.
33298         * lib/fwritable.c (fwritable): Likewise.
33299         * lib/fwriting.c (fwriting): Likewise.
33300         Reported by Alain Guibert <alguibert+bts@free.fr>.
33301
33302 2008-04-15  Bruno Haible  <bruno@clisp.org>
33303
33304         * modules/mathl (configure.ac): Define module indicator.
33305
33306 2008-04-15  Bruno Haible  <bruno@clisp.org>
33307
33308         * lib/logl.c (logl): Remove unused variables.
33309
33310 2008-04-15  Bruno Haible  <bruno@clisp.org>
33311
33312         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33313         fails.
33314
33315 2008-04-15  Bruno Haible  <bruno@clisp.org>
33316
33317         * lib/trim.c (trim2): Fix argument of isspace() macro.
33318
33319 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33320
33321         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33322         to 0.
33323         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33324
33325 2008-04-14  Bruno Haible  <bruno@clisp.org>
33326
33327         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33328         AC_LANG_PROGRAM argument.
33329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33330         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33332         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33333         * m4/math_h.m4 (gl_MATH_H): Likewise.
33334         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33336         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33337         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33338         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33339         * m4/regex.m4 (gl_REGEX): Likewise.
33340         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33341         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33343         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33344         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33345         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33347         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33348
33349 2008-04-14  Jim Meyering  <meyering@redhat.com>
33350
33351         test-strtod: fix typos: s/abs/fabs/
33352         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33353
33354 2008-04-13  Bruno Haible  <bruno@clisp.org>
33355
33356         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33357         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33358         module is also used and while not building the reloc-wrapper.
33359
33360 2008-04-13  Bruno Haible  <bruno@clisp.org>
33361
33362         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33363
33364 2008-04-13  Bruno Haible  <bruno@clisp.org>
33365
33366         Fix AIX compilation failure introduced on 2008-04-02.
33367         * tests/test-frexp.c (exp): Undefine before redefining.
33368         * tests/test-frexpl.c (exp): Likewise.
33369
33370 2008-04-13  Bruno Haible  <bruno@clisp.org>
33371
33372         Work around a HP-UX stdio bug.
33373         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33374         * tests/test-ftello.c (main): Likewise.
33375         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33376         * doc/posix-functions/ftello.texi: Likewise.
33377
33378 2008-04-13  Bruno Haible  <bruno@clisp.org>
33379
33380         Make test-signbit pass on HP-UX/hppa.
33381         * tests/test-signbit.c (minus_zerol): New variable.
33382         (test_signbitl): Use it.
33383
33384 2008-04-13  Bruno Haible  <bruno@clisp.org>
33385
33386         Make truncl work on OSF/1 4.0.
33387         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33388         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33389         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33391         HAVE_DECL_TRUNCL.
33392         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33393         HAVE_DECL_TRUNCL.
33394         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33395
33396 2008-04-13  Bruno Haible  <bruno@clisp.org>
33397
33398         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33399
33400 2008-04-13  Bruno Haible  <bruno@clisp.org>
33401
33402         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33403         expression, so as to avoid HP-UX 11 cc compiler bug.
33404
33405 2008-04-13  Bruno Haible  <bruno@clisp.org>
33406
33407         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33408
33409 2008-04-13  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/git-merge-changelog.c: Remove empty declaration outside of
33412         functions.
33413
33414 2008-04-13  Bruno Haible  <bruno@clisp.org>
33415
33416         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33417
33418 2008-04-13  Bruno Haible  <bruno@clisp.org>
33419
33420         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33421         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33423         also if it exists but lacks definitions of the SHUT_* macros.
33424         * modules/sys_socket (Description): Update.
33425         Reported by Elbert Pol <e.pol@chello.nl>.
33426
33427 2008-04-13  Bruno Haible  <bruno@clisp.org>
33428
33429         * lib/localcharset.c (OS2): Don't redefine if already defined.
33430         Reported by Elbert Pol <e.pol@chello.nl>.
33431
33432 2008-04-13  Bruno Haible  <bruno@clisp.org>
33433
33434         * lib/binary-io.h [__EMX__]: Include <io.h>.
33435         Reported by Elbert Pol <e.pol@chello.nl>.
33436
33437 2008-04-12  Bruno Haible  <bruno@clisp.org>
33438
33439         * lib/fpucw.h: Enable the definitions also for x86_64.
33440         Needed for NetBSD/x86_64.
33441         Reported by Thomas Klausner <tk@giga.or.at>.
33442
33443 2008-04-12  Bruno Haible  <bruno@clisp.org>
33444
33445         * tests/test-strtod.c: Include isnand.h.
33446         (main): Use isnand instead of isnan.
33447         Reported by Jim Meyering.
33448
33449 2008-04-12  Bruno Haible  <bruno@clisp.org>
33450
33451         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33452         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33453
33454 2008-04-12  Jim Meyering  <meyering@redhat.com>
33455
33456         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33457
33458 2008-04-12  Bruno Haible  <bruno@clisp.org>
33459
33460         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33461         Reported by Elbert Pol <e.pol@chello.nl>.
33462
33463 2008-04-12  Eric Blake  <ebb9@byu.net>
33464
33465         Work around Solaris 10 math.h bug.
33466         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33467         (gl_MATH_H_DEFAULTS): Set up default.
33468         * modules/math (Makefile.am): Replace new indicators.
33469         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33470         * tests/test-math.c (main): Test this.
33471         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33472         * doc/posix-headers/math.texi (math.h): Mention bug.
33473         Reported by Nelson H. F. Beebe and Jim Meyering.
33474
33475 2008-04-11  Bruno Haible  <bruno@clisp.org>
33476
33477         Adapt to future versions of Apple GCC.
33478         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33479         Reported by Peter O'Gorman <peter@pogma.com>.
33480
33481 2008-04-11  Bruno Haible  <bruno@clisp.org>
33482
33483         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33484
33485 2008-04-11  Bruno Haible  <bruno@clisp.org>
33486
33487         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33488
33489         * modules/getaddrinfo-tests (Makefile.am): Define
33490         test_getaddrinfo_LDADD.
33491
33492 2008-04-11  Bruno Haible  <bruno@clisp.org>
33493
33494         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33495         (init): Fix syntax error.
33496         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33497         is declared.
33498
33499 2008-04-11  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33502         * modules/glob (Depends-on): Add stdbool.
33503
33504 2008-04-11  Bruno Haible  <bruno@clisp.org>
33505
33506         * lib/trim.c: Include <string.h>.
33507
33508 2008-04-11  Eric Blake  <ebb9@byu.net>
33509
33510         Avoid compile failure on OS/2.
33511         * lib/regex_internal.h (internal_function): Disable optimization
33512         on OS/2 (__EMX__), where it caused compiler error.
33513         Reported by Elbert Pol.
33514
33515 2008-04-11  Bruno Haible  <bruno@clisp.org>
33516
33517         Flush the standard error stream before aborting. Needed on mingw.
33518         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33519         * tests/test-array_list.c (ASSERT): Likewise.
33520         * tests/test-array_oset.c (ASSERT): Likewise.
33521         * tests/test-avltree_list.c (ASSERT): Likewise.
33522         * tests/test-avltree_oset.c (ASSERT): Likewise.
33523         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33524         * tests/test-binary-io.c (ASSERT): Likewise.
33525         * tests/test-byteswap.c (ASSERT): Likewise.
33526         * tests/test-c-ctype.c (ASSERT): Likewise.
33527         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33528         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33529         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33530         * tests/test-c-strstr.c (ASSERT): Likewise.
33531         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33532         * tests/test-canonicalize.c (ASSERT): Likewise.
33533         * tests/test-carray_list.c (ASSERT): Likewise.
33534         * tests/test-ceilf1.c (ASSERT): Likewise.
33535         * tests/test-ceilf2.c (ASSERT): Likewise.
33536         * tests/test-ceill.c (ASSERT): Likewise.
33537         * tests/test-count-one-bits.c (ASSERT): Likewise.
33538         * tests/test-fbufmode.c (ASSERT): Likewise.
33539         * tests/test-fflush2.c (ASSERT): Likewise.
33540         * tests/test-floorf1.c (ASSERT): Likewise.
33541         * tests/test-floorf2.c (ASSERT): Likewise.
33542         * tests/test-floorl.c (ASSERT): Likewise.
33543         * tests/test-fopen.c (ASSERT): Likewise.
33544         * tests/test-fpending.c (ASSERT): Likewise.
33545         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33546         * tests/test-fpurge.c (ASSERT): Likewise.
33547         * tests/test-freadable.c (ASSERT): Likewise.
33548         * tests/test-freadahead.c (ASSERT): Likewise.
33549         * tests/test-freading.c (ASSERT): Likewise.
33550         * tests/test-freadptr.c (ASSERT): Likewise.
33551         * tests/test-freadptr2.c (ASSERT): Likewise.
33552         * tests/test-freadseek.c (ASSERT): Likewise.
33553         * tests/test-freopen.c (ASSERT): Likewise.
33554         * tests/test-frexp.c (ASSERT): Likewise.
33555         * tests/test-frexpl.c (ASSERT): Likewise.
33556         * tests/test-fseek.c (ASSERT): Likewise.
33557         * tests/test-fseeko.c (ASSERT): Likewise.
33558         * tests/test-fstrcmp.c (ASSERT): Likewise.
33559         * tests/test-ftell.c (ASSERT): Likewise.
33560         * tests/test-ftello.c (ASSERT): Likewise.
33561         * tests/test-func.c (ASSERT): Likewise.
33562         * tests/test-fwritable.c (ASSERT): Likewise.
33563         * tests/test-fwriting.c (ASSERT): Likewise.
33564         * tests/test-getdelim.c (ASSERT): Likewise.
33565         * tests/test-getline.c (ASSERT): Likewise.
33566         * tests/test-i-ring.c (ASSERT): Likewise.
33567         * tests/test-iconv-utf.c (ASSERT): Likewise.
33568         * tests/test-iconv.c (ASSERT): Likewise.
33569         * tests/test-isfinite.c (ASSERT): Likewise.
33570         * tests/test-isnand.c (ASSERT): Likewise.
33571         * tests/test-isnanf.c (ASSERT): Likewise.
33572         * tests/test-isnanl.h (ASSERT): Likewise.
33573         * tests/test-ldexpl.c (ASSERT): Likewise.
33574         * tests/test-linked_list.c (ASSERT): Likewise.
33575         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33576         * tests/test-localename.c (ASSERT): Likewise.
33577         * tests/test-lseek.c (ASSERT): Likewise.
33578         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33579         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33580         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33581         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33582         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33583         * tests/test-mbschr.c (ASSERT): Likewise.
33584         * tests/test-mbscspn.c (ASSERT): Likewise.
33585         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33586         * tests/test-mbspbrk.c (ASSERT): Likewise.
33587         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33588         * tests/test-mbsrchr.c (ASSERT): Likewise.
33589         * tests/test-mbsspn.c (ASSERT): Likewise.
33590         * tests/test-mbsstr1.c (ASSERT): Likewise.
33591         * tests/test-mbsstr2.c (ASSERT): Likewise.
33592         * tests/test-mbsstr3.c (ASSERT): Likewise.
33593         * tests/test-memchr2.c (ASSERT): Likewise.
33594         * tests/test-memmem.c (ASSERT): Likewise.
33595         * tests/test-open.c (ASSERT): Likewise.
33596         * tests/test-printf-frexp.c (ASSERT): Likewise.
33597         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33598         * tests/test-printf-posix.c (ASSERT): Likewise.
33599         * tests/test-quotearg.c (ASSERT): Likewise.
33600         * tests/test-rbtree_list.c (ASSERT): Likewise.
33601         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33602         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33603         * tests/test-round1.c (ASSERT): Likewise.
33604         * tests/test-roundf1.c (ASSERT): Likewise.
33605         * tests/test-roundl.c (ASSERT): Likewise.
33606         * tests/test-signbit.c (ASSERT): Likewise.
33607         * tests/test-sleep.c (ASSERT): Likewise.
33608         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33609         * tests/test-snprintf.c (ASSERT): Likewise.
33610         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33611         * tests/test-stat-time.c (ASSERT): Likewise.
33612         * tests/test-strcasestr.c (ASSERT): Likewise.
33613         * tests/test-strerror.c (ASSERT): Likewise.
33614         * tests/test-striconv.c (ASSERT): Likewise.
33615         * tests/test-striconveh.c (ASSERT): Likewise.
33616         * tests/test-striconveha.c (ASSERT): Likewise.
33617         * tests/test-strsignal.c (ASSERT): Likewise.
33618         * tests/test-strstr.c (ASSERT): Likewise.
33619         * tests/test-strtod.c (ASSERT): Likewise.
33620         * tests/test-trunc1.c (ASSERT): Likewise.
33621         * tests/test-trunc2.c (ASSERT): Likewise.
33622         * tests/test-truncf1.c (ASSERT): Likewise.
33623         * tests/test-truncf2.c (ASSERT): Likewise.
33624         * tests/test-truncl.c (ASSERT): Likewise.
33625         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33626         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33627         * tests/test-vasnprintf.c (ASSERT): Likewise.
33628         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33629         * tests/test-vasprintf.c (ASSERT): Likewise.
33630         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33631         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33632         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33633         * tests/test-vsnprintf.c (ASSERT): Likewise.
33634         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33635         * tests/test-wcwidth.c (ASSERT): Likewise.
33636         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33637         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33638         * tests/test-xvasprintf.c (ASSERT): Likewise.
33639         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33640         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33641         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33642         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33643         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33644         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33645         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33646         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33647         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33648         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33649         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33650         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33651         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33652         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33653         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33654         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33655         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33656         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33657         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33658         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33659         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33660         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33661         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33662         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33663         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33664         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33665         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33666         * tests/unictype/test-combining.c (ASSERT): Likewise.
33667         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33668         * tests/unictype/test-digit.c (ASSERT): Likewise.
33669         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33670         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33671         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33672         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33673         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33674         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33675         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33676         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33677         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33678         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33679         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33680         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33681         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33682         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33683         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33684         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33685         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33686         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33687         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33688         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33689         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33690         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33691         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33692         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33693         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33694         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33695         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33696         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33697         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33698         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33699         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33700         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33701         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33702         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33703         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33704         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33705         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33706         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33707         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33708         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33709         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33710         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33711         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33712         Reported by Eric Blake.
33713
33714 2008-04-11  Bruno Haible  <bruno@clisp.org>
33715
33716         * lib/wchar.in.h: Tweak comment.
33717
33718 2008-04-11  Bruno Haible  <bruno@clisp.org>
33719
33720         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33721         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33722         gl_COMMON.
33723         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33724
33725 2008-04-11  Bruno Haible  <bruno@clisp.org>
33726
33727         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33728
33729 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33730
33731         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33732         of attempting to use non-existing /dev/*random.  Based on patch
33733         from Adam Strzelecki <ono@java.pl> in
33734         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33735
33736 2008-04-08  Bruno Haible  <bruno@clisp.org>
33737
33738         Add tentative support for emx+gcc.
33739         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33740         * lib/fpurge.c (fpurge): Likewise.
33741         * lib/freadable.c (freadable): Likewise.
33742         * lib/freadahead.c (freadahead): Likewise.
33743         * lib/freading.c (freading): Likewise.
33744         * lib/freadptr.c (freadptr): Likewise.
33745         * lib/freadseek.c (freadptrinc): Likewise.
33746         * lib/fseeko.c (rpl_fseeko): Likewise.
33747         * lib/fseterr.c (fseterr): Likewise.
33748         * lib/fwritable.c (fwritable): Likewise.
33749         * lib/fwriting.c (fwriting): Likewise.
33750         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33751
33752 2008-04-09  Eric Blake  <ebb9@byu.net>
33753
33754         Avoid some autoconf warnings.
33755         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33756         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33757         * m4/afs.m4 (gl_AFS): Likewise.
33758         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33759         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33760         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33761         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33762         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33763         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33764         (AC_CHECK_DECLS_ONCE): Likewise.
33765         Rename file...
33766         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33767         gnulib-tool requires autoconf 2.59 or better.
33768         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33769
33770 2008-04-08  Eric Blake  <ebb9@byu.net>
33771
33772         Use 'git describe --match' if present (added in git 1.5.5).
33773         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33774         if possible.
33775
33776 2008-04-08  Bruno Haible  <bruno@clisp.org>
33777
33778         Add tentative support for OpenServer.
33779         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33780         _ptr, _cnt.
33781         * lib/fpurge.c (fpurge): Likewise.
33782         * lib/freadable.c (freadable): Likewise.
33783         * lib/freadahead.c (freadahead): Likewise.
33784         * lib/freading.c (freading): Likewise.
33785         * lib/freadptr.c (freadptr): Likewise.
33786         * lib/freadseek.c (freadptrinc): Likewise.
33787         * lib/fseeko.c (rpl_fseeko): Likewise.
33788         * lib/fseterr.c (fseterr): Likewise.
33789         * lib/fwritable.c (fwritable): Likewise.
33790         * lib/fwriting.c (fwriting): Likewise.
33791         Reported by Roger Cornelius <rac@tenzing.org> and
33792         Brian K. White <brian@aljex.com>.
33793
33794 2008-04-06  Jim Meyering  <meyering@redhat.com>
33795
33796         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33797
33798 2008-04-06  Bruno Haible  <bruno@clisp.org>
33799
33800         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33801         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33802         * tests/test-printf-posix.sh: Likewise.
33803         * tests/test-vfprintf-posix.sh: Likewise.
33804         * tests/test-vprintf-posix.sh: Likewise.
33805         * tests/test-xprintf-posix.sh: Likewise.
33806
33807 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33808
33809         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33810         hide error from 'ls', needed on OS/2.
33811         Report by Elbert Pol <elbert.pol@gmail.com>.
33812
33813 2008-04-04  Eric Blake  <ebb9@byu.net>
33814
33815         Make test-fseeko.c failures meaningful.
33816         * tests/test-fseeko.c: Print line number on failure.
33817         * tests/test-fseek.c: Likewise.
33818         Reported by Nelson H. F. Beebe.
33819
33820         Improve strtod bug detection check.
33821         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33822         required for Solaris 10.
33823         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33824
33825 2008-04-04  Bruno Haible  <bruno@clisp.org>
33826
33827         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33828         by m4/setenv.m4.
33829
33830 2008-04-03  Eric Blake  <ebb9@byu.net>
33831
33832         Ensure sane .version contents.
33833         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33834         version string.
33835         * build-aux/git-version-gen: Improve documentation.
33836
33837         Make GNU make output nicer.
33838         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33839         MAKECMDGOALS to enforce message for all command line targets.  Set
33840         srcdir for use in maint.mk.
33841
33842         Another maintainer tweak.
33843         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33844         a target that regenerates version.
33845
33846 2008-04-03  Jim Meyering  <meyering@redhat.com>
33847
33848         vc-list-files: don't cause coreutils "make po-check" failure
33849         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33850
33851 2008-04-03  Eric Blake  <ebb9@byu.net>
33852
33853         Allow VPATH usage of vc-list-files.
33854         * build-aux/vc-list-files (scriptversion): Add timestamp.
33855         (options): Add --help, --version, -C.
33856         (CVS): Support installed cvsu.
33857
33858 2008-04-02  Bruno Haible  <bruno@clisp.org>
33859
33860         Avoid some "statement with no effect" warnings from gcc.
33861         * tests/test-wctype.c (main): Explicitly ignore unused values.
33862         Reported by Jim Meyering.
33863
33864 2008-04-02  Jim Meyering  <meyering@redhat.com>
33865
33866         Avoid some warnings from "gcc -Wshadow".
33867         * tests/test-frexp.c (exp): Define to a different identifier.
33868         * tests/test-frexpl.c (exp): Likewise.
33869
33870 2008-04-03  Jim Meyering  <meyering@redhat.com>
33871
33872         bootstrap: remove dangling *.[ch] symlinks from lib
33873         * build-aux/bootstrap [dangling symlink removal]: Move find's
33874         -depth option to precede all others, to avoid a warning.
33875         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33876
33877 2008-04-02  Bruno Haible  <bruno@clisp.org>
33878
33879         Avoid some warnings from "gcc -Wshadow".
33880         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33881         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33882         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33883         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33884         Reported by Jim Meyering.
33885
33886 2008-04-01  Bruno Haible  <bruno@clisp.org>
33887
33888         Fix test to work on IRIX 6.5 with cc.
33889         * tests/test-math.c (numeric_equal): New function.
33890         (main): Use it.
33891
33892 2008-04-01  Bruno Haible  <bruno@clisp.org>
33893
33894         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33895
33896 2008-04-01  Bruno Haible  <bruno@clisp.org>
33897
33898         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33899         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33900         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33901         (Depends-on): Remove math.
33902
33903         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33904         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33905         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33906         (Depends-on): Remove math.
33907
33908         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33909         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33910         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33911         (Depends-on): Remove math.
33912         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33913         (Depends-on): Remove math.
33914
33915         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33916         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33917         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33918         (Depends-on): Remove math.
33919         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33920         (Depends-on): Remove math.
33921
33922         * tests/test-round1.c: Include nan.h.
33923         (main): Use NaNd instead of NAN.
33924         * modules/round-tests (Files): Add tests/nan.h.
33925
33926         * tests/test-trunc1.c: Include nan.h.
33927         (main): Use NaNd instead of NAN.
33928         * modules/trunc-tests (Files): Add tests/nan.h.
33929
33930         * tests/test-roundf1.c: Include nan.h.
33931         (main): Use NaNf instead of NAN.
33932         * modules/roundf-tests (Files): Add tests/nan.h.
33933
33934         * tests/test-truncf1.c: Include nan.h.
33935         (main): Use NaNf instead of NAN.
33936         * modules/truncf-tests (Files): Add tests/nan.h.
33937
33938         * tests/test-ceilf1.c: Include nan.h.
33939         (main): Use NaNf instead of NAN.
33940         * modules/ceilf-tests (Files): Add tests/nan.h.
33941
33942         * tests/test-floorf1.c: Include nan.h.
33943         (main): Use NaNf instead of NAN.
33944         * modules/floorf-tests (Files): Add tests/nan.h.
33945
33946         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33947         (main): Use NaNf instead of NAN.
33948         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33949
33950         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33951         (main): Use NaNd instead of NAN.
33952         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33953
33954         * tests/test-frexp.c: Include nan.h.
33955         (main): Use NaNd instead of NAN.
33956         * modules/frexp-tests (Files): Add tests/nan.h.
33957
33958         * lib/isnan.c: Don't include <math.h>.
33959         (FUNC): Don't use NAN macro.
33960         * modules/isnand-nolibm (Depends-on): Remove math.
33961         * modules/isnanf-nolibm (Depends-on): Remove math.
33962         * modules/isnanl (Depends-on): Remove math.
33963         * modules/isnanl-nolibm (Depends-on): Remove math.
33964
33965         * tests/nan.h: New file.
33966
33967 2008-04-01  Eric Blake  <ebb9@byu.net>
33968
33969         Fix typos.
33970         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33971         values to be the right type.
33972
33973         For now, cater to gnulib strtod inaccuracies.
33974         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33975         fractional results.  While not as nice from a QoI perspective, it
33976         is a quicker patch than correctly implementing decimal to binary
33977         rounding.
33978
33979 2008-03-31  Eric Blake  <ebb9@byu.net>
33980
33981         Guarantee a definition of NAN.
33982         * lib/math.in.h (NAN): Define if missing.
33983         * tests/test-math.c (main): Test it.
33984         * doc/posix-headers/math.texi (math.h): Document this.
33985         * lib/isnan.c (rpl_isnand): Use it.
33986         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33987         * tests/test-floorf1.c (NaN): Likewise.
33988         * tests/test-frexp.c (NaN): Likewise.
33989         * tests/test-isnand.c (NaN): Likewise.
33990         * tests/test-isnanf.c (NaN): Likewise.
33991         * tests/test-round1.c (NaN): Likewise.
33992         * tests/test-roundf1.c (NaN): Likewise.
33993         * tests/test-snprintf-posix.h (NaN): Likewise.
33994         * tests/test-sprintf-posix.h (NaN): Likewise.
33995         * tests/test-trunc1.c (NaN): Likewise.
33996         * tests/test-truncf1.c (NaN): Likewise.
33997         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33998         * tests/test-vasprintf-posix.c (NaN): Likewise.
33999         * modules/isnand-nolibm (Depends-on): Add math.
34000         * modules/isnanf-nolibm (Depends-on): Likewise.
34001         * modules/isnanl (Depends-on): Likewise.
34002         * modules/isnanl-nolibm (Depends-on): Likewise.
34003         * modules/snprintf-posix-tests (Depends-on): Likewise.
34004         * modules/sprintf-posix-tests (Depends-on): Likewise.
34005         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
34006         * modules/vsprintf-posix-tests (Depends-on): Likewise.
34007         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
34008         * modules/vasprintf-posix-tests (Depends-on): Likewise.
34009
34010 2008-03-31  Bruno Haible  <bruno@clisp.org>
34011
34012         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
34013         * doc/posix-functions/strtod.texi: Likewise.
34014
34015 2008-03-31  Bruno Haible  <bruno@clisp.org>
34016
34017         * tests/test-strtod.c (main): Don't use C99 syntax.
34018
34019 2008-03-31  Bruno Haible  <bruno@clisp.org>
34020
34021         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
34022         Reported by Eric Blake.
34023
34024 2008-03-31  Jim Meyering  <meyering@redhat.com>
34025
34026         Don't compare actual signbit return values.
34027         * tests/test-strtod.c (main): Rather, compare only their
34028         zero/non-zero nature.
34029
34030 2008-03-31  Eric Blake  <ebb9@byu.net>
34031
34032         More strtod documentation.
34033         * doc/posix-functions/strtod.texi (strtod): Interpret more test
34034         failures as distinct bugs.
34035
34036 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34037
34038         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
34039         Problem reported by Erik Benada in
34040         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
34041
34042 2008-03-30  Bruno Haible  <bruno@clisp.org>
34043
34044         * tests/test-strtod.c: Add comments about which assertion fails on which
34045         platform.
34046         * doc/posix-functions/strtod.texi: Add info about many more platforms.
34047
34048 2008-03-30  Eric Blake  <ebb9@byu.net>
34049
34050         Test signbit behavior on zeros.
34051         * tests/test-signbit.c (test_signbitf): Add tests for zero.
34052         (test_signbitd, test_signbitl): Likewise.
34053
34054         More strtod touchups.
34055         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
34056         sign of negative underflow, for now.  Use .5, not .1.
34057         * doc/posix-functions/strtod.texi (strtod): Mention these
34058         limitations.
34059         Reported by Jim Meyering.
34060
34061 2008-03-30  Bruno Haible  <bruno@clisp.org>
34062
34063         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
34064         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
34065
34066 2008-03-30  Bruno Haible  <bruno@clisp.org>
34067
34068         Avoid failure when attempting to return empty iconv results on some
34069         platforms.
34070         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
34071         allocation, don't report ENOMEM when the resulting string is empty.
34072
34073 2008-03-30  Bruno Haible  <bruno@clisp.org>
34074
34075         Fix buffer overrun.
34076         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
34077         Don't consider the width for tmp_length. Check count against tmp_length
34078         before doing the padding. Ensure enough allocation during padding.
34079
34080 2008-03-30  Eric Blake  <ebb9@byu.net>
34081
34082         strtod touchups.
34083         * lib/strtod.c (strtod): Avoid compiler warnings.
34084         Reported by Jim Meyering.
34085
34086 2008-03-30  Bruno Haible  <bruno@clisp.org>
34087
34088         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
34089         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
34090         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
34091         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
34092         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
34093         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34094         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
34095         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
34096
34097         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
34098         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
34099         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
34100         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
34101         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
34102         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
34103         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
34104         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
34105
34106         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
34107         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
34108         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
34109         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
34110         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
34111         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
34112         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
34113         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
34114
34115         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34116         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34117
34118         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34119         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34120
34121         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34122         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34123
34124         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34126         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34127
34128         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34130         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34131
34132         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34133         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34134         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34135
34136         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34138         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34139
34140         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34141         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34143         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34144         (Depends-on): Add EOVERFLOW.
34145         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34146         (Depends-on): Add EOVERFLOW.
34147         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34148         (Depends-on): Add EOVERFLOW.
34149         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34150         (Depends-on): Add EOVERFLOW.
34151         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34152         (Depends-on): Add EOVERFLOW.
34153         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34154         (Depends-on): Add EOVERFLOW.
34155         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34156         (Depends-on): Add EOVERFLOW.
34157         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34158         (Depends-on): Add EOVERFLOW.
34159
34160         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34162         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34163
34164         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34165         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34166         * modules/snprintf (Depends-on): Add EOVERFLOW.
34167
34168         * lib/poll.c (EOVERFLOW): Remove fallback.
34169         * modules/poll (Depends-on): Add EOVERFLOW.
34170
34171         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34172         * modules/getugroups (Depends-on): Add EOVERFLOW.
34173
34174         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34175         * modules/getdelim (Depends-on): Add EOVERFLOW.
34176
34177         * lib/ftell.c (EOVERFLOW): Remove fallback.
34178         * modules/ftell (Depends-on): Add EOVERFLOW.
34179
34180         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34182         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34183
34184         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34185
34186         * modules/EOVERFLOW-tests: New file.
34187         * tests/test-EOVERFLOW.c: New file.
34188
34189         * modules/EOVERFLOW: New file.
34190         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34191
34192 2008-03-30  Bruno Haible  <bruno@clisp.org>
34193
34194         Fix bug introduced on 2007-06-10.
34195         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34196         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34197
34198 2008-03-30  Bruno Haible  <bruno@clisp.org>
34199
34200         Improve freadseek's efficiency after ungetc.
34201         * lib/freadseek.c: Include freadahead.h.
34202         (freadptrinc): New function, extracted from freadseek.
34203         (freadseek): Use it in a loop. Use freadahead to determine the number
34204         of loop iterations.
34205         * modules/freadseek (Depends-on): Add freadahead.
34206         (configure.ac): Require AC_C_INLINE.
34207
34208 2008-03-30  Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/freadseek.c (freadseek): Don't ignore the return value of
34211         freadptr.
34212
34213 2008-03-29  Eric Blake  <ebb9@byu.net>
34214
34215         Add hex float support.
34216         * modules/strtod (Depends-on): Add c-ctype.
34217         (Link): Mention POW_LIB.
34218         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34219         whitespace between 'e' and exponent.
34220         * tests/test-strtod.c (main): Enable hex float tests.
34221         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34222         now provides.
34223
34224         Document various strtod bugs, with some fixes.
34225         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34226         "-0x", "inf", "nan", and hex constants.
34227         * doc/posix-functions/atof.texi (atof): Likewise.
34228         * modules/stdlib (Makefile.am): Support strtod.
34229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34230         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34231         detect additional strtod bugs.
34232         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34233         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34234         bool where appropriate.  Parse 'inf' and 'nan'.
34235         * tests/test-strtod.c: New file.
34236         * modules/strtod (Depends-on): Add stdbool, stdlib.
34237         (configure.ac): Turn on module indicator.
34238         * modules/strtod-tests: New module.
34239
34240 2008-03-29  Eric Blake  <ebb9@byu.net>
34241
34242         Fix ftell on mingw.
34243         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34244         * modules/ftell-tests (Depends-on): Add binary-io.
34245         * modules/ftello-tests (Depends-on): Likewise.
34246         * tests/test-ftell.c (main): Enhance test to cover behavior after
34247         ungetc.  Enforce binary mode.
34248         * tests/test-ftello.c (main): Likewise.
34249
34250         Pass test-freadseek on cygwin.
34251         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34252         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34253         ungetc buffer.
34254
34255         * tests/test-fflush2.c (main): Fix typo.
34256
34257 2008-03-29  Bruno Haible  <bruno@clisp.org>
34258
34259         * tests/test-fflush2.c (main): Temporarily disable the contents of
34260         this test.
34261         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34262         Reported by Eric Blake.
34263
34264 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34265
34266         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34267         (GC_SHA224_DIGEST_SIZE): Add.
34268
34269         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34270         (gc_hash_digest_length): Likewise.
34271         (gc_hash_buffer): Likewise.
34272
34273 2008-03-25  Bruno Haible  <bruno@clisp.org>
34274
34275         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34276         detail which gettext release to use.
34277         Reported by Simon Josefsson.
34278
34279 2008-03-26  Jim Meyering  <meyering@redhat.com>
34280
34281         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34282         * modules/gnumakefile (clean-GNUmakefile): Also, use
34283         test ... && ... || : syntax rather than if-then ... fi.
34284
34285         gnumakefile: Don't double-quote-expand $(VPATH) value.
34286         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34287
34288 2008-03-24  Eric Blake  <ebb9@byu.net>
34289
34290         Alter GNUmakefile to install into top directory.
34291         * modules/maintainer-makefile: Split, and add dependency...
34292         * modules/gnumakefile: to this new module.
34293         * build-aux/GNUmakefile: Move...
34294         * top/GNUmakefile: ...here.
34295         * build-aux/maint.mk: Move...
34296         * top/maint.mk: ...here.
34297         * MODULES.html.sh (Support for maintaining...): Document new
34298         module.
34299
34300 2008-03-23  Bruno Haible  <bruno@clisp.org>
34301
34302         * gnulib-tool: New options --vc-files, --no-vc-files.
34303         (func_usage): Document them.
34304         (vc_files): New variable.
34305         (func_import): Consider vc_files.
34306         (func_create_testdir): Set vc_files to empty.
34307         Suggested by Jim Meyering and Karl Berry.
34308
34309 2008-03-23  Bruno Haible  <bruno@clisp.org>
34310
34311         Fix regex compilation error on HP-UX 11.
34312         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34313         * modules/regex (Files): Add m4/mbstate_t.m4.
34314         Reported by Ton Voon <ton.voon@altinity.com>.
34315
34316 2008-03-23  Bruno Haible  <bruno@clisp.org>
34317
34318         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34319
34320 2008-03-23  Eric Blake  <ebb9@byu.net>
34321             Bruno Haible  <bruno@clisp.org>
34322
34323         Install files from top/ in the destination directory.
34324         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34325         augmentation also for the files from top/.
34326         (func_import, func_create_testdir): Rewrite file names:
34327         top/filename -> filename.
34328
34329 2008-03-23  Bruno Haible  <bruno@clisp.org>
34330
34331         Tweak "gnulib --version" output.
34332         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34333
34334 2008-03-23  Bruno Haible  <bruno@clisp.org>
34335
34336         Tweak "gnulib --version" output.
34337         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34338         rather than contents of ChangeLog, when possible.
34339
34340 2008-03-21  Eric Blake  <ebb9@byu.net>
34341
34342         More --version tweaks.
34343         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34344         date of last ChangeLog entry.
34345
34346 2008-03-21  Jim Meyering  <meyering@redhat.com>
34347
34348         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34349
34350 2008-03-20  Eric Blake  <ebb9@byu.net>
34351
34352         VPATH fix.
34353         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34354
34355 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34356
34357         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34358         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34359
34360 2008-03-20  Eric Blake  <ebb9@byu.net>
34361
34362         Sync GNUmakefile with coreutils.
34363         * build-aux/GNUmakefile (have-Makefile): Rename...
34364         (_have-Makefile): ...to this, for namespace consideration.
34365         (GNUmakefile.cfg): Include, if present.
34366         (_autoreconf): Define a default.
34367         (_is-dist-target): New rule for rebuilds to pick up intra-release
34368         version.
34369         (maint-cfg.mk): Rename...
34370         (cfg.mk): ...to this.
34371
34372 2008-03-18  Jim Meyering  <meyering@redhat.com>
34373
34374         New script and module: mktempd
34375         * MODULES.html.sh (maint+release support): Add mktempd.
34376         * build-aux/mktempd: New file.
34377         * modules/mktempd: New file.
34378
34379 2008-03-15  Jim Meyering  <meyering@redhat.com>
34380
34381         Undo last change.
34382         * lib/sha1.c, lib/md5.c: 63 != ~63.
34383         Reported by Andreas Schwab.
34384
34385         sha1.c, md5.c: Hoist a redundant expression.
34386         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34387         "ctx->buflen" only once, before calling *_process_block.
34388         * lib/md5.c (md5_process_bytes): Likewise.
34389
34390 2008-03-14  Eric Blake  <ebb9@byu.net>
34391
34392         Bump copyright year in files generated by gnulib-tool.
34393         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34394         gnulib-tool, rather than hard-coding it.
34395
34396         Fix 'gnulib-tool --version' output to work with git.
34397         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34398         (startup): ...here.
34399         (func_version): Use it to invoke git-version-gen, rather than
34400         relying on CVS keyword expansion.  Modernize wording.
34401         (cvsdatestamp, last_checkin_date, version): Kill unused
34402         variables.
34403
34404 2008-03-12  Jim Meyering  <meyering@redhat.com>
34405
34406         Recognize optional cast of the argument to free.
34407         * build-aux/useless-if-before-free: Update regexps.
34408
34409         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34410
34411 2008-03-11  Bruno Haible  <bruno@clisp.org>
34412
34413         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34414         by a single package.
34415         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34416         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34417         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34418         Reported by Sam Steingold <sds@gnu.org>.
34419
34420 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34421
34422         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34423         repositories.
34424
34425 2008-03-11  Bruno Haible  <bruno@clisp.org>
34426
34427         Avoid conflicts between local macro definitions.
34428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34429         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34430
34431 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34432             Bruno Haible  <bruno@clisp.org>
34433
34434         Make va_copy work with some version of xlc on AIX 5.1.
34435         * lib/stdarg.in.h: New file.
34436         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34437         On AIX, use a <stdarg.h> file substitute.
34438         * modules/stdarg (Files): Add lib/stdarg.in.h.
34439         (Depends-on): Add include_next.
34440         (Makefile.am): Build a stdarg.h substitute if requested.
34441         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34442
34443 2008-03-10  Bruno Haible  <bruno@clisp.org>
34444
34445         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34447         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34448
34449 2008-03-10  Bruno Haible  <bruno@clisp.org>
34450
34451         * modules/stdlib (Depends-on): Add include_next, remove
34452         absolute-header.
34453
34454 2008-03-09  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/freadahead.h (freadahead): Document more precisely.
34457         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34458         the sum of both buffer sizes.
34459         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34460         * NEWS: Document the change.
34461
34462 2008-03-09  Bruno Haible  <bruno@clisp.org>
34463
34464         Extend freadptr to return also the buffer size.
34465         * lib/freadptr.h (freadptr): Add sizep argument.
34466         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34467         (freadptr): Add sizep argument. Determine buffer size like freadahead
34468         does.
34469         * tests/test-freadptr.c: Don't include freadahead.h.
34470         (main): Adapt for new calling convention of freadptr.
34471         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34472         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34473         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34474         tests/test-freadptr2.sh.
34475         (Depends): Remove freadahead.
34476         (TESTS): Add test-freadptr2.sh.
34477         (check_PROGRAMS): Add test-freadptr2.
34478
34479 2008-03-09  Bruno Haible  <bruno@clisp.org>
34480
34481         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34482         Report and solution by Simon Josefsson.
34483
34484 2008-03-06  Bruno Haible  <bruno@clisp.org>
34485
34486         Make fflush after ungetc work on BSD platforms.
34487         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34488         * tests/test-fflush2.c: New file.
34489         * tests/test-fflush2.sh: New file.
34490         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34491         tests/test-fflush2.c.
34492         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34493         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34494
34495 2008-03-06  Eric Blake  <ebb9@byu.net>
34496
34497         Likewise for ftello.
34498         * modules/ftello (Dependencies): Add extensions.
34499         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34500
34501 2008-03-06  Bruno Haible  <bruno@clisp.org>
34502
34503         * modules/fseeko (Dependencies): Add extensions.
34504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34505         Needed on glibc systems.
34506
34507 2008-03-06  Bruno Haible  <bruno@clisp.org>
34508
34509         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34510         email address.
34511         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34512
34513 2008-03-06  Bruno Haible  <bruno@clisp.org>
34514
34515         * users.txt: Add libgnupdf.
34516
34517 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34518
34519         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34520         (Header File Substitutes, Function Substitutes,
34521         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34522         (Build robot for gnulib): Fix typo.
34523
34524 2008-03-06  Bruno Haible  <bruno@clisp.org>
34525
34526         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34527         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34528
34529 2008-03-06  Bruno Haible  <bruno@clisp.org>
34530
34531         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34532         * doc/gnulib.texi: Include it.
34533
34534 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34535
34536         * modules/func (License): Change license to unlimited; there was
34537         no LGPL parts in the module anyway.
34538
34539 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34540
34541         * modules/__func__: Renamed to modules/func.
34542         * modules/__func__-tests: Renamed to modules/func-tests.
34543         * tests/test-__func__.c: Renamed to tests/test-func.c.
34544         * m4/__func__.m4: Renamed to m4/func.m4.
34545         * doc/gnulib.texi (__func__): Section renamed to func.
34546         Suggested by Eric Blake <ebb9@byu.net>.
34547
34548 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34549
34550         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34551         about __func__.  Make example self-contained.  Suggested by Eric
34552         Blake <ebb9@byu.net>.
34553
34554         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34555         Suggested by Eric Blake <ebb9@byu.net>.
34556
34557 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34558
34559         * modules/__func__: New file.
34560         * modules/__func__-tests: New file.
34561         * tests/test-__func__.c: New file.
34562         * m4/__func__.m4: New file.
34563         * doc/gnulib.texi (__func__): Document __func__ module.
34564
34565 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34566
34567         * modules/byteswap (License): Re-license as LGPLv2+.
34568
34569 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34570
34571         * doc/Makefile: Add pdf target.
34572
34573 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34574
34575         * modules/inline (License): Use 'unlimited', since there are only
34576         *.m4 files in this module.
34577
34578 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34579             Bruno Haible  <bruno@clisp.org>
34580
34581         Add support for HP C 7.1 on OpenVMS 8.3.
34582         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34583
34584 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34585
34586         Update VMS specifics.
34587         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34588
34589 2008-03-02  Jim Meyering  <meyering@redhat.com>
34590
34591         Remove the last dependency on the "free" module.
34592         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34593         Reported by Bob Proulx.
34594
34595         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34596
34597         Remove useless "if" tests before free.  Deprecate "free" module.
34598         * doc/posix-functions/free.texi: Mention that this
34599         module is no longer useful.
34600         * modules/free (Notice): Say this module is obsolete.
34601         * modules/readutmp (Depends-on): Remove free.
34602         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34603         * lib/putenv.c (putenv): Likewise.
34604         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34605         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34606         * tests/test-c-strcasestr.c (main): Likewise.
34607         * tests/test-c-strstr.c (main): Likewise.
34608         * tests/test-mbscasestr1.c (main): Likewise.
34609         * tests/test-mbscasestr2.c (main): Likewise.
34610         * tests/test-mbsstr1.c (main): Likewise.
34611         * tests/test-mbsstr2.c (main): Likewise.
34612         * tests/test-memmem.c (main): Likewise.
34613         * tests/test-strcasestr.c (main): Likewise.
34614         * tests/test-striconv.c (main): Likewise.
34615         * tests/test-striconveh.c (main): Likewise.
34616         * tests/test-striconveha.c (main): Likewise.
34617         * tests/test-strstr.c (main): Likewise.
34618
34619         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34620
34621         bootstrap: sync from coreutils again
34622         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34623
34624 2008-03-01  Jim Meyering  <meyering@redhat.com>
34625
34626         bootstrap: sync from coreutils
34627         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34628         also when the target doesn't exist.
34629
34630 2008-03-01  Eric Blake  <ebb9@byu.net>
34631
34632         Fix bugs in last patch.
34633         * lib/memchr2.c (memchr2): Fix typo.
34634         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34635         extension.
34636         Reported by Bruce Korb.
34637
34638         New module 'memchr2'.
34639         * modules/memchr2: New file.
34640         * modules/memchr2-tests: Likewise.
34641         * lib/memchr2.h: Likewise.
34642         * lib/memchr2.c: Likewise, based on memchr.c.
34643         * tests/test-memchr2.c: New test.
34644         * MODULES.html.sh (String handling): Add memchr2.
34645
34646 2008-02-29  Bruno Haible  <bruno@clisp.org>
34647
34648         * modules/freadseek-tests: New file.
34649         * tests/test-freadseek.sh: New file.
34650         * tests/test-freadseek.c: New file.
34651
34652         New module 'freadseek'.
34653         * modules/freadseek: New file.
34654         * lib/freadseek.h: New file.
34655         * lib/freadseek.c: New file.
34656         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34657
34658 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34659
34660         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34661         wydawca.
34662
34663         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34664         program_invocation_name and program_invocation_short_name are
34665         present.
34666
34667 2008-02-28  Bruno Haible  <bruno@clisp.org>
34668
34669         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34670         * tests/test-freadptr.sh: Also test non-seekable stdin.
34671
34672 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34673
34674         * build-aux/bootstrap (source_base, m4_base)
34675         (doc_base, tests_base): New variables.
34676         (gnulib_tool_options): Do not hardcode base directories, use
34677         the above variables instead.
34678
34679 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34680
34681         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34682
34683 2008-02-28  Bruno Haible  <bruno@clisp.org>
34684
34685         * modules/freadptr-tests: New file.
34686         * tests/test-freadptr.sh: New file.
34687         * tests/test-freadptr.c: New file.
34688
34689         New module 'freadptr'.
34690         * modules/freadptr: New file.
34691         * lib/freadptr.h: New file.
34692         * lib/freadptr.c: New file.
34693         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34694
34695 2008-02-26  Karl Berry  <karl@freefriends.org>
34696
34697         Sync from Libtool:
34698         * libltdl/argz.c (argz_add, argz_count): New functions.
34699         * libltdl/argz.in.h: Declare them.
34700         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34701
34702 2008-02-22  Bruno Haible  <bruno@clisp.org>
34703
34704         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34705         is a pointer type.  Needed for HP-UX 10.
34706         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34707         * doc/posix-functions/gmtime_r.texi: Likewise.
34708         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34709
34710 2008-02-24  Bruno Haible  <bruno@clisp.org>
34711
34712         * modules/environ-tests: New file.
34713         * tests/test-environ.c: New file.
34714
34715         New module 'environ'.
34716         * modules/environ: New file.
34717         * lib/unistd.in.h (environ): New declaration.
34718         * m4/environ.m4: New file.
34719         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34720         after use.
34721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34722         HAVE_DECL_ENVIRON.
34723         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34724         HAVE_DECL_ENVIRON.
34725         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34726         wrong claim that 'environ' is missing on some systems.
34727         * modules/execute (Depends-on): Add environ.
34728         * lib/execute.c (environ): Remove fallback declaration.
34729         * modules/pipe (Depends-on): Add environ.
34730         * lib/pipe.c (environ): Remove fallback declaration.
34731         * modules/setenv (Depends-on): Add environ.
34732         * lib/setenv.c (environ): Remove fallback declaration.
34733         * modules/unsetenv (Depends-on): Add environ.
34734         * lib/unsetenv.c (environ): Remove fallback declaration.
34735         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34736         m4/environ.m4.
34737         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34738         (gl_PREREQ_UNSETENV): Likewise.
34739
34740 2008-02-24  Bruno Haible  <bruno@clisp.org>
34741
34742         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34743
34744 2008-02-20  Bob Proulx  <bob@proulx.com>
34745
34746         Enable use of older two part flavor 'git describe'.
34747         * build-aux/git-version-gen: If using the older two part flavor of
34748         git version then recreate the third part now present in the
34749         newer three part flavor of git describe.
34750
34751 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34752
34753         * lib/fts.c (fts_build): Typo correction to comment.
34754
34755 2008-02-17  Bruno Haible  <bruno@clisp.org>
34756
34757         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34758         generating no-op conflicts.
34759
34760 2008-02-17  Bruno Haible  <bruno@clisp.org>
34761
34762         Speed up by 10%.
34763         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34764         result_entries, rather than an index-based loop.
34765
34766 2008-02-17  Bruno Haible  <bruno@clisp.org>
34767
34768         Speed up by 25%.
34769         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34770         'hashcode_cached'.
34771         (entry_create): New function.
34772         (entry_hashcode): Use the cached hashcode if possible.
34773         (read_changelog_file, try_split_merged_entry): Use entry_create.
34774
34775 2008-02-17  Bruno Haible  <bruno@clisp.org>
34776
34777         Speed up from O(n^2) to O(n) for long ChangeLog files.
34778         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34779         (read_changelog_file): Change implementation of entries_reversed list
34780         to rbtreehash.
34781         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34782
34783 2008-02-17  Bruno Haible  <bruno@clisp.org>
34784
34785         New option --split-merged-entry.
34786         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34787         (find_paragraph_end, try_split_merged_entry): New functions.
34788         (long_options): Add option --split-merged-entry.
34789         (usage): Document option --split-merged-entry.
34790         (main): Implement option --split-merged-entry.
34791         Reported by Eric Blake.
34792
34793 2008-02-17  Bruno Haible  <bruno@clisp.org>
34794
34795         * lib/git-merge-changelog.c: Include c-strstr.h.
34796         (main): Support the "git pull --rebase" situation.
34797         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34798         Reported by Eric Blake.
34799
34800 2008-02-16  Eric Blake  <ebb9@byu.net>
34801
34802         Avoid doubling \ in common case of "c-maybe" quoting style.
34803         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34804         eliding outer quotes.
34805         * lib/quotearg.h: Document this.
34806         * tests/test-quotearg.c (result_strings, inputs, results_g)
34807         (flag_results, locale_results): Test it by adding a new string to
34808         each test group.
34809         (compare_strings): Test new string.
34810
34811 2008-02-13  Eric Blake  <ebb9@byu.net>
34812
34813         Avoid trigraph quoting in default output.
34814         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34815         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34816         unless explicitly requested.
34817         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34818
34819 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34820
34821         Don't rely on signed integer overflowing to negative value.
34822         * lib/getugroups.c (getugroups): Include <limits.h>.
34823         Instead, compare against INT_MAX, and increment only if the test passes.
34824
34825 2008-02-13  Jim Meyering  <meyering@redhat.com>
34826         and Eric Blake  <ebb9@byu.net>
34827
34828         Avoid shadowing warning and compile errors on Linux.
34829         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34830         forwarding macros on Linux.
34831         (dcgettext): Define a stub, for Linux.
34832         (results_g, main): Avoid warnings.
34833
34834 2008-02-12  Eric Blake  <ebb9@byu.net>
34835
34836         Silence warning in last patch.
34837         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34838
34839         Quotearg part 4: add tests, fix c-maybe colon quoting.
34840         * lib/quotearg.h: Improve documentation.
34841         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34842         escapes when adding outer quotes.  When quoting trigraphs, use
34843         valid C notation.  When quoting NUL, omit extra characters if next
34844         character is not digit.  Alter prototype.
34845         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34846         callers.
34847         * modules/quotearg-tests: New module.
34848         * tests/test-quotearg.c: New test.
34849
34850 2008-02-07  Eric Blake  <ebb9@byu.net>
34851
34852         Quotearg part 3: add flag to control outer quote elision.
34853         * lib/quotearg.h (c_maybe_quoting_style): New style.
34854         (enum quoting_flags): Better documentation of flags.
34855         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34856         c-maybe style.
34857         (quotearg_buffer_restyled): Handle new flag to elide outer
34858         quotes.
34859
34860         Quotearg part 2: add flag that can control NUL elision.
34861         * lib/quotearg.h (set_quoting_flags): New prototype.
34862         * lib/quotearg.c (struct quoting_options): Add flag field.
34863         (set_quoting_flags): New function.
34864         (quotearg_buffer_restyled): Add flags parameter.
34865         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34866         (quotearg_n_options): Set the flag, since length cannot be
34867         returned.
34868         (quoting_options_from_style): Default flags correctly.
34869
34870         Quotearg part 1: more wrappers, restore quotearg_char state.
34871         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34872         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34873         (quotearg_colon_mem): New wrappers.
34874         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34875         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34876         functions.
34877         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34878         (quotearg_colon_mem): New functions.
34879
34880 2008-02-11  Bruno Haible  <bruno@clisp.org>
34881
34882         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34883         library in the current directory: it does not work with parallel make.
34884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34885
34886 2008-02-11  Bruno Haible  <bruno@clisp.org>
34887
34888         * .gitattributes: New file.
34889
34890 2008-02-11  Jim Meyering  <meyering@redhat.com>
34891
34892         useless-if-before-free: Fix reversed exit values.
34893         * build-aux/useless-if-before-free: Use correct values
34894         for EXIT_MATCH and EXIT_NO_MATCH.
34895
34896         * build-aux/useless-if-before-free: Close stdout carefully.
34897
34898 2008-02-10  Bruno Haible  <bruno@clisp.org>
34899
34900         New module 'git-merge-changelog'.
34901         * modules/git-merge-changelog: New file.
34902         * lib/git-merge-changelog.c: New file.
34903
34904 2008-02-10  Jim Meyering  <meyering@redhat.com>
34905
34906         useless-if-before-free: New option: --list (-l).
34907
34908         useless-if-before-free: Don't exit immediately upon open failure.
34909         * build-aux/useless-if-before-free: Exit 2 for errors.
34910         Upon failure to open a file, don't exit immediately.
34911         Rather, just warn and continue with any remaining files.
34912
34913 2008-02-10  Bruno Haible  <bruno@clisp.org>
34914
34915         New abstract list operation 'node_set_value'.
34916         * lib/gl_list.h (gl_list_node_set_value): New function.
34917         (struct gl_list_implementation): New field node_set_value.
34918         * lib/gl_list.c (gl_list_node_set_value): New function.
34919         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34920         (gl_array_list_implementation): Update.
34921         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34922         (gl_carray_list_implementation): Update.
34923         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34924         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34925         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34926         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34927         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34928         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34929         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34930         Update.
34931         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34932         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34933         (gl_sublist_list_implementation): Update.
34934
34935 2008-02-10  Bruno Haible  <bruno@clisp.org>
34936
34937         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34938         Needed when ELEMENT is #defined to 'some_type *'.
34939
34940 2008-02-10  Jim Meyering  <meyering@redhat.com>
34941
34942         New script and module: useless-if-before-free
34943         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34944         * build-aux/useless-if-before-free: New file.
34945         * modules/useless-if-before-free: New file.
34946
34947         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34948
34949         xstrtol_error: Fix typo.
34950         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34951         s/exit_failure/exit_status/.
34952
34953 2008-02-09  Jim Meyering  <meyering@redhat.com>
34954
34955         New script and module: gitlog-to-changelog
34956         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34957         * modules/gitlog-to-changelog: New file.
34958         * build-aux/gitlog-to-changelog: New file.
34959
34960 2008-02-08  Jim Meyering  <meyering@redhat.com>
34961
34962         Avoid two "parameter unused" warnings.
34963         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34964         Mark "st" as used.
34965
34966         Use "git COMMAND", not "git-COMMAND".
34967         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34968         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34969         * build-aux/git-version-gen: Use "git status", not "git-status".
34970
34971 2008-02-07  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34974         Avoids a crash on Windows Vista.
34975         Reported by Adam Strzelecki <ono@java.pl> via
34976         Simon Josefsson <simon@josefsson.org>.
34977
34978 2008-02-06  Bruno Haible  <bruno@clisp.org>
34979
34980         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34981         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34982         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34984         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34985         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34986         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34987         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34988         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34990         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34991         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34992         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34993         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34994         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34995         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34996         left-adjust flag.
34997         * tests/test-snprintf-posix.h (test_function): Likewise.
34998         * tests/test-sprintf-posix.h (test_function): Likewise.
34999         * tests/test-vasprintf-posix.c (test_function): Likewise.
35000         * doc/posix-functions/fprintf.texi: Update.
35001         * doc/posix-functions/printf.texi: Update.
35002         * doc/posix-functions/snprintf.texi: Update.
35003         * doc/posix-functions/sprintf.texi: Update.
35004         * doc/posix-functions/vfprintf.texi: Update.
35005         * doc/posix-functions/vprintf.texi: Update.
35006         * doc/posix-functions/vsnprintf.texi: Update.
35007         * doc/posix-functions/vsprintf.texi: Update.
35008         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35009
35010 2008-02-06  Bruno Haible  <bruno@clisp.org>
35011
35012         Fix bug introduced on 2008-01-26.
35013         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
35014
35015 2008-02-06  Bruno Haible  <bruno@clisp.org>
35016
35017         Fix bug introduced on 2007-06-10.
35018         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
35019         !NEED_PRINTF_FLAG_ZERO.
35020
35021 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
35022
35023         getloadavg: use libperfstat on AIX5
35024         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
35025
35026 2008-02-03  Bruno Haible  <bruno@clisp.org>
35027
35028         * lib/diffseq.h: Add comments about required #includes.
35029         Reported by Michael Biggs <gnulib@doubleplum.net>.
35030
35031 2008-02-01  Bruno Haible  <bruno@clisp.org>
35032
35033         * users.txt: Add gnuit.
35034
35035 2008-01-31  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/md4.c (set_uint32): Mark as inline.
35038         * lib/md5.c (set_uint32): Likewise.
35039         * lib/sha1.c (set_uint32): Likewise.
35040         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
35041         * m4/md5.m4 (gl_MD5): Likewise.
35042         * m4/sha1.m4 (gl_SHA1): Likewise.
35043
35044 2008-01-31  Jim Meyering  <meyering@redhat.com>
35045
35046         Use "sizeof VAR", rather than a literal "4".
35047         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
35048         * lib/md4.c (md4_read_ctx): Likewise.
35049         * lib/sha1.c (sha1_read_ctx): Likewise.
35050
35051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35052
35053         * tests/test-sha1.c: New file, based on test-md5.c.
35054
35055         * modules/crypto/sha1-tests: New file.
35056
35057 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35058
35059         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
35060
35061 2008-01-31  Jim Meyering  <meyering@redhat.com>
35062
35063         Prefer "sizeof v" over the equivalent "4".
35064         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
35065         * lib/md5.c (set_uint32): Likewise.
35066         * lib/sha1.c (set_uint32): Likewise.
35067
35068 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35069
35070         * lib/sha1.c (set_uint32): Mark function as static.
35071
35072 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35073
35074         md2: clarify comments to say that alignment is not required.
35075         * lib/md2.h: Remove warning about alignment in comment.
35076         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
35077         never been required.
35078
35079 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35080
35081         md4: adapt alignment constraint fix from sha1.
35082         * lib/md4.c (set_uint32): New function, from sha1.c
35083         (md4_read_ctx): Use it.
35084         (md4_finish_ctx): Doc fix.
35085         * lib/md4.h: Doc fix.
35086
35087 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35088
35089         md5: adapt alignment constraint fix from sha1.
35090         * lib/md5.c (set_uint32): New function, from sha1.c
35091         (md5_read_ctx): Use it.
35092         (md5_finish_ctx): Doc fix.
35093         * lib/md5.h: Doc fix.
35094
35095 2008-01-30  Peter Palfrader  <weasel@debian.org>
35096
35097         sha1: remove the result buffer alignment constraint
35098         * lib/sha1.c (set_uint32): New function.
35099         (sha1_read_ctx): Rewrite to remove the result buffer alignment
35100         constraint.
35101         (sha1_finish_ctx): Remove comment warning about alignment constraint.
35102         * lib/sha1.h: Likewise.
35103
35104 2008-01-30  Andreas Schwab  <schwab@suse.de>
35105             Bruno Haible  <bruno@clisp.org>
35106
35107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
35108         correct definition of LDBL_MIN_EXP.
35109
35110 2008-01-30  Karl Berry  <karl@gnu.org>
35111
35112         * config/srclist-update: try to preserve x bit on updates.
35113         * config/srclistvars.sh: update for karl.
35114
35115 2008-01-29  Jim Meyering  <meyering@redhat.com>
35116
35117         vasnprintf.c: Avoid warning about unused label
35118         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35119         "overflow" label definition and associated code with the
35120         same cpp condition that guards the sole use of that label.
35121
35122 2008-01-26  Bruno Haible  <bruno@clisp.org>
35123
35124         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35125         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35126         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35127         * lib/isnanl-nolibm.h (isnanl): Likewise.
35128         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35129
35130 2008-01-26  Bruno Haible  <bruno@clisp.org>
35131
35132         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35133         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35134
35135 2008-01-26  Bruno Haible  <bruno@clisp.org>
35136
35137         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35138         GCC >= 4.0 built-in.
35139         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35140
35141 2008-01-26  Bruno Haible  <bruno@clisp.org>
35142
35143         Rename isnan, applicable to 'double' only, to isnand.
35144         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35145         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35146         (configure.ac): Update.
35147         (Include): Replace "isnan.h" with "isnand.h".
35148         * m4/isnand.m4: Renamed from m4/isnan.m4.
35149         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35150         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35151         instead of isnan.c.
35152         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35153         instead of HAVE_ISNAN_IN_LIBC.
35154         (isnand): Renamed from isnan.
35155         * lib/isnand.c: New file.
35156         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35157         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35158         (Makefile.am): Update.
35159         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35160         Include isnand.h instead of isnan.h.
35161         (main): Test isnand instead of isnan.
35162         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35163         isnan-nolibm.
35164         * modules/frexp (Depends-on): Likewise.
35165         * modules/frexp-tests (Depends-on): Likewise.
35166         * modules/frexp-nolibm (Depends-on): Likewise.
35167         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35168         * modules/isfinite (Depends-on): Likewise.
35169         * modules/round-tests (Depends-on): Likewise.
35170         * modules/signbit (Depends-on): Likewise.
35171         * modules/signbit-tests (Depends-on): Likewise.
35172         * modules/snprintf-posix (Depends-on): Likewise.
35173         * modules/sprintf-posix (Depends-on): Likewise.
35174         * modules/trunc-tests (Depends-on): Likewise.
35175         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35176         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35177         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35178         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35179         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35180         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35181         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35182         * modules/vasnprintf-posix (Depends-on): Likewise.
35183         * modules/vasprintf-posix (Depends-on): Likewise.
35184         * modules/vfprintf-posix (Depends-on): Likewise.
35185         * modules/vsnprintf-posix (Depends-on): Likewise.
35186         * modules/vsprintf-posix (Depends-on): Likewise.
35187         * lib/frexp.c: Include isnand.h instead of isnan.h.
35188         (ISNAN): Set to isnand instead of isnan.
35189         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35190         (gl_isfinited): Use isnand instead of isnan.
35191         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35192         (gl_signbitd): Use isnand instead of isnan.
35193         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35194         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35195         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35196         (main): Use isnand instead of isnan.
35197         * tests/test-round1.c: Include isnand.h.
35198         (main): Use isnand instead of isnan.
35199         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35200         (ISNAN): Set to isnand instead of isnan.
35201         * tests/test-trunc1.c: Include isnand.h.
35202         (main): Use isnand instead of isnan.
35203         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35204         (equal): Use isnand instead of isnan.
35205         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35206         isnand-nolibm.
35207         * NEWS: Mention the change.
35208
35209 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35210             Bruno Haible  <bruno@clisp.org>
35211
35212         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35213         the GCC builtins for signbits are present and set
35214         REPLACE_SIGNBIT_USING_GCC if so.
35215         * lib/math.in.h (signbit): Define using GCC builtins if
35216         REPLACE_SIGNBIT_USING_GCC is set.
35217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35218         REPLACE_SIGNBIT_USING_GCC.
35219         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35220
35221 2008-01-25  Jim Meyering  <meyering@redhat.com>
35222
35223         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35224         * lib/poll.c: Include <config.h>, not "config.h".
35225         * tests/test-getaddrinfo.c: Likewise.
35226
35227 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35228
35229         * modules/sockets-tests: New file.
35230
35231 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35232
35233         * modules/sockets: New module, can be used to call WSA_Startup and
35234         WSA_Cleanup when needed.
35235
35236         * lib/sockets.h, lib/sockets.c: New files.
35237
35238         * m4/sockets.m4: New file.
35239
35240         * tests/test-sockets.c: New file.
35241
35242 2008-01-19  Bruno Haible  <bruno@clisp.org>
35243
35244         * doc/posix-headers: Renamed from doc/headers.
35245         * doc/posix-functions: Renamed from doc/functions.
35246         * doc/gnulib.texi: Update.
35247
35248 2008-01-19  Bruno Haible  <bruno@clisp.org>
35249
35250         * doc/glibc-functions/strcasestr.texi: Include contents of
35251         doc/functions/strcasestr.texi, fixing the list of platforms.
35252         * doc/functions/strcasestr.texi: Remove file.
35253
35254 2008-01-19  Bruno Haible  <bruno@clisp.org>
35255
35256         * doc/glibc-functions/memmem.texi: Include contents of
35257         doc/functions/memmem.texi.
35258         * doc/functions/memmem.texi: Remove file.
35259
35260 2008-01-18  Bruno Haible  <bruno@clisp.org>
35261
35262         * doc/glibc-functions/*.texi: New files.
35263         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35264         to use the new files.
35265
35266 2008-01-17  Bruno Haible  <bruno@clisp.org>
35267
35268         * tests/test-gethostname.c (main): Fix printf statement.
35269
35270 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35271
35272         * modules/gethostname-tests: New file.
35273
35274         * tests/test-gethostname.c: New file.
35275
35276 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35277
35278         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35279         used by the UNAME case.  Reported by Bruno Haible
35280         <bruno@clisp.org>.
35281
35282 2008-01-17  Eric Blake  <ebb9@byu.net>
35283
35284         Convert c-strcasestr to be more efficient.
35285         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35286         (Depends-on): Add c-strcase, remove malloca, strnlen.
35287         * tests/test-c-strcasestr.c (main): Enhance test.
35288         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35289
35290 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35291
35292         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35293         Use it in creating po/Makevars.
35294
35295 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35296
35297         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35298         Applications that requires it should initialize libgcrypt
35299         manually.
35300
35301 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35302
35303         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35304
35305 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35306
35307         Fix problem with getdate on mingw32 reported by Simon Josefsson
35308         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35309         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35310         tzname", when deciding whether to declare tzname.
35311         * lib/strftime.c (tzname): Likewise.
35312
35313 2008-01-15  Bruno Haible  <bruno@clisp.org>
35314
35315         Work around a MacOS X 10.5 bug in frexpl().
35316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35317         * doc/functions/frexpl.texi: Document the bug.
35318         Reported by Elias Pipping <pipping@gentoo.org>.
35319
35320 2008-01-14  Eric Blake  <ebb9@byu.net>
35321
35322         Touch up previous patch.
35323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35324         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35325
35326         Convert strcasestr module to use Two-Way algorithm.
35327         * modules/strcasestr-simple: New module, based on the old
35328         strcasestr, but with Two-Way rather than KMP.
35329         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35330         * lib/string.in.h (rpl_strcasestr): Declare.
35331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35332         performance.
35333         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35334         * modules/string (Makefile.am): Support strcasestr.
35335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35336         * modules/strcasestr-tests (Depends-on): Check for alarm.
35337         * tests/test-strcasestr.c: Augment test.
35338         * lib/str-two-way.h: Clean up stray macro.
35339         * NEWS: Document new module.
35340         * MODULES.html.sh (string handling): Likewise.
35341         * doc/functions/strcasestr.texi: New file.
35342         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35343         here, since it is not a POSIX function.
35344
35345 2008-01-14  Colin Watson  <cjwatson@debian.org>
35346             Bruno Haible  <bruno@clisp.org>
35347
35348         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35349         works fine; if not, set REPLACE_STRSIGNAL.
35350         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35352         REPLACE_STRSIGNAL.
35353         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35354         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35355         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35356
35357 2008-01-14  Bruno Haible  <bruno@clisp.org>
35358
35359         * modules/strsignal (Include): Change to <string.h>.
35360
35361 2008-01-14  Colin Watson  <cjwatson@debian.org>
35362
35363         * modules/argp (Notice): Add a notice recommending to change
35364         XGETTEXT_OPTIONS.
35365         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35366
35367 2008-01-13  Colin Watson  <cjwatson@debian.org>
35368
35369         * modules/strsignal-tests: New file.
35370         * tests/test-strsignal.c: New file.
35371
35372         * lib/strsignal.c: New file, from glibc with modifications.
35373         * lib/siglist.h: New file, from glibc with modifications.
35374         * lib/string.in.h (strsignal): New declaration.
35375         * m4/strsignal.m4: New file.
35376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35377         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35378         * modules/strsignal: New file.
35379         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35380         HAVE_DECL_STRSIGNAL.
35381
35382 2008-01-13  Bruno Haible  <bruno@clisp.org>
35383
35384         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35385         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35386         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35387         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35388
35389 2008-01-13  Bruno Haible  <bruno@clisp.org>
35390
35391         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35392         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35393         * lib/argp.h (__attribute__): Likewise.
35394         * lib/c-stack.c (__attribute__): Likewise.
35395         * lib/error.h (__attribute__): Likewise.
35396         * lib/fts.c (__attribute__): Likewise.
35397         * lib/openat.h (__attribute__): Likewise.
35398         * lib/stdio.in.h (__attribute__): Likewise.
35399         * lib/string.in.h (__attribute__): Likewise.
35400         * lib/utimens.c (__attribute__): Likewise.
35401         * lib/vasnprintf.h (__attribute__): Likewise.
35402         * lib/xalloc.h (__attribute__): Likewise.
35403         * lib/xprintf.h (__attribute__): Likewise.
35404         * lib/xstrtol.h (__attribute__): Likewise.
35405         * lib/xvasprintf.h (__attribute__): Likewise.
35406
35407 2008-01-12  Bruno Haible  <bruno@clisp.org>
35408
35409         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35410         * doc/glibc-headers/a.out.texi: New file.
35411         * doc/glibc-headers/aliases.texi: New file.
35412         * doc/glibc-headers/alloca.texi: New file.
35413         * doc/glibc-headers/ar.texi: New file.
35414         * doc/glibc-headers/argp.texi: New file.
35415         * doc/glibc-headers/argz.texi: New file.
35416         * doc/glibc-headers/byteswap.texi: New file.
35417         * doc/glibc-headers/crypt.texi: New file.
35418         * doc/glibc-headers/endian.texi: New file.
35419         * doc/glibc-headers/envz.texi: New file.
35420         * doc/glibc-headers/err.texi: New file.
35421         * doc/glibc-headers/error.texi: New file.
35422         * doc/glibc-headers/execinfo.texi: New file.
35423         * doc/glibc-headers/fpu_control.texi: New file.
35424         * doc/glibc-headers/fstab.texi: New file.
35425         * doc/glibc-headers/fts.texi: New file.
35426         * doc/glibc-headers/getopt.texi: New file.
35427         * doc/glibc-headers/ieee754.texi: New file.
35428         * doc/glibc-headers/ifaddrs.texi: New file.
35429         * doc/glibc-headers/libintl.texi: New file.
35430         * doc/glibc-headers/mcheck.texi: New file.
35431         * doc/glibc-headers/mntent.texi: New file.
35432         * doc/glibc-headers/obstack.texi: New file.
35433         * doc/glibc-headers/paths.texi: New file.
35434         * doc/glibc-headers/printf.texi: New file.
35435         * doc/glibc-headers/pty.texi: New file.
35436         * doc/glibc-headers/resolv.texi: New file.
35437         * doc/glibc-headers/shadow.texi: New file.
35438         * doc/glibc-headers/sysexits.texi: New file.
35439         * doc/glibc-headers/ttyent.texi: New file.
35440
35441 2008-01-12  Jim Meyering  <meyering@redhat.com>
35442
35443         announce-gen: emit Gnulib's git-based version string.
35444         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35445         New option --gnulib-version=V, where V is expected to be
35446         the output of running git describe in the gnulib directory.
35447         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35448         not useful, and plan to stop publishing an xdelta file with each
35449         coreutils release.
35450
35451         * build-aux/announce-gen: Also check for lzma-compressed files.
35452
35453 2008-01-11  Bruno Haible  <bruno@clisp.org>
35454
35455         * tests/test-memmem.c (main): Increase maximum allowed time.
35456         * tests/test-strstr.c (main): Likewise.
35457
35458 2008-01-11  Bruno Haible  <bruno@clisp.org>
35459
35460         * doc/functions/memmem.texi: Add more precisions about platforms.
35461         * doc/functions/strstr.texi: Likewise.
35462
35463 2008-01-10  Eric Blake  <ebb9@byu.net>
35464
35465         * m4/strstr.m4: Delete cruft from copy-n-paste.
35466         Reported by Bruno Haible.
35467
35468 2008-01-10  Bruno Haible  <bruno@clisp.org>
35469
35470         Make c-strstr rely on strstr.
35471         * lib/c-strstr.c: Don't include str-kmp.h.
35472         (c_strstr): Define in terms of strstr.
35473         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35474         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35475
35476 2008-01-10  Bruno Haible  <bruno@clisp.org>
35477
35478         * doc/gnulib.texi (String Functions in C Locale): New section.
35479         * doc/c-ctype.texi: New file.
35480         * doc/c-strcase.texi: New file.
35481         * doc/c-strcaseeq.texi: New file.
35482         * doc/c-strcasestr.texi: New file.
35483         * doc/c-strstr.texi: New file.
35484         * doc/c-strtod.texi: New file.
35485         * doc/c-strtold.texi: New file.
35486
35487 2008-01-10  Eric Blake  <ebb9@byu.net>
35488
35489         * lib/relocatable.h: Fix a comment.
35490
35491 2008-01-10  Eric Blake  <ebb9@byu.net>
35492
35493         Share two-way algorithm.
35494         * lib/str-two-way.h: New file, merged from...
35495         * lib/memmem.c: ...here...
35496         * lib/strstr.c: ...and here.
35497         * modules/memmem (Files): Use it.
35498         * modules/strstr (Files): Likewise.
35499
35500         Avoid quadratic strstr implementations.
35501         * lib/strstr.c: New file.
35502         * m4/strstr.m4: Likewise.
35503         * modules/strstr: Likewise.
35504         * modules/strstr-tests: Likewise.
35505         * tests/test-strstr.c: Likewise.
35506         * lib/string.in.h (rpl_strstr): Declare.
35507         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35509         * modules/string (Makefile.am): Likewise.
35510         * MODULES.html.sh (string handling): Mention new module.
35511         * doc/functions/strstr.texi (strstr): Document the bug.
35512
35513 2008-01-10  Bruno Haible  <bruno@clisp.org>
35514
35515         * lib/relocatable.h (relocate): State whether result is freshly
35516         allocated or not.
35517         * lib/relocatable.c (relocate): Return a freshly allocated string
35518         instead of a pointer to a privately held string.
35519         Reported by Sylvain Beucler <beuc@gnu.org>.
35520
35521 2008-01-10  Colin Watson  <cjwatson@debian.org>
35522
35523         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35524         s/S_ISNLK/S_ISLNK/.
35525
35526 2008-01-09  Bruno Haible  <bruno@clisp.org>
35527
35528         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35529         and other files.
35530         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35531         if it's only a guess.
35532         * modules/memmem: Simplify by depending on memmem-simple.
35533
35534 2008-01-09  Bruno Haible  <bruno@clisp.org>
35535
35536         Work around OpenBSD 4.0 tdelete() bug.
35537         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35538         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35539         macros and don't redefine the enum values.
35540         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35541         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35542         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35543
35544 2008-01-09  Bruno Haible  <bruno@clisp.org>
35545
35546         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35547         (main): Don't perform the tests if setlocale did not install a UTF-8
35548         locale. Needed on OpenBSD 4.0.
35549         * modules/wcwidth-tests (Depends-on): Add localcharset.
35550
35551 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35552
35553         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35554         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35555         * NEWS: announce this.
35556         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35557
35558 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35559         and Eric Blake  <ebb9@byu.net>
35560
35561         Add memmem-simple module.
35562         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35563         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35564         * modules/memmem-simple: New file.
35565         * modules/memmem (Description): Tweak.
35566         * MODULES.html.sh (string handling): Mention new module.
35567         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35568         addressed by memmem-simple.
35569         * NEWS: Document the difference.
35570
35571 2008-01-09  Eric Blake  <ebb9@byu.net>
35572
35573         Give gcc some memmem optimization hints.
35574         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35575         (strcasestr): Declare as pure.
35576         * modules/memmem (Maintainer): Claim my implementation.
35577
35578 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35579
35580         Support AIX 6.1 and higher.
35581         * build-aux/config.libpath: Likewise.
35582         * build-aux/config.rpath: Likewise.
35583
35584 2008-01-08  Jim Meyering  <meyering@redhat.com>
35585             Bruno Haible  <bruno@clisp.org>
35586
35587         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35588         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35589         Reported by Peter Fales in
35590         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35591
35592 2008-01-08  Bruno Haible  <bruno@clisp.org>
35593
35594         * modules/unictype/category-of (Depends-on): Add
35595         unictype/category-none.
35596         * modules/unictype/category-and-tests (Depends-on): Add
35597         unictype/category-{L,N,Lu,Nd}.
35598         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35599         * modules/unictype/category-or-tests (Depends-on): Add
35600         unictype/category-{L,N}.
35601         * modules/unictype/category-name-tests (Depends-on): Add
35602         unictype/category-{Z,Nl}.
35603         Reported by Simon Josefsson.
35604
35605 2008-01-08  Bruno Haible  <bruno@clisp.org>
35606
35607         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35608         convention better.
35609         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35610         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35611         Reported by Peter Miller <millerp@canb.auug.org.au>.
35612
35613 2008-01-08  Eric Blake  <ebb9@byu.net>
35614
35615         Rewrite memmem to guarantee linear complexity without malloc.
35616         * lib/memmem.c (memmem): Use Two-Way rather than
35617         Knuth-Morris-Pratt, to allow O(1) space usage.
35618         (critical_factorization, two_way_short_needle)
35619         (two_way_long_needle): New functions.
35620         (knuth_morris_pratt): Delete.
35621         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35622         Add stdint.
35623         * tests/test-memmem.c (main): Add tests for periodic needle and
35624         sublinear performance.
35625         * doc/functions/memmem.texi (memmem): Document other deficiencies
35626         in cygwin and older glibc.
35627
35628 2008-01-08  Bruno Haible  <bruno@clisp.org>
35629
35630         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35631         augmentation.
35632
35633 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35634
35635         Add a configure time option: --disable-acl.
35636         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35637         AC_ARG_ENABLE(acl).
35638
35639 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35640
35641         * tests/test-localename.c: Don't include obsolete "setenv.h".
35642
35643         * modules/localename-tests (Depends-on): Need unsetenv.
35644
35645 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35646
35647         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35648
35649 2008-01-06  Colin Watson  <cjwatson@debian.org>
35650
35651         * users.txt: Add man-db.
35652
35653 2008-01-07  Bruno Haible  <bruno@clisp.org>
35654
35655         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35656         previous section name.
35657
35658 2008-01-07  Bruno Haible  <bruno@clisp.org>
35659
35660         * lib/progname.c (set_program_name): Don't strip off a leading
35661         "lt-" prefix outside a .libs directory.
35662         Suggested by Paul Eggert.
35663
35664 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35665             Bruno Haible  <bruno@clisp.org>
35666
35667         Improve memory cleanup in 'relocatable' module.
35668         * lib/relocatable.h (compute_curr_prefix): Change return type to
35669         'char *'.
35670         * lib/relocatable.c (compute_curr_prefix): Change return type to
35671         'char *'. Free curr_installdir after use.
35672         (relocate): Free curr_prefix_better after use.
35673         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35674
35675 2008-01-01  Bruno Haible  <bruno@clisp.org>
35676
35677         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35678         failure on older glibc systems.
35679         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35680
35681 2008-01-05  Eric Blake  <ebb9@byu.net>
35682
35683         Avoid quadratic system memmem.
35684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35685         Reported by Ralf Wildenhues.
35686
35687         Fix memmem test for mingw.
35688         * modules/memmem-tests (configure.ac): Check for alarm.
35689         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35690         it.
35691         * doc/functions/memmem.texi: New file.
35692         * doc/gnulib.texi (Function Substitutes): Add memmem.
35693         Reported by Bruno Haible.
35694
35695 2008-01-04  Bruno Haible  <bruno@clisp.org>
35696
35697         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35698         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35699         gl_HEADER_STRING_H_DEFAULTS.
35700
35701 2008-01-04  Eric Blake  <ebb9@byu.net>
35702
35703         Shorten duration of memmem test.
35704         * tests/test-memmem.c (main): Use alarm to declare failure if test
35705         is taking too long.
35706         Reported by Ralf Wildenhues.
35707
35708 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35709
35710         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35711         string, needed by strerror.
35712
35713 2008-01-03  Colin Watson  <cjwatson@debian.org>
35714             Bruno Haible  <bruno@clisp.org>
35715
35716         * doc/gnulib-tool.texi (Localization): New section.
35717
35718 2008-01-02  Bruno Haible  <bruno@clisp.org>
35719
35720         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35721         variables to 'unsigned char *' type.
35722         Reported by Paul Eggert.
35723
35724 2008-01-02  Jim Meyering  <jim@meyering.net>
35725
35726         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35727
35728 2007-12-31  Jim Meyering  <jim@meyering.net>
35729
35730         Avoid use of private FTS type name.
35731         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35732
35733 2007-12-30  Karl Berry  <karl@gnu.org>
35734
35735         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35736         work around defect in Texinfo and/or the standalone Info browser.
35737
35738 2007-12-30  Bruno Haible  <bruno@clisp.org>
35739
35740         Unify 5 copies of the KMP code.
35741         * lib/str-kmp.h: New file.
35742         * lib/c-strcasestr.c: Include str-kmp.h.
35743         (knuth_morris_pratt): Remove function.
35744         (c_strcasestr): Update.
35745         * lib/c-strstr.c: Include str-kmp.h.
35746         (knuth_morris_pratt): Remove function.
35747         (c_strcasestr): Update.
35748         * lib/mbscasestr.c: Include str-kmp.h.
35749         (knuth_morris_pratt_unibyte): Remove function.
35750         * lib/mbsstr.c: Include str-kmp.h.
35751         (knuth_morris_pratt_unibyte): Remove function.
35752         * lib/strcasestr.c: Include str-kmp.h.
35753         (knuth_morris_pratt): Remove function.
35754         (strcasestr): Update.
35755         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35756         * modules/c-strstr (Files): Likewise.
35757         * modules/mbscasestr (Files): Likewise.
35758         * modules/mbsstr (Files): Likewise.
35759         * modules/strcasestr (Files): Likewise.
35760         Suggested by Paul Eggert.
35761
35762 2007-12-30  Bruno Haible  <bruno@clisp.org>
35763
35764         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35765         defined.
35766
35767 2007-12-30  Bruno Haible  <bruno@clisp.org>
35768
35769         * lib/xmalloca.h: Include xalloc.h.
35770         (xnmalloca): New macro.
35771
35772 2007-12-30  Bruno Haible  <bruno@clisp.org>
35773
35774         * lib/malloca.h (nmalloca): New macro.
35775         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35776         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35777         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35778         knuth_morris_pratt_multibyte): Likewise.
35779         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35780         knuth_morris_pratt_multibyte): Likewise.
35781         * lib/memmem.c (knuth_morris_pratt): Likewise.
35782         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35783
35784 2007-12-25  Bruno Haible  <bruno@clisp.org>
35785
35786         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35787         * lib/glob.c: Don't include openat.h.
35788         (link_exists2_p): Add back the code that deals with the
35789         !GLOB_ALTDIRFUNC case.
35790         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35791         let it do the filename concatenation.
35792         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35793         * modules/glob (Depends-on): Remove openat.
35794
35795 2007-12-31  Bruno Haible  <bruno@clisp.org>
35796
35797         * modules/dirfd (License): Change to LGPLv2+.
35798         Approved by Jim Meyering.
35799
35800 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35801
35802         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35803         when multiplying M by sizeof (size_t).
35804
35805 2007-12-10  Martin Lambers  <marlam@marlam.de>
35806
35807         Override getpagesize on mingw.
35808         * lib/getpagesize.c: New file.
35809         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35810         * modules/getpagesize (Files): Add lib/getpagesize.c.
35811         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35813         REPLACE_GETPAGESIZE.
35814         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35815
35816 2007-12-25  Bruno Haible  <bruno@clisp.org>
35817
35818         * modules/localcharset (Notice): New field.
35819         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35820         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35821
35822 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35823             Bruno Haible  <bruno@clisp.org>
35824
35825         Avoid using the syntax symbol() in formatted documentation.
35826         * MODULES.html.sh (func_module): When replacing symbol() with a
35827         hyperlink, remove the parentheses. Show an error if some remain.
35828         Recognize and render the '...' syntax.
35829         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35830         Rework. Add paragraph about GCC's inlining.
35831         * doc/alloca.texi: Likewise.
35832         * doc/error.texi: Remove parentheses from symbol reference.
35833         * doc/gnulib-intro.texi: Likewise.
35834         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35835         * modules/fnmatch (Description): Reword to say "the ... function".
35836         * modules/full-read (Description): Likewise.
35837         * modules/full-write (Description): Likewise.
35838         * modules/safe-read (Description): Likewise.
35839         * modules/safe-write (Description): Likewise.
35840         * modules/strchrnul (Description): Likewise.
35841         * modules/trim (Description): Likewise.
35842         * modules/error (Description): Remove parentheses from symbol
35843         references.
35844         * modules/verror (Description): Likewise.
35845         Reported by Karl Berry.
35846
35847 2007-12-25  Bruno Haible  <bruno@clisp.org>
35848
35849         Fixup after 2007-10-16 commit.
35850         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35851
35852 2007-12-24  Bruno Haible  <bruno@clisp.org>
35853
35854         Make --enable-relocatable work with DESTDIR.
35855         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35856         to compute installdir from destprog.
35857         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35858         also set the RELOC_DESTDIR variable.
35859         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35860
35861 2007-12-24  Bruno Haible  <bruno@clisp.org>
35862
35863         Fix link error due to xalloc_die().
35864         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35865         of xreadlink.
35866         * lib/relocwrapper.c: Update comments.
35867         * build-aux/install-reloc: Remove xreadlink.c from file list.
35868         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35869         xreadlink.c.
35870         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35871
35872 2007-12-24  Bruno Haible  <bruno@clisp.org>
35873
35874         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35875         * lib/setenv.h: Remove file.
35876         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35877         lib/setenv.h.
35878         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35879         (Depends-on): Add stdlib.
35880         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35881         gl_FUNC_UNSETENV.
35882         (Include): Replace setenv.h with <stdlib.h>.
35883         * modules/unsetenv: New file.
35884         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35885         * lib/unsetenv.c: Include <stdlib.h> first.
35886         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35887         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35888         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35889         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35890         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35891         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35893         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35894         * doc/functions/unsetenv.texi: Update.
35895         * modules/xsetenv (Depends-on): Add unsetenv.
35896         * modules/getdate (Depends-on): Likewise.
35897         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35898         * lib/xsetenv.c: Don't include setenv.h.
35899         * lib/getdate.y: Likewise.
35900         * lib/relocwrapper.c: Likewise.
35901         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35902         (Depends-on): Add stdlib.
35903         * NEWS: Mention the changes.
35904         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35905
35906 2007-12-23  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35909         indentation.
35910
35911 2007-12-23  Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/c-strcasestr.c: Add more comments.
35914         * lib/c-strstr.c: Likewise.
35915         * lib/mbscasestr.c: Likewise.
35916         * lib/mbsstr.c: Likewise.
35917         * lib/strcasestr.c: Likewise.
35918         * lib/memmem.c: Likewise.
35919
35920 2007-12-23  Bruno Haible  <bruno@clisp.org>
35921
35922         * tests/test-memmem.c: Include <string.h> first.
35923
35924 2007-12-22  Bruno Haible  <bruno@clisp.org>
35925
35926         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35927         the contents of $testsbase.
35928         Reported by Ralf Wildenhues.
35929
35930 2007-12-22  Bruno Haible  <bruno@clisp.org>
35931
35932         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35933         two variables local_ldadd_before, local_ldadd_last.
35934
35935 2007-12-20  Eric Blake  <ebb9@byu.net>
35936
35937         Work around circular library issue when cross-compiling.
35938         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35939         that progname.o does not need to pull in rpl_memcmp.
35940
35941 2007-12-19  Eric Blake  <ebb9@byu.net>
35942
35943         Fix memmem to avoid O(n^2) worst-case complexity.
35944         * lib/memmem.c (knuth_morris_pratt): New function.
35945         (memmem): Use it if first few naive iterations fail.
35946         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35947         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35948         * modules/memchr (License): Likewise.
35949         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35950         malloca.
35951         * tests/test-memmem.c: Rewrite, borrowing ideas from
35952         test-mbsstr1.c; the old version wouldn't even compile!
35953         * modules/memmem-tests: New file.
35954         * lib/string.in.h (rpl_memmem): Add declaration.
35955         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35957         REPLACE_MEMMEM.
35958
35959 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35960
35961         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35962         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35963         before any system include files, and undef after them all.  This
35964         should fix a problem on VMS reported by John E. Malmberg in
35965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35966
35967 2007-12-17  Eric Blake  <ebb9@byu.net>
35968
35969         Revert addition of verify, for BSD/OS.
35970         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35971         can't handle large files, for the sake of obsolete platforms.
35972         * modules/fseeko (Depends-on): Remove verify.
35973         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35974         * doc/functions/ftello.texi (ftello): Likewise.
35975         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35976         Reported by Larry Jones.
35977
35978 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35979
35980         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35981         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35982
35983 2007-12-17  Jim Meyering  <meyering@redhat.com>
35984
35985         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35986         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35987         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35988         * modules/getcwd (Depends-on): Add openat.
35989         Reported by Petr Salinger.
35990
35991 2007-12-17  Bruno Haible  <bruno@clisp.org>
35992
35993         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35994         avoid a segmentation fault of the configure test on x86_64 systems.
35995
35996 2007-12-15  Jim Meyering  <meyering@redhat.com>
35997
35998         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35999
36000 2007-12-13  Eric Blake  <ebb9@byu.net>
36001
36002         Another fseek test.
36003         * tests/test-fseek.c (main): Also test ungetc handling.
36004         * tests/test-fseeko.c (main): Likewise.
36005         * modules/fseeko (Depends-on): Add verify.
36006         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
36007         large.
36008         Reported by Larry Jones.
36009
36010         Fix fseeko on mingw.
36011         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
36012         seek.
36013
36014         Beef up fseek tests.
36015         * tests/test-fseek.c (main): Also test eof handling.
36016         * tests/test-fseeko.c (main): Likewise.
36017         Reported by Larry Jones.
36018
36019 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
36020
36021         Fix fseeko on BSD-based platforms.
36022         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
36023         successful seek.
36024
36025 2007-12-12  Eric Blake  <ebb9@byu.net>
36026
36027         Allow circular dependency of separate libtests.a
36028         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
36029         when use_libtests.
36030
36031 2007-12-11  Eric Blake  <ebb9@byu.net>
36032
36033         Fix bug with -0.0L in previous patch.
36034         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
36035         * tests/test-isnan.c (main): Also test on zeroes.
36036         * tests/test-isnanf.c (main): Likewise.
36037         * tests/test-isnanl.h (main): Likewise.
36038
36039         Detect pseudo-denormals on x86 even when cross-compiling.
36040         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
36041         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
36042         invalid bit patterns that happen to satisfy ==.
36043
36044         Avoid link failures with separate libtests.a.
36045         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
36046         last, to satisfy circular dependencies.
36047
36048 2007-12-11  Eric Blake  <ebb9@byu.net>
36049         and Bruno Haible  <bruno@clisp.org>
36050
36051         Fix OpenBSD 4.0 <float.h> handling of long double.
36052         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
36053         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
36054         * doc/headers/float.texi (float.h): Document OpenBSD bug.
36055
36056 2007-12-11  Jim Meyering  <meyering@redhat.com>
36057
36058         * users.txt: Add libvirt.
36059
36060         Support versions of autoconf prior to 2.59c.
36061         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
36062         if it is not already defined.
36063
36064 2007-12-09  Bruno Haible  <bruno@clisp.org>
36065
36066         Let 'gnulib-tool --import' collect sources needed for the tests in
36067         tests/ rather than in lib/.
36068         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
36069         argument. If true, add rules to generate libtests.a, and put libtests.a
36070         into $(LDADD). Consider source files in subdirectories and set
36071         uses_subdirs.
36072         (func_emit_initmacro_start, func_emit_initmacro_end,
36073         func_emit_initmacro_done): Pass all arguments explicitly.
36074         (func_import): Determine two module lists main_modules,
36075         testsrelated_modules. Determine use_libtests. Determine two variables
36076         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
36077         instead of just sed_transform_lib_file. Determine two variables
36078         main_files and testsrelated_files. Compute 'files' as the union of
36079         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
36080         func_add_or_update. In the generated gnulib-comp.m4, collect the
36081         object files for tests/ in different variables than those for lib/.
36082         Substitute LIBTESTS_LIBDEPS.
36083         (func_create_testdir): Combine the uses_subdirs results from
36084         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
36085
36086 2007-12-09  Bruno Haible  <bruno@clisp.org>
36087
36088         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
36089         the build-aux directory.
36090
36091 2007-12-09  Bruno Haible  <bruno@clisp.org>
36092
36093         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
36094         introduced on 2006-09-09.
36095
36096 2007-12-07  Jim Meyering  <meyering@redhat.com>
36097
36098         Let these macros work also with autoconf-2.59.
36099         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
36100         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
36101         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36102
36103 2007-12-06  Jim Meyering  <meyering@redhat.com>
36104
36105         Avoid a configure-time syntax error in gl_FUNC_ACL.
36106         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
36107         function in each branch, before testing the cache variable.
36108
36109 2007-12-04  Eric Blake  <ebb9@byu.net>
36110
36111         Make scripts executable.
36112         * build-aux/config.guess: Add execute permissions.
36113         * build-aux/config.sub: Likewise.
36114         * build-aux/gendocs.sh: Likewise.
36115
36116         Fix frexp on mingw.
36117         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36118         cross-compiling.
36119         * doc/functions/frexp.texi (frexp): Document the bug.
36120
36121         Make cygwin fseeko check more reliable.
36122         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36123         version numbers, rather than unrelated feature check.
36124         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36125         * doc/functions/ftello.texi (ftello): Likewise.
36126         Reported by Bruno Haible.
36127
36128         * m4/strerror.m4: Bump version number.
36129
36130 2007-12-03  Bruno Haible  <bruno@clisp.org>
36131
36132         * doc/functions/mprotect.texi: Mention the mingw problem.
36133
36134 2007-12-03  Eric Blake  <ebb9@byu.net>
36135
36136         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36137         REPLACE_STRERROR is initialized before this macro.
36138
36139 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36140
36141         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36142         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36143         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36144         put -lsec in even for programs other than 'ls'.  This fixes a problem
36145         for gettext reported by Bruno Haible in
36146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36147         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36148         Add support for Solaris 10.  This isn't efficient, but should get the
36149         job done for now.
36150
36151 2007-12-03  James Youngman  <jay@gnu.org>
36152
36153         * doc/regexprops-generic.texi: change "an close-group" to "a
36154         close-group" and "illegal" to "not allowed".
36155
36156 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36157
36158         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36159         pr_byname.h. Needed for the rare case when the maintainer has done
36160         "make maintainer-clean" in the source directory and then attempts a
36161         build outside the source directory.
36162         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36163         scripts_byname.h.
36164
36165 2007-12-02  Martin Lambers <marlam@marlam.de>
36166             Bruno Haible  <bruno@clisp.org>
36167
36168         * lib/getpagesize.h: Remove file.
36169         * lib/unistd.in.h: Include declaration of getpagesize here.
36170         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36171         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36172         HAVE_SYS_PARAM_H.
36173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36174         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36175         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36176         (Depends-on): Add unistd.
36177         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36178         (Include): Use <unistd.h> instead of getpagesize.h.
36179         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36180         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36181         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36182         gl_GETPAGESIZE invocation, already handled by module dependency.
36183         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36184
36185 2007-12-02  Bruno Haible  <bruno@clisp.org>
36186
36187         * modules/strings-tests: New file.
36188         * tests/test-strings.c: New file.
36189
36190         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36191         * lib/strings.in.h: New file.
36192         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36193         * m4/strings_h.m4: New file.
36194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36195         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36196         * modules/strings: New file.
36197         * modules/string (Makefile.am): Update.
36198         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36199         Reported by Karl Berry.
36200
36201 2007-12-01  Eric Blake  <ebb9@byu.net>
36202
36203         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36204         accomodate fix in cygwin 1.5.25.
36205
36206 2007-12-01  Jim Meyering  <meyering@redhat.com>
36207
36208         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36209         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36210         that would inhibit utf8-optimization of a regexp containing line-
36211         or buffer-anchors, e.g., `^', `$'.
36212
36213 2007-11-30  Bruno Haible  <bruno@clisp.org>
36214
36215         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36216         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36217         glthread_recursive_lock_init.
36218         * lib/lock.c (glthread_recursive_lock_init)
36219         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36220         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36221
36222 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36223
36224         New function qset_acl, like set_acl but with syscall semantics.
36225         * lib/acl.h (qset_acl): New decl.
36226         * lib/acl.c (qset_acl): New function.
36227         (set_acl): Use new function.  Use more-consistent diagnostics.
36228
36229 2007-11-28  Jim Meyering  <meyering@redhat.com>
36230
36231         * modules/physmem (License): Change from GPL to LGPLv2+.
36232
36233 2007-11-26  Bruno Haible  <bruno@clisp.org>
36234
36235         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36236         'long double' type has excess precision.
36237         Reported by Jim Meyering in
36238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36239
36240 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36241
36242         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36243         Sync from <http://gnu.org/licenses>.
36244         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36245         with license text from same location.
36246         * doc/maintain.texi, doc/standards.texi:  Sync from
36247         <http://savannah.gnu.org/projects/gnustandards>.
36248
36249 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36250         and Jim Meyering  <meyering@redhat.com>
36251
36252         Adjust getdate' grammar to accept a slightly more regular language.
36253         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36254         Before, the former was rejected.
36255         * lib/getdate.y (digits_to_date_time): New function, factored
36256         out of ...
36257         (number): ...here.  Just call digits_to_date_time.
36258         (hybrid): New non-terminal to handle an <unsigned number,
36259         signed relative offset> sequence consistently.
36260
36261 2007-11-18  Jim Meyering  <meyering@redhat.com>
36262
36263         Pull my changes from coreutils:
36264         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36265         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36266         use of $gnulib_tool_option_extras, so that it's separated from the
36267         preceding argument.
36268
36269         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36270         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36271         parent destination directories before copying a file into place.
36272
36273 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36274
36275         bootstrap: work also with 4-argument variant of AC_INIT
36276         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36277
36278 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36279
36280         Port test-getaddrinfo to Solaris.
36281         Problem reported by Bruno Haible in
36282         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36283         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36284         explanation of setting 'hints'.
36285         Don't reject an implementation merely because it returns EAI_SERVICE.
36286         (EAI_SERVICE): Define to 0 if not defined.
36287
36288 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36289
36290         The license of gnu-make and posix-shell is now "GPLed build tool".
36291         * modules/gnu-make (License): Likewise.
36292         * modules/posix-shell (License): Likewise.
36293
36294         New module posix-shell, for determining a POSIX shell
36295         or perhaps something that is close enough to a POSIX shell.
36296         * m4/posix-shell.m4: New file.
36297         * modules/posix-shell: New file.
36298
36299         * MODULES.html.sh: Mention new module.
36300
36301         New module gnu-make, for determining whether we're using GNU Make.
36302         * m4/gnu-make.m4: New file.
36303         * modules/gnu-make: New file.
36304         * MODULES.html.sh: Mention new module.
36305
36306 2007-11-14  Jim Meyering  <meyering@redhat.com>
36307
36308         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36309         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36310         use this macro to create a function _definition_.
36311         Remove useless "#undef ARGMATCH_DIE".
36312
36313 2007-11-14  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/config.charset: Update for OpenBSD 4.1.
36316         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36317
36318 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36319
36320         Document 64-bit #if problems in stdint.texi.
36321         * doc/headers/stdint.texi (stdint.h): Mention problems with
36322         64-bit-#if, and how to work around them.
36323
36324         Don't insist on 'long long int' support in the preprocessor.  It
36325         breaks too many things.  For example, PRIdMAX still uses a 'long
36326         long int' format with the latest Sun compiler, even though
36327         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36328         preprocessor problem.  This causes the latest coreutils to dump
36329         core on Solaris 10 sparc with the Sun C compiler.
36330         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36331         the troublesome expressions at configure-time, not at #if-time.
36332         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36333         preprocessor.
36334         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36335         compile-time C checks, done at 'configure'-time.
36336         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36337         * modules/inttypes (Makefile): Substitute the new symbols that
36338         gl_INTTYPES_H now generates.
36339         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36340
36341 2007-11-12  Bruno Haible  <bruno@clisp.org>
36342
36343         Tests for Unicode character classification functions.
36344
36345         * modules/unictype/bidicategory-byname-tests: New file.
36346         * modules/unictype/bidicategory-name-tests: New file.
36347         * modules/unictype/bidicategory-of-tests: New file.
36348         * modules/unictype/bidicategory-test-tests: New file.
36349         * modules/unictype/block-list-tests: New file.
36350         * modules/unictype/block-of-tests: New file.
36351         * modules/unictype/block-test-tests: New file.
36352         * modules/unictype/category-C-tests: New file.
36353         * modules/unictype/category-Cc-tests: New file.
36354         * modules/unictype/category-Cf-tests: New file.
36355         * modules/unictype/category-Cn-tests: New file.
36356         * modules/unictype/category-Co-tests: New file.
36357         * modules/unictype/category-Cs-tests: New file.
36358         * modules/unictype/category-L-tests: New file.
36359         * modules/unictype/category-Ll-tests: New file.
36360         * modules/unictype/category-Lm-tests: New file.
36361         * modules/unictype/category-Lo-tests: New file.
36362         * modules/unictype/category-Lt-tests: New file.
36363         * modules/unictype/category-Lu-tests: New file.
36364         * modules/unictype/category-M-tests: New file.
36365         * modules/unictype/category-Mc-tests: New file.
36366         * modules/unictype/category-Me-tests: New file.
36367         * modules/unictype/category-Mn-tests: New file.
36368         * modules/unictype/category-N-tests: New file.
36369         * modules/unictype/category-Nd-tests: New file.
36370         * modules/unictype/category-Nl-tests: New file.
36371         * modules/unictype/category-No-tests: New file.
36372         * modules/unictype/category-P-tests: New file.
36373         * modules/unictype/category-Pc-tests: New file.
36374         * modules/unictype/category-Pd-tests: New file.
36375         * modules/unictype/category-Pe-tests: New file.
36376         * modules/unictype/category-Pf-tests: New file.
36377         * modules/unictype/category-Pi-tests: New file.
36378         * modules/unictype/category-Po-tests: New file.
36379         * modules/unictype/category-Ps-tests: New file.
36380         * modules/unictype/category-S-tests: New file.
36381         * modules/unictype/category-Sc-tests: New file.
36382         * modules/unictype/category-Sk-tests: New file.
36383         * modules/unictype/category-Sm-tests: New file.
36384         * modules/unictype/category-So-tests: New file.
36385         * modules/unictype/category-Z-tests: New file.
36386         * modules/unictype/category-Zl-tests: New file.
36387         * modules/unictype/category-Zp-tests: New file.
36388         * modules/unictype/category-Zs-tests: New file.
36389         * modules/unictype/category-and-not-tests: New file.
36390         * modules/unictype/category-and-tests: New file.
36391         * modules/unictype/category-byname-tests: New file.
36392         * modules/unictype/category-name-tests: New file.
36393         * modules/unictype/category-none-tests: New file.
36394         * modules/unictype/category-of-tests: New file.
36395         * modules/unictype/category-or-tests: New file.
36396         * modules/unictype/category-test-withtable-tests: New file.
36397         * modules/unictype/combining-class-tests: New file.
36398         * modules/unictype/ctype-alnum-tests: New file.
36399         * modules/unictype/ctype-alpha-tests: New file.
36400         * modules/unictype/ctype-blank-tests: New file.
36401         * modules/unictype/ctype-cntrl-tests: New file.
36402         * modules/unictype/ctype-digit-tests: New file.
36403         * modules/unictype/ctype-graph-tests: New file.
36404         * modules/unictype/ctype-lower-tests: New file.
36405         * modules/unictype/ctype-print-tests: New file.
36406         * modules/unictype/ctype-punct-tests: New file.
36407         * modules/unictype/ctype-space-tests: New file.
36408         * modules/unictype/ctype-upper-tests: New file.
36409         * modules/unictype/ctype-xdigit-tests: New file.
36410         * modules/unictype/decimal-digit-tests: New file.
36411         * modules/unictype/digit-tests: New file.
36412         * modules/unictype/mirror-tests: New file.
36413         * modules/unictype/numeric-tests: New file.
36414         * modules/unictype/property-alphabetic-tests: New file.
36415         * modules/unictype/property-ascii-hex-digit-tests: New file.
36416         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36417         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36418         * modules/unictype/property-bidi-block-separator-tests: New file.
36419         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36420         * modules/unictype/property-bidi-common-separator-tests: New file.
36421         * modules/unictype/property-bidi-control-tests: New file.
36422         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36423         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36424         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36425         * modules/unictype/property-bidi-european-digit-tests: New file.
36426         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36427         * modules/unictype/property-bidi-left-to-right-tests: New file.
36428         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36429         * modules/unictype/property-bidi-other-neutral-tests: New file.
36430         * modules/unictype/property-bidi-pdf-tests: New file.
36431         * modules/unictype/property-bidi-segment-separator-tests: New file.
36432         * modules/unictype/property-bidi-whitespace-tests: New file.
36433         * modules/unictype/property-byname-tests: New file.
36434         * modules/unictype/property-combining-tests: New file.
36435         * modules/unictype/property-composite-tests: New file.
36436         * modules/unictype/property-currency-symbol-tests: New file.
36437         * modules/unictype/property-dash-tests: New file.
36438         * modules/unictype/property-decimal-digit-tests: New file.
36439         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36440         * modules/unictype/property-deprecated-tests: New file.
36441         * modules/unictype/property-diacritic-tests: New file.
36442         * modules/unictype/property-extender-tests: New file.
36443         * modules/unictype/property-format-control-tests: New file.
36444         * modules/unictype/property-grapheme-base-tests: New file.
36445         * modules/unictype/property-grapheme-extend-tests: New file.
36446         * modules/unictype/property-grapheme-link-tests: New file.
36447         * modules/unictype/property-hex-digit-tests: New file.
36448         * modules/unictype/property-hyphen-tests: New file.
36449         * modules/unictype/property-id-continue-tests: New file.
36450         * modules/unictype/property-id-start-tests: New file.
36451         * modules/unictype/property-ideographic-tests: New file.
36452         * modules/unictype/property-ids-binary-operator-tests: New file.
36453         * modules/unictype/property-ids-trinary-operator-tests: New file.
36454         * modules/unictype/property-ignorable-control-tests: New file.
36455         * modules/unictype/property-iso-control-tests: New file.
36456         * modules/unictype/property-join-control-tests: New file.
36457         * modules/unictype/property-left-of-pair-tests: New file.
36458         * modules/unictype/property-line-separator-tests: New file.
36459         * modules/unictype/property-logical-order-exception-tests: New file.
36460         * modules/unictype/property-lowercase-tests: New file.
36461         * modules/unictype/property-math-tests: New file.
36462         * modules/unictype/property-non-break-tests: New file.
36463         * modules/unictype/property-not-a-character-tests: New file.
36464         * modules/unictype/property-numeric-tests: New file.
36465         * modules/unictype/property-other-alphabetic-tests: New file.
36466         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36467         * modules/unictype/property-other-grapheme-extend-tests: New file.
36468         * modules/unictype/property-other-id-continue-tests: New file.
36469         * modules/unictype/property-other-id-start-tests: New file.
36470         * modules/unictype/property-other-lowercase-tests: New file.
36471         * modules/unictype/property-other-math-tests: New file.
36472         * modules/unictype/property-other-uppercase-tests: New file.
36473         * modules/unictype/property-paired-punctuation-tests: New file.
36474         * modules/unictype/property-paragraph-separator-tests: New file.
36475         * modules/unictype/property-pattern-syntax-tests: New file.
36476         * modules/unictype/property-pattern-white-space-tests: New file.
36477         * modules/unictype/property-private-use-tests: New file.
36478         * modules/unictype/property-punctuation-tests: New file.
36479         * modules/unictype/property-quotation-mark-tests: New file.
36480         * modules/unictype/property-radical-tests: New file.
36481         * modules/unictype/property-sentence-terminal-tests: New file.
36482         * modules/unictype/property-soft-dotted-tests: New file.
36483         * modules/unictype/property-space-tests: New file.
36484         * modules/unictype/property-terminal-punctuation-tests: New file.
36485         * modules/unictype/property-test-tests: New file.
36486         * modules/unictype/property-titlecase-tests: New file.
36487         * modules/unictype/property-unassigned-code-value-tests: New file.
36488         * modules/unictype/property-unified-ideograph-tests: New file.
36489         * modules/unictype/property-uppercase-tests: New file.
36490         * modules/unictype/property-variation-selector-tests: New file.
36491         * modules/unictype/property-white-space-tests: New file.
36492         * modules/unictype/property-xid-continue-tests: New file.
36493         * modules/unictype/property-xid-start-tests: New file.
36494         * modules/unictype/property-zero-width-tests: New file.
36495         * modules/unictype/scripts-tests: New file.
36496         * modules/unictype/syntax-c-ident-tests: New file.
36497         * modules/unictype/syntax-c-whitespace-tests: New file.
36498         * modules/unictype/syntax-java-ident-tests: New file.
36499         * modules/unictype/syntax-java-whitespace-tests: New file.
36500         * tests/unictype/test-bidi_byname.c: New file.
36501         * tests/unictype/test-bidi_name.c: New file.
36502         * tests/unictype/test-bidi_of.c: New file.
36503         * tests/unictype/test-bidi_test.c: New file.
36504         * tests/unictype/test-block_list.c: New file.
36505         * tests/unictype/test-block_of.c: New file.
36506         * tests/unictype/test-block_test.c: New file.
36507         * tests/unictype/test-categ_and.c: New file.
36508         * tests/unictype/test-categ_and_not.c: New file.
36509         * tests/unictype/test-categ_byname.c: New file.
36510         * tests/unictype/test-categ_name.c: New file.
36511         * tests/unictype/test-categ_none.c: New file.
36512         * tests/unictype/test-categ_of.c: New file.
36513         * tests/unictype/test-categ_or.c: New file.
36514         * tests/unictype/test-categ_test_withtable.c: New file.
36515         * tests/unictype/test-combining.c: New file.
36516         * tests/unictype/test-decdigit.c: New file.
36517         * tests/unictype/test-digit.c: New file.
36518         * tests/unictype/test-mirror.c: New file.
36519         * tests/unictype/test-numeric.c: New file.
36520         * tests/unictype/test-pr_byname.c: New file.
36521         * tests/unictype/test-pr_test.c: New file.
36522         * tests/unictype/test-predicate-part1.h: New file.
36523         * tests/unictype/test-predicate-part2.h: New file.
36524         * tests/unictype/test-scripts.c: New file.
36525         * tests/unictype/test-sy_c_ident.c: New file.
36526         * tests/unictype/test-sy_java_ident.c: New file.
36527
36528         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36529         for Unicode 5.0.0.
36530         * tests/unictype/test-categ_Cc.c: Likewise.
36531         * tests/unictype/test-categ_Cf.c: Likewise.
36532         * tests/unictype/test-categ_Cn.c: Likewise.
36533         * tests/unictype/test-categ_Co.c: Likewise.
36534         * tests/unictype/test-categ_Cs.c: Likewise.
36535         * tests/unictype/test-categ_L.c: Likewise.
36536         * tests/unictype/test-categ_Ll.c: Likewise.
36537         * tests/unictype/test-categ_Lm.c: Likewise.
36538         * tests/unictype/test-categ_Lo.c: Likewise.
36539         * tests/unictype/test-categ_Lt.c: Likewise.
36540         * tests/unictype/test-categ_Lu.c: Likewise.
36541         * tests/unictype/test-categ_M.c: Likewise.
36542         * tests/unictype/test-categ_Mc.c: Likewise.
36543         * tests/unictype/test-categ_Me.c: Likewise.
36544         * tests/unictype/test-categ_Mn.c: Likewise.
36545         * tests/unictype/test-categ_N.c: Likewise.
36546         * tests/unictype/test-categ_Nd.c: Likewise.
36547         * tests/unictype/test-categ_Nl.c: Likewise.
36548         * tests/unictype/test-categ_No.c: Likewise.
36549         * tests/unictype/test-categ_P.c: Likewise.
36550         * tests/unictype/test-categ_Pc.c: Likewise.
36551         * tests/unictype/test-categ_Pd.c: Likewise.
36552         * tests/unictype/test-categ_Pe.c: Likewise.
36553         * tests/unictype/test-categ_Pf.c: Likewise.
36554         * tests/unictype/test-categ_Pi.c: Likewise.
36555         * tests/unictype/test-categ_Po.c: Likewise.
36556         * tests/unictype/test-categ_Ps.c: Likewise.
36557         * tests/unictype/test-categ_S.c: Likewise.
36558         * tests/unictype/test-categ_Sc.c: Likewise.
36559         * tests/unictype/test-categ_Sk.c: Likewise.
36560         * tests/unictype/test-categ_Sm.c: Likewise.
36561         * tests/unictype/test-categ_So.c: Likewise.
36562         * tests/unictype/test-categ_Z.c: Likewise.
36563         * tests/unictype/test-categ_Zl.c: Likewise.
36564         * tests/unictype/test-categ_Zp.c: Likewise.
36565         * tests/unictype/test-categ_Zs.c: Likewise.
36566         * tests/unictype/test-ctype_alnum.c: Likewise.
36567         * tests/unictype/test-ctype_alpha.c: Likewise.
36568         * tests/unictype/test-ctype_blank.c: Likewise.
36569         * tests/unictype/test-ctype_cntrl.c: Likewise.
36570         * tests/unictype/test-ctype_digit.c: Likewise.
36571         * tests/unictype/test-ctype_graph.c: Likewise.
36572         * tests/unictype/test-ctype_lower.c: Likewise.
36573         * tests/unictype/test-ctype_print.c: Likewise.
36574         * tests/unictype/test-ctype_punct.c: Likewise.
36575         * tests/unictype/test-ctype_space.c: Likewise.
36576         * tests/unictype/test-ctype_upper.c: Likewise.
36577         * tests/unictype/test-ctype_xdigit.c: Likewise.
36578         * tests/unictype/test-decdigit.h: Likewise.
36579         * tests/unictype/test-digit.h: Likewise.
36580         * tests/unictype/test-numeric.h: Likewise.
36581         * tests/unictype/test-pr_alphabetic.c: Likewise.
36582         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36583         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36584         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36585         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36586         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36587         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36588         * tests/unictype/test-pr_bidi_control.c: Likewise.
36589         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36590         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36591         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36592         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36593         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36594         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36595         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36596         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36597         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36598         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36599         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36600         * tests/unictype/test-pr_combining.c: Likewise.
36601         * tests/unictype/test-pr_composite.c: Likewise.
36602         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36603         * tests/unictype/test-pr_dash.c: Likewise.
36604         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36605         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36606         * tests/unictype/test-pr_deprecated.c: Likewise.
36607         * tests/unictype/test-pr_diacritic.c: Likewise.
36608         * tests/unictype/test-pr_extender.c: Likewise.
36609         * tests/unictype/test-pr_format_control.c: Likewise.
36610         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36611         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36612         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36613         * tests/unictype/test-pr_hex_digit.c: Likewise.
36614         * tests/unictype/test-pr_hyphen.c: Likewise.
36615         * tests/unictype/test-pr_id_continue.c: Likewise.
36616         * tests/unictype/test-pr_id_start.c: Likewise.
36617         * tests/unictype/test-pr_ideographic.c: Likewise.
36618         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36619         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36620         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36621         * tests/unictype/test-pr_iso_control.c: Likewise.
36622         * tests/unictype/test-pr_join_control.c: Likewise.
36623         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36624         * tests/unictype/test-pr_line_separator.c: Likewise.
36625         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36626         * tests/unictype/test-pr_lowercase.c: Likewise.
36627         * tests/unictype/test-pr_math.c: Likewise.
36628         * tests/unictype/test-pr_non_break.c: Likewise.
36629         * tests/unictype/test-pr_not_a_character.c: Likewise.
36630         * tests/unictype/test-pr_numeric.c: Likewise.
36631         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36632         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36633         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36634         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36635         * tests/unictype/test-pr_other_id_start.c: Likewise.
36636         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36637         * tests/unictype/test-pr_other_math.c: Likewise.
36638         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36639         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36640         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36641         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36642         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36643         * tests/unictype/test-pr_private_use.c: Likewise.
36644         * tests/unictype/test-pr_punctuation.c: Likewise.
36645         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36646         * tests/unictype/test-pr_radical.c: Likewise.
36647         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36648         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36649         * tests/unictype/test-pr_space.c: Likewise.
36650         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36651         * tests/unictype/test-pr_titlecase.c: Likewise.
36652         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36653         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36654         * tests/unictype/test-pr_uppercase.c: Likewise.
36655         * tests/unictype/test-pr_variation_selector.c: Likewise.
36656         * tests/unictype/test-pr_white_space.c: Likewise.
36657         * tests/unictype/test-pr_xid_continue.c: Likewise.
36658         * tests/unictype/test-pr_xid_start.c: Likewise.
36659         * tests/unictype/test-pr_zero_width.c: Likewise.
36660         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36661         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36662
36663 2007-11-12  Bruno Haible  <bruno@clisp.org>
36664
36665         Unicode character classification functions.
36666         * lib/unictype.h: New file.
36667         * modules/unictype/base: New file.
36668         * modules/unictype/category-L: New file.
36669         * modules/unictype/category-Lu: New file.
36670         * modules/unictype/category-Ll: New file.
36671         * modules/unictype/category-Lt: New file.
36672         * modules/unictype/category-Lm: New file.
36673         * modules/unictype/category-Lo: New file.
36674         * modules/unictype/category-M: New file.
36675         * modules/unictype/category-Mn: New file.
36676         * modules/unictype/category-Mc: New file.
36677         * modules/unictype/category-Me: New file.
36678         * modules/unictype/category-N: New file.
36679         * modules/unictype/category-Nd: New file.
36680         * modules/unictype/category-Nl: New file.
36681         * modules/unictype/category-No: New file.
36682         * modules/unictype/category-P: New file.
36683         * modules/unictype/category-Pc: New file.
36684         * modules/unictype/category-Pd: New file.
36685         * modules/unictype/category-Ps: New file.
36686         * modules/unictype/category-Pe: New file.
36687         * modules/unictype/category-Pi: New file.
36688         * modules/unictype/category-Pf: New file.
36689         * modules/unictype/category-Po: New file.
36690         * modules/unictype/category-S: New file.
36691         * modules/unictype/category-Sm: New file.
36692         * modules/unictype/category-Sc: New file.
36693         * modules/unictype/category-Sk: New file.
36694         * modules/unictype/category-So: New file.
36695         * modules/unictype/category-Z: New file.
36696         * modules/unictype/category-Zs: New file.
36697         * modules/unictype/category-Zl: New file.
36698         * modules/unictype/category-Zp: New file.
36699         * modules/unictype/category-C: New file.
36700         * modules/unictype/category-Cc: New file.
36701         * modules/unictype/category-Cf: New file.
36702         * modules/unictype/category-Cs: New file.
36703         * modules/unictype/category-Co: New file.
36704         * modules/unictype/category-Cn: New file.
36705         * modules/unictype/category-or: New file.
36706         * modules/unictype/category-of: New file.
36707         * modules/unictype/category-test: New file.
36708         * modules/unictype/category-test-withtable: New file.
36709         * modules/unictype/category-byname: New file.
36710         * modules/unictype/category-none: New file.
36711         * modules/unictype/category-and: New file.
36712         * modules/unictype/category-and-not: New file.
36713         * modules/unictype/category-name: New file.
36714         * modules/unictype/combining-class: New file.
36715         * modules/unictype/category-all: New file.
36716         * modules/unictype/bidicategory-all: New file.
36717         * modules/unictype/bidicategory-byname: New file.
36718         * modules/unictype/bidicategory-name: New file.
36719         * modules/unictype/bidicategory-of: New file.
36720         * modules/unictype/bidicategory-test: New file.
36721         * modules/unictype/decimal-digit: New file.
36722         * modules/unictype/digit: New file.
36723         * modules/unictype/numeric: New file.
36724         * modules/unictype/mirror: New file.
36725         * modules/unictype/property-white-space: New file.
36726         * modules/unictype/property-alphabetic: New file.
36727         * modules/unictype/property-other-alphabetic: New file.
36728         * modules/unictype/property-not-a-character: New file.
36729         * modules/unictype/property-default-ignorable-code-point: New file.
36730         * modules/unictype/property-other-default-ignorable-code-point: New
36731         file.
36732         * modules/unictype/property-deprecated: New file.
36733         * modules/unictype/property-logical-order-exception: New file.
36734         * modules/unictype/property-variation-selector: New file.
36735         * modules/unictype/property-private-use: New file.
36736         * modules/unictype/property-unassigned-code-value: New file.
36737         * modules/unictype/property-uppercase: New file.
36738         * modules/unictype/property-other-uppercase: New file.
36739         * modules/unictype/property-lowercase: New file.
36740         * modules/unictype/property-other-lowercase: New file.
36741         * modules/unictype/property-titlecase: New file.
36742         * modules/unictype/property-soft-dotted: New file.
36743         * modules/unictype/property-id-start: New file.
36744         * modules/unictype/property-other-id-start: New file.
36745         * modules/unictype/property-id-continue: New file.
36746         * modules/unictype/property-other-id-continue: New file.
36747         * modules/unictype/property-xid-start: New file.
36748         * modules/unictype/property-xid-continue: New file.
36749         * modules/unictype/property-pattern-white-space: New file.
36750         * modules/unictype/property-pattern-syntax: New file.
36751         * modules/unictype/property-join-control: New file.
36752         * modules/unictype/property-grapheme-base: New file.
36753         * modules/unictype/property-grapheme-extend: New file.
36754         * modules/unictype/property-other-grapheme-extend: New file.
36755         * modules/unictype/property-grapheme-link: New file.
36756         * modules/unictype/property-bidi-control: New file.
36757         * modules/unictype/property-bidi-left-to-right: New file.
36758         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36759         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36760         * modules/unictype/property-bidi-european-digit: New file.
36761         * modules/unictype/property-bidi-eur-num-separator: New file.
36762         * modules/unictype/property-bidi-eur-num-terminator: New file.
36763         * modules/unictype/property-bidi-arabic-digit: New file.
36764         * modules/unictype/property-bidi-common-separator: New file.
36765         * modules/unictype/property-bidi-block-separator: New file.
36766         * modules/unictype/property-bidi-segment-separator: New file.
36767         * modules/unictype/property-bidi-whitespace: New file.
36768         * modules/unictype/property-bidi-non-spacing-mark: New file.
36769         * modules/unictype/property-bidi-boundary-neutral: New file.
36770         * modules/unictype/property-bidi-pdf: New file.
36771         * modules/unictype/property-bidi-embedding-or-override: New file.
36772         * modules/unictype/property-bidi-other-neutral: New file.
36773         * modules/unictype/property-hex-digit: New file.
36774         * modules/unictype/property-ascii-hex-digit: New file.
36775         * modules/unictype/property-ideographic: New file.
36776         * modules/unictype/property-unified-ideograph: New file.
36777         * modules/unictype/property-radical: New file.
36778         * modules/unictype/property-ids-binary-operator: New file.
36779         * modules/unictype/property-ids-trinary-operator: New file.
36780         * modules/unictype/property-zero-width: New file.
36781         * modules/unictype/property-space: New file.
36782         * modules/unictype/property-non-break: New file.
36783         * modules/unictype/property-iso-control: New file.
36784         * modules/unictype/property-format-control: New file.
36785         * modules/unictype/property-dash: New file.
36786         * modules/unictype/property-hyphen: New file.
36787         * modules/unictype/property-punctuation: New file.
36788         * modules/unictype/property-line-separator: New file.
36789         * modules/unictype/property-paragraph-separator: New file.
36790         * modules/unictype/property-quotation-mark: New file.
36791         * modules/unictype/property-sentence-terminal: New file.
36792         * modules/unictype/property-terminal-punctuation: New file.
36793         * modules/unictype/property-currency-symbol: New file.
36794         * modules/unictype/property-math: New file.
36795         * modules/unictype/property-other-math: New file.
36796         * modules/unictype/property-paired-punctuation: New file.
36797         * modules/unictype/property-left-of-pair: New file.
36798         * modules/unictype/property-combining: New file.
36799         * modules/unictype/property-composite: New file.
36800         * modules/unictype/property-decimal-digit: New file.
36801         * modules/unictype/property-numeric: New file.
36802         * modules/unictype/property-diacritic: New file.
36803         * modules/unictype/property-extender: New file.
36804         * modules/unictype/property-ignorable-control: New file.
36805         * modules/unictype/property-test: New file.
36806         * modules/unictype/property-byname: New file.
36807         * modules/unictype/property-all: New file.
36808         * modules/unictype/scripts: New file.
36809         * modules/unictype/scripts-all: New file.
36810         * modules/unictype/block-of: New file.
36811         * modules/unictype/block-test: New file.
36812         * modules/unictype/block-list: New file.
36813         * modules/unictype/block-all: New file.
36814         * modules/unictype/syntax-c-whitespace: New file.
36815         * modules/unictype/syntax-java-whitespace: New file.
36816         * modules/unictype/syntax-c-ident: New file.
36817         * modules/unictype/syntax-java-ident: New file.
36818         * modules/unictype/ctype-alnum: New file.
36819         * modules/unictype/ctype-alpha: New file.
36820         * modules/unictype/ctype-cntrl: New file.
36821         * modules/unictype/ctype-digit: New file.
36822         * modules/unictype/ctype-graph: New file.
36823         * modules/unictype/ctype-lower: New file.
36824         * modules/unictype/ctype-print: New file.
36825         * modules/unictype/ctype-punct: New file.
36826         * modules/unictype/ctype-space: New file.
36827         * modules/unictype/ctype-upper: New file.
36828         * modules/unictype/ctype-xdigit: New file.
36829         * modules/unictype/ctype-blank: New file.
36830         * lib/unictype/bidi_byname.c: New file.
36831         * lib/unictype/bidi_name.c: New file.
36832         * lib/unictype/bidi_of.c: New file.
36833         * lib/unictype/bidi_test.c: New file.
36834         * lib/unictype/bitmap.h: New file.
36835         * lib/unictype/block_test.c: New file.
36836         * lib/unictype/blocks.c: New file.
36837         * lib/unictype/categ_C.c: New file.
36838         * lib/unictype/categ_Cc.c: New file.
36839         * lib/unictype/categ_Cf.c: New file.
36840         * lib/unictype/categ_Cn.c: New file.
36841         * lib/unictype/categ_Co.c: New file.
36842         * lib/unictype/categ_Cs.c: New file.
36843         * lib/unictype/categ_L.c: New file.
36844         * lib/unictype/categ_Ll.c: New file.
36845         * lib/unictype/categ_Lm.c: New file.
36846         * lib/unictype/categ_Lo.c: New file.
36847         * lib/unictype/categ_Lt.c: New file.
36848         * lib/unictype/categ_Lu.c: New file.
36849         * lib/unictype/categ_M.c: New file.
36850         * lib/unictype/categ_Mc.c: New file.
36851         * lib/unictype/categ_Me.c: New file.
36852         * lib/unictype/categ_Mn.c: New file.
36853         * lib/unictype/categ_N.c: New file.
36854         * lib/unictype/categ_Nd.c: New file.
36855         * lib/unictype/categ_Nl.c: New file.
36856         * lib/unictype/categ_No.c: New file.
36857         * lib/unictype/categ_P.c: New file.
36858         * lib/unictype/categ_Pc.c: New file.
36859         * lib/unictype/categ_Pd.c: New file.
36860         * lib/unictype/categ_Pe.c: New file.
36861         * lib/unictype/categ_Pf.c: New file.
36862         * lib/unictype/categ_Pi.c: New file.
36863         * lib/unictype/categ_Po.c: New file.
36864         * lib/unictype/categ_Ps.c: New file.
36865         * lib/unictype/categ_S.c: New file.
36866         * lib/unictype/categ_Sc.c: New file.
36867         * lib/unictype/categ_Sk.c: New file.
36868         * lib/unictype/categ_Sm.c: New file.
36869         * lib/unictype/categ_So.c: New file.
36870         * lib/unictype/categ_Z.c: New file.
36871         * lib/unictype/categ_Zl.c: New file.
36872         * lib/unictype/categ_Zp.c: New file.
36873         * lib/unictype/categ_Zs.c: New file.
36874         * lib/unictype/categ_and.c: New file.
36875         * lib/unictype/categ_and_not.c: New file.
36876         * lib/unictype/categ_byname.c: New file.
36877         * lib/unictype/categ_name.c: New file.
36878         * lib/unictype/categ_none.c: New file.
36879         * lib/unictype/categ_of.c: New file.
36880         * lib/unictype/categ_or.c: New file.
36881         * lib/unictype/categ_test.c: New file.
36882         * lib/unictype/combining.c: New file.
36883         * lib/unictype/ctype_alnum.c: New file.
36884         * lib/unictype/ctype_alpha.c: New file.
36885         * lib/unictype/ctype_blank.c: New file.
36886         * lib/unictype/ctype_cntrl.c: New file.
36887         * lib/unictype/ctype_digit.c: New file.
36888         * lib/unictype/ctype_graph.c: New file.
36889         * lib/unictype/ctype_lower.c: New file.
36890         * lib/unictype/ctype_print.c: New file.
36891         * lib/unictype/ctype_punct.c: New file.
36892         * lib/unictype/ctype_space.c: New file.
36893         * lib/unictype/ctype_upper.c: New file.
36894         * lib/unictype/ctype_xdigit.c: New file.
36895         * lib/unictype/decdigit.c: New file.
36896         * lib/unictype/digit.c: New file.
36897         * lib/unictype/identsyntaxmap.h: New file.
36898         * lib/unictype/mirror.c: New file.
36899         * lib/unictype/numeric.c: New file.
36900         * lib/unictype/pr_alphabetic.c: New file.
36901         * lib/unictype/pr_ascii_hex_digit.c: New file.
36902         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36903         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36904         * lib/unictype/pr_bidi_block_separator.c: New file.
36905         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36906         * lib/unictype/pr_bidi_common_separator.c: New file.
36907         * lib/unictype/pr_bidi_control.c: New file.
36908         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36909         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36910         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36911         * lib/unictype/pr_bidi_european_digit.c: New file.
36912         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36913         * lib/unictype/pr_bidi_left_to_right.c: New file.
36914         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36915         * lib/unictype/pr_bidi_other_neutral.c: New file.
36916         * lib/unictype/pr_bidi_pdf.c: New file.
36917         * lib/unictype/pr_bidi_segment_separator.c: New file.
36918         * lib/unictype/pr_bidi_whitespace.c: New file.
36919         * lib/unictype/pr_byname.c: New file.
36920         * lib/unictype/pr_byname.gperf: New file.
36921         * lib/unictype/pr_combining.c: New file.
36922         * lib/unictype/pr_composite.c: New file.
36923         * lib/unictype/pr_currency_symbol.c: New file.
36924         * lib/unictype/pr_dash.c: New file.
36925         * lib/unictype/pr_decimal_digit.c: New file.
36926         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36927         * lib/unictype/pr_deprecated.c: New file.
36928         * lib/unictype/pr_diacritic.c: New file.
36929         * lib/unictype/pr_extender.c: New file.
36930         * lib/unictype/pr_format_control.c: New file.
36931         * lib/unictype/pr_grapheme_base.c: New file.
36932         * lib/unictype/pr_grapheme_extend.c: New file.
36933         * lib/unictype/pr_grapheme_link.c: New file.
36934         * lib/unictype/pr_hex_digit.c: New file.
36935         * lib/unictype/pr_hyphen.c: New file.
36936         * lib/unictype/pr_id_continue.c: New file.
36937         * lib/unictype/pr_id_start.c: New file.
36938         * lib/unictype/pr_ideographic.c: New file.
36939         * lib/unictype/pr_ids_binary_operator.c: New file.
36940         * lib/unictype/pr_ids_trinary_operator.c: New file.
36941         * lib/unictype/pr_ignorable_control.c: New file.
36942         * lib/unictype/pr_iso_control.c: New file.
36943         * lib/unictype/pr_join_control.c: New file.
36944         * lib/unictype/pr_left_of_pair.c: New file.
36945         * lib/unictype/pr_line_separator.c: New file.
36946         * lib/unictype/pr_logical_order_exception.c: New file.
36947         * lib/unictype/pr_lowercase.c: New file.
36948         * lib/unictype/pr_math.c: New file.
36949         * lib/unictype/pr_non_break.c: New file.
36950         * lib/unictype/pr_not_a_character.c: New file.
36951         * lib/unictype/pr_numeric.c: New file.
36952         * lib/unictype/pr_other_alphabetic.c: New file.
36953         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36954         * lib/unictype/pr_other_grapheme_extend.c: New file.
36955         * lib/unictype/pr_other_id_continue.c: New file.
36956         * lib/unictype/pr_other_id_start.c: New file.
36957         * lib/unictype/pr_other_lowercase.c: New file.
36958         * lib/unictype/pr_other_math.c: New file.
36959         * lib/unictype/pr_other_uppercase.c: New file.
36960         * lib/unictype/pr_paired_punctuation.c: New file.
36961         * lib/unictype/pr_paragraph_separator.c: New file.
36962         * lib/unictype/pr_pattern_syntax.c: New file.
36963         * lib/unictype/pr_pattern_white_space.c: New file.
36964         * lib/unictype/pr_private_use.c: New file.
36965         * lib/unictype/pr_punctuation.c: New file.
36966         * lib/unictype/pr_quotation_mark.c: New file.
36967         * lib/unictype/pr_radical.c: New file.
36968         * lib/unictype/pr_sentence_terminal.c: New file.
36969         * lib/unictype/pr_soft_dotted.c: New file.
36970         * lib/unictype/pr_space.c: New file.
36971         * lib/unictype/pr_terminal_punctuation.c: New file.
36972         * lib/unictype/pr_test.c: New file.
36973         * lib/unictype/pr_titlecase.c: New file.
36974         * lib/unictype/pr_unassigned_code_value.c: New file.
36975         * lib/unictype/pr_unified_ideograph.c: New file.
36976         * lib/unictype/pr_uppercase.c: New file.
36977         * lib/unictype/pr_variation_selector.c: New file.
36978         * lib/unictype/pr_white_space.c: New file.
36979         * lib/unictype/pr_xid_continue.c: New file.
36980         * lib/unictype/pr_xid_start.c: New file.
36981         * lib/unictype/pr_zero_width.c: New file.
36982         * lib/unictype/scripts.c: New file.
36983         * lib/unictype/sy_c_ident.c: New file.
36984         * lib/unictype/sy_c_whitespace.c: New file.
36985         * lib/unictype/sy_java_ident.c: New file.
36986         * lib/unictype/sy_java_whitespace.c: New file.
36987
36988         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36989         Unicode 5.0.0.
36990         * lib/unictype/blocks.h: Likewise.
36991         * lib/unictype/categ_C.h: Likewise.
36992         * lib/unictype/categ_Cc.h: Likewise.
36993         * lib/unictype/categ_Cf.h: Likewise.
36994         * lib/unictype/categ_Cn.h: Likewise.
36995         * lib/unictype/categ_Co.h: Likewise.
36996         * lib/unictype/categ_Cs.h: Likewise.
36997         * lib/unictype/categ_L.h: Likewise.
36998         * lib/unictype/categ_Ll.h: Likewise.
36999         * lib/unictype/categ_Lm.h: Likewise.
37000         * lib/unictype/categ_Lo.h: Likewise.
37001         * lib/unictype/categ_Lt.h: Likewise.
37002         * lib/unictype/categ_Lu.h: Likewise.
37003         * lib/unictype/categ_M.h: Likewise.
37004         * lib/unictype/categ_Mc.h: Likewise.
37005         * lib/unictype/categ_Me.h: Likewise.
37006         * lib/unictype/categ_Mn.h: Likewise.
37007         * lib/unictype/categ_N.h: Likewise.
37008         * lib/unictype/categ_Nd.h: Likewise.
37009         * lib/unictype/categ_Nl.h: Likewise.
37010         * lib/unictype/categ_No.h: Likewise.
37011         * lib/unictype/categ_P.h: Likewise.
37012         * lib/unictype/categ_Pc.h: Likewise.
37013         * lib/unictype/categ_Pd.h: Likewise.
37014         * lib/unictype/categ_Pe.h: Likewise.
37015         * lib/unictype/categ_Pf.h: Likewise.
37016         * lib/unictype/categ_Pi.h: Likewise.
37017         * lib/unictype/categ_Po.h: Likewise.
37018         * lib/unictype/categ_Ps.h: Likewise.
37019         * lib/unictype/categ_S.h: Likewise.
37020         * lib/unictype/categ_Sc.h: Likewise.
37021         * lib/unictype/categ_Sk.h: Likewise.
37022         * lib/unictype/categ_Sm.h: Likewise.
37023         * lib/unictype/categ_So.h: Likewise.
37024         * lib/unictype/categ_Z.h: Likewise.
37025         * lib/unictype/categ_Zl.h: Likewise.
37026         * lib/unictype/categ_Zp.h: Likewise.
37027         * lib/unictype/categ_Zs.h: Likewise.
37028         * lib/unictype/categ_of.h: Likewise.
37029         * lib/unictype/combining.h: Likewise.
37030         * lib/unictype/ctype_alnum.h: Likewise.
37031         * lib/unictype/ctype_alpha.h: Likewise.
37032         * lib/unictype/ctype_blank.h: Likewise.
37033         * lib/unictype/ctype_cntrl.h: Likewise.
37034         * lib/unictype/ctype_digit.h: Likewise.
37035         * lib/unictype/ctype_graph.h: Likewise.
37036         * lib/unictype/ctype_lower.h: Likewise.
37037         * lib/unictype/ctype_print.h: Likewise.
37038         * lib/unictype/ctype_punct.h: Likewise.
37039         * lib/unictype/ctype_space.h: Likewise.
37040         * lib/unictype/ctype_upper.h: Likewise.
37041         * lib/unictype/ctype_xdigit.h: Likewise.
37042         * lib/unictype/decdigit.h: Likewise.
37043         * lib/unictype/digit.h: Likewise.
37044         * lib/unictype/mirror.h: Likewise.
37045         * lib/unictype/numeric.h: Likewise.
37046         * lib/unictype/pr_alphabetic.h: Likewise.
37047         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37048         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37049         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37050         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37051         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37052         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37053         * lib/unictype/pr_bidi_control.h: Likewise.
37054         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37055         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37056         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37057         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37058         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37059         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37060         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37061         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37062         * lib/unictype/pr_bidi_pdf.h: Likewise.
37063         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37064         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37065         * lib/unictype/pr_combining.h: Likewise.
37066         * lib/unictype/pr_composite.h: Likewise.
37067         * lib/unictype/pr_currency_symbol.h: Likewise.
37068         * lib/unictype/pr_dash.h: Likewise.
37069         * lib/unictype/pr_decimal_digit.h: Likewise.
37070         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37071         * lib/unictype/pr_deprecated.h: Likewise.
37072         * lib/unictype/pr_diacritic.h: Likewise.
37073         * lib/unictype/pr_extender.h: Likewise.
37074         * lib/unictype/pr_format_control.h: Likewise.
37075         * lib/unictype/pr_grapheme_base.h: Likewise.
37076         * lib/unictype/pr_grapheme_extend.h: Likewise.
37077         * lib/unictype/pr_grapheme_link.h: Likewise.
37078         * lib/unictype/pr_hex_digit.h: Likewise.
37079         * lib/unictype/pr_hyphen.h: Likewise.
37080         * lib/unictype/pr_id_continue.h: Likewise.
37081         * lib/unictype/pr_id_start.h: Likewise.
37082         * lib/unictype/pr_ideographic.h: Likewise.
37083         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37084         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37085         * lib/unictype/pr_ignorable_control.h: Likewise.
37086         * lib/unictype/pr_iso_control.h: Likewise.
37087         * lib/unictype/pr_join_control.h: Likewise.
37088         * lib/unictype/pr_left_of_pair.h: Likewise.
37089         * lib/unictype/pr_line_separator.h: Likewise.
37090         * lib/unictype/pr_logical_order_exception.h: Likewise.
37091         * lib/unictype/pr_lowercase.h: Likewise.
37092         * lib/unictype/pr_math.h: Likewise.
37093         * lib/unictype/pr_non_break.h: Likewise.
37094         * lib/unictype/pr_not_a_character.h: Likewise.
37095         * lib/unictype/pr_numeric.h: Likewise.
37096         * lib/unictype/pr_other_alphabetic.h: Likewise.
37097         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37098         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37099         * lib/unictype/pr_other_id_continue.h: Likewise.
37100         * lib/unictype/pr_other_id_start.h: Likewise.
37101         * lib/unictype/pr_other_lowercase.h: Likewise.
37102         * lib/unictype/pr_other_math.h: Likewise.
37103         * lib/unictype/pr_other_uppercase.h: Likewise.
37104         * lib/unictype/pr_paired_punctuation.h: Likewise.
37105         * lib/unictype/pr_paragraph_separator.h: Likewise.
37106         * lib/unictype/pr_pattern_syntax.h: Likewise.
37107         * lib/unictype/pr_pattern_white_space.h: Likewise.
37108         * lib/unictype/pr_private_use.h: Likewise.
37109         * lib/unictype/pr_punctuation.h: Likewise.
37110         * lib/unictype/pr_quotation_mark.h: Likewise.
37111         * lib/unictype/pr_radical.h: Likewise.
37112         * lib/unictype/pr_sentence_terminal.h: Likewise.
37113         * lib/unictype/pr_soft_dotted.h: Likewise.
37114         * lib/unictype/pr_space.h: Likewise.
37115         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37116         * lib/unictype/pr_titlecase.h: Likewise.
37117         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37118         * lib/unictype/pr_unified_ideograph.h: Likewise.
37119         * lib/unictype/pr_uppercase.h: Likewise.
37120         * lib/unictype/pr_variation_selector.h: Likewise.
37121         * lib/unictype/pr_white_space.h: Likewise.
37122         * lib/unictype/pr_xid_continue.h: Likewise.
37123         * lib/unictype/pr_xid_start.h: Likewise.
37124         * lib/unictype/pr_zero_width.h: Likewise.
37125         * lib/unictype/scripts.h: Likewise.
37126         * lib/unictype/scripts_byname.gperf: Likewise.
37127         * lib/unictype/sy_c_ident.h: Likewise.
37128         * lib/unictype/sy_c_whitespace.h: Likewise.
37129         * lib/unictype/sy_java_ident.h: Likewise.
37130         * lib/unictype/sy_java_whitespace.h: Likewise.
37131
37132         * lib/unictype/Makefile: New file.
37133         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37134         glibc.
37135         * lib/unictype/3level.h: New file, copied from glibc.
37136         * lib/unictype/3levelbit.h: New file.
37137
37138 2007-11-11  Bruno Haible  <bruno@clisp.org>
37139
37140         * modules/gperf: New file.
37141         * modules/iconv_open (Depends-on): Add it.
37142         (Makefile.am): Remove the GPERF definition.
37143
37144 2007-11-11  Bruno Haible  <bruno@clisp.org>
37145
37146         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37147         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37148
37149 2007-11-11  Bruno Haible  <bruno@clisp.org>
37150
37151         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37152         (usage): Remove function.
37153
37154 2007-11-11  Bruno Haible  <bruno@clisp.org>
37155
37156         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37157         gl_FUNC_CEILF_LIBS.
37158         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37159         gl_FUNC_CEIL_LIBS.
37160         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37161         gl_FUNC_CEILL_LIBS.
37162         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37163         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37164         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37165
37166 2007-11-11  Bruno Haible  <bruno@clisp.org>
37167
37168         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37169         roundf were declared but do not exist on functions.
37170         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37171         roundl were declared but do not exist on functions.
37172         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37173         HAVE_FLOORL_AND_CEILL, respectively.
37174         Needed for Sun C on Solaris 10.
37175
37176 2007-11-11  Bruno Haible  <bruno@clisp.org>
37177
37178         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37179         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37180         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37181         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37182         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37183         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37184         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37185         HAVE_DECL_ROUNDF.
37186         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37187         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37189         of HAVE_DECL_ROUND*.
37190         * modules/math (Makefile.am): Update.
37191
37192 2007-11-10  Bruno Haible  <bruno@clisp.org>
37193
37194         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37195         ptrdiff_t as m4/intl.m4.
37196
37197 2007-11-10  Jim Meyering  <meyering@redhat.com>
37198
37199         Avoid link failure for the argmatch test.
37200         * tests/test-argmatch.c (usage): Define function to avoid a link
37201         failure: argmatch_die requires a usage function.
37202
37203 2007-11-09  Bruno Haible  <bruno@clisp.org>
37204
37205         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37206         * doc/functions/vsnprintf.texi: Likewise.
37207         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37208         with a size argument < 2.
37209
37210 2007-11-09  Bruno Haible  <bruno@clisp.org>
37211
37212         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37213         buffer. Fixes an inefficiency introduced on 2007-11-03.
37214
37215 2007-11-09  Bruno Haible  <bruno@clisp.org>
37216
37217         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37218         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37219
37220 2007-11-08  Jim Meyering  <meyering@redhat.com>
37221
37222         Change cache variable name prefix "jm_" to "gl_" everywhere.
37223         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37224         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37225         * m4/uptime.m4: s/gl_/jm_/
37226
37227 2007-11-07  Bruno Haible  <bruno@clisp.org>
37228
37229         Update to GNU gettext 0.17.
37230         * m4/intl.m4: Update to GNU gettext 0.17.
37231         * m4/po.m4: Likewise.
37232         * modules/gettext (Files): Remove m4/ulonglong.m4.
37233         (configure.ac): Require gettext infrastructure from version 0.17.
37234
37235 2007-11-06  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37238         symbolic values are not defined in a public header.
37239         * lib/freadable.c (freadable) [QNX]: Likewise.
37240         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37241         * lib/freading.c (freading) [QNX]: Likewise.
37242         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37243         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37244         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37245         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37246         Reported by Alain Magloire.
37247
37248         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37249
37250 2007-11-05  Bruno Haible  <bruno@clisp.org>
37251
37252         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37253         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37254         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37255         Reported by Eric Blake.
37256
37257 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37258             Bruno Haible  <bruno@clisp.org>
37259
37260         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37261         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37262         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37263         (malloc): Undefine also before including <stdlib.h>.
37264         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37265         Needed on OSF/1 4.0.
37266
37267 2007-11-05  Jim Meyering  <meyering@redhat.com>
37268
37269         git-version-gen: sync from coreutils.
37270         * build-aux/git-version-gen: Add comments.
37271         Change the first '-' to '.' in the snapshot version string,
37272         e.g., 6.9-377-08144 -> 6.9.377-08144
37273         Remove first parameter.
37274         Don't declare a version "-dirty" merely because a time
37275         stamp has changed.
37276
37277 2007-11-04  Bruno Haible  <bruno@clisp.org>
37278
37279         * lib/lock.h: Protect all macro definitions containing an 'if'
37280         statement through a "do { ... } while (0)".
37281         * lib/tls.h: Likewise.
37282
37283 2007-11-04  Bruno Haible  <bruno@clisp.org>
37284
37285         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37286
37287 2007-11-04  Bruno Haible  <bruno@clisp.org>
37288
37289         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37290         * modules/fprintf-posix (Depends-on): Add nocrash.
37291         * modules/snprintf-posix (Depends-on): Likewise.
37292         * modules/sprintf-posix (Depends-on): Likewise.
37293         * modules/vasnprintf-posix (Depends-on): Likewise.
37294         * modules/vasprintf-posix (Depends-on): Likewise.
37295         * modules/vfprintf-posix (Depends-on): Likewise.
37296         * modules/vsnprintf-posix (Depends-on): Likewise.
37297         * modules/vsprintf-posix (Depends-on): Likewise.
37298         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37299         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37300         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37301         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37302         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37303         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37304         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37305
37306 2007-11-04  Bruno Haible  <bruno@clisp.org>
37307
37308         * modules/nocrash: New file.
37309         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37310         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37311
37312 2007-11-04  Bruno Haible  <bruno@clisp.org>
37313
37314         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37315         precision handling.
37316         * tests/test-vasprintf-posix.c (test_function): Likewise.
37317         * tests/test-snprintf-posix.h (test_function): Likewise.
37318         * tests/test-sprintf-posix.h (test_function): Likewise.
37319
37320         Fix *printf behaviour for large precisions on mingw and BeOS.
37321         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37322         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37324         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37326         gl_PRINTF_PRECISION and test its result. Invoke
37327         gl_PREREQ_VASNPRINTF_PRECISION.
37328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37335         * doc/functions/fprintf.texi: Update.
37336         * doc/functions/printf.texi: Update.
37337         * doc/functions/snprintf.texi: Update.
37338         * doc/functions/sprintf.texi: Update.
37339         * doc/functions/vfprintf.texi: Update.
37340         * doc/functions/vprintf.texi: Update.
37341         * doc/functions/vsnprintf.texi: Update.
37342         * doc/functions/vsprintf.texi: Update.
37343
37344 2007-11-04  Bruno Haible  <bruno@clisp.org>
37345
37346         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37347
37348 2007-11-04  Bruno Haible  <bruno@clisp.org>
37349
37350         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37351         Reported by Sylvain Beucler <beuc@gnu.org>.
37352
37353 2007-11-03  Bruno Haible  <bruno@clisp.org>
37354
37355         * tests/test-fprintf-posix2.sh: New file.
37356         * tests/test-fprintf-posix2.c: New file.
37357         * modules/fprintf-posix-tests (Files): Add them.
37358         (TESTS): Add test-fprintf-posix2.sh.
37359         (configure.ac): Check for getrlimit and setrlimit.
37360         (check_PROGRAMS): Add test-fprintf-posix2.
37361
37362         * tests/test-printf-posix2.sh: New file.
37363         * tests/test-printf-posix2.c: New file.
37364         * modules/printf-posix-tests (Files): Add them.
37365         (TESTS): Add test-printf-posix2.sh.
37366         (configure.ac): Check for getrlimit and setrlimit.
37367         (check_PROGRAMS): Add test-printf-posix2.
37368
37369         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37370         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37371         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37372         (decode_double): New function, copied from decode_long_double.
37373         (scale10_round_decimal_decoded): New function, extracted from
37374         scale10_round_decimal_long_double.
37375         (scale10_round_decimal_long_double): Use it.
37376         (scale10_round_decimal_double): New function.
37377         (floorlog10): New function.
37378         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37380         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37382         gl_PRINTF_ENOMEM and test its result. Invoke
37383         gl_PREREQ_VASNPRINTF_ENOMEM.
37384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37391         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37392         * modules/snprintf-posix (Depends-on): Likewise.
37393         * modules/sprintf-posix (Depends-on): Likewise.
37394         * modules/vasnprintf-posix (Depends-on): Likewise.
37395         * modules/vasprintf-posix (Depends-on): Likewise.
37396         * modules/vfprintf-posix (Depends-on): Likewise.
37397         * modules/vsnprintf-posix (Depends-on): Likewise.
37398         * modules/vsprintf-posix (Depends-on): Likewise.
37399         * doc/functions/fprintf.texi: Update.
37400         * doc/functions/printf.texi: Update.
37401         * doc/functions/snprintf.texi: Update.
37402         * doc/functions/sprintf.texi: Update.
37403         * doc/functions/vfprintf.texi: Update.
37404         * doc/functions/vprintf.texi: Update.
37405         * doc/functions/vsnprintf.texi: Update.
37406         * doc/functions/vsprintf.texi: Update.
37407
37408 2007-11-03  Bruno Haible  <bruno@clisp.org>
37409
37410         * modules/frexp-nolibm-tests: New file.
37411
37412         * modules/frexp-nolibm: New file.
37413         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37414
37415 2007-11-03  Bruno Haible  <bruno@clisp.org>
37416
37417         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37418         value is C99 compliant.
37419         Needed for OSF/1 5.1.
37420
37421 2007-11-03  Bruno Haible  <bruno@clisp.org>
37422
37423         Fix out-of-memory handling of vasnprintf.
37424         * lib/printf-parse.c: Include <errno.h>.
37425         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37426         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37427         is already set.
37428
37429 2007-11-02  Eric Blake  <ebb9@byu.net>
37430
37431         Fix tests on cygwin.
37432         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37433
37434 2007-11-01  Bruno Haible  <bruno@clisp.org>
37435
37436         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37437         warning.
37438         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37439         needed for POSIX compatibility.
37440
37441 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37442
37443         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37444         for compatibility with GNU.
37445
37446 2007-11-01  Bruno Haible  <bruno@clisp.org>
37447
37448         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37449         (putenv): Renamed from rpl_putenv. Change argument type from
37450         'const char *' to 'char *'.
37451         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37452         of defining putenv in config.h, just set REPLACE_PUTENV.
37453         * modules/putenv (Depends-on): Add stdlib.
37454         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37455         (Include): Use <stdlib.h>.
37456         * lib/stdlib.in.h (putenv): New declaration.
37457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37458         REPLACE_PUTENV.
37459         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37460         REPLACE_PUTENV.
37461         Needed for MacOS X 10.5.0.
37462         Reported by Peter O'Gorman <peter@pogma.com>.
37463
37464 2007-11-01  Jim Meyering  <meyering@redhat.com>
37465
37466         Treat an empty date string exactly like "0".
37467         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37468         if the remaining date string (to be parsed) is empty, use "0".
37469         Reported by Mischa Molhoek and discussed in this thread:
37470         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37471
37472 2007-10-31  Bruno Haible  <bruno@clisp.org>
37473
37474         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37475         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37476         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37477         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37478         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37479         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37480
37481 2007-10-31  Bruno Haible  <bruno@clisp.org>
37482
37483         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37484         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37485         (AC_TYPE_LONG_LONG_INT): Use it.
37486         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37487         it as well.
37488         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37489         to m4/longlong.m4.
37490         * modules/stdint (Files): Remove m4/ulonglong.m4.
37491         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37492         m4/ulonglong.m4.
37493         * modules/strtoumax (Files): Likewise.
37494
37495 2007-10-30  Bruno Haible  <bruno@clisp.org>
37496
37497         * modules/xvasprintf-posix: New file.
37498         Suggested by Eric Blake.
37499
37500 2007-10-30  Bruno Haible  <bruno@clisp.org>
37501
37502         * modules/xprintf-posix-tests: New file.
37503         * tests/test-xprintf-posix.sh: New file.
37504         * tests/test-xprintf-posix.c: New file.
37505         * tests/test-xfprintf-posix.c: New file.
37506
37507         * modules/xprintf-posix: New file.
37508
37509 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37510
37511         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37512         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37513         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37514
37515 2007-10-29  Bruno Haible  <bruno@clisp.org>
37516
37517         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37518         contain the special marker '_cv_'.
37519         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37520         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37521         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37522         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37523         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37524         Reported by Ralf Wildenhues.
37525
37526 2007-10-29  Bruno Haible  <bruno@clisp.org>
37527
37528         * gnulib-tool (func_import): When --lgpl is not specified, set
37529         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37530         GPLv3.
37531         Reported by Simon Josefsson.
37532
37533 2007-10-28  Bruno Haible  <bruno@clisp.org>
37534
37535         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37536         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37537         HAVE_DECL_ISFINITE.
37538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37539         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37540         HAVE_DECL_ISFINITE.
37541
37542 2007-10-28  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37545         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37546
37547 2007-10-28  Bruno Haible  <bruno@clisp.org>
37548
37549         Fix link errors with Sun C 5.0 on Solaris 10.
37550         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37551         function is declared but not present in the compiler's libm.
37552         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37553         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37554         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37555         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37556         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37557         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37558         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37560         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37561         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37562         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37563         HAVE_DECL_FLOORL.
37564
37565 2007-10-28  Bruno Haible  <bruno@clisp.org>
37566
37567         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37568         gl_FUNC_FLOORL. Cache the result.
37569         (gl_FUNC_FLOORL): Use it.
37570         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37571         gl_FUNC_CEILL. Cache the result.
37572         (gl_FUNC_CEILL): Use it.
37573
37574         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37575         gl_FUNC_FLOOR. Cache the result.
37576         (gl_FUNC_FLOOR): Use it.
37577         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37578         gl_FUNC_CEIL. Cache the result.
37579         (gl_FUNC_CEIL): Use it.
37580
37581         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37582         gl_FUNC_FLOORF. Cache the result.
37583         (gl_FUNC_FLOORF): Use it.
37584         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37585         gl_FUNC_CEILF. Cache the result.
37586         (gl_FUNC_CEILF): Use it.
37587
37588 2007-10-28  Bruno Haible  <bruno@clisp.org>
37589
37590         * gnulib-tool: Allow specifying the LGPL version number through
37591         --lgpl=2 or --lgpl=3.
37592         (func_usage): Document --lgpl with argument.
37593         Handle --lgpl=... arguments.
37594         (func_import): Recognize also gl_LGPL calls with an argument. When
37595         --lgpl=2 is used and the module's license is just LGPL, report an
37596         error. Set sed_transform_lib_file according to the lgpl variable. In
37597         the generated files, use --lgpl or gl_LGPL invocations with argument,
37598         if necessary.
37599         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37600         an LGPv2+ license.
37601         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37602         gl_LGPL macro.
37603
37604 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37605             Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37608         (u16_uctomb_aux): Likewise.
37609         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37610         !HAVE_INLINE.
37611         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37612
37613 2007-10-28  Bruno Haible  <bruno@clisp.org>
37614
37615         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37616         Invoke AM_GETTEXT_OPTION if it exists.
37617         * modules/vasprintf: Likewise.
37618         * modules/verror: Likewise.
37619         * modules/xprintf: Likewise.
37620         * modules/xvasprintf: Likewise.
37621
37622 2007-10-27  Ben Pfaff  <blp@gnu.org>
37623
37624         * lib/math.in.h: Define isfinite macro and prototypes for
37625         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37626         implementations.
37627         * m4/math_h.m4: New substitutions for isfinite module.
37628         * lib/isfinite.c: New file.
37629         * m4/isfinite.m4: New file.
37630         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37631         * modules/isfinite: New file.
37632         * modules/isfinite-tests: New file.
37633         * tests/tests-isfinite.c: New file.
37634         * doc/functions/isfinite.texi: Mention isfinite module.
37635         * MODULES.html.sh: Mention new module.
37636
37637 2007-10-27  Ben Pfaff  <blp@gnu.org>
37638
37639         Ralf Wildenhues reported that Tru64 4.0D declares the round
37640         functions but does not have definitions.
37641         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37642         cannot be found in any library, set the output variable to
37643         "missing" instead of "".
37644         * m4/round.m4: Also use our substitute if we cannot find round in
37645         any library, even if it is declared.
37646         * m4/roundf.m4: Likewise for roundf.
37647         * m4/roundl.m4: Likewise for roundl.
37648         * lib/math.in.h: Undefine roundf, round, roundl before defining
37649         their replacements, to allow for hypothetical systems where these
37650         may be defined as macros but not available in libraries.
37651
37652 2007-10-27  Bruno Haible  <bruno@clisp.org>
37653
37654         * doc/gnulib.texi: Invoke @firstparagraphindent.
37655         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37656         changes in gnulib.
37657         (Source changes): New section.
37658
37659 2007-10-26  Bruno Haible  <bruno@clisp.org>
37660
37661         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37662         borrowed from autoconf.
37663
37664 2007-10-26  Bruno Haible  <bruno@clisp.org>
37665
37666         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37667         strerror returned the empty string. Needed on HP-UX 11.00.
37668
37669 2007-10-24  Micah Cowan  <micah@cowan.name>
37670
37671         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37672         * build-aux/bootstrap: Remove support for now-unnecessary option,
37673         --cvs-user, and envvars CVS_USER, CVS_RSH.
37674
37675 2007-10-24  Jim Meyering  <meyering@redhat.com>
37676
37677         Avoid diagnostics from sha1sum when there is no cached checksum.
37678         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37679         if the po.s1 file hasn't been created yet.
37680
37681         * build-aux/bootstrap: Sync from coreutils:
37682         2007-10-24  Jim Meyering  <meyering@redhat.com>
37683         Get gnulib from the git repository, not from an obsolete cvs one.
37684         * build-aux/bootstrap: Suggestion from Micah Cowan.
37685         2007-10-04  Jim Meyering  <jim@meyering.net>
37686         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37687         (update_po_files): Work also when there are no .po files in po/.
37688
37689 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37690
37691         * README: Append ".git" to git and cg examples.
37692         Problem reported by Benoit Sigoure.
37693
37694 2007-10-23  Micah Cowan  <micah@cowan.name>
37695
37696         * users.txt: Add wget.
37697
37698 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37699
37700         Fix linking of some unistdio tests on FreeBSD.
37701         * modules/unistdio/u16-vsnprintf-tests
37702         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37703         * modules/unistdio/u16-vsprintf-tests
37704         (test_u16_vsnprintf1_LDADD): Likewise.
37705         * modules/unistdio/u32-vsnprintf-tests
37706         (test_u32_vsnprintf1_LDADD): Likewise.
37707         * modules/unistdio/u32-vsprintf-tests
37708         (test_u32_vsprintf1_LDADD): Likewise.
37709         * modules/unistdio/u8-vsnprintf-tests
37710         (test_u8_vsnprintf1_LDADD): Likewise.
37711         * modules/unistdio/u8-vsprintf-tests
37712         (test_u8_vsprintf1_LDADD): Likewise.
37713         * modules/unistdio/ulc-vsnprintf-tests
37714         (test_ulc_vsnprintf1_LDADD): Likewise.
37715         * modules/unistdio/ulc-vsprintf-tests
37716         (test_ulc_vsprintf1_LDADD): Likewise.
37717
37718         Fix linking of some uniconv tests on FreeBSD.
37719         * modules/uniconv/u16-conv-from-enc-tests
37720         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37721         * modules/uniconv/u16-conv-to-enc-tests
37722         (test_u16_conv_to_enc_LDADD): Likewise.
37723         * modules/uniconv/u16-strconv-from-enc-tests
37724         (test_u16_strconv_from_enc_LDADD): Likewise.
37725         * modules/uniconv/u16-strconv-to-enc-tests
37726         (test_u16_strconv_to_enc_LDADD): Likewise.
37727         * modules/uniconv/u32-conv-from-enc-tests
37728         (test_u32_conv_from_enc_LDADD): Likewise.
37729         * modules/uniconv/u32-conv-to-enc-tests
37730         (test_u32_conv_to_enc_LDADD): Likewise.
37731         * modules/uniconv/u32-strconv-from-enc-tests
37732         (test_u32_strconv_from_enc_LDADD): Likewise.
37733         * modules/uniconv/u32-strconv-to-enc-tests
37734         (test_u32_strconv_to_enc_LDADD): Likewise.
37735         * modules/uniconv/u8-conv-from-enc-tests
37736         (test_u8_conv_from_enc_LDADD): Likewise.
37737         * modules/uniconv/u8-conv-to-enc-tests
37738         (test_u8_conv_to_enc_LDADD): Likewise.
37739         * modules/uniconv/u8-strconv-from-enc-tests
37740         (test_u8_strconv_from_enc_LDADD): Likewise.
37741         * modules/uniconv/u8-strconv-to-enc-tests
37742         (test_u8_strconv_to_enc_LDADD): Likewise.
37743
37744 2007-10-22  Bruno Haible  <bruno@clisp.org>
37745
37746         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37747         size.
37748
37749 2007-10-22  Eric Blake  <ebb9@byu.net>
37750
37751         Tweak x*printf documentation.
37752         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37753         variable name and comments.
37754         Suggested by Bruno Haible.
37755
37756 2007-10-22  Bruno Haible  <bruno@clisp.org>
37757
37758         * lib/acl.c (copy_acl): Fix file name in comment.
37759
37760 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37761
37762         Fix Tru64 problem with stdbool.h.
37763         * lib/stdbool.in.h (false, true):
37764         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37765         Don't declare as an enum in this situation; it runs afoul of Tru64.
37766         Problem reported by Steven M. Schweda in
37767         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37768
37769 2007-10-22  Eric Blake  <ebb9@byu.net>
37770
37771         Also wrap vf?printf.
37772         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37773         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37774         (xvprintf, xvfprintf): New functions.
37775
37776 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37777
37778         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37779         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37780
37781         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37782         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37783
37784 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37785
37786         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37787         by Bruno Haible.
37788
37789 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37790
37791         * lib/getloadavg.c
37792         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37793         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37794
37795         * tests/test-i-ring.c: Work for C89.
37796
37797 2007-10-22  Bruno Haible  <bruno@clisp.org>
37798
37799         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37800         -1u, in preprocessor expression, so that we don't test for the bug
37801         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37803
37804 2007-10-22  Eric Blake  <ebb9@byu.net>
37805
37806         * tests/test-yesno.sh: Silence stderr during test.
37807
37808 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37809
37810         * modules/crypto/gc-camellia: New file.
37811
37812         * m4/gc-camellia.m4: New file.
37813
37814         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37815
37816         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37817
37818 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37819
37820         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37821         --help to stdout.  Reported by sms@antinode.org (Steven
37822         M. Schweda).
37823
37824 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37825
37826         * users.txt: Fix link to libksba.
37827
37828 2007-10-21  Ben Pfaff  <blp@gnu.org>
37829
37830         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37831         round.c roundf implementation that depends on floorf and ceilf to
37832         be tested unconditionally.
37833
37834 2007-10-21  Ben Pfaff  <blp@gnu.org>
37835
37836         * m4/check-libm-func.m4: Removed.
37837         * m4/check-math-lib.m4: New file.
37838         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37839         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37840         definition and lack of AC_LIBOBJ([roundf]).
37841         * m4/roundl.m4: Ditto, and similarly for roundl.
37842         * modules/round: Reference new m4 file.
37843         * modules/roundf: Ditto.
37844         * modules/roundl: Ditto.
37845         * tests/test-round2.c (main): Use ROUND instead of round.
37846         Bug report from Bruno Haible.
37847
37848 2007-10-21  Bruno Haible  <bruno@clisp.org>
37849
37850         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37851         context.
37852
37853 2007-10-21  Bruno Haible  <bruno@clisp.org>
37854
37855         * tests/test-wcwidth.c (main): Allow negative result for some control
37856         characters.
37857
37858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37859         Needed on OSF/1 5.1.
37860
37861 2007-10-21  Bruno Haible  <bruno@clisp.org>
37862
37863         * tests/test-floorf1.c: Include isnanf.h.
37864         (main): Use isnanf() instead of isnan().
37865         * tests/test-ceilf1.c: Include isnanf.h.
37866         (main): Use isnanf() instead of isnan().
37867         * tests/test-truncf1.c: Include isnanf.h.
37868         (main): Use isnanf() instead of isnan().
37869         * tests/test-roundf1.c: Include isnanf.h.
37870         (main): Use isnanf() instead of isnan().
37871
37872 2007-10-21  Eric Blake  <ebb9@byu.net>
37873
37874         * users.txt: Update URL for m4.
37875
37876 2007-10-21  Bruno Haible  <bruno@clisp.org>
37877
37878         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37879
37880 2007-10-21  Bruno Haible  <bruno@clisp.org>
37881
37882         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37883         Git's management files if the CVS files are not present.
37884
37885 2007-10-20  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37888         gcc-3.4.x.
37889
37890 2007-10-20  Ben Pfaff  <blp@gnu.org>
37891
37892         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37893         implementations.
37894         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37895         * lib/round.c: New file.
37896         * lib/roundf.c: New file.
37897         * lib/roundl.c: New file.
37898         * m4/round.m4: New file.
37899         * m4/roundf.m4: New file.
37900         * m4/roundl.m4: New file.
37901         * m4/check-libm-func-m4: New file.
37902         * modules/math: Replace round, roundf, roundl related @VARS@ in
37903         math.in.h.
37904         * modules/round: New file.
37905         * modules/round-tests: New file.
37906         * modules/roundf: New file.
37907         * modules/roundf-tests: New file.
37908         * modules/roundl: New file.
37909         * modules/roundl-tests: New file.
37910         * tests/test-round1.c: New file.
37911         * tests/test-round2.c: New file.
37912         * tests/test-roundf1.c: New file.
37913         * tests/test-roundf2.c: New file.
37914         * tests/test-roundl.c: New file.
37915         * doc/functions/round.texi: Mention round module.
37916         * doc/functions/roundf.texi: Mention roundf module.
37917         * doc/functions/roundl.texi: Mention roundl module.
37918         * MODULES.html.sh: Mention new modules.
37919         Thanks to Bruno Haible for suggestions.
37920
37921 2007-10-20  Jim Meyering  <meyering@redhat.com>
37922
37923         * lib/xprintf.c: Include <config.h> unconditionally.
37924
37925         Change xprintf's license to GPL.
37926         * modules/xprintf (License): s/LGPL/GPL/, since this module
37927         depends on modules (exit and exitfail) which are GPL.
37928         Suggestion from Bruno Haible.
37929
37930         xprintf fixes.
37931         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37932         Use a clearer diagnostic.
37933         Patch from Bruno Haible.
37934
37935 2007-10-20  Bruno Haible  <bruno@clisp.org>
37936
37937         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37938         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37940
37941 2007-10-20  Bruno Haible  <bruno@clisp.org>
37942
37943         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37944         precision in the comparison result > x - 1 or similar.
37945         * tests/test-ceilf2.c (correct_result_p): Likewise.
37946         * tests/test-truncf2.c (correct_result_p): Likewise.
37947         * tests/test-trunc2.c (correct_result_p): Likewise.
37948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37949
37950 2007-10-20  Bruno Haible  <bruno@clisp.org>
37951
37952         * modules/ceil: New file.
37953         * m4/ceil.m4: New file.
37954         * doc/functions/ceil.texi: Mention the 'ceil' module.
37955
37956 2007-10-20  Bruno Haible  <bruno@clisp.org>
37957
37958         * modules/floor: New file.
37959         * m4/floor.m4: New file.
37960         * doc/functions/floor.texi: Mention the 'floor' module.
37961
37962 2007-10-20  Bruno Haible  <bruno@clisp.org>
37963
37964         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37965         of %a.
37966         * modules/floorf-tests (Depends-on): Likewise.
37967         * modules/truncf-tests (Depends-on): Likewise.
37968         * modules/trunc-tests (Depends-on): Likewise.
37969         Reported by Ben Pfaff.
37970
37971 2007-10-19  Jim Meyering  <meyering@redhat.com>
37972
37973         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37974         Don't bother testing specific errno values.  Just test ferror.
37975
37976         New module: xprintf
37977         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37978
37979 2007-10-19  Bruno Haible  <bruno@clisp.org>
37980
37981         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37982         syntax.
37983         * modules/javaexec (Makefile.am): Likewise.
37984         * modules/relocatable-prog (Makefile.am): Likewise.
37985         Suggested by Jim Meyering.
37986
37987 2007-10-18  Bruno Haible  <bruno@clisp.org>
37988
37989         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37990         Reported by Jim Meyering.
37991
37992 2007-10-18  Eric Blake  <ebb9@byu.net>
37993
37994         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37995
37996 2007-10-18  Bruno Haible  <bruno@clisp.org>
37997
37998         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37999         the format string into writable memory. Needed in Fortify conditions.
38000
38001 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
38002             Bruno Haible  <bruno@clisp.org>
38003
38004         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
38005         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
38006         * modules/trim (Depends-on): Add mbchar.
38007         (configure.ac): Add gl_FUNC_MBRTOWC.
38008         (Makefile.am): Augment lib_SOURCES.
38009
38010 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38011
38012         Modify glob.c to use fstatat and dirfd, to simplify it.
38013         Suggested by Eric Blake.
38014         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
38015         Don't include <stdbool.h>; not used.
38016         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
38017         (link_exists_p): Simplify implementation, since we can now assume
38018         dirfd and fstatat.
38019         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
38020
38021 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38022
38023         * gnulib-tool (func_get_dependencies): Fix sed script to
38024         match only tests.
38025
38026 2007-10-17  Bruno Haible  <bruno@clisp.org>
38027
38028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
38029         allow locale names without encoding suffix.
38030         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38031         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38032
38033 2007-10-16  Bruno Haible  <bruno@clisp.org>
38034
38035         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
38036         * lib/getgroups.c (getgroups): Likewise.
38037         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
38038
38039 2007-10-16  Bruno Haible  <bruno@clisp.org>
38040
38041         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
38042         * modules/malloc-posix (License): Likewise.
38043         * modules/realloc-posix (License): Likewise.
38044         * modules/calloc-posix (License): Likewise.
38045         * modules/intprops (License): Change from GPL to LGPL, with
38046         Paul Eggert's approval.
38047
38048 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38049
38050         Merge glibc changes into lib/glob.c.
38051
38052         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
38053         2007-10-15 04:59:03 UTC.  Here are the changes:
38054
38055         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
38056
38057         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
38058
38059         * lib/glob.c: Add some branch prediction throughout.
38060
38061         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
38062
38063         [BZ #5103]
38064         * lib/glob.c (glob): Recognize patterns starting \/.
38065
38066         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
38067
38068         [BZ #3996]
38069         * lib/glob.c (attribute_hidden): Define if not defined.
38070         (glob): Unescape dirname, filename or username when needed and not
38071         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
38072         is NULL.  Handle unescaped [ in pattern without closing ].
38073         Don't pass GLOB_CHECK down to recursive glob for directories.
38074         (__glob_pattern_type): New function.
38075         (__glob_pattern_p): Implement using __glob_pattern_type.
38076         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
38077         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
38078         Remove unreachable code.
38079
38080         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
38081
38082         * lib/glob.c (glob_in_dir): Add some comments and asserts to
38083         explain why there are no leaks.
38084
38085         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
38086
38087         [BZ #3253]
38088         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
38089         time, rather allocate increasingly bigger arrays of pointers, if
38090         possible with alloca, if too large with malloc.
38091
38092 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38093
38094         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
38095         Problem reported by H.Merijn Brand in
38096         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
38097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
38098         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
38099
38100 2007-10-15  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
38103         with explicit rpl_ prefix.
38104         * lib/fopen.c (fopen): Likewise.
38105         * lib/freopen.c (freopen): Likewise.
38106         * lib/iconv.c (iconv): Likewise.
38107         * lib/iconv_close.c (iconv_close): Likewise.
38108
38109 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38110
38111         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
38112
38113 2007-10-15  Bruno Haible  <bruno@clisp.org>
38114
38115         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38116         <stddef.h> instead of <stdlib.h> since we only need NULL.
38117         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38118
38119 2007-10-15  Bruno Haible  <bruno@clisp.org>
38120
38121         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38122         Replace paragraph talking about LIBOBJS.
38123         Reported by Colin Watson <cjwatson@debian.org>.
38124
38125 2007-10-15  Bruno Haible  <bruno@clisp.org>
38126
38127         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38128         <stdlib.h> before using NULL.
38129
38130 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38131
38132         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38133         Reported by Albert Chin <china@thewrittenword.com>.
38134
38135 2007-10-14  Bruno Haible  <bruno@clisp.org>
38136
38137         * modules/iconv_open-utf-tests: New file.
38138         * tests/test-iconv-utf.c: New file.
38139
38140         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38141         * modules/iconv_open-utf: New file.
38142         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38143         (iconv, iconv_close): New declarations.
38144         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38145         be defined.
38146         (iconv_open): Add special handling of conversion between UTF-8 and
38147         UTF-{16,32}{BE,LE}.
38148         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38149         * lib/iconv_close.c: New file.
38150         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38151         gl_FUNC_ICONV_OPEN.
38152         (gl_FUNC_ICONV_OPEN): Use it.
38153         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38154         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38155         and REPLACE_ICONV_UTF.
38156         * modules/iconv_open (Depends-on): Add c-strcase.
38157         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38158         ICONV_CONST.
38159         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38160
38161 2007-10-13  Albert Chin  <china@thewrittenword.com>
38162             Bruno Haible  <bruno@clisp.org>
38163
38164         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38165         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38166
38167 2007-10-13  Bruno Haible  <bruno@clisp.org>
38168
38169         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38170         defined, use the ISO C99 inline semantics.
38171         * lib/argp.h (ARGP_EI): Likewise.
38172
38173 2007-10-13  Bruno Haible  <bruno@clisp.org>
38174
38175         Handle 'inline' change in gcc 4.3.0.
38176         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38177         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38178         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38179         argp_fmtstream_point): Disable 'extern' declaration if the function
38180         definition is going to be provided inline.
38181         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38182         semantics, not the ISO C99 inline semantics.
38183         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38184         'extern' declaration if the function definition is going to be provided
38185         inline.
38186         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38187         the GNU C inline semantics, not the ISO C99 inline semantics. With
38188         GCC 4.2, avoid a warning.
38189
38190 2007-10-13  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/freading.h (freading): Enable the use of __freading for
38193         glibc >= 2.7.
38194         * lib/freading.c (freading): Likewise.
38195
38196 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38197
38198         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38199         "warning: C99 inline functions are not supported; using GNU89".
38200
38201 2007-10-12  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38204         of 2.
38205         * tests/test-ceilf2.c: New file.
38206         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38207
38208         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38209         * modules/ceilf-tests: Update.
38210
38211 2007-10-12  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38214         of 2.
38215         * tests/test-floorf2.c: New file.
38216         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38217
38218         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38219         * modules/floorf-tests: Update.
38220
38221 2007-10-12  Bruno Haible  <bruno@clisp.org>
38222
38223         * tests/test-trunc2.c: New file.
38224         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38225
38226         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38227         * modules/trunc-tests: Update.
38228
38229 2007-10-12  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38232         of 2.
38233         * tests/test-truncf2.c: New file.
38234         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38235
38236         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38237         * modules/truncf-tests: Update.
38238
38239 2007-10-11  Eric Blake  <ebb9@byu.net>
38240
38241         Don't claim strerror is broken on Interix.
38242         * doc/functions/strerror.texi (strerror): Known broken systems are
38243         now Solaris 8, and not Interix.
38244         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38245         Interix on cross-compile.
38246         Reported by Martin Koeppe in
38247         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38248
38249 2007-10-11  Bruno Haible  <bruno@clisp.org>
38250
38251         * modules/i-ring-tests: New file.
38252         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38253         instead of assert.
38254
38255 2007-10-11  Bruno Haible  <bruno@clisp.org>
38256
38257         * modules/filenamecat-tests: New file.
38258         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38259         * lib/filenamecat.c: Remove test code.
38260
38261 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38262
38263         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38264
38265         * lib/strerror.c: Include <string.h> always, to test interface,
38266         and to remove the need for the dummy.
38267         Include intprops.h to compute width instead of doing it ourselves
38268         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38269         (strerror): Define it to return NULL if there's no system strerror.
38270         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38271         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38272         ancient pre-strerror Unix systems well any more.  Saying "unknown
38273         system error" is enough.
38274         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38275         simpler strerror.c implementation.
38276         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38277         Simplify the tests to reflect the simpler strerror implementation.
38278         * modules/strerror (Depends-on): Add intprops.
38279
38280 2007-10-09  Eric Blake  <ebb9@byu.net>
38281
38282         Silence test-fpending.
38283         * modules/fpending-tests (Files): Add wrapper script.
38284         * tests/test-fpending.sh: New file.
38285
38286 2007-10-09  Bruno Haible  <bruno@clisp.org>
38287
38288         * MODULES.html.sh (func_module): Don't create a hyperlink for
38289         function names like 'printf_frexp'.
38290         (Misc): Add crc, memxor.
38291         (Characteristics of floating types): New section.
38292         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38293         isnanf-nolibm, signbit, trunc, truncf, truncl.
38294         (Enhancements for ISO C 99 functions): New subsection Input/output.
38295         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38296         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38297         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38298         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38299         (Enhancements for POSIX:2001 functions): Add chdir-long.
38300         (File system functions): Add areadlink, chdir-safer, read-file.
38301         Remove cycle-check.
38302         (File system as inode set): New section.
38303         (Date and time): Add gethrxtime.
38304         (Multithreading): Add openmp.
38305         (Internationalization functions): Add localename.
38306         (Unicode string functions): Add unistr/u*-mbsnlen.
38307         (Support for maintaining and releasing projects): Add git-version-gen.
38308         (Lone files): Remove directories.
38309
38310 2007-10-08  Ben Pfaff  <blp@gnu.org>
38311
38312         * lib/xmalloca.h: Fix typo in comment.
38313
38314 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38315
38316         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38317         when avoiding problems with integer overflow.  Use a portable test
38318         instead.
38319
38320 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38321
38322         * modules/dummy (License): Change to LGPLv2+.
38323         * modules/float (License): Likewise
38324         * modules/realloc (License): Likewise
38325         * modules/stdlib (License): Likewise
38326
38327 2007-10-07  Bruno Haible  <bruno@clisp.org>
38328
38329         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38330         * floor.c (TWO_MANT_DIG): Likewise.
38331         * ceil.c (TWO_MANT_DIG): Likewise.
38332         Reported by Ben Pfaff.
38333
38334 2007-10-07  Bruno Haible  <bruno@clisp.org>
38335
38336         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38337         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38338         * lib/frexp.c (FUNC): Likewise.
38339         * lib/printf-frexp.h (printf_frexp): Likewise.
38340         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38341         * lib/printf-frexp.c (FUNC): Likewise.
38342         Suggested by Jim Meyering.
38343
38344 2007-10-07  Jim Meyering  <meyering@redhat.com>
38345
38346         Make xnanosleep's integer overflow test more robust.
38347         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38348         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38349
38350 2007-10-07  Bruno Haible  <bruno@clisp.org>
38351
38352         * NEWS: Mention the license change.
38353
38354         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38355         abbreviations in the modules files.
38356
38357         Change copyright notice from GPLv2+ to GPLv3+.
38358         * README: Change copyright notice.
38359         * MODULES.html.sh: Likewise.
38360         * build-aux/bootstrap.conf: Likewise.
38361         * build-aux/config.libpath: Likewise.
38362         * build-aux/csharpcomp.sh.in: Likewise.
38363         * build-aux/csharpexec.sh.in: Likewise.
38364         * build-aux/install-reloc: Likewise.
38365         * build-aux/javacomp.sh.in: Likewise.
38366         * build-aux/javaexec.sh.in: Likewise.
38367         * build-aux/ldd.sh.in: Likewise.
38368         * build-aux/reloc-ldflags: Likewise.
38369         * build-aux/relocatable.sh.in: Likewise.
38370         * build-aux/x-to-1.in: Likewise.
38371         * check-module: Likewise.
38372         * config/srclistvars.sh: Likewise.
38373         * gnulib-tool: Likewise.
38374         * lib/acl-internal.h: Likewise.
38375         * lib/acl.c: Likewise.
38376         * lib/acl.h: Likewise.
38377         * lib/acl_entries.c: Likewise.
38378         * lib/areadlink-with-size.c: Likewise.
38379         * lib/areadlink.c: Likewise.
38380         * lib/areadlink.h: Likewise.
38381         * lib/argmatch.c: Likewise.
38382         * lib/argmatch.h: Likewise.
38383         * lib/argp-ba.c: Likewise.
38384         * lib/argp-eexst.c: Likewise.
38385         * lib/argp-fmtstream.c: Likewise.
38386         * lib/argp-fmtstream.h: Likewise.
38387         * lib/argp-fs-xinl.c: Likewise.
38388         * lib/argp-help.c: Likewise.
38389         * lib/argp-namefrob.h: Likewise.
38390         * lib/argp-parse.c: Likewise.
38391         * lib/argp-pin.c: Likewise.
38392         * lib/argp-pv.c: Likewise.
38393         * lib/argp-pvh.c: Likewise.
38394         * lib/argp-xinl.c: Likewise.
38395         * lib/argp.h: Likewise.
38396         * lib/at-func.c: Likewise.
38397         * lib/atanl.c: Likewise.
38398         * lib/backupfile.c: Likewise.
38399         * lib/backupfile.h: Likewise.
38400         * lib/basename.c: Likewise.
38401         * lib/binary-io.h: Likewise.
38402         * lib/byteswap.in.h: Likewise.
38403         * lib/c-stack.c: Likewise.
38404         * lib/c-stack.h: Likewise.
38405         * lib/c-strcasestr.c: Likewise.
38406         * lib/c-strcasestr.h: Likewise.
38407         * lib/c-strstr.c: Likewise.
38408         * lib/c-strstr.h: Likewise.
38409         * lib/c-strtod.c: Likewise.
38410         * lib/calloc.c: Likewise.
38411         * lib/canon-host.c: Likewise.
38412         * lib/canon-host.h: Likewise.
38413         * lib/canonicalize-lgpl.c: Likewise.
38414         * lib/canonicalize.c: Likewise.
38415         * lib/canonicalize.h: Likewise.
38416         * lib/ceil.c: Likewise.
38417         * lib/ceilf.c: Likewise.
38418         * lib/ceill.c: Likewise.
38419         * lib/chdir-long.c: Likewise.
38420         * lib/chdir-long.h: Likewise.
38421         * lib/chdir-safer.c: Likewise.
38422         * lib/chdir-safer.h: Likewise.
38423         * lib/chown.c: Likewise.
38424         * lib/classpath.c: Likewise.
38425         * lib/classpath.h: Likewise.
38426         * lib/clean-temp.c: Likewise.
38427         * lib/clean-temp.h: Likewise.
38428         * lib/cloexec.c: Likewise.
38429         * lib/close-stream.c: Likewise.
38430         * lib/closein.c: Likewise.
38431         * lib/closein.h: Likewise.
38432         * lib/closeout.c: Likewise.
38433         * lib/closeout.h: Likewise.
38434         * lib/concat-filename.c: Likewise.
38435         * lib/copy-file.c: Likewise.
38436         * lib/copy-file.h: Likewise.
38437         * lib/count-one-bits.h: Likewise.
38438         * lib/crc.c: Likewise.
38439         * lib/crc.h: Likewise.
38440         * lib/creat-safer.c: Likewise.
38441         * lib/csharpcomp.c: Likewise.
38442         * lib/csharpcomp.h: Likewise.
38443         * lib/csharpexec.c: Likewise.
38444         * lib/csharpexec.h: Likewise.
38445         * lib/cycle-check.c: Likewise.
38446         * lib/cycle-check.h: Likewise.
38447         * lib/diacrit.c: Likewise.
38448         * lib/diacrit.h: Likewise.
38449         * lib/diffseq.h: Likewise.
38450         * lib/dirchownmod.c: Likewise.
38451         * lib/dirent.in.h: Likewise.
38452         * lib/dirfd.c: Likewise.
38453         * lib/dirfd.h: Likewise.
38454         * lib/dirname.c: Likewise.
38455         * lib/dirname.h: Likewise.
38456         * lib/dummy.c: Likewise.
38457         * lib/dup-safer.c: Likewise.
38458         * lib/dup2.c: Likewise.
38459         * lib/eealloc.h: Likewise.
38460         * lib/error.c: Likewise.
38461         * lib/error.h: Likewise.
38462         * lib/euidaccess.c: Likewise.
38463         * lib/exclude.c: Likewise.
38464         * lib/exclude.h: Likewise.
38465         * lib/execute.c: Likewise.
38466         * lib/execute.h: Likewise.
38467         * lib/exitfail.c: Likewise.
38468         * lib/exitfail.h: Likewise.
38469         * lib/expl.c: Likewise.
38470         * lib/fatal-signal.c: Likewise.
38471         * lib/fatal-signal.h: Likewise.
38472         * lib/fbufmode.c: Likewise.
38473         * lib/fbufmode.h: Likewise.
38474         * lib/fchdir.c: Likewise.
38475         * lib/fchmodat.c: Likewise.
38476         * lib/fchownat.c: Likewise.
38477         * lib/fcntl--.h: Likewise.
38478         * lib/fcntl-safer.h: Likewise.
38479         * lib/fcntl.in.h: Likewise.
38480         * lib/fd-safer.c: Likewise.
38481         * lib/fflush.c: Likewise.
38482         * lib/file-has-acl.c: Likewise.
38483         * lib/file-set.c: Likewise.
38484         * lib/file-type.c: Likewise.
38485         * lib/file-type.h: Likewise.
38486         * lib/fileblocks.c: Likewise.
38487         * lib/filemode.c: Likewise.
38488         * lib/filemode.h: Likewise.
38489         * lib/filename.h: Likewise.
38490         * lib/filenamecat.c: Likewise.
38491         * lib/filenamecat.h: Likewise.
38492         * lib/findprog.c: Likewise.
38493         * lib/findprog.h: Likewise.
38494         * lib/float.in.h: Likewise.
38495         * lib/floor.c: Likewise.
38496         * lib/floorf.c: Likewise.
38497         * lib/floorl.c: Likewise.
38498         * lib/fopen-safer.c: Likewise.
38499         * lib/fopen.c: Likewise.
38500         * lib/fpending.c: Likewise.
38501         * lib/fpending.h: Likewise.
38502         * lib/fprintf.c: Likewise.
38503         * lib/fprintftime.h: Likewise.
38504         * lib/fpucw.h: Likewise.
38505         * lib/fpurge.c: Likewise.
38506         * lib/fpurge.h: Likewise.
38507         * lib/freadable.c: Likewise.
38508         * lib/freadable.h: Likewise.
38509         * lib/freadahead.c: Likewise.
38510         * lib/freadahead.h: Likewise.
38511         * lib/freading.c: Likewise.
38512         * lib/freading.h: Likewise.
38513         * lib/free.c: Likewise.
38514         * lib/freopen.c: Likewise.
38515         * lib/frexp.c: Likewise.
38516         * lib/frexpl.c: Likewise.
38517         * lib/fseek.c: Likewise.
38518         * lib/fseterr.c: Likewise.
38519         * lib/fseterr.h: Likewise.
38520         * lib/fstatat.c: Likewise.
38521         * lib/fstrcmp.c: Likewise.
38522         * lib/fstrcmp.h: Likewise.
38523         * lib/fsusage.c: Likewise.
38524         * lib/fsusage.h: Likewise.
38525         * lib/ftell.c: Likewise.
38526         * lib/ftello.c: Likewise.
38527         * lib/fts-cycle.c: Likewise.
38528         * lib/fts.c: Likewise.
38529         * lib/fts_.h: Likewise.
38530         * lib/full-read.c: Likewise.
38531         * lib/full-read.h: Likewise.
38532         * lib/full-write.c: Likewise.
38533         * lib/full-write.h: Likewise.
38534         * lib/fwritable.c: Likewise.
38535         * lib/fwritable.h: Likewise.
38536         * lib/fwriteerror.c: Likewise.
38537         * lib/fwriteerror.h: Likewise.
38538         * lib/fwriting.c: Likewise.
38539         * lib/fwriting.h: Likewise.
38540         * lib/gcd.c: Likewise.
38541         * lib/gcd.h: Likewise.
38542         * lib/getcwd.c: Likewise.
38543         * lib/getdate.h: Likewise.
38544         * lib/getdate.y: Likewise.
38545         * lib/getdomainname.c: Likewise.
38546         * lib/getdomainname.h: Likewise.
38547         * lib/getgroups.c: Likewise.
38548         * lib/gethostname.c: Likewise.
38549         * lib/gethrxtime.c: Likewise.
38550         * lib/gethrxtime.h: Likewise.
38551         * lib/getloadavg.c: Likewise.
38552         * lib/getndelim2.c: Likewise.
38553         * lib/getndelim2.h: Likewise.
38554         * lib/getnline.c: Likewise.
38555         * lib/getnline.h: Likewise.
38556         * lib/getopt.c: Likewise.
38557         * lib/getopt.in.h: Likewise.
38558         * lib/getopt1.c: Likewise.
38559         * lib/getopt_int.h: Likewise.
38560         * lib/getpagesize.h: Likewise.
38561         * lib/getsubopt.c: Likewise.
38562         * lib/gettime.c: Likewise.
38563         * lib/getugroups.c: Likewise.
38564         * lib/getugroups.h: Likewise.
38565         * lib/getusershell.c: Likewise.
38566         * lib/gl_anyavltree_list1.h: Likewise.
38567         * lib/gl_anyavltree_list2.h: Likewise.
38568         * lib/gl_anyhash_list1.h: Likewise.
38569         * lib/gl_anyhash_list2.h: Likewise.
38570         * lib/gl_anylinked_list1.h: Likewise.
38571         * lib/gl_anylinked_list2.h: Likewise.
38572         * lib/gl_anyrbtree_list1.h: Likewise.
38573         * lib/gl_anyrbtree_list2.h: Likewise.
38574         * lib/gl_anytree_list1.h: Likewise.
38575         * lib/gl_anytree_list2.h: Likewise.
38576         * lib/gl_anytree_oset.h: Likewise.
38577         * lib/gl_anytreehash_list1.h: Likewise.
38578         * lib/gl_anytreehash_list2.h: Likewise.
38579         * lib/gl_array_list.c: Likewise.
38580         * lib/gl_array_list.h: Likewise.
38581         * lib/gl_array_oset.c: Likewise.
38582         * lib/gl_array_oset.h: Likewise.
38583         * lib/gl_avltree_list.c: Likewise.
38584         * lib/gl_avltree_list.h: Likewise.
38585         * lib/gl_avltree_oset.c: Likewise.
38586         * lib/gl_avltree_oset.h: Likewise.
38587         * lib/gl_avltreehash_list.c: Likewise.
38588         * lib/gl_avltreehash_list.h: Likewise.
38589         * lib/gl_carray_list.c: Likewise.
38590         * lib/gl_carray_list.h: Likewise.
38591         * lib/gl_linked_list.c: Likewise.
38592         * lib/gl_linked_list.h: Likewise.
38593         * lib/gl_linkedhash_list.c: Likewise.
38594         * lib/gl_linkedhash_list.h: Likewise.
38595         * lib/gl_list.c: Likewise.
38596         * lib/gl_list.h: Likewise.
38597         * lib/gl_oset.c: Likewise.
38598         * lib/gl_oset.h: Likewise.
38599         * lib/gl_rbtree_list.c: Likewise.
38600         * lib/gl_rbtree_list.h: Likewise.
38601         * lib/gl_rbtree_oset.c: Likewise.
38602         * lib/gl_rbtree_oset.h: Likewise.
38603         * lib/gl_rbtreehash_list.c: Likewise.
38604         * lib/gl_rbtreehash_list.h: Likewise.
38605         * lib/gl_sublist.c: Likewise.
38606         * lib/gl_sublist.h: Likewise.
38607         * lib/group-member.c: Likewise.
38608         * lib/group-member.h: Likewise.
38609         * lib/hard-locale.c: Likewise.
38610         * lib/hard-locale.h: Likewise.
38611         * lib/hash-pjw.c: Likewise.
38612         * lib/hash-pjw.h: Likewise.
38613         * lib/hash-triple.c: Likewise.
38614         * lib/hash.c: Likewise.
38615         * lib/hash.h: Likewise.
38616         * lib/human.c: Likewise.
38617         * lib/human.h: Likewise.
38618         * lib/i-ring.c: Likewise.
38619         * lib/i-ring.h: Likewise.
38620         * lib/idcache.c: Likewise.
38621         * lib/imaxabs.c: Likewise.
38622         * lib/imaxdiv.c: Likewise.
38623         * lib/inet_pton.c: Likewise.
38624         * lib/inet_pton.h: Likewise.
38625         * lib/intprops.h: Likewise.
38626         * lib/inttostr.c: Likewise.
38627         * lib/inttostr.h: Likewise.
38628         * lib/inttypes.in.h: Likewise.
38629         * lib/isapipe.c: Likewise.
38630         * lib/isdir.c: Likewise.
38631         * lib/isnan.c: Likewise.
38632         * lib/isnan.h: Likewise.
38633         * lib/isnanf.c: Likewise.
38634         * lib/isnanf.h: Likewise.
38635         * lib/isnanl-nolibm.h: Likewise.
38636         * lib/isnanl.c: Likewise.
38637         * lib/isnanl.h: Likewise.
38638         * lib/javacomp.c: Likewise.
38639         * lib/javacomp.h: Likewise.
38640         * lib/javaexec.c: Likewise.
38641         * lib/javaexec.h: Likewise.
38642         * lib/javaversion.c: Likewise.
38643         * lib/javaversion.h: Likewise.
38644         * lib/javaversion.java: Likewise.
38645         * lib/lbrkprop.h: Likewise.
38646         * lib/lchmod.h: Likewise.
38647         * lib/lchown.c: Likewise.
38648         * lib/ldexpl.c: Likewise.
38649         * lib/linebreak.c: Likewise.
38650         * lib/linebreak.h: Likewise.
38651         * lib/linebuffer.c: Likewise.
38652         * lib/linebuffer.h: Likewise.
38653         * lib/locale.in.h: Likewise.
38654         * lib/logl.c: Likewise.
38655         * lib/long-options.c: Likewise.
38656         * lib/long-options.h: Likewise.
38657         * lib/lstat.c: Likewise.
38658         * lib/lstat.h: Likewise.
38659         * lib/math.in.h: Likewise.
38660         * lib/mbchar.c: Likewise.
38661         * lib/mbchar.h: Likewise.
38662         * lib/mbfile.h: Likewise.
38663         * lib/mbiter.h: Likewise.
38664         * lib/mbscasecmp.c: Likewise.
38665         * lib/mbscasestr.c: Likewise.
38666         * lib/mbschr.c: Likewise.
38667         * lib/mbscspn.c: Likewise.
38668         * lib/mbslen.c: Likewise.
38669         * lib/mbsncasecmp.c: Likewise.
38670         * lib/mbsnlen.c: Likewise.
38671         * lib/mbspbrk.c: Likewise.
38672         * lib/mbspcasecmp.c: Likewise.
38673         * lib/mbsrchr.c: Likewise.
38674         * lib/mbssep.c: Likewise.
38675         * lib/mbsspn.c: Likewise.
38676         * lib/mbsstr.c: Likewise.
38677         * lib/mbstok_r.c: Likewise.
38678         * lib/mbswidth.c: Likewise.
38679         * lib/mbswidth.h: Likewise.
38680         * lib/mbuiter.h: Likewise.
38681         * lib/memcasecmp.c: Likewise.
38682         * lib/memcasecmp.h: Likewise.
38683         * lib/memchr.c: Likewise.
38684         * lib/memcmp.c: Likewise.
38685         * lib/memcoll.c: Likewise.
38686         * lib/memcoll.h: Likewise.
38687         * lib/memcpy.c: Likewise.
38688         * lib/memrchr.c: Likewise.
38689         * lib/mkancesdirs.c: Likewise.
38690         * lib/mkdir-p.c: Likewise.
38691         * lib/mkdir-p.h: Likewise.
38692         * lib/mkdir.c: Likewise.
38693         * lib/mkdirat.c: Likewise.
38694         * lib/mkdtemp.c: Likewise.
38695         * lib/mkstemp-safer.c: Likewise.
38696         * lib/mkstemp.c: Likewise.
38697         * lib/modechange.c: Likewise.
38698         * lib/modechange.h: Likewise.
38699         * lib/mountlist.c: Likewise.
38700         * lib/mountlist.h: Likewise.
38701         * lib/mpsort.c: Likewise.
38702         * lib/nanosleep.c: Likewise.
38703         * lib/obstack.c: Likewise.
38704         * lib/obstack.h: Likewise.
38705         * lib/open-safer.c: Likewise.
38706         * lib/open.c: Likewise.
38707         * lib/openat-die.c: Likewise.
38708         * lib/openat-priv.h: Likewise.
38709         * lib/openat-proc.c: Likewise.
38710         * lib/openat.c: Likewise.
38711         * lib/openat.h: Likewise.
38712         * lib/pagealign_alloc.c: Likewise.
38713         * lib/pagealign_alloc.h: Likewise.
38714         * lib/physmem.c: Likewise.
38715         * lib/physmem.h: Likewise.
38716         * lib/pipe-safer.c: Likewise.
38717         * lib/pipe.c: Likewise.
38718         * lib/pipe.h: Likewise.
38719         * lib/posixtm.c: Likewise.
38720         * lib/posixtm.h: Likewise.
38721         * lib/posixver.c: Likewise.
38722         * lib/printf-frexp.c: Likewise.
38723         * lib/printf-frexp.h: Likewise.
38724         * lib/printf-frexpl.c: Likewise.
38725         * lib/printf-frexpl.h: Likewise.
38726         * lib/printf.c: Likewise.
38727         * lib/progname.c: Likewise.
38728         * lib/progname.h: Likewise.
38729         * lib/progreloc.c: Likewise.
38730         * lib/putenv.c: Likewise.
38731         * lib/quote.c: Likewise.
38732         * lib/quote.h: Likewise.
38733         * lib/quotearg.c: Likewise.
38734         * lib/quotearg.h: Likewise.
38735         * lib/raise.c: Likewise.
38736         * lib/readline.c: Likewise.
38737         * lib/readline.h: Likewise.
38738         * lib/readlink.c: Likewise.
38739         * lib/readtokens.c: Likewise.
38740         * lib/readtokens.h: Likewise.
38741         * lib/readtokens0.c: Likewise.
38742         * lib/readtokens0.h: Likewise.
38743         * lib/readutmp.c: Likewise.
38744         * lib/readutmp.h: Likewise.
38745         * lib/realloc.c: Likewise.
38746         * lib/relocwrapper.c: Likewise.
38747         * lib/rename-dest-slash.c: Likewise.
38748         * lib/rename.c: Likewise.
38749         * lib/rmdir.c: Likewise.
38750         * lib/rpmatch.c: Likewise.
38751         * lib/safe-read.c: Likewise.
38752         * lib/safe-read.h: Likewise.
38753         * lib/safe-write.c: Likewise.
38754         * lib/safe-write.h: Likewise.
38755         * lib/same-inode.h: Likewise.
38756         * lib/same.c: Likewise.
38757         * lib/same.h: Likewise.
38758         * lib/save-cwd.c: Likewise.
38759         * lib/save-cwd.h: Likewise.
38760         * lib/savedir.c: Likewise.
38761         * lib/savedir.h: Likewise.
38762         * lib/savewd.c: Likewise.
38763         * lib/savewd.h: Likewise.
38764         * lib/search.in.h: Likewise.
38765         * lib/setenv.c: Likewise.
38766         * lib/setenv.h: Likewise.
38767         * lib/settime.c: Likewise.
38768         * lib/sh-quote.c: Likewise.
38769         * lib/sh-quote.h: Likewise.
38770         * lib/sig2str.c: Likewise.
38771         * lib/sig2str.h: Likewise.
38772         * lib/signal.in.h: Likewise.
38773         * lib/signbitd.c: Likewise.
38774         * lib/signbitf.c: Likewise.
38775         * lib/signbitl.c: Likewise.
38776         * lib/sigprocmask.c: Likewise.
38777         * lib/sincosl.c: Likewise.
38778         * lib/sleep.c: Likewise.
38779         * lib/sprintf.c: Likewise.
38780         * lib/sqrtl.c: Likewise.
38781         * lib/stat-time.h: Likewise.
38782         * lib/stdio--.h: Likewise.
38783         * lib/stdio-safer.h: Likewise.
38784         * lib/stdlib--.h: Likewise.
38785         * lib/stdlib-safer.h: Likewise.
38786         * lib/stdlib.in.h: Likewise.
38787         * lib/stpcpy.c: Likewise.
38788         * lib/stpncpy.c: Likewise.
38789         * lib/strchrnul.c: Likewise.
38790         * lib/strcspn.c: Likewise.
38791         * lib/strerror.c: Likewise.
38792         * lib/strftime.c: Likewise.
38793         * lib/strftime.h: Likewise.
38794         * lib/striconveh.c: Likewise.
38795         * lib/striconveh.h: Likewise.
38796         * lib/striconveha.c: Likewise.
38797         * lib/striconveha.h: Likewise.
38798         * lib/stripslash.c: Likewise.
38799         * lib/strnlen1.c: Likewise.
38800         * lib/strnlen1.h: Likewise.
38801         * lib/strtod.c: Likewise.
38802         * lib/strtoimax.c: Likewise.
38803         * lib/strtok_r.c: Likewise.
38804         * lib/strtol.c: Likewise.
38805         * lib/strtoll.c: Likewise.
38806         * lib/strtoul.c: Likewise.
38807         * lib/strtoull.c: Likewise.
38808         * lib/sysexits.in.h: Likewise.
38809         * lib/tempname.c: Likewise.
38810         * lib/tempname.h: Likewise.
38811         * lib/timespec.h: Likewise.
38812         * lib/tls.c: Likewise.
38813         * lib/tls.h: Likewise.
38814         * lib/tmpdir.c: Likewise.
38815         * lib/tmpdir.h: Likewise.
38816         * lib/tmpfile-safer.c: Likewise.
38817         * lib/tmpfile.c: Likewise.
38818         * lib/trigl.c: Likewise.
38819         * lib/trigl.h: Likewise.
38820         * lib/trim.c: Likewise.
38821         * lib/trim.h: Likewise.
38822         * lib/trunc.c: Likewise.
38823         * lib/truncf.c: Likewise.
38824         * lib/truncl.c: Likewise.
38825         * lib/tsearch.c: Likewise.
38826         * lib/unicodeio.c: Likewise.
38827         * lib/unicodeio.h: Likewise.
38828         * lib/unistd--.h: Likewise.
38829         * lib/unistd-safer.h: Likewise.
38830         * lib/unistdio/ulc-fprintf.c: Likewise.
38831         * lib/unistdio/ulc-vfprintf.c: Likewise.
38832         * lib/unlinkdir.c: Likewise.
38833         * lib/unlinkdir.h: Likewise.
38834         * lib/unlocked-io.h: Likewise.
38835         * lib/unsetenv.c: Likewise.
38836         * lib/userspec.c: Likewise.
38837         * lib/utime.c: Likewise.
38838         * lib/utimecmp.c: Likewise.
38839         * lib/utimecmp.h: Likewise.
38840         * lib/utimens.c: Likewise.
38841         * lib/verify.h: Likewise.
38842         * lib/verror.c: Likewise.
38843         * lib/verror.h: Likewise.
38844         * lib/version-etc-fsf.c: Likewise.
38845         * lib/version-etc.c: Likewise.
38846         * lib/version-etc.h: Likewise.
38847         * lib/vfprintf.c: Likewise.
38848         * lib/vprintf.c: Likewise.
38849         * lib/vsprintf.c: Likewise.
38850         * lib/w32spawn.h: Likewise.
38851         * lib/wait-process.c: Likewise.
38852         * lib/wait-process.h: Likewise.
38853         * lib/wcwidth.c: Likewise.
38854         * lib/write-any-file.c: Likewise.
38855         * lib/xalloc-die.c: Likewise.
38856         * lib/xalloc.h: Likewise.
38857         * lib/xasprintf.c: Likewise.
38858         * lib/xgetcwd.c: Likewise.
38859         * lib/xgetcwd.h: Likewise.
38860         * lib/xgetdomainname.c: Likewise.
38861         * lib/xgetdomainname.h: Likewise.
38862         * lib/xgethostname.c: Likewise.
38863         * lib/xmalloc.c: Likewise.
38864         * lib/xmalloca.c: Likewise.
38865         * lib/xmalloca.h: Likewise.
38866         * lib/xmemcoll.c: Likewise.
38867         * lib/xnanosleep.c: Likewise.
38868         * lib/xreadlink.c: Likewise.
38869         * lib/xreadlink.h: Likewise.
38870         * lib/xsetenv.c: Likewise.
38871         * lib/xsetenv.h: Likewise.
38872         * lib/xstriconv.c: Likewise.
38873         * lib/xstriconv.h: Likewise.
38874         * lib/xstrndup.c: Likewise.
38875         * lib/xstrndup.h: Likewise.
38876         * lib/xstrtod.c: Likewise.
38877         * lib/xstrtod.h: Likewise.
38878         * lib/xstrtol-error.c: Likewise.
38879         * lib/xstrtol.c: Likewise.
38880         * lib/xstrtol.h: Likewise.
38881         * lib/xtime.h: Likewise.
38882         * lib/xvasprintf.c: Likewise.
38883         * lib/xvasprintf.h: Likewise.
38884         * lib/yesno.c: Likewise.
38885         * lib/yesno.h: Likewise.
38886         * posix-modules: Likewise.
38887         * tests/test-alloca-opt.c: Likewise.
38888         * tests/test-arcfour.c: Likewise.
38889         * tests/test-arctwo.c: Likewise.
38890         * tests/test-argmatch.c: Likewise.
38891         * tests/test-argp-2.sh: Likewise.
38892         * tests/test-argp.c: Likewise.
38893         * tests/test-arpa_inet.c: Likewise.
38894         * tests/test-array_list.c: Likewise.
38895         * tests/test-array_oset.c: Likewise.
38896         * tests/test-atexit.c: Likewise.
38897         * tests/test-avltree_list.c: Likewise.
38898         * tests/test-avltree_oset.c: Likewise.
38899         * tests/test-avltreehash_list.c: Likewise.
38900         * tests/test-base64.c: Likewise.
38901         * tests/test-binary-io.c: Likewise.
38902         * tests/test-byteswap.c: Likewise.
38903         * tests/test-c-ctype.c: Likewise.
38904         * tests/test-c-strcasecmp.c: Likewise.
38905         * tests/test-c-strcasestr.c: Likewise.
38906         * tests/test-c-strncasecmp.c: Likewise.
38907         * tests/test-c-strstr.c: Likewise.
38908         * tests/test-canonicalize-lgpl.c: Likewise.
38909         * tests/test-canonicalize.c: Likewise.
38910         * tests/test-carray_list.c: Likewise.
38911         * tests/test-ceilf.c: Likewise.
38912         * tests/test-ceill.c: Likewise.
38913         * tests/test-count-one-bits.c: Likewise.
38914         * tests/test-crc.c: Likewise.
38915         * tests/test-dirname.c: Likewise.
38916         * tests/test-fbufmode.c: Likewise.
38917         * tests/test-fcntl.c: Likewise.
38918         * tests/test-fflush.c: Likewise.
38919         * tests/test-floorf.c: Likewise.
38920         * tests/test-floorl.c: Likewise.
38921         * tests/test-fopen.c: Likewise.
38922         * tests/test-fprintf-posix.c: Likewise.
38923         * tests/test-fprintf-posix.h: Likewise.
38924         * tests/test-fpurge.c: Likewise.
38925         * tests/test-freadable.c: Likewise.
38926         * tests/test-freadahead.c: Likewise.
38927         * tests/test-freading.c: Likewise.
38928         * tests/test-freopen.c: Likewise.
38929         * tests/test-frexp.c: Likewise.
38930         * tests/test-frexpl.c: Likewise.
38931         * tests/test-fseek.c: Likewise.
38932         * tests/test-fseeko.c: Likewise.
38933         * tests/test-fseterr.c: Likewise.
38934         * tests/test-fstrcmp.c: Likewise.
38935         * tests/test-ftell.c: Likewise.
38936         * tests/test-ftello.c: Likewise.
38937         * tests/test-fwritable.c: Likewise.
38938         * tests/test-fwriting.c: Likewise.
38939         * tests/test-getaddrinfo.c: Likewise.
38940         * tests/test-getpass.c: Likewise.
38941         * tests/test-gettimeofday.c: Likewise.
38942         * tests/test-hmac-md5.c: Likewise.
38943         * tests/test-hmac-sha1.c: Likewise.
38944         * tests/test-iconv.c: Likewise.
38945         * tests/test-iconvme.c: Likewise.
38946         * tests/test-inttypes.c: Likewise.
38947         * tests/test-isnan.c: Likewise.
38948         * tests/test-isnanf.c: Likewise.
38949         * tests/test-isnanl-nolibm.c: Likewise.
38950         * tests/test-isnanl.c: Likewise.
38951         * tests/test-isnanl.h: Likewise.
38952         * tests/test-ldexpl.c: Likewise.
38953         * tests/test-linked_list.c: Likewise.
38954         * tests/test-linkedhash_list.c: Likewise.
38955         * tests/test-locale.c: Likewise.
38956         * tests/test-localename.c: Likewise.
38957         * tests/test-lock.c: Likewise.
38958         * tests/test-lseek.c: Likewise.
38959         * tests/test-malloca.c: Likewise.
38960         * tests/test-math.c: Likewise.
38961         * tests/test-mbscasecmp.c: Likewise.
38962         * tests/test-mbscasestr1.c: Likewise.
38963         * tests/test-mbscasestr2.c: Likewise.
38964         * tests/test-mbscasestr3.c: Likewise.
38965         * tests/test-mbscasestr4.c: Likewise.
38966         * tests/test-mbschr.c: Likewise.
38967         * tests/test-mbscspn.c: Likewise.
38968         * tests/test-mbsncasecmp.c: Likewise.
38969         * tests/test-mbspbrk.c: Likewise.
38970         * tests/test-mbspcasecmp.c: Likewise.
38971         * tests/test-mbsrchr.c: Likewise.
38972         * tests/test-mbsspn.c: Likewise.
38973         * tests/test-mbsstr1.c: Likewise.
38974         * tests/test-mbsstr2.c: Likewise.
38975         * tests/test-mbsstr3.c: Likewise.
38976         * tests/test-md5.c: Likewise.
38977         * tests/test-memmem.c: Likewise.
38978         * tests/test-netinet_in.c: Likewise.
38979         * tests/test-open.c: Likewise.
38980         * tests/test-printf-frexp.c: Likewise.
38981         * tests/test-printf-frexpl.c: Likewise.
38982         * tests/test-printf-posix.c: Likewise.
38983         * tests/test-printf-posix.h: Likewise.
38984         * tests/test-rbtree_list.c: Likewise.
38985         * tests/test-rbtree_oset.c: Likewise.
38986         * tests/test-rbtreehash_list.c: Likewise.
38987         * tests/test-read-file.c: Likewise.
38988         * tests/test-rijndael.c: Likewise.
38989         * tests/test-search.c: Likewise.
38990         * tests/test-signbit.c: Likewise.
38991         * tests/test-sleep.c: Likewise.
38992         * tests/test-snprintf-posix.c: Likewise.
38993         * tests/test-snprintf-posix.h: Likewise.
38994         * tests/test-snprintf.c: Likewise.
38995         * tests/test-sprintf-posix.c: Likewise.
38996         * tests/test-sprintf-posix.h: Likewise.
38997         * tests/test-stat-time.c: Likewise.
38998         * tests/test-stdbool.c: Likewise.
38999         * tests/test-stdint.c: Likewise.
39000         * tests/test-stdio.c: Likewise.
39001         * tests/test-stdlib.c: Likewise.
39002         * tests/test-stpncpy.c: Likewise.
39003         * tests/test-strcasestr.c: Likewise.
39004         * tests/test-striconv.c: Likewise.
39005         * tests/test-striconveh.c: Likewise.
39006         * tests/test-striconveha.c: Likewise.
39007         * tests/test-string.c: Likewise.
39008         * tests/test-sys_select.c: Likewise.
39009         * tests/test-sys_socket.c: Likewise.
39010         * tests/test-sys_stat.c: Likewise.
39011         * tests/test-sys_time.c: Likewise.
39012         * tests/test-sysexits.c: Likewise.
39013         * tests/test-time.c: Likewise.
39014         * tests/test-tls.c: Likewise.
39015         * tests/test-trunc.c: Likewise.
39016         * tests/test-truncf.c: Likewise.
39017         * tests/test-truncl.c: Likewise.
39018         * tests/test-unistd.c: Likewise.
39019         * tests/test-vasnprintf-posix.c: Likewise.
39020         * tests/test-vasnprintf-posix2.c: Likewise.
39021         * tests/test-vasnprintf.c: Likewise.
39022         * tests/test-vasprintf-posix.c: Likewise.
39023         * tests/test-vasprintf.c: Likewise.
39024         * tests/test-verify.c: Likewise.
39025         * tests/test-vfprintf-posix.c: Likewise.
39026         * tests/test-vprintf-posix.c: Likewise.
39027         * tests/test-vsnprintf-posix.c: Likewise.
39028         * tests/test-vsnprintf.c: Likewise.
39029         * tests/test-vsprintf-posix.c: Likewise.
39030         * tests/test-wchar.c: Likewise.
39031         * tests/test-wctype.c: Likewise.
39032         * tests/test-wcwidth.c: Likewise.
39033         * tests/test-xstrtol.c: Likewise.
39034         * tests/test-xvasprintf.c: Likewise.
39035         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39036         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39037         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39038         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39039         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39040         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39041         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39042         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39043         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39044         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39045         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39046         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39047         * tests/uniname/test-uninames.c: Likewise.
39048         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39049         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
39050         * tests/unistdio/test-u16-printf1.h: Likewise.
39051         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39052         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39053         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39054         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39055         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39056         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39057         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39058         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
39059         * tests/unistdio/test-u32-printf1.h: Likewise.
39060         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39061         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39062         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39063         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39064         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39065         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39066         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39067         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
39068         * tests/unistdio/test-u8-printf1.h: Likewise.
39069         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39070         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39071         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39072         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39073         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39074         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39075         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39076         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
39077         * tests/unistdio/test-ulc-printf1.h: Likewise.
39078         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39079         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39080         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39081         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39082         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39083         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39084         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39085         * tests/uniwidth/test-u16-width.c: Likewise.
39086         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39087         * tests/uniwidth/test-u32-width.c: Likewise.
39088         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39089         * tests/uniwidth/test-u8-width.c: Likewise.
39090         * tests/uniwidth/test-uc_width.c: Likewise.
39091         * config/srclist-update: Likewise.
39092         (fixlicense): Update to GPLv3+.
39093
39094         Change copyright notice from LGPLv2.1+ to LGPLv3+.
39095         * tests/test-tsearch.c: Change copyright notice.
39096
39097         Change copyright notice from LGPLv2.0+ to LGPLv3+.
39098         * lib/c-strcaseeq.h: Change copyright notice.
39099         * lib/streq.h: Likewise.
39100         * lib/uniconv.h: Likewise.
39101         * lib/uniconv/u-conv-from-enc.h: Likewise.
39102         * lib/uniconv/u-conv-to-enc.h: Likewise.
39103         * lib/uniconv/u-strconv-from-enc.h: Likewise.
39104         * lib/uniconv/u-strconv-to-enc.h: Likewise.
39105         * lib/uniconv/u16-conv-from-enc.c: Likewise.
39106         * lib/uniconv/u16-conv-to-enc.c: Likewise.
39107         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
39108         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
39109         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
39110         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
39111         * lib/uniconv/u32-conv-from-enc.c: Likewise.
39112         * lib/uniconv/u32-conv-to-enc.c: Likewise.
39113         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
39114         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
39115         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39116         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39117         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39118         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39119         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39120         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39121         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39122         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39123         * lib/uniname.h: Likewise.
39124         * lib/uniname/uniname.c: Likewise.
39125         * lib/unistdio.h: Likewise.
39126         * lib/unistdio/u-asnprintf.h: Likewise.
39127         * lib/unistdio/u-asprintf.h: Likewise.
39128         * lib/unistdio/u-printf-args.c: Likewise.
39129         * lib/unistdio/u-printf-args.h: Likewise.
39130         * lib/unistdio/u-printf-parse.h: Likewise.
39131         * lib/unistdio/u-snprintf.h: Likewise.
39132         * lib/unistdio/u-sprintf.h: Likewise.
39133         * lib/unistdio/u-vasprintf.h: Likewise.
39134         * lib/unistdio/u-vsnprintf.h: Likewise.
39135         * lib/unistdio/u-vsprintf.h: Likewise.
39136         * lib/unistdio/u16-asnprintf.c: Likewise.
39137         * lib/unistdio/u16-asprintf.c: Likewise.
39138         * lib/unistdio/u16-printf-parse.c: Likewise.
39139         * lib/unistdio/u16-snprintf.c: Likewise.
39140         * lib/unistdio/u16-sprintf.c: Likewise.
39141         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39142         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39143         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39144         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39145         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39146         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39147         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39148         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39149         * lib/unistdio/u16-vasnprintf.c: Likewise.
39150         * lib/unistdio/u16-vasprintf.c: Likewise.
39151         * lib/unistdio/u16-vsnprintf.c: Likewise.
39152         * lib/unistdio/u16-vsprintf.c: Likewise.
39153         * lib/unistdio/u32-asnprintf.c: Likewise.
39154         * lib/unistdio/u32-asprintf.c: Likewise.
39155         * lib/unistdio/u32-printf-parse.c: Likewise.
39156         * lib/unistdio/u32-snprintf.c: Likewise.
39157         * lib/unistdio/u32-sprintf.c: Likewise.
39158         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39159         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39160         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39161         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39162         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39163         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39164         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39165         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39166         * lib/unistdio/u32-vasnprintf.c: Likewise.
39167         * lib/unistdio/u32-vasprintf.c: Likewise.
39168         * lib/unistdio/u32-vsnprintf.c: Likewise.
39169         * lib/unistdio/u32-vsprintf.c: Likewise.
39170         * lib/unistdio/u8-asnprintf.c: Likewise.
39171         * lib/unistdio/u8-asprintf.c: Likewise.
39172         * lib/unistdio/u8-printf-parse.c: Likewise.
39173         * lib/unistdio/u8-snprintf.c: Likewise.
39174         * lib/unistdio/u8-sprintf.c: Likewise.
39175         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39176         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39177         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39178         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39179         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39180         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39181         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39182         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39183         * lib/unistdio/u8-vasnprintf.c: Likewise.
39184         * lib/unistdio/u8-vasprintf.c: Likewise.
39185         * lib/unistdio/u8-vsnprintf.c: Likewise.
39186         * lib/unistdio/u8-vsprintf.c: Likewise.
39187         * lib/unistdio/ulc-asnprintf.c: Likewise.
39188         * lib/unistdio/ulc-asprintf.c: Likewise.
39189         * lib/unistdio/ulc-printf-parse.c: Likewise.
39190         * lib/unistdio/ulc-snprintf.c: Likewise.
39191         * lib/unistdio/ulc-sprintf.c: Likewise.
39192         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39193         * lib/unistdio/ulc-vasprintf.c: Likewise.
39194         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39195         * lib/unistdio/ulc-vsprintf.c: Likewise.
39196         * lib/unistr.h: Likewise.
39197         * lib/unistr/u-cpy-alloc.h: Likewise.
39198         * lib/unistr/u-cpy.h: Likewise.
39199         * lib/unistr/u-endswith.h: Likewise.
39200         * lib/unistr/u-move.h: Likewise.
39201         * lib/unistr/u-set.h: Likewise.
39202         * lib/unistr/u-startswith.h: Likewise.
39203         * lib/unistr/u-stpcpy.h: Likewise.
39204         * lib/unistr/u-stpncpy.h: Likewise.
39205         * lib/unistr/u-strcat.h: Likewise.
39206         * lib/unistr/u-strcpy.h: Likewise.
39207         * lib/unistr/u-strcspn.h: Likewise.
39208         * lib/unistr/u-strdup.h: Likewise.
39209         * lib/unistr/u-strlen.h: Likewise.
39210         * lib/unistr/u-strncat.h: Likewise.
39211         * lib/unistr/u-strncpy.h: Likewise.
39212         * lib/unistr/u-strnlen.h: Likewise.
39213         * lib/unistr/u-strpbrk.h: Likewise.
39214         * lib/unistr/u-strspn.h: Likewise.
39215         * lib/unistr/u-strstr.h: Likewise.
39216         * lib/unistr/u-strtok.h: Likewise.
39217         * lib/unistr/u16-check.c: Likewise.
39218         * lib/unistr/u16-chr.c: Likewise.
39219         * lib/unistr/u16-cmp.c: Likewise.
39220         * lib/unistr/u16-cpy-alloc.c: Likewise.
39221         * lib/unistr/u16-cpy.c: Likewise.
39222         * lib/unistr/u16-endswith.c: Likewise.
39223         * lib/unistr/u16-mblen.c: Likewise.
39224         * lib/unistr/u16-mbsnlen.c: Likewise.
39225         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39226         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39227         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39228         * lib/unistr/u16-mbtouc.c: Likewise.
39229         * lib/unistr/u16-mbtoucr.c: Likewise.
39230         * lib/unistr/u16-move.c: Likewise.
39231         * lib/unistr/u16-next.c: Likewise.
39232         * lib/unistr/u16-prev.c: Likewise.
39233         * lib/unistr/u16-set.c: Likewise.
39234         * lib/unistr/u16-startswith.c: Likewise.
39235         * lib/unistr/u16-stpcpy.c: Likewise.
39236         * lib/unistr/u16-stpncpy.c: Likewise.
39237         * lib/unistr/u16-strcat.c: Likewise.
39238         * lib/unistr/u16-strchr.c: Likewise.
39239         * lib/unistr/u16-strcmp.c: Likewise.
39240         * lib/unistr/u16-strcpy.c: Likewise.
39241         * lib/unistr/u16-strcspn.c: Likewise.
39242         * lib/unistr/u16-strdup.c: Likewise.
39243         * lib/unistr/u16-strlen.c: Likewise.
39244         * lib/unistr/u16-strmblen.c: Likewise.
39245         * lib/unistr/u16-strmbtouc.c: Likewise.
39246         * lib/unistr/u16-strncat.c: Likewise.
39247         * lib/unistr/u16-strncmp.c: Likewise.
39248         * lib/unistr/u16-strncpy.c: Likewise.
39249         * lib/unistr/u16-strnlen.c: Likewise.
39250         * lib/unistr/u16-strpbrk.c: Likewise.
39251         * lib/unistr/u16-strrchr.c: Likewise.
39252         * lib/unistr/u16-strspn.c: Likewise.
39253         * lib/unistr/u16-strstr.c: Likewise.
39254         * lib/unistr/u16-strtok.c: Likewise.
39255         * lib/unistr/u16-to-u32.c: Likewise.
39256         * lib/unistr/u16-to-u8.c: Likewise.
39257         * lib/unistr/u16-uctomb-aux.c: Likewise.
39258         * lib/unistr/u16-uctomb.c: Likewise.
39259         * lib/unistr/u32-check.c: Likewise.
39260         * lib/unistr/u32-chr.c: Likewise.
39261         * lib/unistr/u32-cmp.c: Likewise.
39262         * lib/unistr/u32-cpy-alloc.c: Likewise.
39263         * lib/unistr/u32-cpy.c: Likewise.
39264         * lib/unistr/u32-endswith.c: Likewise.
39265         * lib/unistr/u32-mblen.c: Likewise.
39266         * lib/unistr/u32-mbsnlen.c: Likewise.
39267         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39268         * lib/unistr/u32-mbtouc.c: Likewise.
39269         * lib/unistr/u32-mbtoucr.c: Likewise.
39270         * lib/unistr/u32-move.c: Likewise.
39271         * lib/unistr/u32-next.c: Likewise.
39272         * lib/unistr/u32-prev.c: Likewise.
39273         * lib/unistr/u32-set.c: Likewise.
39274         * lib/unistr/u32-startswith.c: Likewise.
39275         * lib/unistr/u32-stpcpy.c: Likewise.
39276         * lib/unistr/u32-stpncpy.c: Likewise.
39277         * lib/unistr/u32-strcat.c: Likewise.
39278         * lib/unistr/u32-strchr.c: Likewise.
39279         * lib/unistr/u32-strcmp.c: Likewise.
39280         * lib/unistr/u32-strcpy.c: Likewise.
39281         * lib/unistr/u32-strcspn.c: Likewise.
39282         * lib/unistr/u32-strdup.c: Likewise.
39283         * lib/unistr/u32-strlen.c: Likewise.
39284         * lib/unistr/u32-strmblen.c: Likewise.
39285         * lib/unistr/u32-strmbtouc.c: Likewise.
39286         * lib/unistr/u32-strncat.c: Likewise.
39287         * lib/unistr/u32-strncmp.c: Likewise.
39288         * lib/unistr/u32-strncpy.c: Likewise.
39289         * lib/unistr/u32-strnlen.c: Likewise.
39290         * lib/unistr/u32-strpbrk.c: Likewise.
39291         * lib/unistr/u32-strrchr.c: Likewise.
39292         * lib/unistr/u32-strspn.c: Likewise.
39293         * lib/unistr/u32-strstr.c: Likewise.
39294         * lib/unistr/u32-strtok.c: Likewise.
39295         * lib/unistr/u32-to-u16.c: Likewise.
39296         * lib/unistr/u32-to-u8.c: Likewise.
39297         * lib/unistr/u32-uctomb.c: Likewise.
39298         * lib/unistr/u8-check.c: Likewise.
39299         * lib/unistr/u8-chr.c: Likewise.
39300         * lib/unistr/u8-cmp.c: Likewise.
39301         * lib/unistr/u8-cpy-alloc.c: Likewise.
39302         * lib/unistr/u8-cpy.c: Likewise.
39303         * lib/unistr/u8-endswith.c: Likewise.
39304         * lib/unistr/u8-mblen.c: Likewise.
39305         * lib/unistr/u8-mbsnlen.c: Likewise.
39306         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39307         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39308         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39309         * lib/unistr/u8-mbtouc.c: Likewise.
39310         * lib/unistr/u8-mbtoucr.c: Likewise.
39311         * lib/unistr/u8-move.c: Likewise.
39312         * lib/unistr/u8-next.c: Likewise.
39313         * lib/unistr/u8-prev.c: Likewise.
39314         * lib/unistr/u8-set.c: Likewise.
39315         * lib/unistr/u8-startswith.c: Likewise.
39316         * lib/unistr/u8-stpcpy.c: Likewise.
39317         * lib/unistr/u8-stpncpy.c: Likewise.
39318         * lib/unistr/u8-strcat.c: Likewise.
39319         * lib/unistr/u8-strchr.c: Likewise.
39320         * lib/unistr/u8-strcmp.c: Likewise.
39321         * lib/unistr/u8-strcpy.c: Likewise.
39322         * lib/unistr/u8-strcspn.c: Likewise.
39323         * lib/unistr/u8-strdup.c: Likewise.
39324         * lib/unistr/u8-strlen.c: Likewise.
39325         * lib/unistr/u8-strmblen.c: Likewise.
39326         * lib/unistr/u8-strmbtouc.c: Likewise.
39327         * lib/unistr/u8-strncat.c: Likewise.
39328         * lib/unistr/u8-strncmp.c: Likewise.
39329         * lib/unistr/u8-strncpy.c: Likewise.
39330         * lib/unistr/u8-strnlen.c: Likewise.
39331         * lib/unistr/u8-strpbrk.c: Likewise.
39332         * lib/unistr/u8-strrchr.c: Likewise.
39333         * lib/unistr/u8-strspn.c: Likewise.
39334         * lib/unistr/u8-strstr.c: Likewise.
39335         * lib/unistr/u8-strtok.c: Likewise.
39336         * lib/unistr/u8-to-u16.c: Likewise.
39337         * lib/unistr/u8-to-u32.c: Likewise.
39338         * lib/unistr/u8-uctomb-aux.c: Likewise.
39339         * lib/unistr/u8-uctomb.c: Likewise.
39340         * lib/unitypes.h: Likewise.
39341         * lib/uniwidth.h: Likewise.
39342         * lib/uniwidth/cjk.h: Likewise.
39343         * lib/uniwidth/u16-strwidth.c: Likewise.
39344         * lib/uniwidth/u16-width.c: Likewise.
39345         * lib/uniwidth/u32-strwidth.c: Likewise.
39346         * lib/uniwidth/u32-width.c: Likewise.
39347         * lib/uniwidth/u8-strwidth.c: Likewise.
39348         * lib/uniwidth/u8-width.c: Likewise.
39349         * lib/uniwidth/width.c: Likewise.
39350
39351 2007-10-07  Bruno Haible  <bruno@clisp.org>
39352
39353         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39354         The file is still under LGPL (see modules/inttypes).
39355
39356 2007-10-06  Bruno Haible  <bruno@clisp.org>
39357
39358         * modules/trunc (Dependencies): Add 'extensions'.
39359         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39360         Reported by Ben Pfaff <blp@gnu.org>.
39361
39362 2007-10-06  Bruno Haible  <bruno@clisp.org>
39363
39364         * modules/freopen-tests: New file.
39365         * tests/test-freopen.c: New file.
39366
39367         * modules/fopen-tests: New file.
39368         * tests/test-fopen.c: New file.
39369
39370         * modules/fopen: New file.
39371         * lib/fopen.c: New file.
39372         * m4/fopen.m4: New file.
39373         * modules/freopen: New file.
39374         * lib/freopen.c: New file.
39375         * m4/freopen.m4: New file.
39376         * lib/stdio.in.h (fopen, freopen): New declarations.
39377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39378         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39379         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39380         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39381         * doc/functions/fopen.texi: Mention the 'fopen' module.
39382         * doc/functions/freopen.texi: Mention the 'freopen' module.
39383
39384 2007-10-06  Bruno Haible  <bruno@clisp.org>
39385
39386         * modules/open-tests: New file.
39387         * tests/test-open.c: New file.
39388
39389         * modules/open: New file.
39390         * lib/open.c: New file.
39391         * m4/open.m4: New file.
39392         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39393         lib/open.c does.
39394         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39395         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39396         macros.
39397         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39398         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39399         REPLACE_OPEN.
39400         * doc/functions/open.texi: Mention the 'open' module.
39401
39402 2007-10-04  Bruno Haible  <bruno@clisp.org>
39403
39404         * modules/ceill-tests: New file.
39405         * tests/test-ceill.c: New file.
39406
39407         * modules/ceill: New file.
39408         * lib/ceill.c: Replace entire file.
39409         * m4/ceill.m4: New file.
39410         * lib/math.in.h (ceill): Replace declaration.
39411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39412         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39413         * doc/functions/ceill.texi: Mention the 'ceill' module.
39414         * modules/mathl (Files): Remove lib/ceill.c.
39415         (Depends-on): Add ceill.
39416
39417 2007-10-04  Bruno Haible  <bruno@clisp.org>
39418
39419         * modules/ceilf-tests: New file.
39420         * tests/test-ceilf.c: New file.
39421
39422         * modules/ceilf: New file.
39423         * lib/ceil.c: New file.
39424         * lib/ceilf.c: New file.
39425         * m4/ceilf.m4: New file.
39426         * lib/math.in.h (ceilf): New declaration.
39427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39428         HAVE_DECL_CEILF.
39429         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39430         HAVE_DECL_CEILF.
39431         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39432
39433 2007-10-04  Bruno Haible  <bruno@clisp.org>
39434
39435         * modules/floorl-tests: New file.
39436         * tests/test-floorl.c: New file.
39437
39438         * modules/floorl: New file.
39439         * lib/floorl.c: Replace entire file.
39440         * m4/floorl.m4: New file.
39441         * lib/math.in.h (floorl): Replace declaration.
39442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39443         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39444         * doc/functions/floorl.texi: Mention the 'floorl' module.
39445         * modules/mathl (Files): Remove lib/floorl.c.
39446         (Depends-on): Add floorl.
39447
39448 2007-10-04  Bruno Haible  <bruno@clisp.org>
39449
39450         * modules/floorf-tests: New file.
39451         * tests/test-floorf.c: New file.
39452
39453         * modules/floorf: New file.
39454         * lib/floor.c: New file.
39455         * lib/floorf.c: New file.
39456         * m4/floorf.m4: New file.
39457         * lib/math.in.h (floorf): New declaration.
39458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39459         HAVE_DECL_FLOORF.
39460         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39461         HAVE_DECL_FLOORF.
39462         * doc/functions/floorf.texi: Mention the 'floorf' module.
39463
39464 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39465             Bruno Haible  <bruno@clisp.org>
39466
39467         Advertise for the Git server instead of the CVS server.
39468         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39469         repository instead of the CVS one.
39470         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39471         about all VCS systems generically.
39472         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39473
39474 2007-10-04  Bruno Haible  <bruno@clisp.org>
39475
39476         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39477         means.
39478         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39479
39480 2007-10-04  Bruno Haible  <bruno@clisp.org>
39481
39482         * modules/truncl-tests: New file.
39483         * tests/test-truncl.c: New file.
39484
39485         * modules/truncl: New file.
39486         * lib/truncl.c: New file.
39487         * m4/truncl.m4: New file.
39488         * lib/math.in.h (truncl): New declaration.
39489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39490         HAVE_DECL_TRUNCL.
39491         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39492         HAVE_DECL_TRUNCL.
39493         * doc/functions/truncl.texi: Mention the 'truncl' module.
39494
39495 2007-10-04  Bruno Haible  <bruno@clisp.org>
39496
39497         * modules/truncf-tests: New file.
39498         * tests/test-truncf.c: New file.
39499
39500         * modules/truncf: New file.
39501         * lib/trunc.c: Make paramerizable through USE_* macros.
39502         * lib/truncf.c: New file.
39503         * m4/truncf.m4: New file.
39504         * lib/math.in.h (truncf): New declaration.
39505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39506         HAVE_DECL_TRUNCF.
39507         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39508         HAVE_DECL_TRUNCF.
39509         * doc/functions/truncf.texi: Mention the 'truncf' module.
39510
39511 2007-10-03  Bruno Haible  <bruno@clisp.org>
39512
39513         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39514         augmentation also for tests modules.
39515         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39516         * modules/atexit-tests (Makefile.am): Likewise.
39517         * modules/binary-io-tests (Makefile.am): Likewise.
39518         * modules/c-strcase-tests (Makefile.am): Likewise.
39519         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39520         * modules/canonicalize-tests (Makefile.am): Likewise.
39521         * modules/closein-tests (Makefile.am): Likewise.
39522         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39523         * modules/freadahead-tests (Makefile.am): Likewise.
39524         * modules/fseek-tests (Makefile.am): Likewise.
39525         * modules/fseeko-tests (Makefile.am): Likewise.
39526         * modules/ftell-tests (Makefile.am): Likewise.
39527         * modules/ftello-tests (Makefile.am): Likewise.
39528         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39529         * modules/isnanl-tests (Makefile.am): Likewise.
39530         * modules/lseek-tests (Makefile.am): Likewise.
39531         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39532         * modules/mbscasestr-tests (Makefile.am): Likewise.
39533         * modules/mbschr-tests (Makefile.am): Likewise.
39534         * modules/mbscspn-tests (Makefile.am): Likewise.
39535         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39536         * modules/mbspbrk-tests (Makefile.am): Likewise.
39537         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39538         * modules/mbsrchr-tests (Makefile.am): Likewise.
39539         * modules/mbsspn-tests (Makefile.am): Likewise.
39540         * modules/mbsstr-tests (Makefile.am): Likewise.
39541         * modules/printf-posix-tests (Makefile.am): Likewise.
39542         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39543         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39544         * modules/tsearch-tests (Makefile.am): Likewise.
39545         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39546         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39547         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39548         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39549         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39550         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39551         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39552         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39553         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39554         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39555         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39556         * modules/xstrtol-tests (Makefile.am): Likewise.
39557         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39558         * modules/yesno-tests (Makefile.am): Likewise.
39559
39560 2007-10-03  Bruno Haible  <bruno@clisp.org>
39561
39562         * modules/trunc-tests: New file.
39563         * tests/test-trunc.c: New file.
39564
39565         * modules/trunc: New file.
39566         * lib/trunc.c: New file.
39567         * m4/trunc.m4: New file.
39568         * lib/math.in.h (trunc): New declaration.
39569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39570         HAVE_DECL_TRUNC.
39571         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39572         HAVE_DECL_TRUNC.
39573         * doc/functions/trunc.texi: Mention the 'trunc' module.
39574
39575 2007-10-03  Bruno Haible  <bruno@clisp.org>
39576
39577         * tests/test-fpending.c: New file, mostly copied
39578         from coreutils/lib/t-fpending.c.
39579         * modules/fpending-tests: New file.
39580
39581 2007-10-03  Bruno Haible  <bruno@clisp.org>
39582
39583         Port the stdio extensions to QNX (untested).
39584         * lib/fseterr.c (fseterr): Add support for QNX.
39585         * lib/fbufmode.c (fbufmode): Likewise.
39586         * lib/freadable.c (freadable): Likewise.
39587         * lib/fwritable.c (fwritable): Likewise.
39588         * lib/freading.c (freading): Likewise.
39589         * lib/fwriting.c (fwriting): Likewise.
39590         * lib/freadahead.c (freadahed): Likewise.
39591         * lib/fpurge.c (fpurge): Likewise.
39592         * lib/fseeko.c (rpl_fseeko): Likewise.
39593
39594 2007-10-03  Bruno Haible  <bruno@clisp.org>
39595             Jim Meyering  <jim@meyering.net>
39596             Eric Blake  <ebb9@byu.net>
39597
39598         * doc/relocatable.texi: Use @command instead of @program.
39599
39600 2007-10-02  Jim Meyering  <jim@meyering.net>
39601
39602         Perform one more "_.h" -> ".in.h" substitution.
39603         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39604         instead of unistd_.h here, too.
39605
39606 2007-10-01  Bruno Haible  <bruno@clisp.org>
39607
39608         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39609         Needed for the alloca-opt module.
39610
39611 2007-09-30  Bruno Haible  <bruno@clisp.org>
39612
39613         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39614         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39615         alloca_.h.
39616         * lib/argz.in.h: Renamed from lib/argz_.h.
39617         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39618         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39619         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39620         byteswap_.h.
39621         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39622         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39623         dirent_.h.
39624         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39625         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39626         fcntl_.h.
39627         * lib/float.in.h: Renamed from lib/float_.h.
39628         * modules/float (Files, Makefile.am): Use float.in.h instead of
39629         float_.h.
39630         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39631         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39632         fnmatch_.h.
39633         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39634         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39635         getopt_.h.
39636         * lib/glob.in.h: Renamed from lib/glob_.h.
39637         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39638         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39639         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39640         iconv_.h.
39641         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39642         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39643         inttypes_.h.
39644         * lib/locale.in.h: Renamed from lib/locale_.h.
39645         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39646         locale_.h.
39647         * lib/math.in.h: Renamed from lib/math_.h.
39648         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39649         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39650         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39651         of netinet_in_.h. Add dependency.
39652         * lib/poll.in.h: Renamed from lib/poll_.h.
39653         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39654         * lib/search.in.h: Renamed from lib/search_.h.
39655         * modules/search (Files, Makefile.am): Use search.in.h instead of
39656         search_.h.
39657         * lib/signal.in.h: Renamed from lib/signal_.h.
39658         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39659         _signal.h.
39660         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39661         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39662         stdbool_.h.
39663         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39664         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39665         stdint_.h.
39666         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39667         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39668         stdio_.h.
39669         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39670         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39671         stdlib_.h.
39672         * lib/string.in.h: Renamed from lib/string_.h.
39673         * modules/string (Files, Makefile.am): Use string.in.h instead of
39674         string_.h.
39675         * doc/gnulib-tool.texi (Initial import): Update.
39676         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39677         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39678         of sys_select_.h. Add dependency.
39679         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39680         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39681         of sys_socket_.h.
39682         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39683         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39684         sys_stat_.h.
39685         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39686         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39687         sys_time_.h.
39688         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39689         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39690         sysexits_.h.
39691         * lib/time.in.h: Renamed from lib/time_.h.
39692         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39693         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39694         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39695         unistd_.h.
39696         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39697         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39698         wchar_.h.
39699         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39700         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39701         wctype_.h.
39702         * build-aux/bootstrap (slurp): Update.
39703         * lib/.cppi-disable: Update.
39704
39705 2007-09-30  Bruno Haible  <bruno@clisp.org>
39706
39707         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39708         Needed on BeOS.
39709
39710 2007-09-30  Bruno Haible  <bruno@clisp.org>
39711
39712         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39713
39714 2007-09-29  Bruno Haible  <bruno@clisp.org>
39715
39716         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39717
39718 2007-09-29  Bruno Haible  <bruno@clisp.org>
39719
39720         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39721         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39722         * build-aux/install-reloc: Compile also areadlink.c.
39723         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39724
39725 2007-09-29  Bruno Haible  <bruno@clisp.org>
39726
39727         * gnulib-tool (func_emit_initmacro_done): Indentation.
39728
39729 2007-09-29  Bruno Haible  <bruno@clisp.org>
39730
39731         * README: Add CVS checkout update instructions.
39732         Info from Bob Proulx <bob@proulx.com>.
39733
39734 2007-09-28  Eric Blake  <ebb9@byu.net>
39735
39736         Provide move-if-change.
39737         * build-aux/move-if-change: New file, based on best practice
39738         rather than any canonical upstream location.
39739
39740 2007-09-28  Jim Meyering  <jim@meyering.net>
39741
39742         Fix canonicalize loop-detection corner case.
39743         Do not attempt to stat the symlink values stored via seen_triple.
39744         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39745         on linux-2.6.18, (but not 2.6.22).
39746         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39747         triple_compare.  The former compares dev,ino,filename, while the latter
39748         would actually stat dirname(filename) when dev and ino were equal.
39749         * lib/hash-triple.c: Install <string.h>.
39750         (STREQ): Define.
39751         (triple_compare_ino_str): New function.
39752         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39753
39754 2007-09-28  Eric Blake  <ebb9@byu.net>
39755
39756         Enforce that AC_REPLACE_FUNCS files exist.
39757         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39758         override check for typos.
39759
39760         Fix test-closein on Solaris 10.
39761         * tests/test-closein.c (main): Don't assume stdin can be inherited
39762         closed on all systems.
39763         * tests/test-closein.sh: Likewise.
39764         Reported by Piotr Tarnowski.
39765
39766 2007-09-28  Jim Meyering  <jim@meyering.net>
39767
39768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39769
39770 2007-09-27  Jim Meyering  <jim@meyering.net>
39771
39772         canonicalize: Avoid a false-positive cycle failure.
39773         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39774         Sort.  Remove cycle-check.
39775         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39776         not cycle-check.h.
39777         (seen_triple): New function.
39778         (canonicalize_filename_mode): Use it instead of cycle-check.
39779         * tests/test-canonicalize.c: Add a test for this bug.
39780         * tests/test-canonicalize.sh: Set up and run the test.
39781
39782         New module, file-set, from coreutils.
39783         * modules/file-set: Define it.
39784         * lib/file-set.c, lib/file-set.h: Implement.
39785
39786         New module, hash-triple, from coreutils.
39787         * modules/hash-triple: Define it.
39788         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39789
39790 2007-09-25  Eric Blake  <ebb9@byu.net>
39791
39792         Fix strerror on Interix.
39793         * lib/string_.h (strerror): Declare replacement.
39794         * doc/functions/strerror.texi (strerror): Document the Interix
39795         shortcoming.
39796         * modules/string (Makefile.am): Support new hooks.
39797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39798         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39799         gl_FUNC_STRERROR_SEPARATE.
39800         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39801         * lib/strerror.c (rpl_strerror): Provide replacement.
39802         * modules/strerror (Depends-on): Add string.
39803         (configure.ac): Detect use of module.
39804         * tests/test-strerror.c: New file.
39805         * modules/strerror-tests: New test module.
39806         * modules/argp (Depends-on): Add strerror.
39807         * modules/error (Depends-on): Likewise.
39808         Reported by Martin Koeppe.
39809
39810 2007-09-24  Bruno Haible  <bruno@clisp.org>
39811
39812         * README: Update git instructions.
39813
39814 2007-09-24  Eric Blake  <ebb9@byu.net>
39815
39816         Revert fpending breakage from 2007-09-08.
39817         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39818         __fpending.c.
39819
39820 2007-09-24  Jim Meyering  <jim@meyering.net>
39821
39822         filenamecat.c: Add a test.
39823         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39824         showing how the function works when DIR is the empty string.
39825
39826 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39827
39828         * tests/test-canonicalize.sh: Turn on executable bit.
39829
39830 2007-09-19  Eric Blake  <ebb9@byu.net>
39831
39832         * README: Update CVS instructions.
39833
39834 2007-09-18  Bruno Haible  <bruno@clisp.org>
39835
39836         * modules/areadlink: New file.
39837         * lib/areadlink.h (areadlink): New declaration.
39838         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39839
39840 2007-09-17  Jim Meyering  <jim@meyering.net>
39841
39842         * lib/savewd.c (ESTALE) [!defined]: Define.
39843         Reported to be required on Interix by Martin Koeppe.
39844
39845 2007-09-17  Bruno Haible  <bruno@clisp.org>
39846
39847         * gnulib-tool (func_version): Use $version.
39848
39849 2007-09-16  Bruno Haible  <bruno@clisp.org>
39850
39851         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39852         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39853         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39854         Reported by Greg Schafer <gschafer@zip.com.au>.
39855
39856 2007-09-15  Bruno Haible  <bruno@clisp.org>
39857
39858         * gnulib-tool (sed): Try a little harder to make bash understand the
39859         alias.
39860         Reported by Bruce Korb <bruce.korb@gmail.com>.
39861
39862 2007-09-13  Eric Blake  <ebb9@byu.net>
39863
39864         * ChangeLog: Remove conflict markers.
39865
39866 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39867
39868         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39869         Reported by Bruno Haible <bruno@clisp.org>.
39870
39871 2007-09-12  Bruno Haible  <bruno@clisp.org>
39872
39873         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39874         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39875         is not defined.
39876
39877 2007-09-12  Eric Blake  <ebb9@byu.net>
39878
39879         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39880         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39881         Autoconf definition.
39882         * modules/euidaccess (Depends-on): Add extensions, for
39883         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39884         * modules/fnmatch (Depends-on): Likewise.
39885         * modules/getaddrinfo (Depends-on): Likewise.
39886         * modules/getdelim (Depends-on): Likewise.
39887         * modules/getline (Depends-on): Likewise.
39888         * modules/getsubopt (Depends-on): Likewise.
39889         * modules/gettext (Depends-on): Likewise.
39890         * modules/group-member (Depends-on): Likewise.
39891         * modules/mbchar (Depends-on): Likewise.
39892         * modules/memmem (Depends-on): Likewise.
39893         * modules/mempcpy (Depends-on): Likewise.
39894         * modules/memrchr (Depends-on): Likewise.
39895         * modules/pagealign_alloc (Depends-on): Likewise.
39896         * modules/readutmp (Depends-on): Likewise.
39897         * modules/stpcpy (Depends-on): Likewise.
39898         * modules/stpncpy (Depends-on): Likewise.
39899         * modules/strchrnul (Depends-on): Likewise.
39900         * modules/strndup (Depends-on): Likewise.
39901         * modules/strsep (Depends-on): Likewise.
39902         * modules/strverscmp (Depends-on): Likewise.
39903         * modules/vasprintf (Depends-on): Likewise.
39904         * modules/wcwidth (Depends-on): Likewise.
39905         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39906         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39907         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39909         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39910         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39911         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39912         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39913         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39914         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39916         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39917         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39918         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39919         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39920         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39921         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39922         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39923         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39924         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39925         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39926         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39927         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39928         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39929         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39931         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39932         so that lock.m4 can be used in gettext without extensions module.
39933
39934 2007-09-11  Bruno Haible  <bruno@clisp.org>
39935
39936         * m4/isc-posix.m4: Remove file.
39937         Suggested by Eric Blake.
39938
39939 2007-09-11  Eric Blake  <ebb9@byu.net>
39940
39941         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39942
39943 2007-09-10  Bruno Haible  <bruno@clisp.org>
39944
39945         * posix-modules: Fix typo in error message.
39946         Reported by Matt <mkraai@beckman.com>.
39947
39948 2007-09-09  Bruno Haible  <bruno@clisp.org>
39949
39950         * doc/functions/getdelim.texi: Update list of platforms lacking the
39951         function.
39952         * doc/functions/getline.texi: Likewise.
39953
39954 2007-09-09  Jim Meyering  <jim@meyering.net>
39955
39956         * lib/hash.c (hash_initialize): Detect calloc failure.
39957         Reported by Bruno Haible.
39958
39959 2007-09-09  Bruno Haible  <bruno@clisp.org>
39960
39961         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39962         malloc or realloc fails.
39963
39964 2007-09-09  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/getcwd (Depends-on): Add malloc-posix.
39967         * modules/glob (Depends-on): Likewise.
39968         * modules/putenv (Depends-on): Likewise.
39969         * modules/strdup (Depends-on): Likewise.
39970         * modules/getdelim (Depends-on): Add realloc-posix.
39971         * modules/read-file (Depends-on): Likewise.
39972
39973 2007-09-09  Bruno Haible  <bruno@clisp.org>
39974
39975         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39976         (gl_FUNC_MALLOC_POSIX): Require it.
39977         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39978         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39979         * modules/realloc (Files): Add m4/malloc.m4.
39980         * modules/calloc (Files): Likewise.
39981
39982 2007-09-09  Bruno Haible  <bruno@clisp.org>
39983
39984         * modules/malloc-posix: New file.
39985         * modules/malloc (Depends-on): Add malloc-posix.
39986         * lib/malloc.c: Include errno.h.
39987         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39988         and a POSIX-compatible malloc into a single function. Set ENOMEM
39989         when returning NULL.
39990         * m4/malloc.m4: New file.
39991         * doc/functions/malloc.texi: Mention the malloc-posix module.
39992         * lib/stdlib_.h (malloc): New declaration.
39993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39994         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39995         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39996         and HAVE_MALLOC_POSIX.
39997
39998 2007-09-09  Bruno Haible  <bruno@clisp.org>
39999
40000         * modules/realloc-posix: New file.
40001         * modules/realloc (Depends-on): Add realloc-posix.
40002         * lib/realloc.c: Include errno.h.
40003         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
40004         and a POSIX-compatible realloc into a single function. Set ENOMEM
40005         when returning NULL.
40006         * m4/realloc.m4: New file.
40007         * doc/functions/realloc.texi: Mention the realloc-posix module.
40008         * lib/stdlib_.h (realloc): New declaration.
40009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40010         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
40011         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
40012         and HAVE_REALLOC_POSIX.
40013
40014 2007-09-09  Bruno Haible  <bruno@clisp.org>
40015
40016         * modules/calloc-posix: New file.
40017         * modules/calloc (Depends-on): Add calloc-posix.
40018         * lib/calloc.c: Include errno.h.
40019         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
40020         and a POSIX-compatible calloc into a single function. Set ENOMEM
40021         when returning NULL.
40022         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
40023         * doc/functions/calloc.texi: Mention the calloc-posix module.
40024         * lib/stdlib_.h (calloc): New declaration.
40025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40026         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
40027         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
40028         and HAVE_CALLOC_POSIX.
40029
40030 2007-09-09  Bruno Haible  <bruno@clisp.org>
40031
40032         Allow for modules to show an arbitrary notice.
40033         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
40034         * gnulib-tool: New option --extract-notice.
40035         (func_usage): Document it.
40036         (sed_extract_prog): Update.
40037         (func_get_notice): New function.
40038         (func_modules_notice): New function.
40039         (func_import, func_create_testdir): Invoke it.
40040         Suggested by Jim Meyering.
40041
40042 2007-09-09  Bruno Haible  <bruno@clisp.org>
40043
40044         * gnulib-tool: New options --verbose, --quiet.
40045         (func_usage): Document them.
40046         (verbose): New variable.
40047         (func_execute_command): New function.
40048         (func_import): Don't show the module list and the file list if
40049         $verbose < 0.
40050         (func_create_testdir): Likewise. Use func_execute_command.
40051         (func_create_megatestdir): Use func_execute_command.
40052
40053 2007-09-08  Bruno Haible  <bruno@clisp.org>
40054
40055         * gnulib-tool (func_import): Prefer rsync over wget when available,
40056         for fetching the PO files.
40057
40058 2007-09-08  Bruno Haible  <bruno@clisp.org>
40059
40060         * posix-modules: New file. Portions copied from gnulib-tool.
40061         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
40062
40063 2007-09-08  Jim Meyering  <jim@meyering.net>
40064
40065         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
40066         * lib/fpending.h: Rename from __fpending.h.
40067         * lib/fpending.c: Rename from __fpending.c.
40068         Include "fpending.h", not "__fpending.h".
40069         * lib/__fpending.h, lib/__fpending.c: Remove files.
40070         * modules/fpending (Files): Reflect new file names.
40071         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
40072
40073 2007-09-08  Bruno Haible  <bruno@clisp.org>
40074
40075         * m4/inttypes-h.m4: Remove stub file.
40076
40077 2007-09-07  Simon Josefsson  <simon@josefsson.org>
40078
40079         * doc/headers/stdint.texi: Discuss #include_next issue.
40080
40081 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40082
40083         * build-aux/bootstrap: Remove obsolete comment about wget --help.
40084
40085 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40086
40087         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
40088         in variable name.
40089
40090 2007-09-03  Jim Meyering  <jim@meyering.net>
40091
40092         New module: git-version-gen.
40093         * modules/git-version-gen: New file.
40094
40095         Import changes from coreutils for bootstrap script.
40096
40097         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
40098
40099         bootstrap: uses rsync to download the .po files
40100         * build-aux/bootstrap (po_download_command_format): New global.
40101         (download_po_files): Use rsync.
40102         (update_po_files): Don't remove .po files after download,
40103         so future rsync runs can take advantage of the copies.
40104
40105         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
40106
40107         Solve the unnecessary-.po-file-regeneration problem once and for all.
40108         * build-aux/bootstrap (download_po_files): New function, renamed from
40109         get_translations.  Now, downloads, but doesn't update LINGUAS.
40110         (update_po_files): New function.
40111
40112         bootstrap: Ignore more.
40113         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
40114         uniwidth to e.g., lib/.gitignore.
40115         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40116
40117         * build-aux/bootstrap: New setting: vc_ignore.
40118         (insert_sorted_if_absent): Create $file if absent.
40119         Adapt to new, possibly empty, list: $vc_ignore.
40120
40121         bootstrap: generate more ignorable names
40122         * build-aux/bootstrap (slurp): When generating ignorable names,
40123         also map .sin to .sed, .gperf to .c, and .y to .c.
40124
40125 2007-09-03  Jim Meyering  <jim@meyering.net>
40126
40127         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40128         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40129
40130 2007-09-02  Bruno Haible  <bruno@clisp.org>
40131
40132         Fix mis-recognition of 'mcs' on QNX 6.
40133         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40134         output contains the string "Mono".
40135         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40136         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40137
40138 2007-09-01  Bruno Haible  <bruno@clisp.org>
40139
40140         Fix collision between uniwidth/* and linebreak modules.
40141         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40142         u32_width): Remove declarations.
40143         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40144         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40145         streq3, streq2, streq1, streq0): Remove functions.
40146         (STREQ): Remove macro.
40147         (is_cjk_encoding): Remove function.
40148         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40149         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40150         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40151         * NEWS: Document the change.
40152
40153 2007-09-01  Bruno Haible  <bruno@clisp.org>
40154
40155         * lib/streq.h: Add double-inclusion guard.
40156
40157 2007-09-01  Karl Berry  <karl@gnu.org>
40158
40159         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40160
40161 2007-08-28  Jim Meyering  <jim@meyering.net>
40162
40163         Rename mreadlink_with_size to areadlink_with_size.
40164         * NEWS: Document the change.
40165         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40166         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40167         * lib/mreadlink.h: Rename this to...
40168         * lib/areadlink.h: ...this.
40169         * modules/mreadlink-with-size: Rename this to...
40170         * modules/areadlink-with-size: ...this.
40171         * lib/canonicalize.c: Reflect the renaming.
40172         * modules/canonicalize: Likewise.
40173
40174 2007-08-26  Bruno Haible  <bruno@clisp.org>
40175
40176         * gnulib-tool (func_import): When deciding which files to remove,
40177         consider also dangling symbolic links.
40178         Reported by Eric Blake.
40179
40180 2007-08-26  Bruno Haible  <bruno@clisp.org>
40181
40182         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40183
40184 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40185
40186         * lib/readline.c: Don't include getline.h, the prototype is now
40187         found in stdio.h.
40188
40189 2007-08-23  Jim Meyering  <jim@meyering.net>
40190
40191         Getdelim touchup.
40192         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40193         around the funlockfile call, since funlockfile never sets errno.
40194         Don't set errno upon failed realloc.
40195
40196 2007-08-22  Eric Blake  <ebb9@byu.net>
40197
40198         Getline touchups.
40199         * lib/getdelim.c (getdelim): Revert regression that required *n to
40200         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40201         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40202         getdelim, rather than whether implementation is missing.
40203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40204         * lib/stdio_.h (getline): Also declare if replacement is
40205         required.
40206         * doc/functions/getdelim.texi: New file.
40207         * doc/functions/getline.texi: Likewise.
40208         * doc/gnulib.texi (Function Substitutes): Add new files.
40209         Reported by Bruno Haible.
40210
40211 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40212
40213         * users.txt: Add Guile.
40214
40215 2007-08-22  Eric Blake  <ebb9@byu.net>
40216
40217         * tests/test-getdelim.c (main): Use remove, not unlink.
40218         * tests/test-getline.c (main): Likewise.
40219
40220         Move getline and getdelim into stdio.h, per POSIX 200x.
40221         * modules/getline (Files): Remove getline.h.
40222         (Depends-on): Add stdio.
40223         (configure.ac): Add module indicator.
40224         * modules/getdelim (Files): Remove getdelim.h.
40225         (Depends-on): Add stdio.
40226         (configure.ac): Add module indicator.
40227         * modules/stdio (Makefile.am): Work with new indicators.
40228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40230         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40231         * lib/getdelim.h: Delete.
40232         * lib/getline.h: Delete.
40233         * lib/stdio_.h (getdelim, getline): Declare.
40234         * modules/getdelim-tests: New module.
40235         * modules/getline-tests: Likewise.
40236         * tests/test-getdelim.c: New file.
40237         * tests/test-getline.c: Likewise.
40238         * NEWS: Document the change.
40239         * lib/getline.c: Update choice of header.
40240         * lib/csharpcomp.c: Likewise.
40241         * lib/getpass.c: Likewise.
40242         * lib/javacomp.c: Likewise.
40243         * lib/javaversion.c: Likewise.
40244         * lib/yesno.c: Likewise.
40245         * lib/getdelim.c: Likewise.
40246         (getdelim): Set errno on failure, and avoid memory leak.
40247
40248 2007-08-19  Bruno Haible  <bruno@clisp.org>
40249
40250         * modules/closein (Depends-on): Add freadahead.
40251         * lib/closein.c: Include freadahead.h.
40252         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40253         is zero.
40254
40255 2007-08-19  Bruno Haible  <bruno@clisp.org>
40256
40257         * modules/freadahead-tests: New file.
40258         * tests/test-freadahead.sh: New file.
40259         * tests/test-freadahead.c: New file.
40260
40261         * modules/freadahead: New file.
40262         * lib/freadahead.h: New file.
40263         * lib/freadahead.c: New file.
40264         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40265         fbufmode, fpurge, freadable, fwritable.
40266
40267 2007-08-19  Eric Blake  <ebb9@byu.net>
40268
40269         Test yesno in combination with closein.
40270         * lib/yesno.c (yesno): Document use of stdin.
40271         * modules/yesno-tests (Files): New module.
40272         * tests/test-yesno.c (main): New file.
40273         * tests/test-yesno.sh: Likewise.
40274
40275 2007-08-19  Bruno Haible  <bruno@clisp.org>
40276
40277         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40278         * lib/fseeko.c (rpl_fseeko): Likewise.
40279         * lib/fseterr.c (fseterr): Likewise.
40280
40281 2007-08-19  Bruno Haible  <bruno@clisp.org>
40282
40283         * tests/test-lseek.c (main): Disable a test for BeOS.
40284         * doc/functions/lseek.texi: Document the BeOS bug.
40285
40286 2007-08-19  Bruno Haible  <bruno@clisp.org>
40287             Eric Blake  <ebb9@byu.net>
40288
40289         * lib/lseek.c: Include <sys/stat.h>.
40290         (rpl_lseek): Add workaround code also for Unix platforms.
40291         Needed for BeOS.
40292         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40293         * doc/functions/lseek.texi: Document BeOS definiency.
40294
40295 2007-08-18  Bruno Haible  <bruno@clisp.org>
40296
40297         * modules/fstrcmp-tests: New file.
40298         * tests/test-fstrcmp.c: New file.
40299
40300 2007-08-18  Bruno Haible  <bruno@clisp.org>
40301
40302         * modules/fstrcmp: New file, from GNU gettext with modifications.
40303         * lib/fstrcmp.h: New file, from GNU gettext.
40304         * lib/fstrcmp.c: New file, from GNU gettext.
40305         * MODULES.html.sh (String handling): Add fstrcmp.
40306
40307 2007-08-18  Bruno Haible  <bruno@clisp.org>
40308
40309         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40310         'bool'.
40311         (diag, compareseq): Remove const from the ctxt argument.
40312         (USE_HEURISTIC): Undefine at the end.
40313
40314 2007-08-18  Jim Meyering  <jim@meyering.net>
40315
40316         New file: lib/idcache.h
40317         * NEWS: Mention the addition.
40318         * modules/idcache (Files): Add lib/idcache.h
40319         * lib/idcache.c: Include "idcache.h".
40320         Don't include <sys/types.h>.
40321         Add a FIXME comment.
40322         Move file-scoped "static" declarations to the top.
40323         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40324
40325 2007-08-17  Bruno Haible  <bruno@clisp.org>
40326         and Paul Eggert  <eggert@cs.ucla.edu>
40327
40328         * MODULES.html.sh: Add diffseq.
40329         * modules/diffseq: New file.
40330         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40331         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40332
40333 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40334
40335         Import changes from coreutils for bootstrap script.
40336
40337         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40338
40339         * build-aux/bootstrap (slurp): Work even in environments where
40340         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40341         current code does not slurp files whose names start with ".", and
40342         this looks like it might be a troublesome area.
40343
40344         2007-07-11  Jim Meyering  <jim@meyering.net>
40345
40346         If there's a GPL vN copyright comment, require that N == 3.
40347
40348         2007-07-08  Jim Meyering  <jim@meyering.net>
40349
40350         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40351         * build-aux/bootstrap (mam_template): Move definition out of loop.
40352
40353         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40354
40355         * build-aux/bootstrap (symlink_to_dir): Rename function from
40356         symlink_to_gnulib.  Add a directory parameter.  Update all
40357         callers.
40358         (cp_mark_as_generated): Also check for -- and link to -- files in
40359         gl/.
40360
40361         2007-07-08  Jim Meyering  <jim@meyering.net>
40362
40363         Adapt to deeper hierarchy in gnulib.
40364         * build-aux/bootstrap (symlink_to_dir): If the destination
40365         directory doesn't exist, create it. This is required at least for
40366         "lib/uniwidth/cjk.h".
40367
40368         2007-05-15  Jim Meyering  <jim@meyering.net>
40369
40370         * build-aux/bootstrap: Now that generated Makefile.am files
40371         are no longer under version control, they must be created at
40372         bootstrap time.
40373
40374 2007-08-14  Ben Pfaff  <blp@gnu.org>
40375
40376         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40377
40378 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40379
40380         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40381         given the changes below.
40382         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40383         even on hosts that have padding bits beyond the supported 64.
40384
40385 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40386
40387         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40388         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40389         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40390         depends on it.
40391         (xstrtol_error): Remove.
40392         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40393         but with a different signature.
40394         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40395         * lib/xstrtol-error.c: Include exitfail.h.
40396         (xstrtol_fatal): New function, with a different signature from the
40397         old xstrtol_error, so that the caller need not worry about passing
40398         in an exit status, or about storage management of the option argument.
40399         (xstrtol_error): Now a static function.  Redo signature to
40400         implement xstrtol_fatal.  Output the correct number of hyphens in
40401         front of the option so that the caller need not worry about
40402         storage management.
40403         (N_): New macro.
40404         (_): Remove; not used now.
40405         * modules/xstrtol: Depend on getopt.
40406         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40407         of old STRTOL_FATAL_ERROR macro.
40408         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40409         of test program.
40410         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40411         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40412
40413 2007-08-08  Eric Blake  <ebb9@byu.net>
40414
40415         * lib/xstrtol-error.c: Add missing include.
40416
40417         Move xstrtol messages into gnulib domain, when --pobase is used.
40418         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40419         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40420         * modules/xstrtol (Files): Distribute new file.
40421         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40422         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40423         * tests/test-xstrtol.c: ...into new file.
40424         * tests/test-xstrtoul.c: Also test xstrtoul.
40425         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40426         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40427         * tests/test-xstrtol.sh: Drive the tests.
40428         * tests/test-xstrtoimax.sh: Likewise.
40429         * tests/test-xstrtoumax.sh: Likewise.
40430         * modules/xstrtol-tests: New module.
40431         * modules/xstrtoimax-tests: Likewise.
40432         * modules/xstrtoumax-tests: Likewise.
40433
40434 2007-08-08  Jim Meyering  <jim@meyering.net>
40435
40436         New function: mfile_name_concat.
40437         * lib/filenamecat.c (mfile_name_concat): New function, just like
40438         file_name_concat, but return NULL upon failure rather than exiting
40439         with a diagnostic.
40440         * lib/filenamecat.h: Declare it.
40441
40442 2007-08-07  Bruno Haible  <bruno@clisp.org>
40443
40444         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40445         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40446         warning from gcc.
40447         Reported by Eric Blake.
40448
40449 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40450
40451         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40452         * modules/crypto/arcfour (License): Likewise.
40453         * modules/crypto/des-tests (License): Likewise.
40454         * modules/crypto/gc-arctwo-tests (License): Likewise.
40455         * modules/crypto/gc-des-tests (License): Likewise.
40456         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40457         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40458         * modules/crypto/gc-md2-tests (License): Likewise.
40459         * modules/crypto/gc-md4-tests (License): Likewise.
40460         * modules/crypto/gc-md5-tests (License): Likewise.
40461         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40462         * modules/crypto/gc-rijndael-tests (License): Likewise.
40463         * modules/crypto/gc-sha1-tests (License): Likewise.
40464         * modules/crypto/gc-tests (License): Likewise.
40465         * modules/crypto/hmac-md5 (License): Likewise.
40466         * modules/crypto/hmac-sha1 (License): Likewise.
40467         * modules/crypto/md2-tests (License): Likewise.
40468         * modules/crypto/md4-tests (License): Likewise.
40469         * modules/crypto/md5 (License): Likewise.
40470         * modules/crypto/rijndael (License): Likewise.
40471         * modules/crypto/sha1 (License): Likewise.
40472         * modules/memxor (License): Likewise.
40473
40474 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40475         and Bruno Haible  <bruno@clisp.org>
40476
40477         * NEWS: Describe interface changes to human, xstrtol.
40478         * lib/human.h: Include <xstrtol.h>.
40479         (human_options): Return enum strtol_error, not int.  Remove
40480         bool arg; take int * instead.
40481         * lib/human.c: Don't include "gettext.h".
40482         (_): Remove; no longer used.
40483         Don't include <xstrtol.h>, since human.h does it.
40484         (human_options): Adjust to abovementioned interface changes.
40485         Do not report error to stderr; that's now the caller's
40486         responsibility.
40487         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40488         interface change.
40489         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40490         Str, Argument_type_string.  All uses changed.  Put " argument"
40491         in diagnostics to make them clearer.  Change wording of suffix
40492         message for clarity.
40493         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40494         Argument_type_string.
40495         (STRTOL_FATAL_WARN): Remove; no longer used.
40496         * modules/human (Depends-on): Remove gettext-h.
40497
40498 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40499
40500         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40501
40502 2007-07-31  Bruno Haible  <bruno@clisp.org>
40503
40504         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40505         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40506         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40507
40508 2007-07-31  Bruno Haible  <bruno@clisp.org>
40509
40510         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40511         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40512
40513 2007-07-30  Bruno Haible  <bruno@clisp.org>
40514
40515         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40516         * modules/c-ctype (License): Likewise.
40517         * modules/c-strcase (License): Likewise.
40518         * modules/check-version (License): Likewise.
40519         * modules/iconv (License): Likewise.
40520         * modules/iconv_open (License): Likewise.
40521         * modules/read-file (License): Likewise.
40522         * modules/striconv (License): Likewise.
40523         * modules/strverscmp (License): Likewise.
40524         * modules/vasprintf (License): Likewise.
40525         * modules/crypto/des (License): Likewise.
40526         * modules/crypto/gc (License): Likewise.
40527         * modules/crypto/gc-arcfour (License): Likewise.
40528         * modules/crypto/gc-arctwo (License): Likewise.
40529         * modules/crypto/gc-des (License): Likewise.
40530         * modules/crypto/gc-hmac-md5 (License): Likewise.
40531         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40532         * modules/crypto/gc-md2 (License): Likewise.
40533         * modules/crypto/gc-md4 (License): Likewise.
40534         * modules/crypto/gc-md5 (License): Likewise.
40535         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40536         * modules/crypto/gc-random (License): Likewise.
40537         * modules/crypto/gc-rijndael (License): Likewise.
40538         * modules/crypto/gc-sha1 (License): Likewise.
40539         * modules/crypto/md2 (License): Likewise.
40540         * modules/crypto/md4 (License): Likewise.
40541
40542 2007-07-30  Jim Meyering  <jim@meyering.net>
40543
40544         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40545         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40546         it has valid stat data.  This bug would cause du not to count the
40547         sizes of inaccessible directories.
40548         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40549         in <http://bugzilla.redhat.com/250077>.
40550
40551 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40552             Bruno Haible  <bruno@clisp.org>
40553
40554         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40555         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40556         #include_next, gives a diagnostic about it, but reports no error in
40557         the exit code.
40558         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40559
40560 2007-07-24  Ben Pfaff  <blp@gnu.org>
40561
40562         Improve name: "count-one-bits" is better than "popcount".
40563         * MODULES.html.sh: Update name.
40564         * lib/popcount.h: Renamed lib/count-one-bits.h.
40565         (popcount): Renamed count_one_bits.
40566         (popcountl): Renamed count_one_bits_l.
40567         (popcountll): Renamed count_one_bits_ll.
40568         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40569         * modules/popcount: Renamed module/count-one-bits.
40570         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40571         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40572
40573 2007-07-23  Ben Pfaff  <blp@gnu.org>
40574
40575         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40576         better code generation, and add U to large constants to avoid
40577         warnings, in non-GCC case.
40578         Suggested by Bruno Haible.
40579
40580 2007-07-23  Ben Pfaff  <blp@gnu.org>
40581
40582         * lib/popcount.h: Use verify_true instead of if...abort.
40583         * modules/popcount: Depend on verify module.
40584         Suggested by Jim Meyering.
40585
40586 2007-07-23  Bruno Haible  <bruno@clisp.org>
40587
40588         * gnulib-tool (func_import): Create a .cvsignore file also when the
40589         directory is not yet in CVS but the toplevel directory is. When
40590         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40591         Reported by Karl Berry.
40592
40593 2007-07-22  Ben Pfaff  <blp@gnu.org>
40594
40595         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40596         case.
40597         Suggested by Eric Blake.
40598
40599 2007-07-22  Ben Pfaff  <blp@gnu.org>
40600
40601         New module: popcount.
40602         * MODULES.html.sh: Add popcount.
40603         * modules/popcount: New file.
40604         * modules/popcount-tests: New file.
40605         * tests/test-popcount.c: New file.
40606         * lib/popcount.h: New file.
40607         * m4/popcount.m4: New file.
40608
40609 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40610
40611         * build-aux/announce-gen: Update to GPLv3.
40612
40613         * build-aux/config.guess: Update from config.
40614
40615 2007-07-21  Bruno Haible  <bruno@clisp.org>
40616
40617         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40618         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40619
40620 2007-07-20  Jim Meyering  <jim@meyering.net>
40621
40622         * check-module: Diagnose a self-dependency.
40623
40624 2007-07-19  Bruno Haible  <bruno@clisp.org>
40625
40626         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40627         empty.
40628         Reported by Eric Blake.
40629
40630 2007-07-18  Bruno Haible  <bruno@clisp.org>
40631
40632         * gnulib-tool: New options --po-base, --po-domain.
40633         (func_usage): Document them.
40634         (pobase, po_domain): New variables.
40635         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40636         DEFAULT_TEXT_DOMAIN.
40637         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40638         (func_import): Consider pobase and po_domain. Create a po/ directory.
40639         (func_create_testdir): Set pobase and po_domain to empty.
40640         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40641         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40642
40643 2007-07-18  Bruno Haible  <bruno@clisp.org>
40644
40645         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40646         EXTRA_DIST augmentation for files in build-aux/.
40647
40648 2007-07-16  Bruno Haible  <bruno@clisp.org>
40649
40650         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40651         * modules/getdelim (License): Likewise.
40652
40653 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40654
40655         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40656         * modules/d-type (License): Likewise.
40657         * modules/extensions (License): Likewise.
40658         * modules/fnmatch (License): Likewise.
40659         * modules/fseeko (License): Likewise.
40660         * modules/getaddrinfo (License): Likewise.
40661         * modules/getline (License): Likewise.
40662         * modules/getlogin_r (License): Likewise.
40663         * modules/getpass (License): Likewise.
40664         * modules/gettimeofday (License): Likewise.
40665         * modules/glob (License): Likewise.
40666         * modules/inet_ntop (License): Likewise.
40667         * modules/malloc (License): Likewise.
40668         * modules/malloca (License): Likewise.
40669         * modules/memmem (License): Likewise.
40670         * modules/mempcpy (License): Likewise.
40671         * modules/memset (License): Likewise.
40672         * modules/minmax (License): Likewise.
40673         * modules/mktime (License): Likewise.
40674         * modules/netinet_in (License): Likewise.
40675         * modules/pathmax (License): Likewise.
40676         * modules/poll (License): Likewise.
40677         * modules/regex (License): Likewise.
40678         * modules/snprintf (License): Likewise.
40679         * modules/stdbool (License): Likewise.
40680         * modules/stdint (License): Likewise.
40681         * modules/stdio (License): Likewise.
40682         * modules/strcase (License): Likewise.
40683         * modules/strcasestr (License): Likewise.
40684         * modules/strdup (License): Likewise.
40685         * modules/string (License): Likewise.
40686         * modules/strndup (License): Likewise.
40687         * modules/strnlen (License): Likewise.
40688         * modules/strpbrk (License): Likewise.
40689         * modules/strptime (License): Likewise.
40690         * modules/strsep (License): Likewise.
40691         * modules/sys_select (License): Likewise.
40692         * modules/sys_socket (License): Likewise.
40693         * modules/sys_stat (License): Likewise.
40694         * modules/sys_time (License): Likewise.
40695         * modules/time (License): Likewise.
40696         * modules/time_r (License): Likewise.
40697         * modules/timegm (License): Likewise.
40698         * modules/unistd (License): Likewise.
40699         * modules/vsnprintf (License): Likewise.
40700         * modules/wctype (License): Likewise.
40701
40702 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40703
40704         * modules/argz (License): LGPLv2+.
40705
40706 2007-07-15  Karl Berry  <karl@gnu.org>
40707
40708         * doc/gnulib.texi: revise node structure per new fdl.texi.
40709
40710 2007-07-14  Bruno Haible  <bruno@clisp.org>
40711
40712         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40713         the output file.
40714         * lib/uniname/uninames.h: Regenerated.
40715
40716 2007-07-14  Karl Berry  <karl@gnu.org>
40717
40718         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40719         omitting sectioning and index commands.
40720
40721 2007-07-13  Bruno Haible  <bruno@clisp.org>
40722
40723         New gnulib-tool option --more-symlinks.
40724         * gnulib-tool (func_usage): Document --more-symlinks.
40725         (do_copyrights): New variable.
40726         Recognize option --more-symlinks.
40727         (func_import): Don't add a copyright notice transform to
40728         sed_transform_lib_file if do_copyrights is empty.
40729
40730 2007-07-13  Bruno Haible  <bruno@clisp.org>
40731
40732         * lib/vasnprintf.c (decimal_point_char): Define also if
40733         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40734         && !NEED_PRINTF_DIRECTIVE_A.
40735         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40736         Gary V. Vaughan <gary@gnu.org>.
40737
40738 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40739
40740         * lib/inttypes_.h: Undo previous change, since it was fixed
40741         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40742
40743 2007-07-13  Bruno Haible  <bruno@clisp.org>
40744
40745         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40746         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40747
40748 2007-07-13  Jim Meyering  <jim@meyering.net>
40749
40750         df: Don't fail for Tru64's "file-on-file mount".
40751         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40752         so we fall through and use statfs instead.  Details here:
40753         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40754         Reported by Albert Chin.
40755
40756 2007-07-13  Bruno Haible  <bruno@clisp.org>
40757
40758         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40759         * modules/configmake (License): Likewise.
40760         * modules/gettext (License): Likewise.
40761         * modules/gettext-h (License): Likewise.
40762         * modules/include_next (License): Likewise.
40763         * modules/link-warning (License): Likewise.
40764         * modules/localcharset (License): Likewise.
40765         * modules/localename (License): Likewise.
40766         * modules/lock (License): Likewise.
40767         * modules/relocatable-lib-lgpl (License): Likewise.
40768         * modules/size_max (License): Likewise.
40769         * modules/vasnprintf (License): Likewise.
40770         * modules/wchar (License): Likewise.
40771         * modules/xsize (License): Likewise.
40772
40773 2007-07-13  Bruno Haible  <bruno@clisp.org>
40774
40775         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40776         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40777
40778 2007-07-12  Bruno Haible  <bruno@clisp.org>
40779
40780         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40781         in the modules files.
40782
40783 2007-07-11  Karl Berry  <karl@gnu.org>
40784
40785         * MODULES.html.sh (func_module): use
40786          sed -e '\|^'"${includefile}"'$|d'
40787          instead of /.../d, to avoid errors on $includefile's containing /.
40788
40789 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40790
40791         * gnulib-tool (func_import): Avoid duplication of --avoid
40792         statements
40793         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40794         names to `_' in variable names.
40795
40796 2007-07-10  Eric Blake  <ebb9@byu.net>
40797
40798         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40799         * NEWS: Document this change.
40800
40801 2007-07-08  Bruno Haible  <bruno@clisp.org>
40802
40803         Update to Unicode 5.0.
40804         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40805         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40806         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40807         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40808         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40809         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40810         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40811         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40812         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40813         U+10A3F, U+1D242..U+1D244.
40814         (nonspacing_table_ind): Update.
40815         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40816         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40817
40818 2007-07-08  Bruno Haible  <bruno@clisp.org>
40819
40820         Update to Unicode 5.0.
40821         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40822         code transform. Extend the name index field of unicode_name_to_code and
40823         unicode_code_to_name from 16 to 24 bits.
40824         * lib/uniname/uniname.c (unicode_character_name,
40825         unicode_name_character): Add the range 0x12xxx to the code transform.
40826         * lib/uniname/uninames.h: Regenerated.
40827         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40828
40829 2007-07-07  Bruno Haible  <bruno@clisp.org>
40830
40831         * modules/wcwidth-tests: New file.
40832         * tests/test-wcwidth.c: New file.
40833
40834         Work around MacOS X wcwidth() bug.
40835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40836         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40837         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40838         original wcwidth in non-UTF-8 locales.
40839         * modules/wcwidth (Depends-on): Add localcharset, streq,
40840         uniwidth/width.
40841         * doc/functions/wcwidth.texi: Update.
40842
40843 2007-07-07  Bruno Haible  <bruno@clisp.org>
40844
40845         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40846         (wcwidth): New declaration.
40847         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40848         macros.
40849         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40850         here. Prepare for creating <wchar.h> unconditionally.
40851         * modules/wchar (Depends-on): Add link-warning.
40852         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40853         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40854         * lib/wcwidth.h: Remove file.
40855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40856         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40857         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40858         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40859         (Include): Replace wcwidth.h with <wchar.h>.
40860         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40861         * lib/mbchar.h: Don't include wcwidth.h.
40862         * lib/mbswidth.c: Likewise.
40863         * NEWS: Mention the change.
40864
40865 2007-07-07  Bruno Haible  <bruno@clisp.org>
40866
40867         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40868         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40869         definition with an external declaration.
40870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40871         defined as a function. Remove AC_C_INLINE requirement.
40872         * modules/wcwidth (Files): Add lib/wcwidth.c.
40873         (Makefile.am): Remove redundant statement.
40874
40875 2007-07-07  Bruno Haible  <bruno@clisp.org>
40876
40877         * MODULES.html.sh (Unicode string functions): Add the new modules.
40878
40879         * tests/uniwidth/test-u32-strwidth.c: New file.
40880         * modules/uniwidth/u32-strwidth-tests: New file.
40881
40882         * lib/uniwidth/u32-strwidth.c: New file.
40883         * modules/uniwidth/u32-strwidth: New file.
40884
40885         * tests/uniwidth/test-u16-strwidth.c: New file.
40886         * modules/uniwidth/u16-strwidth-tests: New file.
40887
40888         * lib/uniwidth/u16-strwidth.c: New file.
40889         * modules/uniwidth/u16-strwidth: New file.
40890
40891         * tests/uniwidth/test-u8-strwidth.c: New file.
40892         * modules/uniwidth/u8-strwidth-tests: New file.
40893
40894         * lib/uniwidth/u8-strwidth.c: New file.
40895         * modules/uniwidth/u8-strwidth: New file.
40896
40897         * tests/uniwidth/test-u32-width.c: New file.
40898         * modules/uniwidth/u32-width-tests: New file.
40899
40900         * lib/uniwidth/u32-width.c: New file.
40901         * modules/uniwidth/u32-width: New file.
40902
40903         * tests/uniwidth/test-u16-width.c: New file.
40904         * modules/uniwidth/u16-width-tests: New file.
40905
40906         * lib/uniwidth/u16-width.c: New file.
40907         * modules/uniwidth/u16-width: New file.
40908
40909         * tests/uniwidth/test-u8-width.c: New file.
40910         * modules/uniwidth/u8-width-tests: New file.
40911
40912         * lib/uniwidth/u8-width.c: New file.
40913         * modules/uniwidth/u8-width: New file.
40914
40915         * tests/uniwidth/test-uc_width.c: New file.
40916         * modules/uniwidth/width-tests: New file.
40917
40918         * lib/uniwidth/width.c: New file, from GNU libiconv.
40919         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40920         * modules/uniwidth/width: New file.
40921
40922         * lib/uniwidth.h: New file, from GNU libiconv.
40923         * modules/uniwidth/base: New file.
40924
40925 2007-07-07  Bruno Haible  <bruno@clisp.org>
40926
40927         * lib/uniname.h: New file, from GNU gettext.
40928         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40929         * lib/uniname/uninames.h: New file, from GNU gettext.
40930         * lib/uniname/uniname.c: New file, from GNU gettext.
40931         * tests/uniname/test-uninames.sh: New file.
40932         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40933         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40934         * modules/uniname/base: New file.
40935         * modules/uniname/uniname: New file.
40936         * modules/uniname/uniname-tests: New file.
40937         * MODULES.html.sh (Unicode string functions): Add the new modules.
40938
40939 2007-07-06  Bruno Haible  <bruno@clisp.org>
40940
40941         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40942
40943 2007-07-06  Bruno Haible  <bruno@clisp.org>
40944
40945         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40946         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40947         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40948         include <sys/time.h>.
40949         Reported by Eric Blake.
40950
40951 2007-07-06  Eric Blake  <ebb9@byu.net>
40952
40953         Fix testing canonicalize on cygwin.
40954         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40955         Revert patch from 2007-06-19.
40956         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40957         canonicalize module is also in use.
40958         * tests/test-canonicalize.c: New file.
40959         * tests/test-canonicalize.sh: Likewise.
40960         * modules/canonicalize-tests: Likewise.
40961
40962 2007-07-06  Jim Meyering  <jim@meyering.net>
40963
40964         * lib/getugroups.c (getugroups): Detect getgrent failure.
40965         Adjust comment to reflect reality: this function may return -1.
40966
40967 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40968
40969         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40970         the new TP address.
40971         (usage): Fix typo
40972         (gnulib_mk): New variable.
40973
40974 2007-07-05  Jim Meyering  <jim@meyering.net>
40975
40976         Don't let endgrent clobber errno, no matter how improbable.
40977         * lib/getugroups.c (getugroups): Save and restore errno around
40978         endgrent call.
40979
40980         Close the group DB even when failing with 2^31 or more members.
40981         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40982
40983 2007-07-04  Jim Meyering  <jim@meyering.net>
40984
40985         * lib/getugroups.h: New file.
40986         * lib/getugroups.c: Include "getugroups.h".
40987         Remove uses of "register" keyword.
40988         Move local variable, "cp", down into scope where used.
40989         Give "username" parameter the "const" attribute.
40990         * modules/getugroups (Files): Add lib/getugroups.h
40991
40992 2007-07-04  Karl Berry  <karl@gnu.org>
40993
40994         * MODULES.html.sh (func_all_modules): Complete rename of
40995         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40996
40997 2007-07-02  Bruno Haible  <bruno@clisp.org>
40998
40999         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
41000         mode, when inttypes.h comes from gnulib.
41001         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41002
41003 2007-07-02  Simon Josefsson  <simon@josefsson.org>
41004
41005         * NEWS: Mention lgpl module name change.
41006
41007         * modules/lgpl-2.1: Renamed from lgpl.
41008
41009         * NEWS: Mention gpl module name change.
41010
41011         * modules/gpl-3.0: New file, based on gpl-2.0.
41012
41013         * modules/gpl-2.0: Renamed from gpl.
41014
41015         * modules/gpl: Fix filename, doc/gpl.texi is now found at
41016         doc/gpl-2.0.texi.
41017
41018 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
41019
41020         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
41021         #define __STDC_LIMIT_MACROS temporarily while including
41022         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
41023         Problem reported by Joel E. Denny in
41024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
41025
41026 2007-07-01  Bruno Haible  <bruno@clisp.org>
41027
41028         * lib/unistdio.h: New file.
41029         * lib/unistdio/u-asnprintf.h: New file.
41030         * lib/unistdio/u-asprintf.h: New file.
41031         * lib/unistdio/u-printf-args.c: New file.
41032         * lib/unistdio/u-printf-args.h: New file.
41033         * lib/unistdio/u-printf-parse.h: New file.
41034         * lib/unistdio/u-snprintf.h: New file.
41035         * lib/unistdio/u-sprintf.h: New file.
41036         * lib/unistdio/u-vasprintf.h: New file.
41037         * lib/unistdio/u-vsnprintf.h: New file.
41038         * lib/unistdio/u-vsprintf.h: New file.
41039         * lib/unistdio/ulc-asnprintf.c: New file.
41040         * lib/unistdio/ulc-asprintf.c: New file.
41041         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
41042         * lib/unistdio/ulc-printf-parse.c: New file.
41043         * lib/unistdio/ulc-snprintf.c: New file.
41044         * lib/unistdio/ulc-sprintf.c: New file.
41045         * lib/unistdio/ulc-vasnprintf.c: New file.
41046         * lib/unistdio/ulc-vasprintf.c: New file.
41047         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
41048         * lib/unistdio/ulc-vsnprintf.c: New file.
41049         * lib/unistdio/ulc-vsprintf.c: New file.
41050         * lib/unistdio/u8-asnprintf.c: New file.
41051         * lib/unistdio/u8-asprintf.c: New file.
41052         * lib/unistdio/u8-printf-parse.c: New file.
41053         * lib/unistdio/u8-snprintf.c: New file.
41054         * lib/unistdio/u8-sprintf.c: New file.
41055         * lib/unistdio/u8-vasnprintf.c: New file.
41056         * lib/unistdio/u8-vasprintf.c: New file.
41057         * lib/unistdio/u8-vsnprintf.c: New file.
41058         * lib/unistdio/u8-vsprintf.c: New file.
41059         * lib/unistdio/u8-u8-asnprintf.c: New file.
41060         * lib/unistdio/u8-u8-asprintf.c: New file.
41061         * lib/unistdio/u8-u8-snprintf.c: New file.
41062         * lib/unistdio/u8-u8-sprintf.c: New file.
41063         * lib/unistdio/u8-u8-vasnprintf.c: New file.
41064         * lib/unistdio/u8-u8-vasprintf.c: New file.
41065         * lib/unistdio/u8-u8-vsnprintf.c: New file.
41066         * lib/unistdio/u8-u8-vsprintf.c: New file.
41067         * lib/unistdio/u16-asnprintf.c: New file.
41068         * lib/unistdio/u16-asprintf.c: New file.
41069         * lib/unistdio/u16-printf-parse.c: New file.
41070         * lib/unistdio/u16-snprintf.c: New file.
41071         * lib/unistdio/u16-sprintf.c: New file.
41072         * lib/unistdio/u16-vasnprintf.c: New file.
41073         * lib/unistdio/u16-vasprintf.c: New file.
41074         * lib/unistdio/u16-vsnprintf.c: New file.
41075         * lib/unistdio/u16-vsprintf.c: New file.
41076         * lib/unistdio/u16-u16-asnprintf.c: New file.
41077         * lib/unistdio/u16-u16-asprintf.c: New file.
41078         * lib/unistdio/u16-u16-snprintf.c: New file.
41079         * lib/unistdio/u16-u16-sprintf.c: New file.
41080         * lib/unistdio/u16-u16-vasnprintf.c: New file.
41081         * lib/unistdio/u16-u16-vasprintf.c: New file.
41082         * lib/unistdio/u16-u16-vsnprintf.c: New file.
41083         * lib/unistdio/u16-u16-vsprintf.c: New file.
41084         * lib/unistdio/u32-asnprintf.c: New file.
41085         * lib/unistdio/u32-asprintf.c: New file.
41086         * lib/unistdio/u32-printf-parse.c: New file.
41087         * lib/unistdio/u32-snprintf.c: New file.
41088         * lib/unistdio/u32-sprintf.c: New file.
41089         * lib/unistdio/u32-vasnprintf.c: New file.
41090         * lib/unistdio/u32-vasprintf.c: New file.
41091         * lib/unistdio/u32-vsnprintf.c: New file.
41092         * lib/unistdio/u32-vsprintf.c: New file.
41093         * lib/unistdio/u32-u32-asnprintf.c: New file.
41094         * lib/unistdio/u32-u32-asprintf.c: New file.
41095         * lib/unistdio/u32-u32-snprintf.c: New file.
41096         * lib/unistdio/u32-u32-sprintf.c: New file.
41097         * lib/unistdio/u32-u32-vasnprintf.c: New file.
41098         * lib/unistdio/u32-u32-vasprintf.c: New file.
41099         * lib/unistdio/u32-u32-vsnprintf.c: New file.
41100         * lib/unistdio/u32-u32-vsprintf.c: New file.
41101         * tests/unistdio/test-ulc-asnprintf1.c: New file.
41102         * tests/unistdio/test-ulc-asnprintf1.h: New file.
41103         * tests/unistdio/test-ulc-printf1.h: New file.
41104         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
41105         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
41106         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
41107         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
41108         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
41109         * tests/unistdio/test-ulc-vasprintf1.c: New file.
41110         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
41111         * tests/unistdio/test-ulc-vsprintf1.c: New file.
41112         * tests/unistdio/test-u8-asnprintf1.c: New file.
41113         * tests/unistdio/test-u8-asnprintf1.h: New file.
41114         * tests/unistdio/test-u8-printf1.h: New file.
41115         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41116         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41117         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41118         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41119         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41120         * tests/unistdio/test-u8-vasprintf1.c: New file.
41121         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41122         * tests/unistdio/test-u8-vsprintf1.c: New file.
41123         * tests/unistdio/test-u16-asnprintf1.c: New file.
41124         * tests/unistdio/test-u16-asnprintf1.h: New file.
41125         * tests/unistdio/test-u16-printf1.h: New file.
41126         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41127         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41128         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41129         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41130         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41131         * tests/unistdio/test-u16-vasprintf1.c: New file.
41132         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41133         * tests/unistdio/test-u16-vsprintf1.c: New file.
41134         * tests/unistdio/test-u32-asnprintf1.c: New file.
41135         * tests/unistdio/test-u32-asnprintf1.h: New file.
41136         * tests/unistdio/test-u32-printf1.h: New file.
41137         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41138         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41139         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41140         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41141         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41142         * tests/unistdio/test-u32-vasprintf1.c: New file.
41143         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41144         * tests/unistdio/test-u32-vsprintf1.c: New file.
41145         * modules/unistdio/base: New file.
41146         * modules/unistdio/u-printf-args: New file.
41147         * modules/unistdio/ulc-asnprintf: New file.
41148         * modules/unistdio/ulc-asprintf: New file.
41149         * modules/unistdio/ulc-fprintf: New file.
41150         * modules/unistdio/ulc-printf-parse: New file.
41151         * modules/unistdio/ulc-snprintf: New file.
41152         * modules/unistdio/ulc-sprintf: New file.
41153         * modules/unistdio/ulc-vasnprintf: New file.
41154         * modules/unistdio/ulc-vasprintf: New file.
41155         * modules/unistdio/ulc-vfprintf: New file.
41156         * modules/unistdio/ulc-vsnprintf: New file.
41157         * modules/unistdio/ulc-vsprintf: New file.
41158         * modules/unistdio/u8-asnprintf: New file.
41159         * modules/unistdio/u8-asprintf: New file.
41160         * modules/unistdio/u8-printf-parse: New file.
41161         * modules/unistdio/u8-snprintf: New file.
41162         * modules/unistdio/u8-sprintf: New file.
41163         * modules/unistdio/u8-vasnprintf: New file.
41164         * modules/unistdio/u8-vasprintf: New file.
41165         * modules/unistdio/u8-vsnprintf: New file.
41166         * modules/unistdio/u8-vsprintf: New file.
41167         * modules/unistdio/u8-u8-asnprintf: New file.
41168         * modules/unistdio/u8-u8-asprintf: New file.
41169         * modules/unistdio/u8-u8-snprintf: New file.
41170         * modules/unistdio/u8-u8-sprintf: New file.
41171         * modules/unistdio/u8-u8-vasnprintf: New file.
41172         * modules/unistdio/u8-u8-vasprintf: New file.
41173         * modules/unistdio/u8-u8-vsnprintf: New file.
41174         * modules/unistdio/u8-u8-vsprintf: New file.
41175         * modules/unistdio/u16-asnprintf: New file.
41176         * modules/unistdio/u16-asprintf: New file.
41177         * modules/unistdio/u16-printf-parse: New file.
41178         * modules/unistdio/u16-snprintf: New file.
41179         * modules/unistdio/u16-sprintf: New file.
41180         * modules/unistdio/u16-vasnprintf: New file.
41181         * modules/unistdio/u16-vasprintf: New file.
41182         * modules/unistdio/u16-vsnprintf: New file.
41183         * modules/unistdio/u16-vsprintf: New file.
41184         * modules/unistdio/u16-u16-asnprintf: New file.
41185         * modules/unistdio/u16-u16-asprintf: New file.
41186         * modules/unistdio/u16-u16-snprintf: New file.
41187         * modules/unistdio/u16-u16-sprintf: New file.
41188         * modules/unistdio/u16-u16-vasnprintf: New file.
41189         * modules/unistdio/u16-u16-vasprintf: New file.
41190         * modules/unistdio/u16-u16-vsnprintf: New file.
41191         * modules/unistdio/u16-u16-vsprintf: New file.
41192         * modules/unistdio/u32-asnprintf: New file.
41193         * modules/unistdio/u32-asprintf: New file.
41194         * modules/unistdio/u32-printf-parse: New file.
41195         * modules/unistdio/u32-snprintf: New file.
41196         * modules/unistdio/u32-sprintf: New file.
41197         * modules/unistdio/u32-vasnprintf: New file.
41198         * modules/unistdio/u32-vasprintf: New file.
41199         * modules/unistdio/u32-vsnprintf: New file.
41200         * modules/unistdio/u32-vsprintf: New file.
41201         * modules/unistdio/u32-u32-asnprintf: New file.
41202         * modules/unistdio/u32-u32-asprintf: New file.
41203         * modules/unistdio/u32-u32-snprintf: New file.
41204         * modules/unistdio/u32-u32-sprintf: New file.
41205         * modules/unistdio/u32-u32-vasnprintf: New file.
41206         * modules/unistdio/u32-u32-vasprintf: New file.
41207         * modules/unistdio/u32-u32-vsnprintf: New file.
41208         * modules/unistdio/u32-u32-vsprintf: New file.
41209         * modules/unistdio/ulc-asnprintf-tests: New file.
41210         * modules/unistdio/ulc-vasnprintf-tests: New file.
41211         * modules/unistdio/ulc-vasprintf-tests: New file.
41212         * modules/unistdio/ulc-vsnprintf-tests: New file.
41213         * modules/unistdio/ulc-vsprintf-tests: New file.
41214         * modules/unistdio/u8-asnprintf-tests: New file.
41215         * modules/unistdio/u8-vasnprintf-tests: New file.
41216         * modules/unistdio/u8-vasprintf-tests: New file.
41217         * modules/unistdio/u8-vsnprintf-tests: New file.
41218         * modules/unistdio/u8-vsprintf-tests: New file.
41219         * modules/unistdio/u16-asnprintf-tests: New file.
41220         * modules/unistdio/u16-vasnprintf-tests: New file.
41221         * modules/unistdio/u16-vasprintf-tests: New file.
41222         * modules/unistdio/u16-vsnprintf-tests: New file.
41223         * modules/unistdio/u16-vsprintf-tests: New file.
41224         * modules/unistdio/u32-asnprintf-tests: New file.
41225         * modules/unistdio/u32-vasnprintf-tests: New file.
41226         * modules/unistdio/u32-vasprintf-tests: New file.
41227         * modules/unistdio/u32-vsnprintf-tests: New file.
41228         * modules/unistdio/u32-vsprintf-tests: New file.
41229         * MODULES.html.sh (Unicode string functions): Add the new modules.
41230
41231 2007-07-01  Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/sprintf.c (sprintf): Limit the available length estimation,
41234         to avoid address wraparound.
41235         * lib/vsprintf.c (vsprintf): Likewise.
41236         * modules/sprintf-posix (Dependencies): Add stdint.
41237         * modules/vsprintf-posix (Dependencies): Likewise.
41238
41239 2007-07-01  Bruno Haible  <bruno@clisp.org>
41240
41241         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41242         Windows PATH as well. Conservative double-quoting. Comments.
41243
41244 2007-07-01  Bruno Haible  <bruno@clisp.org>
41245             Eric Blake  <ebb9@byu.net>
41246             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41247
41248         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41249         empty components in $PATH, denoting '.'.
41250
41251 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41252
41253         * gnulib-tool: Fix indentation.
41254         (func_create_megatestdir): Likewise.
41255         Report by Bruno Haible.
41256
41257 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41258
41259         Sync from Automake.
41260         * build-aux/gnupload: Fix shell portability issues with for loops.
41261         Report by Karl Berry.
41262
41263 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41264
41265         * build-aux/maint.mk (POURL): Use translationproject.org.
41266
41267 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41268             Bruno Haible  <bruno@clisp.org>
41269
41270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41271         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41272         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41273         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41274         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41275
41276 2007-06-27  Bruno Haible  <bruno@clisp.org>
41277
41278         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41279         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41280
41281 2007-06-26  Karl Berry  <karl@gnu.org>
41282
41283         * MODULES.html.sh: remove xreadlink-with-size.
41284
41285 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41286
41287         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41288         method that I hope also handles the double-include problem noted
41289         by Bruno Haible in
41290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41291
41292 2007-06-23  Bruno Haible  <bruno@clisp.org>
41293
41294         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41295         Don't let the 'mostlyclean' target fail if the last subdirectory could
41296         not be removed.
41297         Reported by Karl Berry.
41298
41299 2007-06-23  Bruno Haible  <bruno@clisp.org>
41300
41301         * gnulib-tool (echo): Add a speedier workaround for ksh.
41302         * tests/test-echo.sh: Likewise.
41303
41304 2007-06-23  Bruno Haible  <bruno@clisp.org>
41305
41306         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41307         * tests/test-echo.sh: Likewise.
41308
41309 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41310
41311         * gnulib-tool (IFS): Initialize early, so we don't set it to
41312         empty later.
41313         (self_abspathname): Rewrite algorithm to set it, reindent.
41314         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41315         (func_create_megatestdir): Merge some sed scripts.
41316
41317 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41318
41319         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41320         exposed by Sun Studio 11 cc on Solaris 8.
41321
41322 2007-06-22  Bruno Haible  <bruno@clisp.org>
41323
41324         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41325         backslashes.
41326         * tests/test-echo.sh: New file.
41327
41328 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41329
41330         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41331         simplify `sed_replace_build_aux' scripts, they are portable but
41332         echoing them with `echo' is not.
41333         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41334
41335 2007-06-21  Karl Berry  <karl@gnu.org>
41336
41337         * config/srclist.txt: guess we can't handle the licenses via
41338         srclist at the moment.
41339
41340 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41341
41342         * MODULES.html.sh: Add include_next.
41343         * modules/include_next: New file.
41344
41345 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41346
41347         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41348         INCLUDE_NEXT.
41349         (gl_CHECK_NEXT_HEADERS): New macro.
41350         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41351         the obsolescent gl_ABSOLUTE_HEADER.
41352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41353         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41354         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41355         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41356         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41357         * m4/math_h.m4 (gl_MATH_H): Likewise.
41358         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41359         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41360         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41361         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41362         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41363         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41364         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41369         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41370         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41371         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41372         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41373         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41374         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41375         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41376         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41377         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41378         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41379         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41380         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41381         * lib/float_.h: Likewise.
41382         * lib/inttypes_.h: Likewise.
41383         * lib/math_.h: Likewise.
41384         * lib/search_.h: Likewise.
41385         * lib/signal_.h: Likewise.
41386         * lib/stdint_.h: Likewise.
41387         * lib/stdio_.h: Likewise.
41388         * lib/stdlib_.h: Likewise.
41389         * lib/string_.h: Likewise.
41390         * lib/sys_stat_.h: Likewise.
41391         * lib/sys_time_.h: Likewise.
41392         * lib/time_.h: Likewise.
41393         * lib/unistd_.h: Likewise.
41394         * lib/wchar_.h: Likewise.
41395         * lib/wctype_.h: Likewise.
41396         * lib/dirent_.h: Likewise.
41397         * lib/iconv_.h: Likewise.
41398         * lib/locale_.h: Likewise.
41399         * lib/netinet_in_.h: Likewise.
41400         * lib/sys_select_.h: Likewise.
41401         * lib/sys_socket_.h: Likewise.
41402         * lib/sysexits_.h: Likewise.
41403         * modules/fcntl (Depends-on): Depend on include_next, not
41404         absolute_header.
41405         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41406         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41407         * modules/fchdir: Likewise.
41408         * modules/float: Likewise.
41409         * modules/iconv_open: Likewise.
41410         * modules/inttypes: Likewise.
41411         * modules/locale: Likewise.
41412         * modules/math: Likewise.
41413         * modules/netinet_in: Likewise.
41414         * modules/search: Likewise.
41415         * modules/signal: Likewise.
41416         * modules/stdint: Likewise.
41417         * modules/stdio: Likewise.
41418         * modules/stdlib: Likewise.
41419         * modules/string: Likewise.
41420         * modules/sys_select: Likewise.
41421         * modules/sys_socket: Likewise.
41422         * modules/sys_stat: Likewise.
41423         * modules/sys_time: Likewise.
41424         * modules/sysexits: Likewise.
41425         * modules/time: Likewise.
41426         * modules/unistd: Likewise.
41427         * modules/wchar: Likewise.
41428         * modules/wctype: Likewise.
41429         * modules/sys_stat: Change maintainer to "all".
41430         * modules/unistd: Likewise.
41431
41432 2007-06-20  Karl Berry  <karl@gnu.org>
41433
41434         * config/srclist.txt: track www changes in license files.
41435
41436 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41437
41438         * build-aux/bootstrap: Remove stray dot.
41439         Make sure build_aux settings are honored when linking
41440         gnulib_extra_files.
41441
41442 2007-06-19  Eric Blake  <ebb9@byu.net>
41443
41444         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41445         Allow compilation on cygwin.
41446
41447 2007-06-19  Jim Meyering  <jim@meyering.net>
41448
41449         xreadlink-with-size: Remove module.  No longer used.
41450         Ex-callers now use xreadlink or mreadlink-with-size.
41451         * modules/xreadlink-with-size: Remove module.
41452         * lib/xreadlink-with-size.c: Remove file.
41453         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41454         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41455         just before the function definition *is* accurate.
41456
41457         Eliminate one way canonicalize_filename_mode could exit.
41458         * lib/canonicalize.c (canonicalize_filename_mode):
41459         Use mreadlink_with_size, not xreadlink_with_size.
41460
41461 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41462
41463         Detect porting problems to FreeBSD/arm, which has time_t wider than
41464         long int.  Original problem reported for GNU diff by Xin Li in
41465         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41466         * modules/getdate (Depends-on): Add intprops, verify.
41467         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41468         is an integer type no wider than long int.
41469
41470 2007-06-18  Jim Meyering  <jim@meyering.net>
41471
41472         New module: mreadlink-with-size.
41473         * MODULES.html.sh: Add mreadlink-with-size.
41474         * modules/mreadlink-with-size: New module
41475         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41476         not xreadlink-with-size.
41477         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41478
41479 2007-06-16  Bruno Haible  <bruno@clisp.org>
41480
41481         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41482         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41483         Reported by Gary V. Vaughan <gary@gnu.org>.
41484
41485 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41486
41487         Revamp lchown so that it lives in unistd.h where it belongs.
41488         * lib/lchown.h: Remove.
41489         * lib/dirchownmod.c: Don't include lib/lchown.h.
41490         * lib/fchownat.c: Likewise.
41491         * lib/openat.c: Likewise.
41492         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41493         does not follow symlinks.
41494         (EOPNOTSUPP): Define if not defined.
41495         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41496         is defined to 0.
41497         (lchown): New decl.
41498         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41499         Do not check for lchown decl.
41500         Set REPLACE_LCHOWN.
41501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41502         REPLACE_LCHOWN.
41503         * modules/chown: Make it clear it follows symlinks.
41504         * modules/lchown: Make it clear it doesn't follow symlinks.
41505         (Files): Remove lib/lchown.h
41506         (Depends-on): Add unistd.
41507         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41508         (Include): Include <unistd.h>, not "lchown.h".
41509         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41510         REPLACE_LCHOWN.
41511
41512 2007-06-15  Jim Meyering  <jim@meyering.net>
41513
41514         Change license (GPL to LGPL) of fsusage and dependents.
41515         * modules/fsusage (License): Change to LGPL.
41516         * modules/full-read (License): Likewise.
41517         * modules/full-write (License): Likewise.
41518         * modules/safe-read (License): Likewise.
41519         * modules/safe-write (License): Likewise.
41520
41521 2007-06-14  Ben Pfaff  <blp@gnu.org>
41522
41523         Missing part of allocsa -> malloca transition.
41524         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41525         gl_MALLOCA.
41526
41527 2007-06-12  Bruno Haible  <bruno@clisp.org>
41528
41529         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41530         to ia64, x86_64, i386.
41531         Reported by Eric Blake.
41532
41533 2007-06-12  Bruno Haible  <bruno@clisp.org>
41534
41535         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41536         cross-compiling to x86_64.
41537
41538 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41539
41540         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41541         glitch reported by Ralf Wildenhues in
41542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41543
41544         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41545         Vin Shelton.
41546
41547 2007-06-11  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41550         replacement string.
41551         Reported by Eric Blake.
41552
41553 2007-06-10  Bruno Haible  <bruno@clisp.org>
41554
41555         Prepare vasnprintf code for use with Unicode strings.
41556         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41557         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41558         TYPE_U32_STRING.
41559         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41560         a_u32_string variants.
41561         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41562         * lib/printf-args.c: Don't include config.h and the specification
41563         header if PRINTF_FETCHARGS is already defined.
41564         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41565         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41566         TYPE_U16_STRING, TYPE_U32_STRING.
41567         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41568         u16_directive, u16_directives, u32_directive, u32_directives): New
41569         types.
41570         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41571         New declarations.
41572         * lib/printf-parse.c: Don't include config.h and the specification
41573         header if PRINTF_PARSE is already defined. Eliminate the set of
41574         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41575         them now. Include c-ctype.h.
41576         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41577         directive and CHAR_T_ONLY_ASCII.
41578         * lib/vasnprintf.c: Don't include config.h and the specification header
41579         if VASNPRINTF is already defined.
41580         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41581         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41582         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41583         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41584         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41585         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41586         code accordingly.
41587         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41588         pad_ourselves also in this case, with the 'c' and 's' directives, and
41589         with a different notion of "width".
41590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41591
41592 2007-06-10  Bruno Haible  <bruno@clisp.org>
41593
41594         * modules/unistr/u32-mbsnlen: New file.
41595         * lib/unistr/u32-mbsnlen.c: New file.
41596
41597         * modules/unistr/u16-mbsnlen: New file.
41598         * lib/unistr/u16-mbsnlen.c: New file.
41599
41600         * modules/unistr/u8-mbsnlen: New file.
41601         * lib/unistr/u8-mbsnlen.c: New file.
41602
41603         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41604         declarations.
41605
41606 2007-06-10  Bruno Haible  <bruno@clisp.org>
41607
41608         * lib/string_.h (mbsnlen): New declaration.
41609         * lib/mbsnlen.c: New file.
41610         * m4/mbsnlen.m4: New file.
41611         * modules/mbsnlen: New file.
41612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41613         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41614         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41615
41616 2007-06-10  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41619
41620 2007-06-10  Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41623         * lib/mbuiter.h: Likewise.
41624
41625 2007-06-10  Bruno Haible  <bruno@clisp.org>
41626
41627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41628         declaration.
41629
41630 2007-06-10  Karl Berry  <karl@gnu.org>
41631
41632         * config/srclist.txt: remove gettext entries, Bruno prefers
41633         to update individually.
41634
41635 2007-06-10  Bruno Haible  <bruno@clisp.org>
41636
41637         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41638         'maxlen'. Ensure only length + width bytes are allocated, not
41639         length + 1 + width.
41640
41641 2007-06-09  Bruno Haible  <bruno@clisp.org>
41642
41643         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41644         (CHAR_T): Remove macro.
41645         (VASNPRINTF): Update.
41646
41647 2007-06-09  Bruno Haible  <bruno@clisp.org>
41648
41649         * MODULES.html.sh (Unicode string functions): Add the new modules.
41650
41651         * modules/uniconv/u32-conv-to-enc: New file.
41652         * lib/uniconv/u32-conv-to-enc.c: New file.
41653         * modules/uniconv/u32-conv-to-enc-tests: New file.
41654         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41655
41656         * modules/uniconv/u16-conv-to-enc: New file.
41657         * lib/uniconv/u16-conv-to-enc.c: New file.
41658         * lib/uniconv/u-conv-to-enc.h: New file.
41659         * modules/uniconv/u16-conv-to-enc-tests: New file.
41660         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41661
41662         * modules/uniconv/u8-conv-to-enc: New file.
41663         * lib/uniconv/u8-conv-to-enc.c: New file.
41664         * modules/uniconv/u8-conv-to-enc-tests: New file.
41665         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41666
41667         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41668         u32_conv_to_encoding): New declarations.
41669
41670 2007-06-09  Bruno Haible  <bruno@clisp.org>
41671
41672         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41673
41674 2007-06-09  Bruno Haible  <bruno@clisp.org>
41675
41676         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41677         * modules/malloca: Renamed from modules/allocsa, updated.
41678         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41679         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41680         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41681         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41682         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41683         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41684         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41685         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41686         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41687         * modules/c-strcasestr (Depends-on): Update.
41688         * lib/c-strcasestr.c: Update.
41689         * modules/c-strstr (Depends-on): Update.
41690         * lib/c-strstr.c: Update.
41691         * modules/canonicalize-lgpl (Depends-on): Update.
41692         * lib/canonicalize-lgpl.c: Update.
41693         * modules/clean-temp (Depends-on): Update.
41694         * lib/clean-temp.c: Update.
41695         * modules/csharpcomp (Depends-on): Update.
41696         * lib/csharpcomp.c: Update.
41697         * modules/csharpexec (Depends-on): Update.
41698         * lib/csharpexec.c: Update.
41699         * modules/javacomp (Depends-on): Update.
41700         * lib/javacomp.c: Update.
41701         * modules/javaexec (Depends-on): Update.
41702         * lib/javaexec.c: Update.
41703         * modules/mbscasestr (Depends-on): Update.
41704         * lib/mbscasestr.c: Update.
41705         * modules/mbsstr (Depends-on): Update.
41706         * lib/mbsstr.c: Update.
41707         * modules/setenv (Depends-on): Update.
41708         * lib/setenv.c: Update.
41709         * modules/strcasestr (Depends-on): Update.
41710         * lib/strcasestr.c: Update.
41711         * modules/striconveha (Depends-on): Update.
41712         * lib/striconveha.c: Update.
41713         * modules/relocatable-prog-wrapper (Files): Update.
41714         * lib/relocwrapper.c: Update.
41715         * build-aux/install-reloc: Update.
41716         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41717
41718 2007-06-08  Bruno Haible  <bruno@clisp.org>
41719
41720         Port to uClibc.
41721         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41722         * lib/fpurge.c (fpurge): Likewise.
41723         * lib/freading.c (freading): Likewise.
41724         * lib/fseeko.c (rpl_fseeko): Likewise.
41725         * lib/fseterr.c (fseterr): Likewise.
41726         * lib/fwriting.c (fwriting): Likewise.
41727         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41728
41729 2007-06-08  Bruno Haible  <bruno@clisp.org>
41730
41731         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41732         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41733         * modules/gettext (Files): Add m4/intlmacosx.m4.
41734
41735 2007-06-07  Bruno Haible  <bruno@clisp.org>
41736
41737         * modules/localename-tests: New file.
41738         * tests/test-localename.c: New file.
41739
41740         New module 'localename'.
41741         * lib/localename.h: New file.
41742         * lib/localename.c: New file, from GNU gettext.
41743         * m4/localename.m4: New file.
41744         * modules/localename: New file.
41745
41746 2007-06-07  Bruno Haible  <bruno@clisp.org>
41747
41748         Work around the lack of <wchar.h> on some builds of uClibc.
41749         * doc/headers/wchar.texi: Update.
41750         * lib/wchar_.h: Include <wchar.h> only if it exists.
41751         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41752         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41753         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41754         doesn't exist.
41755         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41756         * modules/mbfile (Depends-on): Add wchar.
41757         * modules/mbiter (Depends-on): Likewise.
41758         * modules/mbuiter (Depends-on): Likewise.
41759         Reported by Simon Josefsson.
41760
41761 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41762
41763         Work around problem reported by Steven M. Schweda in
41764         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41765         Tru64 5.1B with the Compaq compiler environment installed declares
41766         an 'isblank' function but does not define it in the C library.
41767         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41768         * lib/regex_internal.h (isblank): Likewise.
41769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41770         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41771
41772 2007-06-05  Bruno Haible  <bruno@clisp.org>
41773
41774         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41775         ia64.
41776         * modules/printf-safe: New file.
41777         * modules/fprintf-posix (Depends-on): Add printf-safe.
41778         * modules/printf-posix (Depends-on): Likewise.
41779         * modules/snprintf-posix (Depends-on): Likewise.
41780         * modules/sprintf-posix (Depends-on): Likewise.
41781         * modules/vasnprintf-posix (Depends-on): Likewise.
41782         * modules/vasprintf-posix (Depends-on): Likewise.
41783         * modules/vfprintf-posix (Depends-on): Likewise.
41784         * modules/vprintf-posix (Depends-on): Likewise.
41785         * modules/vsnprintf-posix (Depends-on): Likewise.
41786         * modules/vsprintf-posix (Depends-on): Likewise.
41787         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41788         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41789         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41790         "no" on i386, x86_64, ia64.
41791         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41792         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41793         on i386, x86_64, ia64.
41794         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41795         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41796         on i386, x86_64, ia64.
41797         * tests/test-vasnprintf-posix.c: Include float.h.
41798         (LDBL80_WORDS): New macro.
41799         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41800         on i386, x86_64, ia64.
41801         * tests/test-vasprintf-posix.c: Include float.h.
41802         (LDBL80_WORDS): New macro.
41803         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41804         on i386, x86_64, ia64.
41805         * tests/test-snprintf-posix.c: Include float.h.
41806         * tests/test-sprintf-posix.c: Likewise.
41807         * tests/test-vsnprintf-posix.c: Likewise.
41808         * tests/test-vsprintf-posix.c: Likewise.
41809
41810 2007-06-05  Bruno Haible  <bruno@clisp.org>
41811
41812         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41813         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41814         non-IEEE numbers on i386, x86_64, ia64.
41815         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41816         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41817         * tests/test-isnanl.h: Include float.h.
41818         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41819
41820 2007-06-05  Bruno Haible  <bruno@clisp.org>
41821
41822         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41823         also the %a / %A. Handle the %a / %A code before this extra handling.
41824
41825 2007-06-05  Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41828         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41829
41830 2007-06-05  Bruno Haible  <bruno@clisp.org>
41831
41832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41833         typo in variable name.
41834
41835 2007-06-05  Eric Blake  <ebb9@byu.net>
41836
41837         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41838         Reported by Simon Josefsson.
41839
41840 2007-06-04  Bruno Haible  <bruno@clisp.org>
41841
41842         Avoid test failures on some PowerPC platforms.
41843         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41844         Define differently for PowerPC.
41845         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41846         Reported by Gary V. Vaughan <gary@gnu.org>.
41847
41848 2007-06-02  Bruno Haible  <bruno@clisp.org>
41849
41850         Fix test-stdint failure on FreeBSD/ia64.
41851         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41852         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41853         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41854         * doc/headers/stdint.texi: Update.
41855
41856 2007-06-01  Bruno Haible  <bruno@clisp.org>
41857
41858         * tests/test-binary-io.c (main): Pass a third argument to open().
41859         Reported by Gary V. Vaughan <gary@gnu.org>.
41860
41861 2007-06-01  Bruno Haible  <bruno@clisp.org>
41862
41863         * doc/functions/frexpl.texi: Update for mingw.
41864
41865 2007-06-01  Bruno Haible  <bruno@clisp.org>
41866
41867         * tests/test-lseek.c (main): Disable test of errno for invalid third
41868         argument.
41869         * doc/functions/lseek.texi: Update.
41870         Reported by Gary V. Vaughan <gary@gnu.org>.
41871
41872 2007-05-28  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41875
41876 2007-05-31  Eric Blake  <ebb9@byu.net>
41877
41878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41879         cross compiling.
41880
41881 2007-05-30  Eric Blake  <ebb9@byu.net>
41882         and Bruno Haible  <bruno@clisp.org>
41883
41884         Work around mingw test failures exposed by m4-1.4.9b.
41885         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41886         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41887         moment.
41888
41889 2007-05-30  Bruno Haible  <bruno@clisp.org>
41890
41891         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41892         assuming that they are closed. Needed on HP-UX 11.
41893
41894 2007-05-29  Bruno Haible  <bruno@clisp.org>
41895
41896         Fix a problem with #include_next.
41897         * lib/dirent_.h: Split the double-inclusion guard.
41898         * lib/fcntl_.h: Likewise.
41899         * lib/float_.h: Likewise.
41900         * lib/iconv_.h: Likewise.
41901         * lib/inttypes_.h: Likewise.
41902         * lib/locale_.h: Likewise.
41903         * lib/math_.h: Likewise.
41904         * lib/netinet_in_.h: Likewise.
41905         * lib/search_.h: Likewise.
41906         * lib/signal_.h: Likewise.
41907         * lib/stdint_.h: Likewise.
41908         * lib/stdio_.h: Likewise.
41909         * lib/stdlib_.h: Likewise.
41910         * lib/string_.h: Likewise.
41911         * lib/sys_select_.h: Likewise.
41912         * lib/sys_socket_.h: Likewise.
41913         * lib/sys_stat_.h: Likewise.
41914         * lib/sys_time_.h: Likewise.
41915         * lib/sysexits_.h: Likewise.
41916         * lib/time_.h: Likewise.
41917         * lib/unistd_.h: Likewise.
41918         * lib/wchar_.h: Likewise.
41919         * lib/wctype_.h: Likewise.
41920
41921 2007-05-29  Bruno Haible  <bruno@clisp.org>
41922
41923         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41924         for the moment.
41925
41926 2007-05-29  Bruno Haible  <bruno@clisp.org>
41927
41928         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41929         invocation.
41930         Reported by Eric Blake.
41931
41932 2007-05-29  Bruno Haible  <bruno@clisp.org>
41933
41934         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41935         compiling case.
41936
41937 2007-05-29  Eric Blake  <ebb9@byu.net>
41938             Bruno Haible  <bruno@clisp.org>
41939
41940         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41941         cross compiles.
41942
41943 2007-05-28  Eric Blake  <ebb9@byu.net>
41944
41945         * modules/closein-tests (test_closein_LDADD): Support test on
41946         cygwin with libtool.
41947
41948 2007-05-28  Bruno Haible  <bruno@clisp.org>
41949
41950         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41951         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41952         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41953         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41954         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41955         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41956         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41957         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41958         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41959
41960 2007-05-28  Eric Blake  <ebb9@byu.net>
41961
41962         Unconditionally include <config.h> in unit tests.
41963         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41964         * tests/test-allocsa.c, tests/test-arcfour.c,
41965         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41966         tests/test-array_list.c, tests/test-array_oset.c,
41967         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41968         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41969         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41970         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41971         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41972         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41973         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41974         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41975         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41976         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41977         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41978         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41979         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41980         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41981         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41982         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41983         test-md5.c, test-memmem.c, test-printf-posix.c,
41984         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41985         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41986         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41987         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41988         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41989         test-vasnprintf-posix2.c, test-vasnprintf.c,
41990         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41991         test-vfprintf-posix.c, test-vprintf-posix.c,
41992         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41993         test-xvasprintf.c: Likewise.
41994
41995 2007-05-28  Bruno Haible  <bruno@clisp.org>
41996
41997         * gnulib-tool (func_import): Remember the --with-tests command-line
41998         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41999         Reported by Eric Blake.
42000
42001 2007-05-28  Bruno Haible  <bruno@clisp.org>
42002
42003         * modules/ftell-tests: New file.
42004         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
42005         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
42006
42007         * lib/ftell.c: New file.
42008         * modules/ftell: New file.
42009         * m4/ftell.m4: New file.
42010         * doc/functions/ftell.texi: Update.
42011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
42012         REPLACE_FTELL.
42013         * lib/stdio_.h (rpl_ftell): New declaration.
42014         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
42015         REPLACE_FTELL.
42016
42017 2007-05-28  Eric Blake  <ebb9@byu.net>
42018
42019         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
42020
42021 2007-05-28  Bruno Haible  <bruno@clisp.org>
42022
42023         * modules/fseek-tests: New file.
42024         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
42025         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
42026
42027         * lib/fseek.c: New file.
42028         * modules/fseek: New file.
42029         * m4/fseek.m4: New file.
42030         * doc/functions/fseek.texi: Update.
42031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
42032         REPLACE_FSEEK.
42033         * lib/stdio_.h (rpl_fseek): New declaration.
42034         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
42035         REPLACE_FSEEK.
42036
42037 2007-05-28  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/stdio_.h (fflush): More comments.
42040
42041 2007-05-28  Bruno Haible  <bruno@clisp.org>
42042
42043         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
42044         runtime test.
42045
42046 2007-05-28  Eric Blake  <ebb9@byu.net>
42047
42048         Improve lseek module.
42049         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
42050         * lib/unistd_.h (lseek): Scale back link warning message.
42051         * tests/test-lseek.c: Beef up test.
42052         * tests/test-lseek.sh: Exercise more facets of lseek.
42053         Reported by Bruno Haible.
42054
42055 2007-05-28  Bruno Haible  <bruno@clisp.org>
42056
42057         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
42058         to define.
42059
42060 2007-05-27  Bruno Haible  <bruno@clisp.org>
42061
42062         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
42063
42064 2007-05-27  Bruno Haible  <bruno@clisp.org>
42065
42066         * modules/openmp: New file.
42067         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
42068         Noah Misch.
42069
42070 2007-05-26  Bruno Haible  <bruno@clisp.org>
42071
42072         * modules/chdir-long (Depends-on): Add fchdir.
42073         * modules/chdir-safer (Depends-on): Likewise.
42074         * modules/fts (Depends-on): Likewise.
42075         * modules/fts-lgpl (Depends-on): Likewise.
42076         * modules/openat (Depends-on): Likewise.
42077         * modules/savewd (Depends-on): Likewise.
42078
42079 2007-05-24  Eric Blake  <ebb9@byu.net>
42080
42081         Fix lseek on mingw.
42082         * modules/lseek: New module.
42083         * m4/lseek.m4: New file.
42084         * lib/lseek.c: New file.
42085         * modules/lseek-tests: New file.
42086         * tests/test-lseek.c: New file.
42087         * tests/test-lseek.sh: New file.
42088         * MODULES.html.sh: Document lseek module.
42089         * modules/fflush (Depends-on): Add lseek, fseeko.
42090         * modules/fseeko (Depends-on): Likewise.
42091         * modules/ftello (Depends-on): Likewise.
42092         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
42093         broken.
42094         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
42095         broken.
42096         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
42097         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
42098         * lib/ftello.c (rpl_ftello): Likewise.
42099         * tests/test-fseeko.c (main): Test this.
42100         * tests/test-fseeko.sh: Likewise.
42101         * tests/test-ftello.c (main): Likewise.
42102         * tests/test-ftello.sh: Likewise.
42103         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
42104         implies replacing fseek.
42105         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
42106         HAVE_FTELLO.
42107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
42108         * modules/unistd (Makefile.am): Likewise.
42109         * lib/unistd_.h (lseek): Declare a replacement.
42110         * doc/functions/lseek.texi (lseek): Document this fix.
42111         * doc/functions/fseek.texi (fseek): Likewise.
42112         * doc/functions/ftell.texi (ftell): Likewise.
42113
42114 2007-05-24  Bruno Haible  <bruno@clisp.org>
42115
42116         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42117         in the printed representation of a NaN.
42118         * tests/test-vasprintf-posix.c (test_function): Likewise.
42119         * tests/test-snprintf-posix.h (test_function): Likewise.
42120         * tests/test-sprintf-posix.h (test_function): Likewise.
42121         Reported by Eric Blake.
42122
42123 2007-05-23  Eric Blake  <ebb9@byu.net>
42124
42125         Fix fseeko/ftello on cygwin 1.5.24.
42126         * doc/functions/fseeko.texi (fseeko): Document the fix.
42127         * doc/functions/ftello.texi (ftello): Document the fix.
42128         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42129         * doc/functions/stdout.text (stdout): New file.
42130         * doc/functions/stderr.text (stderr): New file.
42131         * doc/gnulib.texi (Function Substitutes): Use new files.
42132         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42133         prior to 1.7.0.
42134         * tests/test-ftello.c (main): Likewise for ftello.
42135         * tests/test-fseeko.sh: New file.
42136         * tests/test-ftello.sh: New file.
42137         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42138         with seekable stdin.
42139         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42140         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42141         (gl_REPLACE_FSEEKO): New macro.
42142         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42143         * modules/fseeko (Files): Distribute fseeko.c.
42144         * modules/ftello (Files): Distribute ftello.c.
42145         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42146         mode.
42147         * lib/ftello.c (rpl_ftello): New file.
42148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42149         fseeko, ftello.
42150         (gl_STDIN_LARGE_OFFSET): New macro.
42151         * modules/stdio (Makefile.am): Perform the replacement.
42152         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42153
42154 2007-05-23  Bruno Haible  <bruno@clisp.org>
42155
42156         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42157         GNULIB_POSIXCHECK is defined.
42158
42159 2007-05-21  Bruno Haible  <bruno@clisp.org>
42160
42161         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42162         Check also the output for NaN arguments. When cross-compiling, guess
42163         no on IRIX.
42164         * lib/vasnprintf.c: Update comments.
42165         * tests/test-vasnprintf-posix.c (strisnan): New function.
42166         (test_function): Use it.
42167         * tests/test-vasprintf-posix.c (strisnan): New function.
42168         (test_function): Use it.
42169         * tests/test-snprintf-posix.h (strisnan): New function.
42170         (test_function): Use it.
42171         * tests/test-sprintf-posix.h (strisnan): New function.
42172         (test_function): Use it.
42173         Reported by Eric Blake.
42174
42175 2007-05-20  Bruno Haible  <bruno@clisp.org>
42176
42177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42178         numbers that fails on BeOS.
42179         * doc/functions/frexpl.texi: Update.
42180
42181 2007-05-20  Jim Meyering  <jim@meyering.net>
42182
42183         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42184         forced upon us by glibc-2.6.
42185
42186 2007-05-20  Bruno Haible  <bruno@clisp.org>
42187
42188         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42189         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42190         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42191         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42192         NEED_PRINTF_INFINITE.
42193         (is_infinitel): New function.
42194         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42196         gl_PREREQ_VASNPRINTF_INFINITE.
42197         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42199         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42200         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42201         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42202         gl_PREREQ_VASNPRINTF_INFINITE.
42203         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42204         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42206         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42207         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42208         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42209         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42210         * doc/functions/fprintf.texi: Update.
42211         * doc/functions/printf.texi: Update.
42212         * doc/functions/snprintf.texi: Update.
42213         * doc/functions/sprintf.texi: Update.
42214         * doc/functions/vfprintf.texi: Update.
42215         * doc/functions/vprintf.texi: Update.
42216         * doc/functions/vsnprintf.texi: Update.
42217         * doc/functions/vsprintf.texi: Update.
42218
42219 2007-05-20  Bruno Haible  <bruno@clisp.org>
42220
42221         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42222         was not found in libc.
42223         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42224
42225 2007-05-20  Bruno Haible  <bruno@clisp.org>
42226
42227         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42228         printed as "-nan" instead of "nan".
42229         * tests/test-vasprintf-posix.c (test_function): Likewise.
42230         * tests/test-snprintf-posix.h (test_function): Likewise.
42231         * tests/test-sprintf-posix.h (test_function): Likewise.
42232         Needed for HP-UX 11.
42233
42234 2007-05-20  Jim Meyering  <jim@meyering.net>
42235
42236         Fix buggy test for the fchownat-deref bug.
42237         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42238         symlink required for the run-test.  Without it, this test would
42239         always declare that fchownat doesn't work, and client code would
42240         unnecessarily use the replacement function with fixed libc.
42241         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42242         Reported by Greg Schafer.
42243
42244 2007-05-19  Bruno Haible  <bruno@clisp.org>
42245
42246         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42247         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42248         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42249         Needed for IRIX 6.5 and Solaris 2.5.1.
42250
42251 2007-05-19  Bruno Haible  <bruno@clisp.org>
42252
42253         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42254         (test_function): Skip tests involving -0.0 on platforms where
42255         -0.0 = 0.0.
42256         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42257         (test_function): Skip tests involving -0.0 on platforms where
42258         -0.0 = 0.0.
42259         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42260         (test_function): Skip tests involving -0.0 on platforms where
42261         -0.0 = 0.0.
42262         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42263         (test_function): Skip tests involving -0.0 on platforms where
42264         -0.0 = 0.0.
42265         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42266         tests.
42267         * tests/test-printf-posix.h (test_function): Likewise.
42268         * tests/test-printf-posix.output: Remove all -0.0 related results.
42269         Needed for IRIX 6.5.
42270
42271 2007-05-19  Bruno Haible  <bruno@clisp.org>
42272
42273         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42274         printed as "nan0x7fffffff" instead of "nan".
42275         * tests/test-vasprintf-posix.c (test_function): Likewise.
42276         * tests/test-snprintf-posix.h (test_function): Likewise.
42277         * tests/test-sprintf-posix.h (test_function): Likewise.
42278         * tests/test-fprintf-posix.h (NaN): Remove macro.
42279         (test_function): Remove all NaN related tests.
42280         * tests/test-printf-posix.h (NaN): Remove macro.
42281         (test_function): Remove all NaN related tests.
42282         * tests/test-printf-posix.output: Remove all NaN related results.
42283         Needed for IRIX 6.5.
42284
42285 2007-05-19  Bruno Haible  <bruno@clisp.org>
42286
42287         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42288         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42289
42290 2007-05-19  Bruno Haible  <bruno@clisp.org>
42291
42292         * lib/float_.h: New file.
42293         * m4/float_h.m4: New file.
42294         * modules/float: New file.
42295         * modules/isnanl (Dependencies): Add float.
42296         * modules/isnanl-nolibm (Dependencies): Likewise.
42297         * modules/mathl (Dependencies): Likewise.
42298         * modules/printf-frexpl (Dependencies): Likewise.
42299         * modules/signbit (Dependencies): Likewise.
42300         * modules/vasnprintf (Dependencies): Likewise.
42301         * doc/headers/float.texi: Update.
42302
42303 2007-05-19  Jim Meyering  <jim@meyering.net>
42304
42305         * lib/utimens.c (gl_futimens): Rename from futimens,
42306         now that glibc-2.6 declares futimens.
42307         * lib/utimens.h: Likewise.
42308
42309 2007-05-19  Bruno Haible  <bruno@clisp.org>
42310
42311         Avoid test failures on mingw.
42312         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42313         * tests/test-printf-posix.sh: Likewise.
42314         * tests/test-vfprintf-posix.sh: Likewise.
42315         * tests/test-vprintf-posix.sh: Likewise.
42316
42317 2007-05-19  Bruno Haible  <bruno@clisp.org>
42318
42319         Fix *printf result for NaN, Inf, -0.0 on mingw.
42320         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42321         * lib/vasnprintf.c: Include math.h and isnan.h.
42322         (is_infinite_or_zero): New function.
42323         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42324         values in the %f, %F, %e, %E, %g, %G directives.
42325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42326         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42327         gl_PRINTF_INFINITE and test its result. Invoke
42328         gl_PREREQ_VASNPRINTF_INFINITE.
42329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42336         * doc/functions/fprintf.texi: Update.
42337         * doc/functions/printf.texi: Update.
42338         * doc/functions/snprintf.texi: Update.
42339         * doc/functions/sprintf.texi: Update.
42340         * doc/functions/vfprintf.texi: Update.
42341         * doc/functions/vprintf.texi: Update.
42342         * doc/functions/vsnprintf.texi: Update.
42343         * doc/functions/vsprintf.texi: Update.
42344
42345 2007-05-19  Bruno Haible  <bruno@clisp.org>
42346
42347         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42348         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42349         Instead of multiplying with 10^k, set extra_zeroes to k.
42350         (scale10_round_long_double): Remove function.
42351
42352 2007-05-18  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42355         introduced on 2007-05-06.
42356
42357 2007-05-18  Bruno Haible  <bruno@clisp.org>
42358
42359         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42360         %g directives.
42361         * tests/test-vasprintf-posix.c (test_function): Likewise.
42362         * tests/test-snprintf-posix.h (test_function): Likewise.
42363         * tests/test-sprintf-posix.h (test_function): Likewise.
42364
42365 2007-05-18  Bruno Haible  <bruno@clisp.org>
42366
42367         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42368         (strmatch): New function.
42369         (test_function): Test the %f directive on numbers of various exponents.
42370         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42371         (strmatch): New function.
42372         (test_function): Test the %f directive on numbers of various exponents.
42373         * tests/test-snprintf-posix.h (strmatch): New function.
42374         (test_function): Test the %f directive on numbers of various exponents.
42375         * tests/test-sprintf-posix.h (strmatch): New function.
42376         (test_function): Test the %f directive on numbers of various exponents.
42377         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42378         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42379         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42380         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42381
42382 2007-05-18  Bruno Haible  <bruno@clisp.org>
42383
42384         Add support for 'long double' number output.
42385         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42386         * lib/vasnprintf.c: Include math.h and float+.h.
42387         (mp_limb_t): New type.
42388         (GMP_LIMB_BITS): New macro.
42389         (mp_twolimb_t): New type.
42390         (GMP_TWOLIMB_BITS): New macro.
42391         (mpn_t): New type.
42392         (multiply, divide, convert_to_decimal, decode_long_double,
42393         scale10_round_long_double, scale10_round_decimal_long_double,
42394         floorlog10l): New functions.
42395         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42396         for the %f, %F, %e, %E, %g, %G directives.
42397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42399         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42400         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42401         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42405         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42408         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42409         * modules/snprintf-posix (Depends-on): Likewise.
42410         * modules/sprintf-posix (Depends-on): Likewise.
42411         * modules/vasnprintf-posix (Depends-on): Likewise.
42412         * modules/vasprintf-posix (Depends-on): Likewise.
42413         * modules/vfprintf-posix (Depends-on): Likewise.
42414         * modules/vsnprintf-posix (Depends-on): Likewise.
42415         * modules/vsprintf-posix (Depends-on): Likewise.
42416         * modules/vasnprintf (Files): Add lib/float+.h.
42417         * doc/functions/fprintf.texi: Update.
42418         * doc/functions/printf.texi: Update.
42419         * doc/functions/snprintf.texi: Update.
42420         * doc/functions/sprintf.texi: Update.
42421         * doc/functions/vfprintf.texi: Update.
42422         * doc/functions/vprintf.texi: Update.
42423         * doc/functions/vsnprintf.texi: Update.
42424         * doc/functions/vsprintf.texi: Update.
42425
42426 2007-05-18  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42429
42430 2007-05-18  Bruno Haible  <bruno@clisp.org>
42431
42432         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42433         for printing 64-bit integers. Needed for mingw.
42434
42435 2007-05-18  Bruno Haible  <bruno@clisp.org>
42436
42437         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42438         gl_FUNC_FREXPL_WORKS.
42439         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42440
42441 2007-05-18  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/frexpl-nolibm-tests: New file.
42444
42445         * modules/frexpl-nolibm: New file.
42446         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42447
42448 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42449
42450         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42451         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42452         GCC 4.2, which otherwise issues a lot of warnings.
42453         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42454         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42455         Likewise.
42456         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42457         * modules/iconv_open (iconv.h): Likewise.
42458         * modules/locale (locale.h): Likewise.
42459         * modules/netinet_in (netinet/in.h): Likewise.
42460         * modules/sys_select (sys_select.h): Likewise.
42461         * modules/sys_socket (sys/socket.h): Likewise.
42462         * modules/sys_stat (sys/stat.h): Likewise.
42463         * modules/sysexits (sysexits.h): Likewise.
42464         * modules/unistd (unistd.h): Likewise.
42465
42466 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42467
42468         * modules/closein-tests (Makefile.am): Distribute
42469         `test-closein.sh'.
42470
42471 2007-05-17  Bruno Haible  <bruno@clisp.org>
42472
42473         * tests/test-printf-posix.output: Renamed from
42474         tests/test-fprintf-posix.out.
42475         * modules/fprintf-posix-tests: Update.
42476         * modules/printf-posix-tests: Update.
42477         * modules/vfprintf-posix-tests: Update.
42478         * modules/vprintf-posix-tests: Update.
42479         * tests/test-fprintf-posix.sh: Update.
42480         * tests/test-printf-posix.sh: Update.
42481         * tests/test-vfprintf-posix.sh: Update.
42482         * tests/test-vprintf-posix.sh: Update.
42483         Reported by Ralf Wildenhues.
42484
42485 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42486
42487         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42488         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42489         GCC 4.2, which otherwise issues a lot of warnings.
42490         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42491         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42492         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42493         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42494         it should no longer be needed.
42495         * lib/string_.h: Likewise.
42496         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42497         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42498         * modules/inttypes (inttypes.h): Likewise.
42499         * modules/math (math.h): Likewise.
42500         * modules/search (search.h): Likewise.
42501         * modules/signal (signal.h): Likewise.
42502         * modules/stdint (stdint.h): Likewise.
42503         * modules/stdio (stdio.h): Likewise.
42504         * modules/stdlib (stdlib.h): Likewise.
42505         * modules/string (string.h): Likewise.
42506         * modules/sys_time (sys/time.h): Likewise.
42507         * modules/time (time.h): Likewise.
42508         * modules/wchar (wchar.h): Likewise.
42509         * modules/wctype (wtype.h): Likewise.
42510
42511 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42512
42513         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42514
42515 2007-05-13  Bruno Haible  <bruno@clisp.org>
42516
42517         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42518         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42519         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42520         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42521         (gl_PREREQ_STRTOK_R): Don't require it here.
42522
42523 2007-05-13  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42526         when used in C++ mode.
42527
42528 2007-05-12  Bruno Haible  <bruno@clisp.org>
42529
42530         * lib/linebuffer.h: Tweak doc.
42531         * lib/linebuffer.c: Likewise.
42532
42533 2007-05-12  James Youngman  <jay@gnu.org>
42534
42535         * lib/linebuffer.c (readlinebuffer_delim): New function,
42536         like readlinebuffer, but use a caller-specified delimiter.
42537         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42538         as the delimiter.
42539         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42540
42541 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42542
42543         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42544         * modules/openat (Files): Remove openat-die.c.
42545         (Depends-on): Add openat-die.
42546         * modules/openat-die: New module.
42547
42548 2007-05-06  Bruno Haible  <bruno@clisp.org>
42549
42550         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42551         Update with info about Cygwin.
42552         * doc/functions/fprintf.texi: Update.
42553         * doc/functions/printf.texi: Update.
42554         * doc/functions/snprintf.texi: Update.
42555         * doc/functions/sprintf.texi: Update.
42556         * doc/functions/vfprintf.texi: Update.
42557         * doc/functions/vprintf.texi: Update.
42558         * doc/functions/vsnprintf.texi: Update.
42559         * doc/functions/vsprintf.texi: Update.
42560         Reported by Eric Blake.
42561
42562 2007-05-06  Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42565         padding ourselves for the floating-point directives.
42566         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42569         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42570         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42572         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42578         * tests/test-snprintf-posix.h (test_function): Also check the width
42579         and some flags in the %f directive.
42580         * tests/test-sprintf-posix.h (test_function): Likewise.
42581         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42582         * tests/test-vasprintf-posix.c (test_function): Likewise.
42583         * doc/functions/fprintf.texi: Update.
42584         * doc/functions/printf.texi: Update.
42585         * doc/functions/snprintf.texi: Update.
42586         * doc/functions/sprintf.texi: Update.
42587         * doc/functions/vfprintf.texi: Update.
42588         * doc/functions/vprintf.texi: Update.
42589         * doc/functions/vsnprintf.texi: Update.
42590         * doc/functions/vsprintf.texi: Update.
42591
42592 2007-05-06  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42595         pass the ' flag character to sprintf or snprintf.
42596         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42599         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42600         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42601         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42602         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42603         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42605         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42607         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42608         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42609         flag.
42610         * tests/test-sprintf-posix.h (test_function): Likewise.
42611         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42612         * tests/test-vasprintf-posix.c (test_function): Likewise.
42613         * doc/functions/fprintf.texi: Update.
42614         * doc/functions/printf.texi: Update.
42615         * doc/functions/snprintf.texi: Update.
42616         * doc/functions/sprintf.texi: Update.
42617         * doc/functions/vfprintf.texi: Update.
42618         * doc/functions/vprintf.texi: Update.
42619         * doc/functions/vsnprintf.texi: Update.
42620         * doc/functions/vsprintf.texi: Update.
42621
42622 2007-05-01  Bruno Haible  <bruno@clisp.org>
42623
42624         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42625
42626 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42627
42628         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42629         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42630
42631 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42632
42633         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42634         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42636
42637 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42638
42639         * lib/argp-help.c (struct hol_entry): New member `ord'.
42640         (HOL_ENTRY_PTRCMP): Use ord for comparison
42641         (hol_sort): Initialize ord.
42642
42643 2007-05-01  Bruno Haible  <bruno@clisp.org>
42644
42645         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42646         Reported by Eric Blake.
42647         * doc/gnulib.texi (Function Substitutes): Update.
42648
42649 2007-05-01  Bruno Haible  <bruno@clisp.org>
42650
42651         * doc/functions.texi: Remove file, now redundant through
42652         doc/functions/*.texi.
42653
42654 2007-05-01  Bruno Haible  <bruno@clisp.org>
42655
42656         * modules/argp (Depends-on): Add sleep.
42657
42658 2007-05-01  Bruno Haible  <bruno@clisp.org>
42659
42660         * modules/sleep-tests: New file.
42661         * tests/test-sleep.c: New file.
42662
42663         * modules/sleep: New file.
42664         * lib/sleep.c: New file.
42665         * m4/sleep.m4: New file.
42666         * lib/unistd_.h (sleep): New declaration.
42667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42668         HAVE_SLEEP.
42669         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42670         * doc/functions/sleep.texi: Document the sleep module.
42671
42672 2007-05-01  Bruno Haible  <bruno@clisp.org>
42673
42674         * lib/sigprocmask.h: Remove file.
42675         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42676         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42677         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42678         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42679         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42680         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42681         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42682         HAVE_SIGSET_T as a shell variable.
42683         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42684         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42685         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42686         (Depends-on): Add signal. Remove verify.
42687         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42688         (Include): Mention <signal.h> instead of sigprocmask.h.
42689         * NEWS: Mention the change.
42690         * lib/fatal-signal.c: Don't include sigprocmask.h.
42691
42692 2007-05-01  Bruno Haible  <bruno@clisp.org>
42693
42694         * modules/signal: New file.
42695         * lib/signal_.h: New file.
42696         * m4/signal_h.m4: New file.
42697
42698 2007-05-01  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42701         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42702         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42703         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42704
42705 2007-05-01  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42708         configure time.
42709         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42710         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42711         * modules/sys_stat (Makefile.am): Substitute their values into
42712         sys/stat.h.
42713
42714 2007-05-01  Bruno Haible  <bruno@clisp.org>
42715
42716         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42717         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42718         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42719
42720 2007-05-01  Bruno Haible  <bruno@clisp.org>
42721
42722         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42723         'assert' module here.
42724
42725 2007-05-01  Bruno Haible  <bruno@clisp.org>
42726
42727         * doc/functions/*.texi: New files.
42728         * doc/functions/google-ranking.txt: New file.
42729         * doc/gnulib.texi (Function Substitutes): New chapter.
42730         (ctime, inet_ntoa): Remove sections.
42731         * doc/ctime.texi: Remove file.
42732         * doc/inet_ntoa.texi: Remove file.
42733         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42734         dependencies.
42735         (%.info): New rule, specifying a --reference-limit.
42736
42737 2007-05-01  Bruno Haible  <bruno@clisp.org>
42738
42739         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42740
42741 2007-05-01  Bruno Haible  <bruno@clisp.org>
42742
42743         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42744         the portability of 'mkdir' to mingw systems.
42745
42746 2007-05-01  Bruno Haible  <bruno@clisp.org>
42747
42748         * doc/headers/google-ranking.txt: New file.
42749
42750 2007-04-30  Eric Blake  <ebb9@byu.net>
42751
42752         Prefer fseeko to fseek.
42753         * modules/getpass (Depends-on): Add fseeko.
42754         * lib/getpass.c (getpass): Use fseeko, not fseek.
42755
42756 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42757
42758         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42759         assumes the sorting is stable, while most qsort implementations
42760         are not.  Use argument addresses to ensure they never compare as
42761         equal.
42762
42763         * tests/test-argp-2.sh (usage-indent test): Fix output
42764         (func_compare): Restore diff options
42765         * tests/test-argp.c: Restore #include "progname.h"
42766
42767 2007-04-29  Bruno Haible  <bruno@clisp.org>
42768
42769         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42770         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42771         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42773         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42774         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42775         (TESTS, check_PROGRAMS): Add test-snprintf.
42776         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42777         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42778         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42779         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42780         assertions that fail on HP-UX, OSF/1, or IRIX.
42781         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42782
42783 2007-04-29  Bruno Haible  <bruno@clisp.org>
42784
42785         * MODULES.html.sh (posix_functions): Remove 'contents'.
42786
42787 2007-04-29  Karl Berry  <karl@gnu.org>
42788
42789         * config/srclist.txt (gendocs_template_min): new entry.
42790
42791 2007-04-29  Bruno Haible  <bruno@clisp.org>
42792
42793         Work around fpurge bug on BSD systems.
42794         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42795         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42796         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42797         fpurge to rpl_fpurge if the system already has this function.
42798         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42799         the case where the system already has this function. Correct invariants
42800         on BSD systems.
42801         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42802         BSD systems.
42803
42804 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42805
42806         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42807         proposed by Sven Verdoolaege.
42808
42809         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42810         options.
42811         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42812         (usage and help tests): Update
42813
42814 2007-04-29  Bruno Haible  <bruno@clisp.org>
42815
42816         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42817         Print more information in case of failure. Disable a test on BeOS.
42818
42819 2007-04-29  Bruno Haible  <bruno@clisp.org>
42820
42821         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42822         This helps debugging on systems on which no gdb is available.
42823
42824 2007-04-29  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/freading.h: Improve comments.
42827         * lib/fwriting.h: Likewise.
42828         * tests/test-freading.c (main): Don't check freading immediately after
42829         repositioning. Needed for glibc.
42830
42831 2007-04-29  Bruno Haible  <bruno@clisp.org>
42832
42833         * lib/freading.c (freading): Trivial simplification.
42834
42835 2007-04-28  Bruno Haible  <bruno@clisp.org>
42836
42837         * tests/test-fwriting.c (main): Also test the interaction between
42838         fflush and fwriting.
42839         * modules/fwriting-tests (Depends-on): Add fflush.
42840
42841         * tests/test-freading.c (main): Also test the interaction between
42842         fflush and freading.
42843         * modules/freading-tests (Depends-on): Add fflush.
42844
42845 2007-04-28  Bruno Haible  <bruno@clisp.org>
42846
42847         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42848         fseeko and ftello.
42849         Suggested by Eric Blake.
42850
42851 2007-04-28  Jim Meyering  <jim@meyering.net>
42852
42853         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42854         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42855         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42856
42857 2007-04-27  Eric Blake  <ebb9@byu.net>
42858
42859         * doc/headers/assert.texi (assert.h): Document assert module use.
42860
42861 2007-04-27  Bruno Haible  <bruno@clisp.org>
42862
42863         * doc/headers/*.texi: New files.
42864         * doc/gnulib.texi (Header File Substitutes): New chapter.
42865         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42866         dependencies.
42867         (standards.info ,standards.html, standards.dvi): Update dependencies.
42868         (mostlyclean, clean): New targets.
42869
42870 2007-04-27  Bruno Haible  <bruno@clisp.org>
42871
42872         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42873         * modules/sysexits (Files, Makefile.am): Update.
42874
42875         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42876         * modules/sys_socket (Files, Makefile.am): Update.
42877
42878         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42879         * modules/sys_stat (Files, Makefile.am): Update.
42880
42881 2007-04-27  Eric Blake  <ebb9@byu.net>
42882
42883         * lib/freading.h: Improve comments.
42884         * lib/fwriting.h: Likewise.
42885         * lib/fflush.c: Likewise.
42886
42887         Fix closein for mingw.
42888         * modules/closein-tests: Add tests for closein.
42889         * tests/test-closein.c: New file.
42890         * tests/test-closein.sh: Likewise.
42891         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42892         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42893
42894 2007-04-27  Bruno Haible  <bruno@clisp.org>
42895
42896         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42897         version is < 6.
42898         * lib/math_.h [__DECC]: Likewise.
42899         * lib/stdio_.h [__DECC]: Likewise.
42900         * lib/stdlib_.h [__DECC]: Likewise.
42901         * lib/string_.h [__DECC]: Likewise.
42902         * lib/time_.h [__DECC]: Likewise.
42903         * lib/wchar_.h [__DECC]: Likewise.
42904         * lib/wctype_.h [__DECC]: Likewise.
42905
42906 2007-04-27  Bruno Haible  <bruno@clisp.org>
42907
42908         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42909
42910 2007-04-27  Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/fflush.c: Add comments.
42913         * modules/fpurge-tests (Depends-on): Add fflush.
42914         * modules/freadable-tests (Depends-on): Likewise.
42915         * modules/fwritable-tests (Depends-on): Likewise.
42916
42917 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42918
42919         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42920         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42921         Report by Bruno Haible <bruno@clisp.org>.
42922
42923 2007-04-26  Eric Blake  <ebb9@byu.net>
42924
42925         Fix fflush on mingw.
42926         * modules/fflush (Depends-on): Add freading.
42927         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42928         but unread data.
42929
42930 2007-04-26  Eric Blake  <ebb9@byu.net>
42931         and Bruno Haible  <bruno@clisp.org>
42932
42933         Implement freading and fwriting.
42934         * lib/freading.c: New file.
42935         * lib/freading.h: Likewise.
42936         * m4/freading.m4: Likewise.
42937         * modules/freading: Likewise.
42938         * modules/freading-tests: Likewise.
42939         * tests/test-freading.c: Likewise.
42940         * lib/fwriting.c: New file.
42941         * lib/fwriting.h: Likewise.
42942         * m4/fwriting.m4: Likewise.
42943         * modules/fwriting: Likewise.
42944         * modules/fwriting-tests: Likewise.
42945         * tests/test-fwriting.c: Likewise.
42946         * MODULES.html.sh (File stream based Input/Output): Mention them.
42947
42948 2007-04-26  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42951         'long' when we assume it.
42952         Suggested by Eric Blake.
42953
42954 2007-04-26  Bruno Haible  <bruno@clisp.org>
42955
42956         Ensure fseeko, ftello are declared on glibc systems.
42957         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42958         * modules/fseeko (configure.ac-early): Likewise.
42959         * modules/ftello (configure.ac-early): Likewise.
42960         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42961         AC_FUNC_FSEEKO for this.
42962         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42963         (gl_CHECK_FSEEKO): Remove macro.
42964
42965 2007-04-26  Bruno Haible  <bruno@clisp.org>
42966
42967         * tests/test-fflush.c (main): Also check the ftell result after
42968         fflush and fseek/fseeko.
42969         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42970         file descriptor position cache in the stream.
42971         * lib/fseeko.c (rpl_fseeko): Likewise.
42972
42973 2007-04-26  Bruno Haible  <bruno@clisp.org>
42974
42975         * modules/fflush-tests (Depends-on): Add fseeko.
42976
42977 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42978             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42979
42980         * lib/argz_.h: ensure error_t definition is obtained in same
42981         mechanism system argz.h would have.
42982         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42983         argz facilities are known bad.  Err on the side of caution if
42984         cross-compiling.
42985
42986 2007-04-25  Eric Blake  <ebb9@byu.net>
42987
42988         * lib/fpurge.c (includes): Use stdlib.h for free.
42989         * tests/test-fflush.c (main): Also test fflush-fseeko.
42990
42991 2007-04-25  Bruno Haible  <bruno@clisp.org>
42992
42993         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42994         * lib/fseeko.c: New file.
42995         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42996         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42997         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42998         gl_FUNC_FSEEKO.
42999         (gl_FUNC_FSEEKO): Invoke it.
43000         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
43001         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
43002         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
43003
43004 2007-04-25  Bruno Haible  <bruno@clisp.org>
43005
43006         * modules/fflush (Depends-on): Add ftello.
43007
43008 2007-04-25  Bruno Haible  <bruno@clisp.org>
43009
43010         * modules/ftello-tests: New file.
43011         * tests/test-ftello.c: New file.
43012
43013         * modules/ftello: New file.
43014         * m4/ftello.m4: New file.
43015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
43016         HAVE_FTELLO.
43017         * lib/stdio_.h (ftello): New declaration.
43018         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
43019         HAVE_FTELLO.
43020
43021 2007-04-25  Bruno Haible  <bruno@clisp.org>
43022
43023         * modules/fseeko-tests: New file.
43024         * tests/test-fseeko.c: New file.
43025
43026         * modules/fseeko: New file.
43027         * m4/fseeko.m4: New file.
43028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
43029         HAVE_FSEEKO.
43030         * lib/stdio_.h (fseeko): New declaration.
43031         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
43032         HAVE_FSEEKO.
43033
43034 2007-04-25  Bruno Haible  <bruno@clisp.org>
43035
43036         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
43037
43038 2007-04-25  Bruno Haible  <bruno@clisp.org>
43039
43040         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
43041         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
43042         * tests/test-unistd.c: Likewise.
43043         * tests/test-fcntl.c: Likewise.
43044
43045 2007-04-23  Eric Blake  <ebb9@byu.net>
43046
43047         * lib/fflush.c: Fix missing include.
43048         Reported by Bruno Haible.
43049
43050 2007-04-23  Bruno Haible  <bruno@clisp.org>
43051
43052         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
43053         Reported by Eric Blake.
43054
43055 2007-04-23  Bruno Haible  <bruno@clisp.org>
43056
43057         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
43058
43059 2007-04-23  Bruno Haible  <bruno@clisp.org>
43060
43061         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
43062
43063 2007-04-23  Bruno Haible  <bruno@clisp.org>
43064
43065         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
43066         Needed on HP-UX 11.
43067
43068 2007-04-16  Eric Blake  <ebb9@byu.net>
43069
43070         Make fflush rely on fpurge.
43071         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
43072         open coding all variants.
43073         * modules/fflush (Depends-on): Add fpurge and unistd.
43074         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
43075         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
43076
43077         Fix --with-tests compilation on cygwin.
43078         * modules/argmatch-tests (Makefile.am): List gnulib library first
43079         in LDADD.
43080         * modules/argp-tests (Makefile.am): Likewise.
43081         * modules/array-list-tests (Makefile.am): Likewise.
43082         * modules/array-oset-tests (Makefile.am): Likewise.
43083         * modules/avltree-list-tests (Makefile.am): Likewise.
43084         * modules/avltree-oset-tests (Makefile.am): Likewise.
43085         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43086         * modules/carray-list-tests (Makefile.am): Likewise.
43087         * modules/dirname-tests (Makefile.am): Likewise.
43088         * modules/frexp-tests (Makefile.am): Likewise.
43089         * modules/isnanl-tests (Makefile.am): Likewise.
43090         * modules/linked-list-tests (Makefile.am): Likewise.
43091         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43092         * modules/lock-tests (Makefile.am): Likewise.
43093         * modules/rbtree-list-tests (Makefile.am): Likewise.
43094         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43095         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43096         * modules/tls-tests (Makefile.am): Likewise.
43097         * modules/tsearch-tests (Makefile.am): Likewise.
43098         * modules/xvasprintf-tests (Makefile.am): Likewise.
43099
43100         Fix fpurge for cygwin.
43101         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
43102         value.
43103         * modules/fpurge-tests (Depends-on): Clean up trash.
43104
43105 2007-04-16  Simon Josefsson  <simon@josefsson.org>
43106
43107         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
43108
43109         * m4/autobuild.m4: Re-indent.
43110
43111 2007-04-13  Bruno Haible  <bruno@clisp.org>
43112
43113         * modules/fpurge-tests: New file.
43114         * tests/test-fpurge.c: New file.
43115
43116         * modules/fpurge: New file.
43117         * lib/fpurge.h: New file.
43118         * lib/fpurge.c: New file.
43119         * m4/fpurge.m4: New file.
43120
43121 2007-04-13  Bruno Haible  <bruno@clisp.org>
43122
43123         * modules/fbufmode-tests: New file.
43124         * tests/test-fbufmode.c: New file.
43125
43126         * modules/fbufmode: New file.
43127         * lib/fbufmode.h: New file.
43128         * lib/fbufmode.c: New file.
43129         * m4/fbufmode.m4: New file.
43130
43131 2007-04-13  Bruno Haible  <bruno@clisp.org>
43132
43133         * modules/fwritable-tests: New file.
43134         * tests/test-fwritable.c: New file.
43135
43136         * modules/fwritable: New file.
43137         * lib/fwritable.h: New file.
43138         * lib/fwritable.c: New file.
43139         * m4/fwritable.m4: New file.
43140
43141 2007-04-13  Bruno Haible  <bruno@clisp.org>
43142
43143         * modules/freadable-tests: New file.
43144         * tests/test-freadable.c: New file.
43145
43146         * modules/freadable: New file.
43147         * lib/freadable.h: New file.
43148         * lib/freadable.c: New file.
43149         * m4/freadable.m4: New file.
43150
43151 2007-04-13  Bruno Haible  <bruno@clisp.org>
43152
43153         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43154         MOSTLYCLEANFILES.
43155
43156 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43157
43158         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43159         gzip bootstrap.conf to avoid dragging in i18n machinery.
43160         (gnulib_tool_option): Use it.
43161
43162 2007-04-13  Bruno Haible  <bruno@clisp.org>
43163
43164         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43165         %F directives.
43166         * tests/test-vasprintf-posix.c (test_function): Likewise.
43167         * tests/test-snprintf-posix.h (test_function): Likewise.
43168         * tests/test-sprintf-posix.h (test_function): Likewise.
43169         * tests/test-fprintf-posix.h (test_function): Likewise.
43170         * tests/test-printf-posix.h (test_function): Likewise.
43171         * tests/test-fprintf-posix.out: Likewise.
43172
43173 2007-04-13  Bruno Haible  <bruno@clisp.org>
43174
43175         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43176         * modules/tls-tests (configure.ac): Likewise.
43177         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43178
43179 2007-04-13  Bruno Haible  <bruno@clisp.org>
43180
43181         * lib/tls.c (glthread_tls_get): Fix return type.
43182         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43183
43184 2007-04-12  Eric Blake  <ebb9@byu.net>
43185
43186         * modules/gettime (Depends-on): Remove gettime.
43187         Reported by Dmitry V. Levin.
43188
43189 2007-04-12  Bruno Haible  <bruno@clisp.org>
43190
43191         * modules/fflush (Include): Mention <stdio.h>.
43192         * modules/strtoimax (Include): Mention <inttypes.h>.
43193         * modules/strtoumax (Include): Likewise.
43194
43195 2007-04-12  Eric Blake  <ebb9@byu.net>
43196
43197         * .cvsignore: New file.
43198         * .gitignore: Likewise.
43199
43200 2007-04-12  Bruno Haible  <bruno@clisp.org>
43201
43202         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43203         not before, since $(LDADD) often contains libgnu.a.
43204         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43205         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43206         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43207         Needed on Cygwin.
43208
43209 2007-04-12  Eric Blake  <ebb9@byu.net>
43210
43211         Work around glibc's failure to flush stdin on fclose.
43212         * lib/closein.c (close_stdin): Flush stdin before closing.
43213
43214         Work around glibc's failure to reset seekable stdin on exit.
43215         * modules/closein: New module.
43216         * lib/closein.c: New file.
43217         * lib/closein.h: Likewise.
43218         * m4/closein.m4: Likewise.
43219         * MODULES.html.sh (File stream based Input/Output): Document it.
43220
43221 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43222
43223         * gnulib-tool: Rename generated 'autobuild' script to
43224         'do-autobuild' in --create-megatestdir output.
43225
43226         * doc/gnulib.texi (Build robot for gnulib): Fix.
43227
43228 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43229
43230         * modules/sysexits (Depends-on): Add absolute-header.
43231
43232 2007-04-12  Eric Blake  <ebb9@byu.net>
43233
43234         No need to preserve errno on success.
43235         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43236         Reported by Bruno Haible.
43237
43238 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43239
43240         * MODULES.html.sh (Support for maintaining and releasing
43241         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43242
43243 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43244
43245         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43246
43247 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43248
43249         * modules/autobuild: New module.
43250
43251         * m4/autobuild.m4: New file.
43252
43253 2007-04-11  Bruno Haible  <bruno@clisp.org>
43254
43255         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43256         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43257         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43260         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43261         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43263         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43264         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43265         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43266         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43267         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43269         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43270         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43272         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43273         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43275         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43276         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43278         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43279         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43281         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43282         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43283         Reported by Eric Blake.
43284
43285 2007-04-11  Bruno Haible  <bruno@clisp.org>
43286
43287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43288
43289 2007-04-10  Bruno Haible  <bruno@clisp.org>
43290
43291         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43292         for NaN and Infinity. Needed on FreeBSD 6.1.
43293         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43294         regarding results for "%010a" of Infinity and NaN.
43295         * tests/test-vasprintf-posix.c (test_function): Likewise.
43296         * tests/test-snprintf-posix.h (test_function): Likewise.
43297         * tests/test-sprintf-posix.h (test_function): Likewise.
43298         * tests/test-fprintf-posix.h (test_function): Likewise.
43299         * tests/test-printf-posix.h (test_function): Likewise.
43300         * tests/test-fprintf-posix.out: Likewise.
43301
43302 2007-04-10  Bruno Haible  <bruno@clisp.org>
43303
43304         * modules/locale-tests: New file.
43305         * tests/test-locale.c: New file.
43306
43307         * modules/locale: New file.
43308         * lib/locale_.h: New file.
43309         * m4/locale_h.m4: New file.
43310
43311 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43312             Bruno Haible  <bruno@clisp.org>
43313
43314         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43315         be determined, test for availability of the copysignf, copysign,
43316         copysignl functions.
43317         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43318         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43319         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43320
43321 2007-04-09  Eric Blake  <ebb9@byu.net>
43322
43323         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43324         * modules/stdio (Makefile.am): Support fflush.
43325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43326         * modules/fflush: New file.
43327         * lib/fflush.c: Likewise.
43328         * m4/fflush.m4: Likewise.
43329         * modules/fflush-tests: New test.
43330         * tests/test-fflush.c: Likewise.
43331         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43332
43333 2007-04-06  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43336         (VASNPRINTF): Use signbit for faster determination whether to print a
43337         minus sign.
43338         * modules/vasnprintf (Files): Remove lib/float+.h.
43339         * modules/fprintf-posix (Depends-on): Add signbit.
43340         * modules/snprintf-posix (Depends-on): Likewise.
43341         * modules/sprintf-posix (Depends-on): Likewise.
43342         * modules/vasnprintf-posix (Depends-on): Likewise.
43343         * modules/vasprintf-posix (Depends-on): Likewise.
43344         * modules/vfprintf-posix (Depends-on): Likewise.
43345         * modules/vsnprintf-posix (Depends-on): Likewise.
43346         * modules/vsprintf-posix (Depends-on): Likewise.
43347
43348 2007-04-06  Bruno Haible  <bruno@clisp.org>
43349
43350         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43351         * tests/test-frexpl.c (main): Likewise.
43352         * tests/test-ldexpl.c (main): Likewise.
43353         * modules/frexp-tests (Depends-on): Add signbit.
43354         * modules/frexpl-tests (Depdends-on): Likewise.
43355         * modules/ldexpl-tests (Depdends-on): Likewise.
43356
43357 2007-04-06  Bruno Haible  <bruno@clisp.org>
43358
43359         * modules/signbit-tests: New file.
43360         * tests/test-signbit.c: New file.
43361
43362         * modules/signbit: New file.
43363         * lib/signbitf.c: New file.
43364         * lib/signbitd.c: New file.
43365         * lib/signbitl.c: New file.
43366         * m4/signbit.m4: New file.
43367         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43368         (signbit): New macro.
43369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43370         REPLACE_SIGNBIT.
43371         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43372         REPLACE_FREXPL into math.h.
43373
43374 2007-04-06  Bruno Haible  <bruno@clisp.org>
43375
43376         * modules/isnanf-nolibm-tests: New file.
43377         * tests/test-isnanf.c: New file.
43378
43379         * modules/isnanf-nolibm: New file.
43380         * lib/isnanf.h: New file.
43381         * lib/isnanf.c: New file.
43382         * lib/isnan.c: Consider the USE_FLOAT macro.
43383         * m4/isnanf.m4: New file.
43384
43385 2007-04-06  Bruno Haible  <bruno@clisp.org>
43386
43387         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43388         (Link): New section.
43389
43390         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43391
43392 2007-04-06  Bruno Haible  <bruno@clisp.org>
43393
43394         Assume the 'long double' type.
43395         * m4/longdouble.m4: Remove file.
43396         * config/srclist.txt: Don't mention longdouble.m4.
43397         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43398         * lib/float+.h: Likewise.
43399         * lib/frexp.c: Likewise.
43400         * lib/printf-args.h: Likewise.
43401         * lib/printf-args.c: Likewise.
43402         * lib/printf-frexp.c: Likewise.
43403         * lib/printf-parse.c: Likewise.
43404         * lib/vasnprintf.c: Likewise.
43405         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43406         * m4/intl.m4: Likewise.
43407         * m4/isnanl.m4: Likewise.
43408         * m4/printf.m4: Likewise.
43409         * m4/printf-frexpl.m4: Likewise.
43410         * m4/vasnprintf.m4: Likewise.
43411         * modules/allocsa (Files): Remove m4/longdouble.m4.
43412         * modules/gettext (Files): Likewise.
43413         * modules/relocatable-prog-wrapper (Files): Likewise.
43414         * modules/vasnprintf (Files): Likewise.
43415         * modules/isnanl (Files): Likewise.
43416         (Include): Simplify.
43417         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43418         (Include): Simplify.
43419         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43420         (Include): Simplify.
43421         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43422         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43423         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43424         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43425         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43426         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43427         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43428         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43429         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43430         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43431         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43432         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43433         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43434         * tests/test-isnanl.c: Likewise.
43435         * tests/test-snprintf-posix.h: Likewise.
43436         * tests/test-sprintf-posix.h: Likewise.
43437         * tests/test-vasnprintf-posix.c: Likewise.
43438         * tests/test-vasnprintf-posix2.c: Likewise.
43439         * tests/test-vasprintf-posix.c: Likewise.
43440
43441 2007-04-06  Bruno Haible  <bruno@clisp.org>
43442
43443         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43444         * lib/math_.h [__DECC]: Include the overridden include file through
43445         #include_next, outside the double-inclusion guard.
43446         * lib/stdio_.h [__DECC]: Likewise.
43447         * lib/stdlib_.h [__DECC]: Likewise.
43448         * lib/string_.h [__DECC]: Likewise.
43449         * lib/time_.h [__DECC]: Likewise.
43450         * lib/wchar_.h [__DECC]: Likewise.
43451         * lib/wctype_.h [__DECC]: Likewise.
43452         * lib/inttypes_.h [__DECC]: Likewise.
43453         Reported by Albert Chin <china@thewrittenword.com> in
43454         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43455
43456 2007-04-04  Eric Blake  <ebb9@byu.net>
43457
43458         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43459         1.5.x.
43460
43461 2007-04-04  Bruno Haible  <bruno@clisp.org>
43462
43463         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43464         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43465
43466 2007-04-04  Bruno Haible  <bruno@clisp.org>
43467
43468         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43469         results for "%010a" of Infinity and NaN.
43470         * tests/test-vasprintf-posix.c (test_function): Likewise.
43471         * tests/test-snprintf-posix.h (test_function): Likewise.
43472         * tests/test-sprintf-posix.h (test_function): Likewise.
43473         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43474         * tests/test-printf-posix.h (test_function): Likewise.
43475         * tests/test-fprintf-posix.out: Update.
43476         Needed for FreeBSD 6.1.
43477
43478 2007-04-04  Bruno Haible  <bruno@clisp.org>
43479
43480         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43481         directly used by the gnulib modules nor by gnulib-tool.
43482
43483 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43484
43485         * DEPENDENCIES: Give overall description of version dependency
43486         desirability.  Use more-typical names for apps.
43487         Add shell, coreutils, diffutils, grep, tar, gzip.
43488
43489 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43490
43491         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43492
43493 2007-04-04  Karl Berry  <karl@gnu.org>
43494
43495         * MODULES.html.sh (func_module): missing '.
43496
43497 2007-04-03  Bruno Haible  <bruno@clisp.org>
43498
43499         * modules/argmatch-tests (Makefile.am): New variable
43500         test_argmatch_LDADD.
43501         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43502         * modules/array-list-tests (Makefile.am): New variable
43503         test_array_list_LDADD.
43504         * modules/array-oset-tests (Makefile.am): New variable
43505         test_array_oset_LDADD.
43506         * modules/avltree-list-tests (Makefile.am): New variable
43507         test_avltree_list_LDADD.
43508         * modules/avltree-oset-tests (Makefile.am): New variable
43509         test_avltree_oset_LDADD.
43510         * modules/avltreehash-list-tests (Makefile.am): New variable
43511         test_avltreehash_list_LDADD.
43512         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43513         test_canonicalize_lgpl_LDADD.
43514         * modules/carray-list-tests (Makefile.am): New variable
43515         test_carray_list_LDADD.
43516         * modules/dirname-tests (Makefile.am): New variable
43517         test_dirname_LDADD.
43518         * modules/linked-list-tests (Makefile.am): New variable
43519         test_linked_list_LDADD.
43520         * modules/linkedhash-list-tests (Makefile.am): New variable
43521         test_linkedhash_list_LDADD.
43522         * modules/rbtree-list-tests (Makefile.am): New variable
43523         test_rbtree_list_LDADD.
43524         * modules/rbtree-oset-tests (Makefile.am): New variable
43525         test_rbtree_oset_LDADD.
43526         * modules/rbtreehash-list-tests (Makefile.am): New variable
43527         test_rbtreehash_list_LDADD.
43528         * modules/xvasprintf-tests (Makefile.am): New variable
43529         test_xvasprintf_LDADD.
43530         Reported by Eric Blake.
43531
43532 2007-04-03  Eric Blake  <ebb9@byu.net>
43533
43534         * DEPENDENCIES: Weaken m4 requirements.
43535
43536 2007-04-03  Bruno Haible  <bruno@clisp.org>
43537
43538         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43539         * modules/isnanl-tests (configure.ac): Likewise.
43540
43541 2007-04-03  Ben Pfaff  <blp@gnu.org>
43542
43543         * modules/iconv_open: Add $(srcdir)/ to source directory
43544         references in Makefile fragments that call gperf, to fix VPATH
43545         builds.
43546
43547 2007-04-03  Bruno Haible  <bruno@clisp.org>
43548
43549         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43550         * lib/ldexpl.c: Undo last change.
43551
43552 2007-04-03  Bruno Haible  <bruno@clisp.org>
43553
43554         * modules/printf-frexpl (Depends-on): Undo last change.
43555         (Files): Add m4/ldexpl.m4.
43556
43557 2007-04-03  Bruno Haible  <bruno@clisp.org>
43558
43559         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43560         * modules/isnanl (Link): New section.
43561
43562         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43563         * modules/frexp (Link): New section.
43564
43565         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43566         * modules/frexpl (Link): New section.
43567
43568         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43569         * modules/ldexpl (Link): New section.
43570
43571 2007-04-03  Bruno Haible  <bruno@clisp.org>
43572
43573         * modules/TEMPLATE-EXTENDED: New file.
43574         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43575
43576 2007-04-03  Bruno Haible  <bruno@clisp.org>
43577
43578         * DEPENDENCIES: New file.
43579         Suggested by Simon Josefsson.
43580
43581 2007-04-03  Bruno Haible  <bruno@clisp.org>
43582
43583         * doc/gnulib.texi: Escape @.
43584
43585 2007-04-03  James Youngman  <jay@gnu.org>
43586         and Paul Eggert  <eggert@cs.ucla.edu>
43587
43588         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43589         birthtime on all systems that have birthtime, not just those which
43590         use st_birthtimensec rather than st_birthtim.  Putting zero in
43591         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43592         that the birth time is not available for files on an NFS mount.
43593
43594 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43595
43596         * modules/memxor: Move back from crypto/, suggested by Bruno.
43597         * modules/crypto/hmac-sha1: Fix memxor dependency.
43598
43599         * modules/crypto/gc: Moved from ../.
43600
43601 2007-04-02  Eric Blake  <ebb9@byu.net>
43602
43603         * lib/ldexpl.c (includes): Avoid libm.
43604
43605         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43606
43607 2007-04-02  Bruno Haible  <bruno@clisp.org>
43608
43609         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43610         on IRIX.
43611
43612 2007-04-02  Bruno Haible  <bruno@clisp.org>
43613
43614         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43615         x86 or x86_64 platforms running MacOS X.
43616         Reported by Ryan Schmidt <@ryandesign.com>.
43617
43618 2007-04-02  Bruno Haible  <bruno@clisp.org>
43619
43620         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43621         i386.
43622
43623 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43624
43625         * modules/crypto/arcfour: Moved from ../.
43626         * modules/crypto/arcfour-tests: Moved from ../.
43627         * modules/crypto/arctwo: Moved from ../.
43628         * modules/crypto/arctwo-tests: Moved from ../.
43629         * modules/crypto/des: Moved from ../.
43630         * modules/crypto/des-tests: Moved from ../.
43631         * modules/crypto/gc-arcfour: Moved from ../.
43632         * modules/crypto/gc-arcfour-tests: Moved from ../.
43633         * modules/crypto/gc-arctwo: Moved from ../.
43634         * modules/crypto/gc-arctwo-tests: Moved from ../.
43635         * modules/crypto/gc-des: Moved from ../.
43636         * modules/crypto/gc-des-tests: Moved from ../.
43637         * modules/crypto/gc-hmac-md5: Moved from ../.
43638         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43639         * modules/crypto/gc-hmac-sha1: Moved from ../.
43640         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43641         * modules/crypto/gc-md2: Moved from ../.
43642         * modules/crypto/gc-md2-tests: Moved from ../.
43643         * modules/crypto/gc-md4: Moved from ../.
43644         * modules/crypto/gc-md4-tests: Moved from ../.
43645         * modules/crypto/gc-md5: Moved from ../.
43646         * modules/crypto/gc-md5-tests: Moved from ../.
43647         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43648         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43649         * modules/crypto/gc-random: Moved from ../.
43650         * modules/crypto/gc-rijndael: Moved from ../.
43651         * modules/crypto/gc-rijndael-tests: Moved from ../.
43652         * modules/crypto/gc-sha1: Moved from ../.
43653         * modules/crypto/gc-sha1-tests: Moved from ../.
43654         * modules/crypto/gc-tests: Moved from ../.
43655         * modules/crypto/hmac-md5: Moved from ../.
43656         * modules/crypto/hmac-md5-tests: Moved from ../.
43657         * modules/crypto/hmac-sha1: Moved from ../.
43658         * modules/crypto/hmac-sha1-tests: Moved from ../.
43659         * modules/crypto/md2: Moved from ../.
43660         * modules/crypto/md2-tests: Moved from ../.
43661         * modules/crypto/md4: Moved from ../.
43662         * modules/crypto/md4-tests: Moved from ../.
43663         * modules/crypto/md5: Moved from ../.
43664         * modules/crypto/md5-tests: Moved from ../.
43665         * modules/crypto/memxor: Moved from ../.
43666         * modules/crypto/rijndael: Moved from ../.
43667         * modules/crypto/rijndael-tests: Moved from ../.
43668         * modules/crypto/sha1: Moved from ../.
43669
43670 2007-03-30  James Youngman  <jay@gnu.org>
43671
43672         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43673         rename() to change the ctime of a file (because ctime is unaffected
43674         by rename on jfs2 on AIX 5.1).
43675         (main): Start by doing cleanup, in case a previous run failed leaving
43676         test files behind.
43677
43678 2007-03-31  Bruno Haible  <bruno@clisp.org>
43679
43680         Support old proprietary implementations of iconv.
43681         * modules/iconv_open: New file.
43682         * lib/iconv_.h: New file.
43683         * m4/iconv_h.m4: New file.
43684         * lib/iconv_open.c: New file.
43685         * lib/iconv_open-aix.gperf: New file.
43686         * lib/iconv_open-hpux.gperf: New file.
43687         * lib/iconv_open-irix.gperf: New file.
43688         * lib/iconv_open-osf.gperf: New file.
43689         * m4/iconv_open.m4: New file.
43690         * modules/linebreak (Depends-on): Add iconv_open.
43691         * modules/striconv (Depends-on): Likewise.
43692         * modules/striconveh (Depends-on): Likewise.
43693         * modules/unicodeio (Depends-on): Likewise.
43694         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43695         (iconv_t)(-1).
43696         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43697         conversion if cd is (iconv_t)(-1).
43698         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43699         is not possible.
43700
43701 2007-03-31  Bruno Haible  <bruno@clisp.org>
43702
43703         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43704         work on Solaris either. Protect also second use of "autodetect_jp".
43705
43706 2007-03-31  Bruno Haible  <bruno@clisp.org>
43707
43708         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43709         the function is not present.
43710
43711 2007-03-31  Bruno Haible  <bruno@clisp.org>
43712
43713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43714         the function is not present.
43715
43716 2007-03-31  Bruno Haible  <bruno@clisp.org>
43717
43718         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43719         a bug in HP-UX iconv_open().
43720
43721 2007-03-31  Bruno Haible  <bruno@clisp.org>
43722
43723         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43724         (Mathematics <math.h>): New section, add fpieee.
43725         (Input/output <stdio.h>): Add fseterr.
43726         (Mathematics <math.h>): New section, add printf-frexp.
43727         (Container data structures): Add sublist.
43728         (Core language properties): Add fpucw, inline.
43729         (Functions for greatest-width integer types <inttypes.h>): Add
43730         imaxabs, imaxdiv, inttypes.
43731         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43732         isnanl-nolibm, ldexp.
43733         (Mathematics <math.h>): New section, add printf-frexpl.
43734         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43735         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43736         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43737         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43738         (Unicode string functions): Add unistr/u*-mbtoucr.
43739         (Java): Add javacomp-script, javaexec-script.
43740         (C#): Add csharpcomp-script, csharpexec-script.
43741         (Support for building libraries and executables): Add havelib,
43742         relocatable-*.
43743         (Support for maintaining and releasing projects): Renamed from
43744         'Support for maintaining and release projects'. Add announce-gen.
43745
43746 2007-03-31  Bruno Haible  <bruno@clisp.org>
43747
43748         * README: Talk primarily about git.
43749         (git and CVS): Renamed from CVS.
43750         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43751         gnulib is available through git.
43752         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43753
43754 2007-03-30  Bruno Haible  <bruno@clisp.org>
43755
43756         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43757         * lib/poll_.h: Likewise.
43758         * lib/stat_.h: Likewise.
43759         * lib/sys_time_.h: Likewise.
43760         * lib/sysexit_.h: Likewise.
43761         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43762         * lib/stdbool_.h: Likewise.
43763         * lib/byteswap_.h: Add double-inclusion guard.
43764
43765 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43766
43767         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43768
43769 2007-03-30  Karl Berry  <karl@gnu.org>
43770
43771         * config/srclist-update: double space after USA in the license
43772         substitution, since that's how it's usually (?) written.
43773
43774 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43775
43776         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43777         reported by Bruno Haible.
43778
43779 2007-03-29  Bruno Haible  <bruno@clisp.org>
43780
43781         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43782         a bug in AIX iconv().
43783
43784 2007-03-29  Bruno Haible  <bruno@clisp.org>
43785
43786         * modules/ldexpl-tests: New file.
43787         * tests/test-ldexpl.c: New file.
43788
43789 2007-03-29  Bruno Haible  <bruno@clisp.org>
43790
43791         * lib/ldexpl.c: Include fpucw.h.
43792         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43793         multiplication.
43794         * modules/ldexpl (Depends-on): Add fpucw.
43795
43796 2007-03-29  Bruno Haible  <bruno@clisp.org>
43797
43798         * modules/ldexpl: New file.
43799         * m4/ldexpl.m4: New file.
43800         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43801         set.
43802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43803         REPLACE_LDEXPL.
43804         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43805         REPLACE_LDEXPL.
43806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43807         gl_FUNC_LDEXPL_WORKS.
43808         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43809         * modules/mathl (Files): Remove lib/ldexpl.c.
43810         (Depends-on): Add ldexpl.
43811
43812 2007-03-29  Bruno Haible  <bruno@clisp.org>
43813
43814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43815
43816 2007-03-29  Bruno Haible  <bruno@clisp.org>
43817
43818         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43819         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43820         and possibly also HP-UX.
43821         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43822         work on AIX, IRIX, HP-UX, OSF/1.
43823         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43824         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43825         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43826         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43827         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43828         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43829
43830 2007-03-29  Bruno Haible  <bruno@clisp.org>
43831
43832         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43833
43834 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43835
43836         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43837         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43838
43839 2007-03-29  Eric Blake  <ebb9@byu.net>
43840
43841         * lib/acl-internal.h: Remove redundant include.
43842         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43843         Cygwin when a file is locked.
43844
43845 2007-03-29  Bruno Haible  <bruno@clisp.org>
43846
43847         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43848         file.
43849         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43850
43851 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43852
43853         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43854         try to remove a parent directory if the child couldn't be removed
43855         (except for the first rmdir, which could fail because the child
43856         doesn't exist).  Problem reported by Jeff Blaine in
43857         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43858
43859 2007-03-28  Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/striconveh.c (utf8conv_carefully): New function.
43862         (mem_cd_iconveh_internal): Invoke it.
43863
43864 2007-03-28  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43867         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43868         input.
43869         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43870         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43871         unistr/u8-uctomb.
43872
43873 2007-03-28  Bruno Haible  <bruno@clisp.org>
43874
43875         * modules/unistr/u8-mbtoucr: New file.
43876         * lib/unistr/u8-mbtoucr.c: New file.
43877         * modules/unistr/u16-mbtoucr: New file.
43878         * lib/unistr/u16-mbtoucr.c: New file.
43879         * modules/unistr/u16-mbtoucr: New file.
43880         * lib/unistr/u16-mbtoucr.c: New file.
43881         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43882
43883 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43884             Bruno Haible  <bruno@clisp.org>
43885
43886         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43887         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43888         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43889
43890         * m4/stdio_h.m4: Add stubs for vasprintf too.
43891
43892         * modules/stdio: Support vasprintf in sed command.
43893
43894         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43895         vasprintf.h.  Add stdio module indicator.
43896
43897         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43898         vasprintf.h.
43899
43900         * lib/vasprintf.h: File removed.
43901
43902         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43903         * lib/vasprintf.c: Ditto.
43904         * lib/xvasprintf.c: Ditto.
43905         * tests/test-vasprintf-posix.c: Ditto.
43906         * tests/test-vasprintf.c: Ditto.
43907
43908 2007-03-27  Bruno Haible  <bruno@clisp.org>
43909
43910         Make vasnprintf multithread-safe.
43911         * lib/vasnprintf.c (decimal_point_char): New function.
43912         (VASNPRINTF): Use it.
43913         Suggested by Simon Josefsson.
43914
43915 2007-03-27  Eric Blake  <ebb9@byu.net>
43916
43917         Support sub-second birthtime on cygwin.
43918         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43919         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43920         (get_stat_birthtime): Also work with st_birthtim.
43921
43922 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43923
43924         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43925         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43926         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43927         (get_stat_birthtime_ns): Simplify compile-time tests.
43928         (get_stat_birthtime): Change the API to look like
43929         get_stat_mtime etc., except return a negative tv_nsec on error.
43930         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43931         Don't check for "spare" fields.
43932         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43933         or for struct stat.st_birthtime, as these tests aren't used.
43934         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43935
43936 2007-03-27  Bruno Haible  <bruno@clisp.org>
43937
43938         * lib/stat-time.h: Include <sys/stat.h>.
43939
43940 2007-03-27  James Youngman  <jay@gnu.org>
43941
43942         * lib/stat-time.h (get_stat_birthtime): New function for
43943           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43944         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43945           and its variants.
43946         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43947         * modules/stat-time-test: New file.
43948         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43949
43950 2007-03-26  Bruno Haible  <bruno@clisp.org>
43951
43952         Better support of signalling NaNs.
43953         * lib/atanl.c: Include isnanl.h.
43954         (atanl): Perform test for NaN at the beginning of the function and
43955         through a call to isnanl.
43956         * lib/cosl.c: Include isnanl.h.
43957         (cosl): Perform test for NaN at the beginning of the function and
43958         through a call to isnanl.
43959         * lib/ldexpl.c: Include isnanl.h.
43960         (ldexpl): Perform test for NaN through a call to isnanl.
43961         * lib/logl.c: Include isnanl.h.
43962         (logl): Perform test for NaN at the beginning of the function and
43963         through a call to isnanl.
43964         * lib/sinl.c: Include isnanl.h.
43965         (sinl): Perform test for NaN at the beginning of the function and
43966         through a call to isnanl.
43967         * lib/sqrtl.c: Include isnanl.h.
43968         (sqrtl): Perform test for NaN at the beginning of the function and
43969         through a call to isnanl.
43970         * lib/tanl.c: Include isnanl.h.
43971         (tanl): Perform test for NaN at the beginning of the function and
43972         through a call to isnanl.
43973         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43974         * modules/mathl (Depends-on): Add isnanl.
43975
43976 2007-03-26  Eric Blake  <ebb9@byu.net>
43977
43978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43979         regression in logic sense of previous patch.
43980
43981 2007-03-26  Bruno Haible  <bruno@clisp.org>
43982
43983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43984         unportable shell command "if ! ...".
43985         Reported by Ralf Wildenhues.
43986
43987 2007-03-25  Bruno Haible  <bruno@clisp.org>
43988
43989         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43990         <sysexits.h> file, and only add EX_CONFIG.
43991         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43992         absolute file name and whether it is sufficient. Substitute also
43993         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43994         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43995         ABSOLUTE_SYSEXITS_H into sysexits.h.
43996
43997 2007-03-25  Bruno Haible  <bruno@clisp.org>
43998
43999         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
44000         hints is NULL.
44001
44002 2007-03-25  Bruno Haible  <bruno@clisp.org>
44003
44004         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
44005         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
44006
44007 2007-03-25  Bruno Haible  <bruno@clisp.org>
44008
44009         * lib/vasnprintf.c: Include langinfo.h.
44010         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
44011         multithread-safe.
44012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
44013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
44014         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44015         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44016         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44017         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44018         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
44020         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44021         Reported by Simon Josefsson.
44022
44023 2007-03-25  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
44026         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
44027         * modules/vasnprintf (Depends-on): Add stdint.
44028
44029 2007-03-25  Bruno Haible  <bruno@clisp.org>
44030
44031         * modules/fpieee: New file.
44032         * m4/fpieee.m4: New file.
44033         * modules/isnan-nolibm (Depends-on): Add fpieee.
44034         * modules/isnanl-nolibm (Depends-on): Add fpieee.
44035         * modules/isnanl (Depends-on): Add fpieee.
44036
44037 2007-03-25  Bruno Haible  <bruno@clisp.org>
44038
44039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
44040
44041 2007-03-25  Bruno Haible  <bruno@clisp.org>
44042
44043         Avoid test failures on IRIX 6.5.
44044         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
44045         (main): Use it.
44046         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
44047         macros.
44048         (main): Use them.
44049
44050 2007-03-25  Bruno Haible  <bruno@clisp.org>
44051
44052         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
44053         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
44054         exists but doesn't work.
44055         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
44056         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
44057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
44058         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
44059
44060 2007-03-25  Bruno Haible  <bruno@clisp.org>
44061
44062         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
44063         returns inf. Needed on IRIX 6.5.
44064
44065 2007-03-25  Bruno Haible  <bruno@clisp.org>
44066
44067         * tests/test-frexpl.c: Include isnanl-nolibm.h.
44068         (main): Use isnanl instead of x != x idiom.
44069         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
44070
44071         * tests/test-frexp.c: Include isnan.h.
44072         (main): Use isnan instead of x != x idiom.
44073         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
44074
44075 2007-03-25  Bruno Haible  <bruno@clisp.org>
44076
44077         * tests/test-frexp.c (NaN): New function/macro.
44078         (main): Use it instead of 0.0 / 0.0.
44079         * tests/test-isnan.c (NaN): New function/macro.
44080         (main): Use it instead of 0.0 / 0.0.
44081         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
44082         (test_function): Use it instead of 0.0 / 0.0.
44083         * tests/test-vasprintf-posix.c (NaN): New function/macro.
44084         (test_function): Use it instead of 0.0 / 0.0.
44085         * tests/test-snprintf-posix.h (NaN): New function/macro.
44086         (test_function): Use it instead of 0.0 / 0.0.
44087         * tests/test-sprintf-posix.h (NaN): New function/macro.
44088         (test_function): Use it instead of 0.0 / 0.0.
44089         * tests/test-fprintf-posix.h (NaN): New function/macro.
44090         (test_function): Use it instead of 0.0 / 0.0.
44091         * tests/test-printf-posix.h (NaN): New function/macro.
44092         (test_function): Use it instead of 0.0 / 0.0.
44093
44094         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
44095
44096 2007-03-25  Bruno Haible  <bruno@clisp.org>
44097
44098         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
44099
44100 2007-03-25  Bruno Haible  <bruno@clisp.org>
44101
44102         * lib/regexec.c (merge_state_with_log): Make static.
44103
44104 2007-03-25  Bruno Haible  <bruno@clisp.org>
44105
44106         * lib/trigl.c (kernel_rem_pio2): Make static.
44107
44108 2007-03-25  Bruno Haible  <bruno@clisp.org>
44109
44110         * lib/sincosl.c (sincosl_table): Make static.
44111
44112 2007-03-25  Bruno Haible  <bruno@clisp.org>
44113
44114         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
44115         if the compiler does not support C99.
44116
44117 2007-03-25  Bruno Haible  <bruno@clisp.org>
44118
44119         * modules/time (Makefile.am): Ensure all rule action lines start with a
44120         tab.
44121
44122 2007-03-24  Bruno Haible  <bruno@clisp.org>
44123
44124         * modules/tsearch-tests: New file.
44125         * tests/test-tsearch.sh: New file.
44126         * tests/test-tsearch.c: New file, mostly copied from glibc.
44127
44128         * modules/search-tests: New file.
44129         * tests/test-search.c: New file.
44130
44131         * modules/search: New file.
44132         * lib/search_.h: New file, incorporating lib/tsearch.h.
44133         * m4/search_h.m4: New file.
44134         * lib/tsearch.h: Remove file.
44135         * lib/tsearch.c: Include search.h instead of tsearch.h.
44136         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44137         HAVE_TSEARCH.
44138         * modules/tsearch (Files): Remove lib/tsearch.h.
44139         (Depends-on): Add search.
44140         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44141         (Include): Change tsearch.h into search.h.
44142
44143 2007-03-24  Bruno Haible  <bruno@clisp.org>
44144
44145         * modules/fpucw: New file.
44146         * lib/fpucw.h: New file.
44147         * lib/frexp.c: Include fpucw.h.
44148         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44149         (FUNC): Use them.
44150         * lib/printf-frexp.c: Include fpucw.h.
44151         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44152         (FUNC): Use them.
44153         * lib/vasnprintf.c: Include fpucw.h.
44154         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44155         'long double' calculations.
44156         * tests/test-frexpl.c: Include fpucw.h.
44157         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44158         * tests/test-printf-frexpl.c: Include fpucw.h.
44159         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44160         * modules/frexpl (Depends-on): Add fpucw.
44161         * modules/printf-frexpl (Depends-on): Likewise.
44162         * modules/fprintf-posix (Depends-on): Likewise.
44163         * modules/snprintf-posix (Depends-on): Likewise.
44164         * modules/sprintf-posix (Depends-on): Likewise.
44165         * modules/vasnprintf-posix (Depends-on): Likewise.
44166         * modules/vasprintf-posix (Depends-on): Likewise.
44167         * modules/vfprintf-posix (Depends-on): Likewise.
44168         * modules/vsnprintf-posix (Depends-on): Likewise.
44169         * modules/vsprintf-posix (Depends-on): Likewise.
44170         * modules/frexpl-tests (Depends-on): Likewise.
44171         * modules/printf-frexpl-tests (Depends-on): Likewise.
44172
44173 2007-03-24  Bruno Haible  <bruno@clisp.org>
44174
44175         * lib/float+.h: New file.
44176         * lib/isnan.c: Include float+.h.
44177         (SIZE): New macro.
44178         (FUNC): Compare only SIZE bytes of the value.
44179         * lib/vasnprintf.c: Include float+.h.
44180         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44181         SIZEOF_LDBL or SIZEOF_DBL bytes.
44182         * modules/isnan-nolibm (Files): Add lib/float+.h.
44183         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44184         * modules/isnanl (Files): Add lib/float+.h.
44185         * modules/vasnprintf (Files): Add lib/float+.h.
44186
44187 2007-03-24  Bruno Haible  <bruno@clisp.org>
44188
44189         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44190         include isnanl-nolibm.h.
44191
44192 2007-03-24  Bruno Haible  <bruno@clisp.org>
44193
44194         * tests/test-read-file.c (main): Don't produce spurious output for
44195         expected situations. Make the test fail if it encountered unexpected
44196         results.
44197
44198 2007-03-24  Bruno Haible  <bruno@clisp.org>
44199
44200         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44201         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44202
44203 2007-03-24  Bruno Haible  <bruno@clisp.org>
44204
44205         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44206
44207 2007-03-24  Bruno Haible  <bruno@clisp.org>
44208
44209         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44210         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44211
44212         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44213         * modules/utf8-ucs4: Turn into a symbolic link to module
44214         unistr/u8-mbtouc.
44215
44216         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44217         utf8-ucs4-unsafe.
44218         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44219         unistr/u8-mbtouc-unsafe.
44220
44221         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44222         * modules/utf16-ucs4: Turn into a symbolic link to module
44223         unistr/u16-mbtouc.
44224
44225         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44226         utf16-ucs4-unsafe.
44227         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44228         unistr/u16-mbtouc-unsafe.
44229
44230         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44231         * modules/ucs4-utf8: Turn into a symbolic link to module
44232         unistr/u8-ubtomb.
44233
44234         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44235         * modules/ucs4-utf16: Turn into a symbolic link to module
44236         unistr/u16-ubtomb.
44237
44238 2007-03-24  Bruno Haible  <bruno@clisp.org>
44239
44240         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44241         Enable the function only if HAVE_INLINE.
44242         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44243         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44244         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44245         Enable the function only if HAVE_INLINE.
44246         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44247         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44248         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44249         Enable the function only if HAVE_INLINE.
44250         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44251         Enable the function only if HAVE_INLINE.
44252         * modules/utf8-ucs4: Update.
44253         * modules/utf8-ucs4-unsafe: Update.
44254         * modules/utf16-ucs4: Update.
44255         * modules/utf16-ucs4-unsafe: Update.
44256         * modules/ucs4-utf8: Update.
44257         * modules/ucs4-utf16: Update.
44258
44259 2007-03-24  Bruno Haible  <bruno@clisp.org>
44260
44261         * lib/utf8-ucs4.h: Remove file.
44262         * lib/utf8-ucs4-unsafe.h: Remove file.
44263         * lib/utf16-ucs4.h: Remove file.
44264         * lib/utf16-ucs4-unsafe.h: Remove file.
44265         * lib/ucs4-utf8.h: Remove file.
44266         * lib/ucs4-utf16.h: Remove file.
44267         * lib/unistr.h: Include their previous contents.
44268         * m4/utf-ucs4.m4: Remove file.
44269         * m4/ucs4-utf.m4: Remove file.
44270         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44271         (Depends-on): Add unistr/base.
44272         (configure.ac): Remove gl_UTF_UCS4.
44273         (Makefile.am): Update.
44274         (Include): Change to unistr.h.
44275         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44276         (Depends-on): Add unistr/base.
44277         (configure.ac): Remove gl_UTF_UCS4.
44278         (Makefile.am): Update.
44279         (Include): Change to unistr.h.
44280         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44281         (Depends-on): Add unistr/base.
44282         (configure.ac): Remove gl_UTF_UCS4.
44283         (Makefile.am): Update.
44284         (Include): Change to unistr.h.
44285         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44286         (Depends-on): Add unistr/base.
44287         (configure.ac): Remove gl_UTF_UCS4.
44288         (Makefile.am): Update.
44289         (Include): Change to unistr.h.
44290         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44291         (Depends-on): Add unistr/base.
44292         (configure.ac): Remove gl_UCS4_UTF.
44293         (Makefile.am): Update.
44294         (Include): Change to unistr.h.
44295         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44296         (Depends-on): Add unistr/base.
44297         (configure.ac): Remove gl_UCS4_UTF.
44298         (Makefile.am): Update.
44299         (Include): Change to unistr.h.
44300         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44301         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44302         utf8-ucs4-unsafe.h.
44303         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44304         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44305         utf16-ucs4-unsafe.h.
44306         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44307         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44308         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44309         * lib/unistr/u8-strchr.c: Likewise.
44310         * lib/unistr/u8-strrchr.c: Likewise.
44311         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44312         * lib/unistr/u16-strchr.c: Likewise.
44313         * lib/unistr/u16-strrchr.c: Likewise.
44314         * lib/striconveh.c: Update.
44315         * lib/linebreak.c: Update.
44316
44317 2007-03-24  Bruno Haible  <bruno@clisp.org>
44318
44319         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44320         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44321
44322 2007-03-22  Bruno Haible  <bruno@clisp.org>
44323
44324         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44325
44326 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44327
44328         * MODULES.html.sh (File system functions): New module write-any-file.
44329         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44330         * m4/write-any-file.m4: New files.
44331
44332 2007-03-23  Eric Blake  <ebb9@byu.net>
44333
44334         * gnulib-tool: Rearrange space-tab sequences, since some editors
44335         like to eat them.
44336
44337 2007-03-23  Eric Blake  <ebb9@byu.net>
44338
44339         * lib/version-etc.c (version_etc_va): Update license wording to
44340         be more concise.  Recommended by Richard Stallman.
44341
44342 2007-03-22  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/poll.c (MSG_PEEK): New fallback definition.
44345
44346 2007-03-22  Bruno Haible  <bruno@clisp.org>
44347
44348         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44349         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44350         (main): Update.
44351         Fixes a compilation error on BeOS.
44352
44353 2007-03-22  Bruno Haible  <bruno@clisp.org>
44354
44355         * modules/frexpl-tests: New file.
44356         * tests/test-frexpl.c: New file.
44357
44358         * modules/frexpl: New file.
44359         * m4/frexpl.m4: New file.
44360         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44361         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44363         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44364         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44365         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44366
44367 2007-03-22  Bruno Haible  <bruno@clisp.org>
44368
44369         * lib/frexpl.c: Share code with lib/frexp.c.
44370         * modules/mathl (Files): Add lib/frexp.c.
44371         (Depends-on): Add isnanl-nolibm.
44372
44373 2007-03-22  Bruno Haible  <bruno@clisp.org>
44374
44375         * modules/printf-frexp (Files): Add m4/frexp.m4.
44376         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44377         only if the found frexp function actually works.
44378
44379 2007-03-22  Bruno Haible  <bruno@clisp.org>
44380
44381         * lib/frexp.c: Remove older implementation that uses divisions.
44382
44383 2007-03-21  Bruno Haible  <bruno@clisp.org>
44384
44385         * modules/frexp-tests: New file.
44386         * tests/test-frexp.c: New file.
44387
44388         * modules/frexp: New file.
44389         * lib/frexp.c: New file.
44390         * m4/frexp.m4: New file.
44391         * lib/math_.h (frexp): New declaration.
44392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44393         REPLACE_FREXP.
44394         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44395
44396 2007-03-21  Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/isnanl-tests: New file.
44399         * tests/test-isnanl.c: New file.
44400
44401         * modules/isnanl: New file.
44402         * lib/isnanl.h: New file.
44403         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44404         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44405         gl_FUNC_ISNANL_WORKS.
44406         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44407         New macros.
44408
44409 2007-03-21  Bruno Haible  <bruno@clisp.org>
44410
44411         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44412         lib/isnanl.h.
44413         (Include): Update.
44414         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44415         * lib/vasnprintf.c: Update.
44416         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44417         tests/test-isnanl.h, remove tests/test-isnanl.c.
44418         (Makefile.am): Update.
44419         * tests/test-isnanl-nolibm.c: New file.
44420         * tests/test-isnanl.h: New file.
44421         * tests/test-isnanl.c: Remove file.
44422
44423 2007-03-21  Jim Meyering  <jim@meyering.net>
44424
44425         When trying to open ".", treat ESTALE like EACCES.
44426         * lib/savewd.c (savewd_save): Resort to forking not just upon
44427         failure with EACCES, but also when errno is ESTALE.
44428
44429 2007-03-20  Bruno Haible  <bruno@clisp.org>
44430
44431         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44432         Needed on AIX 5.1. Reported by Matthew Woehlke.
44433
44434 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44435
44436         Suggestions by Bruno Haible:
44437         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44438         our own.
44439         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44440         * modules/acl (Depends-on): Add gettext.
44441
44442 2007-03-19  Bruno Haible  <bruno@clisp.org>
44443
44444         * modules/iconvme: Remove file.
44445         * lib/iconvme.h: Remove file.
44446         * lib/iconvme.c: Remove file.
44447         * m4/iconvme.m4: Remove file.
44448
44449 2007-03-19  Bruno Haible  <bruno@clisp.org>
44450
44451         * doc/relocatable-maint.texi: Break long shell script line.
44452         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44453
44454 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44455
44456         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44457         handle file_has_acl.
44458         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44459         * lib/acl.c: Move header inclusions and related macro defns into
44460         lib/acl-internal.h.
44461         (S_ISLNK): Remove defn, since that's now done for us.
44462         (file_has_acl): Move to lib/file-has-acl.c.
44463         Call acl_trivial if available.  This is the crucial part of the fix.
44464         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44465         shared within the library.  Rewrite a bit, partly to make it compatible
44466         with the GNU coding style.
44467         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44468         Remove unnecessary double-quotes.
44469         Don't test for acl_to_text; the build will catch that.
44470         Replace acl_entries if it doesn't exist and it is needed.
44471         Check for -lsec and acl_trivial (as used on Solaris 10).
44472         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44473         lib/file-has-acl.c.
44474         (Depends-on): Add sys_stat, for S_ISLNK.
44475
44476 2007-03-19  Ben Pfaff  <blp@gnu.org>
44477
44478         * doc/gnulib.texi: Fix typos.
44479         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44480
44481 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44482
44483         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44484         If size is zero here, buf must be zero.
44485
44486 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44487
44488         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44489         <bruno@clisp.org>.
44490
44491 2007-03-18  Bruno Haible  <bruno@clisp.org>
44492
44493         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44494         Suggested by Eric Blake.
44495
44496 2007-03-18  Ben Pfaff  <blp@gnu.org>
44497
44498         * doc/relocatable.texi: Recommend using as prefix a directory
44499         that does not exist and will never be created.  Based on
44500         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44501         and others.
44502
44503 2007-03-17  Bruno Haible  <bruno@clisp.org>
44504
44505         * lib/fchownat.c: Include lchown.h.
44506
44507 2007-03-17  Bruno Haible  <bruno@clisp.org>
44508
44509         Fix endless loop when the given allocated size was > INT_MAX.
44510         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44511         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44512         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44513         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44514         * lib/sprintf.c (sprintf): Likewise.
44515
44516 2007-03-17  Bruno Haible  <bruno@clisp.org>
44517
44518         * tests/test-argp-2.sh (func_compare): Output a context diff.
44519
44520 2007-03-17  Bruno Haible  <bruno@clisp.org>
44521
44522         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44523         locale's decimal-point character.
44524
44525 2007-03-17  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44528         before comparing it. Needed because on some platforms (e.g. x86) a
44529         'long double' occupies less bytes than sizeof (long double).
44530
44531 2007-03-17  Bruno Haible  <bruno@clisp.org>
44532
44533         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44534         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44535         * tests/test-getaddrinfo.c (simple): Likewise.
44536         * tests/test-read-file.c (main): Likewise.
44537
44538 2007-03-17  Bruno Haible  <bruno@clisp.org>
44539
44540         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44541
44542 2007-03-17  Bruno Haible  <bruno@clisp.org>
44543
44544         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44545         unused variable.
44546
44547 2007-03-17  Bruno Haible  <bruno@clisp.org>
44548
44549         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44550         * tests/test-c-strncasecmp.c: Likewise.
44551
44552 2007-03-17  Bruno Haible  <bruno@clisp.org>
44553
44554         * modules/stdlib (Depends-on): Add unistd.
44555         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44556         Needed for MacOS X 10.3.
44557
44558 2007-03-17  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44561
44562 2007-03-17  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44565
44566 2007-03-17  Bruno Haible  <bruno@clisp.org>
44567
44568         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44569         to reflect files copied from gnulib (with or without modifications).
44570         Suggested by Jim Meyering.
44571
44572 2007-03-17  Eric Blake  <ebb9@byu.net>
44573
44574         * NEWS: Document stdlib change from 2007-02-18.
44575
44576 2007-03-17  Jim Meyering  <jim@meyering.net>
44577
44578         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44579         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44580         someone uses a name containing shell meta-characters.
44581         Reported by Alfred M. Szmidt.
44582
44583         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44584
44585 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44586
44587         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44588         and copy gettext configuration files only if configure.ac contains
44589         a use of AM_GNU_GETTEXT_VERSION.
44590
44591 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44592
44593         * build-aux/bootstrap (gnulib_name): New variable.
44594         (gnulib_tool_options): Use it.
44595
44596 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44597
44598         * tests/test-des.c: Use new namespace.
44599
44600 2007-03-15  Bruno Haible  <bruno@clisp.org>
44601
44602         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44603         Reported by James Youngman <jay@gnu.org>.
44604
44605 2007-03-15  Bruno Haible  <bruno@clisp.org>
44606
44607         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44608         declared prototype. Needed with cc on OSF/1 5.1.
44609
44610 2007-03-15  Bruno Haible  <bruno@clisp.org>
44611
44612         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44613         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44614         (struct gl_list_implementation): Add dispose_fn argument to the
44615         'create_empty', 'create' methods.
44616         (struct gl_list_impl_base): Add field 'dispose_fn'.
44617         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44618         argument.
44619         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44620         dispose_fn argument.
44621         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44622         dispose_fn on the dropped values.
44623         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44624         dispose_fn argument.
44625         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44626         dropped values.
44627         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44628         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44629         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44630         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44631         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44632         argument.
44633         (gl_tree_list_free): Call dispose_fn on the dropped values.
44634         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44635         the dropped values.
44636         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44637         Add dispose_fn argument.
44638         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44639         Call dispose_fn on the dropped values.
44640         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44641         Add dispose_fn argument.
44642         (gl_sublist_create): Initialize the 'dispose_fn' field.
44643         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44644         * tests/test-array_list.c (main): Update.
44645         * tests/test-carray_list.c (main): Update.
44646         * tests/test-avltree_list.c (main): Update.
44647         * tests/test-rbtree_list.c (main): Update.
44648         * tests/test-avltreehash_list.c (main): Update.
44649         * tests/test-rbtreehash_list.c (main): Update.
44650         * tests/test-linked_list.c (main): Update.
44651         * tests/test-linkedhash_list.c (main): Update.
44652         * tests/test-array_oset.c (main): Update.
44653
44654 2007-03-15  Bruno Haible  <bruno@clisp.org>
44655
44656         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44657         (gl_oset_create_empty): Add dispose_fn argument.
44658         (struct gl_oset_implementation): Add dispose_fn argument to
44659         'create_empty' method.
44660         (struct gl_oset_impl_base): Add dispose_fn field.
44661         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44662         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44663         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44664         values.
44665         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44666         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44667         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44668         dropped value.
44669         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44670         dropped value.
44671         * tests/test-array_oset.c (main): Update.
44672         * tests/test-avltree_oset.c (main): Update.
44673         * tests/test-rbtree_oset.c (main): Update.
44674         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44675
44676 2007-03-13  Bruno Haible  <bruno@clisp.org>
44677
44678         * tests/test-stdbool.c (i): Update after last patch.
44679
44680 2007-03-12  Bruno Haible  <bruno@clisp.org>
44681
44682         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44683         the iswprint macro. Needed on Solaris 2.5.1.
44684
44685 2007-03-12  Bruno Haible  <bruno@clisp.org>
44686
44687         * tests/test-printf-frexp.c (main): Declare x as volatile.
44688
44689 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44690
44691         * doc/gnulib.texi (Build robot for gnulib): New section.
44692
44693 2007-03-12  Jim Meyering  <jim@meyering.net>
44694
44695         * build-aux/bootstrap: New file.
44696         * build-aux/bootstrap.conf: New file, from coreutils.
44697
44698 2007-03-11  Bruno Haible  <bruno@clisp.org>
44699
44700         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44701
44702 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44703
44704         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44705         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44706         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44707
44708 2007-03-11  Bruno Haible  <bruno@clisp.org>
44709
44710         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44711         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44712
44713 2007-03-11  Bruno Haible  <bruno@clisp.org>
44714
44715         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44716         formula. Needed for SunPRO C 5.0.
44717
44718 2007-03-11  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/long-options (Depends-on): Add getopt.
44721
44722 2007-03-11  Bruno Haible  <bruno@clisp.org>
44723
44724         * modules/modechange (Depends-on): Add stdbool.
44725
44726 2007-03-11  Bruno Haible  <bruno@clisp.org>
44727
44728         * modules/i-ring (Depends-on): Add stdbool.
44729
44730 2007-03-11  Bruno Haible  <bruno@clisp.org>
44731
44732         * modules/gc-des (Depends-on): Add stdbool.
44733
44734 2007-03-11  Bruno Haible  <bruno@clisp.org>
44735
44736         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44737
44738 2007-03-11  Bruno Haible  <bruno@clisp.org>
44739
44740         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44741
44742 2007-03-11  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44745
44746 2007-03-11  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/vasnprintf.c (sprintf): Undefine.
44749
44750 2007-03-11  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44753         initializers in SunPRO C and Compaq C compilers.
44754
44755 2007-03-11  Bruno Haible  <bruno@clisp.org>
44756
44757         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44758         decrementing code ANSI C compliant.
44759
44760 2007-03-11  Bruno Haible  <bruno@clisp.org>
44761
44762         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44763         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44764
44765 2007-03-11  Bruno Haible  <bruno@clisp.org>
44766
44767         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44768         <stdbool.h> substitute doesn't pass.
44769
44770 2007-03-11  Bruno Haible  <bruno@clisp.org>
44771
44772         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44773
44774 2007-03-11  Bruno Haible  <bruno@clisp.org>
44775
44776         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44777         script, for submission to autobuild.josefsson.org.
44778
44779 2007-03-10  Bruno Haible  <bruno@clisp.org>
44780
44781         * modules/canonicalize-lgpl-tests: New file.
44782         * tests/test-canonicalize-lgpl.sh: New file.
44783         * tests/test-canonicalize-lgpl.c: New file.
44784
44785         * modules/c-strcase-tests: New file.
44786         * tests/test-c-strcase.sh: New file.
44787         * tests/test-c-strcasecmp.c: New file.
44788         * tests/test-c-strncasecmp.c: New file.
44789
44790         * modules/atexit-tests: New file.
44791         * tests/test-atexit.sh: New file.
44792         * tests/test-atexit.c: New file.
44793
44794 2007-03-10  Bruno Haible  <bruno@clisp.org>
44795
44796         * tests/test-binary-io.sh: Use temporary filenames that are not so
44797         likely to clash with those of other tests (in a parallel make).
44798         * tests/test-binary-io.c: Likewise.
44799
44800 2007-03-10  Bruno Haible  <bruno@clisp.org>
44801
44802         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44803         fallback; use #error instead.
44804         Suggested by Simon Josefsson.
44805
44806 2007-03-10  Bruno Haible  <bruno@clisp.org>
44807
44808         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44809         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44810         first and the last.
44811
44812 2007-03-10  Bruno Haible  <bruno@clisp.org>
44813
44814         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44815
44816 2007-03-10  Bruno Haible  <bruno@clisp.org>
44817
44818         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44819         "make distcheck".
44820         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44821         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44822         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44823
44824 2007-03-10  Bruno Haible  <bruno@clisp.org>
44825
44826         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44827         variable.
44828         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44829         variable.
44830
44831 2007-03-09  Eric Blake  <ebb9@byu.net>
44832         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44833
44834         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44835         types are not being provided by gnulib.
44836         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44837         types are supported.
44838
44839 2007-03-10  Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/stdio_.h (__attribute__): New macro.
44842         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44843         vsprintf): Specify __attribute__ __format__ for GCC.
44844         Suggested by Eric Blake.
44845
44846 2007-03-09  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/printf-posix-tests: New file.
44849         * tests/test-printf-posix.sh: New file.
44850         * tests/test-printf-posix.c: New file.
44851
44852         * modules/printf-posix: New file.
44853         * lib/printf.c: New file.
44854         * m4/printf-posix-rpl.m4: New file.
44855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44856         REPLACE_PRINTF.
44857         * lib/stdio_.h (printf): New declaration.
44858         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44859         ____strfmon____): New macros.
44860         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44861         REPLACE_PRINTF.
44862
44863 2007-03-09  Bruno Haible  <bruno@clisp.org>
44864
44865         * tests/test-vasnprintf-posix2.sh: New file.
44866         * tests/test-vasnprintf-posix2.c: New file.
44867         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44868         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44869         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44870
44871         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44872         a locale dependent decimal point, rather than always '.'.
44873
44874 2007-03-09  Eric Blake  <ebb9@byu.net>
44875
44876         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44877         spite of platforms like Tandem/NSK that define it to -1.
44878
44879 2007-03-08  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/vprintf-posix-tests: New file.
44882         * tests/test-vprintf-posix.sh: New file.
44883         * tests/test-vprintf-posix.c: New file.
44884         * tests/test-printf-posix.h: New file.
44885
44886         * modules/vprintf-posix: New file.
44887         * lib/vprintf.c: New file.
44888         * m4/vprintf-posix.m4: New file.
44889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44890         REPLACE_VPRINTF.
44891         * lib/stdio_.h (vprintf): New declaration.
44892         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44893         REPLACE_VPRINTF.
44894
44895 2007-03-08  Bruno Haible  <bruno@clisp.org>
44896
44897         * modules/fprintf-posix-tests: New file.
44898         * tests/test-fprintf-posix.sh: New file.
44899         * tests/test-fprintf-posix.c: New file.
44900
44901         * modules/fprintf-posix: New file.
44902         * lib/fprintf.c: New file.
44903         * m4/fprintf-posix.m4: New file.
44904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44905         REPLACE_FPRINTF.
44906         * lib/stdio_.h (fprintf): New declaration.
44907         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44908         REPLACE_FPRINTF.
44909
44910 2007-03-08  Bruno Haible  <bruno@clisp.org>
44911
44912         * modules/vfprintf-posix-tests: New file.
44913         * tests/test-vfprintf-posix.sh: New file.
44914         * tests/test-vfprintf-posix.c: New file.
44915         * tests/test-fprintf-posix.h: New file.
44916         * tests/test-fprintf-posix.out: New file.
44917
44918         * modules/vfprintf-posix: New file.
44919         * lib/vfprintf.c: New file.
44920         * m4/vfprintf-posix.m4: New file.
44921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44922         REPLACE_VFPRINTF.
44923         * lib/stdio_.h (vfprintf): New declaration.
44924         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44925         REPLACE_VFPRINTF.
44926
44927 2007-03-08  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44930
44931 2007-03-08  Bruno Haible  <bruno@clisp.org>
44932
44933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44934         instead of 'expr' invocations.
44935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44939         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44940         Suggested by Paul Eggert.
44941
44942 2007-03-08  Bruno Haible  <bruno@clisp.org>
44943
44944         * modules/fseterr-tests: New file.
44945         * tests/test-fseterr.c: New file.
44946
44947         * modules/fseterr: New file.
44948         * lib/fseterr.h: New file.
44949         * lib/fseterr.c: New file.
44950
44951 2007-03-08  Bruno Haible  <bruno@clisp.org>
44952
44953         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44954         * lib/getopt_.h: Likewise.
44955         * lib/mbswidth.h: Likewise.
44956         * lib/setenv.h: Likewise.
44957         * lib/vasnprintf.h: Likewise.
44958         * lib/vasprintf.h: Likewise.
44959         * lib/verror.h: Likewise.
44960         * lib/xsetenv.h: Likewise.
44961         * lib/xvasprintf.h: Likewise.
44962
44963 2007-03-08  Jim Meyering  <jim@meyering.net>
44964
44965         * users.txt: Add parted.
44966
44967         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44968
44969 2007-03-07  Bruno Haible  <bruno@clisp.org>
44970
44971         * m4/printf.m4: Make the shell script snippets copy&pastable.
44972
44973 2007-03-02  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/netinet_in_.h: New file.
44976         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44977         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44978         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44979         (Depends-on): Add absolute-header.
44980         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44981         into netinet/in.h.
44982
44983 2007-03-03  Bruno Haible  <bruno@clisp.org>
44984
44985         * lib/sys_select_.h: New file.
44986         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44987         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44988         * modules/sys_select (Files): Add lib/sys_select_.h.
44989         (Depends-on): Add absolute-header.
44990         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44991         into sys/select.h.
44992
44993 2007-03-02  Bruno Haible  <bruno@clisp.org>
44994
44995         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44996         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44997         values.
44998         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44999         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
45000         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
45001         * modules/sys_socket (Depends-on): Add absolute-header.
45002         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
45003         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
45004         (Include): Remove requirement of inclusion of <sys/types.h>.
45005
45006 2007-03-02  Bruno Haible  <bruno@clisp.org>
45007
45008         * lib/byteswap_.h (bswap_32): Fix formula.
45009
45010 2007-03-06  Bruno Haible  <bruno@clisp.org>
45011
45012         * modules/sprintf-posix-tests: New file.
45013         * tests/test-sprintf-posix.c: New file.
45014
45015         * modules/sprintf-posix: New file.
45016         * lib/sprintf.c: New file.
45017         * m4/sprintf-posix.m4: New file.
45018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
45019         REPLACE_SPRINTF.
45020         * lib/stdio_.h (sprintf): New declaration.
45021         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
45022         REPLACE_SPRINTF.
45023
45024 2007-03-06  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/vsprintf-posix-tests: New file.
45027         * tests/test-vsprintf-posix.c: New file.
45028         * tests/test-sprintf-posix.h: New file.
45029
45030         * modules/vsprintf-posix: New file.
45031         * lib/vsprintf.c: New file.
45032         * m4/vsprintf-posix.m4: New file.
45033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
45034         REPLACE_VSPRINTF.
45035         * lib/stdio_.h (vsprintf): New declaration.
45036         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
45037         REPLACE_VSPRINTF.
45038
45039 2007-03-06  Bruno Haible  <bruno@clisp.org>
45040
45041         * modules/vsnprintf (Depend-on): Remove minmax.
45042
45043 2007-03-06  Bruno Haible  <bruno@clisp.org>
45044
45045         * modules/snprintf-posix-tests: New file.
45046         * tests/test-snprintf-posix.c: New file.
45047
45048         * modules/snprintf-posix: New file.
45049         * m4/snprintf-posix.m4: New file.
45050         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
45051         gl_FUNC_SNPRINTF.
45052         (gl_FUNC_SNPRINTF): Invoke it.
45053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
45054         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
45055         is set.
45056         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
45057
45058 2007-03-06  Bruno Haible  <bruno@clisp.org>
45059
45060         * modules/vsnprintf-posix-tests: New file.
45061         * tests/test-vsnprintf-posix.c: New file.
45062         * tests/test-snprintf-posix.h: New file.
45063
45064         * modules/vsnprintf-posix: New file.
45065         * m4/vsnprintf-posix.m4: New file.
45066         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
45067         gl_FUNC_VSNPRINTF.
45068         (gl_FUNC_VSNPRINTF): Invoke it.
45069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
45070         * lib/stdio_.h (vsnprintf): Define as a replacement if
45071         REPLACE_VSNPRINTF is set.
45072         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
45073
45074 2007-03-06  Bruno Haible  <bruno@clisp.org>
45075
45076         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
45077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
45078
45079 2007-03-06  Bruno Haible  <bruno@clisp.org>
45080
45081         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
45082         (asinl): Declare also if HAVE_DECL_ASINL is set.
45083         (atanl): Declare also if HAVE_DECL_ATANL is set.
45084         (ceill): Declare also if HAVE_DECL_CEILL is set.
45085         (cosl): Declare also if HAVE_DECL_COSL is set.
45086         (expl): Declare also if HAVE_DECL_EXPL is set.
45087         (floorl): Declare also if HAVE_DECL_FLOORL is set.
45088         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
45089         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
45090         (logl): Declare also if HAVE_DECL_LOGL is set.
45091         (sinl): Declare also if HAVE_DECL_SINL is set.
45092         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
45093         (tanl): Declare also if HAVE_DECL_TANL is set.
45094         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
45095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
45096         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
45097         declaration of frexpl, ldexpl.
45098         * modules/printf-frexpl (Depends-on): Add math.
45099         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
45100
45101 2007-03-05  Bruno Haible  <bruno@clisp.org>
45102
45103         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
45104         frexpl and ldexpl are declared.
45105         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
45106
45107 2007-03-05  Bruno Haible  <bruno@clisp.org>
45108
45109         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
45110         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
45111
45112 2007-03-05  Bruno Haible  <bruno@clisp.org>
45113
45114         * lib/stdio_.h: Include <stddef.h>.
45115
45116 2007-03-05  Bruno Haible  <bruno@clisp.org>
45117
45118         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45119
45120 2007-03-05  Bruno Haible  <bruno@clisp.org>
45121
45122         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45123         NetBSD 4, from Ralf Wildenhues.
45124
45125 2007-03-04  Bruno Haible  <bruno@clisp.org>
45126
45127         * lib/vasprintf.h: Update #if logic for the case when the functions
45128         exist but are overridden.
45129
45130 2007-03-04  Bruno Haible  <bruno@clisp.org>
45131
45132         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45133         implementations: glibc-2.4 and MacOS X 10.3.
45134         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45135         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45136         * tests/test-vasprintf-posix.c (test_function): Likewise.
45137
45138 2007-03-04  Bruno Haible  <bruno@clisp.org>
45139
45140         * modules/vasprintf-posix-tests: New file.
45141         * tests/test-vasprintf-posix.c: New file.
45142
45143         * modules/vasprintf-posix: New file.
45144         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45145         defined.
45146         * m4/vasprintf-posix.m4: New file.
45147         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45148         gl_FUNC_VASPRINTF.
45149         (gl_FUNC_VASPRINTF): Invoke it.
45150         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45151         here.
45152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45153
45154 2007-03-04  Bruno Haible  <bruno@clisp.org>
45155
45156         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45157         REPLACE_GETTIMEOFDAY.
45158         * modules/sys_time (Makefile.am): Likewise.
45159         * m4/sys_time_h.m4: Likewise.
45160         * m4/gettimeofday.m4: Likewise.
45161
45162 2007-03-04  Bruno Haible  <bruno@clisp.org>
45163
45164         * modules/vasnprintf-posix-tests: New file.
45165         * tests/test-vasnprintf-posix.c: New file.
45166
45167         * modules/vasnprintf-posix: New file.
45168         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45169         printf-frexpl.h.
45170         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45171         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45172         REPLACE_VASNPRINTF is defined.
45173         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45174         gl_FUNC_VASNPRINTF.
45175         (gl_FUNC_VASNPRINTF): Invoke it.
45176         * m4/vasnprintf-posix.m4: New file.
45177         * m4/printf.m4: New file.
45178
45179 2007-03-04  Bruno Haible  <bruno@clisp.org>
45180
45181         Compile progreloc.c only if --enable-relocatable is specified.
45182         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45183         if --enable-relocatable was specified.
45184         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45185         lib_SOURCES.
45186
45187 2007-03-04  Jim Meyering  <jim@meyering.net>
45188
45189         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45190         Use it consistently, rather than enumerating errno constants.
45191
45192 2007-03-04  Bruno Haible  <bruno@clisp.org>
45193
45194         * modules/xvasprintf-tests: New file.
45195         * tests/test-xvasprintf.c: New file.
45196
45197         * modules/vasprintf-tests: New file.
45198         * tests/test-vasprintf.c: New file.
45199
45200         * modules/vasnprintf-tests: New file.
45201         * tests/test-vasnprintf.c: New file.
45202
45203         * modules/vsnprintf-tests: New file.
45204         * tests/test-vsnprintf.c: New file.
45205
45206         * modules/snprintf-tests: New file.
45207         * tests/test-snprintf.c: New file.
45208
45209 2007-03-04  Bruno Haible  <bruno@clisp.org>
45210
45211         Compile relocatable.c only if --enable-relocatable is specified.
45212         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45213         gl_RELOCATABLE_LIBRARY.
45214         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45215         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45216         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45217         gl_RELOCATABLE_LIBRARY.
45218         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45219         (Makefile.am): Remove lib_SOURCES.
45220         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45221         gl_RELOCATABLE_LIBRARY.
45222         (Makefile.am): Remove lib_SOURCES.
45223         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45224         always.
45225         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45226         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45227
45228 2007-03-04  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/argmatch-tests: New file.
45231         * tests/test-argmatch.c: New file.
45232
45233         * tests/test-allocsa.c (main): Halve the number of loop runs.
45234
45235         * modules/alloca-opt-tests: New file.
45236         * tests/test-alloca-opt.c: New file.
45237
45238 2007-03-04  Jim Meyering  <jim@meyering.net>
45239
45240         Work around difference between Linux ACLs and Solaris 10 ZFS.
45241         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45242         for EINVAL.
45243
45244 2007-03-03  Bruno Haible  <bruno@clisp.org>
45245
45246         * modules/relocatable-prog (Depends-on): Add back progreloc's
45247         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45248
45249 2007-03-03  Bruno Haible  <bruno@clisp.org>
45250
45251         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45252         * modules/relocatable-lib: New file.
45253
45254 2007-03-03  Bruno Haible  <bruno@clisp.org>
45255
45256         * modules/relocatable-prog: Renamed from modules/relocatable.
45257         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45258
45259 2007-03-03  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45262         m4/relocatable-lib.m4.
45263         (Depends-on): Remove 'relocatable'.
45264         (configure.ac): Add gl_RELOCATABLE_NOP.
45265
45266 2007-03-03  Bruno Haible  <bruno@clisp.org>
45267
45268         * modules/relocatable-prog-wrapper: New file.
45269         * modules/relocatable (Depends-on): Add it. Remove all other
45270         dependencies except progname.
45271         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45272
45273         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45274         (gl_FUNC_STRERROR): Nop.
45275         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45276
45277         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45278         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45279
45280         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45281         (gl_FUNC_READLINK): Update.
45282
45283         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45284
45285 2007-03-03  Bruno Haible  <bruno@clisp.org>
45286
45287         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45288         * modules/xreadlink (Depends-on): Add unistd.
45289         * modules/xreadlink-with-size (Depends-on): Likewise.
45290
45291 2007-03-03  Bruno Haible  <bruno@clisp.org>
45292
45293         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45294         extracted from gt_FUNC_SETENV.
45295         (gt_FUNC_SETENV): Remove macro.
45296         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45297         remove gt_FUNC_SETENV.
45298
45299 2007-03-03  Bruno Haible  <bruno@clisp.org>
45300
45301         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45302         ENABLE_RELOCATABLE here.
45303         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45304
45305 2007-03-03  Bruno Haible  <bruno@clisp.org>
45306
45307         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45308         * tests/test-rbtreehash_list.c: Include progname.h.
45309         (main): Call set_program_name.
45310
45311         * modules/rbtree-oset-tests (Depends-on): Add progname.
45312         * tests/test-rbtree_oset.c: Include progname.h.
45313         (main): Call set_program_name.
45314
45315         * modules/rbtree-list-tests (Depends-on): Add progname.
45316         * tests/test-rbtree_list.c: Include progname.h.
45317         (main): Call set_program_name.
45318
45319         * modules/linked-list-tests (Depends-on): Add progname.
45320         * tests/test-linked_list.c: Include progname.h.
45321         (main): Call set_program_name.
45322
45323 2007-03-03  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45326         All uses of __restrict changed to _Restrict_.
45327         * lib/glob_.h (__restrict): Remove macro.
45328
45329 2007-03-02  Bruno Haible  <bruno@clisp.org>
45330
45331         * modules/gettext (configure.ac): Require gettext infrastructure
45332         from version 0.16.1.
45333
45334 2007-03-02  Bruno Haible  <bruno@clisp.org>
45335
45336         * modules/linkedhash-list-tests (Depends-on): Add progname.
45337         * tests/test-linkedhash_list.c: Include progname.h.
45338         (main): Call set_program_name.
45339
45340         * modules/carray-list-tests (Depends-on): Add progname.
45341         * tests/test-carray_list.c: Include progname.h.
45342         (main): Call set_program_name.
45343
45344         * modules/avltreehash-list-tests (Depends-on): Add progname.
45345         * tests/test-avltreehash_list.c: Include progname.h.
45346         (main): Call set_program_name.
45347
45348         * modules/avltree-oset-tests (Depends-on): Add progname.
45349         * tests/test-avltree_oset.c: Include progname.h.
45350         (main): Call set_program_name.
45351
45352         * modules/avltree-list-tests (Depends-on): Add progname.
45353         * tests/test-avltree_list.c: Include progname.h.
45354         (main): Call set_program_name.
45355
45356         * modules/array-oset-tests (Depends-on): Add progname.
45357         * tests/test-array_oset.c: Include progname.h.
45358         (main): Call set_program_name.
45359
45360         * modules/array-list-tests (Depends-on): Add progname.
45361         * tests/test-array_list.c: Include progname.h.
45362         (main): Call set_program_name.
45363
45364         * modules/argp-tests (Depends-on): Add progname.
45365         * tests/test-argp.c: Include argp.h first. Include progname.h.
45366         (main): Call set_program_name.
45367
45368 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45369
45370         * doc/gnulib-tool.texi (Initial import): Reword description of
45371         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45372         limited effect even if defined after the first system include.
45373
45374 2007-03-01  Bruno Haible  <bruno@clisp.org>
45375
45376         * build-aux/config.libpath: Update to libtool-1.5.22.
45377         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45378
45379 2007-03-01  Bruno Haible  <bruno@clisp.org>
45380
45381         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45382         foo_CFLAGS.
45383         Reported by Ralf Wildenhues.
45384
45385 2007-03-01  Bruno Haible  <bruno@clisp.org>
45386
45387         * build-aux/install-reloc: Remove object files left over by some
45388         compilers.
45389         Reported by Ralf Wildenhues.
45390
45391 2007-03-01  Bruno Haible  <bruno@clisp.org>
45392
45393         * build-aux/install-reloc: Break long lines.
45394
45395 2007-03-01  Bruno Haible  <bruno@clisp.org>
45396
45397         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45398         Reported by Ralf Wildenhues.
45399
45400 2007-03-01  Bruno Haible  <bruno@clisp.org>
45401
45402         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45403         include ordering constraints.
45404
45405 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45406
45407         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45409         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45410         as another example.
45411         * lib/time_.h: Fix misspelling.
45412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45413         Require gl_HEADER_TIME_H_DEFAULTS.
45414         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45415         * m4/time_r.m4 (gl_TIME_R): Likewise.
45416         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45417
45418 2007-03-01  Bruno Haible  <bruno@clisp.org>
45419
45420         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45421         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45422
45423 2007-03-01  Jim Meyering  <jim@meyering.net>
45424
45425         * modules/xreadlink (Maintainer): Add my name.
45426         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45427
45428 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45429             Bruno Haible  <bruno@clisp.org>
45430
45431         * build-aux/install-reloc: Compile also c-ctype.c.
45432         * build-aux/relocatable.sh.in: New file.
45433         * doc/relocatable.texi: New file.
45434         * doc/relocatable-maint.texi: New file.
45435         * doc/gnulib.texi: Include relocatable-maint.texi.
45436         * lib/progreloc.c: Include unistd.h unconditionally.
45437         * lib/relocwrapper.c: Include unistd.h unconditionally.
45438         Include c-ctype.h.
45439         (add_dotbin): Use c_tolower.
45440         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45441         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45442         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45443         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45444         to m4/relocatable-lib.m4.
45445         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45446         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45447         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45448         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45449         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45450         * modules/relocatable: New file.
45451         * modules/relocatable-lib: New file.
45452         * modules/relocatable-script: New file.
45453
45454 2007-02-28  Bruno Haible  <bruno@clisp.org>
45455
45456         Import --enable-relocatable infrastructure.
45457         * build-aux/config.libpath: New file, from GNU gettext.
45458         * build-aux/install-reloc: New file, from GNU gettext.
45459         * build-aux/reloc-ldflags: New file, from GNU gettext.
45460         * lib/relocatable.h: New file, from GNU gettext.
45461         * lib/relocatable.c: New file, from GNU gettext.
45462         * lib/relocwrapper.c: New file, from GNU gettext.
45463         * m4/relocatable.m4: New file, from GNU gettext.
45464
45465 2007-02-28  Bruno Haible  <bruno@clisp.org>
45466
45467         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45468
45469         * modules/xreadlink: New file, from GNU gettext with modifications.
45470         * lib/xreadlink.c: New file, from GNU gettext.
45471         * lib/xreadlink.h: Add comments.
45472         (xreadlink): New declaration.
45473
45474         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45475         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45476         lib/xreadlink-with-size.c.
45477         (configure.ac): Remove gl_XREADLINK invocation.
45478         (Makefile.am): Augment lib_SOURCES.
45479         * m4/xreadlink.m4: Remove file.
45480         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45481         (xreadlink_with_size): Renamed from xreadink.
45482         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45483         * modules/canonicalize (Depends-on): Replace xreadlink with
45484         xreadlink-with-size.
45485         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45486
45487 2007-02-25  Jim Meyering  <jim@meyering.net>
45488
45489         * build-aux/announce-gen: When complaining about excess arguments,
45490         list them.
45491
45492 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45493
45494         * README: Document signed integer overflow situation more
45495         accurately.
45496
45497 2007-02-25  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45500         'a' or 'A' conversion.
45501
45502 2007-02-25  Bruno Haible  <bruno@clisp.org>
45503
45504         * modules/filename: Renamed from modules/pathname.
45505         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45506         lib/concatpath.c with lib/concat-filename.c.
45507         (Makefile.am): Update.
45508         (Include): Replace pathname.h with filename.h.
45509         * lib/filename.h: Renamed from lib/pathname.h.
45510         (concatenated_filename): Renamed from concatenated_pathname.
45511         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45512         (concatenated_filename): Renamed from concatenated_pathname.
45513         * lib/findprog.c: Include filename.h instead of pathname.h.
45514         (find_in_path): Update.
45515         * lib/javacomp.c: Include filename.h instead of pathname.h.
45516         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45517         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45518         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45519         is_oldgcj_14_13_usable, is_javac_usable): Update.
45520         * lib/javaexec.c: Include filename.h instead of pathname.h.
45521         (execute_java_class): Update.
45522         * modules/findprog: Update.
45523         * modules/javacomp: Update.
45524         * modules/javaexec: Update.
45525         * MODULES.html.sh (File system functions): Add 'filename', remove
45526         'pathname'.
45527
45528 2007-02-25  Bruno Haible  <bruno@clisp.org>
45529
45530         * modules/printf-frexpl-tests: New file.
45531         * tests/test-printf-frexpl.c: New file.
45532
45533         * modules/printf-frexpl: New file.
45534         * lib/printf-frexpl.h: New file.
45535         * lib/printf-frexpl.c: New file.
45536         * m4/printf-frexpl.m4: New file.
45537
45538 2007-02-25  Bruno Haible  <bruno@clisp.org>
45539
45540         * modules/printf-frexp-tests: New file.
45541         * tests/test-printf-frexp.c: New file.
45542
45543         * modules/printf-frexp: New file.
45544         * lib/printf-frexp.h: New file.
45545         * lib/printf-frexp.c: New file.
45546         * m4/printf-frexp.m4: New file.
45547
45548 2007-02-25  Bruno Haible  <bruno@clisp.org>
45549
45550         Assume automake >= 1.10 for the tests.
45551         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45552         * modules/arctwo-tests: Likewise.
45553         * modules/argp-tests: Likewise.
45554         * modules/avltree-list-tests: Likewise.
45555         * modules/avltree-oset-tests: Likewise.
45556         * modules/avltreehash-list-tests: Likewise.
45557         * modules/carray-list-tests: Likewise.
45558         * modules/crc-tests: Likewise.
45559         * modules/des-tests: Likewise.
45560         * modules/gc-arcfour-tests: Likewise.
45561         * modules/gc-arctwo-tests: Likewise.
45562         * modules/gc-des-tests: Likewise.
45563         * modules/gc-hmac-md5-tests: Likewise.
45564         * modules/gc-hmac-sha1-tests: Likewise.
45565         * modules/gc-md2-tests: Likewise.
45566         * modules/gc-md4-tests: Likewise.
45567         * modules/gc-md5-tests: Likewise.
45568         * modules/gc-pbkdf2-sha1-tests: Likewise.
45569         * modules/gc-rijndael-tests: Likewise.
45570         * modules/gc-sha1-tests: Likewise.
45571         * modules/gc-tests: Likewise.
45572         * modules/getaddrinfo-tests: Likewise.
45573         * modules/hmac-md5-tests: Likewise.
45574         * modules/hmac-sha1-tests: Likewise.
45575         * modules/linked-list-tests: Likewise.
45576         * modules/linkedhash-list-tests: Likewise.
45577         * modules/lock-tests: Likewise.
45578         * modules/md2-tests: Likewise.
45579         * modules/md4-tests: Likewise.
45580         * modules/md5-tests: Likewise.
45581         * modules/rbtree-list-tests: Likewise.
45582         * modules/rbtree-oset-tests: Likewise.
45583         * modules/rbtreehash-list-tests: Likewise.
45584         * modules/read-file-tests: Likewise.
45585         * modules/rijndael-tests: Likewise.
45586         * modules/stdint-tests: Likewise.
45587         * modules/tls-tests: Likewise.
45588
45589 2007-02-24  Bruno Haible  <bruno@clisp.org>
45590
45591         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45592         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45593         function; instead check whether isnan with a double argument links.
45594         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45595         function; instead check whether isnan with a 'long double' argument
45596         links.
45597         Reported by Eric Blake <ebb9@byu.net>.
45598
45599 2007-02-24  Bruno Haible  <bruno@clisp.org>
45600
45601         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45602         defined.
45603         * lib/isnanl.c: Remove all code. Just include isnan.c.
45604         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45605
45606 2007-02-25  Jim Meyering  <jim@meyering.net>
45607
45608         Avoid conflicting types for 'unsetenv' on FreeBSD.
45609         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45610         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45611         in stdlib.h.
45612
45613 2007-02-24  Bruno Haible  <bruno@clisp.org>
45614
45615         * modules/isnanl-nolibm-tests: New file.
45616         * tests/test-isnanl.c: New file.
45617
45618         * modules/isnanl-nolibm: New file.
45619         * lib/isnanl.h: New file.
45620         * lib/isnanl.c: New file.
45621         * m4/isnanl.m4: New file.
45622
45623 2007-02-24  Bruno Haible  <bruno@clisp.org>
45624
45625         * modules/isnan-nolibm-tests: New file.
45626         * tests/test-isnan.c: New file.
45627
45628         * modules/isnan-nolibm: New file.
45629         * lib/isnan.h: New file.
45630         * lib/isnan.c: New file.
45631         * m4/isnan.m4: New file.
45632
45633 2007-02-24  Bruno Haible  <bruno@clisp.org>
45634
45635         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45636         assume that an exponent fits in 20 bits.
45637
45638 2007-02-24  Jim Meyering  <jim@meyering.net>
45639
45640         * m4/regex.m4: Update the description of the configure-time option,
45641         --without-included-regex, to state accurately what the defaults are,
45642         and perhaps to give people an idea why using this option is risky.
45643
45644 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45645
45646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45647         loops on small arguments.  This attempts to avoid the problem
45648         Bruno Haible reported for AIX 4.3.2 in
45649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45650
45651 2007-02-23  Bruno Haible  <bruno@clisp.org>
45652
45653         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45654         Needed for help2man.
45655
45656 2007-02-23  Karl Berry  <karl@gnu.org>
45657
45658         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45659         exists, foo.h should be cvs-ignored, not committed.
45660
45661 2007-02-23  Eric Blake  <ebb9@byu.net>
45662
45663         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45664         * lib/stat-time.h (includes): Likewise.
45665         * lib/utimecmp.c (includes): Likewise.
45666         * lib/utimens.h (includes): Likewise.
45667         * lib/getdate.y (includes): Also include "timespec.h" for use
45668         internal to the module.
45669         * modules/utimens (Depends-on): Revert yesterday's patch.
45670         * modules/nanosleep (Depends-on): Add missing dependency.
45671
45672 2007-02-22  Bruno Haible  <bruno@clisp.org>
45673
45674         * lib/glob.c: Don't include getlogin_r.h.
45675
45676 2007-02-22  Jim Meyering  <jim@meyering.net>
45677
45678         * modules/utimens (Depends-on): Add timespec, required for
45679         utimens.h's inclusion of timespec.h.
45680
45681 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45682
45683         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45684         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45685         Schwab in
45686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45687         I'll try to think of a better way to fix the Solaris problem.
45688
45689         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45690         like glibc; on Solaris 10, it fails with errno == EINVAL.
45691         POSIX says the behavior is unspecified if the first argument is NULL,
45692         so play it safe and never pass NULL to the system getcwd.
45693
45694 2007-02-21  Jim Meyering  <jim@meyering.net>
45695
45696         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45697         of gettimeofday.  It would conflict with the one now always
45698         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45699         an IRIX 6.5 build failure.
45700
45701 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45702
45703         Minor fixups to port to Solaris 10 with Sun C 5.8.
45704         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45705         * modules/getcwd (Depends-on): Add dirfd.
45706         * lib/putenv.c (putenv): #undef it.
45707         (rpl_putenv): New decl.
45708         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45709
45710 2007-02-20  Bruno Haible  <bruno@clisp.org>
45711
45712         * modules/stdio-tests: New file.
45713         * tests/test-stdio.c: New file.
45714
45715         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45716         (Depends-on): Add stdio.
45717         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45718         (Include): Use <stdio.h> instead of vsnprintf.h.
45719         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45720         HAVE_DECL_VSNPRINTF.
45721         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45722
45723         * modules/snprintf (Files): Remove lib/snprintf.h.
45724         (Depends-on): Add stdio.
45725         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45726         (Include): Use <stdio.h> instead of snprintf.h.
45727         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45728         HAVE_DECL_SNPRINTF.
45729         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45730         * lib/getaddrinfo.c: Likewise.
45731
45732         * modules/stdio: New file.
45733         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45734         * lib/snprintf.h: Remove file.
45735         * lib/vsnprintf.h: Remove file.
45736         * lib/.cppi-disable: Remove snprintf.h.
45737         * m4/stdio_h.m4: New file.
45738         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45739
45740 2007-02-20  Jim Meyering  <jim@meyering.net>
45741
45742         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45743         used by e.g., mingw.  From Bruno Haible.
45744
45745 2007-02-19  Bruno Haible  <bruno@clisp.org>
45746
45747         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45748         warnings.
45749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45750
45751 2007-02-19  Bruno Haible  <bruno@clisp.org>
45752
45753         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45754         from mingw users.
45755
45756 2007-02-19  Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45759         warnings.
45760         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45761
45762 2007-02-19  Jim Meyering  <jim@meyering.net>
45763
45764         Don't use FD after a successful "fdopendir (fd)".
45765         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45766         Reset it by calling dirfd on the just-obtained DIR*.
45767
45768         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45769         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45770
45771 2007-02-18  Bruno Haible  <bruno@clisp.org>
45772
45773         * lib/readlink.c: Include <unistd.h>.
45774         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45775         HAVE_READLINK.
45776         * modules/readlink (Depends-on): Add unistd.
45777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45778         (Include): Add <unistd.h>.
45779
45780         * lib/getlogin_r.h: Remove file.
45781         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45782         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45783         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45784         HAVE_DECL_GETLOGIN_R.
45785         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45787         (Include): Use <unistd.h> instead of getlogin_r.h.
45788
45789         * lib/getcwd.h: Remove file.
45790         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45791         * lib/xgetcwd.c: Likewise.
45792         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45793         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45794         * modules/getcwd (Files): Remove lib/getcwd.h.
45795         (Depends-on): Add unistd.
45796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45797         (Include): Use <unistd.h> instad of getcwd.h.
45798
45799         * lib/ftruncate.c: Include <unistd.h> first.
45800         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45801         Set HAVE_FTRUNCATE.
45802         * modules/ftruncate (Depends-on): Add unistd.
45803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45804
45805         * lib/fchdir.c: Include <unistd.h> first.
45806         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45807         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45808         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45809         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45810         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45811
45812         * lib/dup2.c: Include <unistd.h> first.
45813         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45814         HAVE_DUP2.
45815         * modules/dup2 (Depends-on): Add unistd.
45816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45817
45818         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45819         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45820         REPLACE_CHOWN. Don't define chown as a macro here.
45821         * modules/chown (Depends-on): Add unistd.
45822         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45823
45824         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45825         Add definition for GL_LINK_WARNING.
45826         (chown, dup2): New declarations.
45827         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45828         link warning.
45829         (ftruncate): New declaration.
45830         (getcwd): New declaration, taken from old getcwd.h.
45831         (getlogin_r): New declaration, taken from old getlogin_r.h.
45832         (readlink): New declaration.
45833         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45834         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45835         (gl_PREREQ_UNISTD): Remove macro.
45836         (gl_UNISTD_MODULE_INDICATOR): New macro.
45837         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45838         many new variables. Don't set UNISTD_H.
45839         * modules/unistd (Description): Change.
45840         (Depends-on): Add link-warning.
45841         (configure.ac): Update.
45842         (Makefile.am): Create unistd.h always. Substitute many new variables
45843         into it.
45844
45845 2007-02-18  Bruno Haible  <bruno@clisp.org>
45846
45847         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45848         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45849         HAVE_GETSUBOPT.
45850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45851         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45852         * lib/getsubopt.h: Remove file.
45853         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45854         (Depends-on): Add stdlib.
45855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45856         (Includes): Use <stdlib.h> instead of getsubopt.h.
45857         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45858         Set HAVE_GETSUBOPT.
45859         * lib/getsubopt.c: Don't include getsubopt.h.
45860
45861 2007-02-18  Bruno Haible  <bruno@clisp.org>
45862
45863         * modules/fchdir (Depends-on): Add dup2.
45864
45865 2007-02-18  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/stdlib_.h: Handle glibc's special invocation convention
45868         specially.
45869
45870 2007-02-18  Bruno Haible  <bruno@clisp.org>
45871
45872         * modules/stdlib-tests: New file.
45873         * tests/test-stdlib.c: New file.
45874
45875         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45876         (Depends-on): Add stdlib.
45877         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45878         (Includes): Use <stdlib.h> instead of mkstemp.h.
45879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45880         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45881         * lib/mkstemp.c: Don't include mkstemp.h.
45882         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45883         * lib/stdlib--.h: Don't include mkstemp.h.
45884
45885         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45886         (Depends-on): Add stdlib.
45887         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45888         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45889         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45890         HAVE_MKDTEMP.
45891         * lib/mkdtemp.c: Don't include mkdtemp.h.
45892         * lib/clean-temp.c: Don't include mkdtemp.h.
45893
45894         * modules/exit (Files): Remove lib/exit.h.
45895         (Depends-on): Add stdlib.
45896         (Makefile.am): Remove lib_SOURCES.
45897         (Include): Use <stdlib.h> instead of exit.h.
45898         * lib/argmatch.c: Don't include exit.h.
45899         * lib/execute.c: Likewise.
45900         * lib/pagealign_alloc.c: Likewise.
45901         * lib/pipe.c: Likewise.
45902         * lib/wait-process.c: Likewise.
45903         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45904         * lib/exitfail.c: Likewise.
45905         * lib/savewd.c: Likewise.
45906         * lib/xsetenv.c: Likewise.
45907
45908         * modules/stdlib: New file.
45909         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45910         and extra comments about mkstemp().
45911         * lib/exit.h: Remove file.
45912         * lib/mkdtemp.h: Remove file.
45913         * lib/mkstemp.h: Remove file.
45914         * m4/stdlib_h.m4: New file.
45915         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45916
45917 2007-02-18  Bruno Haible  <bruno@clisp.org>
45918
45919         * modules/math-tests: New file.
45920         * tests/test-math.c: New file.
45921
45922         * modules/math: New file.
45923         * modules/mathl (Files): Remove lib/mathl.h.
45924         (Depends-on): Add math.
45925         (Makefile.am): Don't mention mathl.h.
45926         (Include): Use <math.h> instead of mathl.h.
45927         * lib/math_.h: New file.
45928         * lib/mathl.h: Remove file.
45929         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45930         mathl.h.
45931         * lib/asinl.c: Likewise.
45932         * lib/atanl.c: Likewise.
45933         * lib/ceill.c: Likewise.
45934         * lib/cosl.c: Likewise.
45935         * lib/expl.c: Likewise.
45936         * lib/floorl.c: Likewise.
45937         * lib/frexpl.c: Likewise.
45938         * lib/ldexpl.c: Likewise.
45939         * lib/logl.c: Likewise.
45940         * lib/sincosl.c: Likewise.
45941         * lib/sinl.c: Likewise.
45942         * lib/sqrtl.c: Likewise.
45943         * lib/tanl.c: Likewise.
45944         * lib/trigl.c: Likewise.
45945         * m4/math_h.m4: New file.
45946         * MODULES.html.sh (Mathematics): Add math.
45947
45948 2007-02-17  Bruno Haible  <bruno@clisp.org>
45949
45950         * modules/wctype-tests: New file.
45951         * tests/test-wctype.c: New file.
45952
45953         * modules/wchar-tests: New file.
45954         * tests/test-wchar.c: New file.
45955
45956         * modules/unistd-tests: New file.
45957         * tests/test-unistd.c: New file.
45958
45959         * modules/time-tests: New file.
45960         * tests/test-time.c: New file.
45961
45962         * modules/sysexits-tests: New file.
45963         * tests/test-sysexits.c: New file.
45964
45965         * modules/sys_time-tests: New file.
45966         * tests/test-sys_time.c: New file.
45967
45968         * modules/sys_stat-tests: New file.
45969         * tests/test-sys_stat.c: New file.
45970
45971         * modules/sys_socket-tests: New file.
45972         * tests/test-sys_socket.c: New file.
45973
45974         * modules/sys_select-tests: New file.
45975         * tests/test-sys_select.c: New file.
45976
45977         * modules/string-tests: New file.
45978         * tests/test-string.c: New file.
45979
45980         * modules/stdbool-tests: New file.
45981         * tests/test-stdbool.c: New file.
45982
45983         * modules/netinet_in-tests: New file.
45984         * tests/test-netinet_in.c: New file.
45985
45986         * modules/inttypes-tests: New file.
45987         * tests/test-inttypes.c: New file.
45988
45989         * modules/fcntl-tests: New file.
45990         * tests/test-fcntl.c: New file.
45991
45992         * modules/byteswap-tests: New file.
45993         * tests/test-byteswap.c: New file.
45994
45995         * modules/arpa_inet-tests: New file.
45996         * tests/test-arpa_inet.c: New file.
45997
45998 2007-02-17  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
46001         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
46002         if the corresponding module is not enabled. Emit link warnings if
46003         the function is used nevertheless.
46004         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
46005         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
46006         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
46007         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
46008         * modules/inttypes (Depends-on): Add link-warning.
46009         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46010         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
46011         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
46012         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
46013         * modules/imaxdiv (configure.ac): Likewise.
46014         * modules/strtoimax (configure.ac): Likewise.
46015         * modules/strtoumax (configure.ac): Likewise.
46016
46017 2007-02-17  Bruno Haible  <bruno@clisp.org>
46018
46019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
46020         gl_STRING_MODULE_INDICATOR_DEFAULTS.
46021         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
46022         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
46023
46024 2007-02-17  Bruno Haible  <bruno@clisp.org>
46025
46026         * modules/link-warning: New file.
46027         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
46028         * lib/string_.h (GL_LINK_WARNING): Remove definition.
46029         * modules/string (Depends-on): Add link-warning.
46030         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46031         string.h.
46032         * MODULES.html.sh (Support for building libraries and executables): Add
46033         link-warning.
46034
46035 2007-02-17  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
46038         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
46039         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
46040         long lines.
46041
46042 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
46043             Bruno Haible  <bruno@clisp.org>
46044
46045         * modules/tmpfile: New file.
46046         * lib/tmpfile.c: New file.
46047         * m4/tmpfile.m4: New file.
46048         * MODULES.html.sh (func_all_modules): New section "Input/output".
46049
46050 2007-02-15  Bruno Haible  <bruno@clisp.org>
46051
46052         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
46053         (supports_delete_on_close): New function.
46054         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
46055
46056 2007-02-14  Bruno Haible  <bruno@clisp.org>
46057
46058         * modules/mbspcasecmp-tests: New file.
46059         * tests/test-mbspcasecmp.sh: New file.
46060         * tests/test-mbspcasecmp.c: New file.
46061
46062         New module mbspcasecmp.
46063         * modules/mbspcasecmp: New file.
46064         * lib/mbspcasecmp.c: New file.
46065         * lib/string_.h (strncasecmp): Change warning message.
46066         (mbspcasecmp): New declaration.
46067         * m4/mbspcasecmp.m4: New file.
46068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46069         GNULIB_MBSPCASECMP.
46070         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
46071         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
46072
46073 2007-02-14  Bruno Haible  <bruno@clisp.org>
46074
46075         * modules/mbsncasecmp-tests: New file.
46076         * tests/test-mbsncasecmp.sh: New file.
46077         * tests/test-mbsncasecmp.c: New file.
46078
46079         New module mbsncasecmp.
46080         * modules/mbsncasecmp: New file.
46081         * lib/mbsncasecmp.c: New file.
46082         * lib/string_.h (mbsncasecmp): New declaration.
46083         * m4/mbsncasecmp.m4: New file.
46084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46085         GNULIB_MBSNCASECMP.
46086         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
46087         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
46088
46089 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46090
46091         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
46092         Verify that it doesn't overlap with our flags.
46093         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
46094         do not have the desired effect in multibyte locales; instead, use
46095         mbscasecmp.
46096         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
46097         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
46098         we don't require GNU fnmatch ourselves (if our users require it, they
46099         should do so explicitly).
46100
46101         Fix regex code so it doesn't rely on strcasecmp.
46102         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
46103         Otherwise, include gnulib's langinfo.h.
46104         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
46105         undesirable behavior in non-C locales.  Instead, rely on localecharset.
46106         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
46107         * modules/regex (FILES): Remove m4/codeset.m4.
46108         (Depends-on): Add localcharset.  Remove strcase.
46109
46110 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46111
46112         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
46113         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46114
46115 2007-02-13  Bruno Haible  <bruno@clisp.org>
46116
46117         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46119
46120 2007-02-12  Bruno Haible  <bruno@clisp.org>
46121
46122         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46123         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46124         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46125         time warning rather than a link error.
46126
46127 2007-02-12  Bruno Haible  <bruno@clisp.org>
46128
46129         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46130         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46132
46133 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46134
46135         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46136         args, not 2.
46137
46138 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46139
46140         New module 'time', so that apps can include <time.h> as per
46141         POSIX and GNU instead of separate include files like time_r.h
46142         and timegm.h.  This implementation tries out a simpler approach
46143         for replacing decls in standard include files (as compared to
46144         the string module), somewhat as an experiment.
46145
46146         * config/srclist.txt: Comment out mktime.c for now.
46147         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46148         since it doesn't apply any more.  Use generic wording instead.
46149         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46150         'time'.
46151         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46152         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46153         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46154         Don't include <sys/types.h>; no longer needed since we assume C89.
46155         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46156         * lib/strftime.c: Likewise.
46157         * lib/time_r.c: Likewise.
46158         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46159         * lib/nanosleep.c: Include <time.h> first, to check interface.
46160         * lib/strptime.c: Likewise.
46161         * lib/time_r.c: Likewise.
46162         * lib/timegm.c: Likewise.
46163         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46164         needed.
46165         * lib/timegm.c: Don't include timegm.h; no longer needed.
46166         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46167         time.h now handles any problems in that area.
46168         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46169         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46170         that time.h defines struct timespec.
46171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46172         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46173         handles that.
46174         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46175         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46176         needed.  Set REPLACE_LOCALTIME.
46177         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46178         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46179         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46180         nanosleep; time_h.m4 now does that.  Don't require
46181         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46182         module handles this now.
46183         * modules/getdate (Depends-on): Remove timespec.  Add time.
46184         * modules/nanosleep (Depends-on): Likewise.
46185         * modules/stat-time (Depends-on): Likewise.
46186         * modules/nanosleep (Include): Include time.h, not timespec.h.
46187         * modules/strptime (Files): Remove lib/strptime.h.
46188         (Depends-on): Add extensions, time.
46189         (Include): Include time.h, not strptime.h.
46190         * modules/time_r (Files): Remove lib/time_r.h.
46191         (Depends-on): Add time.
46192         (Include): Include time.h, not time_r.h.
46193         * modules/timegm: Likewise.
46194         * modules/timespec (Description): Now does timespec-related decls
46195         of our own, instead of struct timespec itself.
46196         (Depends-on): Add time; remove extensions.
46197         (Maintainer): Add self.
46198         * modules/utimecmp (Depends-on): Add time; remove timespec.
46199         * modules/utimens (Depends-on): Likewise.
46200         * modules/xnanosleep (Depends-on): Likewise.
46201
46202 2007-02-11  Bruno Haible  <bruno@clisp.org>
46203
46204         * lib/c-strstr.c: Include allocsa.h.
46205         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46206         * lib/c-strcasestr.c: Include allocsa.h.
46207         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46208         * lib/strcasestr.c: Include allocsa.h.
46209         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46210         * lib/mbsstr.c: Include allocsa.h.
46211         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46212         allocsa/freesa instead of malloc/free.
46213         * lib/mbscasestr.c: Include allocsa.h.
46214         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46215         allocsa/freesa instead of malloc/free.
46216         * modules/c-strstr (Depends-on): Add allocsa.
46217         * modules/c-strcasestr (Depends-on): Likewise.
46218         * modules/strcasestr (Depends-on): Likewise.
46219         * modules/mbsstr (Depends-on): Likewise.
46220         * modules/mbscasestr (Depends-on): Likewise.
46221
46222 2007-02-11  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46225
46226         * modules/mbsspn-tests: New file.
46227         * tests/test-mbsspn.sh: New file.
46228         * tests/test-mbsspn.c: New file.
46229
46230 2007-02-11  Bruno Haible  <bruno@clisp.org>
46231
46232         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46233
46234         * modules/mbspbrk-tests: New file.
46235         * tests/test-mbspbrk.sh: New file.
46236         * tests/test-mbspbrk.c: New file.
46237
46238 2007-02-11  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46241         unneeded cast.
46242
46243         * modules/mbscspn-tests: New file.
46244         * tests/test-mbscspn.sh: New file.
46245         * tests/test-mbscspn.c: New file.
46246
46247 2007-02-11  Bruno Haible  <bruno@clisp.org>
46248
46249         * modules/mbscasecmp-tests: New file.
46250         * tests/test-mbscasecmp.sh: New file.
46251         * tests/test-mbscasecmp.c: New file.
46252
46253 2007-02-11  Bruno Haible  <bruno@clisp.org>
46254
46255         Ensure O(n) worst-case complexity of mbscasestr.
46256         * lib/mbscasestr.c: Include stdbool.h.
46257         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46258         functions.
46259         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46260         the bookkeeping indicates that it's worth it.
46261         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46262
46263         * modules/mbscasestr-tests: New file.
46264         * tests/test-mbscasestr1.c: New file.
46265         * tests/test-mbscasestr2.sh: New file.
46266         * tests/test-mbscasestr2.c: New file.
46267         * tests/test-mbscasestr3.sh: New file.
46268         * tests/test-mbscasestr3.c: New file.
46269         * tests/test-mbscasestr4.sh: New file.
46270         * tests/test-mbscasestr4.c: New file.
46271         * m4/locale-tr.m4: New file.
46272
46273 2007-02-11  Bruno Haible  <bruno@clisp.org>
46274
46275         Ensure O(n) worst-case complexity of mbsstr.
46276         * lib/mbsstr.c: Include stdbool.h.
46277         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46278         functions.
46279         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46280         bookkeeping indicates that it's worth it.
46281         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46282
46283         * modules/mbsstr-tests: New file.
46284         * tests/test-mbsstr1.c: New file.
46285         * tests/test-mbsstr2.sh: New file.
46286         * tests/test-mbsstr2.c: New file.
46287         * tests/test-mbsstr3.sh: New file.
46288         * tests/test-mbsstr3.c: New file.
46289         * m4/locale-fr.m4: New file.
46290
46291 2007-02-11  Bruno Haible  <bruno@clisp.org>
46292
46293         * lib/mbsrchr.c (mbsrchr): Fix bug.
46294
46295         * modules/mbsrchr-tests: New file.
46296         * tests/test-mbsrchr.sh: New file.
46297         * tests/test-mbsrchr.c: New file.
46298
46299 2007-02-11  Bruno Haible  <bruno@clisp.org>
46300
46301         * lib/mbschr.c (mbschr): Fix bug.
46302
46303         * modules/mbschr-tests: New file.
46304         * tests/test-mbschr.sh: New file.
46305         * tests/test-mbschr.c: New file.
46306         * m4/locale-zh.m4: New file.
46307
46308 2007-02-11  Bruno Haible  <bruno@clisp.org>
46309
46310         Support for copying multibyte string iterators.
46311         * lib/mbiter.h: Include <string.h>.
46312         (mbiter_multi_copy): New function.
46313         (mbi_copy): New macro.
46314         * lib/mbuiter.h: Include <string.h>.
46315         (mbuiter_multi_copy): New function.
46316         (mbui_copy): New macro.
46317
46318 2007-02-11  Bruno Haible  <bruno@clisp.org>
46319
46320         New module mbslen.
46321         * modules/mbslen: New file.
46322         * lib/mbslen.c: New file.
46323         * lib/string_.h (mbslen): New declaration.
46324         * m4/mbslen.m4: New file.
46325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46326         GNULIB_MBSLEN.
46327         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46328         * MODULES.html.sh (Internationalization functions): Add mbslen.
46329
46330 2007-02-11  Bruno Haible  <bruno@clisp.org>
46331
46332         Ensure O(n) worst-case complexity of strcasestr substitute.
46333         * lib/strcasestr.c: Include stdbool.h.
46334         (knuth_morris_pratt): New function.
46335         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46336         bookkeeping indicates that it's worth it.
46337         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46338
46339         * modules/strcasestr-tests: New file.
46340         * tests/test-strcasestr.c: New file.
46341
46342 2007-02-11  Bruno Haible  <bruno@clisp.org>
46343
46344         Ensure O(n) worst-case complexity of c_strcasestr.
46345         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46346         (knuth_morris_pratt): New function.
46347         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46348         the bookkeeping indicates that it's worth it.
46349         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46350
46351         * modules/c-strcasestr-tests: New file.
46352         * tests/test-c-strcasestr.c: New file.
46353
46354 2007-02-11  Bruno Haible  <bruno@clisp.org>
46355
46356         Ensure O(n) worst-case complexity of c_strstr.
46357         * lib/c-strstr.c: Include stdbool.h, string.h.
46358         (knuth_morris_pratt): New function.
46359         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46360         bookkeeping indicates that it's worth it.
46361         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46362
46363         * lib/c-strstr.c: Complete rewrite for maintainability.
46364
46365         * modules/c-strstr-tests: New file.
46366         * tests/test-c-strstr.c: New file.
46367
46368 2007-02-11  Bruno Haible  <bruno@clisp.org>
46369
46370         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46371         5.2.1 and earlier, whereby \055 was treated just like the range
46372         delimiter '-'.
46373         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46374
46375 2007-02-08  Bruno Haible  <bruno@clisp.org>
46376
46377         * modules/regex (Depends-on): Add stdbool.
46378         Reported by Dalibor Topic <robilad@kaffe.org>.
46379
46380 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46381
46382         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46383         Prefer returning from main to exiting from it.
46384         Remove unnecessary parens after sizeof.
46385
46386 2007-02-05  Bruno Haible  <bruno@clisp.org>
46387
46388         New module mbssep.
46389         * modules/mbssep: New file.
46390         * lib/mbssep.c: New file.
46391         * lib/string_.h (strsep): Add a conditional link warning.
46392         (mbssep): New declaration.
46393         * m4/mbssep.m4: New file.
46394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46395         GNULIB_MBSSEP.
46396         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46397         * MODULES.html.sh (Internationalization functions): Add mbssep.
46398
46399 2007-02-05  Bruno Haible  <bruno@clisp.org>
46400
46401         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46402         Optimize search in case of 1 delimiter.
46403
46404 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46405
46406         * lib/acl.h: Include sys/types.h before sys/acl.h.
46407
46408 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46409
46410         Merge upstream fix for glibc bugzilla #3957:
46411
46412         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46413
46414         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46415         bit for RE_HAT_LISTS_NOT_NEWLINE.
46416         (build_charclass_op): Remove bogus comment.
46417
46418 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46419
46420         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46421
46422 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46423
46424         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46425         * lib/memmem.c [!defined _LIBC]: Include config.h.
46426
46427 2007-02-04  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46430         warning message.
46431
46432 2007-02-04  Bruno Haible  <bruno@clisp.org>
46433
46434         New module mbstok_r.
46435         * modules/mbstok_r: New file.
46436         * lib/mbstok_r.c: New file.
46437         * lib/string_.h (strtok_r): Change argument names to match the
46438         comments. Add a conditional link warning.
46439         (mbstok_r): New declaration.
46440         * m4/mbstok_r.m4: New file.
46441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46442         GNULIB_MBSTOK_R.
46443         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46444         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46445
46446 2007-02-04  Bruno Haible  <bruno@clisp.org>
46447
46448         New module mbsspn.
46449         * modules/mbsspn: New file.
46450         * lib/mbsspn.c: New file.
46451         * lib/string_.h (strspn): Add a conditional link warning.
46452         (mbsspn): New declaration.
46453         * m4/mbsspn.m4: New file.
46454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46455         GNULIB_MBSSPN.
46456         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46457         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46458
46459 2007-02-04  Bruno Haible  <bruno@clisp.org>
46460
46461         New module mbspbrk.
46462         * modules/mbspbrk: New file.
46463         * lib/mbspbrk.c: New file.
46464         * lib/string_.h (strpbrk): Add a conditional link warning.
46465         (mbspbrk): New declaration.
46466         * m4/mbspbrk.m4: New file.
46467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46468         GNULIB_MBSPBRK.
46469         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46470         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46471
46472 2007-02-04  Bruno Haible  <bruno@clisp.org>
46473
46474         New module mbscspn.
46475         * modules/mbscspn: New file.
46476         * lib/mbscspn.c: New file.
46477         * lib/string_.h (strcspn): Add a conditional link warning.
46478         (mbscspn): New declaration.
46479         * m4/mbscspn.m4: New file.
46480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46481         GNULIB_MBSCSPN.
46482         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46483         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46484
46485 2007-02-04  Bruno Haible  <bruno@clisp.org>
46486
46487         New module mbscasestr, reduced goal of strcasestr.
46488         * modules/mbscasestr: New file.
46489         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46490         (mbscasestr): Renamed from strcasestr.
46491         * lib/strcasestr.c: Don't include mbuiter.h.
46492         (strcasestr): Remove support for multibyte locales.
46493         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46494         Change the conditional link warning.
46495         (mbscasestr): New declaration.
46496         * m4/mbscasestr.m4: New file.
46497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46498         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46499         REPLACE_STRCASESTR.
46500         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46502         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46503         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46504         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46505         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46506         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46507         (Depends-on): Remove mbuiter.
46508         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46509
46510 2007-02-04  Bruno Haible  <bruno@clisp.org>
46511
46512         Simplify handling of strncasecmp.
46513         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46514         the conditional link warning.
46515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46516         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46517         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46518         * modules/strcase (configure.ac): Don't invoke
46519         gl_STRING_MODULE_INDICATOR.
46520         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46521
46522 2007-02-04  Bruno Haible  <bruno@clisp.org>
46523
46524         New module mbscasecmp, reduced goal of strcasecmp.
46525         * modules/mbscasecmp: New file.
46526         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46527         (mbscasecmp): Renamed from strcasecmp.
46528         * lib/strcasecmp.c: Don't include mbuiter.h.
46529         (strcasecmp): Remove support for multibyte locales.
46530         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46531         Change the conditional link warning.
46532         (mbscasecmp): New declaration.
46533         * m4/mbscasecmp.m4: New file.
46534         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46535         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46536         REPLACE_STRCASECMP.
46537         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46539         GNULIB_MBSCASECMP.
46540         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46541         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46542         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46543         (Depends-on): Remove mbuiter.
46544         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46545
46546 2007-02-04  Bruno Haible  <bruno@clisp.org>
46547
46548         New module mbsstr. Remove module strstr.
46549         * modules/mbsstr: New file.
46550         * modules/strstr: Remove file.
46551         * lib/mbsstr.c: Renamed from lib/strstr.c.
46552         (mbsstr): Renamed from strstr.
46553         * lib/string_.h (strstr): Remove declaration. Change the conditional
46554         link warning.
46555         (mbsstr): New declaration.
46556         * m4/mbsstr.m4: New file.
46557         * m4/strstr.m4: Remove file.
46558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46559         REPLACE_STRSTR.
46560         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46561         Don't initialize GNULIB_STRSTR.
46562         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46563         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46564         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46565         (Support for systems lacking ANSI C 89): Remove strstr.
46566
46567 2007-02-04  Bruno Haible  <bruno@clisp.org>
46568
46569         New module mbsrchr.
46570         * modules/mbsrchr: New file.
46571         * lib/mbsrchr.c: New file.
46572         * lib/string_.h (strrchr): Add a conditional link warning.
46573         (mbsrchr): New declaration.
46574         * m4/mbsrchr.m4: New file.
46575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46576         GNULIB_MBSRCHR.
46577         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46578         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46579
46580 2007-02-04  Bruno Haible  <bruno@clisp.org>
46581
46582         New module mbschr.
46583         * modules/mbschr: New file.
46584         * lib/mbschr.c: New file.
46585         * lib/string_.h (strchr): Add a conditional link warning.
46586         (mbschr): New declaration.
46587         * m4/mbschr.m4: New file.
46588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46589         GNULIB_MBSCHR.
46590         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46591         * MODULES.html.sh (Internationalization functions): Add mbschr.
46592
46593 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46594
46595         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46596
46597         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46598
46599 2007-02-04  Bruno Haible  <bruno@clisp.org>
46600
46601         New module description section 'configure.ac-early'.
46602         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46603         (func_get_autoconf_early_snippet): New function.
46604         (func_import, func_create_testdir): Use it. Remove special cases for
46605         modules 'extensions' and 'lock'.
46606         * modules/extensions (configure.ac-early): Require
46607         gl_USE_SYSTEM_EXTENSIONS.
46608         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46609
46610 2007-02-04  Bruno Haible  <bruno@clisp.org>
46611
46612         Make use of gcj-4.3's -fsource and -ftarget option.
46613         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46614         and if so try the options -fsource and -ftarget.
46615         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46616         source_version, ftarget_option, target_version arguments.
46617         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46618         (is_envjavac_oldgcj_14_14_usable): Renamed from
46619         is_envjavac_gcj_14_14_usable.
46620         (is_envjavac_oldgcj_14_13_usable): Renamed from
46621         is_envjavac_gcj_14_13_usable.
46622         (is_gcj_present): Update.
46623         (is_gcj_43, is_gcj43_usable): New functions.
46624         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46625         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46626         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46627         try the options -fsource and -ftarget.
46628
46629 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46630
46631         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46632         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46633         larger value.
46634
46635 2007-02-03  Jim Meyering  <jim@meyering.net>
46636
46637         Give tools a better chance to allocate space for very large buffers.
46638         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46639
46640         Make pwd and readlink work also when run with an unreadable parent dir
46641         on systems with openat support.
46642         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46643         provided getcwd function, even when we have openat support.
46644         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46645
46646 2007-02-02  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46649         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46650         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46651         portability problems if one of these functions is only used on specific
46652         platforms.
46653         Reported by Paul Eggert.
46654
46655 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46656
46657         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46658         is causing more trouble than it's curing.
46659         * lib/regex_internal.h (__mempcpy): Remove.
46660         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46661         (and make the code a tad smaller to boot).
46662         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46663
46664 2007-02-02  Jim Meyering  <jim@meyering.net>
46665
46666         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46667         section, not in the Makefile.am: one.
46668
46669 2007-02-02  Eric Blake  <ebb9@byu.net>
46670
46671         * lib/strchrnul.c: Always include config.h first.
46672
46673         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46674         gnulib strstr is not necessary here.
46675
46676 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46677
46678         * m4/socklen.m4: Fix typo.
46679
46680 2007-02-02  Eric Blake  <ebb9@byu.net>
46681
46682         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46683         * modules/netinet_in (Makefile.am): Likewise.
46684
46685 2007-02-01  Bruno Haible  <bruno@clisp.org>
46686
46687         * lib/string_.h (GL_LINK_WARNING): New macro.
46688         (strcasecmp, strstr, strcasestr): If provided by the system,
46689         conditionally define as a macro that leads to a warning instead of to
46690         an error.
46691         (strncasecmp): Conditionally define as a macro that leads to a warning.
46692
46693 2007-02-01  Karl Berry  <karl@gnu.org>
46694
46695         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46696
46697 2007-02-01  Bruno Haible  <bruno@clisp.org>
46698
46699         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46700         renamings.
46701
46702 2007-02-01  Eric Blake  <ebb9@byu.net>
46703
46704         * modules/regex (Depends-on): Revert dependence on mempcpy.
46705         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46706         module's definition of mempcpy.
46707         Reported by Paul Eggert.
46708
46709 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46710
46711         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46712         the symbol XYZ before redefining it.  This fixes a problem with
46713         programs that don't use XYZ, when compiled on systems that define
46714         XYZ to something else.
46715
46716 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46717
46718         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46719         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46720         writeable to group or other and (2) is intended to have a special
46721         mode bit that is set or cleared.  In such a case, the directory
46722         should be neither group- nor other-writeable until the special
46723         mode bits are right.
46724
46725 2007-01-31  Eric Blake  <ebb9@byu.net>
46726
46727         * modules/mountlist (Depends-on): Add strstr.
46728
46729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46730         bug.
46731         * modules/string (Makefile.am): Remove redundant replacement.
46732         * modules/regex (Depends-on): Add mempcpy.
46733
46734 2007-01-31  Bruno Haible  <bruno@clisp.org>
46735
46736         New module description field 'Link'.
46737         * gnulib-tool (func_usage): Document --extract-link-directive.
46738         (sed_extract_prog): Recognize 'Link' directive.
46739         (func_get_link_directive): New function.
46740         (func_import): Show summary of link directives.
46741         Handle --extract-link-directive option.
46742         * modules/acl (Link): New section.
46743         * modules/clock-time (Link): New section.
46744         * modules/euidaccess (Link): New section.
46745         * modules/gettext (Link): New section.
46746         * modules/iconv (Link): New section.
46747         * modules/lock (Link): New section.
46748         * modules/nanosleep (Link): New section.
46749         * modules/readline (Link): New section.
46750
46751 2007-01-27  Bruno Haible  <bruno@clisp.org>
46752
46753         Enforce the use of gnulib modules for unportable <string.h> functions.
46754         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46755         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46756         (gl_HEADER_STRING_H_BODY): Require it.
46757         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46758         the symbol XYZ to one that gives a link error.
46759         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46760         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46761         * modules/mempcpy (configure.ac): Likewise.
46762         * modules/memrchr (configure.ac): Likewise.
46763         * modules/stpcpy (configure.ac): Likewise.
46764         * modules/stpncpy (configure.ac): Likewise.
46765         * modules/strcase (configure.ac): Likewise.
46766         * modules/strcasestr (configure.ac): Likewise.
46767         * modules/strchrnul (configure.ac): Likewise.
46768         * modules/strdup (configure.ac): Likewise.
46769         * modules/strndup (configure.ac): Likewise.
46770         * modules/strnlen (configure.ac): Likewise.
46771         * modules/strpbrk (configure.ac): Likewise.
46772         * modules/strsep (configure.ac): Likewise.
46773         * modules/strstr (configure.ac): Likewise.
46774         * modules/strtok_r (configure.ac): Likewise.
46775
46776 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46777
46778         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46779
46780 2007-01-30  Jim Meyering  <jim@meyering.net>
46781
46782         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46783
46784 2007-01-29  Bruno Haible  <bruno@clisp.org>
46785
46786         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46787         * lib/execute.c: Likewise.
46788         * lib/pipe.c: Likewise.
46789         * lib/printf-args.h: Likewise.
46790         * lib/printf-args.c: Likewise.
46791         * lib/printf-parse.c: Likewise.
46792         * lib/vasnprintf.c: Likewise.
46793
46794 2007-01-29  Eric Blake  <ebb9@byu.net>
46795
46796         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46797         declaration.
46798
46799 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46800
46801         * lib/strptime.h (strptime): Use 'restrict' for args where
46802         POSIX requires this.
46803         * lib/strptime.c (strptime): Likewise.
46804         Change license notice from LGPL to GPL, since gnulib-tool will
46805         change this as needed.
46806         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46807         defined.
46808         Include "strptime.h" first, to check interface.
46809         Do not #undef _LIBC and _NL_CURRENT.
46810         Do not include <stdlib.h>; no longer needed.
46811         Include "time_r.h" and declare ptime_locale_status
46812         only if _LIBC is not defined.
46813         (__P): Remove unused macro.
46814         (match_string): Bring back glibc version, but use it only if _LIBC
46815         is defined.
46816         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46817         Remove unnecessary assertion and abort() call.
46818         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46819         * m4/strptime.m4: Fix serial number comment.
46820         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46821         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46822         (Depends-on): Add time_r.
46823
46824 2007-01-29  Bruno Haible  <bruno@clisp.org>
46825
46826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46827         strptime.
46828         * modules/strptime (Depends-on): Add stdbool.
46829         * lib/strptime.h: Include <time.h> always. Add comments.
46830
46831 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46832
46833         * modules/strptime: New file.
46834         * lib/strptime.h: New file.
46835         * lib/strptime.c: New file.
46836         * m4/strptime.m4: New file.
46837
46838 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46839
46840         * MODULES.html.sh: New module mpsort.
46841         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46842
46843         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46844         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46846         All uses changed.
46847         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46848         All uses changed.
46849         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46850         to _Restrict_.
46851         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46852         the parameter matches the prototype.
46853
46854 2007-01-28  Jim Meyering  <jim@meyering.net>
46855
46856         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46857         sys/time.h here, reverting that part of the previous patch:
46858         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46859
46860 2007-01-28  Bruno Haible  <bruno@clisp.org>
46861
46862         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46863         value of $(SYS_TIME_H).
46864         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46865         remove it conditionally, too. [added by Jim Meyering]
46866         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46867         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46868         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46869         GETTIMEOFDAY_REPLACEMENT to 1.
46870
46871 2007-01-28  Bruno Haible  <bruno@clisp.org>
46872
46873         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46874         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46876         Set UNISTD_H instead of UNISTD_H2.
46877         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46878
46879 2007-01-28  Bruno Haible  <bruno@clisp.org>
46880
46881         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46882         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46883
46884 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46885
46886         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46887         (func_create_testdir): Ensure C locale for `grep' and `tr'
46888         character ranges.
46889         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46890         ACLOCAL_AMFLAGS parsing state machine.
46891
46892 2007-01-27  Bruno Haible  <bruno@clisp.org>
46893
46894         * modules/unistr/base: Update.
46895
46896 2007-01-27  Bruno Haible  <bruno@clisp.org>
46897
46898         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46899         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46900         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46901         modules/unistr/u32-mbtouc.
46902         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46903         * lib/unistr.h: Update.
46904         * lib/linebreak.c: Update.
46905         * modules/unistr/u32-mbtouc: Renamed from
46906         modules/unistr/u32-mbtouc-safe.
46907         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46908         * lib/unistr.h: Update.
46909         * lib/unistr/u32-to-u8.c: Update.
46910         * lib/unistr/u32-to-u16.c: Update.
46911
46912 2007-01-27  Bruno Haible  <bruno@clisp.org>
46913
46914         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46915         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46916         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46917         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46918         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46919         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46920         modules/unistr/u16-mbtouc.
46921         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46922         * lib/unistr.h: Update.
46923         * lib/linebreak.c: Update.
46924         * modules/linebreak: Update.
46925         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46926         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46927         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46928         * modules/unistr/u16-mbtouc: Renamed from
46929         modules/unistr/u16-mbtouc-safe.
46930         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46931         * lib/unistr.h: Update.
46932         * lib/unistr/u16-to-u8.c: Update.
46933         * modules/unistr/u16-to-u8: Update.
46934         * lib/unistr/u16-to-u32.c: Update.
46935         * modules/unistr/u16-to-u32: Update.
46936
46937 2007-01-27  Bruno Haible  <bruno@clisp.org>
46938
46939         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46940         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46941         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46942         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46943         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46944         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46945         modules/unistr/u8-mbtouc.
46946         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46947         * lib/unistr.h: Update.
46948         * lib/striconveh.c: Update.
46949         * modules/striconveh: Update.
46950         * lib/linebreak.c: Update.
46951         * modules/linebreak: Update.
46952         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46953         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46954         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46955         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46956         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46957         * lib/unistr.h: Update.
46958         * lib/striconveh.c: Update.
46959         * modules/striconveh: Update.
46960         * lib/unistr/u8-to-u16.c: Update.
46961         * modules/unistr/u8-to-u16: Update.
46962         * lib/unistr/u8-to-u32.c: Update.
46963         * modules/unistr/u8-to-u32: Update.
46964
46965 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46966
46967         Sync from Libtool.
46968         * lib/argz.c: Do not include strings.h nor memory.h, include
46969         string.h unconditionally.  Patch by Simon Josefsson.
46970
46971 2007-01-27  Bruno Haible  <bruno@clisp.org>
46972
46973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46974         from gl_HEADER_STRING_H_BODY.
46975         (gl_HEADER_STRING_H_BODY): Require it.
46976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46977         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46978         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46979         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46981         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46983         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46984         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46986         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46987         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46988         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46989         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46990         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46991
46992 2007-01-27  Bruno Haible  <bruno@clisp.org>
46993
46994         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46995         check_PROGRAMS into noinst_PROGRAMS.
46996         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46997         check_PROGRAMS in this case.
46998         (func_import): Set for_test to false.
46999         (func_create_testdir): Set for_test to true.
47000
47001 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47002             Bruno Haible  <bruno@clisp.org>
47003
47004         * modules/strcasestr (Files): Remove lib/strcasestr.h.
47005         (Depends-on): Add string.
47006         (Includes): Use <string.h> instead of strcasestr.h.
47007         * modules/string (Makefile.am): Also substitute the value of
47008         REPLACE_STRCASESTR.
47009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
47010         assume strcasestr is declared in <string.h> not <strings.h>. Also
47011         set REPLACE_STRCASESTR.
47012         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
47013         REPLACE_STRCASESTR.
47014         * lib/strcasestr.h: Remove file.
47015         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
47016         * lib/string_.h (strcasestr): New declaration.
47017
47018 2007-01-27  Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/string_.h: Use 'extern'.
47021
47022 2007-01-27  Jim Meyering  <jim@meyering.net>
47023
47024         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
47025         of set-but-not-used local, "q".
47026
47027         * lib/mempcpy.c: Include <config.h> before <string.h>.
47028         This fixes a compilation error on HP-UX, due to the system's
47029         "restrict"-using mempcpy prototype.
47030
47031 2007-01-26  Bruno Haible  <bruno@clisp.org>
47032
47033         Small optimization.
47034         * lib/javacomp.c: Include c-strstr.h.
47035          (is_envjavac_gcj): Use c_strstr instead of strstr.
47036         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
47037
47038 2007-01-26  Bruno Haible  <bruno@clisp.org>
47039
47040         * MODULES.html.sh (Unicode string functions): Add the new modules.
47041
47042         * modules/uniconv/u32-strconv-to-locale: New file.
47043         * lib/uniconv/u32-strconv-to-locale.c: New file.
47044
47045         * modules/uniconv/u16-strconv-to-locale: New file.
47046         * lib/uniconv/u16-strconv-to-locale.c: New file.
47047
47048         * modules/uniconv/u8-strconv-to-locale: New file.
47049         * lib/uniconv/u8-strconv-to-locale.c: New file.
47050
47051         * modules/uniconv/u32-strconv-from-locale: New file.
47052         * lib/uniconv/u32-strconv-from-locale.c: New file.
47053
47054         * modules/uniconv/u16-strconv-from-locale: New file.
47055         * lib/uniconv/u16-strconv-from-locale.c: New file.
47056
47057         * modules/uniconv/u8-strconv-from-locale: New file.
47058         * lib/uniconv/u8-strconv-from-locale.c: New file.
47059
47060         * modules/uniconv/u32-strconv-to-enc: New file.
47061         * lib/uniconv/u32-strconv-to-enc.c: New file.
47062         * modules/uniconv/u32-strconv-to-enc-tests: New file.
47063         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
47064
47065         * modules/uniconv/u16-strconv-to-enc: New file.
47066         * lib/uniconv/u16-strconv-to-enc.c: New file.
47067         * lib/uniconv/u-strconv-to-enc.h: New file.
47068         * modules/uniconv/u16-strconv-to-enc-tests: New file.
47069         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
47070
47071         * modules/uniconv/u8-strconv-to-enc: New file.
47072         * lib/uniconv/u8-strconv-to-enc.c: New file.
47073         * modules/uniconv/u8-strconv-to-enc-tests: New file.
47074         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
47075
47076         * modules/uniconv/u32-strconv-from-enc: New file.
47077         * lib/uniconv/u32-strconv-from-enc.c: New file.
47078         * modules/uniconv/u32-strconv-from-enc-tests: New file.
47079         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
47080
47081         * modules/uniconv/u16-strconv-from-enc: New file.
47082         * lib/uniconv/u16-strconv-from-enc.c: New file.
47083         * modules/uniconv/u16-strconv-from-enc-tests: New file.
47084         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
47085
47086         * modules/uniconv/u8-strconv-from-enc: New file.
47087         * lib/uniconv/u8-strconv-from-enc.c: New file.
47088         * lib/uniconv/u-strconv-from-enc.h: New file.
47089         * modules/uniconv/u8-strconv-from-enc-tests: New file.
47090         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
47091
47092         * modules/uniconv/u32-conv-from-enc: New file.
47093         * lib/uniconv/u32-conv-from-enc.c: New file.
47094         * modules/uniconv/u32-conv-from-enc-tests: New file.
47095         * tests/uniconv/test-u32-conv-from-enc.c: New file.
47096
47097         * modules/uniconv/u16-conv-from-enc: New file.
47098         * lib/uniconv/u16-conv-from-enc.c: New file.
47099         * lib/uniconv/u-conv-from-enc.h: New file.
47100         * modules/uniconv/u16-conv-from-enc-tests: New file.
47101         * tests/uniconv/test-u16-conv-from-enc.c: New file.
47102
47103         * modules/uniconv/u8-conv-from-enc: New file.
47104         * lib/uniconv/u8-conv-from-enc.c: New file.
47105         * modules/uniconv/u8-conv-from-enc-tests: New file.
47106         * tests/uniconv/test-u8-conv-from-enc.c: New file.
47107
47108         * modules/uniconv/base: New file.
47109         * lib/uniconv.h: New file.
47110
47111 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47112
47113         * doc/gnulib-tool.texi (Initial import): Update to match current
47114         behavior with strdup module.
47115         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47116         * lib/memmem.h: Remove; all uses removed.  This is now done
47117         by <string.h>.
47118         * lib/mempcpy.h: Likewise.
47119         * lib/memrchr.h: Likewise.
47120         * lib/stpcpy.h: Likewise.
47121         * lib/stpncpy.h: Likewise.
47122         * lib/strcase.h: Likewise.
47123         * lib/strchrnul.h: Likewise.
47124         * lib/strdup.h: Likewise.
47125         * lib/strndup.h: Likewise.
47126         * lib/strnlen.h: Likewise.
47127         * lib/strpbrk.h: Likewise.
47128         * lib/strsep.h: Likewise.
47129         * lib/strstr.h: Likewise.
47130         * lib/strtok_r.h: Likewise.
47131         * lib/string_.h: New file.
47132         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47133         Rely on <string.h> instead.
47134         * lib/canon-host.c: Likewise.
47135         * lib/chdir-long.c: Likewise.
47136         * lib/concatpath.c: Likewise.
47137         * lib/exclude.c: Likewise.
47138         * lib/fchdir.c: Likewise.
47139         * lib/getaddrinfo.c: Likewise.
47140         * lib/getcwd.c: Likewise.
47141         * lib/getsubopt.c: Likewise.
47142         * lib/glob.c: Likewise.
47143         * lib/hard-locale.c: Likewise.
47144         * lib/iconvme.c: Likewise.
47145         * lib/javacomp.c: Likewise.
47146         * lib/mempcpy.c: Likewise.
47147         * lib/memrchr.c: Likewise.
47148         * lib/regex_internal.h: Likewise.
47149         * lib/stpncpy.c: Likewise.
47150         * lib/strcasecmp.c: Likewise.
47151         * lib/strchrnul.c: Likewise.
47152         * lib/strdup.c: Likewise.
47153         * lib/striconv.c: Likewise.
47154         * lib/striconveh.c: Likewise.
47155         * lib/striconveha.c: Likewise.
47156         * lib/strncasecmp.c: Likewise.
47157         * lib/strndup.c: Likewise.
47158         * lib/strnlen.c: Likewise.
47159         * lib/strsep.c: Likewise.
47160         * lib/strstr.c: Likewise.
47161         * lib/strtok_r.c: Likewise.
47162         * lib/userspec.c: Likewise.
47163         * lib/w32spawn.h: Likewise.
47164         * lib/xstrndup.c: Likewise.
47165         * lib/mountlist.c (strstr): Remove decl.
47166         * m4/string_h.m4: New file.
47167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47168         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47169         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47170         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47171         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47172         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47173         Set REPLACE_STRCASECMP if necessary.
47174         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47175         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47176         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47178         HAVE_DECL_STRDUP if necessary.
47179         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47180         since gl_FUNC_STRNDUP does that now.
47181         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47182         Check for decl here...
47183         (gl_PREREQ_STRNLEN): ... not here.
47184         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47185         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47186         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47188         necessary.
47189         * modules/string: New file.
47190         * modules/memmem (Files): Remove special-purpose include file.
47191         (Depends-on): Add string.
47192         (Include): Include <string.h>, not the removed file.
47193         * modules/mempcpy: Likewise.
47194         * modules/memrchr: Likewise.
47195         * modules/stpcpy: Likewise.
47196         * modules/stpncpy: Likewise.
47197         * modules/strcase: Likewise.
47198         * modules/strchrnul: Likewise.
47199         * modules/strdup: Likewise.
47200         * modules/strndup: Likewise.
47201         * modules/strnlen: Likewise.
47202         * modules/strpbrk: Likewise.
47203         * modules/strsep: Likewise.
47204         * modules/strstr: Likewise.
47205         * modules/strtok_r: Likewise.
47206         * tests/test-dirname.c: Don't include "strdup.h", since
47207         <string.h> now suffices.
47208         * tests/test-memmem.c: Don't include "memmem.h", since
47209         <string.h> now suffices.
47210
47211 2007-01-25  Bruno Haible  <bruno@clisp.org>
47212
47213         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47214         *resultp is 0.
47215
47216         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47217         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47218         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47219         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47220
47221         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47222         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47223         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47224         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47225         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47226         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47227
47228 2007-01-24  Bruno Haible  <bruno@clisp.org>
47229
47230         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47231         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47232         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47233         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47234         gl_FUNC_FTS_CORE.
47235         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47236         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47237         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47238         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47239         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47240         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47241         gl_FUNC_FCHOWNAT.
47242         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47243         gl_FUNC_STRFTIME.
47244         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47245         Reported by Ralf Wildenhues.
47246
47247 2007-01-24  Bruno Haible  <bruno@clisp.org>
47248
47249         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47250         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47251         gl_GETADDRINFO.
47252         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47253         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47254         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47255
47256 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47257
47258         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47259         Don't use 'exit'; just return from 'main'.
47260         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47261
47262         * lib/fnmatch_.h: Readjust white space and comments to match
47263         glibc, to avoid spurious diffs.
47264
47265 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47266
47267         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47268         2004-12-01 change by Jakub Jelinek, since this code won't compile
47269         if !LIBC.  Problem reported by Bob Proulx.
47270
47271 2007-01-23  Bruno Haible  <bruno@clisp.org>
47272
47273         * lib/striconveh.c: Include c-strcaseeq.h.
47274         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47275         * modules/striconveh (Depends-on): Add c-strcaseeq.
47276
47277 2007-01-23  Bruno Haible  <bruno@clisp.org>
47278
47279         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47280
47281         * modules/c-strcaseeq: New file.
47282         * lib/c-strcaseeq.h: New file.
47283
47284         * modules/streq: New file.
47285         * lib/streq.h: New file.
47286
47287 2007-01-23  Bruno Haible  <bruno@clisp.org>
47288
47289         * modules/striconveha-tests: New file.
47290         * tests/test-striconveha.c: New file.
47291
47292         * lib/striconveha.h: Include <stdbool.h>.
47293         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47294         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47295         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47296         (mem_iconveha): New function.
47297         (str_iconveha_notranslit): Renamed from str_iconveha.
47298         (str_iconveha): New function.
47299         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47300         c-strcase.
47301
47302 2007-01-23  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47305         encodings without forgiving before trying any encoding with handler.
47306         (str_iconveha): Try all encodings without forgiving before trying any
47307         encoding with handler.
47308
47309 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47310
47311         Import the following changes from libc.
47312
47313         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47314
47315         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47316
47317         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47318
47319         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47320         normal_bracket label.
47321
47322         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47323
47324         [BZ #361]
47325         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47326         to normal_bracket after fetching the next character.
47327
47328 2007-01-22  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47331         argument.
47332         * lib/striconveh.c (iconv_carefully_1): New function.
47333         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47334         argument.
47335         (str_cd_iconveh): Update.
47336         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47337         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47338         * tests/test-striconveh.c (MAGIC): New macro.
47339         (new_offsets): New function.
47340         (main): Test call with and without offsets.
47341
47342 2007-01-22  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47345         * modules/sys_select (Makefile.am): Likewise.
47346         * modules/sys_socket (Makefile.am): Likewise.
47347         * modules/sys_time (Makefile.am): Likewise.
47348
47349 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47350
47351         * modules/gettimeofday (License): Change from GPL to LGPL, since
47352         gettimeofday is a library function.
47353
47354 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47355
47356         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47357
47358 2007-01-21  Bruno Haible  <bruno@clisp.org>
47359
47360         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47361
47362 2007-01-21  Bruno Haible  <bruno@clisp.org>
47363
47364         * modules/striconveha: New file.
47365         * lib/striconveha.h: New file.
47366         * lib/striconveha.c: New file.
47367         * MODULES.html.sh (Internationalization functions): Add striconveha.
47368         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47369         string.
47370         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47371
47372 2007-01-21  Bruno Haible  <bruno@clisp.org>
47373
47374         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47375         * lib/striconveh.c (str_iconveh): Likewise.
47376
47377 2007-01-21  Bruno Haible  <bruno@clisp.org>
47378
47379         * lib/striconveh.h (mem_iconveh): New declaration.
47380         * lib/striconveh.c (mem_iconveh): New function.
47381         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47382
47383 2007-01-21  Bruno Haible  <bruno@clisp.org>
47384
47385         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47386
47387         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47388         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47389         original result buffer.
47390         (str_cd_iconveh): Update.
47391         * tests/test-striconveh.c (main): Update.
47392
47393         * lib/striconv.h (mem_cd_iconv): Change specification.
47394         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47395         result buffer.
47396         (str_cd_iconv): Update.
47397         * tests/test-striconv.c (main): Update.
47398
47399 2007-01-21  Bruno Haible  <bruno@clisp.org>
47400
47401         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47402
47403 2007-01-20  Jim Meyering  <jim@meyering.net>
47404
47405         * lib/userspec.c (parse_with_separator): If a user or group string
47406         starts with "+", skip the corresponding name-to-ID look-up, since
47407         such a look-up must fail: user and group names may not include "+".
47408
47409 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47410
47411         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47412         since we now assume the sys_time module.
47413         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47414         check for sys/time.h; no longer needed.
47415         * modules/poll (Depends-on): Depend on sys_time.
47416
47417 2007-01-18  Bruno Haible  <bruno@clisp.org>
47418
47419         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47420         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47421
47422         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47423         gettimeofday.
47424
47425         * tests/test-gettimeofday.c: Include <time.h>.
47426         (dummy): Remove variable.
47427
47428         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47429         gl_HEADER_SYS_TIME_H.
47430         (gl_HEADER_SYS_TIME_H): New macro.
47431
47432         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47433         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47435         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47436         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47438         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47439         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47440         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47441         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47442         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47443
47444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47445         last change; it caused a compilation error when cross-compiling to
47446         Cygwin.
47447
47448 2007-01-18  Jim Meyering  <jim@meyering.net>
47449
47450         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47451         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47452         than the race-prone "test -d sys || mkdir sys".
47453         (configure.ac): Use AC_PROG_MKDIR_P.
47454         * modules/sys_select: Likewise.
47455         * modules/sys_socket: Likewise.
47456         * modules/sys_time: Likewise.
47457
47458 2007-01-18  Eric Blake  <ebb9@byu.net>
47459
47460         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47461         replace gettimeofday.
47462         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47463         name, to avoid infinite recursion.
47464
47465 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47466
47467         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47468         module sys_time.
47469         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47470         assume timespec.h defines struct timeval.
47471         * lib/settime.c: Likewise.
47472         * lib/utimens.c: Likewise.
47473         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47474         since we now assume the gettimeofday module.
47475         * lib/tempname.c (__gen_tempname): Likewise.
47476         * lib/gettimeofday.h: Remove.
47477         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47478         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47479         Include <time.h>, for 'time()'.
47480         (localtime_buffer_addr): Also use this workaround if
47481         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47482         to simplify the uses.  All uses changed.
47483         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47484         that #undef is inside {}, and 'const' follows type name consistently.
47485         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47486         (gettimeofday): Do not use the maximum possible value for
47487         tv->tv_usec, since that might break usages other than ls.c.
47488         Instead, we'll leave ls.c alone.  This undoes today's patch
47489         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47490         we've never observed the problem but might as well keep the
47491         canary.
47492         * lib/nanosleep.c: Include timespec.h first, for interface check.
47493         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47494         now assume the sys_time module.
47495         * lib/tempname.c: Likewise.
47496         * lib/timespec.h: Likewise.
47497         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47498         needed.
47499         * lib/strftime.c: Likewise.
47500         * lib/timespec.h: Likewise.
47501         * lib/posixtm.c: Include posixtm.h first, for interface check.
47502         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47503         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47504         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47505         * lib/sys_time_.h: New file.
47506         * lib/timespec.h (struct timespec): Use long int, not long.
47507         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47508         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47509         Remove obsolescent call to AC_HEADER_TIME.
47510         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47512         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47513         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47514         Likewise.
47515         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47516         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47517         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47518         into the sys_time module.  Check for gettimeofday just once.
47519         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47520         for gettimeofday signature to just check the signature.  Merely
47521         compile it, since linking doesn't test signature.  Improve test for
47522         whether gettimeofday.o is actually needed.
47523         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47524         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47525         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47526         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47527         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47528         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47529         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47530         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47531         than worrying about sys/time.h.
47532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47533         Don't bother worrying about TIME_WITH_SYS_TIME.
47534         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47535         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47536         * m4/sys_time_h.m4: New file.
47537         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47538         Don't include sys/time.h.  Return from main rather than exiting.
47539         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47540         all uses changed.
47541         * modules/gethrxtime (Depends-on): Add sys_time.
47542         * modules/gettime (Depends-on): Likewise.
47543         * modules/gettimeofday (Depends-on): Likewise.
47544         * modules/nanosleep (Depends-on): Likewise.
47545         * modules/settime (Depends-on): Likewise.
47546         * modules/tempname (Depends-on): Likewise.
47547         * modules/utimens (Depends-on): Likewise.
47548         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47549         (Include:) Change back to <sys/time.h>.
47550         (Maintainer:) Add self.
47551         * modules/sys_time: New file.
47552         * modules/tempname (Depends-on): Add gettimeofday.
47553         * tests/test-gettimeofday.c: Include <sys/time.h>
47554         rather than gettimeofday.h.
47555
47556 2007-01-17  Bruno Haible  <bruno@clisp.org>
47557
47558         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47559         the license default to GPL.
47560         (func_create_testdir): Don't complain if a module is LGPL and its
47561         tests module depends on GPLed modules.
47562
47563 2007-01-17  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/gettimeofday.c (gettimeofday): Add code for the case
47566         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47567         maximum possible value for tv->tv_usec, rather than the minimum one.
47568
47569 2005-10-08  Martin Lambers  <marlam@marlam.de>
47570 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47571 2007-01-16  Bruno Haible  <bruno@clisp.org>
47572
47573         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47574         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47575         gl_FUNC_GETTIMEOFDAY.
47576         (Include): Add gettimeofday.h.
47577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47578         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47579         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47580         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47581         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47582         * lib/gettimeofday.h: New file.
47583         * lib/gettimeofday.c: Include <sys/timeb.h>.
47584         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47585         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47586         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47587         fall back on time().
47588
47589         * tests/test-gettimeofday.c: New file.
47590         * modules/gettimeofday-tests: New file.
47591
47592 2007-01-16  Eric Blake  <ebb9@byu.net>
47593
47594         * modules/fnmatch (Depends-on): Depend on wchar.
47595         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47596         * m4/fnmatch.m4: Likewise.
47597         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47598         * m4/mbchar.m4: Likewise.
47599         * modules/mbswidth (Depends-on): Depend on wchar.
47600         * lib/mbswidth.c: Assume <wchar.h>.
47601         * m4/mbswidth.m4: Likewise.
47602         * modules/quotearg (Depends-on): Depend on wchar.
47603         * lib/quotearg.c: Assume <wchar.h>.
47604         * m4/quotearg.m4: Likewise.
47605         * modules/regex (Depends-on): Depend on wchar.
47606         * lib/regex_internal.h: Assume <wchar.h>.
47607         * m4/regex.m4: Likewise.
47608         * modules/stdint (Depends-on): Depend on wchar.
47609         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47610         * m4/stdint.m4: Likewise.
47611         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47612         * modules/strftime (Depends-on): Depend on wchar.
47613         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47614         * modules/strtol (Depends-on): Depend on wchar.
47615         * lib/strtol.c: Assume <wchar.h>.
47616         * modules/wcwidth (Depends-on): Depend on wchar.
47617         * lib/wcwidth.h: Assume <wchar.h>.
47618         * m4/wcwidth.m4: Likewise.
47619
47620 2007-01-16  Bruno Haible  <bruno@clisp.org>
47621
47622         * modules/csharpexec-script: New, created from...
47623         * modules/csharpexec: ... this.
47624
47625 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47626
47627         * modules/javaexec-script: New, created from...
47628         * modules/javaexec: ... this.
47629
47630 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47631
47632         * modules/poll (Dependencies): Add sys_select.
47633
47634 2007-01-15  Jim Meyering  <jim@meyering.net>
47635
47636         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47637         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47638         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47639         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47640
47641 2007-01-15  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/striconveh: New file.
47644         * lib/striconveh.h: New file.
47645         * lib/striconveh.c: New file.
47646         * MODULES.html.sh (Internationalization functions): Add striconveh.
47647
47648         * modules/striconveh-tests: New file.
47649         * tests/test-striconveh.c: New file.
47650
47651 2007-01-15  Bruno Haible  <bruno@clisp.org>
47652
47653         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47654         not from GNU libiconv or GNU libc.
47655
47656 2007-01-15  Bruno Haible  <bruno@clisp.org>
47657
47658         * doc/gnulib-intro.texi (Copyright): Explain the different license
47659         terms for module descriptions, autoconf macros, tests, documentation.
47660
47661 2007-01-14  Bruno Haible  <bruno@clisp.org>
47662
47663         * modules/striconv-tests: New file.
47664         * tests/test-striconv.c: New file.
47665
47666 2007-01-14  Bruno Haible  <bruno@clisp.org>
47667
47668         * modules/iconv-tests: New file.
47669         * tests/test-iconv.c: New file.
47670
47671 2007-01-14  Bruno Haible  <bruno@clisp.org>
47672
47673         * gnulib-tool (func_get_license): For test modules, use the license of
47674         the main module.
47675
47676 2007-01-14  Bruno Haible  <bruno@clisp.org>
47677
47678         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47679         if iconv is found to exist.
47680
47681 2007-01-14  Bruno Haible  <bruno@clisp.org>
47682
47683         * modules/c-ctype-tests: New file.
47684         * tests/test-c-ctype.c: New file.
47685
47686 2007-01-14  Bruno Haible  <bruno@clisp.org>
47687
47688         * modules/binary-io-tests: New file.
47689         * tests/test-binary-io.sh: New file.
47690         * tests/test-binary-io.c: New file.
47691
47692 2007-01-14  Bruno Haible  <bruno@clisp.org>
47693
47694         * modules/array-oset-tests: New file.
47695         * tests/test-array_oset.c: New file.
47696
47697 2007-01-14  Bruno Haible  <bruno@clisp.org>
47698
47699         * modules/array-list-tests: New file.
47700         * tests/test-array_list.c: New file.
47701
47702 2007-01-14  Bruno Haible  <bruno@clisp.org>
47703
47704         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47705         and make.
47706         Reported by Simon Josefsson in
47707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47708
47709 2007-01-14  Bruno Haible  <bruno@clisp.org>
47710
47711         * modules/allocsa-tests: New file.
47712         * tests/test-allocsa.c: New file.
47713
47714 2007-01-14  Bruno Haible  <bruno@clisp.org>
47715
47716         * modules/fchdir (Depends-on): Add absolute-header.
47717         * modules/unistd (Depends-on): Likewise.
47718
47719 2006-12-30  Bruno Haible  <bruno@clisp.org>
47720
47721         * modules/fchdir: New file.
47722         * modules/unistd (Files): Add lib/unistd_.h.
47723         (Makefile.am): Generate unistd.h from unistd_.h.
47724         * lib/fchdir.c: New file.
47725         * lib/dirent_.h: New file.
47726         * lib/unistd_.h: New file.
47727         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47728         * m4/fchdir.m4: New file.
47729         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47730         (gl_HEADER_UNISTD): Invoke it.
47731         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47732         function.
47733         * lib/backupfile.c (opendir, closedir): Undefine.
47734         * lib/chown.c (open, close): Undefine.
47735         * lib/clean-temp.c (open, close): Undefine.
47736         * lib/copy-file.c (open, close): Undefine.
47737         * lib/execute.c (open, close): Undefine.
47738         * lib/fsusage.c (open, close): Undefine.
47739         * lib/gc-gnulib.c (open, close): Undefine.
47740         * lib/getcwd.c (opendir, closedir): Undefine.
47741         * lib/glob.c (opendir, closedir): Undefine.
47742         * lib/javacomp.c (open, close): Undefine.
47743         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47744         * lib/openat-proc.c (open, close): Undefine.
47745         * lib/pagealign_alloc.c (open, close): Undefine.
47746         * lib/pipe.c (open, close): Undefine.
47747         * lib/progreloc.c (open, close): Undefine.
47748         * lib/savedir.c (opendir, closedir): Undefine.
47749         * lib/utime.c (open, close): Undefine.
47750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47751
47752 2007-01-10  Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47755
47756 2007-01-12  Eric Blake  <ebb9@byu.net>
47757
47758         Provide a robust <wchar.h>.  Further simplifications are now
47759         possible in other modules, but not included here.
47760         * modules/wchar: New module.
47761         * m4/wchar.m4: New file.
47762         * lib/wchar_.h: Likewise.
47763         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47764         of the new module.
47765         * MODULES.html.sh (Extended multibyte and wide character utilities):
47766         New section.
47767
47768 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47769
47770         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47771         to a reasonable default for memory allocation.
47772         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47773         file system that reports garbage st_size values for symlinks.
47774         Problem reported by Liyang Hu.
47775
47776 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47777
47778         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47779         Emacs .#* auto-save files).
47780
47781 2007-01-11  Bruno Haible  <bruno@clisp.org>
47782
47783         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47784         directory.
47785
47786 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47787
47788         Use @...@ consistently in lib/wctype_.h.
47789         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47790         on it being set to 1 or 0.
47791         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47792         go back to AC_SUBSTing it.
47793         * modules/wctype (Makefile.am): Undo previous change.
47794
47795 2007-01-10  Eric Blake  <ebb9@byu.net>
47796
47797         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47798         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47799         * modules/wctype (Makefile.am): Likewise.
47800         Reported by Chris McGuire.
47801
47802 2007-01-10  Jim Meyering  <jim@meyering.net>
47803
47804         fts.c: a small readability/maintainability improvement
47805         * lib/fts.c (fts_read): Make this code slightly more readable and
47806         maintainable by hoisting the "sp->fts_cur = p" assignments to
47807         immediately follow the statements that set P.  Derived from
47808         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47809
47810 2007-01-10  Eric Blake  <ebb9@byu.net>
47811
47812         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47813         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47815         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47816         Reported by Chris McGuire.
47817
47818 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47819
47820         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47821         in sed script.
47822
47823 2007-01-09  Bruno Haible  <bruno@clisp.org>
47824
47825         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47826         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47827         variables.
47828         (func_module): Use them.
47829
47830 2007-01-09  Bruno Haible  <bruno@clisp.org>
47831
47832         * modules/unistr/base: New file.
47833         * lib/unistr.h: New file.
47834
47835         * modules/unistr/u8-to-u16: New file.
47836         * lib/unistr/u8-to-u16.c: New file.
47837
47838         * modules/unistr/u8-to-u32: New file.
47839         * lib/unistr/u8-to-u32.c: New file.
47840
47841         * modules/unistr/u16-to-u8: New file.
47842         * lib/unistr/u16-to-u8.c: New file.
47843
47844         * modules/unistr/u16-to-u32: New file.
47845         * lib/unistr/u16-to-u32.c: New file.
47846
47847         * modules/unistr/u32-to-u8: New file.
47848         * lib/unistr/u32-to-u8.c: New file.
47849
47850         * modules/unistr/u32-to-u16: New file.
47851         * lib/unistr/u32-to-u16.c: New file.
47852
47853         * modules/unistr/u8-check: New file.
47854         * modules/unistr/u16-check: New file.
47855         * modules/unistr/u32-check: New file.
47856         * lib/unistr/u8-check.c: New file.
47857         * lib/unistr/u16-check.c: New file.
47858         * lib/unistr/u32-check.c: New file.
47859
47860         * modules/unistr/u8-chr: New file.
47861         * modules/unistr/u16-chr: New file.
47862         * modules/unistr/u32-chr: New file.
47863         * lib/unistr/u8-chr.c: New file.
47864         * lib/unistr/u16-chr.c: New file.
47865         * lib/unistr/u32-chr.c: New file.
47866
47867         * modules/unistr/u8-cmp: New file.
47868         * modules/unistr/u16-cmp: New file.
47869         * modules/unistr/u32-cmp: New file.
47870         * lib/unistr/u8-cmp.c: New file.
47871         * lib/unistr/u16-cmp.c: New file.
47872         * lib/unistr/u32-cmp.c: New file.
47873
47874         * modules/unistr/u8-cpy: New file.
47875         * modules/unistr/u16-cpy: New file.
47876         * modules/unistr/u32-cpy: New file.
47877         * lib/unistr/u8-cpy.c: New file.
47878         * lib/unistr/u16-cpy.c: New file.
47879         * lib/unistr/u32-cpy.c: New file.
47880         * lib/unistr/u-cpy.h: New file.
47881
47882         * modules/unistr/u8-cpy-alloc: New file.
47883         * modules/unistr/u16-cpy-alloc: New file.
47884         * modules/unistr/u32-cpy-alloc: New file.
47885         * lib/unistr/u8-cpy-alloc.c: New file.
47886         * lib/unistr/u16-cpy-alloc.c: New file.
47887         * lib/unistr/u32-cpy-alloc.c: New file.
47888         * lib/unistr/u-cpy-alloc.h: New file.
47889
47890         * modules/unistr/u8-endswith: New file.
47891         * modules/unistr/u16-endswith: New file.
47892         * modules/unistr/u32-endswith: New file.
47893         * lib/unistr/u8-endswith.c: New file.
47894         * lib/unistr/u16-endswith.c: New file.
47895         * lib/unistr/u32-endswith.c: New file.
47896         * lib/unistr/u-endswith.h: New file.
47897
47898         * modules/unistr/u8-mblen: New file.
47899         * modules/unistr/u16-mblen: New file.
47900         * modules/unistr/u32-mblen: New file.
47901         * lib/unistr/u8-mblen.c: New file.
47902         * lib/unistr/u16-mblen.c: New file.
47903         * lib/unistr/u32-mblen.c: New file.
47904
47905         * modules/unistr/u8-mbtouc: New file.
47906         * modules/unistr/u16-mbtouc: New file.
47907         * modules/unistr/u32-mbtouc: New file.
47908         * lib/unistr/u8-mbtouc.c: New file.
47909         * lib/unistr/u16-mbtouc.c: New file.
47910         * lib/unistr/u32-mbtouc.c: New file.
47911
47912         * modules/unistr/u8-mbtouc-safe: New file.
47913         * modules/unistr/u16-mbtouc-safe: New file.
47914         * modules/unistr/u32-mbtouc-safe: New file.
47915         * lib/unistr/u8-mbtouc-safe.c: New file.
47916         * lib/unistr/u16-mbtouc-safe.c: New file.
47917         * lib/unistr/u32-mbtouc-safe.c: New file.
47918
47919         * modules/unistr/u8-move: New file.
47920         * modules/unistr/u16-move: New file.
47921         * modules/unistr/u32-move: New file.
47922         * lib/unistr/u8-move.c: New file.
47923         * lib/unistr/u16-move.c: New file.
47924         * lib/unistr/u32-move.c: New file.
47925         * lib/unistr/u-move.h: New file.
47926
47927         * modules/unistr/u8-next: New file.
47928         * modules/unistr/u16-next: New file.
47929         * modules/unistr/u32-next: New file.
47930         * lib/unistr/u8-next.c: New file.
47931         * lib/unistr/u16-next.c: New file.
47932         * lib/unistr/u32-next.c: New file.
47933
47934         * modules/unistr/u8-prev: New file.
47935         * modules/unistr/u16-prev: New file.
47936         * modules/unistr/u32-prev: New file.
47937         * lib/unistr/u8-prev.c: New file.
47938         * lib/unistr/u16-prev.c: New file.
47939         * lib/unistr/u32-prev.c: New file.
47940
47941         * modules/unistr/u8-set: New file.
47942         * modules/unistr/u16-set: New file.
47943         * modules/unistr/u32-set: New file.
47944         * lib/unistr/u8-set.c: New file.
47945         * lib/unistr/u16-set.c: New file.
47946         * lib/unistr/u32-set.c: New file.
47947         * lib/unistr/u-set.h: New file.
47948
47949         * modules/unistr/u8-startswith: New file.
47950         * modules/unistr/u16-startswith: New file.
47951         * modules/unistr/u32-startswith: New file.
47952         * lib/unistr/u8-startswith.c: New file.
47953         * lib/unistr/u16-startswith.c: New file.
47954         * lib/unistr/u32-startswith.c: New file.
47955         * lib/unistr/u-startswith.h: New file.
47956
47957         * modules/unistr/u8-stpcpy: New file.
47958         * modules/unistr/u16-stpcpy: New file.
47959         * modules/unistr/u32-stpcpy: New file.
47960         * lib/unistr/u8-stpcpy.c: New file.
47961         * lib/unistr/u16-stpcpy.c: New file.
47962         * lib/unistr/u32-stpcpy.c: New file.
47963         * lib/unistr/u-stpcpy.h: New file.
47964
47965         * modules/unistr/u8-stpncpy: New file.
47966         * modules/unistr/u16-stpncpy: New file.
47967         * modules/unistr/u32-stpncpy: New file.
47968         * lib/unistr/u8-stpncpy.c: New file.
47969         * lib/unistr/u16-stpncpy.c: New file.
47970         * lib/unistr/u32-stpncpy.c: New file.
47971         * lib/unistr/u-stpncpy.h: New file.
47972
47973         * modules/unistr/u8-strcat: New file.
47974         * modules/unistr/u16-strcat: New file.
47975         * modules/unistr/u32-strcat: New file.
47976         * lib/unistr/u8-strcat.c: New file.
47977         * lib/unistr/u16-strcat.c: New file.
47978         * lib/unistr/u32-strcat.c: New file.
47979         * lib/unistr/u-strcat.h: New file.
47980
47981         * modules/unistr/u8-strchr: New file.
47982         * modules/unistr/u16-strchr: New file.
47983         * modules/unistr/u32-strchr: New file.
47984         * lib/unistr/u8-strchr.c: New file.
47985         * lib/unistr/u16-strchr.c: New file.
47986         * lib/unistr/u32-strchr.c: New file.
47987
47988         * modules/unistr/u8-strcmp: New file.
47989         * modules/unistr/u16-strcmp: New file.
47990         * modules/unistr/u32-strcmp: New file.
47991         * lib/unistr/u8-strcmp.c: New file.
47992         * lib/unistr/u16-strcmp.c: New file.
47993         * lib/unistr/u32-strcmp.c: New file.
47994
47995         * modules/unistr/u8-strcpy: New file.
47996         * modules/unistr/u16-strcpy: New file.
47997         * modules/unistr/u32-strcpy: New file.
47998         * lib/unistr/u8-strcpy.c: New file.
47999         * lib/unistr/u16-strcpy.c: New file.
48000         * lib/unistr/u32-strcpy.c: New file.
48001         * lib/unistr/u-strcpy.h: New file.
48002
48003         * modules/unistr/u8-strcspn: New file.
48004         * modules/unistr/u16-strcspn: New file.
48005         * modules/unistr/u32-strcspn: New file.
48006         * lib/unistr/u8-strcspn.c: New file.
48007         * lib/unistr/u16-strcspn.c: New file.
48008         * lib/unistr/u32-strcspn.c: New file.
48009         * lib/unistr/u-strcspn.h: New file.
48010
48011         * modules/unistr/u8-strdup: New file.
48012         * modules/unistr/u16-strdup: New file.
48013         * modules/unistr/u32-strdup: New file.
48014         * lib/unistr/u8-strdup.c: New file.
48015         * lib/unistr/u16-strdup.c: New file.
48016         * lib/unistr/u32-strdup.c: New file.
48017         * lib/unistr/u-strdup.h: New file.
48018
48019         * modules/unistr/u8-strlen: New file.
48020         * modules/unistr/u16-strlen: New file.
48021         * modules/unistr/u32-strlen: New file.
48022         * lib/unistr/u8-strlen.c: New file.
48023         * lib/unistr/u16-strlen.c: New file.
48024         * lib/unistr/u32-strlen.c: New file.
48025         * lib/unistr/u-strlen.h: New file.
48026
48027         * modules/unistr/u8-strmblen: New file.
48028         * modules/unistr/u16-strmblen: New file.
48029         * modules/unistr/u32-strmblen: New file.
48030         * lib/unistr/u8-strmblen.c: New file.
48031         * lib/unistr/u16-strmblen.c: New file.
48032         * lib/unistr/u32-strmblen.c: New file.
48033
48034         * modules/unistr/u8-strmbtouc: New file.
48035         * modules/unistr/u16-strmbtouc: New file.
48036         * modules/unistr/u32-strmbtouc: New file.
48037         * lib/unistr/u8-strmbtouc.c: New file.
48038         * lib/unistr/u16-strmbtouc.c: New file.
48039         * lib/unistr/u32-strmbtouc.c: New file.
48040
48041         * modules/unistr/u8-strncat: New file.
48042         * modules/unistr/u16-strncat: New file.
48043         * modules/unistr/u32-strncat: New file.
48044         * lib/unistr/u8-strncat.c: New file.
48045         * lib/unistr/u16-strncat.c: New file.
48046         * lib/unistr/u32-strncat.c: New file.
48047         * lib/unistr/u-strncat.h: New file.
48048
48049         * modules/unistr/u8-strncmp: New file.
48050         * modules/unistr/u16-strncmp: New file.
48051         * modules/unistr/u32-strncmp: New file.
48052         * lib/unistr/u8-strncmp.c: New file.
48053         * lib/unistr/u16-strncmp.c: New file.
48054         * lib/unistr/u32-strncmp.c: New file.
48055
48056         * modules/unistr/u8-strncpy: New file.
48057         * modules/unistr/u16-strncpy: New file.
48058         * modules/unistr/u32-strncpy: New file.
48059         * lib/unistr/u8-strncpy.c: New file.
48060         * lib/unistr/u16-strncpy.c: New file.
48061         * lib/unistr/u32-strncpy.c: New file.
48062         * lib/unistr/u-strncpy.h: New file.
48063
48064         * modules/unistr/u8-strnlen: New file.
48065         * modules/unistr/u16-strnlen: New file.
48066         * modules/unistr/u32-strnlen: New file.
48067         * lib/unistr/u8-strnlen.c: New file.
48068         * lib/unistr/u16-strnlen.c: New file.
48069         * lib/unistr/u32-strnlen.c: New file.
48070         * lib/unistr/u-strnlen.h: New file.
48071
48072         * modules/unistr/u8-strpbrk: New file.
48073         * modules/unistr/u16-strpbrk: New file.
48074         * modules/unistr/u32-strpbrk: New file.
48075         * lib/unistr/u8-strpbrk.c: New file.
48076         * lib/unistr/u16-strpbrk.c: New file.
48077         * lib/unistr/u32-strpbrk.c: New file.
48078         * lib/unistr/u-strpbrk.h: New file.
48079
48080         * modules/unistr/u8-strrchr: New file.
48081         * modules/unistr/u16-strrchr: New file.
48082         * modules/unistr/u32-strrchr: New file.
48083         * lib/unistr/u8-strrchr.c: New file.
48084         * lib/unistr/u16-strrchr.c: New file.
48085         * lib/unistr/u32-strrchr.c: New file.
48086
48087         * modules/unistr/u8-strspn: New file.
48088         * modules/unistr/u16-strspn: New file.
48089         * modules/unistr/u32-strspn: New file.
48090         * lib/unistr/u8-strspn.c: New file.
48091         * lib/unistr/u16-strspn.c: New file.
48092         * lib/unistr/u32-strspn.c: New file.
48093         * lib/unistr/u-strspn.h: New file.
48094
48095         * modules/unistr/u8-strstr: New file.
48096         * modules/unistr/u16-strstr: New file.
48097         * modules/unistr/u32-strstr: New file.
48098         * lib/unistr/u8-strstr.c: New file.
48099         * lib/unistr/u16-strstr.c: New file.
48100         * lib/unistr/u32-strstr.c: New file.
48101         * lib/unistr/u-strstr.h: New file.
48102
48103         * modules/unistr/u8-strtok: New file.
48104         * modules/unistr/u16-strtok: New file.
48105         * modules/unistr/u32-strtok: New file.
48106         * lib/unistr/u8-strtok.c: New file.
48107         * lib/unistr/u16-strtok.c: New file.
48108         * lib/unistr/u32-strtok.c: New file.
48109         * lib/unistr/u-strtok.h: New file.
48110
48111         * modules/unistr/u8-uctomb: New file.
48112         * modules/unistr/u16-uctomb: New file.
48113         * modules/unistr/u32-uctomb: New file.
48114         * lib/unistr/u8-uctomb.c: New file.
48115         * lib/unistr/u16-uctomb.c: New file.
48116         * lib/unistr/u32-uctomb.c: New file.
48117
48118         * MODULES.html.sh (Unicode string functions): Add the new modules.
48119
48120 2007-01-08  Bruno Haible  <bruno@clisp.org>
48121
48122         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48123         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48124         subdirectories.
48125
48126 2007-01-08  Karl Berry  <karl@gnu.org>
48127
48128         * doc/error.texi: mention that main() fns must set program_name
48129         when progname is used.
48130
48131 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48132
48133         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48134         WCTYPE_H is empty, for the benefit of builds from non-distclean
48135         directories.  Problem reported by Eric Blake in
48136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48137
48138 2007-01-08  Bruno Haible  <bruno@clisp.org>
48139
48140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48141         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48142         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48143         PROVIDE_CANONICALIZE_FILENAME_MODE.
48144         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48145
48146 2007-01-08  Bruno Haible  <bruno@clisp.org>
48147
48148         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48149         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48150         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48151         * lib/fts.c: Likewise.
48152         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48153
48154 2006-12-25  Bruno Haible  <bruno@clisp.org>
48155
48156         * modules/utf8-ucs4-safe: New file.
48157         * lib/utf8-ucs4-safe.h: New file.
48158         * lib/unistr/utf8-ucs4-safe.c: New file.
48159
48160         * modules/utf16-ucs4-safe: New file.
48161         * lib/utf16-ucs4-safe.h: New file.
48162         * lib/unistr/utf16-ucs4-safe.c: New file.
48163
48164         * MODULES.html.sh (Unicode string functions): Add the new modules.
48165
48166 2007-01-08  Bruno Haible  <bruno@clisp.org>
48167
48168         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48169         (Depends-on): Add unitypes.
48170         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48171         (u8_mbtouc_aux): Move out to separate file.
48172         (u8_mbtouc): Use ucs4_t, uint8_t types.
48173         * lib/unistr/utf8-ucs4.c: New file.
48174
48175         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48176         (Depends-on): Add unitypes.
48177         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48178         (u16_mbtouc_aux): Move out to separate file.
48179         (u16_mbtouc): Use ucs4_t, uint16_t types.
48180         * lib/unistr/utf16-ucs4.c: New file.
48181
48182         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48183         (Depends-on): Add unitypes.
48184         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48185         (u8_uctomb_aux): Move out to separate file.
48186         (u8_uctomb): Use ucs4_t, uint8_t types.
48187         * lib/unistr/ucs4-utf8.c: New file.
48188
48189         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48190         (Depends-on): Add unitypes.
48191         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48192         (u16_uctomb_aux): Move out to separate file.
48193         (u16_uctomb): Use ucs4_t, uint16_t types.
48194         * lib/unistr/ucs4-utf16.c: New file.
48195
48196 2006-12-25  Bruno Haible  <bruno@clisp.org>
48197
48198         * modules/unitypes: New file.
48199         * lib/unitypes.h: New file.
48200         * MODULES.html.sh (func_all_modules): New section "Unicode string
48201         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48202         this section. Add unitypes.
48203
48204 2007-01-08  Bruno Haible  <bruno@clisp.org>
48205
48206         Avoid variable names that conflict with those from libtool.
48207         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48208         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48209         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48210         library_names_spec to acl_library_names_spec, hardcode_* to
48211         acl_hardcode_*.
48212         Reported by Ralf Wildenhues.
48213
48214 2007-01-08  Bruno Haible  <bruno@clisp.org>
48215
48216         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48217         definition.
48218         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48219         definition.
48220         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48221         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48222         definition.
48223         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48224         definition.
48225         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48226         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48227         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48228         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48229         definition.
48230         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48231         definition.
48232         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48233         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48234         GC_USE_<algorithm>.
48235         * lib/gc-libgcrypt.c: Likewise.
48236         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48237         * modules/gc-arctwo (configure.ac): Likewise.
48238         * modules/gc-des (configure.ac): Likewise.
48239         * modules/gc-hmac-md5 (configure.ac): Likewise.
48240         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48241         * modules/gc-md2 (configure.ac): Likewise.
48242         * modules/gc-md4 (configure.ac): Likewise.
48243         * modules/gc-md5 (configure.ac): Likewise.
48244         * modules/gc-random (configure.ac): Likewise.
48245         * modules/gc-rijndael (configure.ac): Likewise.
48246         * modules/gc-sha1 (configure.ac): Likewise.
48247
48248 2007-01-08  Bruno Haible  <bruno@clisp.org>
48249
48250         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48251         macro definition.
48252         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48253         definition.
48254         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48255         definition.
48256         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48257         * modules/fcntl-safer (configure.ac): Likewise.
48258         * modules/fopen-safer (configure.ac): Likewise.
48259         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48260         GNULIB_FWRITEERROR macro definition.
48261
48262 2007-01-08  Bruno Haible  <bruno@clisp.org>
48263
48264         * m4/gnulib-common.m4: New file.
48265         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48266         (func_get_filelist): Add m4/gnulib-common.m4.
48267
48268 2007-01-08  Bruno Haible  <bruno@clisp.org>
48269
48270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48271         command.
48272
48273 2007-01-08  Jim Meyering  <jim@meyering.net>
48274
48275         Use a more robust test for a "can't happen" condition.
48276         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48277         narrowed the st_size value.  Presuming the "can't happen" condition
48278         is true, that narrowing could conceivably convert an invalid st_size
48279         value into a valid one.  Instead, use a change based on Matthew
48280         Woehlke's original patch.
48281
48282         Slight readability improvement: use an assert-like macro
48283         in place of literal "abort ()" uses.
48284         * lib/fts.c (fts_assert): Define.
48285         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48286         Use this macro instead of a bare 'abort'.
48287
48288 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48289
48290         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48291         simply work around them.
48292         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48293         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48294         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48295         declaring.
48296         Don't bother to define as macros, since the standard doesn't require it.
48297         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48298         longer worry about IRIX 5.3.
48299         (HAVE_WCTYPE_CTMP_BUG): Remove.
48300
48301 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48302
48303         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48304         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48305         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48306         Problems reported by Georg Schwarz for IRIX 5.3.
48307
48308         * gnulib-tool (autoconf_minversion): Take the maximum version number
48309         found, not the minimum.  Problem reported by James Youngman.
48310
48311 2007-01-03  Karl Berry  <karl@gnu.org>
48312
48313         * doc/error.texi: new file, explaining interaction with progname.
48314         * doc/gnulib.texi: include it.  Update copyright.
48315
48316 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48317
48318         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48319         AC_CANONICAL_HOST, to improve autobuild outputs.
48320
48321 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48322             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48323
48324         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48325         sockets, server sockets, and other file descriptors.  Count errors
48326         to compute the return value.  Reorder the code a bit to be easier
48327         to follow.  Don't set event bits that were not requested (except
48328         POLLERR and POLLHUP).
48329
48330 2007-01-01  Bruno Haible  <bruno@clisp.org>
48331
48332         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48333
48334 2007-01-03  Jim Meyering  <jim@meyering.net>
48335
48336         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48337
48338 2007-01-02  Bruno Haible  <bruno@clisp.org>
48339
48340         * modules/settime (Include): Require timespec.h.
48341         * modules/nanosleep (Include): Likewise.
48342
48343 2007-01-01  Bruno Haible  <bruno@clisp.org>
48344
48345         * gnulib-tool (func_emit_copyright_notice): Bump year.
48346         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48347
48348 2007-01-01  Bruno Haible  <bruno@clisp.org>
48349
48350         Improve support for OpenBSD.
48351         * build-aux/config.rpath (libname_spec): Export.
48352         (library_names_spec): New variable. Export.
48353         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48354         library_names_spec from the config.rpath output. Locate shared library
48355         through the name pattern in library_names_spec.
48356
48357 2007-01-01  Eric Blake  <ebb9@byu.net>
48358
48359         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48360
48361 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48362
48363         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48364         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48365         assume the C locale, and avoid an "eval" that could cause trouble.
48366         Problem with SORT reported by Bob Proulx.
48367
48368         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48369         Define.  Trivial patch from Henning Nielsen Lund, originally
48370         sent to bug-grep@gnu.org today.
48371
48372 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48373
48374         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48375         struct stat.  Problem reported by Henning Nielsen Lund.
48376         * lib/acl.c: Include acl.h first, to check interface.  Don't
48377         bother to include sys/types.h and sys/stat.h again.
48378
48379 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48380
48381         Import the following change from libc; problem reported by
48382         Sven Verdoolaege.
48383
48384         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48385
48386         [BZ #1373]
48387         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48388
48389 2006-12-28  Jim Meyering  <jim@meyering.net>
48390
48391         * build-aux/announce-gen: Do not assume that the package
48392         builds any of tar.gz, tar.bz2, and .xdelta files.
48393         Suggestion from Simon Josefsson.
48394
48395 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48396
48397         * modules/announce-gen: New file.
48398
48399 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48400
48401         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48402         handles its gotchas now.
48403         * lib/mbswidth.c: Likewise.
48404         * lib/wcwidth.h: Likewise.
48405         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48406         and iswcntrl; the wctype module does this stuff now.
48407         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48409         * modules/mbchar (Depends-on): Add wctype.
48410         * modules/mbswidth (Depends-on): Likewise.
48411         * modules/wcwidth (Depends-on): Likewise.
48412
48413 2006-12-27  Eric Blake  <ebb9@byu.net>
48414
48415         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48416         module uses more than what <wctype.h> is required to provide.
48417
48418 2006-12-26  Eric Blake  <ebb9@byu.net>
48419
48420         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48421
48422 2006-12-26  Eric Blake  <ebb9@byu.net>
48423
48424         * modules/absolute-header: New module.
48425         * modules/fcntl (Depends-on): Depend on it.
48426         * modules/inttypes (Depends-on): Likewise.
48427         * modules/stdint (Depends-on): Likewise.
48428         * modules/sys_stat (Depends-on): Likewise.
48429         * modules/wctype (Depends-on): Likewise.
48430         * MODULES.html.sh (Support for building libraries and
48431         executables): Document it.
48432
48433 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48434
48435         * gnulib-tool (SED): Remove, undoing previous change.
48436         The problem was that it broke coreutils on Solaris, because
48437         "sed --posix" leaked into a makefile.
48438         (sed): New alias, if 'alias' and GNU sed.
48439
48440 2006-12-24  Jim Meyering  <jim@meyering.net>
48441
48442         Work around an fchownat bug in glibc-2.4:
48443         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48444         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48445         in spite of the -P option.
48446         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48447         New macros.
48448         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48449         * modules/openat (Files): Add lib/fchownat.c.
48450         * lib/openat.c (fchownat): Don't define here.  Move to...
48451         * lib/fchownat.c: ...this new file.
48452
48453 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48454
48455         Fix bug reported by Bruno Haible in
48456         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48457         where quotearg.c didn't compile on Mac OS X 10.2 because it
48458         lacks <wchar.h> and wint_t.
48459         * lib/wctype_.h (__wctype_wint_t): New type.
48460         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48461         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48462         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48463         Arg is now of type __wctype_wint_t, not wint_t.
48464         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48465         substitute HAVE_WINT_T.
48466         * modules/wctype (Files): Add m4/wint_t.m4.
48467         (wctype.h): Substitute HAVE_WINT_T.
48468
48469 2006-12-23  Bruno Haible  <bruno@clisp.org>
48470
48471         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48472
48473 2006-12-23  Bruno Haible  <bruno@clisp.org>
48474
48475         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48476         S_ISLNK.
48477         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48478         mingw.
48479
48480 2006-12-22  Bruno Haible  <bruno@clisp.org>
48481
48482         * lib/copy-file.c: Include acl.h.
48483         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48484         Close the file descriptors only after being done with copy_acl.
48485         * modules/copy-file (Depends-on): Add acl.
48486
48487 2006-12-22  Bruno Haible  <bruno@clisp.org>
48488
48489         * gnulib-tool (SED): New variable.
48490         Use $SED instead of sed everywhere.
48491
48492 2006-12-22  Bruno Haible  <bruno@clisp.org>
48493
48494         * modules/no-c++: New file.
48495         * m4/no-c++.m4: New file.
48496         * MODULES.html.sh (Support for building libraries and executables):
48497         Add no-c++.
48498
48499 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48500
48501         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48502         Include <limits.h>, and use its INT_MAX to rewrite the
48503         j loop so that it does not overflow 'int'.  Problem reported by
48504         Ralf Wildenhues in
48505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48506         Play it safe by shifting left by 1 rather than multiplying by 2,
48507         as GCC is less likely to optimize this away when the value
48508         is signed (when it assumes overflow leads to undefined behavior).
48509         Also, don't assume time_t uses two's complement.
48510
48511 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48512
48513         * MODULES.html.sh: New module wctype.
48514         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48515         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48516         <wctype.h>, since the new wctype module should fix this.
48517         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48518         the wctype module should arrange for it.
48519         * lib/regex_internal.h: Likewise.
48520         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48521         since the wctype module should handle this now.
48522         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48523         * modules/fnmatch (Depends-on): Add wctype.
48524         * modules/quotearg (Depends-on): Likewise.
48525         * modules/regex (Depends-on): Likewise.
48526
48527 2006-12-19  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48530         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48531
48532 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48533
48534         * modules/savewd (Depends-on): Fix dependency on fcntl.
48535
48536 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48537
48538         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48539         conforms to C99, rather than relying on the user's environment
48540         setting of STDINT_H.
48541
48542 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48543         and Eric Blake  <ebb9@byu.net>
48544
48545         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48546         This is more consistent with the other defines here.
48547         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48548         Port to z/OS.  Problem reported by Paul Gilmartin.
48549         Change local vars to use gl_ prefix rather than ac_.
48550         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48551         with other defines.
48552         * modules/double-slash-root: New module.
48553         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48554         (Depends-on): Add double-slash-root.
48555         * MODULES.html.sh (File system functions): Mention new module.
48556
48557 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48558
48559         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48560         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48561         This is for the benefit of gzip, which doesn't do i18n.
48562
48563 2006-12-12  Jim Meyering  <jim@meyering.net>
48564
48565         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48566         Reported by Andreas Schwab <schwab@suse.de>.
48567
48568 2006-12-12  Bruno Haible  <bruno@clisp.org>
48569
48570         Merge these changes.
48571         2006-09-05  Bruno Haible  <bruno@clisp.org>
48572         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48573         iconv_alloc succeeded.
48574         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48575         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48576         test for " && dest " at the end - dest is always != NULL there. Call
48577         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48578         with 2xNULL arguments, also to flush the state storage. Handle the
48579         IRIX iconv behaviour. Realloc the final result, to throw away unused
48580         memory.
48581
48582 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48583
48584         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48585         and fchmodat unconditionally, since glibc 2.4 has them.
48586         Problem reported by Arkadiusz Miskiewicz.
48587
48588 2006-12-10  Bruno Haible  <bruno@clisp.org>
48589
48590         * gnulib-tool (func_import): Show the include files only for those
48591         modules that are copied and specified.
48592         Reported by Karl Berry.
48593
48594 2006-12-08  Jim Meyering  <jim@meyering.net>
48595
48596         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48597         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48598
48599         * build-aux/announce-gen: Add two new options, both optional:
48600         --bootstrap-tools=TOOL_LIST
48601               a comma-separated list of tools, e.g.,
48602               autoconf,automake,bison,gnulib
48603         --gnulib-snapshot-date=DATE
48604               if gnulib is in the bootstrap tool list,
48605               then report this as the snapshot date.
48606               If not specified, use the current date/time.
48607               If you specify a date here, be sure it's UTC.
48608
48609 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48610
48611         * tests/test-argp-2.sh: Fix test to match actual output.
48612         (func_compare): Fix sed script to be portable.
48613
48614 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48615
48616         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48617         workaround for this case.  It is not autoconfigured now; offhand
48618         it's hard to see how to autoconfigure it.
48619
48620 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48623         a directory that is about to be chowned.  Such a directory's
48624         initial file permissions should permit the owner only and this
48625         should not be changed until after the chown, since the group and
48626         other bits would be incorrect if they granted permission before
48627         the chown.
48628
48629         Fix porting problem for iswctype reported by Georg Schwarz in:
48630         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48631         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48632         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48633         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48634         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48635
48636 2006-12-03  Jim Meyering  <jim@meyering.net>
48637
48638         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48639         p->fts_statp may not yet be defined.
48640         (fts_read): Instead, set it in the caller, once p->fts_statp is
48641         sure to be defined, and corresponds to a top-level directory.
48642         This bug made du -x fail.  Here's the coreutils test case:
48643         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48644         Reported by Mike Frysinger.
48645
48646 2006-12-01  Jim Meyering  <jim@meyering.net>
48647
48648         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48649         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48650         Reported by Simon Josefsson.
48651
48652 2006-11-30  Jim Meyering  <jim@meyering.net>
48653
48654         * m4/warning.m4: Use the all-permissive copyright notice
48655         recommended by RMS (rather than LGPL).
48656         * m4/vararrays.m4: Likewise.
48657         * m4/flexmember.m4: Likewise.
48658
48659 2006-11-29  Bruno Haible  <bruno@clisp.org>
48660
48661         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48662         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48663         using +=.
48664         Reported by Simon Josefsson <simon@josefsson.org>.
48665
48666 2006-11-28  James Youngman <jay@gnu.org>
48667
48668         * README: Advise users that they might find the bug-gnulib@gnu.org
48669         and autotools-announce@gnu.org mailing lists useful.
48670
48671 2006-11-28  Bruno Haible  <bruno@clisp.org>
48672
48673         * m4/ptrdiff_max.m4: Remove file.
48674
48675 2006-11-21  Bruno Haible  <bruno@clisp.org>
48676
48677         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48678         _AC_COMPUTE_INT.
48679         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48680         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48681         _AC_COMPUTE_INT.
48682         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48683         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48684         _AC_COMPUTE_INT.
48685         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48686
48687 2006-11-28  Jim Meyering  <jim@meyering.net>
48688
48689         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48690         warning from "gcc -Wshadow" about shadowing the builtin.
48691
48692 2006-11-27  Bruno Haible  <bruno@clisp.org>
48693
48694         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48695         _AC_COMPUTE_INT.
48696         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48697
48698 2006-11-27  Bruno Haible  <bruno@clisp.org>
48699             Paul Eggert  <eggert@cs.ucla.edu>
48700
48701         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48702
48703 2006-11-26  Bruno Haible  <bruno@clisp.org>
48704
48705         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48706         noinst_LTLIBRARIES.
48707
48708 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48709             Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48712         if compiling with "gcc -ansi".
48713
48714 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48715
48716         Fix some incompatibilities with gcc -ansi -pedantic.
48717         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48718         if compiling pedantically with GCC, unless it's C99 or later.
48719         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48720         it mishandles gcc -ansi -pedantic as well.
48721         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48722         if gcc -pedantic.
48723         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48724         initializers for struct if -pedantic, unless it's C99 or later.
48725
48726 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48727
48728         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48729         Don't close an fd more than once. Identical atimes indicate
48730         success, not failure.
48731
48732 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48733
48734         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48735
48736 2006-11-23  Jim Meyering  <jim@meyering.net>
48737
48738         * build-aux/announce-gen: New file.  From coreutils.
48739
48740 2006-11-22  Jim Meyering  <jim@meyering.net>
48741
48742         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48743         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48744         (fts_read): Use a temporary to narrow the overused st_size member
48745         before using it in a switch statement.  Reported by Matthew Woehlke.
48746
48747         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48748         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48749
48750 2006-11-20  Bruno Haible  <bruno@clisp.org>
48751
48752         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48753         changequote instead of pairs of brackets.
48754         Reported by Andreas Schwab <schwab@suse.de>.
48755
48756 2006-11-21  Jim Meyering  <jim@meyering.net>
48757
48758         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48759         so as to remain compatible with older compilers.
48760         Patch from Michael Deutschmann.
48761
48762 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48763
48764         * MODULES.html.sh (File system functions): Add openat.
48765
48766         * lib/openat.h (rpl_fstatat): New macro, if
48767         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48768         (fstatat): Define to rpl_fstatat under the same conditions,
48769         unless COMPILING_FSTATAT.
48770         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48771         seems to have the bug.
48772         * lib/fstatat.c: New file.
48773         * modules/openat (Files): Add it.
48774
48775 2006-11-20  Bruno Haible  <bruno@clisp.org>
48776
48777         * Makefile: New file.
48778
48779 2006-11-20  Jim Meyering  <jim@meyering.net>
48780
48781         The beginnings of syntax-related checks for gnulib.
48782         * lib/Makefile: New file.
48783         * lib/t-idcache: New script.  Ensure that the two halves of
48784         idcache.c stay in sync.
48785
48786         * lib/idcache.c: Adjust comments in user- and group- portions to
48787         be more accurate, and to be consistent with one another.
48788
48789 2006-11-20  Jim Meyering  <jim@meyering.net>
48790
48791         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48792         continue using the flexible array member (thus, this module performs
48793         half as many malloc calls), with the addition that...
48794         (getgroup, getuser): Consistently record a non-match via an empty
48795         "name" string, and map an empty string match to a NULL return value.
48796         * modules/idcache (Depends-on): Re-add flexmember.
48797
48798         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48799         (getuidbyname, getgroup, getgidbyname): Likewise.
48800
48801         Use cleaner syntax: NULL rather than 0.
48802         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48803
48804 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48805
48806         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48807         It mishandled the case where the group was missing.
48808         Problem reported by Greg Schafer.
48809         * modules/idcache: Likewise.
48810
48811 2006-11-18  Jim Meyering  <jim@meyering.net>
48812
48813         * check-module (%exempt_header): Add exception for some
48814         conditionally-included headers.
48815
48816         * modules/i-ring (Depends-on): Add verify.
48817         (License): Change to LGPL.
48818
48819 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48820
48821         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48822         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48823         and inttostr.h.  Use snprintf rather than uinttostr, so that
48824         LGPLed code doesn't depend on GPLed.
48825
48826 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48827
48828         * modules/inline (License): Change from GPL to LGPL.
48829
48830 2006-11-17  Jim Meyering  <jim@meyering.net>
48831
48832         * modules/d-type (License): Switch to LGPL.
48833
48834 2006-11-15  Bruno Haible  <bruno@clisp.org>
48835
48836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48837
48838 2006-11-15  Eric Blake  <ebb9@byu.net>
48839
48840         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48841         the module dependency.
48842
48843 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48844             Bruno Haible  <bruno@clisp.org>
48845
48846         * gnulib-tool (func_create_testdir): Add license consistency check.
48847
48848 2006-11-15  Eric Blake  <ebb9@byu.net>
48849
48850         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48851         random "(cached)" in configure output.
48852
48853 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48854
48855         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48856         test for conforming inttypes.h is both announced and cached.
48857
48858         * MODULES.html.sh (seen_modules, seen_files): New variables.
48859         (func_module): Rewrite to use a few less gnulib-tool and sed
48860         invocations.  Avoid a couple of quadratic algorithms for ...
48861         (missed_modules, missed_files): ... these, with ...
48862         (func_append, func_tmpdir): ... these new functions, from
48863         gnulib-tool.  Analogously, install traps for cleanup.
48864
48865         * tests/test-gc.c (main): Remove unused variables.
48866         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48867
48868 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48869
48870         * modules/inttostr (License): Change to LGPL.
48871
48872 2006-11-14  Eric Blake  <ebb9@byu.net>
48873
48874         * modules/tempname (License): Change to LGPL.
48875
48876 2006-11-14  Eric Blake  <ebb9@byu.net>
48877
48878         * doc/functions.texi (Function Portability): *printf functions on
48879         Cygwin now understand all POSIX size specifiers.
48880
48881 2006-11-14  Bruno Haible  <bruno@clisp.org>
48882
48883         * modules/c-ctype (License): Change to LGPL.
48884
48885 2006-11-12  Bruno Haible  <bruno@clisp.org>
48886
48887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48888         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48889         for GNOME libraries, for which the include files are installed in
48890         subdirectories of $prefix/include.
48891
48892 2006-11-12  Bruno Haible  <bruno@clisp.org>
48893
48894         * m4/lib-link.m4: Require at least autoconf-2.54.
48895         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48896         name to underscores for the --with option.
48897
48898 2006-11-13  Bruno Haible  <bruno@clisp.org>
48899
48900         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48901         the tests directory.
48902         Reported by Ralf Wildenhues.
48903
48904 2006-11-13  Bruno Haible  <bruno@clisp.org>
48905
48906         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48907         (func_emit_initmacro_end): Undo the override here.
48908         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48909         Works around the famous automake error in coreutils.
48910
48911 2006-11-13  Eric Blake  <ebb9@byu.net>
48912
48913         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48914         element, not its node.
48915
48916 2006-11-12  Bruno Haible  <bruno@clisp.org>
48917
48918         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48919         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48920
48921 2006-11-12  Bruno Haible  <bruno@clisp.org>
48922
48923         * gnulib-tool: New option --local-symlink.
48924         (func_usage): Document it.
48925         (lsymbolic): New variable.
48926         (func_import, func_create_testdir): If --symlink was not specified,
48927         test whether --local-symlink was specified and the file comes from
48928         the local_gnulib_dir.
48929
48930 2006-11-12  Bruno Haible  <bruno@clisp.org>
48931
48932         * gnulib-tool (func_ln): New function.
48933         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48934
48935 2006-11-12  Bruno Haible  <bruno@clisp.org>
48936
48937         Finish support for source files in subdirectories.
48938         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48939         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48940         AUTOMAKE_OPTIONS.
48941         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48942
48943 2006-11-12  Bruno Haible  <bruno@clisp.org>
48944
48945         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48946         EXTRA_lib_SOURCES augmentation.
48947         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48948
48949 2006-11-12  Jim Meyering  <jim@meyering.net>
48950
48951         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48952         file descriptors.  This also averts a failure on systems with
48953         native openat support when a traversed directory lacks "x" access.
48954         * lib/fts_.h: Include "i-ring.h"
48955         (struct FTS) [fts_fd_ring]: New member.
48956         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48957         (FCHDIR): Add parentheses.
48958         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48959         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48960         When descending, rather than simply closing the previous
48961         fts_cwd_fd value, push that file descriptor onto the ring.
48962         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48963         (fts_open): Initialize the new fd_ring member.
48964         (fts_close): Clear the ring.
48965         (fts_safe_changedir): When possible, use our new fd_ring to skip
48966         the diropen and fstat and dev/ino comparison that would normally
48967         accompany a virtual `chdir ("..")'.
48968
48969         * modules/fts (Depends-on): Add i-ring.
48970         * modules/i-ring: New module.
48971         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48972         * m4/i-ring.m4: New file.
48973
48974 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48975
48976         * gnulib-tool (func_create_testdir): Fix replacement of
48977         `build-aux' in configure.ac.  Run autotools in gltests
48978         subdirectory.
48979         (func_create_testdir, func_create_megatestdir, test): There is
48980         no need for '--force' in most autotool invocations in a new
48981         tree.  Actually fail the whole test if any of the tools, or the
48982         configure or make stages fail.
48983
48984         Sync from Automake.
48985         * build-aux/gnupload: Revert last change.  Add pointer to upload
48986         instructions of the GNU Maintenance Instructions.
48987         Suggestion by Karl Berry.
48988
48989 2006-11-10  Jim Meyering  <jim@meyering.net>
48990
48991         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48992
48993 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48994
48995         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48996         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48997         (bind_textdomain_codeset) [! ENABLE_NLS]:
48998         Evaluate all the arguments.  That way, callers get compatible behavior
48999         if the arguments have side effects.  Also, it avoids some GCC
49000         diagnostics in some cases; Joel E. Denny reported problems when Bison
49001         was configured with --enable-gcc-warnigs.
49002
49003 2006-11-10  Jim Meyering  <jim@meyering.net>
49004
49005         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
49006         relevant options in CFLAGS (like -O, -fno-inline) are taken into
49007         account.
49008
49009 2006-11-10  Jim Meyering  <jim@meyering.net>
49010
49011         * modules/inline: New file/module.
49012         * modules/xalloc (Files): Remove m4/inline.m4.
49013         (Depends-on): Add inline, instead.
49014         * modules/oset: Likewise.
49015         * modules/list: Likewise.
49016
49017 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49018
49019         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
49020         Problem reported by Matthew Woehlke.
49021
49022 2006-11-09  Bruno Haible  <bruno@clisp.org>
49023
49024         * lib/tempname.c (gen_tempname): Remove variant that invokes
49025         __gen_tempname.
49026         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
49027         __gen_tempname.
49028
49029 2006-11-08  Bruno Haible  <bruno@clisp.org>
49030
49031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
49032         to 'yes' instead of 'cross-compiling'.
49033
49034 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
49035
49036         * lib/quotearg.h (quotearg_free): New decl.
49037         * lib/quotearg.c (quotearg_free): New function.
49038         (slot0, nslots, slotvec0, slotvec):
49039         Now file-scope so that quotearg_free can get at them.
49040
49041 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49042
49043         Sync from Automake.
49044         * build-aux/gnupload: Add missing 'gnu' to example URL.
49045         Report by Karl Berry.
49046
49047 2006-11-08  Bruno Haible  <bruno@clisp.org>
49048
49049         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
49050         Suggested by Paul Eggert.
49051
49052 2006-11-08  Jim Meyering  <jim@meyering.net>
49053
49054         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
49055         It's already included if !_LIBC.
49056         (fts_safe_changedir): Add a comment.
49057
49058 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49059
49060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
49061         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
49062         Matthew Woehlke.
49063
49064         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
49065         definitions up, to avoid colliding with change below.
49066         (static_inline) [HAVE_INLINE]: New macro.
49067         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
49068         Provide extern decls when !HAVE_INLINE.  Do not define unless
49069         static_inline is defined, either by us or by xmalloc.c.  Use
49070         static_inline rather than static inline.
49071         (XCALLOC): Optimize sizeof(T) = 1 case.
49072         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
49073
49074 2006-11-07  Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
49077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
49078         AC_C_INLINE.
49079         * modules/xalloc (Files): Add m4/inline.m4.
49080
49081 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49082
49083         * README: Fix typo.
49084         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
49085         (Miscellanous Notes): ...from this.
49086
49087 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49088
49089         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
49090         Mention that offsetof should be used instead of sizeof.
49091         From Bruno Haible.
49092
49093 2006-11-07  Bruno Haible  <bruno@clisp.org>
49094
49095         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
49096
49097 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49098
49099         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49100         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
49101         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49102         (gl_tree_add_before, gl_tree_add_after):
49103         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
49104         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
49105         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49106         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
49107         (gl_linked_add_after, gl_linked_add_at): Likewise.
49108         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
49109         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49110         (gl_tree_add_before, gl_tree_add_after): Likewise.
49111         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
49112         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
49113         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
49114
49115 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49116
49117         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49118
49119 2006-11-06  Bruno Haible  <bruno@clisp.org>
49120
49121         * m4/inline.m4: New file.
49122         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49123         * modules/list (Files): Add m4/inline.m4.
49124         * modules/oset (Files): Likewise.
49125
49126 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         * lib/idcache.c: Include <stddef.h>, for offsetof.
49129         (struct userid.name): Change from char * to a flexible array member.
49130         All uses changed.
49131         * modules/idcache (Depends-on): Add flexmember.
49132
49133         * MODULES.html.sh (Core language properties): New module flexmember.
49134         * modules/flexmember, m4/flexmember.m4: New files.
49135
49136         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49137         inline functions that are identical with the old xnmalloc_inline,
49138         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49139         that we can avoid some unnecessary integer multiplications and
49140         divisions in the common case where the element size is known at
49141         compile time.
49142         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49143         needed.
49144         (xnboundedmalloc): Remove.
49145         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49146         arguments, for consistency with rest of this header.
49147         (xcharalloc): Rewrite using XNMALLOC.
49148         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49149         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49150         versions have been moved to lib/xalloc.h and renamed to be the
49151         non-*_inline versions.
49152         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49153         and xnrealloc functions, since those functions are now inline and
49154         now call us.
49155         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49156         renaming described above.
49157         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49158         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49159         captures the dependency in AC_C_INLINE.
49160
49161         New module canonicalize-lgpl, proposed by Charles Wilson in
49162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49163         with a few small changes afterwards.
49164         * MODULES.html.sh (File system functions): New module
49165         canonicalize-lgpl.
49166         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49167         and canonicalize_file_name.
49168         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49169         * modules/canonicalize-lgpl: New files.
49170
49171 2006-11-05  Bruno Haible  <bruno@clisp.org>
49172
49173         * gnulib-tool (func_import, func_create_testdir): Create directories
49174         also for files in subdirectories of lib/.
49175
49176 2006-11-05  Bruno Haible  <bruno@clisp.org>
49177
49178         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49179         ANSI C compliant.
49180
49181 2006-11-03  Bruno Haible  <bruno@clisp.org>
49182
49183         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49184         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49185         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49186         (xnboundedmalloc): New inline function.
49187         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49188         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49189         xmalloc.
49190         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49191         xmalloc.
49192         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49193         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49194         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49195         xmalloc.
49196         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49197         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49198         xmalloc.
49199         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49200         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49201         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49202         xmalloc.
49203         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49204         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49205         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49206         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49207         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49208         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49209         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49210
49211 2006-11-03  Bruno Haible  <bruno@clisp.org>
49212
49213         * lib/c-ctype.h [C++]: Define functions without name mangling.
49214         * lib/fwriteerror.h [C++]: Likewise.
49215         * lib/gcd.h [C++]: Likewise.
49216         * lib/linebreak.h [C++]: Likewise.
49217
49218 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49219
49220         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49221         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49222         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49223         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49224         Check for functions and headers just once.
49225         Check for declaration of canonicalize_file_name.
49226         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49227
49228 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49229
49230         * gnulib-tool (func_import): Fix typo in actioncmd.
49231
49232 2006-11-02  Bruno Haible  <bruno@clisp.org>
49233
49234         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49235         newline sequence in the Makefile.am snippet as a space, like "make"
49236         does.
49237         Reported by Roger Persson <perrog@gmail.com>.
49238
49239 2006-11-01  Bruno Haible  <bruno@clisp.org>
49240
49241         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49242         already declared in <string.h>.
49243         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49244
49245 2006-11-01  Bruno Haible  <bruno@clisp.org>
49246
49247         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49248         * lib/strcase.h: Include <string.h>.
49249         (strcasecmp): Define to rpl_strcasecmp here.
49250
49251 2006-11-01  Bruno Haible  <bruno@clisp.org>
49252
49253         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49254
49255 2006-11-01  Eric Blake  <ebb9@byu.net>
49256
49257         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49258
49259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49260
49261 2006-10-29  Bruno Haible  <bruno@clisp.org>
49262
49263         Make it compile in C++ mode.
49264         * lib/full-write.c (full_rw): Add a cast.
49265
49266 2006-11-01  Bruno Haible  <bruno@clisp.org>
49267
49268         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49269         be POSIX compliant.
49270         Reported by Roger Persson <perrog@gmail.com>.
49271
49272 2006-11-01  Eric Blake  <ebb9@byu.net>
49273
49274         * lib/getopt_.h: Fix comments.
49275
49276 2006-10-31  Eric Blake  <ebb9@byu.net>
49277
49278         * modules/tmpdir (Depends-on): Add sys_stat.
49279         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49280         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49281         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49282         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49283         tempname.
49284
49285 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49286
49287         Avoid some C++ diagnostics reported by Bruno Haible.
49288         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49289         xmalloc.
49290         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49291         (struct slotvec): Move to top level.
49292         (quotearg_n_options): Rewrite to avoid xmalloc.
49293         * lib/xalloc.h (xcharalloc): New function.
49294         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49295         [defined __cplusplus]: Add function template that provides result
49296         type propagation.  This part of the change is from Bruno Haible.
49297
49298 2006-10-29  Bruno Haible  <bruno@clisp.org>
49299
49300         Make it compile in C++ mode.
49301         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49302         * lib/strnlen1.c (strnlen1): Cast memchr result.
49303         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49304         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49305         (create_temp_dir): Rename local variable 'template'.
49306         (compile_csharp_using_sscli): Add cast.
49307         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49308         * lib/findprog.c (find_in_path): Likewise.
49309         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49310         * lib/wait-process.c (register_slave_subprocess): Likewise.
49311
49312 2006-10-22  Bruno Haible  <bruno@clisp.org>
49313
49314         * modules/tsearch: New file.
49315         * lib/tsearch.h: New file.
49316         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49317         * m4/tsearch.m4: New file.
49318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49319
49320 2006-10-29  Eric Blake  <ebb9@byu.net>
49321
49322         * lib/arcfour.c: Assume config.h.
49323         * lib/arctwo.c: Likewise.
49324         * lib/base64.c: Likewise.
49325         * lib/check-version.c: Likewise.
49326         * lib/crc.c: Likewise.
49327         * lib/des.c: Likewise.
49328         * lib/gc-gnulib.c: Likewise.
49329         * lib/gc-libgcrypt.c: Likewise.
49330         * lib/gc-pbkdf2-sha1.c: Likewise.
49331         * lib/getaddrinfo.c: Likewise.
49332         * lib/getdelim.c: Likewise.
49333         * lib/getline.c: Likewise.
49334         * lib/hmac-md5.c: Likewise.
49335         * lib/hmac-sha1.c: Likewise.
49336         * lib/iconvme.c: Likewise.
49337         * lib/md2.c: Likewise.
49338         * lib/md4.c: Likewise.
49339         * lib/memxor.c: Likewise.
49340         * lib/read-file.c: Likewise.
49341         * lib/readline.c: Likewise.
49342         * lib/rijndael-alg-fst.c: Likewise.
49343         * lib/rijndael-api-fst.c: Likewise.
49344         * lib/xgetdomainname.c: Likewise.
49345
49346 2006-10-28  Eric Blake  <ebb9@byu.net>
49347
49348         * lib/xstrndup.c: Assume config.h.
49349
49350 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49351
49352         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49353         stat-macros.h is now for our own macros, whereas stat_h is for
49354         macros in the <sys/stat.h> name space.
49355         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49356         (STAT_MACROS_H): Remove.
49357         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49358         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49359         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49360         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49361         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49362         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49363         Move these macros to ...
49364         * lib/stat_.h: here.  Don't include stat-macros.h.
49365         * lib/canonicalize.c: Don't include stat-macros.h.
49366         * lib/chown.c: Likewise.
49367         * lib/euidaccess.c: Likewise.
49368         * lib/file-type.c: Likewise.
49369         * lib/filemode.c: Likewise.
49370         * lib/glob.c: Likewise.
49371         * lib/isapipe.c: Likewise.
49372         * lib/lchown.c: Likewise.
49373         * lib/lstat.c: Likewise.
49374         * lib/mkdir-p.c: Likewise.
49375         * lib/rmdir.c: Likewise.
49376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49377         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49378         unless mkdir isn't declared, to speed up 'configure'.
49379         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49380         would define all the S_* symbols.
49381         * modules/canonicalize (Depends-on):
49382         Depend on sys_stat, not stat-macros.
49383         * modules/chown: Likewise.
49384         * modules/euidaccess: Likewise.
49385         * modules/filemode: Likewise.
49386         * modules/file-type: Likewise.
49387         * modules/glob: Likewise.
49388         * modules/isapipe: Likewise.
49389         * modules/lchown: Likewise.
49390         * modules/lstat: Likewise.
49391         * modules/mkancesdirs: Likewise.
49392         * modules/rmdir: Likewise.
49393         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49394         * modules/modechange: Likewise.
49395         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49396         (configure.ac): Remove gl_STAT_MACROS.
49397         * modules/sys_stat (Depends-on): Remove stat-macros.
49398
49399 2006-10-27  Bruno Haible  <bruno@clisp.org>
49400
49401         * m4/signed.m4: Remove file.
49402         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49403         invocation.
49404         * modules/vasnprintf (Files): Remove m4/signed.m4.
49405
49406 2006-10-27  Bruno Haible  <bruno@clisp.org>
49407
49408         Update to GNU gettext 0.16.
49409         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49410         m4/inttypes-h.m4, m4/signed.m4.
49411         * m4/gettext.m4: Update to GNU gettext 0.16.
49412         * m4/intl.m4: New file, from GNU gettext.
49413         * m4/intldir.m4: New file, from GNU gettext.
49414         * config/srclist.txt: Update
49415
49416 2006-10-27  Eric Blake  <ebb9@byu.net>
49417
49418         * MODULES.html.sh: Document tempname.
49419         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49420         dependencies.
49421         (Files): Move lib/tempname.c...
49422         * modules/tempname: ...to this new module.
49423         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49424         (gl_PREREQ_TEMPNAME): Move...
49425         * m4/tempname.m4: ...to this new file.
49426         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49427         * modules/sys_stat (Depends-on): Add stat-macros.
49428         * lib/stat_.h (includes): Pick up stat macros.
49429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49430         if stat macros are broken.
49431         * lib/tempname.c (includes): No need to include "stat-macros.h".
49432         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49433         (direxists, __path_search) [!_LIBC]: Don't compile these in
49434         gnulib; the tmpdir module covers that.
49435         * lib/tempname.h: New file.
49436
49437 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49438
49439         * COPYING: Explain how gnulib-tool converts licence headers.
49440         Almost all wording by Eric Blake.
49441
49442 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49443
49444         * lib/mbchar.h (is_basic_table): Make read-only.
49445         * lib/mbchar.c (is_basic_table): Likewise.
49446         Reported by John Darrington.
49447
49448 2006-10-25  Bruno Haible  <bruno@clisp.org>
49449
49450         * lib/progname.h (set_program_name): Undefine before defining.
49451
49452 2006-10-25  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49455         false for non-gcc C++ compilers.
49456         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49457
49458 2006-10-24  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49461         iconv implementations like Irix iconv.
49462
49463 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49464
49465         * modules/vararrays: New file.
49466         * m4/vararrays.m4: New file, taken from diffutils.
49467         * MODULES.html.sh: New module vararrays.
49468
49469 2006-10-24  Karl Berry  <karl@gnu.org>
49470
49471         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49472         Don't call GNU Unix.
49473
49474 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49475
49476         * users.txt: Add Libtool.
49477
49478         Sync from Libtool:
49479
49480         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49483         to gnulib's policy of including config.h unconditionally.
49484
49485 2006-10-24  Bruno Haible  <bruno@clisp.org>
49486
49487         * modules/wcwidth (Files): Add m4/wint_t.m4.
49488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49489         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49490
49491 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49492
49493         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49494         to pacify GCC with some -W flags enabled.  Problem reported by
49495         Bruno Haible.
49496
49497 2006-10-24  Jim Meyering  <jim@meyering.net>
49498
49499         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49500         Reported by Karl Berry.
49501
49502 2006-10-23  Bruno Haible  <bruno@clisp.org>
49503
49504         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49505
49506 2006-10-24  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/gl_list.h: Use C comment style, not C++ comment style.
49509
49510 2006-10-23  Eric Blake  <ebb9@byu.net>
49511
49512         * lib/getaddrinfo.c (includes): Add missing include.
49513
49514 2006-10-23  Bruno Haible  <bruno@clisp.org>
49515             Paul Eggert  <eggert@cs.ucla.edu>
49516
49517         Ability to rename obstack_free.
49518         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49519         obstack_free.
49520         (obstack_free): Invoke the __obstack_free macro.
49521         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49522
49523 2006-10-23  Bruno Haible  <bruno@clisp.org>
49524             Paul Eggert  <eggert@cs.ucla.edu>
49525
49526         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49527         __argc, __argv from the declaration. (They are defined as macros on
49528         mingw.)
49529
49530 2006-10-22  Bruno Haible  <bruno@clisp.org>
49531
49532         * doc/gnulib-intro.texi: New file.
49533         * doc/gnulib.texi: Include it.
49534
49535 2006-10-21  Bruno Haible  <bruno@clisp.org>
49536
49537         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49538         "Introduction", "Miscellanous Notes", "Particular Modules".
49539
49540 2006-10-21  Bruno Haible  <bruno@clisp.org>
49541
49542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49543         Change mostlyclean-local rule to avoid sh syntax error from bash
49544         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49545
49546 2006-10-23  Jim Meyering  <jim@meyering.net>
49547
49548         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49549         in place of snprintf.
49550
49551         * modules/inttostr (Files): Add lib/uinttostr.c.
49552         * lib/uinttostr.c (inttostr): New file/function.
49553         * lib/inttostr.h (uinttostr): Declare.
49554         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49555         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49556         Add uinttostr.
49557         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49558
49559 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49560
49561         * lib/canonicalize.c (ELOOP): Define if not already defined.
49562         Problem reported by Bruno Haible in
49563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49564
49565 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49568         Problem reported by Perry Smith and Ville Laurikari.
49569
49570         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49571         uses.
49572
49573 2006-10-19  Bruno Haible  <bruno@clisp.org>
49574
49575         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49576         for mingw.
49577
49578 2006-10-19  Bruno Haible  <bruno@clisp.org>
49579
49580         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49581         Needed for mingw.
49582
49583 2006-10-19  Bruno Haible  <bruno@clisp.org>
49584
49585         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49586
49587 2006-10-19  Bruno Haible  <bruno@clisp.org>
49588
49589         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49590         it.
49591
49592 2006-10-19  Bruno Haible  <bruno@clisp.org>
49593
49594         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49595         invocation.
49596
49597 2006-10-19  Bruno Haible  <bruno@clisp.org>
49598
49599         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49600         mountlist by default.
49601
49602 2006-10-16  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/c-strstr.c: Include c-strstr.h.
49605
49606 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49607
49608         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49609         in a slash.
49610
49611 2006-10-18  Bruno Haible  <bruno@clisp.org>
49612
49613         * lib/lock.h [C++]: Wrap definitions in extern "C".
49614
49615 2006-10-18  Bruno Haible  <bruno@clisp.org>
49616
49617         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49618         gl_LIBOBJS list.
49619
49620 2006-10-18  Bruno Haible  <bruno@clisp.org>
49621
49622         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49623
49624 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49625
49626         * lib/xstrtol.h: Include gettext.h.
49627         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49628         Problem reported by Eric Blake.
49629         * modules/xstrtol (Depends-on): Add gettext-h.
49630
49631 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49632
49633         * lib/strftime.c (advance): New macro.
49634         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49635         incomplete type, so you can't add 0 to it.  Problem and patch
49636         reported by Eelco Dolstra for dietlibc.
49637
49638 2006-10-18  Jim Meyering  <jim@meyering.net>
49639
49640         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49641         type for a local, and rename it: s/up/user_proc/.
49642
49643 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49644
49645         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49646         READ_UTMP_USER_PROCESS.
49647         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49648
49649 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49650
49651         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49652         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49653
49654 2006-10-17  Eric Blake  <ebb9@byu.net>
49655
49656         * lib/sigprocmask.c (sigprocmask): Fix typo.
49657
49658         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49659
49660         * modules/clean-temp (Makefile.am): Don't add to make output...
49661         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49662         config.h.
49663
49664 2006-10-17  Bruno Haible  <bruno@clisp.org>
49665
49666         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49667         differently if DEFAULT_TEXT_DOMAIN is set.
49668
49669 2006-10-16  Bruno Haible  <bruno@clisp.org>
49670
49671         * lib/clean-temp.c: Include fwriteerror.h.
49672
49673 2006-10-16  Bruno Haible  <bruno@clisp.org>
49674
49675         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49676
49677 2006-10-16  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49680         * lib/sigprocmask.h: Include <sys/types.h>.
49681         (sigset_t): Use the system's definition if present.
49682
49683 2006-10-17  Eric Blake  <ebb9@byu.net>
49684
49685         * lib/xvasprintf.c (includes): Assume config.h.
49686         * lib/xasprintf.c (includes): Likewise.
49687
49688 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49689
49690         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49691         at least as wide as intmax_t.
49692
49693 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49694
49695         (Imported from Automake.)
49696         * build-aux/gnupload: Update to version 1.1 of directive file.
49697
49698 2006-10-16  Eric Blake  <ebb9@byu.net>
49699
49700         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49701         match Automake 1.10a.
49702
49703 2006-10-14  Bruno Haible  <bruno@clisp.org>
49704
49705         * modules/sigprocmask: New file.
49706         * lib/sigprocmask.h: New file.
49707         * lib/sigprocmask.c: New file.
49708         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49709         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49710         request sigprocmask.o.
49711         (gl_PREREQ_SIGPROCMASK): New macro.
49712         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49713         (Depends-on): Add sigprocmask.
49714         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49715         gt_SIGNALBLOCKING. Test for 'raise' only once.
49716         * lib/fatal-signal.c: Include sigprocmask.h.
49717         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49718         unblock_fatal_signals): Define always.
49719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49720         sigprocmask.
49721
49722 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         Sync from Automake.
49725         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49726         which incorrectly sets the mode of an existing destination
49727         directory.  In some cases the unpatched install-sh could do the
49728         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49729         system.  We hope this is rare in practice, but it's clearly worth
49730         fixing.  Problem reported by Alex Unleashed in
49731         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49732         Also, don't bother to check for -m bugs unless we're using -m;
49733         suggested by Stepan Kasal.
49734
49735 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49736
49737         Sync from Automake.
49738         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49739         `-c' flag, so they appear at the same position as in %FASTDEP%
49740         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49741         which ignores unknown options only after the first non-option.
49742         Bug report against M4 by Nelson H. F. Beebe.
49743
49744 2006-10-13  Jim Meyering  <jim@meyering.net>
49745
49746         Fix a bug in yesterday's change.
49747         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49748         p->fts_statp->st_dev would be used uninitialized.
49749         Ensures that we always call fts_stat on the very first entry.
49750         Miklos Szeredi reported that find -xdev stopped working.
49751
49752 2006-10-12  Bruno Haible  <bruno@clisp.org>
49753
49754         * gnulib-tool (func_get_automake_snippet): Append an automatically
49755         computed EXTRA_DIST augmentation.
49756         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49757         * modules/alloca-opt (Makefile.am): Likewise.
49758         * modules/allocsa (Makefile.am): Likewise.
49759         * modules/arcfour (Makefile.am): Likewise.
49760         * modules/arctwo (Makefile.am): Likewise.
49761         * modules/argmatch (Makefile.am): Likewise.
49762         * modules/argz (Makefile.am): Likewise.
49763         * modules/atexit (Makefile.am): Likewise.
49764         * modules/backupfile (Makefile.am): Likewise.
49765         * modules/byteswap (Makefile.am): Likewise.
49766         * modules/c-strtod (Makefile.am): Likewise.
49767         * modules/c-strtold (Makefile.am): Likewise.
49768         * modules/calloc (Makefile.am): Likewise.
49769         * modules/canon-host (Makefile.am): Likewise.
49770         * modules/canonicalize (Makefile.am): Likewise.
49771         * modules/chdir-long (Makefile.am): Likewise.
49772         * modules/chdir-safer (Makefile.am): Likewise.
49773         * modules/check-version (Makefile.am): Likewise.
49774         * modules/chown (Makefile.am): Likewise.
49775         * modules/cloexec (Makefile.am): Likewise.
49776         * modules/close-stream (Makefile.am): Likewise.
49777         * modules/closeout (Makefile.am): Likewise.
49778         * modules/crc (Makefile.am): Likewise.
49779         * modules/csharpexec (Makefile.am): Likewise.
49780         * modules/cycle-check (Makefile.am): Likewise.
49781         * modules/des (Makefile.am): Likewise.
49782         * modules/dev-ino (Makefile.am): Likewise.
49783         * modules/dirfd (Makefile.am): Likewise.
49784         * modules/dirname (Makefile.am): Likewise.
49785         * modules/dup2 (Makefile.am): Likewise.
49786         * modules/eealloc (Makefile.am): Likewise.
49787         * modules/error (Makefile.am): Likewise.
49788         * modules/euidaccess (Makefile.am): Likewise.
49789         * modules/exclude (Makefile.am): Likewise.
49790         * modules/exitfail (Makefile.am): Likewise.
49791         * modules/fcntl-safer (Makefile.am): Likewise.
49792         * modules/fcntl (Makefile.am): Likewise.
49793         * modules/file-type (Makefile.am): Likewise.
49794         * modules/fileblocks (Makefile.am): Likewise.
49795         * modules/filemode (Makefile.am): Likewise.
49796         * modules/filenamecat (Makefile.am): Likewise.
49797         * modules/fnmatch (Makefile.am): Likewise.
49798         * modules/fopen-safer (Makefile.am): Likewise.
49799         * modules/fpending (Makefile.am): Likewise.
49800         * modules/fprintftime (Makefile.am): Likewise.
49801         * modules/free (Makefile.am): Likewise.
49802         * modules/fsusage (Makefile.am): Likewise.
49803         * modules/ftruncate (Makefile.am): Likewise.
49804         * modules/fts (Makefile.am): Likewise.
49805         * modules/gc-arcfour (Makefile.am): Likewise.
49806         * modules/gc-des (Makefile.am): Likewise.
49807         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49808         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49809         * modules/gc-md4 (Makefile.am): Likewise.
49810         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49811         * modules/gc-sha1 (Makefile.am): Likewise.
49812         * modules/gc (Makefile.am): Likewise.
49813         * modules/getaddrinfo (Makefile.am): Likewise.
49814         * modules/getcwd (Makefile.am): Likewise.
49815         * modules/getdelim (Makefile.am): Likewise.
49816         * modules/getdomainname (Makefile.am): Likewise.
49817         * modules/getgroups (Makefile.am): Likewise.
49818         * modules/gethostname (Makefile.am): Likewise.
49819         * modules/gethrxtime (Makefile.am): Likewise.
49820         * modules/getline (Makefile.am): Likewise.
49821         * modules/getloadavg (Makefile.am): Likewise.
49822         * modules/getlogin_r (Makefile.am): Likewise.
49823         * modules/getndelim2 (Makefile.am): Likewise.
49824         * modules/getopt (Makefile.am): Likewise.
49825         * modules/getpagesize (Makefile.am): Likewise.
49826         * modules/getpass-gnu (Makefile.am): Likewise.
49827         * modules/getpass (Makefile.am): Likewise.
49828         * modules/getsubopt (Makefile.am): Likewise.
49829         * modules/gettime (Makefile.am): Likewise.
49830         * modules/gettimeofday (Makefile.am): Likewise.
49831         * modules/getugroups (Makefile.am): Likewise.
49832         * modules/getusershell (Makefile.am): Likewise.
49833         * modules/glob (Makefile.am): Likewise.
49834         * modules/group-member (Makefile.am): Likewise.
49835         * modules/hard-locale (Makefile.am): Likewise.
49836         * modules/hash (Makefile.am): Likewise.
49837         * modules/hmac-md5 (Makefile.am): Likewise.
49838         * modules/hmac-sha1 (Makefile.am): Likewise.
49839         * modules/human (Makefile.am): Likewise.
49840         * modules/idcache (Makefile.am): Likewise.
49841         * modules/imaxabs (Makefile.am): Likewise.
49842         * modules/imaxdiv (Makefile.am): Likewise.
49843         * modules/inet_ntop (Makefile.am): Likewise.
49844         * modules/inet_pton (Makefile.am): Likewise.
49845         * modules/intprops (Makefile.am): Likewise.
49846         * modules/inttostr (Makefile.am): Likewise.
49847         * modules/inttypes (Makefile.am): Likewise.
49848         * modules/isapipe (Makefile.am): Likewise.
49849         * modules/javaversion (Makefile.am): Likewise.
49850         * modules/lchmod (Makefile.am): Likewise.
49851         * modules/lchown (Makefile.am): Likewise.
49852         * modules/localcharset (Makefile.am): Likewise.
49853         * modules/long-options (Makefile.am): Likewise.
49854         * modules/lstat (Makefile.am): Likewise.
49855         * modules/malloc (Makefile.am): Likewise.
49856         * modules/mathl (Makefile.am): Likewise.
49857         * modules/mbchar (Makefile.am): Likewise.
49858         * modules/md2 (Makefile.am): Likewise.
49859         * modules/md4 (Makefile.am): Likewise.
49860         * modules/md5 (Makefile.am): Likewise.
49861         * modules/memcasecmp (Makefile.am): Likewise.
49862         * modules/memchr (Makefile.am): Likewise.
49863         * modules/memcmp (Makefile.am): Likewise.
49864         * modules/memcoll (Makefile.am): Likewise.
49865         * modules/memcpy (Makefile.am): Likewise.
49866         * modules/memmem (Makefile.am): Likewise.
49867         * modules/memmove (Makefile.am): Likewise.
49868         * modules/mempcpy (Makefile.am): Likewise.
49869         * modules/memrchr (Makefile.am): Likewise.
49870         * modules/memset (Makefile.am): Likewise.
49871         * modules/memxor (Makefile.am): Likewise.
49872         * modules/mkancesdirs (Makefile.am): Likewise.
49873         * modules/mkdir-p (Makefile.am): Likewise.
49874         * modules/mkdir (Makefile.am): Likewise.
49875         * modules/mkdtemp (Makefile.am): Likewise.
49876         * modules/mkstemp (Makefile.am): Likewise.
49877         * modules/mktime (Makefile.am): Likewise.
49878         * modules/modechange (Makefile.am): Likewise.
49879         * modules/mountlist (Makefile.am): Likewise.
49880         * modules/nanosleep (Makefile.am): Likewise.
49881         * modules/obstack (Makefile.am): Likewise.
49882         * modules/openat (Makefile.am): Likewise.
49883         * modules/pagealign_alloc (Makefile.am): Likewise.
49884         * modules/pathmax (Makefile.am): Likewise.
49885         * modules/physmem (Makefile.am): Likewise.
49886         * modules/poll (Makefile.am): Likewise.
49887         * modules/posixtm (Makefile.am): Likewise.
49888         * modules/posixver (Makefile.am): Likewise.
49889         * modules/putenv (Makefile.am): Likewise.
49890         * modules/quote (Makefile.am): Likewise.
49891         * modules/quotearg (Makefile.am): Likewise.
49892         * modules/raise (Makefile.am): Likewise.
49893         * modules/read-file (Makefile.am): Likewise.
49894         * modules/readline (Makefile.am): Likewise.
49895         * modules/readlink (Makefile.am): Likewise.
49896         * modules/readtokens (Makefile.am): Likewise.
49897         * modules/readutmp (Makefile.am): Likewise.
49898         * modules/realloc (Makefile.am): Likewise.
49899         * modules/regex (Makefile.am): Likewise.
49900         * modules/rename-dest-slash (Makefile.am): Likewise.
49901         * modules/rename (Makefile.am): Likewise.
49902         * modules/rijndael (Makefile.am): Likewise.
49903         * modules/rmdir (Makefile.am): Likewise.
49904         * modules/rpmatch (Makefile.am): Likewise.
49905         * modules/safe-read (Makefile.am): Likewise.
49906         * modules/safe-write (Makefile.am): Likewise.
49907         * modules/same-inode (Makefile.am): Likewise.
49908         * modules/same (Makefile.am): Likewise.
49909         * modules/save-cwd (Makefile.am): Likewise.
49910         * modules/savedir (Makefile.am): Likewise.
49911         * modules/setenv (Makefile.am): Likewise.
49912         * modules/settime (Makefile.am): Likewise.
49913         * modules/sha1 (Makefile.am): Likewise.
49914         * modules/sig2str (Makefile.am): Likewise.
49915         * modules/snprintf (Makefile.am): Likewise.
49916         * modules/stat-macros (Makefile.am): Likewise.
49917         * modules/stat-time (Makefile.am): Likewise.
49918         * modules/stdbool (Makefile.am): Likewise.
49919         * modules/stdint (Makefile.am): Likewise.
49920         * modules/stdlib-safer (Makefile.am): Likewise.
49921         * modules/stpcpy (Makefile.am): Likewise.
49922         * modules/stpncpy (Makefile.am): Likewise.
49923         * modules/strcase (Makefile.am): Likewise.
49924         * modules/strcasestr (Makefile.am): Likewise.
49925         * modules/strchrnul (Makefile.am): Likewise.
49926         * modules/strcspn (Makefile.am): Likewise.
49927         * modules/strdup (Makefile.am): Likewise.
49928         * modules/strerror (Makefile.am): Likewise.
49929         * modules/strftime (Makefile.am): Likewise.
49930         * modules/strndup (Makefile.am): Likewise.
49931         * modules/strnlen (Makefile.am): Likewise.
49932         * modules/strpbrk (Makefile.am): Likewise.
49933         * modules/strsep (Makefile.am): Likewise.
49934         * modules/strstr (Makefile.am): Likewise.
49935         * modules/strtod (Makefile.am): Likewise.
49936         * modules/strtoimax (Makefile.am): Likewise.
49937         * modules/strtok_r (Makefile.am): Likewise.
49938         * modules/strtol (Makefile.am): Likewise.
49939         * modules/strtoll (Makefile.am): Likewise.
49940         * modules/strtoul (Makefile.am): Likewise.
49941         * modules/strtoull (Makefile.am): Likewise.
49942         * modules/strtoumax (Makefile.am): Likewise.
49943         * modules/strverscmp (Makefile.am): Likewise.
49944         * modules/sys_socket (Makefile.am): Likewise.
49945         * modules/sys_stat (Makefile.am): Likewise.
49946         * modules/sysexits (Makefile.am): Likewise.
49947         * modules/time_r (Makefile.am): Likewise.
49948         * modules/timegm (Makefile.am): Likewise.
49949         * modules/timespec (Makefile.am): Likewise.
49950         * modules/tmpfile-safer (Makefile.am): Likewise.
49951         * modules/trim (Makefile.am): Likewise.
49952         * modules/unistd-safer (Makefile.am): Likewise.
49953         * modules/unlinkdir (Makefile.am): Likewise.
49954         * modules/unlocked-io (Makefile.am): Likewise.
49955         * modules/userspec (Makefile.am): Likewise.
49956         * modules/utime (Makefile.am): Likewise.
49957         * modules/utimecmp (Makefile.am): Likewise.
49958         * modules/utimens (Makefile.am): Likewise.
49959         * modules/vasnprintf (Makefile.am): Likewise.
49960         * modules/vasprintf (Makefile.am): Likewise.
49961         * modules/vsnprintf (Makefile.am): Likewise.
49962         * modules/xalloc (Makefile.am): Likewise.
49963         * modules/xgetcwd (Makefile.am): Likewise.
49964         * modules/xnanosleep (Makefile.am): Likewise.
49965         * modules/xreadlink (Makefile.am): Likewise.
49966         * modules/xstrtod (Makefile.am): Likewise.
49967         * modules/xstrtol (Makefile.am): Likewise.
49968         * modules/xstrtold (Makefile.am): Likewise.
49969         * modules/yesno (Makefile.am): Likewise.
49970         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49971
49972 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49973
49974         * modules/error (Makefile.am): Distribute files through
49975         EXTRA_DIST, not lib_SOURCES.
49976
49977 2006-10-12  Eric Blake  <ebb9@byu.net>
49978
49979         * modules/error (Makefile.am): Distribute files in /lib.
49980         * modules/obstack (Makefile.am): Likewise.
49981
49982 2006-10-12  Bruno Haible  <bruno@clisp.org>
49983
49984         * modules/acl (Makefile.am): Distribute all files in lib/ through
49985         EXTRA_DIST.
49986         * modules/arcfour (Makefile.am): Likewise.
49987         * modules/arctwo (Makefile.am): Likewise.
49988         * modules/argmatch (Makefile.am): Likewise.
49989         * modules/argz (Makefile.am): Likewise.
49990         * modules/atexit (Makefile.am): Likewise.
49991         * modules/backupfile (Makefile.am): Likewise.
49992         * modules/c-strtod (Makefile.am): Likewise.
49993         * modules/c-strtold (Makefile.am): Likewise.
49994         * modules/calloc (Makefile.am): Likewise.
49995         * modules/canon-host (Makefile.am): Likewise.
49996         * modules/canonicalize (Makefile.am): Likewise.
49997         * modules/chdir-long (Makefile.am): Likewise.
49998         * modules/chdir-safer (Makefile.am): Likewise.
49999         * modules/check-version (Makefile.am): Likewise.
50000         * modules/chown (Makefile.am): Likewise.
50001         * modules/cloexec (Makefile.am): Likewise.
50002         * modules/close-stream (Makefile.am): Likewise.
50003         * modules/closeout (Makefile.am): Likewise.
50004         * modules/crc (Makefile.am): Likewise.
50005         * modules/cycle-check (Makefile.am): Likewise.
50006         * modules/des (Makefile.am): Likewise.
50007         * modules/dirfd (Makefile.am): Likewise.
50008         * modules/dirname (Makefile.am): Likewise.
50009         * modules/dup2 (Makefile.am): Likewise.
50010         * modules/euidaccess (Makefile.am): Likewise.
50011         * modules/exclude (Makefile.am): Likewise.
50012         * modules/exitfail (Makefile.am): Likewise.
50013         * modules/fcntl-safer (Makefile.am): Likewise.
50014         * modules/file-type (Makefile.am): Likewise.
50015         * modules/fileblocks (Makefile.am): Likewise.
50016         * modules/filemode (Makefile.am): Likewise.
50017         * modules/filenamecat (Makefile.am): Likewise.
50018         * modules/fnmatch (Makefile.am): Likewise.
50019         * modules/fopen-safer (Makefile.am): Likewise.
50020         * modules/fpending (Makefile.am): Likewise.
50021         * modules/fprintftime (Makefile.am): Likewise.
50022         * modules/free (Makefile.am): Likewise.
50023         * modules/fsusage (Makefile.am): Likewise.
50024         * modules/ftruncate (Makefile.am): Likewise.
50025         * modules/fts (Makefile.am): Likewise.
50026         * modules/gc (Makefile.am): Likewise.
50027         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50028         * modules/getaddrinfo (Makefile.am): Likewise.
50029         * modules/getcwd (Makefile.am): Likewise.
50030         * modules/getdelim (Makefile.am): Likewise.
50031         * modules/getdomainname (Makefile.am): Likewise.
50032         * modules/getgroups (Makefile.am): Likewise.
50033         * modules/gethostname (Makefile.am): Likewise.
50034         * modules/gethrxtime (Makefile.am): Likewise.
50035         * modules/getline (Makefile.am): Likewise.
50036         * modules/getloadavg (Makefile.am): Likewise.
50037         * modules/getlogin_r (Makefile.am): Likewise.
50038         * modules/getopt (Makefile.am): Likewise.
50039         * modules/getpass (Makefile.am): Likewise.
50040         * modules/getpass-gnu (Makefile.am): Likewise.
50041         * modules/getsubopt (Makefile.am): Likewise.
50042         * modules/gettime (Makefile.am): Likewise.
50043         * modules/gettimeofday (Makefile.am): Likewise.
50044         * modules/getugroups (Makefile.am): Likewise.
50045         * modules/getusershell (Makefile.am): Likewise.
50046         * modules/glob (Makefile.am): Likewise.
50047         * modules/group-member (Makefile.am): Likewise.
50048         * modules/hard-locale (Makefile.am): Likewise.
50049         * modules/hash (Makefile.am): Likewise.
50050         * modules/hmac-md5 (Makefile.am): Likewise.
50051         * modules/hmac-sha1 (Makefile.am): Likewise.
50052         * modules/human (Makefile.am): Likewise.
50053         * modules/idcache (Makefile.am): Likewise.
50054         * modules/imaxabs (Makefile.am): Likewise.
50055         * modules/imaxdiv (Makefile.am): Likewise.
50056         * modules/inet_ntop (Makefile.am): Likewise.
50057         * modules/inet_pton (Makefile.am): Likewise.
50058         * modules/inttostr (Makefile.am): Likewise.
50059         * modules/isapipe (Makefile.am): Likewise.
50060         * modules/lchown (Makefile.am): Likewise.
50061         * modules/long-options (Makefile.am): Likewise.
50062         * modules/lstat (Makefile.am): Likewise.
50063         * modules/malloc (Makefile.am): Likewise.
50064         * modules/mathl (Makefile.am): Likewise.
50065         * modules/mbchar (Makefile.am): Likewise.
50066         * modules/md2 (Makefile.am): Likewise.
50067         * modules/md4 (Makefile.am): Likewise.
50068         * modules/md5 (Makefile.am): Likewise.
50069         * modules/memcasecmp (Makefile.am): Likewise.
50070         * modules/memchr (Makefile.am): Likewise.
50071         * modules/memcmp (Makefile.am): Likewise.
50072         * modules/memcoll (Makefile.am): Likewise.
50073         * modules/memcpy (Makefile.am): Likewise.
50074         * modules/memmem (Makefile.am): Likewise.
50075         * modules/memmove (Makefile.am): Likewise.
50076         * modules/mempcpy (Makefile.am): Likewise.
50077         * modules/memrchr (Makefile.am): Likewise.
50078         * modules/memset (Makefile.am): Likewise.
50079         * modules/memxor (Makefile.am): Likewise.
50080         * modules/mkancesdirs (Makefile.am): Likewise.
50081         * modules/mkdir (Makefile.am): Likewise.
50082         * modules/mkdir-p (Makefile.am): Likewise.
50083         * modules/mkdtemp (Makefile.am): Likewise.
50084         * modules/mkstemp (Makefile.am): Likewise.
50085         * modules/mktime (Makefile.am): Likewise.
50086         * modules/modechange (Makefile.am): Likewise.
50087         * modules/mountlist (Makefile.am): Likewise.
50088         * modules/nanosleep (Makefile.am): Likewise.
50089         * modules/openat (Makefile.am): Likewise.
50090         * modules/pagealign_alloc (Makefile.am): Likewise.
50091         * modules/physmem (Makefile.am): Likewise.
50092         * modules/poll (Makefile.am): Likewise.
50093         * modules/posixtm (Makefile.am): Likewise.
50094         * modules/posixver (Makefile.am): Likewise.
50095         * modules/putenv (Makefile.am): Likewise.
50096         * modules/quote (Makefile.am): Likewise.
50097         * modules/quotearg (Makefile.am): Likewise.
50098         * modules/raise (Makefile.am): Likewise.
50099         * modules/read-file (Makefile.am): Likewise.
50100         * modules/readline (Makefile.am): Likewise.
50101         * modules/readlink (Makefile.am): Likewise.
50102         * modules/readtokens (Makefile.am): Likewise.
50103         * modules/readutmp (Makefile.am): Likewise.
50104         * modules/realloc (Makefile.am): Likewise.
50105         * modules/regex (Makefile.am): Likewise.
50106         * modules/rename (Makefile.am): Likewise.
50107         * modules/rename-dest-slash (Makefile.am): Likewise.
50108         * modules/rijndael (Makefile.am): Likewise.
50109         * modules/rmdir (Makefile.am): Likewise.
50110         * modules/rpmatch (Makefile.am): Likewise.
50111         * modules/safe-read (Makefile.am): Likewise.
50112         * modules/safe-write (Makefile.am): Likewise.
50113         * modules/same (Makefile.am): Likewise.
50114         * modules/save-cwd (Makefile.am): Likewise.
50115         * modules/savedir (Makefile.am): Likewise.
50116         * modules/setenv (Makefile.am): Likewise.
50117         * modules/settime (Makefile.am): Likewise.
50118         * modules/sha1 (Makefile.am): Likewise.
50119         * modules/sig2str (Makefile.am): Likewise.
50120         * modules/snprintf (Makefile.am): Likewise.
50121         * modules/stdlib-safer (Makefile.am): Likewise.
50122         * modules/stpcpy (Makefile.am): Likewise.
50123         * modules/stpncpy (Makefile.am): Likewise.
50124         * modules/strcase (Makefile.am): Likewise.
50125         * modules/strcasestr (Makefile.am): Likewise.
50126         * modules/strchrnul (Makefile.am): Likewise.
50127         * modules/strcspn (Makefile.am): Likewise.
50128         * modules/strdup (Makefile.am): Likewise.
50129         * modules/strerror (Makefile.am): Likewise.
50130         * modules/strftime (Makefile.am): Likewise.
50131         * modules/strndup (Makefile.am): Likewise.
50132         * modules/strnlen (Makefile.am): Likewise.
50133         * modules/strpbrk (Makefile.am): Likewise.
50134         * modules/strsep (Makefile.am): Likewise.
50135         * modules/strstr (Makefile.am): Likewise.
50136         * modules/strtod (Makefile.am): Likewise.
50137         * modules/strtoimax (Makefile.am): Likewise.
50138         * modules/strtok_r (Makefile.am): Likewise.
50139         * modules/strtol (Makefile.am): Likewise.
50140         * modules/strtoll (Makefile.am): Likewise.
50141         * modules/strtoul (Makefile.am): Likewise.
50142         * modules/strtoull (Makefile.am): Likewise.
50143         * modules/strtoumax (Makefile.am): Likewise.
50144         * modules/strverscmp (Makefile.am): Likewise.
50145         * modules/time_r (Makefile.am): Likewise.
50146         * modules/timegm (Makefile.am): Likewise.
50147         * modules/tmpfile-safer (Makefile.am): Likewise.
50148         * modules/unistd-safer (Makefile.am): Likewise.
50149         * modules/unlinkdir (Makefile.am): Likewise.
50150         * modules/userspec (Makefile.am): Likewise.
50151         * modules/utime (Makefile.am): Likewise.
50152         * modules/utimecmp (Makefile.am): Likewise.
50153         * modules/utimens (Makefile.am): Likewise.
50154         * modules/vasnprintf (Makefile.am): Likewise.
50155         * modules/vasprintf (Makefile.am): Likewise.
50156         * modules/vsnprintf (Makefile.am): Likewise.
50157         * modules/xalloc (Makefile.am): Likewise.
50158         * modules/xgetcwd (Makefile.am): Likewise.
50159         * modules/xnanosleep (Makefile.am): Likewise.
50160         * modules/xreadlink (Makefile.am): Likewise.
50161         * modules/xstrtod (Makefile.am): Likewise.
50162         * modules/xstrtol (Makefile.am): Likewise.
50163         * modules/xstrtold (Makefile.am): Likewise.
50164         * modules/yesno (Makefile.am): Likewise.
50165
50166 2006-10-12  Jim Meyering  <jim@meyering.net>
50167
50168         * m4/getloadavg.m4: Revert the change below.
50169
50170         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50171         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50172         fail with a symlink, which is what coreutils' ./bootstrap now
50173         creates by default.
50174
50175 2006-10-12  Bruno Haible  <bruno@clisp.org>
50176
50177         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50178         mingw.
50179         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50180         MSVC and mingw explicitly.
50181
50182 2006-10-11  Simon Josefsson  <jas@extundo.com>
50183             Bruno Haible  <bruno@clisp.org>
50184
50185         Add support for multiple gnulib-tool invocations in the scope of a
50186         single configure.ac file.
50187         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50188         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50189         with the same contents as the _LIBADD variable.
50190         (func_emit_initmacro_start, func_emit_initmacro_end,
50191         func_emit_initmacro_done): New functions.
50192         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50193         gl_LIBOBJS and gl_LTLIBOBJS.
50194
50195 2006-10-11  Bruno Haible  <bruno@clisp.org>
50196
50197         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50198         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50199         autoreconf. Instead, invoke autopoint explicitly but move back the
50200         *.m4 files from gnulib.
50201
50202 2006-10-11  Bruno Haible  <bruno@clisp.org>
50203
50204         * gnulib-tool (func_usage): Make module names after --create-testdir
50205         optional.
50206         (func_create_testdir): If no module was specified, use nearly all
50207         modules.
50208
50209 2006-10-12  Jim Meyering  <jim@meyering.net>
50210
50211         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50212         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50213         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50214         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50215         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50216         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50217         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50218         (fts_set_stat_required): New function.
50219         (fts_open): Defer the calls to fts_stat, if possible or requested.
50220         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50221         into fts_stat itself.
50222         (fts_read): Perform any required (deferred) fts_stat call.
50223         (fts_build): Likewise, for the directory we're about to open and read.
50224         In the readdir loop, carefully decide whether each entry will require
50225         an eventual call to fts_stat, using dirent.d_type info if available.
50226         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50227         a command line argument into this function.  Update all callers.
50228         Map a return value of FTS_DOT to FTS_D for a command line argument.
50229         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50230         Thanks to Miklos Szeredi for his tenacity and for the initial
50231         bug report about "find" failing on a FUSE-based file system.
50232
50233         * lib/fts.c (fts_open): Use consistent indentation.
50234
50235 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50236
50237         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50238         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50239         reported by Jim Meyering.  All uses of cache variables renamed
50240         to match Autoconf's.
50241         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50242         the other one.
50243
50244         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50245         Fix misspelling in diagnostic.
50246
50247 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50248
50249         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50250         defined.  Problem reported by Matthew Woehlke.
50251
50252         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50253         Add support for Tandem NonStop R series.
50254         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50255         Use new macro.
50256
50257         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50258         (has_trailing_slash): Omit size arg; all callers changed.
50259         Omit 'inline', since it doesn't help performance and we'd
50260         need to configure it.
50261         Don't count //, ///, etc. as having a trailing slash.
50262         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50263         (rpl_rename_dest_slash): On failure, use rename's errno rather
50264         than (in some cases) an incorrect or junk errno.
50265         Simplify code by removing need to compute length; this does
50266         cause it to make two passes instead of one over the file name,
50267         but it's worth it.
50268
50269         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50270         change, since Autoconf's version may no longer be appropriate now
50271         that we are using CVS Autoconf's version.  Add support for Tandem.
50272
50273 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50274             Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50277         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50278         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50279         gl_AC_TYPE_LONG_LONG.
50280
50281         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50282         instead of HAVE_LONG_LONG.
50283         * lib/printf-args.c (printf_fetchargs): Likewise.
50284         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50285         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50287         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50288         gl_AC_TYPE_LONG_LONG.
50289
50290 2006-10-11  Bruno Haible  <bruno@clisp.org>
50291
50292         * m4/longlong.m4: Add comments.
50293         * m4/ulonglong.m4: Likewise.
50294
50295 2006-10-10  Bruno Haible  <bruno@clisp.org>
50296
50297         Make it possible to #define stpcpy, strdup to aliases.
50298         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50299         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50300
50301 2006-10-10  Bruno Haible  <bruno@clisp.org>
50302
50303         Make it possible to #define gcd to an alias.
50304         * lib/gcd.c: Include config.h.
50305
50306 2006-10-10  Bruno Haible  <bruno@clisp.org>
50307
50308         Make it possible to #define c_isascii to an alias.
50309         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50310         defined. Undefine the macros before defining them, to avoid gcc
50311         warnings.
50312         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50313         define NO_C_CTYPE_MACROS early.
50314
50315 2006-10-10  Bruno Haible  <bruno@clisp.org>
50316
50317         Make it possible to #define set_program_name to an alias.
50318         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50319         ENABLE_RELOCATABLE early.
50320
50321 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50322
50323         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50324         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50325         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50326         More generally, don't assume that 64-bit signed int is available
50327         if unsigned int is, and vice versa.
50328         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50329         unsigned symbols, not on their signed counterparts.
50330         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50331         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50332         (UINT64_C, UINTMAX_C):
50333         Likewise.
50334         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50335         unsigned counterparts.
50336         (Have_long_long, Unsigned): New macros.
50337         (Int): Renamed from INT.
50338         (strtoimax): Use the new macros.
50339         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50340         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50341         * modules/inttypes (inttypes.h): Substitute
50342         HAVE_UNSIGNED_LONG_LONG_INT.
50343         * modules/stdint (stdint.h): Likewise.
50344         (Files): Add m4/ulonglong.m4.
50345
50346 2006-10-10  Bruno Haible  <bruno@clisp.org>
50347
50348         Fix a gcc -Wshadow warning.
50349         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50350         to 'bucket'.
50351         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50352         gl_linked_indexof_from_to): Likewise.
50353         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50354         Likewise.
50355         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50356         Likewise.
50357         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50358         Reported by Eric Blake.
50359
50360 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50361
50362         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50363         for NetBSD.  Problem reported by Bruno Haible.
50364
50365 2006-10-09  Jim Meyering  <jim@meyering.net>
50366
50367         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50368         Patch from Bruno Haible.
50369
50370 2006-10-09  Jim Meyering  <jim@meyering.net>
50371
50372         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50373         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50374         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50375
50376 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         Don't include <config.h> twice; this doesn't work in some cases,
50379         e.g., when config.h has "#define intmax_t long long int" and
50380         we include <config.h>, <inttypes.h>, <config.h> in that order.
50381         Problem reported by Matthew Woehlke in:
50382         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50383         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50384         * lib/fts-cycle.c: Don't include config.h.
50385         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50386         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50387         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50388         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50389         inttypes.h.
50390         * lib/xstrtoumax.c: Likewise.
50391         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50392         __strtol and the like, so that this module is more like its siblings.
50393         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50394         Remove; no longer needed now that we assume gnulib inttypes.h.
50395
50396 2006-10-08  Bruno Haible  <bruno@clisp.org>
50397
50398         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50399         option.
50400
50401 2006-10-07  Jim Meyering  <jim@meyering.net>
50402
50403         * modules/inttypes (inttypes.h): Revert what seems to have been
50404         an inadvertent part of today's change: use "|", not "/" in the
50405         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50406
50407 2006-10-07  Bruno Haible  <bruno@clisp.org>
50408
50409         * modules/sublist: New file.
50410
50411 2006-10-07  Bruno Haible  <bruno@clisp.org>
50412
50413         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50414         * modules/argz (argz.h): Likewise.
50415         * modules/arpa_inet (arpa/inet.h): Likewise.
50416         * modules/byteswap (byteswap.h): Likewise.
50417         * modules/configmake (configmake.h): Likewise.
50418         * modules/fcntl (fcntl.h): Likewise.
50419         * modules/fnmatch (fnmatch.h): Likewise.
50420         * modules/getopt (getopt.h): Likewise.
50421         * modules/glob (glob.h): Likewise.
50422         * modules/inttypes (inttypes.h): Likewise.
50423         * modules/netinet_in (netinet/in.h): Likewise.
50424         * modules/poll (poll.h): Likewise.
50425         * modules/stdbool (stdbool.h): Likewise.
50426         * modules/stdint (stdint.h): Likewise.
50427         * modules/sys_select (sys/select.h): Likewise.
50428         * modules/sys_socket (sys/socket.h): Likewise.
50429         * modules/sys_stat (sys/stat.h): Likewise.
50430         * modules/sysexits (sysexits.h): Likewise.
50431         * modules/unistd (unistd.h): Likewise.
50432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50433         Add a "DO NOT EDIT" comment to the generated file.
50434         (func_import): Likewise for gnulib-comp.m4.
50435
50436 2006-10-07  Bruno Haible  <bruno@clisp.org>
50437
50438         * lib/gl_sublist.h: New file.
50439         * lib/gl_sublist.c: New file.
50440
50441 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50442
50443         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50444         name (relative to the original working directory) and the file
50445         name component (relative to the temporary working directory).  All
50446         callers changed.
50447         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50448         * lib/mkdir-p.c (make_dir_parents): Likewise.
50449         * lib/mkdir-p.h (make_dir_parents): Likewise.
50450
50451 2006-10-06  Eric Blake  <ebb9@byu.net>
50452
50453         Define several macros for use by the clean-temp module.
50454         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50455         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50456         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50457
50458         * lib/clean-temp.h (close_stream_temp): New declaration.
50459         * lib/clean-temp.c (includes): Pull in headers according to what
50460         other modules are in use.
50461         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50462
50463 2006-10-06  Bruno Haible  <bruno@clisp.org>
50464
50465         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50466         instead of fopen, fwriteerror.
50467
50468 2006-10-06  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50471         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50472         int.
50473         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50474         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50475         Return an error indicator.
50476         Suggested by Eric Blake.
50477
50478 2006-10-06  Bruno Haible  <bruno@clisp.org>
50479
50480         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50481         Reported by Eric Blake.
50482
50483 2006-10-06  Bruno Haible  <bruno@clisp.org>
50484
50485         * modules/closeout (Description): Mention stderr too.
50486
50487 2006-10-06  Bruno Haible  <bruno@clisp.org>
50488         and Paul Eggert  <eggert@cs.ucla.edu>
50489
50490         * lib/closeout.c (close_stdout): Also close stderr.
50491         * lib/closeout.h: Update comment.
50492
50493 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50494
50495         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50496         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50497         * lib/dirchownmod.c: Include lchown.h.
50498         * lib/lchown.c: Don't include files that lchown.h now includes.
50499         Don't declare chown, since lchown.h now does that.
50500         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50501         (lchown): Define to rpl_chown if lchown is declared but
50502         does not exist.  Declare using a prototype if lchown is not
50503         declared.  Add a copyright notice.
50504         * lib/mkstemp.h: Include <unistd.h>.
50505         * lib/openat.c: Include lchown.h.
50506
50507         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50508         we now test for that separately.
50509         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50510         rather than O_NOFOLLOW, when testing whether it's possible to
50511         avoid a race condition reliably.
50512         * lib/savewd.c (savewd_chdir): Likewise.
50513
50514         Remove macros that are no longer needed now that stdint.h is
50515         reliable.
50516         * lib/fsusage.c (UINTMAX_MAX): Remove.
50517         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50518         * lib/utimecmp.c (SIZE_MAX): Remove.
50519
50520         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50521
50522         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50523         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50524         O_NOATIME works.
50525
50526 2006-10-05  Bruno Haible  <bruno@clisp.org>
50527
50528         * lib/gl_list.h (gl_sortedlist_search_from_to,
50529         gl_sortedlist_indexof_from_to): New declarations.
50530         (gl_list_implementation): New fields sortedlist_search_from_to,
50531         sortedlist_indexof_from_to.
50532         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50533         inline functions.
50534         * lib/gl_list.c (gl_sortedlist_search_from_to,
50535         gl_sortedlist_indexof_from_to): New functions.
50536         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50537         function.
50538         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50539         (gl_array_sortedlist_search_from_to): New function.
50540         (gl_array_list_implementation): Update.
50541         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50542         function.
50543         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50544         (gl_carray_sortedlist_search_from_to): New function.
50545         (gl_carray_list_implementation): Update.
50546         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50547         gl_linked_sortedlist_indexof_from_to): New functions.
50548         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50549         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50550         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50551         gl_tree_sortedlist_indexof_from_to): New functions.
50552         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50553         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50554         Update.
50555         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50556         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50557         Update.
50558
50559 2006-10-05  Bruno Haible  <bruno@clisp.org>
50560
50561         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50562         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50563         (struct gl_list_implementation): Add fields search_from_to,
50564         indexof_from_to. Remove fields search, indexof.
50565         (gl_list_search): Use the search_from_to method.
50566         (gl_list_search_from, gl_list_search_from_to): New functions.
50567         (gl_list_indexof): Use the indexof_from_to method.
50568         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50569         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50570         (gl_list_search_from, gl_list_search_from_to): New functions.
50571         (gl_list_indexof): Use the indexof_from_to method.
50572         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50573         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50574         gl_array_indexof. Add start_index, end_index arguments.
50575         (gl_array_search_from_to): Renamed from gl_array_search. Add
50576         start_index, end_index arguments.
50577         (gl_array_remove, gl_array_list_implementation): Update.
50578         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50579         gl_carray_indexof. Add start_index, end_index arguments.
50580         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50581         start_index, end_index arguments.
50582         (gl_carray_remove, gl_carray_list_implementation): Update.
50583         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50584         gl_linked_search. Add start_index, end_index arguments.
50585         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50586         start_index, end_index arguments.
50587         (gl_linked_remove): Update.
50588         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50589         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50590         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50591         field to 'size_t'.
50592         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50593         gl_tree_search. Add start_index, end_index arguments.
50594         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50595         start_index, end_index arguments.
50596         (gl_tree_remove): Update.
50597         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50598         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50599         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50600         function.
50601         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50602         gl_tree_search. Add start_index, end_index arguments.
50603         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50604         start_index, end_index arguments.
50605         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50606         Update.
50607         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50608
50609 2006-10-05  Bruno Haible  <bruno@clisp.org>
50610
50611         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50612
50613         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50614         fwriteerror_temp): New declarations.
50615         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50616         (descriptors): New variable.
50617         (cleanup): First, close the descriptors.
50618         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50619         fclose_temp, fwriteerror_temp): New functions.
50620
50621 2006-10-04  Jim Meyering  <jim@meyering.net>
50622
50623         * lib/fts.c (fts_open): Tiny comment change.
50624
50625 2006-10-04  Bruno Haible  <bruno@clisp.org>
50626
50627         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50628         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50629         gl_LOCK_BODY.
50630         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50631         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50632         gl_LOCK_EARLY_BODY.
50633         (gl_LOCK): Require gl_LOCK_BODY.
50634
50635 2006-10-04  Bruno Haible  <bruno@clisp.org>
50636
50637         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50638         (gl_oset_search_atleast): New declaration.
50639         (struct gl_oset_implementation): Add field 'search_atleast'.
50640         (gl_oset_search_atleast): New inline function.
50641         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50642         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50643         (gl_array_oset_implementation): Update.
50644         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50645         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50646         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50647
50648 2006-10-04  Bruno Haible  <bruno@clisp.org>
50649
50650         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50651
50652 2006-10-03  Bruno Haible  <bruno@clisp.org>
50653
50654         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50655         from gl_avltreehash_list_implementation.
50656
50657 2006-10-03  Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/gl_oset.c (gl_oset_add): Fix return type.
50660
50661 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50662
50663         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50664
50665 2006-10-02  Eric Blake  <ebb9@byu.net>
50666
50667         * modules/strnlen (Depends-on): Add extensions.
50668
50669 2006-10-02  Eric Blake  <ebb9@byu.net>
50670
50671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50672         definition in 2.60+.
50673
50674 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50675
50676         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50677         checks.
50678
50679 2006-10-02  Bruno Haible  <bruno@clisp.org>
50680
50681         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50682         to the AUTOMAKE_OPTIONS.
50683         Reported by Jim Meyering.
50684
50685 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         Work around bug in Solaris 10 /proc file system:
50688         /proc/self/fd/NNN/.. isn't the parent directory of
50689         the directory whose file descriptor is NNN.  This needs to
50690         be worked around at run time, not compile time, since a
50691         program might be built on Solaris 8, where things work, and
50692         run on Solaris 10.
50693         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50694         to use the following interface instead:
50695         (OPENAT_BUFFER_SIZE): New macro.
50696         (openat_proc_name): New function.
50697         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50698         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50699         Likewise.
50700         * lib/openat-proc.c: New file.
50701         * modules/openat (Files): Add lib/openat-proc.c.
50702         (Depends-on): Add same-inode, stdbool.
50703         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50704
50705 2006-09-29  Bruno Haible  <bruno@clisp.org>
50706
50707         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50708         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50709         argument. Set stdout_closed before testing for ferror, not after.
50710         (fwriteerror, fwriteerror_no_ebadf): New functions.
50711
50712 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50713
50714         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50715
50716 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50717
50718         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50719         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50720
50721 2006-09-28  Jim Meyering  <jim@meyering.net>
50722
50723         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50724         Include <unistd.h>.
50725
50726 2006-09-28  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50729         * modules/linkedhash-list (Depends-on): Likewise.
50730         * modules/rbtreehash-list (Depends-on): Likewise.
50731
50732 2006-09-28  Bruno Haible  <bruno@clisp.org>
50733
50734         * lib/strndup.h: Simplify the redefinition of strndup.
50735         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50736         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50737
50738 2006-09-28  Bruno Haible  <bruno@clisp.org>
50739
50740         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50741         * lib/gl_linkedhash_list.c: Likewise.
50742         * lib/gl_rbtreehash_list.c: Likewise.
50743
50744 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50747         getaddrinfo.
50748
50749         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50750         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50751         it causes <stdio_ext.h> to cause a compile-time error.
50752         Problem reported by Nelson H. F. Beebe.
50753         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50754         of HAVE_DECL___PENDING.
50755
50756         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50757         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50758         declaration.
50759
50760 2006-09-27  Jim Meyering  <jim@meyering.net>
50761
50762         This file could end up with a definition for a function
50763         named __strndup, rather than rpl_strndup on a system with
50764         incomplete weak_alias support.
50765         * lib/strndup.c (strndup): Rename from __strndup.
50766         Remove #defines that used to map __strndup to strndup.
50767         Don't use K&R prototypes.
50768         Remove LIBC-related code, since this file is not sync'd with glibc.
50769         * lib/strndup.h: Revamp, accordingly.
50770         * m4/strndup.m4: Modernize.
50771
50772 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * modules/savewd (Depends-on): Add 'raise'.
50775         * lib/savewd.c: Include <signal.h>, for 'raise'.
50776
50777 2006-09-26  Jim Meyering  <jim@meyering.net>
50778
50779         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50780         when we detect Darwin 8.7.0's acl_get_file bug.
50781         Rearrange to perform the new (below) run-test while $LIBS
50782         contains any acl-related library.  Set USE_ACL at the end.
50783         (gl_ACL_GET_FILE): New function.
50784
50785 2006-09-26  Eric Blake  <ebb9@byu.net>
50786
50787         * lib/verror.c: Include <config.h> unconditionally.
50788
50789 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50790
50791         * modules/clock-time (Maintainer): Add self.
50792         * modules/getlogin_r (Depends-on): Add extensions.
50793
50794 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50795
50796         * modules/clock-time: New module.
50797         * modules/nanosleep (Depends-on): Add clock-time.
50798         * modules/gethrxtime (Depends-on): Likewise.
50799         * modules/gettime (Depends-on): Likewise.
50800         * modules/settime (Depends-on): Likewise.
50801
50802         * modules/fts-lgpl: Depend on openat.
50803         * modules/mkancesdirs: Depend on savewd.
50804         * modules/mkdir-p: Likewise.
50805
50806 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50807
50808         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50809
50810         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50811         `gl_have_arbitrary_file_name_length_limit' to
50812         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50813         actually works between configure runs.
50814
50815 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50816             Bruno Haible  <bruno@clisp.org>
50817
50818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50819
50820 2006-09-25  Jim Meyering  <jim@meyering.net>
50821
50822         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50823         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50824
50825 2006-09-25  Eric Blake  <ebb9@byu.net>
50826
50827         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50828         exec's in 2006-09-18 patch when shuffling fds.
50829
50830 2006-09-25  Bruno Haible  <bruno@clisp.org>
50831
50832         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50833         Reported by Jim Meyering.
50834
50835 2006-09-24  Jim Meyering  <jim@meyering.net>
50836
50837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50838         compare a pointer against a literal "0".  That caused failures with
50839         at least HP-UX's hpcc.
50840
50841 2006-09-22  Simon Josefsson  <jas@extundo.com>
50842
50843         * modules/gc-sha1:
50844         * modules/gc-md4:
50845         * modules/gc-hmac-sha1:
50846         * modules/gc-hmac-md5:
50847         * modules/gc-des:
50848         * modules/gc-arcfour: Distribute more files.
50849
50850 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50851
50852         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50853         (gl_linked_iterator_from_to): Initialize struct completely.
50854         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50855         (gl_tree_iterator_from_to): Likewise
50856         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50857         * lib/gl_array_list.c [lint] (gl_array_iterator)
50858         (gl_array_iterator_from_to): Likewise.
50859         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50860         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50861         (gl_carray_iterator_from_to): Likewise.
50862
50863         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50864         * lib/md4.c (md4_process_block): Remove unused variable.
50865         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50866         parentheses for clarity.
50867
50868 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50869
50870         * modules/bison-i18n (Depends-on): Add gettext.
50871
50872 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50873
50874         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50875         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50876         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50877         also add missing comma that caused broken test.
50878         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50879         stdlib.h, for `abort'.
50880         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50881         variables.
50882         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50883         include unistd.h if present, for `rmdir'.
50884         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50885         variables.
50886         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50887         in the process include standard headers for prototypes.
50888         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50889         gets declared on GNU/Linux.
50890         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50891         unistd.h, for `rmdir'.
50892         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50893
50894         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50895         always true.
50896         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50897
50898         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50899
50900 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50901
50902         * gnulib-tool (func_version): Create output all at once.  This
50903         may help avoid triggering unnecessary SIGPIPEs, and at any
50904         rate it doesn't hurt.
50905
50906 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50907             Bruno Haible  <bruno@clisp.org>
50908
50909         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50910         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50911         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50912
50913         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50914         (gl_FUNC_VASPRINTF): Invoke it.
50915
50916 2006-09-22  Bruno Haible  <bruno@clisp.org>
50917
50918         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50919         getloadavg.c as first argument.
50920
50921 2006-09-22  Bruno Haible  <bruno@clisp.org>
50922
50923         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50924         at the beginning of the gl_INIT macro.
50925         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50926         gl_GETLOADAVG.
50927
50928 2006-09-22  Bruno Haible  <bruno@clisp.org>
50929
50930         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50931         module.
50932         Suggested by Ralf Wildenhues.
50933
50934 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         Import this patch from libc:
50937
50938         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50939
50940         * lib/regex_internal.c (re_string_reconstruct): Handle
50941         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50942         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50943         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50944         re_string_context_at.
50945
50946         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50947         now requires it.
50948         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50949         gl_REGEX now does it for us.
50950         (gl_REGEX): Add test taken from
50951         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50952
50953         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50954         Check that large offsets work.  Modernize Autoconf usages.
50955         Prefer "yes" to mean a good thing rather than a bad.
50956         Don't put "#define mkstemp" in config.h, as this might interfere
50957         with standard system headers that "#define mkstemp mkstemp64".
50958
50959         * modules/mkstemp (Depends-on): Add extensions, so that
50960         mkstemp is visible on some platforms.
50961         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50962         (Include): Change to "mkstemp.h" from <stdlib.h>.
50963         (Files): Add mkstemp.h.
50964
50965         * lib/mkstemp.h: New file, since some standard headers
50966         #define mkstemp.
50967         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50968         Include "mkstemp.h".
50969         Make the _LIBC code resemble glibc original more,
50970         e.g., use K&R style.
50971         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50972         (mkstemp): Remove, since mkstemp.h does this for us.
50973         * lib/stdlib--.h: Include mkstemp.h.
50974
50975         Import this patch from libc:
50976
50977         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50978
50979         * lib/tempname.c (__gen_tempname): Change attempts_min
50980         into a macro.  Use preprocessor to decide how to initialize
50981         attempts [Coverity CID 67].
50982
50983 2006-09-20  Bruno Haible  <bruno@clisp.org>
50984
50985         * lib/mkdtemp.c: Import from libc.
50986         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50987                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50988                 attempts_min into a macro.  Use preprocessor to decide how to
50989                 initialize attempts [Coverity CID 67].
50990         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50991                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50992                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50993
50994 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50995
50996         * gnulib-tool (func_exit): New function, to allow to pass the
50997         exit status portably through the trap.  Use everywhere.
50998         (--help, --version): Signal a write error.
50999         (trap): catch SIGPIPE, for write errors.
51000         Exit at the end of the trap, with the correct exit status.
51001
51002 2006-09-19  Karl Berry  <karl@gnu.org>
51003
51004         * doc/gnulib.texi: note about the license texinfo files.
51005
51006 2006-09-19  Eric Blake  <ebb9@byu.net>
51007
51008         * gnulib-tool: Avoid space-tab.
51009
51010 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51011
51012         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
51013         that prevented coreutils 6.1 from building.  Problem reported
51014         by Petter Reinholdtsen.
51015
51016 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51017
51018         * gnulib-tool (avoidlist): Fix typo that broke options like
51019         --avoid=lock that are used by coreutils bootstrap.
51020
51021 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
51022
51023         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
51024         more systematically.
51025
51026 2006-09-18  Jim Meyering  <jim@meyering.net>
51027
51028         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
51029
51030 2006-09-18  Bruno Haible  <bruno@clisp.org>
51031
51032         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
51033
51034 2006-09-18  Bruno Haible  <bruno@clisp.org>
51035
51036         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
51037         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
51038         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
51039         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
51040         * m4/gettext.m4: Require autoconf >= 2.52.
51041         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
51042         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
51043         of gl_cv_header_inttypes_h.
51044
51045 2006-09-18  Bruno Haible  <bruno@clisp.org>
51046
51047         * lib/javaversion.c: Include configmake.h.
51048
51049 2006-09-18  Bruno Haible  <bruno@clisp.org>
51050
51051         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
51052         avoid that the while loops be executed in a subshell.
51053
51054 2006-09-18  Bruno Haible  <bruno@clisp.org>
51055
51056         * MODULES.html.sh (func_module): Break long lines.
51057         Suggested by Bruce Korb <bkorb@gnu.org>.
51058
51059 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51060
51061         Speed up by a factor of 1.12.
51062         * gnulib-tool (nl): New variable.
51063         (func_import): Rewrite include directive extraction to only read each
51064         directive once.
51065
51066 2006-09-17  Bruno Haible  <bruno@clisp.org>
51067
51068         * modules/javaversion (Makefile.am): Remove DEFS setting.
51069         (Depends-on): Add configmake, for PKGDATADIR definition.
51070
51071 2006-09-17  Bruno Haible  <bruno@clisp.org>
51072
51073         * gnulib-tool (func_create_testdir): Rewrite all files at once.
51074
51075 2006-09-17  Bruno Haible  <bruno@clisp.org>
51076
51077         * gnulib-tool (func_append): New function, stolen from libtool.m4.
51078         (func_modules_transitive_closure, func_modules_add_dummy,
51079         func_modules_to_filelist, func_import, func_create_testdir,
51080         func_create_megatestdir, ...): Use it wherever possible.
51081         Suggested by Ralf Wildenhues.
51082
51083 2006-09-16  Karl Berry  <karl@gnu.org>
51084
51085         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
51086         to avoid sectioning errors.
51087         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
51088         [ifinfo]: blank line after @center-ed titles.
51089         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
51090         Spell FSF address consistently with others.
51091         (These changes approved by rms.)
51092
51093 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51094
51095         Speed up by a factor of 1.61.
51096         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
51097         already checked module names again.
51098
51099 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51100
51101         Speed up by a factor of 1.13.
51102         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
51103         for new_files, and the input to func_add_or_update.
51104
51105 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51106
51107         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
51108         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
51109
51110 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51111
51112         * modules/mkancesdirs (Depends-on): Add fcntl.
51113         * modules/savewd: New file.
51114         * MODULES.html.sh (File system functions): Add savewd.
51115
51116         * modules/configmake (Makefile.am): Add support for the
51117         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51118
51119 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         * m4/savewd.m4: New file.
51122
51123 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51126         (dirchownmod): New arg FD.  All callers changed.
51127         Use FD rather than opening the directory ourself, as opening is
51128         now the caller's responsibility.
51129         * lib/dirchownmod.h: Likewise.
51130         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51131         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51132         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51133         (test_dir): Remove.
51134         (mkancesdirs): Return length of prefix of FILE that has already
51135         been made, or -2 if there is a child doing the work.  Redo
51136         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51137         ".", and treat ".." specially since it might stray back into
51138         already-created areas.  Use a subprocess if necessary.  New arg
51139         WD; all users changed.  MAKE_DIR function should now return 1
51140         if it creates a directory that is not readable.  Return -2 if
51141         a child process is spun off.
51142         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51143         Adjust signature to match code.
51144         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51145         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51146         all users changed.
51147         * lib/savewd.c, lib/savewd.h: New files.
51148
51149 2006-09-15  Jim Meyering  <jim@meyering.net>
51150
51151         * modules/rename-dest-slash: New module.
51152         * MODULES.html.sh (posix_compat): Add it here.
51153
51154         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51155
51156 2006-09-15  Jim Meyering  <jim@meyering.net>
51157
51158         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51159         file.
51160
51161         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51162
51163 2006-09-15  Jim Meyering  <jim@meyering.net>
51164
51165         * lib/rename-dest-slash.c (has_trailing_slash): Use
51166         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51167         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51168         test before testing whether SRC is a directory.
51169         Suggestions from Bruno Haible.
51170
51171         Avoid a warning about an unused variable.
51172         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51173         into the #ifdef block where it's used.
51174
51175         * lib/rename-dest-slash.c: New file.
51176
51177 2006-09-14  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/allocsa.c: Include <config.h> unconditionally.
51180         * lib/asnprintf.c: Likewise.
51181         * lib/asprintf.c: Likewise.
51182         * lib/c-strcasecmp.c: Likewise.
51183         * lib/c-strcasestr.c: Likewise.
51184         * lib/c-strncasecmp.c: Likewise.
51185         * lib/c-strstr.c: Likewise.
51186         * lib/classpath.c: Likewise.
51187         * lib/clean-temp.c: Likewise.
51188         * lib/concatpath.c: Likewise.
51189         * lib/copy-file.c: Likewise.
51190         * lib/csharpcomp.c: Likewise.
51191         * lib/csharpexec.c: Likewise.
51192         * lib/execute.c: Likewise.
51193         * lib/fatal-signal.c: Likewise.
51194         * lib/findprog.c: Likewise.
51195         * lib/fwriteerror.c: Likewise.
51196         * lib/gl_array_list.c: Likewise.
51197         * lib/gl_array_oset.c: Likewise.
51198         * lib/gl_avltree_list.c: Likewise.
51199         * lib/gl_avltree_oset.c: Likewise.
51200         * lib/gl_avltreehash_list.c: Likewise.
51201         * lib/gl_carray_list.c: Likewise.
51202         * lib/gl_linked_list.c: Likewise.
51203         * lib/gl_linkedhash_list.c: Likewise.
51204         * lib/gl_list.c: Likewise.
51205         * lib/gl_oset.c: Likewise.
51206         * lib/gl_rbtree_list.c: Likewise.
51207         * lib/gl_rbtree_oset.c: Likewise.
51208         * lib/gl_rbtreehash_list.c: Likewise.
51209         * lib/imaxabs.c: Likewise.
51210         * lib/imaxdiv.c: Likewise.
51211         * lib/javacomp.c: Likewise.
51212         * lib/javaexec.c: Likewise.
51213         * lib/javaversion.c: Likewise.
51214         * lib/linebreak.c: Likewise.
51215         * lib/localcharset.c: Likewise.
51216         * lib/lock.c: Likewise.
51217         * lib/mbchar.c: Likewise.
51218         * lib/mbswidth.c: Likewise.
51219         * lib/mkdtemp.c: Likewise.
51220         * lib/pipe.c: Likewise.
51221         * lib/printf-args.c: Likewise.
51222         * lib/printf-parse.c: Likewise.
51223         * lib/progname.c: Likewise.
51224         * lib/progreloc.c: Likewise.
51225         * lib/readlink.c: Likewise.
51226         * lib/sh-quote.c: Likewise.
51227         * lib/stpcpy.c: Likewise.
51228         * lib/stpncpy.c: Likewise.
51229         * lib/strcasecmp.c: Likewise.
51230         * lib/strcasestr.c: Likewise.
51231         * lib/strcspn.c: Likewise.
51232         * lib/striconv.c: Likewise.
51233         * lib/strncasecmp.c: Likewise.
51234         * lib/strnlen1.c: Likewise.
51235         * lib/strstr.c: Likewise.
51236         * lib/strtok_r.c: Likewise.
51237         * lib/tls.c: Likewise.
51238         * lib/tmpdir.c: Likewise.
51239         * lib/unicodeio.c: Likewise.
51240         * lib/unsetenv.c: Likewise.
51241         * lib/vasnprintf.c: Likewise.
51242         * lib/vasprintf.c: Likewise.
51243         * lib/wait-process.c: Likewise.
51244         * lib/xallocsa.c: Likewise.
51245         * lib/xsetenv.c: Likewise.
51246         * lib/xstriconv.c: Likewise.
51247
51248 2006-09-13  Simon Josefsson  <jas@extundo.com>
51249
51250         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51251         that internally, suggested by Ralf Wildenhues
51252         <Ralf.Wildenhues@gmx.de>.
51253
51254 2006-09-13  Simon Josefsson  <jas@extundo.com>
51255
51256         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51257         @LIBOBJS@.
51258         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51259
51260 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51261
51262         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51263         longer worry about uses that don't define HAVE_CONFIG_H.
51264         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51265         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51266         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51267         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51268         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51269         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51270         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51271         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51272         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51273         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51274         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51275         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51276         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51277         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51278         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51279         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51280         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51281         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51282         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51283         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51284         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51285         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51286         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51287         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51288         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51289         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51290         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51291         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51292         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51293         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51294         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51295         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51296         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51297         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51298         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51299         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51300         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51301         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51302         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51303         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51304         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51305         Likewise.
51306
51307 2006-09-13  Eric Blake  <ebb9@byu.net>
51308
51309         * lib/getopt.c: Fix typo in last commit.
51310
51311 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51312
51313         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51314         dgettext.
51315
51316 2006-09-12  Jim Meyering  <jim@meyering.net>
51317
51318         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51319         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51320         Reported by Nelson H. F. Beebe.
51321
51322 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51323
51324         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51325         program_invocation_name and program_invocation_short_name are
51326         initialized.
51327         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51328         and program_invocation_short_name to argp.h, so they are visible
51329         to user programs.
51330         * lib/argp.h: Likewise
51331
51332 2006-09-10  Bruno Haible  <bruno@clisp.org>
51333
51334         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51335         m4/inttypes_h.m4, m4/uintmax_t.m4.
51336
51337 2006-09-10  Bruno Haible  <bruno@clisp.org>
51338
51339         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51340         gl_AC_TYPE_UINTMAX_T.
51341
51342 2006-09-10  Bruno Haible  <bruno@clisp.org>
51343
51344         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51345
51346 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51347
51348         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51349         convention.  Text proposed by Bruno Haible.
51350         (struct argp_option): Document the use of N_() wrappers.
51351
51352         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51353         '\v', and translate the two parts separately, instead of feeding
51354         the whole string to gettext.  This allows to exclude
51355         '\v' from the strings visible to the translator by writing doc
51356         strings as N_("..") "\v" N_("..").
51357
51358 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51359
51360         * config/srclist.txt: Undo latest change; the bug was fixed.
51361
51362 2006-09-09  Bruno Haible  <bruno@clisp.org>
51363
51364         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51365         assignments if building a library without libtool.
51366         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51367         in func_emit_lib_Makefile_am.
51368         (func_import): When building a static library libfoo.a, arrange to
51369         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51370         (func_create_testdir): Likewise.
51371         * modules/gc (configure.ac, Makefile.am): If building statically,
51372         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51373         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51374         * modules/striconv (configure.ac, Makefile.am): Likewise.
51375         Based on a suggestion by Ralf Wildenhues.
51376
51377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51378
51379         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51380         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51381         Also:
51382
51383         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51384         Add year_2050_test to catch glibc bug 2821
51385         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51386
51387         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51388         Prefer #ifdef to #if.
51389
51390         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51391         Return from 'main' instead of calling 'exit'.
51392
51393 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51394
51395         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51396         returned the maximum time_t value rather than (time_t) -1.
51397         Problem originally reported by William Bardwell
51398         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51399
51400         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51401         Moved to here ...
51402         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51403         ... from here.
51404
51405 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51406
51407         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51408         2821 is fixed.
51409
51410 2006-09-08  Jim Meyering  <jim@meyering.net>
51411
51412         Don't make generated files read-only.  That would bother too many
51413         people.  However, do retain the ability to work when targets are
51414         read-only: remove the destination and temporary files before writing
51415         them (when generated via sed or echo), or by using the -f option for
51416         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51417         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51418         * modules/byteswap, modules/configmake, modules/fcntl:
51419         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51420         * modules/localcharset, modules/netinet_in, modules/poll:
51421         * modules/stdbool, modules/stdint, modules/sys_select:
51422         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51423
51424 2006-09-08  Jim Meyering  <jim@meyering.net>
51425
51426         Avoid new build failure on FreeBSD 6.0.
51427         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51428         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51429         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51430
51431 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51432
51433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51434
51435 2006-09-07  Jim Meyering  <jim@meyering.net>
51436
51437         Fix global typo in last change: use chmod u-w, not chmod u-x.
51438         Spotted by Paul Eggert and Bruce Korb.
51439         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51440         * modules/byteswap, modules/configmake, modules/fcntl:
51441         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51442         * modules/localcharset, modules/netinet_in, modules/poll:
51443         * modules/stdbool, modules/stdint, modules/sys_select:
51444         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51445
51446 2006-09-06  Jim Meyering  <jim@meyering.net>
51447
51448         Make generated files be read-only.
51449         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51450         Ensure that each generated file is now read-only.
51451         * modules/argz: Likewise.
51452         * modules/arpa_inet: Likewise.
51453         * modules/byteswap: Likewise.
51454         * modules/configmake: Likewise.
51455         * modules/fcntl: Likewise.
51456         * modules/fnmatch: Likewise.
51457         * modules/getopt: Likewise.
51458         * modules/glob: Likewise.
51459         * modules/inttypes: Likewise.
51460         * modules/netinet_in: Likewise.
51461         * modules/poll: Likewise.
51462         * modules/stdbool: Likewise.
51463         * modules/stdint: Likewise.
51464         * modules/sys_select: Likewise.
51465         * modules/sys_socket: Likewise.
51466         * modules/sys_stat: Likewise.
51467         * modules/sysexits: Likewise.
51468         * modules/localcharset: Same as above, but continue using temporary
51469         file named "t-$@" (why different?) rather than the "$@-t" used
51470         everywhere else.
51471
51472         * modules/sysexits (Makefile.am): Replace literal occurrences
51473         of "sysexit.h" more readable, and more consistent, "$@".
51474
51475 2006-09-06  Bruno Haible  <bruno@clisp.org>
51476
51477         * modules/striconv: New file.
51478         * modules/xstriconv: New file.
51479         * MODULES.html.sh (Internationalization functions): Add striconv,
51480         xstriconv.
51481
51482 2006-09-06  Bruno Haible  <bruno@clisp.org>
51483
51484         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51485         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51486         not using libtool correctly.
51487
51488 2006-09-06  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/striconv.h: New file.
51491         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51492         iconvstring.c.
51493         * lib/xstriconv.h: New file.
51494         * lib/xstriconv.c: New file.
51495
51496 2006-09-06  Bruno Haible  <bruno@clisp.org>
51497
51498         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51499         lib_..._LDFLAGS.
51500
51501 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51502
51503         * lib/argz_.h: Sync from Libtool.
51504
51505         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51506                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51507
51508         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51509
51510 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51511
51512         * modules/trim: New file.
51513
51514 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51515
51516         * lib/trim.h: New file.
51517         * lib/trim.c: New file.
51518
51519 2006-09-05  Bruno Haible  <bruno@clisp.org>
51520
51521         * MODULES.html.sh (String handling): Add trim.
51522
51523 2006-09-04  Karl Berry  <karl@gnu.org>
51524
51525         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51526         until next release.
51527
51528 2006-09-03  Bruno Haible  <bruno@clisp.org>
51529
51530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51531         correctly.
51532
51533 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51534
51535         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51536         not gl_GETLOADAVG.  Omit unneeded semicolons.
51537         Problems reported by Ralf Wildenhues in
51538         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51539         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51540         at the end, which is the usual gnulib style.
51541
51542         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51543         of doing all the work ourselves.
51544         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51545         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51546
51547 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51548
51549         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51550         Problem reported by Ralf Wildenhues in
51551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51552
51553         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51554         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51555
51556 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51559         yesterday's patch by changing test -n to test -z.
51560
51561 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51562
51563         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51564         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51565         the former is now obsolescent.
51566
51567         * modules/chdir-long (Depends-on): Add fcntl.
51568
51569 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51570
51571         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51572         obsolescent, and programs should use gnulib instead.
51573         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51574         but with prefixes changed.
51575
51576 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51577
51578         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51579         or stdbool.h, because they might not exist while configuring.
51580
51581         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51582         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51583         does that for us.
51584         (O_DIRECTORY): Remove.
51585
51586 2006-08-31  Eric Blake  <ebb9@byu.net>
51587
51588         * gnulib-tool: Don't let emacs change spaces to TAB.
51589
51590 2006-08-31  Bruno Haible  <bruno@clisp.org>
51591
51592         * gnulib-tool: When calling func_import more than once, do it in a
51593         subshell.
51594         Reported by Eric Blake <ebb9@byu.net>.
51595
51596 2006-08-31  Bruno Haible  <bruno@clisp.org>
51597
51598         * gnulib-tool (nl): Remove variable.
51599         (sed_transform_lib_file): Use more robust test for config-h module.
51600         (func_import): Fix typo in 2006-08-25 patch.
51601
51602 2006-08-31  Bruno Haible  <bruno@clisp.org>
51603
51604         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51605         specified, augment Makefile.am variables instead of assigning them.
51606
51607 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51608
51609         Work around a bug in both the Linux and SunOS 64-bit kernels:
51610         nanosleep mishandles sleeps for longer than 2**31 seconds.
51611         Problem reported by Frank v Waveren in
51612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51614         Check for nanosleep bug.
51615         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51616
51617 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51618
51619         Work around a bug in both the Linux and SunOS 64-bit kernels:
51620         nanosleep mishandles sleeps for longer than 2**31 seconds.
51621         Problem reported by Frank v Waveren in
51622         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51623         * lib/nanosleep.c (BILLION): New constant.
51624         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51625         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51626         implementation.
51627
51628 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51629
51630         * modules/nanosleep (Depends-on): Add gettime.
51631
51632 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51633         and Simon Josefsson  <jas@extundo.com>
51634         and Oskar Liljeblad  <oskar@osk.mine.nu>
51635
51636         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51637         * gnulib-tool (func_import): New license type 'unmodifiable license
51638         text'.
51639         * modules/fdl: Use it.  Longer description.
51640         * module/gpl, module/lgpl: New files.
51641
51642 2006-08-30  Jim Meyering  <jim@meyering.net>
51643
51644         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51645         shadowing the parameter.
51646
51647 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51648
51649         Sync from Libtool:
51650
51651         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51652
51653         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51654         sharing with gnulib.  Report by Eric Blake.
51655
51656 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51657
51658         * modules/isapipe: New file.
51659         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51660
51661 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51662
51663         * modules/configmake (Makefile.am): Add a comment, and omit
51664         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51665         by Bruno Haible.
51666
51667 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51668
51669         * m4/isapipe.m4: New file.
51670
51671 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51672
51673         * lib/isapipe.c, lib/isapipe.h: New files.
51674
51675 2006-08-29  Jim Meyering  <jim@meyering.net>
51676
51677         * modules/configmake (Makefile.am): Make configmake.h depend on
51678         Makefile.  Otherwise, a stale configmake.h could hang around.
51679
51680 2006-08-29  Eric Blake  <ebb9@byu.net>
51681
51682         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51683         resolution of upstream bug 3044.
51684
51685 2006-08-29  Bruno Haible  <bruno@clisp.org>
51686
51687         * modules/localcharset (Depends-on): Add configmake.
51688         (Makefile.am): Remove setting of LIBDIR through DEFS.
51689
51690 2006-08-29  Bruno Haible  <bruno@clisp.org>
51691
51692         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51693         defined.
51694
51695 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * modules/fcntl: New file.
51698         * modules/chdir-safer (Depends-on): Add fcntl.
51699         * modules/fts: Likewise.
51700         * modules/mkdir-p: Likewise.
51701
51702         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51703         This undoes the most recent change, since we're now addressing the
51704         problem in a different way.
51705
51706         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51707         into output, since the output might be called Makefile.am even
51708         if $makefile_name is something different.
51709         (func_import): Use $makefile_am rather than
51710         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51711         empty.
51712
51713         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51714
51715 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51718         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51719         recent change to stdint.m4, since we're now addressing the problem in a
51720         different way.
51721
51722 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         * m4/fcntl_h.m4: New file.
51725
51726 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51727
51728         * lib/fcntl_.h: New file.
51729         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51730         the fcntl module.
51731         * lib/dirchownmod.c: Likewise.
51732         * lib/fts.c: Likewise.
51733
51734         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51735         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51736         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51737         just before including <inttypes.h>, to avoid circular inclusion.
51738
51739 2006-08-28  Jim Meyering  <jim@meyering.net>
51740
51741         * doc/visibility.texi: Actually read and correct the grammar of the
51742         sentence affected by yesterday's change.
51743
51744 2006-08-28  Eric Blake  <ebb9@byu.net>
51745
51746         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51747         needs wrapper.
51748
51749 2006-08-28  Eric Blake  <ebb9@byu.net>
51750
51751         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51752
51753 2006-08-28  Eric Blake  <ebb9@byu.net>
51754
51755         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51756
51757 2006-08-28  Bruno Haible  <bruno@clisp.org>
51758
51759         * modules/c-strstr: New file, from GNU gettext.
51760         * MODULES.html.sh (String handling): Add c-strstr.
51761
51762 2006-08-28  Bruno Haible  <bruno@clisp.org>
51763
51764         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51765         macros.
51766         Reported by Eric Blake.
51767
51768 2006-08-28  Bruno Haible  <bruno@clisp.org>
51769
51770         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51771         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51772         * lib/vasprintf.c: Include errno.h, limits.h.
51773         (EOVERFLOW): New fallback definition.
51774         (vasprintf): Test here whether the string length is > INT_MAX.
51775         * lib/vsnprintf.c: Include errno.h, limits.h.
51776         (EOVERFLOW): New fallback definition.
51777         (vsnprintf): Fix bug when generated string was too long for the buffer.
51778         Test here whether the string length is > INT_MAX.
51779
51780 2006-08-28  Bruno Haible  <bruno@clisp.org>
51781
51782         * lib/inttypes_.h (SCNX*): Remove definitions.
51783         Reported by Eric Blake.
51784
51785 2006-08-28  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/c-strstr.h: New file, from GNU gettext.
51788         * lib/c-strstr.c: New file, from GNU gettext.
51789
51790 2006-08-28  Bruno Haible  <bruno@clisp.org>
51791
51792         * gnulib-tool: Reorder some statements.
51793
51794 2006-08-28  Bruno Haible  <bruno@clisp.org>
51795
51796         * gnulib-tool: New option --makefile-name.
51797         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51798         $makefile_name.
51799         (func_import): Write $makefile_name to the cache file, and read it from
51800         there unless explicitly specified. Use $makefile_name as file name
51801         instead of Makefile.am. Adjust the recommendations accordingly.
51802
51803 2006-08-28  Bruno Haible  <bruno@clisp.org>
51804
51805         * gnulib-tool (func_verify_module): Check against misapplying patch.
51806
51807 2006-08-28  Bruno Haible  <bruno@clisp.org>
51808
51809         * gnulib-tool (func_relativize, func_relconcat): New functions.
51810         Give an error if --local-dir is given with --update.
51811         Remove trailing slashes from $local_gnulib_dir.
51812         (func_import): Store the relativized $local_gnulib_dir in
51813         gnulib-cache.m4, and read it from there if not specified explicitly.
51814
51815 2006-08-28  Bruno Haible  <bruno@clisp.org>
51816
51817         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51818         is the current directory. Respect also $local_gnulib_dir.
51819
51820 2006-08-28  Bruno Haible  <bruno@clisp.org>
51821             Simon Josefsson  <jas@extundo.com>
51822
51823         BeOS portability.
51824         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51825
51826 2006-08-27  Jim Meyering  <jim@meyering.net>
51827
51828         * doc/visibility.texi: Remove duplicate word: "pointer".
51829
51830 2006-08-26  Bruno Haible  <bruno@clisp.org>
51831
51832         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51833         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51834         (Makefile.am): Create inttypes.h from inttypes_.h.
51835         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51836
51837         * modules/imaxabs: New file.
51838
51839         * modules/imaxdiv: New file.
51840
51841 2006-08-26  Bruno Haible  <bruno@clisp.org>
51842
51843         * m4/inttypes.m4: New file.
51844         * m4/_inttypes_h.m4: Remove file.
51845         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51846         PRI_MACROS_BROKEN.
51847         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51848
51849         * m4/imaxabs.m4: New file.
51850
51851         * m4/imaxdiv.m4: New file.
51852
51853 2006-08-26  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/inttypes_.h: New file.
51856         * lib/inttypes.h: Remove file.
51857         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51858
51859         * lib/imaxabs.c: New file.
51860
51861         * lib/imaxdiv.c: New file.
51862
51863 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51864
51865         New config-h module, so that "make" output needn't be cluttered
51866         by -DHAVE_CONFIG_H.
51867         * MODULES.html.sh (Support for building libraries and executables):
51868         Add config-h.
51869         * modules/config-h: New file.
51870         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51871         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51872         the config-h module is used.
51873
51874         New configmake module, so that "make" output needn't be cluttered
51875         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51876         * MODULES.html.sh (Support for building libraries and executables):
51877         Add configmake.
51878         * modules/configmake: New file.
51879
51880 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51881
51882         * m4/config-h.m4: New file.
51883
51884 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51885
51886         * config/srclist.txt: Add elisp-comp.
51887
51888 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         * MODULES.html.sh (Support for building libraries and executables):
51891         Add elisp-comp.
51892         * build-aux/elisp-comp: New file.
51893         * modules/elisp-comp: New file.
51894
51895 2006-08-24  Bruno Haible  <bruno@clisp.org>
51896
51897         * gnulib-tool (func_create_testdir): Use non-default values of
51898         sourcebase and m4base.
51899
51900 2006-08-24  Bruno Haible  <bruno@clisp.org>
51901
51902         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51903         HTML structure.
51904
51905 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51906
51907         * modules/openat (Depends-on): Add lchown.
51908
51909 2006-08-23  Bruno Haible  <bruno@clisp.org>
51910
51911         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51912         of gl_LOCK_EARLY instead of gl_LOCK.
51913
51914 2006-08-23  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51917         on OSF/1 to no.
51918         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51919
51920 2006-08-23  Bruno Haible  <bruno@clisp.org>
51921
51922         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51923         as unusable.
51924
51925         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51926         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51927         (gl_LOCK): New macro.
51928
51929 2006-08-22  Simon Josefsson  <jas@extundo.com>
51930
51931         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51932         to md5 module.
51933
51934 2006-08-22  Simon Josefsson  <jas@extundo.com>
51935
51936         * MODULES.html.sh: Add "Support for maintaining and release
51937         projects".
51938
51939         * build-aux/gnupload: New file, from coreutils.
51940
51941 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51942
51943         Avoid the need for AC_LIBSOURCES in m4 macros.
51944         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51945         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51946         * modules/check-version (EXTRA_DIST): Add check-version.h.
51947         * modules/crc (EXTRA_DIST): Add crc.h.
51948         * modules/des (EXTRA_DIST): Add des.h.
51949         * modules/gc (EXTRA_DIST): Add gc.h.
51950         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51951         * modules/getline (EXTRA_DIST): Add getline.h.
51952         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51953         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51954         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51955         * modules/md2 (EXTRA_DIST): Add md2.h.
51956         * modules/md4 (EXTRA_DIST): Add md4.h.
51957         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51958         * modules/read-file (EXTRA_DIST): Add read-file.h.
51959         * modules/readline (EXTRA_DIST): Add readline.h.
51960         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51961         rijndael-api-fst.h.
51962
51963 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51964
51965         * m4/rijndael.m4 (gl_ARCFOUR):
51966         * m4/arctwo.m4 (gl_ARCTWO):
51967         * m4/check-version.m4 (gl_CHECK_VERSION):
51968         * m4/crc.m4 (gl_CRC):
51969         * m4/des.m4 (gl_DES):
51970         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51971         * m4/gc.m4 (gl_GC):
51972         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51973         * m4/getline.m4 (gl_FUNC_GETLINE):
51974         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51975         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51976         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51977         * m4/md2.m4 (gl_MD2):
51978         * m4/md4.m4 (gl_MD4):
51979         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51980         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51981         * m4/readline.m4 (gl_FUNC_READLINE):
51982         * m4/rijndael.m4 (gl_RIJNDAEL):
51983         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51984         to get the necessary .h files and whatnot.
51985
51986 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51987
51988         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51989         gnulib rather than the other way around.
51990         * config/srclistvars.sh (COREUTILS): Remove.
51991
51992 2006-08-22  Jim Meyering  <jim@meyering.net>
51993
51994         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51995
51996         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51997
51998 2006-08-22  Eric Blake  <ebb9@byu.net>
51999
52000         * modules/regexprops-generic: New file.
52001         * MODULES.html.sh (Support for building documentation): List it.
52002
52003 2006-08-22  Eric Blake  <ebb9@byu.net>
52004
52005         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
52006         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
52008         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
52009
52010 2006-08-22  Bruno Haible  <bruno@clisp.org>
52011
52012         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
52013         and lib_LTLIBRARIES like the other lib_* variables.
52014
52015 2006-08-22  Bruno Haible  <bruno@clisp.org>
52016
52017         * build-aux/x-to-1.in: New file, from GNU gettext.
52018
52019 2006-08-22  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
52022         <utmpx.h> exists.
52023
52024 2006-08-22  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
52027         <utmpx.h> exists.
52028
52029 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52030
52031         BeOS portability.
52032         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
52033         exist.
52034         Problem reported by Bruno Haible.
52035
52036 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52037
52038         Avoid the need for AC_LIBSOURCES in m4 macros.
52039         * modules/acl (EXTRA_DIST): Add acl.h.
52040         * modules/argmatch (Files): Add m4/argmatch.m4.
52041         (configure.ac): Add gl_ARGMATCH.
52042         (EXTRA_DIST): Renamed from lib_SOURCES, for
52043         consistency with the other modules.  Remove argmatch.c.
52044         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
52045         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
52046         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
52047         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
52048         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
52049         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
52050         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
52051         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
52052         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
52053         * modules/closeout (EXTRA_DIST): Add closeout.h.
52054         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
52055         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
52056         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
52057         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
52058         dirname.h; remove basename.c and stripslash.c.
52059         * modules/exclude (EXTRA_DIST): Add exclude.h.
52060         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
52061         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
52062         * modules/file-type (EXTRA_DIST): Add file-type.h.
52063         * modules/filemode (EXTRA_DIST): Add filemode.h.
52064         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
52065         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52066         * modules/fpending (EXTRA_DIST): Add __fpending.h.
52067         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
52068         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
52069         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
52070         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
52071         * modules/getdate (EXTRA_DIST): Add getdate.c.
52072         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
52073         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
52074         * modules/getpass (EXTRA_DIST): Add getpass.h.
52075         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
52076         * modules/group-member (EXTRA_DIST): Add group-member.h.
52077         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
52078         * modules/hash (EXTRA_DIST): Add hash.h.
52079         * modules/human (EXTRA_DIST): Add human.h.
52080         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
52081         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
52082         * modules/lchown (EXTRA_DIST): Add lchown.h.
52083         * modules/long-options (EXTRA_DIST): Add long-options.h.
52084         * modules/lstat (EXTRA_DIST): Add lstat.h.
52085         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
52086         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
52087         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
52088         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
52089         * modules/memxor (EXTRA_DIST): Add memxor.h.
52090         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
52091         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
52092         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
52093         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
52094         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
52095         * modules/physmem (EXTRA_DIST): Add physmem.h.
52096         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
52097         * modules/posixver (EXTRA_DIST): Add posixver.h.
52098         * modules/quote (EXTRA_DIST): Add quote.h.
52099         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
52100         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
52101         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
52102         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
52103         regex_internal.h regexec.c.
52104         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
52105         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
52106         * modules/same (EXTRA_DIST): Add same.h.
52107         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
52108         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
52109         * modules/savedir (EXTRA_DIST): Add savedir.h.
52110         * modules/sha1 (EXTRA_DIST): Add sha1.h.
52111         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
52112         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
52113         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
52114         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
52115         * modules/strdup (EXTRA_DIST): Add strdup.h.
52116         * modules/strftime (EXTRA_DIST): Add strftime.h.
52117         * modules/strndup (EXTRA_DIST): Add strndup.h.
52118         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52119         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52120         * modules/time_r (EXTRA_DIST): Add time_r.h.
52121         * modules/timespec (EXTRA_DIST): Add timespec.h.
52122         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52123         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52124         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52125         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52126         * modules/userspec (EXTRA_DIST): Add userspec.h.
52127         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52128         * modules/utimens (EXTRA_DIST): Add utimens.h.
52129         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52130         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52131         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52132         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52133         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52134         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52135         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52136         * modules/yesno (EXTRA_DIST): Add yesno.h.
52137
52138 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52139
52140         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52141
52142         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52143         * m4/dev-ino.m4, same-inode.m4: Remove.
52144
52145         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52146         * m4/acl.m4 (AC_FUNC_ACL):
52147         * m4/backupfile.m4 (gl_BACKUPFILE):
52148         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52149         * m4/canon-host.m4 (gl_CANON_HOST):
52150         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52151         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52152         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52153         * m4/cloexec.m4 (gl_CLOEXEC):
52154         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52155         * m4/closeout.m4 (gl_CLOSEOUT):
52156         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52157         * m4/dirname.m4 (gl_DIRNAME):
52158         * m4/exclude.m4 (gl_EXCLUDE):
52159         * m4/exitfail.m4 (gl_EXITFAIL):
52160         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52161         * m4/file-type.m4 (gl_FILE_TYPE):
52162         * m4/filemode.m4 (gl_FILEMODE):
52163         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52164         * m4/fpending.m4 (gl_FUNC_FPENDING):
52165         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52166         * m4/fts.m4 (gl_FUNC_FTS):
52167         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52168         * m4/getdate.m4 (gl_GETDATE):
52169         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52170         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52171         * m4/getpass.m4 (gl_FUNC_GETPASS):
52172         * m4/gettime.m4 (gl_GETTIME):
52173         * m4/getugroups.m4 (gl_GETUGROUPS):
52174         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52175         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52176         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52177         * m4/hash.m4 (gl_HASH):
52178         * m4/idcache.m4 (gl_IDCACHE):
52179         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52180         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52181         * m4/long-options.m4 (gl_LONG_OPTIONS):
52182         * m4/lstat.m4 (gl_FUNC_LSTAT):
52183         * m4/md5.m4 (gl_MD5):
52184         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52185         * m4/memcoll.m4 (gl_MEMCOLL):
52186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52187         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52188         * m4/memxor.m4 (gl_MEMXOR):
52189         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52190         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52191         * m4/modechange.m4 (gl_MODECHANGE):
52192         * m4/mountlist.m4 (gl_MOUNTLIST):
52193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52194         * m4/openat.m4 (gl_FUNC_OPENAT):
52195         * m4/pathmax.m4 (gl_PATHMAX):
52196         * m4/physmem.m4 (gl_PHYSMEM):
52197         * m4/posixtm.m4 (gl_POSIXTM):
52198         * m4/posixver.m4 (gl_POSIXVER):
52199         * m4/quote.m4 (gl_QUOTE):
52200         * m4/quotearg.m4 (gl_QUOTEARG):
52201         * m4/readtokens.m4 (gl_READTOKENS):
52202         * m4/readutmp.m4 (gl_READUTMP):
52203         * m4/regex.m4 (gl_REGEX):
52204         * m4/safe-read.m4 (gl_SAFE_READ):
52205         * m4/safe-write.m4 (gl_SAFE_WRITE):
52206         * m4/same.m4 (gl_SAME):
52207         * m4/save-cwd.m4 (gl_SAVE_CWD):
52208         * m4/savedir.m4 (gl_SAVEDIR):
52209         * m4/settime.m4 (gl_SETTIME):
52210         * m4/sha1.m4 (gl_SHA1):
52211         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52212         * m4/stat-macros.m4 (gl_STAT_MACROS):
52213         * m4/stat-time.m4 (gl_STAT_TIME):
52214         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52215         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52216         * m4/strdup.m4 (gl_FUNC_STRDUP):
52217         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52218         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52219         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52220         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52221         * m4/time_r.m4 (gl_TIME_R):
52222         * m4/timespec.m4 (gl_TIMESPEC):
52223         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52224         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52225         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52226         * m4/userspec.m4 (gl_USERSPEC):
52227         * m4/utimecmp.m4 (gl_UTIMECMP):
52228         * m4/utimens.m4 (gl_UTIMENS):
52229         * m4/xalloc.m4 (gl_XALLOC):
52230         * m4/xgetcwd.m4 (gl_XGETCWD):
52231         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52232         * m4/xreadlink.m4 (gl_XREADLINK):
52233         * m4/xstrtod.m4 (gl_XSTRTOD):
52234         * m4/yesno.m4 (gl_YESNO):
52235         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52236         to get the necessary .h files and whatnot.
52237
52238 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52239             Bruno Haible  <bruno@clisp.org>
52240
52241         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52242         /bin/sh understanding of '!' conditional negation.
52243
52244 2006-08-21  Jim Meyering  <jim@meyering.net>
52245
52246         * modules/openat (Depends-on): Really alphabetize.
52247
52248         * modules/acl (Depends-on): Add error and quote.
52249
52250         * check-module (find_included_lib_files): Add at-func.c to the
52251         ok-to-include-more-than-once white list.
52252
52253         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52254
52255 2006-08-21  Bruno Haible  <bruno@clisp.org>
52256
52257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52258         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52259         Reported by Martin Lambers <marlam@marlam.de>.
52260
52261 2006-08-21  Bruno Haible  <bruno@clisp.org>
52262
52263         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52264         specify an installation location, don't emit a noinst_LIBRARIES or
52265         noinst_LTLIBRARIES assignment.
52266
52267 2006-08-21  Bruno Haible  <bruno@clisp.org>
52268
52269         BeOS portability.
52270         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52271         BeOS has mbrtowc() but no <wctype.h>.
52272
52273 2006-08-21  Bruno Haible  <bruno@clisp.org>
52274
52275         BeOS portability.
52276         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52277         exist.
52278
52279 2006-08-21  Bruno Haible  <bruno@clisp.org>
52280
52281         BeOS portability.
52282         * lib/mbchar.h: Include <wctype.h> only if it exists.
52283
52284 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52285
52286         Remove files that are no longer needed by their respective modules.
52287         * m4/obstack.m4: Remove.
52288         * m4/strerror_r.m4: Remove.
52289         * m4/uint32_t.m4: Remove.
52290         * m4/uintptr_t.m4: Remove.
52291         * m4/ullong_max.m4: Remove.
52292         * m4/xstrtoimax.m4: Remove.
52293         * m4/xstrtoumax.m4: Remove.
52294
52295         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52296         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52297         dependencies now capture this.
52298
52299         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52300         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52301         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52302         * m4/human.m4 (gl_HUMAN): Likewise.
52303         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52304         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52305
52306         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52307
52308         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52309         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52310         stdint.
52311         * m4/human.m4 (gl_HUMAN): Likewise.
52312         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52313         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52314         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52315         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52316         * m4/xstrtol (gl_XSTRTOL): Likewise.
52317
52318         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52319         AC_TYPE_LONG_LONG_INT.
52320         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52321         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52322         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52323         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52324
52325         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52326         on stdbool.
52327
52328         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52329         (gl_PREREQ_XSTRTOUL): Remove.
52330
52331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52332
52333         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52334         mode.
52335
52336 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         Add and change modules to make it easier for coreutils to use
52339         gnulib-tool.
52340         * modules/backupfile (Files): Remove m4/d-ino.m4.
52341         (Depends-on): Add d-ino.
52342         * modules/cycle-check (Depends-on): Add stdint.
52343         (lib_SOURCES): Add cycle-check.h.
52344         * modules/d-ino: New module.
52345         * modules/d-type: New module.
52346         * modules/error (Files): Remove m4/strerror_r.m4.
52347         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52348         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52349         m4/inttypes_h.m4, m4/uintmax_t.m4.
52350         (Depends-on): Add stdint.
52351         (lib_SOURCES): Add fsusage.h.
52352         * modules/getcwd (Files): Remove d-ino.m4.
52353         (Depends-on): Add d-ino.
52354         * modules/getndelim2 (Depends-on): Add stdint.
52355         * modules/glob (Files): Remove m4/d-type.m4.
52356         (Depends-on): Add d-type.
52357         * modules/host-os: New module.
52358         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52359         m4/inttypes_h.m4, m4/uintmax_t.m4.
52360         * Depends-on: Add stdint.
52361         (lib_SOURCES): Add human.h.
52362         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52363         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52364         m4/uintmax_t.m4, m4/ulonglong.m4.
52365         (Depends-on): Add stdint.
52366         (EXTRA_DIST): Add inttostr.h.
52367         * modules/lchmod: New module.
52368         * modules/link-follow: New module.
52369         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52370         (Depends-on): Add lchmod.
52371         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52372         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52373         (Depends-on): Add stdint.
52374         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52375         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52376         (Depends-on): Add stdint.
52377         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52378         * modules/perl: New module.
52379         * modules/regex (Depends-on): Add stdint.
52380         * modules/rmdir-errno: New module.
52381         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52382         m4/intmax_t.m4.
52383         (Depends-on): Add stdint.
52384         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52385         m4/uintmax_t.m4.
52386         (Depends-on): Add stdint.
52387         * modules/unlink-busy: New module.
52388         * modules/utimecmp (Depends-on): Add stdint.
52389         * modules/uptime: New module.
52390         * modules/winsz-ioctl: New module.
52391         * modules/winsz-termios: New module.
52392         * modules/xnanosleep (Depends-on): Add nanosleep.
52393         * modules/ullong_max: Remove.
52394         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52395         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52396         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52397         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52398         (Depends-on): Add inttypes.
52399         (lib_SOURCES): Add xstrtol.h.
52400         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52401         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52402         * MODULES.html.sh: Move 'assert' into the assert section.
52403         Move 'dummy' into the linking section.
52404         Remove ullong_max.
52405         Add section for compatibility checks for POSIX:2001 functions,
52406         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52407         winsz-ioctl, and winsz-termios into it.
52408         Add lchmod.
52409         Add top-level Misc section and put host-os, perl, and uptime
52410         into it.
52411
52412 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52413
52414         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52415         now assume the stdint module.  Do not include inttypes.h.
52416         * lib/fsusage.h: Likewise.
52417         * lib/getndelim2.c: Likewise.
52418         * lib/human.h: Likewise.
52419         * lib/inttostr.h: Likewise.
52420         * lib/obstack.c: Likewise.
52421         * lib/regex_internal.h: Likewise.
52422         * lib/tempname.c: Likewise.
52423         * lib/utimecmp.c: Likewise.
52424         * lib/xstrtol.h: Likewise.
52425
52426         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52427
52428         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52429         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52430         * lib/xtime.h: Likewise.
52431
52432 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52433
52434         * modules/openat (Files): Add lib/fchmodat.c.
52435         Fixes problem reported by Jay Youngman.
52436
52437 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52438
52439         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52440         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52441
52442 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52443             Bruno Haible  <bruno@clisp.org>
52444
52445         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52446         and is a script that invokes bison. Tighten the code. Add comments.
52447
52448 2006-08-18  Jim Meyering  <jim@meyering.net>
52449
52450         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52451         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52452         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52453         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52454
52455 2006-08-18  Bruno Haible  <bruno@clisp.org>
52456
52457         * modules/bison-i18n: New file.
52458         * MODULES.html.sh (Internationalization functions): Add it.
52459
52460 2006-08-18  Bruno Haible  <bruno@clisp.org>
52461
52462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52463         sys/statvfs.h. When getmntinfo was found, check its declaration and
52464         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52465
52466 2006-08-18  Bruno Haible  <bruno@clisp.org>
52467
52468         * m4/bison-i18n.m4: New file, from bison.
52469
52470 2006-08-18  Bruno Haible  <bruno@clisp.org>
52471
52472         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52473         (ME_DUMMY): Treat "kernfs" as a dummy.
52474         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52475
52476 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52477
52478         Update from coreutils.
52479
52480         2006-08-15  Jim Meyering  <jim@meyering.net>
52481
52482         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52483
52484         2006-01-17  Jim Meyering  <jim@meyering.net>
52485
52486         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52487
52488         2006-01-11  Jim Meyering  <jim@meyering.net>
52489
52490         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52491         Check for the lchmod function.
52492
52493 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52494
52495         Update from coreutils.
52496
52497         * lib/__fpending.h: Add copyright notice.
52498         * lib/fprintftime.h: Likewise.
52499         * lib/savedir.c: Use (C) in copyright notice.
52500         * lib/savedir.h: Likewise.
52501
52502         2006-08-15  Jim Meyering  <jim@meyering.net>
52503
52504         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52505         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52506         in support of the EXPECTED_ERRNO macro.
52507         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52508         definitions.  Instead, define the appropriate symbols and include
52509         "at-func.c".
52510         * lib/mkdirat.c (mkdirat): Likewise.
52511         * lib/fchmodat.c (fchmodat): Likewise.
52512         (ENOSYS): Remove definition.
52513         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52514         it.  Don't include "unistd--.h" -- it wasn't ever used.
52515
52516         2006-01-17  Jim Meyering  <jim@meyering.net>
52517
52518         Rewrite fts.c not to change the current working directory,
52519         by using openat, fstatat, fdopendir, etc..
52520
52521         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52522         (HAVE_OPENAT_SUPPORT): Define.
52523         [_LIBC] (fchdir): Don't undef or define; no longer used.
52524         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52525         Now, this `function' always succeeds, and consumes its file descriptor
52526         parameter -- so callers must not close such FDs.  Update callers.
52527         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52528         (diropen): Add parameter, SP.  Adjust all callers.
52529         Implement using diropen_fd, rather than open.
52530         (fts_open): Initialize new member, fts_cwd_fd.
52531         Remove fts_rft-setting code.
52532         (fts_close): Close fts_cwd_fd, if necessary.
52533         (__opendir2): Define in terms of opendir or opendirat,
52534         depending on whether the FST_NOCHDIR flag is set.
52535         (fts_build): Since fts_safe_changedir consumes its FD, and since
52536         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52537         and close the dup'd file descriptor upon failure.
52538         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52539         (fts_safe_changedir): Tweak semantics to reflect that this function
52540         now calls cwd_advance_fd and hence consumes its FD argument.
52541         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52542         [struct FTS] (fts_rft): Remove now-unused member.
52543         [struct FTS] (fts_cycle.state): Improve comment.
52544
52545         * lib/openat.c (openat_needs_fchdir): New function.
52546         * lib/openat.h (openat_needs_fchdir): Declare it.
52547
52548 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52551         Problem and fix reported by Pádraig Brady in
52552         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52553
52554 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52557
52558 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52559
52560         * lib/memcoll.c (memcoll): Optimize for the common case where the
52561         arguments are bytewise equal.
52562
52563 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52564
52565         * doc/regexprops-generic.texi: Add a copyright notice.
52566
52567 2006-08-15  Bruno Haible  <bruno@clisp.org>
52568
52569         * modules/tmpdir (License): Change to LGPL.
52570
52571 2006-08-15  Bruno Haible  <bruno@clisp.org>
52572
52573         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52574         module.
52575
52576 2006-08-14  Simon Josefsson  <jas@extundo.com>
52577
52578         * config/srclist.txt: Add gnupload.
52579
52580 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         Change copyright notice from LGPL 2 to GPL 2, since that's the
52583         standard form used in the gnulib repository.
52584         * tests/test-lock.c: Likewise.
52585         * tests/test-stdint.c: Likewise.
52586         * tests/test-tls.c: Likewise.
52587
52588         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52589         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52590         Add copyright notice.
52591
52592         * check-module: Add copyright notice.  Output a copyright
52593         notice if "--version" is specified.
52594         * modules/COPYING: New file.
52595         * tests/test-getaddrinfo.c: Add copyright notice.
52596         * tests/test-verify.c: Likewise.
52597
52598 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52599
52600         Change copyright notice from LGPL 2 to GPL 2, since that's the
52601         standard form used in the gnulib repository.
52602         * lib/lock.c: LGPL -> GPL.
52603         * lib/lock.h: Likewise.
52604         * lib/strnlen1.c: Likewise.
52605         * lib/strnlen1.h: Likewise.
52606         * lib/tls.c: Likewise.
52607         * lib/tls.h: Likewise.
52608         * lib/tmpdir.c: Likewise.
52609
52610         * lib/TODO: Remove; this belongs only in coreutils.
52611
52612 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52613
52614         Add copyright notices to long-enough files that lack them, since
52615         otherwise the files aren't clearly free.  Use the same notice that
52616         getdate.texi already uses.
52617         * doc/alloca-opt.texi: Add copyright notice.
52618         * doc/alloca.texi: Likewise.
52619         * doc/ctime.texi: Likewise.
52620         * doc/functions.texi: Likewise.
52621         * doc/gcd.texi: Likewise.
52622         * doc/gnulib-tool.texi: Likewise.
52623         * doc/inet_ntoa.texi: Likewise.
52624         * doc/visibility.texi: Likewise.
52625
52626         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52627         * doc/quote.texi: Add copyright notice.
52628
52629         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52630         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52631         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52632         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52633         is now obsolete, and give a pointer to the Sun list.
52634         Add copyright notice.
52635
52636 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52637
52638         * config/srclistvars.sh: Add copyright notice.
52639
52640 2006-08-14  Eric Blake  <ebb9@byu.net>
52641
52642         Import the following change from libc:
52643
52644         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52645
52646         Upstream bug 2997.
52647         * lib/misc/error.c: Add space between program name and message if file
52648         name is missing.
52649
52650 2006-08-12  Karl Berry  <karl@gnu.org>
52651
52652         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52653         remove, these originate in gnulib now.
52654
52655 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52656
52657         * doc/Makefile (standards.info standards.html standards.dvi):
52658         Also depend on make-stds.texi.
52659
52660 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52663         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52664
52665         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52666         in wchar_t.  Problem reported by Eric Blake.
52667
52668         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52669         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52670         Also, help the compiler to keep LEN in a register.
52671
52672 2006-08-11  Eric Blake  <ebb9@byu.net>
52673
52674         * users.txt: Sort.  Add tar.
52675
52676 2006-08-11  Bruno Haible  <bruno@clisp.org>
52677
52678         * users.txt: New file.
52679
52680 2006-08-11  Bruno Haible  <bruno@clisp.org>
52681
52682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52683         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52684
52685 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52686
52687         * modules/snprintf (Depends-on): Remove minmax.
52688         (Maintainer): Add self and Bruno.
52689
52690 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52691
52692         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52693         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52694         (EOVERFLOW): Define if the system does not.
52695         Do not include "minmax.h"; it wasn't used.
52696         (snprintf): Don't assume size_t promotes to an unsigned type.
52697         Fix bug when generated string was too long for the buffer: the
52698         buffer's contents are supposed to be the initial prefix of the
52699         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52700         exceeds INT_MAX; do the check ourselves.
52701
52702         Import the following changes from libc:
52703
52704         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52705
52706         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52707         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52708         set wc to the byte which couldn't be converted.
52709         (re_string_reconstruct): Don't clear valid_raw_len before calling
52710         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52711         tip_context using re_string_context_at.
52712
52713         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52714
52715         * lib/posix/regex.h: g++ still cannot handled [restrict].
52716
52717         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52718
52719         * lib/posix/regex.h: Remove special handling for VMS.
52720
52721 2006-08-10  Jim Meyering  <jim@meyering.net>
52722
52723         * modules/same-inode: New module.
52724         * modules/dev-ino: New module.
52725         * modules/cycle-check: Depend on these modules, rather than simply
52726         including their .h files.
52727         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52728         required via m4/cycle-check.m4.
52729         * modules/same: Depend on new same-inode module, rather than
52730         including same-inode.h.
52731         * modules/chdir-safer: New file.
52732
52733         * modules/chown (Depends-on): Add stat-macros.
52734
52735 2006-08-10  Jim Meyering  <jim@meyering.net>
52736
52737         * m4/cycle-check.m4: New file.
52738         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52739         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52740
52741 2006-08-10  Eric Blake  <ebb9@byu.net>
52742
52743         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52744         in from original proposal.
52745
52746 2006-08-10  Eric Blake  <ebb9@byu.net>
52747         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52748
52749         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52750         namespace.
52751
52752 2006-08-10  Bruno Haible  <bruno@clisp.org>
52753
52754         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52755         as well.
52756
52757 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         Sync from coreutils.
52760
52761         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52762
52763         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52764         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52765
52766 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52767
52768         * modules/restrict: Remove; no longer needed now that we assume
52769         Autoconf 2.59 or later.
52770         * MODULES.html.sh: Remove 'restrict'.
52771         * modules/argp (Depends-on): Remove 'restrict'.
52772         * modules/base64 (Depends-on): Likewise.
52773         * modules/gc (Depends-on): Likewise.
52774         * modules/getaddrinfo (Depends-on): Likewise.
52775         * modules/glob (Depends-on): Likewise.
52776         * modules/inet_ntop (Depends-on): Likewise.
52777         * modules/inet_pton (Depends-on): Likewise.
52778         * modules/memxor (Depends-on): Likewise.
52779         * modules/regex (Depends-on): Likewise.
52780         * modules/strtok_r (Depends-on): Likewise.
52781         * modules/time_r (Depends-on): Likewise.
52782
52783 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52784
52785         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52786         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52787         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52788         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52789         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52790         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52791         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52792         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52793
52794         Merge from coreutils.
52795         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52796         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52797         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52798         * m4/time_r.m4 (gl_TIME_R): Likewise.
52799
52800 2006-08-09  Karl Berry  <karl@gnu.org>
52801
52802         * config/srclist.txt: no more gettext-tools, per Bruno.
52803
52804 2006-08-08  Eric Blake  <ebb9@byu.net>
52805
52806         * modules/verror: New module.
52807         * MODULES.html.sh: Document it.
52808
52809 2006-08-08  Eric Blake  <ebb9@byu.net>
52810
52811         * lib/verror.h, lib/verror.c: New files.
52812
52813 2006-08-08  Eric Blake  <ebb9@byu.net>
52814
52815         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52816         verror_at_line output complies with GNU Coding Standards even when
52817         file is NULL.
52818
52819 2006-08-07  Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52822         versions of AIX.
52823         Reported by Ralf Wildenhues.
52824
52825 2006-08-07  Bruno Haible  <bruno@clisp.org>
52826
52827         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52828         in an AC_DEFUN. Needed so that the autoconf snippets can use
52829         AC_REQUIRE.
52830
52831 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52832
52833         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52834         Initialize pkgdata_DATA.
52835         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52836         overriding it.
52837
52838 2006-08-06  Eric Blake  <ebb9@byu.net>
52839
52840         * lib/error.h: Fold in some upstream changes from glibc.
52841         * lib/error.c: Likewise.
52842
52843 2006-08-04  Bruno Haible  <bruno@clisp.org>
52844
52845         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52846         Make the mostlyclean-local rule depend on mostlyclean-generic.
52847         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52848
52849 2006-07-31  Bruno Haible  <bruno@clisp.org>
52850
52851         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52852         <stdlib.h>, <string.h>.
52853
52854 2006-07-30  Bruno Haible  <bruno@clisp.org>
52855
52856         * modules/readlink (License): Change to LGPL.
52857
52858 2006-07-30  Bruno Haible  <bruno@clisp.org>
52859
52860         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52861         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52862         set PKGDATADIR to point to it.
52863
52864 2006-07-30  Bruno Haible  <bruno@clisp.org>
52865
52866         * modules/csharpexec (configure.ac): Comment out macro invocation.
52867         * modules/javaexec (configure.ac): Likewise.
52868         * modules/javacomp-script (configure.ac): Likewise.
52869
52870         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52871
52872 2006-07-30  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52875         linked-list.
52876
52877 2006-07-30  Bruno Haible  <bruno@clisp.org>
52878
52879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52880
52881 2006-07-30  Bruno Haible  <bruno@clisp.org>
52882
52883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52884         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52885         get removed.
52886
52887 2006-07-29  Bruno Haible  <bruno@clisp.org>
52888
52889         Make it possible for gnulib-tool to work with locally modified or
52890         augmented gnulib repositories.
52891         * gnulib-tool (func_usage): Document --local-dir option.
52892         (local_gnulib_dir): New variable.
52893         Handle --local-dir option.
52894         (func_lookup_file): New function.
52895         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52896         (func_get_description, func_get_filelist, func_get_description,
52897         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52898         func_get_automake_snippet, func_get_include_directive,
52899         func_get_license, func_get_maintainer): Use func_lookup_file.
52900         (func_import, func_create_testdir): Use func_lookup_file.
52901
52902 2006-07-29  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/setenv (Depends-on): Add unistd.
52905
52906 2006-07-29  Bruno Haible  <bruno@clisp.org>
52907
52908         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52909
52910 2006-07-29  Bruno Haible  <bruno@clisp.org>
52911
52912         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52913
52914 2006-07-29  Bruno Haible  <bruno@clisp.org>
52915
52916         * gnulib-tool (import, update): If there is no Makefile.am, look at
52917         aclocal.m4, instead of bailing out.
52918
52919 2006-07-29  Bruno Haible  <bruno@clisp.org>
52920
52921         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52922         Categorize the options by when they are useful.
52923
52924 2006-07-29  Bruno Haible  <bruno@clisp.org>
52925
52926         * gnulib-tool (func_usage): Document option --no-libtool.
52927         Handle option --no-libtool.
52928         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52929         for changed semantics of $libtool variable.
52930         (func_import): Likewise. If libtool is not used, show this through
52931         an option --no-libtool.
52932         (func_create_testdir): Update.
52933
52934 2006-07-29  Bruno Haible  <bruno@clisp.org>
52935
52936         * gnulib-tool (func_import): Extend error message about missing
52937         --doc-base.
52938
52939 2006-07-29  Bruno Haible  <bruno@clisp.org>
52940
52941         * gnulib-tool (func_import): Don't create the $docbase directory if
52942         there is no file to store there.
52943
52944 2006-07-29  Bruno Haible  <bruno@clisp.org>
52945
52946         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52947         relevant, look for configure.ac there, not in the current directory.
52948         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52949
52950 2006-07-29  Bruno Haible  <bruno@clisp.org>
52951
52952         * gnulib-tool (SORT): New variable.
52953         (func_usage): Undocument --assume-autoconf option.
52954         Remove --assume-autoconf option handling.
52955         (autoconf_minversion): Determine from the contents of configure.ac.
52956         (func_import): Remove autoconf_minversion handling.
52957         Suggested by Eric Blake.
52958
52959 2006-07-29  Bruno Haible  <bruno@clisp.org>
52960
52961         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52962
52963 2006-07-29  Bruno Haible  <bruno@clisp.org>
52964
52965         * config/srclist.txt (*setenv.[ch]): Remove rules.
52966
52967 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52968
52969         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52970
52971 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52972
52973         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52974         arpa/inet.h.
52975
52976 2006-07-28  Simon Josefsson  <jas@extundo.com>
52977
52978         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52979         * modules/inet_pton (Depends-on): Likewise.
52980
52981 2006-07-28  Simon Josefsson  <jas@extundo.com>
52982
52983         * m4/netinet_in_h.m4: New file.
52984
52985 2006-07-28  Simon Josefsson  <jas@extundo.com>
52986
52987         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52988         #include's.
52989
52990 2006-07-28  Simon Josefsson  <jas@extundo.com>
52991
52992         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52993         #include's.
52994
52995 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52996
52997         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52998         setgid on directories only if they set these bits.
52999         * lib/modechange.h: Remove obsolete comment about masks.
53000
53001 2006-07-28  Eric Blake  <ebb9@byu.net>
53002
53003         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
53004         macro expansion.
53005
53006 2006-07-28  Bruno Haible  <bruno@clisp.org>
53007
53008         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
53009
53010 2006-07-28  Bruno Haible  <bruno@clisp.org>
53011
53012         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
53013
53014 2006-07-28  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53017         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53018         Define fallbacks.
53019         Avoids link error on FreeBSD 4.x.
53020         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53021
53022         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
53023         encoding.
53024         * lib/mbswidth.c (iswcntrl): Likewise.
53025
53026 2006-07-27  Bruno Haible  <bruno@clisp.org>
53027
53028         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
53029         test.
53030
53031 2006-07-27  Bruno Haible  <bruno@clisp.org>
53032
53033         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
53034         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
53035         defined.
53036
53037 2006-07-26  Eric Blake  <ebb9@byu.net>
53038
53039         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
53040
53041 2006-07-26  Eric Blake  <ebb9@byu.net>
53042
53043         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
53044         like mingw that lack mkstemp.
53045         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
53046         avoid compilation warning on mingw.
53047
53048 2006-07-26  Bruno Haible  <bruno@clisp.org>
53049
53050         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
53051         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
53052         INT_FAST*_MIN, INTPTR_MIN.
53053
53054 2006-07-25  Bruno Haible  <bruno@clisp.org>
53055
53056         * modules/version-etc (Depends-on): Add stdarg.
53057
53058 2006-07-25  Bruno Haible  <bruno@clisp.org>
53059
53060         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
53061         complex commands.
53062
53063 2006-07-25  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
53066         defined in <stdarg.h> or config.h.
53067
53068 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53069
53070         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
53071         (gl_STDIO_SAFER): Remove.
53072
53073 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         * MODULES.html.sh (File stream based Input/Output):
53076         Add fopen-safer, tmpfile-safer; remove stdio-safer.
53077         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
53078         * modules/fopen-safer, modules/tmpfile-safer: New files.
53079         * modules/stdio-safer: Remove.
53080
53081 2006-07-24  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/tmpdir: New file.
53084         * MODULES.html.sh (File system functions): Add it.
53085
53086 2006-07-24  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
53089         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
53090
53091 2006-07-24  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/clean-temp: New file.
53094
53095 2006-07-24  Bruno Haible  <bruno@clisp.org>
53096
53097         * m4/tmpdir.m4: New file, from GNU gettext.
53098
53099 2006-07-24  Bruno Haible  <bruno@clisp.org>
53100
53101         * lib/tmpdir.h: New file, from GNU gettext.
53102         * lib/tmpdir.c: New file, from GNU gettext.
53103
53104 2006-07-24  Bruno Haible  <bruno@clisp.org>
53105
53106         * lib/clean-temp.h: New file, from GNU gettext.
53107         * lib/clean-temp.c: New file, from GNU gettext.
53108
53109 2006-07-23  Eric Blake  <ebb9@byu.net>
53110
53111         * modules/stdio-safer (Files): Add tmpfile-safer.c.
53112         (Depends-on): Add binary-io.
53113
53114 2006-07-23  Eric Blake  <ebb9@byu.net>
53115
53116         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53117
53118 2006-07-23  Eric Blake  <ebb9@byu.net>
53119
53120         * lib/tmpfile-safer.c: New file.
53121         * lib/stdio-safer.h (fopen_safer): Add prototype.
53122         * lib/stdio--.h (tmpfile): Make safer.
53123
53124 2006-07-23  Bruno Haible  <bruno@clisp.org>
53125
53126         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53127         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53128         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53129         gl_linked_remove_at): Use it.
53130
53131 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53132         and Simon Josefsson <jas@extundo.com>
53133
53134         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53135
53136         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53137
53138 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53139
53140         * modules/close-stream: New file.
53141         * modules/closeout (Description): Make it clear that it exits
53142         with a diagnostic on error.
53143         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53144         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53145
53146 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53147
53148         * m4/close-stream.m4: New file.
53149
53150 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53151
53152         * lib/close-stream.c, lib/close-stream.h: New files.
53153
53154 2006-07-22  Bruno Haible  <bruno@clisp.org>
53155
53156         Merge from GNU gettext 0.15.
53157
53158         2006-05-01  Bruno Haible  <bruno@clisp.org>
53159
53160                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53161
53162         2006-07-22  Bruno Haible  <bruno@clisp.org>
53163
53164                 * modules/javaversion: New file.
53165                 * MODULES.html.sh (Java): Add javaversion.
53166
53167         2006-03-12  Bruno Haible  <bruno@clisp.org>
53168
53169                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53170
53171         2005-12-04  Bruno Haible  <bruno@clisp.org>
53172
53173                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53174                 (untested).
53175
53176         2006-06-21  Bruno Haible  <bruno@clisp.org>
53177
53178                 Avoid warnings from recent versions of mcs.
53179                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53180                 -o, -L, -r any more. Use options documented since mcs-1.0
53181                 instead. Similarly for -g.
53182
53183         2005-12-04  Bruno Haible  <bruno@clisp.org>
53184
53185                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53186                 .resources, not .resource.
53187
53188         2005-07-09  Bruno Haible  <bruno@clisp.org>
53189
53190                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53191                 add a .dll suffix.
53192                 Reported by Mark Junker <mjscod@gmx.de>.
53193
53194         2006-07-22  Bruno Haible  <bruno@clisp.org>
53195
53196                 * modules/gettext: Upgrade to gettext-0.15.
53197                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53198                 m4/visibility.m4.
53199                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53200
53201 2006-07-22  Bruno Haible  <bruno@clisp.org>
53202
53203         Merge from GNU gettext 0.15.
53204
53205         2006-03-25  Bruno Haible  <bruno@clisp.org>
53206
53207                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53208
53209         2006-07-21  Bruno Haible  <bruno@clisp.org>
53210
53211                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53212                 "1.1".
53213
53214         2006-05-09  Bruno Haible  <bruno@clisp.org>
53215
53216                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53217                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53218                 for the conftestver execution.
53219
53220         2006-05-01  Bruno Haible  <bruno@clisp.org>
53221
53222                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53223                 optional target-version argument. Verify that the compiler
53224                 groks source of the specified source-version, or add -source
53225                 option as necessary. Verify that the compiler produces
53226                 bytecode in the specified target-version, or add -target and
53227                 -source options as necessary. Make the result of the test
53228                 available as variable CONF_JAVAC. Also log error output in
53229                 config.log.
53230
53231         2006-03-11  Bruno Haible  <bruno@clisp.org>
53232
53233                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53234
53235         2006-05-09  Bruno Haible  <bruno@clisp.org>
53236
53237                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53238                 CLASSPATH_SEPARATOR to a semicolon.
53239
53240         2006-03-12  Bruno Haible  <bruno@clisp.org>
53241
53242                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53243                 available as variable CONF_JAVA, for subsequent autoconf
53244                 tests. Also log error output in config.log.
53245
53246         2006-07-19  Bruno Haible  <bruno@clisp.org>
53247
53248                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53249                 that getline works on glibc2 systems. Needed to avoid trouble
53250                 in relocatable.c.
53251                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53252
53253         2005-12-04  Bruno Haible  <bruno@clisp.org>
53254
53255                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53256                 launcher (untested).
53257
53258         2005-12-04  Bruno Haible  <bruno@clisp.org>
53259
53260                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53261
53262         2006-07-22  Bruno Haible  <bruno@clisp.org>
53263
53264                 * gettext.m4: Update from GNU gettext-0.15.
53265                 * nls.m4: Likewise.
53266                 * po.m4: Likewise.
53267                 * inttypes-pri.m4: Likewise.
53268                 * inttypes-h.m4: Renamed from inttypes.m4.
53269                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53270
53271 2006-07-22  Bruno Haible  <bruno@clisp.org>
53272
53273         Merge from GNU gettext 0.15.
53274
53275         2005-07-05  Bruno Haible  <bruno@clisp.org>
53276
53277                 * printf-args.c (printf_fetchargs): Work around broken
53278                 definition of wint_t on mingw.
53279
53280         2005-02-12  Bruno Haible  <bruno@clisp.org>
53281
53282                 * xallocsa.h: Add extern "C" for C++.
53283
53284         2006-05-17  Bruno Haible  <bruno@clisp.org>
53285
53286                 Cygwin portability.
53287                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53288
53289         2006-04-30  Bruno Haible  <bruno@clisp.org>
53290
53291                 * progreloc.c: Include <mach-o/dyld.h> if available.
53292                 (find_executable): Use _NSGetExecutablePath when possible.
53293
53294         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53295
53296                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53297                 function.
53298
53299         2005-12-29  Bruno Haible  <bruno@clisp.org>
53300
53301                 * progreloc.c (set_program_name_and_installdir): Fix
53302                 compilation error.
53303
53304         2005-12-04  Bruno Haible  <bruno@clisp.org>
53305
53306                 Cygwin portability.
53307                 * progreloc.c: Include <windows.h> also on Cygwin.
53308                 (find_executable): Add support for Cygwin.
53309                 (set_program_name_and_installdir): Handle also platforms with
53310                 nonempty EXEEXT.
53311
53312         2006-07-11  Bruno Haible  <bruno@clisp.org>
53313
53314                 * javacomp.c: Fix a comment.
53315                 Reported by Jim Meyering.
53316
53317         2006-04-30  Bruno Haible  <bruno@clisp.org>
53318
53319                 * javacomp.h (compile_java_class): Add source_version,
53320                 target_version arguments.
53321                 * javacomp.c: Rewritten to choose only a compiler that
53322                 respects the specified source_version and target_version.
53323
53324         2006-06-27  Bruno Haible  <bruno@clisp.org>
53325
53326                 Assume correct S_ISDIR macro.
53327                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53328
53329         2006-07-22  Bruno Haible  <bruno@clisp.org>
53330
53331                 * javaversion.h: New file, from GNU gettext.
53332                 * javaversion.c: New file, from GNU gettext.
53333                 * javaversion.java: New file, from GNU gettext.
53334                 * javaversion.class: New file, from GNU gettext.
53335
53336         2006-05-17  Bruno Haible  <bruno@clisp.org>
53337
53338                 Cygwin portability.
53339                 * javaexec.c (execute_java_class): Test for jview program
53340                 also on Cygwin.
53341
53342         2006-04-09  Bruno Haible  <bruno@clisp.org>
53343
53344                 * fatal-signal.c: Don't include string.h.
53345                 (at_fatal_signal): Use a copying loop instead of memcpy.
53346
53347         2005-12-04  Bruno Haible  <bruno@clisp.org>
53348
53349                 * csharpexec.c: Add support for 'clix' launcher (untested).
53350                 (execute_csharp_using_sscli): New function.
53351                 (execute_csharp_program): Call it.
53352
53353         2006-06-21  Bruno Haible  <bruno@clisp.org>
53354
53355                 Avoid warnings from recent versions of mcs.
53356                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53357                 -o, -L, -r any more. Use options documented since mcs-1.0
53358                 instead. Similarly for -g.
53359
53360         2005-07-09  Bruno Haible  <bruno@clisp.org>
53361
53362                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53363                 add a .dll suffix.
53364                 Reported by Mark Junker <mjscod@gmx.de>.
53365
53366         2006-06-17  Bruno Haible  <bruno@clisp.org>
53367
53368                 * config.charset: Update for NetBSD 3.0.
53369
53370         2006-05-17  Bruno Haible  <bruno@clisp.org>
53371
53372                 Cygwin portability.
53373                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53374
53375         2006-05-16  Bruno Haible  <bruno@clisp.org>
53376
53377                 * localcharset.c [CYGWIN]: Include <windows.h>.
53378                 (get_charset_aliases): For Cygwin, return the same CPxxx
53379                 aliases list as under WIN32.
53380                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53381                 the environment variables. Fall back to GetACP().
53382
53383         2006-04-05  Bruno Haible  <bruno@clisp.org>
53384
53385                 * config.charset: Update Juan Manuel Guerrero's address.
53386
53387         2005-02-12  Bruno Haible  <bruno@clisp.org>
53388
53389                 * allocsa.h: Add extern "C" for C++.
53390
53391         2005-02-10  Bruno Haible  <bruno@clisp.org>
53392
53393                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53394                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53395
53396         2006-07-22  Bruno Haible  <bruno@clisp.org>
53397
53398                 * gettext.h: Update to GNU gettext-0.15.
53399
53400 2006-07-22  Bruno Haible  <bruno@clisp.org>
53401
53402         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53403         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53404         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53405
53406 2006-07-21  Eric Blake  <ebb9@byu.net>
53407
53408         * modules/stdlib-safer: New file.
53409         * MODULES.html.sh (File stream based Input/Output): Add
53410         stdlib-safer.
53411
53412 2006-07-21  Eric Blake  <ebb9@byu.net>
53413
53414         * lib/stdlib-safer.h: New file from coreutils, required by
53415         stdlib--.h.
53416
53417 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53418
53419         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53420
53421 2006-07-20  Bruno Haible  <bruno@clisp.org>
53422
53423         * gnulib-tool: Recognize new option --assume-autoconf.
53424         (autoconf_minversion): New variable.
53425         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53426
53427 2006-07-20  Bruno Haible  <bruno@clisp.org>
53428
53429         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53430
53431 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53432
53433         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53434         Reindent and repaginate.
53435
53436 2006-07-19  Derek Price  <derek@ximbiot.com>
53437
53438         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53439         Correct grammar.
53440
53441 2006-07-17  Bruno Haible  <bruno@clisp.org>
53442
53443         * modules/list: New file.
53444         * modules/array-list: New file.
53445         * modules/carray-list, modules/carray-list-tests: New files.
53446         * modules/linked-list, modules/linked-list-tests: New files.
53447         * modules/avltree-list, modules/avltree-list-tests: New files.
53448         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53449         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53450         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53451         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53452         * modules/oset: New file.
53453         * modules/array-oset: New file.
53454         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53455         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53456         * tests/test-carray_list.c: New file.
53457         * tests/test-linked_list.c: New file.
53458         * tests/test-avltree_list.c: New file.
53459         * tests/test-rbtree_list.c: New file.
53460         * tests/test-linkedhash_list.c: New file.
53461         * tests/test-avltreehash_list.c: New file.
53462         * tests/test-rbtreehash_list.c: New file.
53463         * tests/test-avltree_oset.c: New file.
53464         * tests/test-rbtree_oset.c: New file.
53465         * MODULES.html.sh (Container data structures): New section.
53466
53467 2006-07-17  Bruno Haible  <bruno@clisp.org>
53468
53469         * m4/gl_list.m4: New file.
53470
53471 2006-07-17  Bruno Haible  <bruno@clisp.org>
53472
53473         * lib/gl_list.h: New file.
53474         * lib/gl_list.c: New file.
53475         * lib/gl_array_list.h: New file.
53476         * lib/gl_array_list.c: New file.
53477         * lib/gl_carray_list.h: New file.
53478         * lib/gl_carray_list.c: New file.
53479         * lib/gl_linked_list.h: New file.
53480         * lib/gl_linked_list.c: New file.
53481         * lib/gl_anylinked_list1.h: New file.
53482         * lib/gl_anylinked_list2.h: New file.
53483         * lib/gl_avltree_list.h: New file.
53484         * lib/gl_avltree_list.c: New file.
53485         * lib/gl_anyavltree_list1.h: New file.
53486         * lib/gl_anyavltree_list2.h: New file.
53487         * lib/gl_rbtree_list.h: New file.
53488         * lib/gl_rbtree_list.c: New file.
53489         * lib/gl_anyrbtree_list1.h: New file.
53490         * lib/gl_anyrbtree_list2.h: New file.
53491         * lib/gl_anytree_list1.h: New file.
53492         * lib/gl_anytree_list2.h: New file.
53493         * lib/gl_linkedhash_list.h: New file.
53494         * lib/gl_linkedhash_list.c: New file.
53495         * lib/gl_anyhash_list1.h: New file.
53496         * lib/gl_anyhash_list2.h: New file.
53497         * lib/gl_avltreehash_list.h: New file.
53498         * lib/gl_avltreehash_list.c: New file.
53499         * lib/gl_rbtreehash_list.h: New file.
53500         * lib/gl_rbtreehash_list.c: New file.
53501         * lib/gl_anytreehash_list1.h: New file.
53502         * lib/gl_anytreehash_list2.h: New file.
53503
53504         * lib/gl_oset.h: New file.
53505         * lib/gl_oset.c: New file.
53506         * lib/gl_array_oset.h: New file.
53507         * lib/gl_array_oset.c: New file.
53508         * lib/gl_avltree_oset.h: New file.
53509         * lib/gl_avltree_oset.c: New file.
53510         * lib/gl_rbtree_oset.h: New file.
53511         * lib/gl_rbtree_oset.c: New file.
53512         * lib/gl_anytree_oset.h: New file.
53513
53514 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         * m4/mkancesdirs.m4: New file.
53517         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53518         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53519         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53520         it.
53521
53522 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53523
53524         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53525         * lib/mkancesdirs.h: New files.
53526         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53527         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53528         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53529         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53530         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53531         callers changed.  Revamp internals significantly, by not
53532         attempting to create directories that are temporarily more
53533         permissive than the final results.  Do not attempt to use
53534         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53535         This removes some race conditions, fixes some bugs, and simplifies
53536         things.  Use new dirchownmod function to do owner and mode changes.
53537         * lib/mkdir-p.h: Likewise.
53538         * lib/modechange.c (octal_to_mode): New function.
53539         (struct mode_change): New member mentioned.
53540         (make_node_op_equals): New arg mentioned.  All callers changed.
53541         (mode_compile): Keep track of which mode bits the user has explicitly
53542         mentioned.
53543         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53544         New arg PMODE_BITS, to keep track of which mode bits the user
53545         mentioned; it treats S_ISUID and S_ISGID speciall.
53546         All callers changed.
53547         * lib/modechange.h: Likewise.
53548
53549 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53550
53551         * MODULES.html.sh: Add mkancestors.
53552         * modules/mkancesdirs: New module.
53553         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53554         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53555         The chdir-safer and afs files are now orphans; I'll remove them
53556         unless someone speaks up.
53557         Add lib/dirchownmod.c, lib/dirchownmod.h.
53558         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53559         Add lchown, mkancesdirs.
53560         (Maintainer): Add self.
53561
53562 2006-07-15  Karl Berry  <karl@gnu.org>
53563
53564         * gnulib-tool: help message wording/arrangement.
53565
53566 2006-07-14  Simon Josefsson  <jas@extundo.com>
53567
53568         * doc/gnulib.texi (Libtool and Windows): New section.
53569
53570 2006-07-12  Simon Josefsson  <jas@extundo.com>
53571
53572         * modules/gendocs (License): Fix license, approved by Karl.
53573
53574 2006-07-12  Eric Blake  <ebb9@byu.net>
53575
53576         * MODULES.html.sh: Add gendocs.
53577
53578 2006-07-11  Eric Blake  <ebb9@byu.net>
53579
53580         * modules/fdl: New module, to install doc/fdl.texi.
53581         * MODULES.html.sh: Add new section for documentation modules.
53582         * gnulib-tool: Avoid space-tab.
53583         (--doc-base): New option, to manage files from doc.
53584
53585 2006-07-11  Eric Blake  <ebb9@byu.net>
53586
53587         * m4/absolute-header.m4: Fix comments to match recent change.
53588
53589 2006-07-11  Eric Blake  <ebb9@byu.net>
53590
53591         * gnulib-tool: List --doc-base before --tests-base.
53592
53593 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53594
53595         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53596
53597 2006-07-11  Bruno Haible  <bruno@clisp.org>
53598
53599         * README: Mention where to put documentation.
53600
53601 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53602
53603         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53604
53605 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53606
53607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53608         to stdint.m4.
53609
53610 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53611
53612         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53613         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53614         "no/such/file/stdint.h" when there is no such file, so that
53615         the resulting C code can be parsed by dodgy compilers.
53616         Problems reported by Bob Proulx.
53617
53618 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53619
53620         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53621         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53622         macros into the GNU _D_EXACT_NAMLEN.
53623         * lib/savedir.c:  Likewise.
53624         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53625
53626 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53627         and Paul Eggert  <eggert@cs.ucla.edu>
53628
53629         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53630         * m4/savedir.m4:
53631         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53632         macros into the GNU _D_EXACT_NAMLEN.
53633
53634 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53635
53636         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53637         around the absolute name, to work around a problem with the HP-UX
53638         11.23 native C compiler, reported by Bob Proulx.
53639
53640 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53641
53642         * doc/maintain.texi, make-stds.texi: Sync from
53643         <http://savannah.gnu.org/projects/gnustandards>.
53644
53645 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53646
53647         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53648
53649 2006-07-09  Jim Meyering  <jim@meyering.net>
53650
53651         * m4/glob.m4: Remove a doubled word in a comment.
53652
53653 2006-07-09  Jim Meyering  <jim@meyering.net>
53654
53655         * lib/argp-pv.c: Remove a doubled word in a comment.
53656         * lib/check-version.c (check_version): Likewise.
53657         * lib/javacomp.c (compile_java_class): Likewise.
53658
53659 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53660
53661         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53662         for the benefit of people using Autoconf 2.60.  If you want to
53663         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53664         (or m4/onceonly.m4, if pre-2.57) manually.
53665
53666 2006-07-08  Jim Meyering  <jim@meyering.net>
53667
53668         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53669         comment.
53670         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53671         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53672         comment.
53673
53674 2006-07-08  Jim Meyering  <jim@meyering.net>
53675
53676         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53677
53678 2006-07-07  Simon Josefsson  <jas@extundo.com>
53679
53680         * tests/test-crc.c: Change expected crc value, the test vector
53681         were probably computed using the old broken crc.c?
53682
53683 2006-07-06  Simon Josefsson  <jas@extundo.com>
53684
53685         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53686         now the canonical place for the M4 file).
53687
53688         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53689         from the sys_socket dependency now.
53690
53691         * modules/inet_pton (Files): Ditto.
53692
53693         * modules/inet_ntop (Files): Ditto.
53694
53695 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53696
53697         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53698         not gl_PREREQ_GETUSERSHELL.
53699
53700 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53701
53702         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53703         with only one argument, for Autoconf 2.60.
53704         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53705         expand to nothing, so add a shell command to avoid syntax error.
53706         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53707
53708 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53709
53710         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53711
53712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53715         no longer needed.  Check for isblank decl.
53716         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53717         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53718         of existence.
53719
53720 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53721
53722         * lib/getloadavg.c: Use __VMS, not VMS.
53723         * lib/getopt.c: Likewise.
53724         * lib/getpagesize.h: Likewise.
53725         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53726         and probably does not work.
53727
53728 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         * lib/.cppi-disable: Add wcwidth.
53731         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53732         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53733         (ISGRAPH): Remove.  All uses changed to isgraph.
53734         (FOLD) [!defined _LIBC]: Remove special case.
53735         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53736         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53737         HAVE_ISBLANK.
53738         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53739         case.
53740
53741 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53742
53743         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53744         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53745         brackets.  Other minor changes to suppress some compiler
53746         warnings.
53747
53748 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53749         and Paul Eggert  <eggert@cs.ucla.edu>
53750
53751         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53752         of invoking obsolescent AC_HEADER_DIRENT macro.
53753         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53754         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53755         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53756         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53757         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53758         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53759         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53760         * m4/readdir.m4: Remove; no longer needed.
53761
53762 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53763         and Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53766         Don't worry about this obsolete case any more.
53767         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53768         directories.
53769         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53770         worry about this obsolete case any more.
53771         * lib/fts.c: Likewise.
53772         * lib/getcwd.c: Likewise.
53773         * lib/glob.h: Likewise.
53774         * lib/savedir.c: Likewise.
53775
53776 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53777
53778         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53779         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53780         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53781         needed.
53782         All uses removed.
53783         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53784         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53785         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53786         needed.
53787         * m4/getdate.m4 (gl_GETDATE): Likewise.
53788         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53789         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53790         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53791         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53792         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53793         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53794         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53795         needed.
53796
53797 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53798
53799         * lib/memcasecmp.c: Include <limits.h>.
53800         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53801         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53802         Don't assume isdigit succeeds only on '0' through '9'.
53803
53804 2006-07-05  Eric Blake  <ebb9@byu.net>
53805
53806         * modules/getaddrinfo (Depends-on): Add snprintf.
53807
53808 2006-07-05  Eric Blake  <ebb9@byu.net>
53809
53810         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53811         to avoid 'header present but could not be compiled' on cygwin.
53812
53813 2006-07-05  Eric Blake  <ebb9@byu.net>
53814
53815         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53816         missing from netdb.h.
53817         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53818
53819 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53820
53821         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53822         no longer needed.
53823         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53824         * m4/getdate.m4 (gl_GETDATE): Likewise.
53825         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53826         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53827         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53828         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53829         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53830
53831 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53832
53833         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53834         All uses of is_space replaced by isspace.
53835         * lib/exit.h: Don't talk about STDC_HEADERS.
53836         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53837         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53838         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53839         replaced by isprint etc.
53840         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53841         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53842         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53843         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53844         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53845         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53846
53847 2006-07-05  Bruno Haible  <bruno@clisp.org>
53848
53849         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53850         the function exists, before testing against AIX.
53851         Reported by Martin Lambers <marlam@marlam.de>.
53852
53853 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53854
53855         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53856         From Mark D. Baushke.
53857
53858 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53859
53860         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53861         to the absolute name, not just one, to bypass Sun C 5.8's
53862         "warning: #include of /usr/include/... may be non-portable".
53863
53864 2006-07-04  Eric Blake  <ebb9@byu.net>
53865
53866         * modules/dirname-tests: New test module.
53867         * tests/test-dirname.c: New file, replacing dirname.c
53868         TEST_DIRNAME section that was recently deleted.
53869
53870 2006-07-04  Bruno Haible  <bruno@clisp.org>
53871
53872         Assume ANSI C header files and <ctype.h> functions.
53873         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53874         (mbsnwidth): Use isprint, iscntrl instead.
53875
53876 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53877
53878         Merge from coreutils.
53879         * MODULES.html.sh: Add xstrtold.
53880         * modules/xstrtold: New file.
53881         * modules/cycle-check (Files): Add lib/same-inode.h.
53882         * modules/dirname (Files): Add m4/double-slash-root.m4.
53883         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53884         * modules/mkdir-p (Files): Add lib/same-inode.h.
53885         * modules/same (Files): Add lib/same-inode.h.
53886
53887 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53888
53889         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53890         This is to keep the terminology clean; POSIX talks about
53891         "absolute pathnames", not "full pathnames", but the GNU
53892         Coding Standards say to use "path" for something else;
53893         so use "absolute" to keep both sides happy.
53894         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53895         Set gl_absolute_header, not gl_full_header_path.
53896         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53897         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53898         All uses changed.
53899
53900         Merge from coreutils.
53901
53902         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53905         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53906         want to require the building of c-strtod.o.
53907         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53908         needs -lm directly.
53909         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53910
53911         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53912
53913         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53914         --as-needed option if available.  Problem reported by Albert Chin in
53915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53916         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53917         cc merely issues a bunch of annoying warnings for --as-needed
53918         (this problem was reported by Bob Proulx).  Also, try linking with
53919         -lm to detect a bug in binutils 2.16 (this problem was reported
53920         by Ralf Wildenhues).
53921
53922         2006-06-18  Jim Meyering  <jim@meyering.net>
53923
53924         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53925         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53926         macro.
53927         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53928         also check for glibc-2.4's abort-inducing bug.
53929
53930         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53931         Low-probability clean-up should be to use rmdir to get rid of
53932         the just-created directory, not unlink.
53933
53934         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53935         configure fail, and request a bug report to inform us about it.
53936         Add a comment that, barring reports to the contrary, in 2007 we'll
53937         assume ftruncate is universally available.
53938
53939         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53942
53943         2006-03-12  Jim Meyering  <jim@meyering.net>
53944
53945         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53946         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53947         * m4/same.m4 (gl_SAME): Likewise.
53948         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53949
53950         2006-03-11  Eric Blake  <ebb9@byu.net>
53951
53952         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53953         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53954         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53955         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53956
53957 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53958
53959         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53960         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53961         reported by Mark D. Baushke, one in
53962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53963
53964         Merge from coreutils.
53965
53966         * lib/.cppi-disable: Add stdint_.h.
53967         * lib/.cvsignore: Add stdint.h.
53968
53969         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53970
53971         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53972         both double and long double versions.
53973         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53974         * lib/xstrtold.c: New file.
53975         * lib/xstrtod.h (xstrtold): New decl.
53976
53977         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         * lib/filemode.c (setst): Remove.
53980         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53981         (arguably) clearer, and the generated code is a bit smaller on my
53982         Debian GNU/Linux stable x86 host.
53983
53984         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53985
53986         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53987         Assume that filemode.h includes sys/types.h and sys/stat.h.
53988         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53989         (ftypelet): Reorder to put common cases first, for efficiency.
53990         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53991         to do 'M'.
53992         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53993         of 10, for compatibility with FreeBSD.  All callers changed.
53994         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53995         types that can't be deduced solely from st_mode.  First arg is now a
53996         const pointer.
53997         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53998         (strmode): Renamed from mode_string.
53999         (filemodestring): New decl.
54000         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
54001         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
54002         needed.
54003         (S_ISPORT, S_ISWHT): New macros, if not already defined.
54004
54005         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
54008         fsusage.h now does that.  Include fsusage.h first, to test interface.
54009         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
54010         at most one method (the old code could have generated decls that
54011         didn't conform to C89, not that this was ever exercised).
54012         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
54013
54014         2006-03-19  Jim Meyering  <jim@meyering.net>
54015
54016         Work even in a chroot where d_ino values for entries in "/"
54017         don't match the stat.st_ino values for the same names.
54018         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
54019         number, iterate through all entries again, using lstat instead.
54020         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
54021         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
54022
54023         * lib/getcwd.c (__getcwd): Clarify a comment.
54024         Use memcpy in place of a call to strcpy.
54025
54026         2006-03-12  Jim Meyering  <jim@meyering.net>
54027
54028         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
54029         matches that of the current directory (which we're about to chdir ".."
54030         out of), then save the dev-ino of the parent, instead.
54031
54032         * lib/same-inode.h (SAME_INODE): New file/macro.
54033         * lib/chdir-safer.c (SAME_INODE): Remove definition.
54034         Include "same-inode.h", instead.
54035         * lib/same.c: Likewise.
54036         * lib/cycle-check.h: Include "same-inode.h".
54037         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
54038         * lib/cycle-check.c (SAME_INODE): Remove definition.
54039         * lib/root-dev-ino.h: Include "same-inode.h".
54040
54041         2006-03-11  Eric Blake  <ebb9@byu.net>
54042
54043         * lib/same.c (same_name): s/base_name/last_component/
54044         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
54045         * lib/filenamecat.c (file_name_concat): Likewise.
54046
54047         2006-03-11  Eric Blake  <ebb9@byu.net>,
54048                     Paul Eggert  <eggert@cs.ucla.edu>
54049
54050         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
54051         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
54052         drive prefix.
54053         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
54054         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
54055         (last_component): New method.
54056         * lib/dirname.c (dir_len): Determine when drive letters need a
54057         subsequent slash.  Preserve // when it is special.
54058         (dir_name): Don't append dot when drive letter is absolute.
54059         [TEST_DIRNAME]: Move into a full-blown gnulib test.
54060         * lib/basename.c (base_name): New semantics - malloc the result.
54061         Preserve // when it is special.  Preserve relative files that look
54062         like drive letters.
54063         (base_len): Preserve // when it is special.
54064         (last_component): New method, similar to old base_name semantics.
54065         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
54066         base_name.  Strip redundant slashes from ///.
54067
54068 2006-07-03  Jim Meyering  <jim@meyering.net>
54069
54070         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
54071         macro is used before the first cycle_check call.
54072
54073 2006-07-03  Eric Blake  <ebb9@byu.net>
54074
54075         * modules/dirname (Depends-on): Add xstrndup.
54076
54077 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54078
54079         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
54080         test cases, so that config.log is a bit easier to follow.
54081
54082 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
54085         both are 64 bits, since this seems to be the tradition, and this
54086         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
54087         we ever run into a host that prefers long long to long in this
54088         case, we'll need another configure-time test.  Problem reported by
54089         Jim Meyering.
54090
54091 2006-07-02  Eric Blake  <ebb9@byu.net>
54092
54093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
54094
54095 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54096
54097         * modules/inttypes (Depends-on): No longer depends on stdint.
54098         * modules/stdint (Description): Say more about assumptions.
54099         Say that the fast types might differ.  Say macros are used.
54100         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
54101         (Makefile.am): Revise list of substituted symbols to match
54102         new stdint.m4.
54103         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
54104         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
54105         * tests/test-stdint.c (verify_same_types)
54106         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
54107         the code conforms to C99/C89.
54108         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
54109         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
54110
54111 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
54114         but fix a bug, by requiring at least 64 bits.
54115         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54116         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54117         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54118         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54119
54120         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54121         changes.  Make 2.59 a prerequisite.  Check and substitute for
54122         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54123         inttypes.h.  Do not use special include files; just use the
54124         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54125         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54126         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54127         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54128         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54129         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54130         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54131         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54132         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54133         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54134         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54135         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54136         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54137         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54138         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54139         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54140         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54141         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54142         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54143         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54144         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54145         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54146         not check for things that C99 does not require, e.g., int8_t.  If
54147         a test isn't needed unless <stdint.h> isn't working, and is
54148         unlikely to be needed for any other reason, then don't do it
54149         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54150         size_t, since we assume C89 freestanding at least.  Do not check
54151         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54152         the right thing even if the types are not defined.  Instead use:
54153         (gl_STDINT_TYPE_PROPERTIES): New macro.
54154         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54155         testing whether <sys/types.h> clashes, as Autoconf does this for
54156         us now.  All uses removed.
54157         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54158         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54159         (gl_CHECK_TYPE_SAME):
54160         Remove; no longer needed.
54161         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54162         exists, since we'll return 0 anyway in that case.
54163         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54164
54165 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54168         possible collision with system files.
54169         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54170         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54171         WCHAR_MIN and WCHAR_MAX in this case.
54172         (<stddef.h>): Do not include; no longer needed.
54173         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54174         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54175         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54176         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54177         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54178         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54179         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54180         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54181         !defined(__c99))]: Include in this case too, since it's harmless
54182         now.
54183         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54184         dangerous to do so.
54185         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54186         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54187         (_STDINT_MIN, _STDINT_MAX): New macros.
54188         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54189         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54190         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54191         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54192         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54193         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54194         macros, not typedefs; this simplifies things quite a bit.
54195         Use long int for all types narrower than int64_t.
54196         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54197         Define in terms of long long int or int64_t or long int,
54198         not int64_t or int32_t.  This saves some compile-time testing.
54199         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54200         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54201         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54202         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54203         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54204         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54205         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54206         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54207         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54208         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54209         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54210         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54211         undef any previous version and define our own version, for
54212         simplicity and consistency with the new macros for types.
54213         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54214         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54215         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54216         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54217         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54218         @WINT_T_SUFFIX@ to keep things simple here.
54219         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54220         Simplify by assuming typical 8/16/32/64 host, since we're
54221         already doing that elsewhere anyway.
54222         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54223         and assume long long int is 64 bits if available.  This
54224         speeds up 'configure'.
54225
54226 2006-07-01  Eric Blake  <ebb9@byu.net>
54227
54228         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54229         Reported by Andreas Buening.
54230
54231 2006-07-01  Eric Blake  <ebb9@byu.net>
54232
54233         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54234
54235 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54236
54237         * lib/getaddrinfo.c: fixed typo
54238
54239 2006-06-29  Jim Meyering  <jim@meyering.net>
54240
54241         * modules/strftime (Maintainer): Add my name, since with the
54242         FPRINTFTIME changes strftime.c has forked from glibc.
54243
54244 2006-06-29  Eric Blake  <ebb9@byu.net>
54245
54246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54247
54248 2006-06-29  Eric Blake  <ebb9@byu.net>
54249
54250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54251
54252 2006-06-29  Eric Blake  <ebb9@byu.net>
54253
54254         * lib/stat_.h: New file.
54255
54256 2006-06-29  Eric Blake  <ebb9@byu.net>
54257
54258         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54259         unused static function.
54260
54261 2006-06-29  Eric Blake  <ebb9@byu.net>
54262
54263         * doc/functions.texi (Function Portability): Document missing lstat
54264         on mingw.
54265
54266 2006-06-29  Eric Blake  <ebb9@byu.net>
54267
54268         * MODULES.html.sh: Add sys_stat.
54269         * modules/sys_stat: New module.
54270         * modules/mkstemp (Depends-on): Add sys_stat.
54271
54272 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54273
54274         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54275
54276 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54277
54278         * m4/c-bs-a.m4: Removed.
54279
54280 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54281
54282         * lib/strftime.c: Assume strftime() exists.
54283
54284 2006-06-29  Derek Price  <derek@ximbiot.com>
54285
54286         * modules/c-bs-a: Removed - \a is C89.
54287         * MODULES.html.sh: Remove c-bs-a.
54288
54289 2006-06-29  Bruno Haible  <bruno@clisp.org>
54290
54291         * modules/wcwidth (License): Change to LGPL.
54292
54293 2006-06-28  Simon Josefsson  <jas@extundo.com>
54294
54295         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54296         on _WIN32.
54297
54298         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54299         getnameinfo.
54300
54301 2006-06-28  Simon Josefsson  <jas@extundo.com>
54302
54303         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54304
54305 2006-06-28  Simon Josefsson  <jas@extundo.com>
54306
54307         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54308         functions there.  It will succeed on Windows XP, but on Windows
54309         2000 and (presumably) earlier, it will fail, and use the internal
54310         re-implementation.
54311         (use_win32_p): New function.
54312         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54313         Support AI_NUMERICSERV to disable getservbyname.
54314         (getnameinfo): New function, only supports
54315         NI_NUMERICHOST|NI_NUMERICSERV for now.
54316
54317         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54318         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54319         getnameinfo.
54320
54321 2006-06-28  Eric Blake  <ebb9@byu.net>
54322
54323         * modules/wcwidth: New file.
54324         * modules/mbchar (Depends-on): Add wcwidth.
54325         * modules/mbswidth (Depends-on): Add wcwidth.
54326         * MODULES.html.sh: Add wcwidth.
54327
54328 2006-06-28  Eric Blake  <ebb9@byu.net>
54329
54330         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54332
54333 2006-06-28  Eric Blake  <ebb9@byu.net>
54334
54335         * lib/xvasprintf.h: Fix comments.
54336
54337 2006-06-28  Eric Blake  <ebb9@byu.net>
54338
54339         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54340         * lib/mbswidth.c (wcwidth): Move from here...
54341         * lib/wcwidth.h: ...to this new file.
54342
54343 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54344
54345         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54346
54347         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54348         it's obsolete.
54349         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54350
54351 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54352
54353         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54354         Autoconf 2.60 says this stuff was obsolete.
54355
54356 2006-06-28  Bruno Haible  <bruno@clisp.org>
54357
54358         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54359
54360 2006-06-28  Bruno Haible  <bruno@clisp.org>
54361
54362         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54363         gt_TYPE_WCHAR_T.
54364
54365 2006-06-28  Bruno Haible  <bruno@clisp.org>
54366
54367         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54368         declaration for wcwidth.
54369         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54370
54371 2006-06-28  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54374         (mkdir): Define using _mkdir.
54375
54376 2006-06-28  Bruno Haible  <bruno@clisp.org>
54377
54378         * lib/getaddrinfo.h: Fix POSIX URL.
54379         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54380         _WIN32.
54381         (use_win32_p): Make static.
54382         (getaddrinfo): Reject service name if it is empty or does not consist
54383         solely of decimal digits, or if its value is > 65535.
54384         (getnameinfo): Remove useless casts.
54385
54386 2006-06-27  Simon Josefsson  <jas@extundo.com>
54387
54388         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54389         Eggert and Martin Lambers.
54390
54391 2006-06-27  Simon Josefsson  <jas@extundo.com>
54392
54393         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54394         Eggert and Martin Lambers.
54395
54396 2006-06-27  Bruno Haible  <bruno@clisp.org>
54397
54398         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54399         result to 0, not to empty.
54400         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54401
54402 2006-06-27  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54405
54406 2006-06-26  Simon Josefsson  <jas@extundo.com>
54407
54408         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54409         present.
54410
54411 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54412
54413         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54414         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54416
54417 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54418
54419         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54420
54421 2006-06-26  Bruno Haible  <bruno@clisp.org>
54422
54423         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54424
54425 2006-06-26  Bruno Haible  <bruno@clisp.org>
54426
54427         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54428
54429 2006-06-26  Bruno Haible  <bruno@clisp.org>
54430
54431         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54432         SGI C compiler in pre-C99 mode.
54433         Suggested by Mark D. Baushke and Larry Jones.
54434
54435 2006-06-26  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54438         WCHAR_MAX.
54439         Reported by Mark D. Baushke and Larry Jones.
54440
54441 2006-06-26  Bruno Haible  <bruno@clisp.org>
54442
54443         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54444         in pre-C99 mode.
54445         Suggested by Mark D. Baushke and Larry Jones.
54446
54447 2006-06-23  Simon Josefsson  <jas@extundo.com>
54448             Bruno Haible  <bruno@clisp.org>
54449
54450         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54451         Emit mostlyclean-local rule.
54452         (func_emit_tests_Makefile_am): Likewise.
54453         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54454
54455 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54456
54457         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54458
54459 2006-06-23  Bruno Haible  <bruno@clisp.org>
54460
54461         * tests/test-stdint.c: Update to match ISO C 99 Technical
54462         Corrigendum 1.
54463
54464 2006-06-23  Bruno Haible  <bruno@clisp.org>
54465
54466         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54467
54468 2006-06-23  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/stdint_.h: Treat IRIX like OpenBSD.
54471
54472 2006-06-23  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54475         ISO C 99 Technical Corrigendum 1.
54476
54477 2006-06-22  Simon Josefsson  <jas@extundo.com>
54478
54479         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54480         MinGW.
54481
54482 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54485         needed.  Some compiler complained about some of them.  Problem reported
54486         by Larry Jones in
54487         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54488
54489 2006-06-21  Simon Josefsson  <jas@extundo.com>
54490
54491         * tests/test-getaddrinfo.c: New file.
54492
54493         * modules/getaddrinfo-tests: New file.
54494
54495         * MODULES.html.sh: Add inet_pton.
54496
54497         * modules/inet_pton: New file.
54498
54499 2006-06-21  Simon Josefsson  <jas@extundo.com>
54500
54501         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54502         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54503         of using the (limited) gnulib implementation on Windows XP.
54504
54505         * m4/inet_pton.m4: New file.
54506
54507 2006-06-21  Simon Josefsson  <jas@extundo.com>
54508
54509         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54510         variable.
54511
54512         * lib/socket_.h: Don't define WINVER.
54513
54514         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54515         slightly modified to work in gnulib.
54516
54517 2006-06-21  Simon Josefsson  <jas@extundo.com>
54518
54519         * doc/gnulib.texi (Windows sockets): Add.
54520
54521 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54522
54523         * lib/read-file.c (fread_file): Start with buffer allocation of
54524         0 bytes rather than 1 byte; this simplifies the code.
54525         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54526         code to free buffer and save/restore errno.
54527         (internal_read_file): Remove unused local.
54528
54529 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54530
54531         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54532         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54533         Problem reported by Denis Excoffier in
54534         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54535
54536 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54537
54538         * modules/sys_socket, modules/socklen: Include sys/types since
54539         FreeBSD 4.x's sys/socket.h needs it.
54540
54541 2006-06-19  Simon Josefsson  <jas@extundo.com>
54542
54543         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54544
54545 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54548
54549 2006-06-19  Bruno Haible  <bruno@clisp.org>
54550
54551         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54552         and FULL_PATH_INTTYPES_H in angle brackets.
54553         Reported by Mark D. Baushke <mdb@gnu.org>.
54554
54555 2006-06-17  Eric Blake  <ebb9@byu.net>
54556
54557         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54558         errno.
54559
54560 2006-06-17  Bruno Haible  <bruno@clisp.org>
54561
54562         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54563         <sys/inttypes.h>.
54564
54565 2006-06-17  Bruno Haible  <bruno@clisp.org>
54566
54567         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54568         whether errno is declared. Assume <errno.h> declares errno.
54569
54570 2006-06-17  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54573
54574 2006-06-17  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54577         problem on Solaris 2.5.1.
54578
54579 2006-06-16  Eric Blake  <ebb9@byu.net>
54580
54581         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54582         * lib/unicodeio.c [!defined errno]: Likewise.
54583         * lib/strtol.c [!defined errno]: Likewise.
54584         * lib/strtod.c [!defined errno]: Likewise.
54585
54586 2006-06-15  Eric Blake  <ebb9@byu.net>
54587
54588         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54589
54590 2006-06-15  Eric Blake  <ebb9@byu.net>
54591
54592         * config/srclist.txt (ssize_t.m4): Lose sync.
54593
54594 2006-06-15  Bruno Haible  <bruno@clisp.org>
54595
54596         * modules/stdint (Files): Include m4/full-header-path.m4,
54597         m4/size_max.m4, m4/wchar_t.m4.
54598         (Makefile.am): Many more substitutions.
54599         * modules/stdint-tests: New file.
54600         * tests/test-stdint.c: New file.
54601
54602 2006-06-15  Bruno Haible  <bruno@clisp.org>
54603
54604         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54605         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54606         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54607         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54608         gl_CHECK_TYPE_SAME): New macros.
54609
54610 2006-06-15  Bruno Haible  <bruno@clisp.org>
54611
54612         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54613
54614 2006-06-15  Bruno Haible  <bruno@clisp.org>
54615
54616         * lib/stdint_.h: Rewritten to be fully auto-configured.
54617         Fixes bug on HP-UX/IA64.
54618
54619 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         * lib/getdate.y (__attribute__): Don't define if already defined.
54622         Problem reported by Larry Jones.
54623         * lib/utimens.c (__attribute__): Likewise.
54624
54625 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54626
54627         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54628         reported by Andreas Schwab.
54629
54630 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54631             Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54634         check for the declaration of strnlen and a run test that exposes the
54635         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54636         rpl_strndup.
54637
54638 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54639             Bruno Haible  <bruno@clisp.org>
54640
54641         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54642
54643 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54644
54645         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54646         compile test, for Tru64 4.0D.
54647
54648 2006-05-28  Karl Berry  <karl@gnu.org>
54649
54650         * config/srclist.txt (printf-args.c): lose sync.
54651
54652 2006-05-26  Martin Lambers  <marlam@marlam.de>
54653
54654         * lib/getpass.c: Updates the test for the native W32 API, and adds
54655         missing includes, thus fixing compilation warnings.
54656
54657 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54658
54659         * lib/exclude.c (exclude_fnmatch): New function.
54660         (excluded_file_name): Call exclude_fnmatch.
54661         * lib/exclude.h (excluded_file_name): New prototype
54662
54663 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54664
54665         * lib/tempname.c (small_open, large_open): New macros.
54666         (__open, __open64) [!_LIBC]: Remove.
54667         (__gen_tempname): Use small_open and large_open instead of __open
54668         and __open64.  This fixes a portability bug on HP-UX 11.11i
54669         reported by Simon Wing-Tang in
54670         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54671
54672 2006-05-24  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54675         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54676         Reported by Thorsten Maerz <torte@netztorte.de> via
54677         Aaron Stone <aaron@serendipity.cx>.
54678
54679 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54680
54681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54682         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54683         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54684         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54685         not really conditional on the cache.
54686         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54687
54688 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54691         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54692         (my_usleep): Don't mishandle maximum value.
54693
54694 2006-05-19  Jim Meyering  <jim@meyering.net>
54695
54696         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54697
54698 2006-05-17  Bruno Haible  <bruno@clisp.org>
54699
54700         Cygwin portability.
54701         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54702
54703 2006-05-17  Bruno Haible  <bruno@clisp.org>
54704
54705         * lib/stdint_.h: Fix recognition of Cygwin.
54706
54707 2006-05-15  Bruno Haible  <bruno@clisp.org>
54708
54709         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54710         on libtool patch by Ralf Wildenhues.
54711
54712 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54713
54714         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54715         test for C99 conformance; (bool) 0.5 is an integer constant
54716         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54717         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54718
54719 2006-05-11  Simon Josefsson  <jas@extundo.com>
54720
54721         * m4/xvasprintf.m4: Fix obvious typo.
54722
54723 2006-05-11  Jim Meyering  <jim@meyering.net>
54724
54725         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54726         James Lemley.
54727
54728 2006-05-10  Simon Josefsson  <jas@extundo.com>
54729
54730         * lib/md4.c: Typo fix, update copyright years.
54731         (K1, K2): Don't use L because it turn computations into 64-bit on
54732         64-bit platforms.
54733
54734 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54737         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54738         unwanted sign propagation, e.g., on hosts with 64-bit int.
54739         There still are some problems with reeelly weird theoretical hosts
54740         (e.g., 33-bit int) but it's not worth worrying about now.
54741         * lib/sha1.c (rol): Likewise.
54742         (K1, K2, K3, K4): Remove unnecessary L suffix.
54743
54744 2006-05-10  Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/des.c: Cast to avoid warnings.
54747
54748 2006-05-09  Bruno Haible  <bruno@clisp.org>
54749
54750         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54751         (Depends-on): Depend also on xsize, stdarg.
54752         (configure.ac): Add gl_XVASPRINTF.
54753
54754 2006-05-09  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/xvasprintf.m4: New file.
54757
54758 2006-05-09  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54761         (EOVERFLOW): Define fallback value.
54762         (xstrcat): New function.
54763         (xvasprintf): Recognize the special case of a string concatenation.
54764
54765 2006-05-08  Eric Blake  <ebb9@byu.net>
54766
54767         * gnulib-tool (func_version): Base copyright year on CVS date.
54768         (func_emit_copyright_notice): New function.
54769         (func_emit_lib_Makefile_am): Use it.
54770         (func_emit_tests_Makefile_am): Likewise.
54771         (func_import): Likewise.
54772
54773 2006-05-08  Bruno Haible  <bruno@clisp.org>
54774
54775         * modules/stdarg: New file.
54776         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54777
54778 2006-05-08  Bruno Haible  <bruno@clisp.org>
54779
54780         * m4/stdarg.m4: New file, from GNU gettext.
54781
54782 2006-05-08  Bruno Haible  <bruno@clisp.org>
54783
54784         * config/srclist.txt (build-aux/config.rpath): different from latest
54785         release.
54786
54787 2006-05-08  Bruno Haible  <bruno@clisp.org>
54788
54789         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54790
54791 2006-05-05  Jim Meyering  <jim@meyering.net>
54792
54793         * m4/warning.m4: New file, derived from bison's file by the same name.
54794
54795 2006-05-03  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/stdint_.h: Shorter URL.
54798         * lib/inttypes.h: Likewise.
54799
54800 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54801
54802         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54803
54804 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54805
54806         * lib/verify.h: Document the internals better.  Most of this change
54807         was written by Bruno Haible.
54808
54809 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54810
54811         * doc/verify.texi: New file, partly based on a proposal by
54812         Bruno Haible.
54813
54814 2006-05-02  Bruno Haible  <bruno@clisp.org>
54815
54816         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54817         test from here...
54818         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54819
54820 2006-04-29  Bruno Haible  <bruno@clisp.org>
54821
54822         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54823         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54824
54825 2006-04-29  Bruno Haible  <bruno@clisp.org>
54826
54827         * gnulib-tool: Make --update option actually work.
54828
54829 2006-04-29  Bruno Haible  <bruno@clisp.org>
54830
54831         * doc/gcd.texi: New file.
54832         * doc/gnulib.texi: Include it.
54833
54834 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54835
54836         * lib/getdate.y (get_date): When adding relative date, start with the
54837         initial time, not with the result of the first mktime call.
54838
54839 2006-04-25  Bruno Haible  <bruno@clisp.org>
54840
54841         * gnulib-tool (func_import): Output the include directives in three
54842         blocks, sorted separately.
54843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54844
54845 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54846
54847         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54848         to define main with arguments, for C++.  Reported by Eric Blake.
54849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54850         Prefer 'int main ()' to 'int main (void)', for C++.
54851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54853         for 'main', for C99 and C++.
54854
54855 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54858         Don't assume that exit status -1 is valid.
54859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54860         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54861         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54862         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54863         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54864         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54865         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54866         functions can be used without declaring them, or that you can
54867         exit with status -1.
54868         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54869
54870 2006-04-24  Karl Berry  <karl@gnu.org>
54871
54872         * config/srclist.txt (longdouble.m4): sync lost.
54873
54874 2006-04-24  Eric Blake  <ebb9@byu.net>
54875
54876         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54877
54878 2006-04-24  Bruno Haible  <bruno@clisp.org>
54879
54880         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54881         poll() implementation in AIX.
54882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54883
54884 2006-04-24  Bruno Haible  <bruno@clisp.org>
54885
54886         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54887         assigned exactly once.
54888
54889 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54890             Bruno Haible  <bruno@clisp.org>
54891
54892         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54893         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54894         for AM_CPPFLAGS.
54895
54896 2006-04-23  Bruno Haible  <bruno@clisp.org>
54897
54898         * modules/copy-file: Depend on unistd.
54899         * modules/execute: Likewise.
54900         * modules/fatal-signal: Likewise.
54901         * modules/findprog: Likewise.
54902         * modules/mkdtemp : Likewise.
54903         * modules/pipe: Likewise.
54904         * modules/wait-process: Likewise.
54905
54906 2006-04-23  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54909         condition was already detected.
54910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54911
54912 2006-04-23  Bruno Haible  <bruno@clisp.org>
54913
54914         * lib/copy-file.c: Include <unistd.h> unconditionally.
54915         * lib/execute.c: Likewise.
54916         * lib/fatal-signal.c: Likewise.
54917         * lib/findprog.c: Likewise.
54918         * lib/mkdtemp.c: Likewise.
54919         * lib/pipe.h: Likewise.
54920         * lib/pipe.c: Likewise.
54921         * lib/wait-process.h: Likewise.
54922
54923 2006-04-23  Bruno Haible  <bruno@clisp.org>
54924
54925         * gnulib-tool (func_usage): Fix --import description. Document
54926         --update.
54927         (func_import): Create temporary file in a temporary directory, if
54928         --dry-run is specified. Silence errors from 'grep' when there are no
54929         m4 files in $m4dir.
54930         (func_create_testdir): Silence errors from 'grep' when there are no
54931         m4 files in $m4dir.
54932         Reported by Karl Berry <karl@freefriends.org>.
54933
54934 2006-04-20  Bruno Haible  <bruno@clisp.org>
54935
54936         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54937         one argument, so that the code will be portable to Autoconf 2.60.
54938         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54939         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54940         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54941
54942 2006-04-19  Derek Price  <derek@ximbiot.com>
54943             Eric Blake  <ebb9@byu.net>
54944
54945         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54946         rather than "/full/path.h".  Update comment to match.  Shorten &
54947         generalize m4_translit call via AS_TR_CPP.
54948
54949 2006-04-19  Derek Price  <derek@ximbiot.com>
54950             Eric Blake  <ebb9@byu.net>
54951
54952         * lib/inttypes.h: Correct grammar in comment.
54953
54954 2006-04-18  Derek Price  <derek@ximbiot.com>
54955             Paul Eggert  <eggert@cs.ucla.edu>
54956
54957         * modules/inttypes: New file.
54958         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54959
54960 2006-04-18  Derek Price  <derek@ximbiot.com>
54961             Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54964         New files.
54965
54966 2006-04-18  Derek Price  <derek@ximbiot.com>
54967             Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         * lib/inttypes.h: New file.
54970         * lib/strtoimax.c: Assume <inttypes.h>.
54971
54972 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54973
54974         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54975         isn't mounted.  Problem reported by Kir Kolyshkin.
54976
54977 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54980         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54981         Derek R. Price.
54982         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54983         implementation.
54984
54985 2006-04-12  Eric Blake  <ebb9@byu.net>
54986
54987         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54988         is now done automatically by the corresponding Autoconf macro.
54989
54990 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54991
54992         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54993         time_r.h.
54994
54995 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54996
54997         Merge regex changes from libc, removing some of our
54998         POSIX-conformance changes that were rejected and redoing them in a
54999         less-intrusive way.
55000
55001         * lib/regcomp.c (re_compile_internal, init_dfa):
55002         Length arg is now size_t, not Idx.  All uses changed.
55003         (peek_token): Forward decl now says internal_function.
55004         (__re_error_msgid, __re_error_msgid_idx):
55005         Now static rather than extern with attribute_hidden.
55006         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
55007         For some reason libc prefers K&R style defns for external functions.
55008         (regerror) [!defined _LIBC]: Likewise.
55009         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
55010         (seek_collating_symbol_entry, lookup_collation_sequence_value):
55011         (build_range_exp, build_collating_symbol):
55012         Use K&R-style defn.
55013         (re_compile_fastmap): Use '\0' to memset, not 0.
55014         (utf8_sb_map): Make the calculations more obvious.
55015         (init_dfa, parse_bracket_exp, build_charclass_op):
55016         Call calloc and cast result, as glibc does.
55017         (init_word_char, fetch_token, peek_token, peek_token_bracket):
55018         (build_range_exp, build_collating_symbol):
55019         Now internal functions.
55020
55021         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
55022
55023         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
55024         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
55025         Don't depend on VMS; depend on __VMS instead, for POSIX
55026         namespace cleanness.
55027         (regoff_t): Define to ssize_t, not long int.
55028
55029         Remove the REG_ macros named below.  Instead, make the old names
55030         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
55031         __USE_GNU_REGEX.
55032         (REG_BACKSLASH_ESCAPE_IN_LISTS):
55033         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
55034         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
55035         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
55036         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
55037         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
55038         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
55039         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
55040         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
55041         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
55042         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
55043         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
55044         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
55045         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
55046         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
55047         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
55048         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
55049         (REG_NREGS):
55050         Remove.  All uses replaced by the old RE_* names.
55051         (RE_BACKSLASH_ESCAPE_IN_LISTS):
55052         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
55053         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
55054         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
55055         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
55056         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
55057         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
55058         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
55059         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
55060         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
55061         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
55062         Don't bother having these macros be independent of each others'
55063         values, since they no longer exist in the POSIX name space.
55064
55065         Rename the following member names back to their old names,
55066         unless !__USE_GNU_REGEX.  All uses changed back.
55067         (buffer): Renamed from re_buffer.
55068         (allocated): Renamed from re_allocated.
55069         (used): Renamed from re_used.
55070         (syntax): Renamed from re_syntax.
55071         (fastmap): Renamed from re_fastmap.
55072         (translate): Renamed from re_translate.
55073         (can_be_null): Renamed from re_can_be_null.
55074         (regs_allocated): Renamed from re_regs_allocated.
55075         (fastmap_accurate): Renamed from re_fastmap_accurate.
55076         (no_sub): Renamed from re_no_sub.
55077         (not_bol): Renamed from re_not_bol.
55078         (not_eol): Renamed from re_not_eol.
55079         (newline_anchor): Renamed from re_newline_anchor.
55080         (num_regs): Renamed from rm_num_regs.
55081         (start): Renamed from rm_start.
55082         (end): Renamed from rm_end.
55083
55084         (free_state): Move up a bit.
55085
55086         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
55087         #define to be empty.
55088         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
55089         when that is what is intended.
55090         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
55091         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
55092         (MAX): New macro.
55093         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
55094         All uses changed back to re_malloc, etc.  It's now the caller's
55095         responsibility to check for overflow; all callers changed.
55096         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
55097         (re_x2nrealloc): Remove.
55098         (free_state): Remove decl.
55099
55100         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
55101         (re_set_registers, re_exec):
55102         Use K&R-style defn.
55103
55104         2006-01-31  Roland McGrath  <roland@redhat.com>
55105
55106         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
55107         Reported by Mike Frysinger <vapier@gentoo.org>.
55108
55109         2006-01-15  Andreas Jaeger  <aj@suse.de>
55110
55111         [BZ #1950]
55112         * lib/regex_internal.c (re_string_reconstruct): Adjust for
55113         build_wcs_upper_buffer change.
55114         (build_wcs_upper_buffer): Change return type.
55115
55116         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55117
55118         * lib/regex_internal.h: Include <stdint.h> if available.
55119
55120         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55121
55122         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55123
55124         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55125
55126         * lib/regcomp.c: Adjust for changed secondary hash function.
55127
55128         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55129
55130         * lib/regex.h: Pretty printing.
55131         Clean up namespace a bit.
55132
55133         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55134
55135         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55136         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55137
55138         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55139                     Ulrich Drepper  <drepper@redhat.com>
55140
55141         [BZ #1302]
55142         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55143         changed.
55144         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55145
55146         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55147
55148         [BZ #281]
55149         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55150         * lib/regcomp.c: Remove unnecessary uses of
55151         unsigned RE_TRANSLATE_TYPE.
55152         * lib/regex_internal.h: Likewise.
55153         * lib/regex_internal.c: Likewise.
55154         * lib/regexec.c: Likewise.
55155         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55156
55157         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55158
55159         * lib/regexec.c (find_recover_state): Remove unnecessary
55160         initialization.
55161         (transit_state_bkref): Make DFA a const pointer.
55162         (get_subexp): Likewise.
55163         (check_arrival): Likewise.
55164         (update_cur_sifted_state): Likewise.
55165         (re_search_internal): Likewise.
55166         (prune_impossible_nodes): Likewise.
55167         (acquire_init_state_context): Likewise.
55168         (proceed_next_node): Likewise.
55169         (set_regs): Likewise.
55170         (free_fail_stack_return): Likewise.
55171         (check_arrival_expand_ecl): Mark DFA parameter as const.
55172         (check_arrival_expand_ecl_sub): Likewise.
55173         (check_subexp_limits): Likewise.
55174         (sub_epsilon_src_nodes):  Likewise.
55175         (add_epsilon_src_nodes):  Likewise.
55176         (merge_state_array): Likewise.
55177         (update_regs): Likewise.
55178         (build_trtable): Likewise.
55179         (sift_states_backward): Mark MCTX parameter as const.
55180         (build_sifted_states): Likewise.
55181         (update_cur_sifted_state): Likewise.
55182         (sift_states_mkref): Likewise.
55183         (check_arrival_expand_ecl): Mark eclosure as const.
55184         (check_dst_limits_calc_pos_1): Likewise.
55185         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55186         pointer.
55187
55188         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55189
55190         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55191         (transit_state_sb): Likewise.
55192         (transit_state_mb): Likewise.
55193         (sift_states_iter_mb): Likewise.
55194         (check_arrival_add_next_nodes): Likewise.
55195         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55196         [_LIBC] (re_search_2_stub): Use mempcpy.
55197
55198         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55199         mbrtowc for very simple UTF-8 case.
55200
55201         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55202         a pointer-to-const.
55203         (re_acquire_state_context): Likewise.
55204         * lib/regex_internal.h: Adjust prototypes.
55205
55206         * lib/regex.c: Prevent using C++ compilers.
55207
55208         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55209         (re_acquire_state_context): Likewise.
55210
55211 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55212
55213         * modules/regex (Depends-on): Add ssize_t.
55214
55215 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55216
55217         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55218         translation table.
55219
55220 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55221
55222         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55223
55224 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55225             Bruno Haible  <bruno@clisp.org>
55226
55227         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55228         <sys/types.h> and <inttypes.h>.
55229
55230 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55231
55232         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55233         `__error_t_defined', so argp.h will not typedef the former.
55234
55235 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55238         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55239         glibc names.  Even if glibc is changed to conform to POSIX, the
55240         traditional names will be available anyway, since regex depends on
55241         the extensions module.  Also, fix a longstanding typo in the
55242         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55243         reported by Emanuele Giaquinta.  Also, change sense of cached
55244         variable, so that the message makes sense.
55245
55246 2006-03-24  Simon Josefsson  <jas@extundo.com>
55247
55248         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55249         including some doc fixes.
55250         (base64_encode_alloc): Fix +1 bug on allocation failures.
55251
55252 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55253
55254         * lib/base64.c (base64_encode): Do not read past end of array with
55255         unsanitized input on systems with CHAR_BIT > 8.
55256
55257 2006-03-24  Eric Blake  <ebb9@byu.net>
55258
55259         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55260
55261 2006-03-22  Karl Berry  <karl@gnu.org>
55262
55263         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55264         * config/srclistvars.sh (COREUTILS): new var.
55265
55266 2006-03-17  Jim Meyering  <jim@meyering.net>
55267
55268         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55269         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55270
55271 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55274         no longer needs it.  Instead, check that regoff_t is as least
55275         as wide as ptrdiff_t.
55276
55277         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55278         so that our regex.h stays compatible with the installed regex.
55279         This is helpful for installers who configure --without-included-regex.
55280         Problem reported by Emanuele Giaquinta.
55281
55282 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55285         Typedef to long int, not to off_, as POSIX will likely change
55286         in that direction.
55287
55288 2006-03-15  Eric Blake  <ebb9@byu.net>
55289
55290         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55291
55292 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55293
55294         * lib/argp-help.c (validate_uparams): Fix typo
55295         * lib/argp-parse.c (argp_default_options): Consistently begin help
55296         messages with a lowercase letter.
55297
55298 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55301         overrun buffers and shouldn't be used (much as gets shouldn't be
55302         used).
55303         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55304
55305 2006-03-08  Simon Josefsson  <jas@extundo.com>
55306
55307         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55308         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55309
55310 2006-03-08  Simon Josefsson  <jas@extundo.com>
55311
55312         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55313         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55314
55315 2006-03-08  Simon Josefsson  <jas@extundo.com>
55316
55317         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55318         signal that configure disabled the device.
55319
55320 2006-03-08  Simon Josefsson  <jas@extundo.com>
55321
55322         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55323         languages.
55324
55325 2006-03-07  Simon Josefsson  <jas@extundo.com>
55326
55327         * modules/getopt (Depends-on): Add unistd.
55328
55329         * modules/unistd: New file.
55330
55331 2006-03-07  Simon Josefsson  <jas@extundo.com>
55332
55333         * modules/gc-random: New file.
55334
55335 2006-03-07  Simon Josefsson  <jas@extundo.com>
55336
55337         * m4/unistd_h.m4: New file.
55338
55339 2006-03-07  Simon Josefsson  <jas@extundo.com>
55340
55341         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55342         test to be side-effect free by storing the result in the cache
55343         variable gl_cv_lib_readline, and moving the assignment of
55344         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55345         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55346
55347 2006-03-07  Simon Josefsson  <jas@extundo.com>
55348
55349         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55350         error on missing devices (the functions will return an error).
55351
55352         * m4/gc.m4: Move random stuff to gc-random.m4
55353
55354 2006-03-07  Simon Josefsson  <jas@extundo.com>
55355
55356         * lib/unistd_.h: New file.
55357
55358 2006-03-07  Simon Josefsson  <jas@extundo.com>
55359
55360         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55361
55362 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55363
55364         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55365         Problem reported by Juan Manuel Guerrero.
55366
55367 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55368
55369         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55370         the unistd module.
55371         * lib/getlogin_r.c: Likewise.
55372         * lib/getlogin_r.h: Likewise.
55373         * lib/glob.c: Likewise.
55374         * lib/pagealign_alloc.c: Likewise.
55375         * lib/unistd_.h: Remove; no longer needed.
55376
55377 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55378
55379         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55380         Add unistd.
55381         * modules/c-stack (Depends-on): Add unistd.
55382         * modules/getlogin_r: Likewise.
55383         * modules/glob: Likewise.
55384         * modules/pagealign_alloc: Likewise.
55385         * modules/unistd (Files): Remove lib/unistd_.h.
55386         (EXTRA_DIST): Remove.
55387         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55388         need unistd_.h.
55389         (MOSTLYCLEANFILES): Remove unistd.h-t.
55390
55391 2006-03-03  Simon Josefsson  <jas@extundo.com>
55392
55393         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55394
55395 2006-03-03  Simon Josefsson  <jas@extundo.com>
55396
55397         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55398         libidn and bison.
55399
55400 2006-03-03  Simon Josefsson  <jas@extundo.com>
55401
55402         * build-aux/maint.mk: Add indent target.
55403
55404 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55405
55406         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55407         our replacement poll.h in any case, to avoid a differing
55408         declaration from a system header.  Seen on AIX.
55409
55410 2006-03-01  Simon Josefsson  <jas@extundo.com>
55411
55412         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55413         <kasal@ucw.cz>.
55414
55415 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * modules/gettime (Depends-on): Add extensions module.
55418         * modules/nanosleep (Depends-on): Likewise.
55419         * modules/settime (Depends-on): Likewise.
55420
55421 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55422
55423         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55424         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55425         pedantically.
55426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55427         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55428
55429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55430         not "==".  Reported by Ralf Wildenhues.
55431
55432 2006-03-01  Karl Berry  <karl@gnu.org>
55433
55434         * doc/Copyright/request-*: new files, synced from gnuorg.
55435
55436 2006-03-01  Karl Berry  <karl@gnu.org>
55437
55438         * config/srclist.txt (Copyright/*): new entries.
55439
55440 2006-02-28  Simon Josefsson  <jas@extundo.com>
55441
55442         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55443
55444 2006-02-27  Simon Josefsson  <jas@extundo.com>
55445
55446         * lib/base64.h: Indent #define's.  From Jim Meyering
55447         <jim@meyering.net>.
55448
55449 2006-02-27  Jim Meyering  <jim@meyering.net>
55450
55451         Revert the change of 2006-02-24, so these files can continue
55452         to be sync'd from gettext.
55453         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55454         of `config.h'.
55455
55456 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         * modules/intprops: New file.
55459         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55460         Add intprops.
55461         * modules/getloadavg (Files): Remove lib/intprops.h.
55462         (Depends-on): Add intprops.
55463         * modules/human: Likewise.
55464         * modules/inttostr: Likewise.
55465         * modules/openat: Likewise.
55466         * modules/sig2str: Likewise.
55467         * modules/userspec: Likewise.
55468         * modules/utimecmp: Likewise.
55469         * modules/xnanosleep: Likewise.
55470         * modules/xstrtol: Likewise.
55471
55472 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55473
55474         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55475         * modules/lock-tests (TESTS): Use $(EXEEXT).
55476         * modules/tls-tests: Likewise.
55477         * modules/argp-tests: Likewise.
55478         (check_PROGRAMS): New var, replacing...
55479         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55480
55481 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55482
55483         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55484         `config.h'.
55485
55486 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55487
55488         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55489
55490 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55491
55492         Sync from coreutils.
55493         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55494         gl_CHDIR_SAFER.
55495
55496 2006-02-22  Jim Meyering  <jim@meyering.net>
55497
55498         Sync from coreutils.
55499         * m4/chdir-safer.m4: New file.
55500
55501 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55504         AT_FDCWD exceeds INT_MAX.
55505         * lib/openat.h (AT_FDCWD): Likewise.
55506
55507 2006-02-17  Eric Blake  <address@hidden>
55508
55509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55510
55511 2006-02-16  Simon Josefsson  <jas@extundo.com>
55512
55513         * modules/getaddrinfo (Depends-on): Add sys_socket.
55514
55515 2006-02-15  Simon Josefsson  <jas@extundo.com>
55516
55517         * build-aux/maint.mk: Add dsyntax-check rule.
55518
55519 2006-02-15  Eric Blake  <ebb9@byu.net>
55520
55521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55522         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55523         'present but cannot compile' warnings on cygwin.
55524         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55525         use ws2tcpip.h if sys/socket.h works.
55526         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55527         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55528
55529 2006-02-14  Simon Josefsson  <jas@extundo.com>
55530
55531         * modules/maintainer-makefile (Files): Rename.
55532
55533         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55534         and (the local) Makefile.cfg to maint-cfg.mk.
55535
55536         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55537         to the latter.
55538
55539         * modules/maintainer-makefile: New module.
55540
55541         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55542         severaly stripped to make it possible to build it up from scratch
55543         with reliable tests.
55544
55545         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55546         fixes to permit overriding the default actions when configure and
55547         makefile are not available.
55548
55549 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55550
55551         Sync from coreutils.
55552         * modules/lstat (Depends-on): Don't depend on xalloc.
55553         (License): Change from GPL to LGPL, since this is now simply a
55554         replacement for a libc function.
55555
55556 2006-02-14  Jim Meyering  <jim@meyering.net>
55557
55558         Sync from coreutils.
55559
55560         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55561         failure on deficient systems, and simplify gnulib lgpl dependencies.
55562         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55563         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55564
55565         * lib/xalloc-die.c: Remove unused definition of N_.
55566
55567 2006-02-14  Jim Meyering  <jim@meyering.net>
55568
55569         Sync from coreutils.
55570         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55571         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55572         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55573         double-quote uses of that variable, to accommodate the rare case in
55574         which getmntent is available in none of the libraries checked.  This
55575         happens at least on FreeBSD 5.0.
55576
55577 2006-02-13  Simon Josefsson  <jas@extundo.com>
55578
55579         * gnulib-tool (Usage): Fix --import, from
55580         karl@freefriends.org (Karl Berry).
55581
55582 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55583
55584         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55585
55586 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55587
55588         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55589         "autoupdate" on 2005-12-12.
55590
55591 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55592
55593         * modules/closeout (Depends-on): Remove atexit.
55594
55595 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55598         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55599
55600 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55601
55602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55603         __EXTENSIONS__ if this causes compilation to fail.  Problem
55604         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55605         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55606
55607 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55608
55609         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55610         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55612         All uses changed.
55613
55614 2006-01-26  Simon Josefsson  <jas@extundo.com>
55615
55616         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55617         prototype is visible on mingw32.
55618
55619         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55620         for mingw32.
55621
55622         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55623         mingw32).
55624
55625 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55626
55627         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55628         attempt to open for write; this always fails, at least on POSIX
55629         hosts.  This reinstates the 2006-01-09 change, which was
55630         inadvertently removed.
55631
55632 2006-01-26  Bruno Haible  <bruno@clisp.org>
55633
55634         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55635         Reported by Paul Eggert.
55636
55637 2006-01-26  Bruno Haible  <bruno@clisp.org>
55638             Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         * lib/stdbool_.h (_Bool)
55641         [(! (defined __cplusplus || defined __BEOS__)
55642           && !defined __GNUC__
55643           && !(defined __HP_cc || defined __xlc__
55644                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55645                || defined __sgi))]:
55646         #define to signed char in these cases too; this simplifies
55647         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55648         etc., separately) and makes it more conservative.
55649
55650 2006-01-25  Simon Josefsson  <jas@extundo.com>
55651
55652         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55653         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55654         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55655
55656 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55657
55658         * lib/argp-namefrob.h: Bugfix. Remove stray #
55659
55660 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55663         so that we test the test.
55664         Check for yet another HP-UX cc bug involving *bool |= bool.
55665
55666 2006-01-25  Karl Berry  <karl@gnu.org>
55667
55668         * config/srclist.txt (vasnprintf.c): sync lost.
55669
55670 2006-01-25  Jim Meyering  <jim@meyering.net>
55671
55672         Sync from the stable (b5) branch of coreutils:
55673
55674         * lib/fts.c (fts_children): Don't let close() clobber errno from
55675         failed fchdir().
55676
55677         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55678         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55679         a dangling symlink.  That can also happen at least for ELOOP.
55680         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55681         FYI, this bug predates the inclusion of fts.c in coreutils.
55682
55683         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55684         in their own block, so pre-c99 compilers don't object.
55685
55686         Avoid the double-free (first in fts_read, second in fts_close) that
55687         would occur when an `active' directory is made inaccessible (e.g.,
55688         via chmod a-x) during a traversal.
55689         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55690         before returning.  Reproduce this failure by
55691         mkdir -p a/b; cd a; chmod a-x . b
55692         Reported by Stavros Passas.
55693
55694 2006-01-25  Jim Meyering  <jim@meyering.net>
55695
55696         * lib/fileblocks.c: Remove more useless parentheses.
55697         * lib/readutmp.h: Likewise.
55698
55699 2006-01-25  Bruno Haible  <bruno@clisp.org>
55700
55701         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55702         warnings.
55703         Reported by Paul Eggert.
55704
55705 2006-01-25  Bruno Haible  <bruno@clisp.org>
55706
55707         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55708         rid of a trap command. For Solaris sh.
55709         Reported by Mark D. Baushke <mdb@gnu.org>.
55710
55711 2006-01-24  Simon Josefsson  <jas@extundo.com>
55712
55713         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55714         Bruno.
55715
55716 2006-01-24  Karl Berry  <karl@gnu.org>
55717
55718         * config/srclist.txt (argp-namefrob.h): sync lost.
55719
55720 2006-01-24  Jim Meyering  <jim@meyering.net>
55721
55722         * modules/openat (Files): Add lib/intprops.h.
55723         From Mark D. Baushke.
55724
55725 2006-01-24  Jim Meyering  <jim@meyering.net>
55726
55727         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55728         Reported by Mark D. Baushke.
55729
55730 2006-01-24  Jim Meyering  <jim@meyering.net>
55731
55732         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55733
55734 2006-01-24  Bruno Haible  <bruno@clisp.org>
55735
55736         * modules/strnlen (Maintainer): Change from glibc to all.
55737
55738 2006-01-24  Bruno Haible  <bruno@clisp.org>
55739
55740         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55741         Patch by Paul Eggert.
55742
55743 2006-01-24  Bruno Haible  <bruno@clisp.org>
55744
55745         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55746         already has it.
55747         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55748         2005-11-26.
55749
55750         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55751         'signed char' to avoid problems with the built-in _Bool type.
55752         Reported by Paul Eggert on 2005-11-26.
55753
55754 2006-01-24  Bruno Haible  <bruno@clisp.org>
55755
55756         * gnulib-tool (func_import): Avoid constructing complicated sed
55757         expressions inside backquote.
55758         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55759
55760 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55761
55762         These changes imported from libc.
55763         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55764         test and two separate function calls.
55765         * lib/strndup.c (__strndup): Add libc_hidden_def.
55766
55767 2006-01-23  Simon Josefsson  <jas@extundo.com>
55768
55769         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55770         Remove the test_*_SOURCES variable: automake infers it by default.
55771         * modules/tls-tests: Likewise.
55772
55773 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55774
55775         Work around porting bugs reported by Dieter in
55776         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55777         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55778         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55779         Include "getopt.h" first, to check interface.
55780         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55781         !HAVE_DECL_GETENV.
55782         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55783         (__strndup): Revert to K&R-style function dfns, the glibc style.
55784         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55785         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55786         Include strnlen.h first, to get prototype properly.
55787         (strnlen): Renamed from __strnlen.
55788         Remove weak alias.
55789
55790 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55793
55794 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55795
55796         * config/srclist.txt: Adjust to reflect glibc reorganization.
55797         This affects only comments.
55798
55799 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55800
55801          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55802          Reported by Bruce Korb <bkorb@gnu.org>.
55803
55804 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55807         to pacify gcc -Wswitch-default.
55808
55809 2006-01-22  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55812         temporary buffer for sprintf, take into account the precision also
55813         for 'd', 'i', 'u', 'o', 'x', 'X'.
55814
55815 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55816
55817         * modules/argp-tests: New module
55818         * tests/test-argp.c: New file
55819         * tests/test-argp-2.sh: New file
55820
55821 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55822
55823         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55824         (__argp_base_name): Removed
55825         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55826         typo.
55827         (__argp_base_name): Provide macro definition or extern declaration
55828         depending on the configuration
55829
55830 2006-01-20  Simon Josefsson  <jas@extundo.com>
55831
55832         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55833
55834 2006-01-20  Simon Josefsson  <jas@extundo.com>
55835
55836         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55837
55838 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55839
55840         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55841         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55842         Suggested by Bruno Haible.
55843
55844 2006-01-20  Karl Berry  <karl@gnu.org>
55845
55846         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55847         until changes propagate, I guess.
55848
55849 2006-01-19  Simon Josefsson  <jas@extundo.com>
55850
55851         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55852
55853 2006-01-19  Simon Josefsson  <jas@extundo.com>
55854
55855         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55856
55857 2006-01-19  Simon Josefsson  <jas@extundo.com>
55858
55859         * gnulib-tool: Set check_PROGRAMS.
55860
55861         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55862         modules/des-tests, modules/gc-arcfour-tests,
55863         modules/gc-arctwo-tests, modules/gc-des-tests,
55864         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55865         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55866         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55867         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55868         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55869         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55870         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55871         test_*_SOURCES.
55872
55873 2006-01-18  Simon Josefsson  <jas@extundo.com>
55874
55875         * modules/socklen (Depends-on): Depend on sys_socket.
55876
55877 2006-01-18  Simon Josefsson  <jas@extundo.com>
55878
55879         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55880         modules/des-tests, modules/gc-arcfour-tests,
55881         modules/gc-arctwo-tests, modules/gc-des-tests,
55882         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55883         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55884         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55885         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55886         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55887         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55888         $(EXEEXT) to automake TESTS variable, for mingw32.
55889
55890 2006-01-17  Simon Josefsson  <jas@extundo.com>
55891
55892         * modules/socklen (Include): Need sys/socket.h.
55893
55894 2006-01-17  Bruno Haible  <bruno@clisp.org>
55895
55896         * modules/ssize_t (Include): Add <sys/types.h>.
55897
55898 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55901         it's not portable and it doesn't work with cross-compiles.
55902         Problem reported by Bruno Haible.  Fix missing-$ typo in
55903         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55904         -zignore from being used with Sun's C compiler.
55905
55906 2006-01-12  Simon Josefsson  <jas@extundo.com>
55907
55908         * lib/base64.c: Fix warning, reported by Bruno Haible
55909         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55910
55911 2006-01-12  Bruno Haible  <bruno@clisp.org>
55912
55913         * modules/ldd: New file.
55914         * build-aux/ldd.sh.in: New file.
55915         * MODULES.html.sh (Support for building libraries and executables): Add
55916         ldd.
55917
55918 2006-01-12  Bruno Haible  <bruno@clisp.org>
55919
55920         * m4/ldd.m4: New file.
55921
55922 2006-01-12  Bruno Haible  <bruno@clisp.org>
55923
55924         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55925         endless loop while replacing $auxdir with build-aux.
55926
55927 2006-01-11  Simon Josefsson  <jas@extundo.com>
55928
55929         * lib/stdint_.h (SIZE_MAX): Add missing (.
55930
55931 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55932
55933         Sync from coreutils.
55934         * lib/md5.c: Fix commentary typos.
55935         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55936         * lib/md5.h (__attribute__): Remove; unused.
55937         * lib/sha1.c: Fix commentary to match md5 better.
55938         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55939         so that we don't need to worry about alignment.  All uses changed.
55940         This merges the 2005-10-28 md5 change into sha1.
55941
55942 2006-01-11  Jim Meyering  <jim@meyering.net>
55943
55944         Sync from coreutils.
55945         * lib/md5.c (OP): Fix spacing.
55946
55947 2006-01-11  Bruno Haible  <bruno@clisp.org>
55948
55949         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55950         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55951         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55952
55953 2006-01-11  Bruno Haible  <bruno@clisp.org>
55954
55955         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55956         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55957         the "early" section as well.
55958
55959 2006-01-11  Bruno Haible  <bruno@clisp.org>
55960
55961         Avoid "ar: no archive members specified" error on MacOS X.
55962         * gnulib-tool (func_modules_add_dummy): New function.
55963         (func_import, func_create_testdir): Invoke it.
55964
55965 2006-01-11  Bruno Haible  <bruno@clisp.org>
55966
55967         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55968         with $auxdir in AC_CONFIG_FILES statements.
55969
55970 2006-01-11  Bruno Haible  <bruno@clisp.org>
55971
55972         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55973         Initialize also noinst_HEADERS to empty.
55974
55975 2006-01-11  Bruno Haible  <bruno@clisp.org>
55976
55977         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55978         variables.
55979         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55980         autoreconf.
55981
55982 2006-01-11  Bruno Haible  <bruno@clisp.org>
55983
55984         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55985         overridable by the user.
55986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55987
55988 2006-01-10  Simon Josefsson  <jas@extundo.com>
55989
55990         * modules/sys_socket: New file.
55991
55992 2006-01-10  Simon Josefsson  <jas@extundo.com>
55993
55994         * m4/sys_socket_h.m4: New file.
55995
55996 2006-01-10  Simon Josefsson  <jas@extundo.com>
55997
55998         * lib/socket_.h: New file.
55999
56000 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56001
56002         * modules/readutmp (Maintainer): Add myself.
56003
56004 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56005
56006         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
56007         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
56008         People who are still concerned with buggy memcmp implementations
56009         can invoke gl_FUNC_MEMCMP themselves.
56010
56011 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56012
56013         * lib/regex_internal.h (BITSET_WORD_BITS):
56014         Work around a bug in 64-bit PGC (before version 6.1-2), where the
56015         preprocessor mishandles large unsigned values as if they were signed.
56016         Problem reported by Claudio Fontana in
56017         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
56018
56019 2006-01-10  Jim Meyering  <jim@meyering.net>
56020
56021         Avoid the double-free (first in fts_read, second in fts_close) that
56022         would occur when an `active' directory is made inaccessible (e.g.,
56023         via chmod a-x) during a traversal.
56024         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56025         before returning.  Reproduce this failure by
56026         mkdir -p a/b; cd a; chmod a-x . b
56027         Reported by Stavros Passas.
56028
56029         Sync from coreutils.
56030         * lib/sha1.c: Tweak grammar in a comment.
56031
56032 2006-01-10  Jim Meyering  <jim@meyering.net>
56033
56034         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
56035         Patch by Joerg Sonnenberger.
56036
56037 2006-01-10  Bruno Haible  <bruno@clisp.org>
56038
56039         * modules/readutmp: Depend on module free.
56040         * modules/strtok_r: Depend on module restrict.
56041
56042 2006-01-10  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/gettext (configure.ac): Add an invocation of
56045         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
56046
56047 2006-01-10  Bruno Haible  <bruno@clisp.org>
56048
56049         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
56050         Reported by Werner Lemberg <wl@gnu.org>.
56051
56052 2006-01-10  Bruno Haible  <bruno@clisp.org>
56053
56054         * lib/localcharset.c: Update from GNU gettext.
56055
56056 2006-01-10  Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/argp.h (__const): Remove macro. Use const instead.
56059         * lib/argp-fmtstream.h (__const): Likewise.
56060         * lib/glob_.h (__const): Remove macro.
56061         * lib/glob-libc.h: Use const instead of __const.
56062
56063 2006-01-10  Bruno Haible  <bruno@clisp.org>
56064
56065         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
56066         variable.
56067         Needed to avoid an automake error regarding the 'gettext' module.
56068
56069 2006-01-09  Simon Josefsson  <jas@extundo.com>
56070
56071         * modules/inet_ntop (Depends-on): Add restrict.
56072
56073 2006-01-09  Simon Josefsson  <jas@extundo.com>
56074
56075         * modules/gc-rijndael-tests (License): Put under LGPL.
56076
56077         * modules/gc-des-tests (License): Likewise.
56078
56079         * modules/gc-arcfour-tests (License): Likewise.
56080
56081         * modules/gc-arctwo-tests (License): Likewise.
56082
56083         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
56084
56085         * modules/gc-hmac-sha1-tests (Files): Likewise.
56086
56087         * modules/gc-hmac-md5-tests (License): Likewise.
56088
56089         * modules/gc-sha1-tests (License): Likewise.
56090
56091         * modules/gc-md5-tests (License): Likewise.
56092
56093         * modules/gc-md4-tests (License): Likewise.
56094
56095         * modules/gc-md2-tests (License): Likewise.
56096
56097         * modules/gc-tests (License): Likewise.
56098
56099         * modules/des-tests (License): Likewise.
56100
56101         * modules/md4-tests (License): Likewise.
56102
56103         * modules/md2-tests (License): Likewise.
56104
56105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56106
56107         Sync from coreutils:
56108
56109         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
56110         * modules/lib-ignore: New file.
56111         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
56112         chdir-safer.m4, lchmod.m4.
56113         * modules/openat: Add mkdirat.c, openat-priv.h.
56114
56115 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56116
56117         Sync from coreutils.
56118         * m4/lib-ignore.m4: New file.
56119         * m4/lchmod.m4: New file.
56120
56121 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         Sync from coreutils.
56124         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56125         for write access: POSIX says that must fail.
56126         * lib/fts.c (diropen): Likewise.
56127         * lib/save-cwd.c (save_cwd): Likewise.
56128         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56129         well, for minor improvements on hosts that lack O_DIRECTORY.
56130         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56131         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56132         Fall back on chown if open failed with EACCES.
56133
56134         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56135         Report an error at compile-time if only a 1-second nominal clock
56136         resolution is found.
56137
56138         * lib/lchmod.h: New file.
56139         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56140         (make_dir_parents): Use lchown rather than chown, and
56141         lchmod rather than chmod.
56142
56143         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56144         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56145         "proc" reported by n0dalus.
56146
56147         * lib/mountlist.c: Include <limits.h>.
56148         (dev_from_mount_options)
56149         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56150         New function.  It no longer assumes "dev=" has the System V meaning
56151         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56152         (read_file_system_list)
56153         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56154         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56155         dev= in that case.
56156
56157         * lib/posixtm.h (PDS_PRE_2000): New macro.
56158         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56159         allow_century.  All usages changed.  Reject dates outside the range
56160         1969-1999 if PDS_PRE_2000 is used.
56161
56162 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56163
56164         Sync from coreutils.
56165         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56166         (Time of day items): Mention the possibility of leap seconds.
56167         Problem reported by Dr. David Alan Gilbert.
56168
56169 2006-01-09  Jim Meyering  <jim@meyering.net>
56170
56171         Sync from coreutils.
56172
56173         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56174
56175         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56176
56177         * lib/modechange.c (mode_compile): Reject an invalid mode string
56178         that starts with an octal digit.  From Andreas Gruenbacher.
56179
56180         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56181         and dup to open_safer and dup_safer, respectively.
56182         (openat_permissive): Fix typo in comment.
56183
56184         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56185         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56186         (_): Remove; no longer needed.
56187         (openat): Renamed from rpl_openat; no need for rpl_openat
56188         since openat.h renames openat for us.
56189         Replace most of the body with a call to openat_permissive,
56190         to avoid duplicate code.
56191         Port to (probably hypothetical) environments were mode_t is
56192         wider than int.
56193         (openat_permissive): Require mode arg, so that we can check
56194         types better.  Put it just after flags.  Change cwd failure
56195         indicator from pointer-to-bool to pointer-to-errno-value.
56196         All callers changed.
56197         Invoke openat_save_fail and/or openat_restore_fail if
56198         cwd_errno is null, so that openat can call us.
56199         (openat_permissive, fdopendir, fstatat, unlinkat):
56200         Simplify errno handling to avoid some duplicate code,
56201         as it's OK to set errno on success.
56202         * lib/openat.h: Revamp code so that function macros depend on
56203         __OPENAT_PREFIX only, not also on AT_FDCWD.
56204         (openat_ro): Remove.  Caller changed to use openat_permissive.
56205         (openat_permissive): Now a macro, if not a function.
56206         (openat_restore_fail, openat_save_fail): Now always functions,
56207         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56208
56209         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56210         and openat.c.
56211         * lib/mkdirat.c: Include openat-priv.h.
56212         Remove definitions of macros defined therein.
56213         * lib/openat.c: Likewise.
56214
56215         * lib/mkdirat.c (mkdirat): New file and function.
56216         * lib/openat.h (mkdirat): Declare.
56217
56218         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56219
56220         * lib/openat.h (openat_permissive): Declare.
56221         (openat_ro): Define.
56222
56223         * lib/openat.c (EXPECTED_ERRNO): New macro.
56224         (openat_permissive): New function -- used in remove.c rewrite.
56225         (all functions): Set errno just before returning, only if there
56226         was an actual failure.
56227         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56228
56229         Emulate openat-family functions using Linux's procfs, if possible.
56230         Idea and some code based on Ulrich Drepper's glibc changes.
56231
56232         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56233         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56234         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56235         before falling back on save_cwd and restore_cwd.
56236         (fdopendir, fstatat, unlinkat): Likewise.
56237
56238         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56239         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56240
56241         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56242         as second argument to va_arg.  Otherwise, some versions of gcc
56243         warn that `if this code is reached, the program will abort'.
56244
56245 2006-01-09  Jim Meyering  <jim@meyering.net>
56246
56247         Sync from coreutils.
56248         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56249         Require openat-priv.h.
56250
56251 2006-01-09  Bruno Haible  <bruno@clisp.org>
56252
56253         * modules/strnlen (Include): Use strnlen.h.
56254
56255 2006-01-09  Bruno Haible  <bruno@clisp.org>
56256
56257         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56258
56259 2006-01-09  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/sysexit_.h (EX_OK): New macro.
56262         Suggested by Martin Lambers <marlam@marlam.de>.
56263
56264 2006-01-09  Bruno Haible  <bruno@clisp.org>
56265
56266         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56267         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56268
56269 2006-01-09  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56272         numbers.
56273
56274 2006-01-09  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56277         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56278         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56279         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56280
56281 2006-01-09  Bruno Haible  <bruno@clisp.org>
56282
56283         * build-aux/javacomp.sh.in: New file, moved from lib/.
56284         * modules/javacomp-script (Files): Update.
56285         (configure.ac): Add AC_CONFIG_FILES invocation.
56286         (EXTRA_DIST): Remove variable.
56287
56288         * build-aux/javaexec.sh.in: New file, moved from lib/.
56289         * modules/javaexec (Files): Update.
56290         (configure.ac): Add AC_CONFIG_FILES invocation.
56291         (EXTRA_DIST): Remove javaexec.sh.in.
56292
56293         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56294         * modules/csharpcomp-script (Files): Update.
56295         (configure.ac): Add AC_CONFIG_FILES invocation.
56296         (EXTRA_DIST): Remove variable.
56297
56298         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56299         * modules/csharpexec (Files): Update.
56300         (configure.ac): Add AC_CONFIG_FILES invocation.
56301         (EXTRA_DIST): Remove csharpexec.sh.in.
56302
56303 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56304
56305         Sync from coreutils.
56306
56307         Add POSIX ACL support
56308         * lib/acl.h (copy_acl, set_acl): Add declarations.
56309         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56310         systems other than Linux.
56311         (chmod_or_fchmod): New function: use fchmod when possible,
56312         and chmod otherwise.
56313         (file_has_acl): Add a POSIX ACL implementation, with a
56314         Linux-specific subcase.
56315         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56316         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56317         acls are unsupported.
56318         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56319         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56320         are unsupported.
56321
56322 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56323
56324         Sync from coreutils.
56325         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56326
56327 2006-01-07  Bruno Haible  <bruno@clisp.org>
56328
56329         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56330         gl_EARLY.
56331
56332 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56333
56334         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56335         Problem reported for Mingw by Mark Junker.
56336
56337 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56338
56339         * README: Gnulib normally doesn't generate a tarball.
56340
56341 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56342
56343         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56344         long int, not int, for nanosecond counts, so that people who are
56345         used to POSIX struct timespec won't be surprised.  Reported by Jim
56346         Meyering.
56347
56348 2005-12-28  Bruno Haible  <bruno@clisp.org>
56349
56350         * build-aux/config.rpath: Update from GNU gettext.
56351
56352 2005-12-16  Jim Meyering  <jim@meyering.net>
56353
56354         * modules/fprintftime: New module.
56355         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56356
56357 2005-12-16  Jim Meyering  <jim@meyering.net>
56358
56359         * m4/fprintftime.m4: New file.
56360
56361 2005-12-16  Jim Meyering  <jim@meyering.net>
56362
56363         * lib/fprintftime.c, lib/fprintftime.h: New files.
56364
56365 2005-12-15  Simon Josefsson  <jas@extundo.com>
56366
56367         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56368         new m4/socklen.m4.
56369
56370 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56371
56372         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56373         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56374
56375 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56376
56377         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56378         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56379         struct uparams is valid. Fall back to the default values if it is
56380         not.
56381
56382 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56383
56384         * modules/argp (Files): Add argp-pin.c
56385         (Depends-on): dirname
56386         (lib_SOURCES): Add argp-pin.c
56387
56388 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56389
56390         * m4/argp.m4:  Check if program_invocation_name and
56391         program_invocation_short_name are declared and define appropriate
56392         macros if they are not.
56393
56394 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56395
56396         * lib/argp-help.c (__argp_base_name): New function
56397         (__argp_short_program_name): Rewrite using __argp_base_name
56398         * lib/argp-namefrob.h: Define program_invocation_name and
56399         program_invocation_short_name if requested
56400         (__argp_base_name): Add prototype
56401         * lib/argp-parse.c (argp_def): Use gettext wrappers
56402         (argp_default_parser): Use __argp_base_name
56403         * lib/argp-pin.c: New file. Defines program_invocation_name and
56404         program_invocation_short_name on systems that lack them.
56405
56406 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56409         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56410         porting problem reported by Georg Schwarz in
56411         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56412
56413 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56416         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56417         porting problem reported by Georg Schwarz in
56418         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56419
56420 2005-12-05  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56423         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56424         Reported by Mark Junker <mjscod@gmx.de>.
56425
56426 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56429         Use implementation from Albert Chin, with some
56430         comments/corrections by Stepan Kasal and myself.
56431
56432 2005-12-02  Bruno Haible  <bruno@clisp.org>
56433
56434         * gnulib-tool (func_import): Accept GPLed build tool modules when
56435         --lgpl is given.
56436         * modules/csharpcomp-script: New file.
56437         * modules/csharpcomp: Depend on it.
56438         * modules/javacomp-script: New file.
56439         * modules/javacomp: Depend on it.
56440         Suggested by Simon Josefsson.
56441
56442 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56443
56444         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56445         statement, to work around an HP-UX 10.20 compiler bug reported by
56446         Peter O'Gorman.
56447
56448 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56449
56450         * modules/savedir (Depends-on): Add openat.
56451
56452 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56453
56454         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56455         (uintmax_t) [defined uintmax_t]: Do not declare.
56456         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56457         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56458         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56459         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56460         sake of portability to weird hosts that C allows (though we don't
56461         know of any practical examples).
56462
56463         * lib/savedir.h (fdsavedir): New decl.
56464         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56465         contains most of the former guts of savedir.
56466         (savedir): Use savedirstream.
56467         Include "openat.h".
56468
56469 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         * modules/obstack (Files): Add m4/ulonglong.m4.
56472         Problem reported by Davide Angelocola.
56473
56474 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56477         coreutils no longer futzes with rounding modes.
56478
56479 2005-11-14  Jim Meyering  <jim@meyering.net>
56480
56481         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56482         replacement of mkstemp.
56483
56484 2005-11-10  Simon Josefsson  <jas@extundo.com>
56485
56486         * lib/readline.c: Remove EOL.
56487
56488 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56489
56490         * modules/gethrxtime (Depends-on): Add gettime.
56491
56492 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56493
56494         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56495         or gettimeofday; no longer needed.
56496
56497 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56498
56499         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56500         time business.
56501         (gethrxtime) [! (HAVE_NANOUPTIME
56502         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56503         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56504         our own approximation.
56505
56506 2005-11-08  Eric Blake  <ebb9@byu.net>
56507
56508         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56509
56510 2005-11-08  Eric Blake  <ebb9@byu.net>
56511
56512         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56513
56514 2005-11-04  Bruno Haible  <bruno@clisp.org>
56515
56516         * gnulib-tool: Implement --update mode.
56517
56518 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56519
56520         Fix porting problem reported by Theodoros V. Kalamatianos.
56521         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56522         Don't assume that futimes failing means we must fail.
56523
56524 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56525
56526         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56527         variables to suggest the intended function of the PATH_MAX check.
56528
56529 2005-10-30  Kean Johnston  <jkj@sco.com>
56530
56531         Trivial changes to support SCO systems.
56532         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56533         as PATH_MAX.
56534         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56535         where __ptr is null when no I/O is pending.
56536
56537 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56538
56539         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56540         leave errno alone.  Problem reported by Dmitry V. Levin.
56541
56542 2005-10-28  Simon Josefsson  <jas@extundo.com>
56543
56544         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56545         Test more.
56546
56547         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56548
56549         * modules/md2, modules/md2-tests: New files.
56550
56551 2005-10-28  Simon Josefsson  <jas@extundo.com>
56552
56553         * m4/inet_ntop.m4: More tests.
56554
56555         * m4/gc-md2.m4, md2.m4: New file.
56556
56557 2005-10-28  Simon Josefsson  <jas@extundo.com>
56558
56559         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56560         "restrict" keywords, as per POSIX.  Protect the function
56561         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56562         Don't use K&R prototypes.  Check the sprintf return values.
56563         Re-define EAFNOSUPPORT if not present.  Indent.
56564
56565         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56566         suggested by Bruno Haible <bruno@clisp.org>.
56567
56568         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56569
56570         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56571
56572         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56573         libgcrypt).
56574
56575         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56576
56577         * lib/md2.h, lib/md2.c: New files.
56578
56579 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56580
56581         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56582         errno alone.  Problem reported by Frederic Jolliton.
56583
56584 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         * modules/verify (License): Change from GPL to LGPL.  This is a
56587         tiny module and there are apparently near-equivalents that are
56588         under the BSD license.
56589
56590 2005-10-24  Simon Josefsson  <jas@extundo.com>
56591
56592         * modules/sha1: Relicense to LGPL.
56593
56594 2005-10-24  Simon Josefsson  <jas@extundo.com>
56595
56596         * lib/md4.h: Shrink buffer size, now that we changed the type.
56597
56598 2005-10-23  Simon Josefsson  <jas@extundo.com>
56599
56600         * gnulib-tool (func_import): Fix --tests-base.
56601
56602 2005-10-22  Simon Josefsson  <jas@extundo.com>
56603
56604         * modules/arcfour (Depends-on): Need stdint.
56605
56606 2005-10-22  Simon Josefsson  <jas@extundo.com>
56607
56608         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56609         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56610
56611 2005-10-22  Simon Josefsson  <jas@extundo.com>
56612
56613         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56614         suggested by Bruno Haible <bruno@clisp.org>.
56615
56616 2005-10-22  Simon Josefsson  <jas@extundo.com>
56617
56618         * lib/crc.h: Include stddef.h, for size_t.
56619
56620 2005-10-22  Simon Josefsson  <jas@extundo.com>
56621
56622         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56623         arcfour_context struct (simplify test vector testing in GNU
56624         Shishi).
56625
56626 2005-10-21  Simon Josefsson  <jas@extundo.com>
56627
56628         * modules/des, modules/des-tests: New files.
56629
56630         * modules/gc-des, modules/gc-des-tests: New files.
56631
56632         * tests/test-des.c, tests/test-gc-des.c: New file.
56633
56634 2005-10-21  Simon Josefsson  <jas@extundo.com>
56635
56636         * modules/arctwo, modules/arctwo-tests: New files.
56637
56638         * tests/test-arctwo.c: New file.
56639
56640         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56641
56642         * tests/test-gc-arctwo.c: New file.
56643
56644 2005-10-21  Simon Josefsson  <jas@extundo.com>
56645
56646         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56647         Bruno Haible <bruno@clisp.org>.
56648
56649         * m4/gc-des.m4: New file.
56650
56651 2005-10-21  Simon Josefsson  <jas@extundo.com>
56652
56653         * m4/arctwo.m4: New file.
56654
56655         * m4/gc-arctwo.m4: New file.
56656
56657 2005-10-21  Simon Josefsson  <jas@extundo.com>
56658
56659         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56660         block.
56661
56662 2005-10-21  Simon Josefsson  <jas@extundo.com>
56663
56664         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56665         <bruno@clisp.org>.
56666
56667         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56668
56669         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56670         Bruno Haible <bruno@clisp.org>.
56671
56672         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56673         <bruno@clisp.org>.
56674
56675 2005-10-21  Simon Josefsson  <jas@extundo.com>
56676
56677         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56678
56679 2005-10-21  Simon Josefsson  <jas@extundo.com>
56680
56681         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56682
56683 2005-10-21  Simon Josefsson  <jas@extundo.com>
56684
56685         * lib/des.h, lib/des.c: New files.
56686
56687         * lib/gc-gnulib.c: Support DES.c
56688
56689 2005-10-21  Simon Josefsson  <jas@extundo.com>
56690
56691         * lib/arctwo.h, lib/arctwo.c: New files.
56692
56693         * lib/gc-gnulib.c: Support ARCTWO.
56694
56695 2005-10-21  Simon Josefsson  <jas@extundo.com>
56696
56697         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56698         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56699
56700 2005-10-21  Simon Josefsson  <jas@extundo.com>
56701
56702         * gnulib-tool (func_import, func_create_testdir): Define automake
56703         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56704         Makefile.am snippet),
56705         suggested by Bruno Haible <bruno@clisp.org>.
56706
56707         * modules/gc (Makefile.am): Use it.
56708
56709 2005-10-21  Bruno Haible  <bruno@clisp.org>
56710
56711         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56712         patch.
56713
56714 2005-10-19  Simon Josefsson  <jas@extundo.com>
56715
56716         * tests/test-gc-rijndael.c: New file.
56717
56718         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56719
56720 2005-10-19  Simon Josefsson  <jas@extundo.com>
56721
56722         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56723         interface too.
56724
56725 2005-10-19  Simon Josefsson  <jas@extundo.com>
56726
56727         * tests/test-gc-arcfour.c: New file.
56728
56729         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56730
56731 2005-10-19  Simon Josefsson  <jas@extundo.com>
56732
56733         * modules/gc-md4, modules/gc-md4-tests: New file.
56734
56735         * tests/test-gc-md4.c: New file.
56736
56737 2005-10-19  Simon Josefsson  <jas@extundo.com>
56738
56739         * m4/gc-md4.m4: New file.
56740
56741 2005-10-19  Simon Josefsson  <jas@extundo.com>
56742
56743         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56744         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56745         <kasal@ucw.cz>.
56746
56747 2005-10-19  Simon Josefsson  <jas@extundo.com>
56748
56749         * m4/gc-arcfour.m4: New file.
56750
56751         * m4/gc-rijndael.m4: New file.
56752
56753 2005-10-19  Simon Josefsson  <jas@extundo.com>
56754
56755         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56756
56757 2005-10-19  Simon Josefsson  <jas@extundo.com>
56758
56759         * lib/gc-gnulib.c: Support ARCFOUR.
56760
56761 2005-10-19  Simon Josefsson  <jas@extundo.com>
56762
56763         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56764         support.
56765
56766         * lib/gc.h: Add ECB enum type.
56767
56768         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56769
56770 2005-10-18  Simon Josefsson  <jas@extundo.com>
56771
56772         * tests/test-md5.c: New file.
56773
56774         * modules/md5-tests: New file.
56775
56776 2005-10-18  Simon Josefsson  <jas@extundo.com>
56777
56778         * tests/test-md4.c: New file.
56779
56780         * modules/md4, modules/md4-tests: New files.
56781
56782 2005-10-18  Simon Josefsson  <jas@extundo.com>
56783
56784         * m4/md4.m4: New file.
56785
56786 2005-10-18  Simon Josefsson  <jas@extundo.com>
56787
56788         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56789
56790 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56791
56792         * gnulib-tool (func_create_testdir): Omit the second check whether
56793         BUILT_SOURCES in nonempty.
56794
56795 2005-10-17  Simon Josefsson  <jas@extundo.com>
56796
56797         * tests/test-rijndael.c: New file.
56798
56799 2005-10-17  Simon Josefsson  <jas@extundo.com>
56800
56801         * modules/sha1: Depend on stdint instead of md5.
56802
56803         * modules/md5: Depend on stdint, remove uint32_t.
56804
56805 2005-10-17  Simon Josefsson  <jas@extundo.com>
56806
56807         * modules/gc-sha1-tests: New file.
56808
56809         * tests/test-gc-sha1.c: New file.
56810
56811 2005-10-17  Simon Josefsson  <jas@extundo.com>
56812
56813         * m4/md5.m4: Remove call to uint32_t.m4.
56814
56815 2005-10-17  Simon Josefsson  <jas@extundo.com>
56816
56817         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56818
56819         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56820         md5.h.
56821
56822         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56823
56824         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56825
56826 2005-10-17  Simon Josefsson  <jas@extundo.com>
56827
56828         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56829
56830 2005-10-17  Simon Josefsson  <jas@extundo.com>
56831
56832         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56833
56834 2005-10-17  Simon Josefsson  <jas@extundo.com>
56835
56836         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56837
56838         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56839
56840 2005-10-17  Bruno Haible  <bruno@clisp.org>
56841
56842         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56843         that it can also be used in a test.
56844
56845 2005-10-16  Bruno Haible  <bruno@clisp.org>
56846
56847         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56848         TESTS_ENVIRONMENT, so that individual tests can augment it.
56849
56850         * gnulib-tool (func_create_testdir): Use an intermediate target for
56851         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56852         macros, like $(ALLOCA_H), which cannot be passed through the command
56853         line.
56854
56855 2005-10-15  Simon Josefsson  <jas@extundo.com>
56856
56857         * modules/rijndael-tests: New file.
56858
56859         * modules/rijndael: New file.
56860
56861 2005-10-15  Simon Josefsson  <jas@extundo.com>
56862
56863         * m4/rijndael.m4: New file.
56864
56865 2005-10-15  Simon Josefsson  <jas@extundo.com>
56866
56867         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56868
56869         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56870
56871 2005-10-14  Simon Josefsson  <jas@extundo.com>
56872
56873         * tests/test-arcfour.c: New file.
56874
56875         * modules/arcfour, modules/arcfour-tests: New files.
56876
56877 2005-10-14  Simon Josefsson  <jas@extundo.com>
56878
56879         * m4/arcfour.m4: New file.
56880
56881 2005-10-14  Simon Josefsson  <jas@extundo.com>
56882
56883         * lib/arcfour.h, lib/arcfour.c: New files.
56884
56885 2005-10-14  Roland McGrath  <roland@redhat.com>
56886
56887         Import from libc.  [BZ #1331]
56888         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56889         macro argument.
56890         Reported by Matej Vela <vela@debian.org>.
56891
56892 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56893
56894         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56895         include <wchar.h>; no longer needed.
56896
56897 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56898
56899         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56900
56901 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56902         and  Ulrich Drepper  <drepper@redhat.com>
56903
56904         Import from libc.
56905         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56906         instead of inline stream orientation test and two separate
56907         function calls.  Pay no attention to USE_IN_LIBIO.
56908
56909 2005-10-13  Simon Josefsson  <jas@extundo.com>
56910
56911         * modules/gc-hmac-md5-tests: New file.
56912
56913         * tests/test-gc-hmac-sha1.c: New file.
56914
56915         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56916
56917         * modules/gc-hmac-md5-tests: New file.
56918
56919         * tests/test-gc-md5.c: New file.
56920
56921         * modules/gc-md5-tests: New file.
56922
56923 2005-10-13  Simon Josefsson  <jas@extundo.com>
56924
56925         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56926         Move memory allocation outside of loop.
56927
56928 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56931         intermediate directory is in a read-only file system.  Problem
56932         reported by Eric Blake.
56933
56934 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56935
56936         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56937
56938 2005-10-12  Simon Josefsson  <jas@extundo.com>
56939
56940         * tests/test-hmac-sha1.c: New file.
56941
56942         * modules/hmac-sha1-tests: New file.
56943
56944         * modules/hmac-sha1: New file.
56945
56946 2005-10-12  Simon Josefsson  <jas@extundo.com>
56947
56948         * modules/gc-sha1: New file.
56949
56950 2005-10-12  Simon Josefsson  <jas@extundo.com>
56951
56952         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56953
56954         * tests/test-gc-pbkdf2-sha1.c: New file.
56955
56956 2005-10-12  Simon Josefsson  <jas@extundo.com>
56957
56958         * modules/gc-md5, modules/gc-hmac-md5: New files.
56959
56960         * modules/gc (Files): Remove md5, memxor and hmac files.
56961
56962 2005-10-12  Simon Josefsson  <jas@extundo.com>
56963
56964         * m4/gc-pbkdf2-sha1.m4: New file.
56965
56966         * m4/gc-hmac-sha1.m4: New file.
56967
56968         * m4/gc-sha1: New file.
56969
56970         * m4/hmac-sha1.m4: New file.
56971
56972 2005-10-12  Simon Josefsson  <jas@extundo.com>
56973
56974         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56975
56976         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56977
56978 2005-10-12  Simon Josefsson  <jas@extundo.com>
56979
56980         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56981         suggested by Bruno Haible <bruno@clisp.org>.
56982
56983 2005-10-12  Simon Josefsson  <jas@extundo.com>
56984
56985         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56986
56987 2005-10-12  Simon Josefsson  <jas@extundo.com>
56988
56989         * lib/gc-pbkdf2-sha1.c: New file.
56990
56991         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56992
56993 2005-10-12  Simon Josefsson  <jas@extundo.com>
56994
56995         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56996
56997         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56998
56999 2005-10-12  Simon Josefsson  <jas@extundo.com>
57000
57001         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
57002         GC_USE_HMAC_MD5, respectively.
57003
57004         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
57005         (gc_md5): Fix typo.
57006
57007         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
57008
57009         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
57010
57011         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
57012
57013 2005-10-12  Bruno Haible  <bruno@clisp.org>
57014
57015         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
57016         Reported by Stepan Kasal <kasal@ucw.cz>.
57017
57018 2005-10-11  Simon Josefsson  <jas@extundo.com>
57019
57020         * tests/test-crc.c: New file.
57021
57022         * modules/crc, modules/crc-tests: New files.
57023
57024 2005-10-11  Simon Josefsson  <jas@extundo.com>
57025
57026         * m4/crc.m4: New file.
57027
57028 2005-10-11  Simon Josefsson  <jas@extundo.com>
57029
57030         * lib/gc.h: Add gc_hash and gc_hash_buffer.
57031
57032         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
57033
57034         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
57035
57036 2005-10-11  Simon Josefsson  <jas@extundo.com>
57037
57038         * lib/crc.h, lib/crc.c: New files.
57039
57040         * lib/gc.h (gc_hash_buffer): Add doc.
57041
57042 2005-10-11  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/c-strcasestr: New file.
57045         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
57046
57047 2005-10-11  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/c-strcase: New file.
57050         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
57051
57052 2005-10-11  Bruno Haible  <bruno@clisp.org>
57053
57054         * lib/strcasecmp.c: Include limits.h.
57055         (strcasecmp): Avoid integer overflow on exotic platforms.
57056         * lib/strncasecmp.c: Include limits.h.
57057         (strncasecmp): Avoid integer overflow on exotic platforms.
57058         Reported by Paul Eggert.
57059
57060 2005-10-11  Bruno Haible  <bruno@clisp.org>
57061
57062         * lib/c-strcasestr.h: New file, from GNU gettext.
57063         * lib/c-strcasestr.c: New file, from GNU gettext.
57064
57065 2005-10-11  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/c-strcase.h: New file, from GNU gettext.
57068         * lib/c-strcasecmp.c: New file, from GNU gettext.
57069         * lib/c-strncasecmp.c: New file, from GNU gettext.
57070
57071 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57072
57073         * modules/mempcpy (License): GPL -> LGPL.
57074         * modules/strchrnul (License): Likewise.
57075         * modules/sysexits (License): Likewise.
57076
57077 2005-10-08  Simon Josefsson  <jas@extundo.com>
57078
57079         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
57080
57081 2005-10-07  Simon Josefsson  <jas@extundo.com>
57082
57083         * m4/memxor.m4: Remove gl_C_RESTRICT call.
57084
57085 2005-10-06  Simon Josefsson  <jas@extundo.com>
57086
57087         * tests/test-hmac-md5.c: New file.
57088
57089         * modules/hmac-md5-tests: New file.
57090
57091         * modules/hmac-md5: New file.
57092
57093 2005-10-06  Simon Josefsson  <jas@extundo.com>
57094
57095         * m4/hmac-md5.m4: New file.
57096
57097         * m4/memxor.m4: Require gl_C_RESTRICT.
57098
57099 2005-10-06  Simon Josefsson  <jas@extundo.com>
57100
57101         * lib/memxor.c (memxor): Avoid casts and warnings.
57102
57103 2005-10-06  Simon Josefsson  <jas@extundo.com>
57104
57105         * lib/hmac-md5.c: New file.
57106
57107         * lib/hmac.h: New file.
57108
57109 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57110
57111         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
57112         promotes to int, not unsigned int, to catch the AIX 5.3
57113         compiler bug.
57114
57115 2005-10-05  Simon Josefsson  <jas@extundo.com>
57116
57117         * modules/memxor: New file.
57118
57119         * modules/iconv (Files): Move config.rpath to havelib, it is used
57120         there.
57121
57122         * modules/havelib (Files): Add config.rpath.
57123
57124 2005-10-05  Simon Josefsson  <jas@extundo.com>
57125
57126         * m4/memxor.m4: New file.
57127
57128 2005-10-05  Simon Josefsson  <jas@extundo.com>
57129
57130         * lib/memxor.c (memxor): Fix compiler error.
57131
57132         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57133         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57134
57135         * lib/memxor.h, lib/memxor.c: New files.
57136
57137         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57138         we assume all systems have it, suggested by Jim Meyering
57139         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57140         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57141         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57142         same reasons.
57143
57144 2005-10-05  Simon Josefsson  <jas@extundo.com>
57145
57146         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57147
57148 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57151         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57152         needed, since the source code now assumes these .h files.
57153
57154 2005-10-05  Derek Price  <derek@ximbiot.com>
57155
57156         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57157
57158 2005-10-05  Bruno Haible  <bruno@clisp.org>
57159
57160         * modules/stdint (License): Change to LGPL.
57161
57162 2005-10-04  Simon Josefsson  <jas@extundo.com>
57163
57164         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57165         D. Baushke" <mdb@gnu.org>.
57166
57167 2005-10-04  Bruno Haible  <bruno@clisp.org>
57168
57169         * lib/verify.h (verify_true): Provide alternative definition for C++.
57170
57171 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57172
57173         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57174         (SSIZE_MAX): New macro, if not already defined.
57175         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57176         than 2 GiB.
57177
57178 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57179
57180         Sync from coreutils.
57181         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57182         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57183         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57184         ULLONG_MAX doesn't work with 2.7.2.1.
57185
57186 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57189         From Ben Pfaff.
57190
57191         * modules/exclude (Depends-on): Depend on verify.
57192         * modules/strtoimax (Depends-on): Likewise.
57193         * modules/utimecmp (Depends-on): Likewise.
57194
57195 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57196
57197         * lib/exclude.c: Include verify.h.
57198         (verify): Remove.  All callers changed to use verify.h's version.
57199         * lib/strtoimax.c: Likewise.
57200         * lib/utimecmp.c: Likewis.e
57201
57202         Sync from coreutils.
57203         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57204         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57205         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57206         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57207         bother returning ENOSYS if settimeofday or stime fails; just let
57208         them return whatever errno they want to return.
57209         * lib/utimens.c: Include unistd.h, for dup2.
57210         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57211         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57212
57213 2005-10-02  Jim Meyering  <jim@meyering.net>
57214
57215         Sync from coreutils.
57216         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57217         from glibc-2.2.5 that fails for read-only files.
57218
57219 2005-10-02  Jim Meyering  <jim@meyering.net>
57220
57221         Sync from coreutils.
57222         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57223         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57224         `#if HAVE_CONFIG_H'.
57225         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57226         Remove AT_FDCWD test.
57227         Do not consume the fd unless successful.
57228         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57229         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57230         block, so that we don't even try to compile it if settimeofday is
57231         available.  This works around a compilation failure on OSF1 V5.1,
57232         due to stime requiring a `long int*' while tv_sec is `int'.
57233
57234 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57235
57236         Sync from coreutils.
57237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57238         against `yes', rather than just testing for nonempty.
57239
57240 2005-10-01  Simon Josefsson  <jas@extundo.com>
57241
57242         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57243         and Darwin.
57244
57245         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57246         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57247         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57248         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57249         Check if struct addrinfo is declared.
57250
57251 2005-10-01  Simon Josefsson  <jas@extundo.com>
57252
57253         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57254         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57255         AI_* and EAI_* definitions.  Protect function declarations.
57256
57257 2005-10-01  Jim Meyering  <jim@meyering.net>
57258
57259         Sync from coreutils.
57260
57261         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57262         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57263         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57265         in the inet and nsl libraries.  Required on Solaris 5.7.
57266
57267 2005-10-01  Jim Meyering  <jim@meyering.net>
57268
57269         Sync from coreutils.
57270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57271         in the inet and nsl libraries.  Required on Solaris 5.7.
57272
57273 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57274
57275         * lib/getdelim.c (getdelim): Remove unused variables.
57276
57277 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57278
57279         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57280         so that the code works even with ancient cpp.  Portability problem
57281         with GCC 2.7.2.1 reported by Thomas M.Ott.
57282
57283 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57284
57285         * modules/regex (Depends-on): Add strcase.
57286
57287         * modules/gethostname (Licence): Change from GPL to LGPL, since
57288         gethostname.c is a trivial implementation of a standard library
57289         function.
57290         * modules/poll (License): Change from GPL to LGPL, since it's
57291         derived from LGPL code.
57292
57293 2005-09-27  Jim Meyering  <jim@meyering.net>
57294
57295         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57296         HAVE_CONFIG_H.
57297
57298         * lib/intprops.h (signed_type_or_expr__): Define.
57299         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57300         for unsigned types.
57301
57302 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         * lib/verify.h (verify_expr): Remove, replacing with:
57305         (verify_true): New macro that returns true instead of void.
57306         (verify_type__): Remove.
57307         (verify): Use verify_true rather than verify_type__.
57308
57309 2005-09-26  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57312         is necessary.
57313         (lib_SOURCES): Remove mbchar.c.
57314         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57315         (Files): Add m4/mbrtowc.m4.
57316         * modules/mbiter: Likewise.
57317         * modules/mbuiter: Likewise.
57318
57319 2005-09-26  Bruno Haible  <bruno@clisp.org>
57320
57321         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57322         compile mbchar.c if they are not both present.
57323         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57324         * m4/mbiter.m4 (gl_MBITER): Likewise.
57325         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57326         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57327         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57328
57329 2005-09-25  Jim Meyering  <jim@meyering.net>
57330
57331         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57332         also uses socklen_t.
57333
57334 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * lib/utimens.c (ENOSYS): Define if not already defined.
57337         (futimens): Support having a null PATH if the file descriptor
57338         is nonnegative.
57339
57340         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57341         Remove.
57342         (__attribute): Define to empty unless GCC 3.1 or later.
57343         This works around a core dump on OpenBSD 3.4, which has GCC
57344         2.95.3, which dumps core when given __attribute__(()).  It also
57345         simplifies other tests, since we really don't want to bother with
57346         worrying about which ancient version of GCC supported what.
57347         Original problem reported by Yoann Vandoorselaere, with part of
57348         the fix suggested by Derek Price.
57349
57350 2005-09-24  Jim Meyering  <jim@meyering.net>
57351
57352         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57353         so we can once again use a positive bitfield width of 1 -- now we
57354         don't have to explain why we were using a bitfield width of 2.
57355
57356 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57357
57358         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57359         and similarly for the other external symbols.  Problem reported
57360         by James Gallager.
57361
57362         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57363         bug reported by Jim Meyering.
57364
57365         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57366         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57367         not needed, since socklen is a prerequisite module.
57368
57369 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57372         Problem reported by Eric Blake.
57373         (getaddrinfo): Initialize se so that it's not garbage.
57374         Redo internal storage allocation so that it doesn't make unportable
57375         assumptions about alignment.
57376         Fix a memory leak.
57377
57378         * lib/utimens.c (futimens): Use futimesat if available.
57379         Prefer it to futimes since it doesn't have the futimes bug.
57380
57381         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57382         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57383         Instead, declare a function that returns a pointer to an array,
57384         and use verify_type__ to declare the size of the array.
57385         Problem and germ of a solution reported by Bruno Haible.
57386         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57387         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57388
57389 2005-09-23  Jim Meyering  <jim@meyering.net>
57390
57391         Sync from coreutils.
57392         Correct build failure (socklen_t not defined) on at least
57393         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57394         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57395
57396 2005-09-23  Jim Meyering  <jim@meyering.net>
57397
57398         * modules/getaddrinfo (Depends-on): Add socklen.
57399
57400 2005-09-23  Bruno Haible  <bruno@clisp.org>
57401
57402         * tests/test-verify.c: New file.
57403
57404 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         Sync from coreutils.
57407
57408         * modules/argmatch (Depends-on): Add verify.
57409         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57410         unistd-safer.
57411         * modules/save-cwd (Depends-on): Likewise.
57412
57413         * modules/openat (Files): Add lib/openat-die.c.
57414         (Depends-on): Remove error, exitfail.
57415         Add dirname.
57416
57417         * modules/verify: New file.
57418         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57419         with "verify" module.
57420
57421 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         Sync from coreutils.
57424
57425         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57426         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57427         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57428         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57429         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57430         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57431         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57432         Don't bother checking for string.h, stdlib.h, unistd.h.
57433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57434         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57435         module's job.
57436         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57437         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57438
57439         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57440         (gl_GETDATE): Use it.
57441
57442         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57443
57444 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         Sync from coreutils.
57447
57448         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57449         stat-time.h.
57450         * lib/argmatch.h: Include verify.h
57451         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57452         (ARGMATCH_ASSERT): Remove; unused.
57453         * lib/canonicalize.c: Assume STDC_HEADERS.
57454         * lib/exclude.c: Include "strcase.h".
57455         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57456         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57457         and stdio-safer.h.
57458         (getusershell): Call fopen, not fopen_safer.
57459         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57460         Do not include unistd-safer.h.
57461         (save_cwd): Don't call fd_safer; no longer needed
57462         now that we include fcntl--.h.
57463
57464         * lib/getdate.y (relative_time): New type.
57465         (RELATIVE_TIME_0): New constant.
57466         (parser_control): Use relative_time instead of doing it ourselves.
57467         (%union): Add new relative_time rel member.
57468         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57469         Now typeless.
57470         (relunit, relunit_snumber): Now of type rel.
57471         (zone, rel, relunit, get_date): Adjust to above changes.
57472
57473         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57474         Do not include unistd-safer.h.
57475         (getloadavg): Don't call fd_safer; no longer needed
57476         now that we include fcntl--.h.
57477
57478         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57479         (make_dir_parents): Treat ENOSYS like EEXIST.
57480
57481         Improve quality of diagnostics on restore_cwd failure.
57482         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57483         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57484         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57485         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57486         each time through the loop.  Do not diagnose restore_cwd failure;
57487         that is the caller's job (and perhaps the caller does not care).
57488
57489         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57490         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57491         If the file already exists but is not a directory, don't bother
57492         to try to make its parents.
57493         Close potential file descriptor leak if we can't chdir("/") (!).
57494         Don't always return true if chdir($PWD) fails; return true only
57495         if the requested action was done successfully (except for the
57496         chdir($PWD)).
57497         Don't log final directory unless we actually made it.
57498         Refactor to avoid duplicate code to fix up permissions.
57499         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57500
57501         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57502         to make it a bit faster and (I hope) clearer.
57503         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57504         Fix bug in formats like %2N.
57505
57506         * lib/verify.h: New file.
57507
57508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57509
57510         Sync from coreutils.
57511         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57512
57513 2005-09-22  Jim Meyering  <jim@meyering.net>
57514
57515         Sync from coreutils.
57516
57517         * m4/lstat.m4 (gl_FUNC_LSTAT):
57518         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57519         Remove obsolete comment.
57520         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57521         * m4/xstrtod.m4: Likewise.
57522
57523         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57524
57525 2005-09-22  Jim Meyering  <jim@meyering.net>
57526
57527         Sync from coreutils.
57528
57529         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57530
57531         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57532         the .tm_year member, since otherwise gcc-4.0 would now warn about
57533         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57534
57535         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57536         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57537
57538         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57539         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57540         when run in a time zone for which daylight savings time is in effect
57541         for the starting date.
57542
57543         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57544         stop us from restricting permissions of just-created absolute-named
57545         directories.
57546         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57547         to restore initial working directory.
57548         * lib/mkdir-p.c (make_dir_parents): New parameter:
57549         different_working_dir, to tell caller if/when we change the working
57550         directory and are unable to return to the initial one.
57551         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57552         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57553         `return false'.  This fixes a bug introduced on 2004-07-30.
57554
57555         * lib/openat.c (fdopendir): Be sure to close the supplied
57556         file descriptor before returning.  This makes our replacement
57557         implementation a little closer to Solaris's, where fdopendir
57558         ties the file descriptor to the returned DIR* pointer.
57559         * lib/openat.c (unlinkat): New function.
57560         * lib/openat.h (unlinkat): Add prototype.
57561         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57562         (openat_restore_fail): Rename from openat_restore_die.
57563         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57564
57565         Provide an alternative to exiting immediately upon save_cwd or
57566         restore_cwd failure.  Now, an application can arrange e.g.,
57567         to perform a longjump in that case.
57568         * lib/openat.c: Include dirname.h.
57569         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57570         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57571         and openat_restore_die rather than calling error directly.
57572         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57573
57574         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57575         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57576         define.
57577
57578         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57579         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57580                             int utc, int nanoseconds);
57581         Background:
57582         date should not have to allocate a megabyte of virtual memory to
57583         handle a format argument like +%1048575T.  When implemented with
57584         strftime, it must allocate such a buffer, use strftime to fill it
57585         in, print it, then free it.
57586         With fprintftime, it simply prints everything and exits.
57587         With no need for memory allocation, that's one fewer way to fail.
57588         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57589         optional field width, not before, so we accept %9:z, not %:9z.
57590         (my_strftime): Be sure to use L_('x') for literals.
57591
57592         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57593         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57594         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57595         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57596         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57597         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57598         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57599         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57600         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57601         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57602         * lib/xgethostname.c, lib/xreadlink.c:
57603         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57604
57605         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57606         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57607         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57608         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57609         and don't include <sys/file.h>).
57610
57611 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57612
57613         Sync from coreutils.
57614
57615         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57616         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57617         [!LDAV_DONE]: Avoid unused variable warning.
57618
57619 2005-09-21  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/unicodeio.h (unicode_to_mb): New declaration.
57622
57623 2005-09-20  Derek Price  <derek@ximbiot.com>
57624
57625         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57626         getaddrinfo.h.
57627
57628 2005-09-20  Bruno Haible  <bruno@clisp.org>
57629
57630         * gnulib-tool: Remove trailing slashes from the values specified for
57631         --source-base, --m4-base, --tests-base, --aux-dir.
57632         Suggested by Simon Josefsson <jas@extundo.com>.
57633
57634 2005-09-20  Bruno Haible  <bruno@clisp.org>
57635
57636         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57637         func_modules_to_filelist, func_import, func_create_testdir): Make all
57638         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57639         change when gnulib-tool is invoked in a different locale.
57640
57641 2005-09-19  Simon Josefsson  <jas@extundo.com>
57642
57643         * m4/socklen.m4: Fix typo.
57644
57645 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57646
57647         Use a consistent style for including <config.h>.
57648         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57649         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57650         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57651         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57652         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57653         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57654         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57655         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57656         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57657         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57658         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57659         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57660         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57661         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57662         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57663         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57664         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57665         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57666         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57667         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57668         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57669         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57670         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57671         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57672         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57673         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57674         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57675         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57676         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57677         lib/xstrtoumax.c, lib/yesno.c:
57678         Standardize inclusion of config.h.
57679         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57680         lib/inttostr.h:  Removed inclusion of config.h from header files.
57681         * lib/inttostr.c:  Adjusted in-tree users.
57682         * lib/timespec.h: Remove superfluous warning to include config.h.
57683         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57684         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57685         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57686         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57687         config.h with HAVE_CONFIG_H.
57688
57689 2005-09-19  Jim Meyering  <jim@meyering.net>
57690
57691         * modules/pathmax (License): Change to LGPL.
57692
57693 2005-09-19  Derek Price  <derek@ximbiot.com>
57694
57695         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57696
57697 2005-09-19  Bruno Haible  <bruno@clisp.org>
57698
57699         * gnulib-tool (import): Provide default for --tests-base.
57700
57701 2005-09-19  Bruno Haible  <bruno@clisp.org>
57702
57703         * doc/quote.texi: New file, extracted from gnulib.texi.
57704         * doc/ctime.texi: New file, extracted from gnulib.texi.
57705         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57706         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57707         * doc/gnulib.texi: Include them.
57708
57709 2005-09-18  Bruno Haible  <bruno@clisp.org>
57710
57711         Portability fix.
57712         * gnulib-tool (func_readlink): New function.
57713         (func_ln_if_changed): Use it.
57714
57715 2005-09-18  Bruno Haible  <bruno@clisp.org>
57716
57717         * gnulib-tool: Support --with-tests also with --import.
57718         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57719         (func_import): Use variables $testsbase and $inctests. Emit a
57720         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57721         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57722         SUBDIRS += $testsdir.
57723         (func_create_testdir): Update.
57724
57725 2005-09-18  Bruno Haible  <bruno@clisp.org>
57726
57727         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57728         instead of $dry_run.
57729         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57730         (func_ln_if_changed): Don't handle dry-run here.
57731         (func_import): In dry-run mode, detect more precisely which actions
57732         would be performed, and don't use "...ing" verbs.
57733
57734 2005-09-18  Bruno Haible  <bruno@clisp.org>
57735
57736         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57737         (func_import): Use join on two temporary files instead of three nested
57738         loops, in order to determine which files are new or old.
57739
57740 2005-09-18  Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (func_import): Comment out code that spits out the
57743         new files with --dry-run.
57744
57745 2005-09-18  Bruno Haible  <bruno@clisp.org>
57746
57747         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57748
57749 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         * lib/stat-time.h: New file.
57752         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57753         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57754         in a different way.
57755         (timespec_cmp): New function.
57756         * lib/utimecmp.c: Include stat-time.h.
57757         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57758         members exist, not on the obsolescent ST_MTIM_NSEC.
57759         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57760
57761 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57762
57763         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57764
57765 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57766
57767         * MODULES.html.sh (File system functions): Add stat-time.
57768         * modules/stat-time: New file.
57769         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57770         is now done in a different way, by the stat-time module.
57771         * modules/utimecmp (Depends-on): Add stat-time.
57772
57773 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57774
57775         * m4/st_mtim.m4: Remove.  Superseded by...
57776         * m4/stat-time.m4: New file.
57777         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57778         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57779
57780 2005-09-15  Derek Price  <derek@ximbiot.com>
57781
57782         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57783
57784 2005-09-15  Derek Price  <derek@ximbiot.com>
57785
57786         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57787         * lib/regex_internal.c: Ditto, using this...
57788         (__GNUC_PREREQ): ...new macro.
57789         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57790         using...
57791         (__GNUC_PREREQ): ...this new macro.
57792
57793         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57794
57795 2005-09-15  Derek Price  <derek@ximbiot.com>
57796             Paul Eggert  <eggert@cs.ucla.edu>
57797
57798         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57799         changes, consolidating in...
57800         * lib/regex_internal.h: ...this file.
57801
57802 2005-09-13  Jim Meyering  <jim@meyering.net>
57803
57804         * lib/canon-host.c: Filter through gnu indent and reword comments
57805         slightly.
57806         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57807
57808 2005-09-13  Derek Price  <derek@ximbiot.com>
57809
57810         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57811         failure.
57812         Reported by Jim Meyering  <jim@meyering.net>.
57813
57814 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57815
57816         * lib/base64.c: Typo.
57817         (base64_encode): Put b64str in initialized data section.
57818
57819 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57820
57821         Merge glibc and coreutils changes into gnulib, plus a few
57822         extra fixes.
57823         * lib/md5.c: Use #error rather than a string.
57824         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57825         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57826         (__attribute__): Define to empty for non recent-GCC.
57827         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57828         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57829         Renamed from their non-__ counterparts, with new macros replacing
57830         them if not _LIBC.  Add __THROW attribute.
57831         (rol): Remove.
57832         (struct md5_ctx): Align buffer if using GCC.
57833         * lib/sha1.h (struct sha1_ctx): Likewise.
57834         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57835         The old name was backwards.
57836         (NOTSWAP): Remove; not used.
57837         (rol): New macro, moved here from md5.h.
57838         (sha1_process_block): Remove a FIXME that doesn't make sense.
57839
57840 2005-09-12  Derek Price  <derek@ximbiot.com>
57841
57842         Return usable errors from canon-host.
57843         * lib/canon-host.h: New file.
57844         * lib/canon-host.c (canon_host): Wrap...
57845         (canon_host_r): ...this new function, which now relies exclusively on
57846         getaddrinfo.
57847         (ch_strerror): New function.
57848         (last_cherror): New global.
57849         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57850         interface.
57851         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57852         void *.
57853         (freeaddrinfo): Free ai->ai_canonname when set.
57854
57855 2005-09-12  Derek Price  <derek@ximbiot.com>
57856
57857         Make canon-host require getaddrinfo.
57858         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57859         AC_LIBSOURCE canon-host.h.  Call...
57860         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57861         gl_GETADDRINFO.
57862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57863
57864 2005-09-12  Derek Price  <derek@ximbiot.com>
57865
57866         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57867         LGPL.
57868         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57869
57870 2005-09-12  Derek Price  <derek@ximbiot.com>
57871
57872         * lib/gai_strerror.c: Include config.h when available.  Include
57873         getaddrinfo.h before other headers to test interface.
57874         Reported by Larry Jones <lawrence.jones@ugs.com>.
57875
57876 2005-09-12  Derek Price  <derek@ximbiot.com>
57877             Paul Eggert  <eggert@cs.ucla.edu>
57878
57879         * modules/glob (Files): Add glob-libc.h.
57880
57881 2005-09-12  Derek Price  <derek@ximbiot.com>
57882             Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57885         glob_.h, glob-libc.h.
57886         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57887
57888 2005-09-12  Derek Price  <derek@ximbiot.com>
57889             Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57892         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57893         protecting things that should be done only in gnulib contexts.
57894         * lib/glob_.h: New file, containing only the glob things needed for
57895         gnulib.
57896         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57897         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57898         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57899         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57900         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57901         and to respect the namespace rules better.
57902
57903 2005-09-08  Simon Josefsson  <jas@extundo.com>
57904
57905         * modules/socklen: New file.
57906
57907 2005-09-08  Simon Josefsson  <jas@extundo.com>
57908
57909         * m4/socklen.m4: New file.
57910
57911 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * modules/utimens (Files): Add m4/utimbuf.m4, since
57914         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57915         Reported by Sergey Poznyakoff.
57916
57917 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57918
57919         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57920         definitions, since that's the preferred style in glibc.
57921         Fix a minor spacing issue, and update copyright notice to match
57922         glibc's.
57923
57924 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57925
57926         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57927
57928 2005-09-06  Simon Josefsson  <jas@extundo.com>
57929
57930         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57931         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57932
57933 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57936         warning.
57937
57938 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57939
57940         * config/srclist.txt: Add glibc bug 1302.
57941
57942 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         Change bitset word type from unsigned int to unsigned long int,
57945         as this has better performance on typical 64-bit hosts.
57946         Port bitset code to hosts with unusual word sizes.
57947         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57948         (build_collating_symbol):
57949         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57950         argument is a bitset.  This is merely a style issue, but it makes
57951         it clearer that an entire array is expected.
57952         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57953         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57954         Port to the case where bitset_word is not the same as unsigned int.
57955         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57956         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57957         Likewise.
57958         * lib/regexec.c (check_dst_limits_calc_pos_1,
57959         check_subexp_matching_top):
57960         (build_trtable, group_nodes_into_DFAstates):
57961         Likewise.
57962         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57963         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57964         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57965         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57966         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57967         * lib/regcomp.c (optimize_subexps, lower_subexp):
57968         Work even if bitset_word has holes in its bitwise representation.
57969         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57970         * lib/regexec.c (check_dst_limits_calc_pos_1,
57971         check_subexp_matching_top):
57972         Likewise.
57973         * lib/regex_internal.c (re_string_reconstruct):
57974         Don't assume UCHAR_MAX == 255.
57975         * lib/regex_internal.h (bitset_set_all): Likewise.
57976         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57977         All uses changed.
57978         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57979         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57980         All uses changed.
57981         (BITSET_WORD_MAX): New macro.
57982         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57983         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57984         (bitset_empty, bitset_copy):
57985         Prefer sizeof (bitset) to multiplying it out ourselves.
57986         (bitset_not_merge): Remove; unused.
57987         (bitset_contain): Return bool, not unsigned int with one bit on.
57988         All callers changed.
57989         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57990         alignment than re_node_set; do this by defining a new internal
57991         type struct dests_alloc and using it to allocate memory.
57992
57993 2005-09-05  Bruno Haible  <bruno@clisp.org>
57994
57995         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57996         links.
57997
57998 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57999
58000         * modules/size_max (Makefile.am): Add size_max.h
58001
58002 2005-09-04  Derek Price  <derek@ximbiot.com>
58003
58004         * gnulib-tool (func_import): Fix reversed $symbolic logic.
58005
58006 2005-09-03  Simon Josefsson  <jas@extundo.com>
58007
58008         * gnulib-tool: Fix typo.
58009
58010 2005-09-03  Simon Josefsson  <jas@extundo.com>
58011
58012         * config/srclist.txt: Add glibc bug 1293.
58013
58014 2005-09-03  Derek Price  <derek@ximbiot.com>
58015
58016         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
58017         From Larry Jones <lawrence.jones@ugs.com>.
58018
58019 2005-09-02  Simon Josefsson  <jas@extundo.com>
58020
58021         * modules/socklen: New file.
58022
58023 2005-09-02  Simon Josefsson  <jas@extundo.com>
58024
58025         * modules/havelib: New module.
58026
58027         * modules/gettext, modules/iconv, modules/lock, modules/readline:
58028         Use havelib.
58029
58030 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58031
58032         Check for arithmetic overflow when calculating sizes, to prevent
58033         some buffer-overflow issues.  These patches are conservative, in the
58034         sense that when I couldn't determine whether an overflow was possible,
58035         I inserted a run-time check.
58036         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
58037         macros.
58038         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
58039         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
58040         (re_xnrealloc, re_x2nrealloc): New inline functions.
58041         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
58042         parse_bracket_exp):
58043         (build_equiv_class, build_charclass): Check for arithmetic overflow
58044         in size expression calculations.
58045         * lib/regex_internal.c (re_string_realloc_buffers):
58046         (build_wcs_upper_buffer, re_node_set_add_intersect):
58047         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
58048         (re_dfa_add_node, register_state): Likewise.
58049         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
58050         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
58051         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
58052         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
58053
58054 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58057         m4/ulonglong.m4.  Problem reported by Martin Lambers.
58058
58059 2005-09-02  Bruno Haible  <bruno@clisp.org>
58060
58061         Support for lib vs. lib64 distinction on biarch platforms.
58062         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
58063         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
58064         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
58065
58066 2005-09-02  Bruno Haible  <bruno@clisp.org>
58067
58068         * gnulib-tool (import): In the other first-use case, provide defaults
58069         as well.
58070
58071 2005-09-02  Bruno Haible  <bruno@clisp.org>
58072
58073         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
58074         patches not yet found in the latest gettext release.
58075
58076 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
58079         to avoid a collision with bits/local_lim.h in glibc.
58080         All uses changed.  Problem reported by Dmitry V. Levin in
58081         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
58082
58083         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
58084         bugs in int versus size_t comparisons.
58085         (re_string_context_at): Fix bug where the code assumed that
58086         Idx is signed.
58087
58088         Use bool where appropriate.
58089         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
58090         All callers changed.
58091         (calc_eclosure_iter): Likewise, for ROOT arg.
58092         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
58093         (build_charclass_op): Likewise, for NON_MATCH arg.
58094         * lib/regex_internal.c (re_string_allocate, re_string_construct):
58095         (re_string_construct_common): Likewise, for ICASE arg.
58096         * lib/regexec.c (re_search_2_stub, re_search_stub):
58097         Likewise, for RET_LEN arg.
58098         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
58099         (set_regs): Likewise, for FL_BACKTRACK arg.
58100         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
58101         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
58102         (calc_eclosure_iter, parse_bracket_exp):
58103         Use bool for internal variables that are booleans.
58104         * lib/regexec.c (re_search_internal, check_matching,
58105         proceed_next_node):
58106         (set_regs, build_sifted_states, sift_states_bkref):
58107         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
58108         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58109         (find_collation_sequence_value):
58110         Likewise.
58111         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
58112         (re_node_set_compare):
58113         Return bool, not int. All callers changed.
58114         * lib/regexec.c (check_halt_node_context, check_dst_limits):
58115         (build_trtable, check_node_accept): Likewise.
58116         * lib/regex_internal.h: Include stdbool.h.
58117
58118         Fix bugs uncovered when converting to bool.
58119         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58120         failure instead of charging ahead blindly.
58121         * lib/regex_internal.c (register_state): Likewise.
58122         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58123         for freeing internal storage.
58124         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58125         bitset pieces used as boolean, to avoid undefined behavior
58126         on hosts that do int overflow checking.
58127
58128 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58129
58130         * config/srclist.txt: Add glibc bugs 1285-1287.
58131
58132 2005-09-01  Jim Meyering  <jim@meyering.net>
58133
58134         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58135         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58136         Require gl_STAT_MACROS, too.
58137
58138 2005-09-01  Bruno Haible  <bruno@clisp.org>
58139
58140         * gnulib-tool (import): In the first-use case, provide defaults.
58141
58142 2005-09-01  Bruno Haible  <bruno@clisp.org>
58143
58144         * gnulib-tool (func_import): Remove the .tmp files.
58145
58146 2005-09-01  Bruno Haible  <bruno@clisp.org>
58147
58148         * gnulib-tool (func_import): Fix handling of symbolic links.
58149
58150 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58151
58152         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58153         old glibc regex code mishandles strings longer than 2**31 bytes.
58154         This patch fixes this when the regex code is used in gnulib
58155         (i.e., outside glibc).
58156
58157         This patch should not affect the use of the regex code inside
58158         glibc.  No doubt this problem also needs to be handled for glibc
58159         as well, but the result will be an incompatible change to the
58160         glibc ABI, and the old ABI will have to be supported too.  That
58161         can be the the subject for another patch.
58162
58163         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58164         governing whether the rest of this patch is active.  By default,
58165         the macro is disabled and the patch has no effect.
58166         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58167         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58168         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58169         (re_match_2, re_set_registers): Use the new types.
58170         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58171         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58172         New macros.
58173         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58174         (re_string_context_at, bin_tree_t, re_dfastate_t):
58175         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58176         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58177         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58178         (re_string_char_size_at, re_string_wchar_at):
58179         (re_string_elem_size_at):
58180         Use the new types and macros to port to 64-bit hosts.
58181         Use unsigned types for internal values, so that the code
58182         mostly works even for arrays larger than SSIZE_MAX.
58183         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58184         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58185         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58186         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58187         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58188         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58189         (calc_inveclosure, parse_dup_op, build_range_exp):
58190         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58191         (fetch_number, create_token_tree, mark_opt_subexp):
58192         Likewise.
58193         * lib/regex_internal.c (re_string_construct_common,
58194         create_ci_newstate):
58195         (create_cd_newstate, re_string_allocate, re_string_construct):
58196         (re_string_realloc_buffers, build_wcs_upper_buffer):
58197         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58198         (re_string_reconstruct, re_string_peek_byte_case):
58199         (re_string_fetch_byte_case, re_string_context_at):
58200         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58201         (re_node_set_init_copy, re_node_set_add_intersect):
58202         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58203         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58204         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58205         (re_acquire_state, re_acquire_state_context, register_state):
58206         Likewise.
58207         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58208         search_cur_bkref_entry):
58209         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58210         (re_search_internal, re_search_2_stub, re_search_stub)
58211         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58212         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58213         (update_cur_sifted_state, check_dst_limits):
58214         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58215         (check_subexp_limits, sift_states_bkref, merge_state_array):
58216         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58217         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58218         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58219         (expand_bkref_cache, check_node_accept_bytes):
58220         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58221         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58222         (acquire_init_state_context, check_halt_node_context):
58223         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58224         (sift_states_backward, clean_state_log_if_needed):
58225         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58226         (find_recover_state, transit_state_sb, transit_state_mb):
58227         (transit_state_bkref, build_trtable, match_ctx_clean):
58228         Likewise.
58229         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58230         to work around an assumption that REG_MISSING is negative.
58231
58232         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58233         (seek_collating_symbol_entry) [defined _LIBC]:
58234         (lookup_collation_sequence_value) [defined _LIBC]:
58235         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58236         Use prototypes rather than old-style function definitions.
58237         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58238         (transit_state_sb) [0]:
58239         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58240
58241         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58242         rm_eo.
58243
58244         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58245         (optimize_subexps, lower_subexp):
58246         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58247         since the signed shift might overflow.  Use 1u<<31 instead.
58248         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58249         Likewise.
58250         * lib/regexec.c (check_dst_limits_calc_pos_1,
58251         check_subexp_matching_top): Likewise.
58252
58253         * lib/regcomp.c (optimize_subexps, lower_subexp):
58254         Use CHAR_BIT rather than 8, for clarity.
58255         * lib/regexec.c (check_dst_limits_calc_pos_1):
58256         (check_subexp_matching_top): Likewise.
58257         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58258         have to worry about portability issues when shifting it left.
58259         Remove no-longer-needed test for table_size > 0.
58260         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58261         in a word, as the resulting behavior is undefined.
58262         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58263         in one case, a <= should have been an <, and in another case the
58264         whole test was missing.
58265         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58266         the standard name CHAR_BIT.
58267         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58268         this is not true on one's complement and signed-magnitude hosts.
58269
58270         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58271         next_last_offset.
58272         (struct re_dfa_t): Remove unused member states_alloc.
58273         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58274
58275 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58276
58277         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58278         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58279         and large-file glibc and in 32-bit large-file Solaris.
58280
58281 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58282
58283         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58284         lengths fit in regoff_t; this isn't true if regoff_t is the same
58285         width as size_t.
58286         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58287         (= START + RANGE) instead of RANGE.  This avoids overflow
58288         problems when regoff_t is the same width as size_t.
58289         All callers changed.
58290         (re_search_2_stub): Check for overflow when adding the
58291         sizes of the two strings.
58292         (re_search_stub): Check for overflow when adding START
58293         to RANGE; if it occurs, substitute the extreme value.
58294
58295 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58296
58297         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58298
58299 2005-08-31  Jim Meyering  <jim@meyering.net>
58300
58301         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58302         a pointer-to-const.
58303         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58304         (register_state): Likewise.
58305         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58306         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58307         (group_nodes_into_DFAstates): Likewise.
58308
58309 2005-08-31  Jim Meyering  <jim@meyering.net>
58310
58311         * check-module: Add a FIXME comment.
58312
58313 2005-08-31  Eric Blake  <ebb9@byu.net>
58314
58315         * modules/unistd-safer (Files): Add unistd--.h.
58316         * modules/stdio-safer (Files): Add stdio--.h.
58317
58318 2005-08-31  Derek Price  <derek@ximbiot.com>
58319
58320         * lib/getdelim.c (getdelim): Return EOF on EOF.
58321         Reported by Larry Jones <lawrence.jones@ugs.com>.
58322
58323 2005-08-31  Bruno Haible  <bruno@clisp.org>
58324
58325         Avoid unnecessary diffs in the generated lib/Makefile.am.
58326         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58327         the generated files.
58328         (func_import): Don't set cmd.
58329
58330 2005-08-31  Bruno Haible  <bruno@clisp.org>
58331
58332         * lib/strstr.c: Include <stddef.h>, for NULL.
58333         * lib/strcasestr.c: Likewise.
58334         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58335
58336 2005-08-31  Bruno Haible  <bruno@clisp.org>
58337
58338         * gnulib-tool: New option --macro-prefix.
58339         (func_import): Use macro_prefix.
58340         (import): Handle option --macro-prefix.
58341
58342 2005-08-31  Bruno Haible  <bruno@clisp.org>
58343
58344         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58345         Also use new variables cached_lgpl, cached_libtool.
58346
58347 2005-08-31  Bruno Haible  <bruno@clisp.org>
58348
58349         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58350         always instantiating them.
58351
58352 2005-08-31  Bruno Haible  <bruno@clisp.org>
58353
58354         * gnulib-tool (func_import): Read the previous cached settings
58355         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58356         earlier added by gnulib but are now dropped. Warn when a gnulib file
58357         overwrites a non-gnulib file.
58358
58359 2005-08-31  Bruno Haible  <bruno@clisp.org>
58360
58361         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58362         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58363         projects that don't keep autogenerated files in CVS. Put into
58364         actioncmd only the specified modules, not the transitive closure.
58365
58366 2005-08-31  Bruno Haible  <bruno@clisp.org>
58367
58368         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58369         Create directories that shall be filled.
58370         (import): Don't look for gl_* macros in configure.ac. Recurse across
58371         all directories containing a gnulib-cache.m4 files, if meaningful.
58372
58373 2005-08-31  Bruno Haible  <bruno@clisp.org>
58374
58375         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58376         (import): Set seen_libtool when we see gl_LIBTOOL.
58377
58378 2005-08-31  Bruno Haible  <bruno@clisp.org>
58379
58380         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58381         declaration macro definitions from generated gnulib.m4.
58382
58383 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58384
58385         * lib/iconvme.h: Add prototype for iconv_alloc.
58386
58387 2005-08-29  Simon Josefsson  <jas@extundo.com>
58388
58389         * lib/iconvme.c: Fix errno.
58390
58391 2005-08-29  Bruno Haible  <bruno@clisp.org>
58392
58393         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58394         that it works when the directory contains spaces.
58395
58396 2005-08-29  Bruno Haible  <bruno@clisp.org>
58397
58398         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58399
58400 2005-08-29  Bruno Haible  <bruno@clisp.org>
58401
58402         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58403         Emit more advice.
58404
58405 2005-08-29  Bruno Haible  <bruno@clisp.org>
58406         and Stepan Kasal  <kasal@ucw.cz>
58407
58408         * check-module: If more parameters are given, check each of them
58409         separately; add more exceptions, as noted by Jim Meyering.
58410         (check_module): New procedure.
58411         (%exempt_header): Now contains all exceptions.
58412
58413 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58414
58415         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58416
58417 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58418
58419         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58420
58421 2005-08-28  Bruno Haible  <bruno@clisp.org>
58422
58423         * m4/gnulib-tool.m4: New file.
58424
58425 2005-08-27  Jim Meyering  <jim@meyering.net>
58426
58427         * modules/unistd-safer (Files): Add pipe-safer.c.
58428         * modules/fcntl-safer (Files): Add creat-safer.c.
58429
58430 2005-08-27  Jim Meyering  <jim@meyering.net>
58431
58432         * m4/stdlib-safer.m4: New file.  From coreutils.
58433         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58434         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58435         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58436         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58437         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58438
58439 2005-08-27  Jim Meyering  <jim@meyering.net>
58440
58441         * lib/fopen-safer.c: Merge minor changes from coreutils.
58442         * lib/dup-safer.c: Likewise.
58443         * lib/fd-safer.c: Likewise.
58444
58445         Merge from coreutils.
58446         * lib/stdio--.h: New file.
58447         * lib/stdlib--.h: New file.
58448         * lib/mkstemp-safer.c: New file.
58449
58450         GNU tar needs these.
58451         * lib/pipe-safer.c: New file.
58452         * lib/creat-safer.c: New file.
58453         * lib/fcntl--.h (creat): Define to creat_safer.
58454         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58455         * lib/unistd--.h (pipe): Define to pipe_safer.
58456         * lib/unistd-safer.h: Declare pipe_safer.
58457
58458 2005-08-26  Simon Josefsson  <jas@extundo.com>
58459
58460         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58461         Haible <bruno@clisp.org>.
58462
58463 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         * lib/regex_internal.h: Remove all references to
58466         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58467         or better.
58468         (bitset_not, bitset_merge, bitset_not_merge):
58469         (bitset_mask, re_string_allocate, re_string_construct):
58470         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58471         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58472         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58473         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58474         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58475         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58476         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58477         (re_acquire_state_context):
58478         Remove unnecessary forward decls.
58479         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58480         Put __attribute at function definition,
58481         now that the function decl has been removed.
58482         * lib/regex_internal.c (re_string_peek_byte_case):
58483         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58484         Likewise.
58485
58486 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58487
58488         * m4/regex.m4: Add AC_PREREQ(2.50).
58489         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58490
58491 2005-08-25  Simon Josefsson  <jas@extundo.com>
58492
58493         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58494         __fsetlocking.
58495
58496 2005-08-25  Simon Josefsson  <jas@extundo.com>
58497
58498         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58499         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58500         GLIBC specific code.
58501
58502 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58503
58504         Make regex safe for g++.  This fixes one real bug (an "err"
58505         that should have been "*err").  g++ problem reported by
58506         Sam Steingold.
58507         * lib/regex_internal.h (re_calloc): New macro, consistent with
58508         re_malloc etc.  All callers of calloc changed to use re_calloc.
58509         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58510         not int.  All callers changed.
58511         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58512         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58513         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58514         (find_recover_state): Change "err" to "*err"; this fixes what
58515         appears to be a real bug.
58516         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58517         versus int.
58518
58519 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58520
58521         * modules/regex (Depends-on): Add malloc, since the code
58522         assumes that !malloc(0) means failure.
58523
58524 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58525
58526         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58527
58528         alloca modernization/simplification for regex.
58529         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58530         needs to be at the start of the file, and can be moved into
58531         regex_internal.h and simplified.
58532         * lib/regex_internal.h: Include <alloca.h>.
58533         (__libc_use_alloca) [!defined _LIBC]: New macro.
58534         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58535         now works outside glibc.
58536
58537 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58538
58539         * config/srclist.txt: Add glibc bugs 1241, 1245.
58540
58541 2005-08-25  Jim Meyering  <jim@meyering.net>
58542
58543         * lib/open-safer.c: Include <config.h>.
58544         Otherwise, we'd lose LARGEFILE support in any file using
58545         e.g. "fcntl--.h"
58546
58547 2005-08-25  Bruno Haible  <bruno@clisp.org>
58548
58549         * m4/minmax.m4: Require autoconf 2.52.
58550         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58551         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58552         alternatives of translit over the alphabet.
58553         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58554
58555 2005-08-24  Simon Josefsson  <jas@extundo.com>
58556
58557         * tests/test-getpass.c: New file.
58558
58559 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58562         for GNU regex features.
58563
58564 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58565
58566         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58567         * lib/regex.h (regerror): Likewise.
58568
58569         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58570         requires this.  (The code never needed it.)
58571
58572         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58573         All uses of recently-renamed identifiers changed to use the new,
58574         POSIX-compliant names.  The code will build and run just fine
58575         without these changes, but it's better to eat our own dog food
58576         and use the standard-conforming names.
58577
58578         * lib/regex.h: Fix a multitude of POSIX name space violations.
58579         These changes have an effect only for programs that define
58580         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58581         do not change anything for programs compiled in the normal way.
58582         Also, there is no effect on the ABI.
58583
58584         (_REGEX_SOURCE): New macro.
58585         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58586         defined and _GNU_SOURCE is not; this fixes a name space violation.
58587
58588         Rename the following macros to obey POSIX requirements.
58589         The old names are still visible as macros if _REGEX_SOURCE is defined.
58590         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58591         RE_BACKSLASH_ESCAPE_IN_LISTS.
58592         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58593         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58594         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58595         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58596         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58597         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58598         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58599         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58600         (REG_INTERVALS): renamed from RE_INTERVALS.
58601         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58602         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58603         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58604         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58605         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58606         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58607         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58608         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58609         RE_UNMATCHED_RIGHT_PAREN_ORD.
58610         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58611         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58612         (REG_DEBUG): renamed from RE_DEBUG.
58613         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58614         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58615         unusual, since we can't clash with the POSIX REG_ICASE.
58616         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58617         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58618         (REG_NO_SUB): renamed from RE_NO_SUB.
58619         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58620         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58621         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58622         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58623         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58624         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58625         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58626         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58627         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58628         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58629         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58630         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58631         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58632         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58633         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58634         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58635         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58636         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58637         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58638         (REG_FIXED): Renamed from REGS_FIXED.
58639         (REG_NREGS): Renamed from RE_NREGS.
58640
58641         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58642         of other REG_* macros, since POSIX says the user is allowed to
58643         #undef these macros selectively.
58644
58645         (reg_errcode_t): Update comment stating what other tables need
58646         to be consistent.
58647
58648         Rename the following enum values to obey POSIX requirements.
58649         The old names are still visible as macros.
58650         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58651         is not defined, since GNU is supposed to be a superset of POSIX as
58652         much as possible, and since we want reg_errcode_t to be a signed
58653         type for implementation consistency.
58654         (_REG_NOERROR): Renamed from REG_NOERROR.
58655         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58656         (_REG_BADPAT): Renamed from REG_BADPAT.
58657         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58658         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58659         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58660         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58661         (_REG_EBRACK): Renamed from REG_EBRACK.
58662         (_REG_EPAREN): Renamed from REG_EPAREN.
58663         (_REG_EBRACE): Renamed from REG_EBRACE.
58664         (_REG_BADBR): Renamed from REG_BADBR.
58665         (_REG_ERANGE): Renamed from REG_ERANGE.
58666         (_REG_ESPACE): Renamed from REG_ESPACE.
58667         (_REG_BADRPT): Renamed from REG_BADRPT.
58668         (_REG_EEND): Renamed from REG_EEND.
58669         (_REG_ESIZE): Renamed from REG_ESIZE.
58670         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58671         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58672         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58673         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58674         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58675
58676         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58677         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58678         changed.  But support the old name if the new one is not defined
58679         and if _REGEX_SOURCE.
58680
58681         Change the following member names in struct re_pattern_buffer.
58682         The old names are still supported if !_REGEX_SOURCE.
58683         The new names are always supported, regardless of _REGEX_SOURCE.
58684         (re_buffer): Renamed from buffer.
58685         (re_allocated): Renamed from allocated.
58686         (re_used): Renamed from used.
58687         (re_syntax): Renamed from syntax.
58688         (re_fastmap): Renamed from fastmap.
58689         (re_translate): Renamed from translate.
58690         (re_can_be_null): Renamed from can_be_null.
58691         (re_regs_allocated): Renamed from regs_allocated.
58692         (re_fastmap_accurate): Renamed from fastmap_accurate.
58693         (re_no_sub): Renamed from no_sub.
58694         (re_not_bol): Renamed from not_bol.
58695         (re_not_eol): Renamed from not_eol.
58696         (re_newline_anchor): Renamed from newline_anchor.
58697
58698         Change the following member names in struct re_registers.
58699         The old names are still supported if !_REGEX_SOURCE.
58700         The new names are always supported, regardless of _REGEX_SOURCE.
58701         (rm_num_regs): Renamed from num_regs.
58702         (rm_start): Renamed from start.
58703         (rm_end): Renamed from end.
58704
58705         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58706         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58707         Prepend __ to parameter names.
58708
58709         Undo yesterday's changes.
58710
58711 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58714         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58715         lib/regex.c.
58716
58717 2005-08-24  Jim Meyering  <jim@meyering.net>
58718
58719         Sync from coreutils.
58720         * m4/fcntl-safer.m4: New file.
58721
58722         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58723         and object files for this module.
58724
58725 2005-08-24  Jim Meyering  <jim@meyering.net>
58726
58727         Sync from coreutils.
58728         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58729
58730 2005-08-24  Jim Meyering  <jim@meyering.net>
58731
58732         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58733         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58734
58735 2005-08-24  Jim Meyering  <jim@meyering.net>
58736
58737         * modules/fcntl-safer: New module.
58738         * modules/fts (Depends-on): Add fcntl-safer.
58739         * MODULES.html.sh (File descriptor based Input/Output):
58740         Add fcntl-safer.
58741
58742 2005-08-24  Bruno Haible  <bruno@clisp.org>
58743
58744         Support for unit test modules.
58745         * modules/README: Mention tests modules.
58746         * modules/TEMPLATE-TESTS: New file.
58747         * gnulib-tool: New options --extract-tests-module, --with-tests and
58748         --tests-base (unused for the moment).
58749         (testsbase, inctests): New variables.
58750         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58751         (func_verify_module): Exclude TEMPLATE-TESTS.
58752         (func_verify_nontests_module, func_verify_tests_module): New functions.
58753         (func_get_dependencies): Add implicit dependency for tests modules.
58754         (func_get_tests_module): New function.
58755         (func_modules_transitive_closure): When --with-tests was specified,
58756         include the unit tests as well, unless explicitly avoided.
58757         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58758         (func_emit_tests_Makefile_am): New function.
58759         (func_create_testdir): When --with-tests was specified, emit a
58760         tests/ directory.
58761         * MODULES.html.sh (Future developments): Update.
58762
58763 2005-08-24  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/tls-tests: New file.
58766         * tests/test-tls.c: New file, from GNU gettext.
58767
58768 2005-08-24  Bruno Haible  <bruno@clisp.org>
58769
58770         * modules/lock-tests: New file.
58771         * tests/test-lock.c: New file, from GNU gettext.
58772
58773 2005-08-24  Bruno Haible  <bruno@clisp.org>
58774
58775         * lib/lock.h: Add multiple inclusion guard.
58776         * lib/tls.h: Add multiple inclusion guard.
58777
58778 2005-08-24  Bruno Haible  <bruno@clisp.org>
58779
58780         * gnulib-tool: Add support for the --aux-dir option to
58781         --create-testdir, --create-megatestdir, --test, --megatest.
58782         (func_create_testdir, func_create_megatestdir): Optionally emit a
58783         AC_CONFIG_AUX_DIR directive.
58784         (create-testdir, create-megatestdir, test, megatest): Provide a
58785         default value for $auxdir.
58786
58787 2005-08-24  Bruno Haible  <bruno@clisp.org>
58788
58789         * gnulib-tool (import): Use compound statement instead of subshell
58790         where possible.
58791
58792 2005-08-24  Bruno Haible  <bruno@clisp.org>
58793
58794         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58795
58796 2005-08-24  Bruno Haible  <bruno@clisp.org>
58797
58798         * gnulib-tool (func_version): Update.
58799
58800 2005-08-24  Bruno Haible  <bruno@clisp.org>
58801
58802         * gnulib-tool (func_import, func_create_testdir,
58803         func_create_megatestdir): Quote all autoconf macro arguments.
58804
58805 2005-08-24  Bruno Haible  <bruno@clisp.org>
58806
58807         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58808         option --force, because --force causes the aclocal.m4 of each
58809         subdirectory to be newer than the corresponding config.h.in.
58810
58811 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58812
58813         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58814         All contents moved to gl_REGEX.
58815         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58816         assume that it does.
58817
58818 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58819
58820         * lib/regex.h (REG_NOSYS)
58821         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58822         Define, since POSIX requires it as of 2001.
58823         (_REG_ENOSYS)
58824         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58825         New private symbol, used to keep the enum signed in all cases.
58826         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58827         Youngman in
58828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58829
58830         * lib/regex_internal.c (re_string_skip_chars, register_state):
58831         (calc_state_hash):
58832         Remove forward decls; no longer needed now that we use prototypes.
58833         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58834         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58835         (clean_state_log_if_needed): Likewise.
58836
58837 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58838
58839         * config/srclist.txt: Add glibc bugs 1231-1233.
58840
58841 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58842
58843         Fix problems reported by Sam Steingold in
58844         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58845         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58846         assumed that reg_errcode_t is a signed type, which is not
58847         necessarily true if _XOPEN_SOURCE is not defined.
58848         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58849         since some compilers warn about it otherwise.
58850
58851 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58854         (init_word_char, create_initial_state, duplicate_node_closure):
58855         (fetch_token, peek_token_bracket, build_range_exp):
58856         (build_collating_symbol): Remove forward decls; no longer needed
58857         now that we use prototypes.
58858
58859         * lib/regcomp.c:
58860         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58861         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58862         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58863         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58864         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58865         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58866         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58867         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58868         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58869         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58870         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58871         (build_charclass, build_charclass_op, fetch_number, create_tree):
58872         (create_token_tree, mark_opt_subexp, duplicate_tree):
58873         Use prototypes rather than old-style definitions.
58874
58875         * lib/regex_internal.c:
58876         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58877         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58878         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58879         (re_string_reconstruct, re_string_peek_byte_case):
58880         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58881         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58882         (re_node_set_init_copy, re_node_set_add_intersect):
58883         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58884         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58885         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58886         (re_acquire_state, re_acquire_state_context, register_state):
58887         (create_ci_newstate, create_cd_newstate, free_state):
58888         Likewise.
58889         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58890         re_search_2):
58891         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58892         (re_search_internal, prune_impossible_nodes):
58893         (acquire_init_state_context, check_matching, static):
58894         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58895         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58896         (update_regs, sift_states_backward, build_sifted_states):
58897         (clean_state_log_if_needed, merge_state_array):
58898         (update_cur_sifted_state, add_epsilon_src_nodes):
58899         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58900         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58901         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58902         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58903         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58904         (check_arrival, check_arrival_add_next_nodes):
58905         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58906         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58907         (check_node_accept_bytes, check_node_accept, extend_buffers):
58908         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58909         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58910         (sift_ctx_init):
58911         Likewise.
58912
58913         * lib/regex_internal.h:
58914         (re_string_allocate, re_string_construct, re_string_reconstruct):
58915         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58916         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58917         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58918         (re_string_context_at, re_string_peek_byte_case):
58919         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58920         is defined, since we now use prototypes always.
58921
58922         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58923         C89 or better.  All uses removed.
58924
58925 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58926
58927         * config/srclist.txt: Add glibc bugs 1220-1227.
58928
58929 2005-08-20  Jim Meyering  <jim@meyering.net>
58930
58931         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58932         of unused local, dfa.
58933
58934 2005-08-20  Bruno Haible  <bruno@clisp.org>
58935
58936         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58937
58938 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58941         (re_node_set_insert_last, re_dfa_add_node):
58942         Rename local variables to avoid GCC shadowing warnings.
58943
58944 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58945
58946         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58947         [defined lint]: Suppress bogus uninitialized-variable warnings.
58948
58949         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58950         and let the caller return REG_ESPACE if out of space.  This
58951         removes an uninitialied-variable warning with GCC 4.0.1, and also
58952         avoids taking the address of a local variable.  All callers
58953         changed.
58954
58955 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58956
58957         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58958         $LIBCSRC/posix/regexec.c.
58959         Add glibc bug 1217 for regcomp.c.
58960
58961 2005-08-19  Jim Meyering  <jim@meyering.net>
58962
58963         * lib/regexec.c (proceed_next_node): Redo local variables to
58964         avoid GCC shadowing warnings.
58965
58966 2005-08-18  Bruno Haible  <bruno@clisp.org>
58967
58968         * lib/strstr.c (strstr): Fix return value in multibyte case.
58969         * lib/strcasestr.c (strcasestr): Likewise.
58970
58971 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58972
58973         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58974
58975 2005-08-17  Jim Meyering  <jim@meyering.net>
58976
58977         Make the %s format (seconds since the epoch) work for a negative
58978         number and when used with a zero-padded field width, e.g. %015s.
58979
58980         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58981         label so that it precedes the code to set `digits'.  Otherwise,
58982         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58983         print `00-22'.  Now, it prints `-0022', as it should.
58984
58985 2005-08-17  Bruno Haible  <bruno@clisp.org>
58986
58987         * modules/strstr (Files): Add m4/mbrtowc.m4.
58988         (Depends-on): Add mbuiter.
58989
58990 2005-08-17  Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/strcasestr: New file.
58993         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58994         strcasestr.
58995
58996 2005-08-17  Bruno Haible  <bruno@clisp.org>
58997
58998         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58999
59000 2005-08-17  Bruno Haible  <bruno@clisp.org>
59001
59002         * modules/mbuiter: New file.
59003         * MODULES.html.sh (Extended multibyte and wide character utilities):
59004         Add mbuiter.
59005
59006 2005-08-17  Bruno Haible  <bruno@clisp.org>
59007
59008         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
59009         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
59010
59011 2005-08-17  Bruno Haible  <bruno@clisp.org>
59012
59013         * m4/strcasestr.m4: New file.
59014
59015 2005-08-17  Bruno Haible  <bruno@clisp.org>
59016
59017         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
59018         * lib/strstr.c: Completely rewritten, with multibyte locale support.
59019
59020 2005-08-17  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/strcasestr.h: New file.
59023         * lib/strcasestr.c: New file.
59024
59025 2005-08-17  Bruno Haible  <bruno@clisp.org>
59026
59027         * lib/strcasecmp.c: Use mbuiter.h.
59028
59029 2005-08-17  Bruno Haible  <bruno@clisp.org>
59030
59031         * lib/mbuiter.h: New file.
59032
59033 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
59036         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
59037         and gl_GETOPT are both invoked via different paths (as happens
59038         with GNU tar CVS because it uses both argp and getopt), the former
59039         wins.
59040
59041 2005-08-16  Bruno Haible  <bruno@clisp.org>
59042
59043         * modules/tls: New file.
59044         * MODULES.html.sh (Multithreading): Add tls.
59045
59046 2005-08-16  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/strnlen1: New file.
59049         * MODULES.html.sh (String handling): Add strnlen1.
59050
59051 2005-08-16  Bruno Haible  <bruno@clisp.org>
59052
59053         * modules/strcase (Files): Add m4/mbrtowc.m4.
59054         (Depends-on): Add strnlen1, mbchar.
59055
59056 2005-08-16  Bruno Haible  <bruno@clisp.org>
59057
59058         * modules/mbiter: New file.
59059         * MODULES.html.sh (Extended multibyte and wide character utilities):
59060         Add mbiter.
59061
59062 2005-08-16  Bruno Haible  <bruno@clisp.org>
59063
59064         * modules/mbfile: New file.
59065         * MODULES.html.sh (Extended multibyte and wide character utilities):
59066         Add mbfile.
59067
59068 2005-08-16  Bruno Haible  <bruno@clisp.org>
59069
59070         * modules/mbchar: New file.
59071         * MODULES.html.sh (Extended multibyte and wide character utilities):
59072         New section.
59073
59074 2005-08-16  Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/tls.m4: New file, from GNU gettext.
59077
59078 2005-08-16  Bruno Haible  <bruno@clisp.org>
59079
59080         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
59081         always.
59082         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
59083
59084 2005-08-16  Bruno Haible  <bruno@clisp.org>
59085
59086         * m4/mbiter.m4: New file.
59087
59088 2005-08-16  Bruno Haible  <bruno@clisp.org>
59089
59090         * m4/mbfile.m4: New file.
59091
59092 2005-08-16  Bruno Haible  <bruno@clisp.org>
59093
59094         * m4/mbchar.m4: New file.
59095
59096 2005-08-16  Bruno Haible  <bruno@clisp.org>
59097
59098         * lib/tls.h: New file, from GNU gettext.
59099         * lib/tls.c: New file, from GNU gettext.
59100
59101 2005-08-16  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/strnlen1.h: New file.
59104         * lib/strnlen1.c: New file.
59105
59106 2005-08-16  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
59109         (mbi_init): Update.
59110         (mbi_avail, mbi_advance): Let the iteration end before the terminating
59111         NUL byte, not after it.
59112
59113 2005-08-16  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/strcase.h (strcasecmp): Add note in comments.
59116         * lib/strncasecmp.c: Use code from strcasecmp.c.
59117         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59118         (strcasecmp): Work correctly in multibyte locales.
59119
59120 2005-08-16  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/mbiter.h: New file.
59123
59124 2005-08-16  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/mbfile.h: New file.
59127
59128 2005-08-16  Bruno Haible  <bruno@clisp.org>
59129
59130         * lib/mbchar.h: New file.
59131         * lib/mbchar.c: New file.
59132
59133 2005-08-16  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59136         the valid ones. Makes the comparison operations transitive:
59137         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59138         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59139
59140 2005-08-15  Simon Josefsson  <jas@extundo.com>
59141
59142         * modules/ssize_t (License): Change to 'unlimited'.
59143
59144         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59145
59146 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59147
59148         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59149         Add comments for each pending glibc patch.
59150
59151 2005-08-15  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59154         __cplusplus is defined.
59155
59156 2005-08-14  Jim Meyering  <jim@meyering.net>
59157
59158         Sync from coreutils.
59159
59160         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59161         Use the hash-table-based cycle-detection code not just when
59162         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59163         Reported by James Youngman in
59164         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59165         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59166         FTS_TIGHT_CYCLE_CHECK.
59167         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59168         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59169         once again.
59170         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59171         * lib/fts.c (fd_safer): Remove decl.
59172         Include fcntl--.h rather than unistd-safer.h
59173         (fts_safe_changedir): Don't call fd_safer; no longer needed
59174         now that we include fcntl--.h.
59175
59176 2005-08-12  Simon Josefsson  <jas@extundo.com>
59177
59178         * modules/getndelim2: Use ssize_t module.
59179         * modules/getnline: Likewise.
59180         * modules/safe-read: Likewise.
59181         * modules/xreadlink: Likewise.
59182
59183         * modules/ssize_t: New file.
59184
59185 2005-08-12  Simon Josefsson  <jas@extundo.com>
59186
59187         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59188
59189 2005-08-12  Simon Josefsson  <jas@extundo.com>
59190
59191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59192         ssize_t.
59193
59194 2005-08-12  Simon Josefsson  <jas@extundo.com>
59195
59196         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59197         readline, getdelim and check_version.
59198         (Support for systems lacking ISO C 99: Sizes of integer types):
59199         Add size_max.
59200
59201 2005-08-12  Bruno Haible  <bruno@clisp.org>
59202
59203         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59204
59205 2005-08-11  Simon Josefsson  <jas@extundo.com>
59206
59207         * modules/readline: New file.
59208
59209         * modules/strnlen (Files): Add strnlen.h.
59210
59211 2005-08-11  Simon Josefsson  <jas@extundo.com>
59212
59213         * m4/readline.m4: New file.
59214
59215 2005-08-11  Simon Josefsson  <jas@extundo.com>
59216
59217         * lib/readline.h, readline.c: New file.
59218
59219 2005-08-11  Simon Josefsson  <jas@extundo.com>
59220
59221         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59222         gl_AVOID.
59223
59224 2005-08-11  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59227
59228 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59229
59230         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59231
59232 2005-08-10  Simon Josefsson  <jas@extundo.com>
59233
59234         * tests/test-iconvme.c: New file.
59235
59236 2005-08-10  Simon Josefsson  <jas@extundo.com>
59237
59238         * m4/strnlen.m4: New file.
59239
59240         * m4/strndup.m4: Don't check for strnlen declaration, done in
59241         strnlen.m4.
59242
59243 2005-08-10  Simon Josefsson  <jas@extundo.com>
59244
59245         * lib/strndup.c: Use strnlen.h.
59246
59247         * lib/strnlen.h: New file.
59248
59249 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59250
59251         * README: Typos.
59252
59253 2005-08-02  Simon Josefsson  <jas@extundo.com>
59254
59255         * modules/readline: New file.
59256
59257 2005-08-02  Simon Josefsson  <jas@extundo.com>
59258
59259         * modules/getdelim: New file.
59260
59261         * modules/getline: Rewrite, don't use getndelim2.
59262
59263 2005-08-02  Simon Josefsson  <jas@extundo.com>
59264
59265         * m4/getline.m4: Separate out getdelim stuff into separate module.
59266
59267         * m4/getdelim.m4: New file.
59268
59269 2005-08-02  Simon Josefsson  <jas@extundo.com>
59270
59271         * lib/getline.h, getline.c: Rewrite.
59272
59273         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59274
59275 2005-07-31  Bruno Haible  <bruno@clisp.org>
59276
59277         * lib/lock.h (gl_lock_initializer): New macro.
59278         (gl_lock_define_initialized): Use it.
59279         (gl_rwlock_initializer): New macro.
59280         (gl_rwlock_define_initialized): Use it.
59281         (gl_recursive_lock_initializer): New macro.
59282         (gl_recursive_lock_define_initialized): Use it.
59283
59284 2005-07-30  Karl Berry  <karl@gnu.org>
59285
59286         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59287         Report from Ben Pfaff, regarding getopt.
59288
59289 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59290
59291         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59292         normal way.
59293         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59294         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59295         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59296         (gl_GETOPT): Use the new macros.  Most of the implementation
59297         is moved to the new macros.  This is for programs like Emacs
59298         that don't want all the functionality of gl_GETOPT.
59299
59300 2005-07-26  Bruno Haible  <bruno@clisp.org>
59301
59302         * m4/lock.m4: Update from GNU gettext.
59303
59304 2005-07-26  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/lock.h: Update from GNU gettext.
59307         * lib/lock.c: Update from GNU gettext.
59308
59309 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59310
59311         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59312         obsolescent AC_TRY_RUN.  Include the default includes files, for
59313         'exit'.
59314
59315 2005-07-24  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/visibility: New file.
59318         * MODULES.html.sh (Misc): Add visibility.
59319
59320 2005-07-24  Bruno Haible  <bruno@clisp.org>
59321
59322         * m4/visibility.m4: New file.
59323
59324 2005-07-24  Bruno Haible  <bruno@clisp.org>
59325
59326         * doc/visibility.texi: New file.
59327
59328 2005-07-22  Bruno Haible  <bruno@clisp.org>
59329
59330         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59331         $(ALLOCA_H), redundant through BUILT_SOURCES.
59332         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59333         redundant through BUILT_SOURCES.
59334         * modules/byteswap (Makefile.am): Remove explicit dependency on
59335         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59336         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59337         $(FNMATCH_H), redundant through BUILT_SOURCES.
59338         * modules/getopt (Makefile.am): Remove explicit dependency on
59339         $(GETOPT_H), redundant through BUILT_SOURCES.
59340         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59341         redundant through BUILT_SOURCES.
59342         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59343         redundant through BUILT_SOURCES.
59344         * modules/stdbool (Makefile.am): Remove explicit dependency on
59345         $(STDBOOL_H), redundant through BUILT_SOURCES.
59346         * modules/stdint (Makefile.am): Remove explicit dependency on
59347         $(STDINT_H), redundant through BUILT_SOURCES.
59348         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59349         Remove explicit dependency on $(SYSEXITS_H).
59350         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59351
59352 2005-07-18  Simon Josefsson  <jas@extundo.com>
59353
59354         * lib/check-version.c (check_version): Accept identical versions too.
59355
59356 2005-07-18  Bruno Haible  <bruno@clisp.org>
59357
59358         * modules/lock: New file.
59359         * MODULES.html.sh (Multithreading): New section.
59360
59361 2005-07-18  Bruno Haible  <bruno@clisp.org>
59362
59363         * m4/lock.m4: New file, from GNU gettext.
59364
59365 2005-07-18  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/lock.h: New file, from GNU gettext.
59368         * lib/lock.c: New file, from GNU gettext.
59369
59370 2005-07-18  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/lock.h (gl_once_t): New type.
59373         (gl_once_define, gl_once): New macros.
59374         * lib/lock.c (fresh_once): New variable.
59375         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59376         functions.
59377
59378 2005-07-16  Simon Josefsson  <jas@extundo.com>
59379
59380         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59381         workaround, suggested by Bruno.
59382
59383 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59384
59385         * modules/xalloc (Depends-on): Add xalloc-die.
59386         * modules/xvasprintf (Depends-on): Add xalloc-die.
59387
59388 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59389
59390         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59391         with a minor change.
59392
59393 2005-07-15  Bruno Haible  <bruno@clisp.org>
59394
59395         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59396         When using lib/poll.c, define poll as rpl_poll.
59397
59398 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59399
59400         * modules/argp (Depends-on): Remove unlocked-io.
59401
59402 2005-07-14  Derek Price  <derek@ximbiot.com>
59403
59404         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59405         for glob symlink bug.
59406
59407 2005-07-14  Bruno Haible  <bruno@clisp.org>
59408
59409         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59410         Instead, test for *_unlocked function declarations directly.
59411
59412 2005-07-11  Simon Josefsson  <jas@extundo.com>
59413
59414         * modules/size_max: New file.
59415
59416         * modules/xsize: Depend on size_max module for size_max.m4.
59417
59418 2005-07-11  Simon Josefsson  <jas@extundo.com>
59419
59420         * lib/size_max.h: New file.
59421
59422 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59423
59424         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59425         copyright symbol and the year.
59426         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59427         (version_etc_va): Use parameterized copyright notice.
59428         Reword to conform to the current GNU coding standards.
59429
59430 2005-07-11  Karl Berry  <karl@gnu.org>
59431
59432         * doc/gnulib.texi (Quoting): new node.
59433         (Initial import): more info, from Patrice.
59434
59435 2005-07-11  Bruno Haible  <bruno@clisp.org>
59436
59437         * gnulib-tool (func_usage): Document option --avoid.
59438         (Command line options): Handle --avoid.
59439         (func_acceptable): New function.
59440         (func_modules_transitive_closure): Use it.
59441
59442 2005-07-11  Bruno Haible  <bruno@clisp.org>
59443
59444         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59445         Reported by Jim Meyering.
59446
59447 2005-07-10  Bruno Haible  <bruno@clisp.org>
59448
59449         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59450         Needed when size_t is smaller than 'unsigned int'.
59451         Reported by Paul Eggert.
59452
59453 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59454
59455         * modules/argp (Depends-on): Add unlocked-io
59456
59457 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59458
59459         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59460         block of defines.
59461
59462 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59465         fix now.
59466
59467 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59468         and Paul Eggert  <eggert@cs.ucla.edu>
59469
59470         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59471         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59472
59473 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59474
59475         * modules/regex (Files): Add lib/regex_internal.c,
59476         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59477         (Depends-on): Add extensions.
59478         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59479
59480 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59481
59482         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59483         pathconf.
59484         * m4/same.m4 (gl_SAME): Likewise.
59485         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59486
59487         * m4/regex.m4: Adjust to new libc regex implementation.
59488         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59489         all the .c and .h parts of (the new) regex.
59490         Quote the m4 stuff better.
59491         Check for RE_ICASE bug of old gnulib.
59492         Check for REG_STARTEND of recent libc.
59493         Rename local variables from jm_* to gl_*.
59494         Quote operand of "test -f".
59495         Say "recent enough" version of libc, not "version 2".
59496         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59497         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59498         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59499         Remove check for btowc, isascii.
59500         Require AM_LANGINFO_CODESET.
59501
59502 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         * lib/regex.c, regex.h: Sync from libc.
59505         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59506         * lib/regexec.c:
59507         New files, synced from libc, except that regex_internal.h
59508         currently has a small porting fix.
59509
59510 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59513         regex_internal.c, regexec.c.
59514         Add regex_internal.h too, but as a comment, since the libc version
59515         is currently broken in gnulib mode.
59516
59517 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         Support programs like Emacs that use gnulib but not gettext.
59520         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59521         * modules/gettext-h: New file.
59522         * modules/gettext (Files): Remove lib/gettext.h.
59523         (Depends-on): Add gettext-h.
59524         (Makefile.am): Remove lib_SOURCES.
59525         * modules/argmatch, modules/c-stack, modules/closeout:
59526         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59527         * modules/execute, modules/file-type, modules/getaddrinfo:
59528         * modules/getopt, modules/human, modules/javacomp:
59529         * modules/javaexec, modules/mkdir-p, modules/obstack:
59530         * modules/openat, modules/pagealign_alloc, modules/pipe:
59531         * modules/quotearg, modules/regex, modules/rpmatch:
59532         * modules/unicodeio, modules/userspec, modules/version-etc:
59533         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59534         * modules/xsetenv:
59535         Depend on gettext-h, not gettext.
59536
59537 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59538
59539         * gnulib-tool (func_import): Add support for 'public domain' license.
59540         * modules/alloca, modules/atexit, modules/memmove:
59541         Now public domain, not GPL.
59542         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59543         * modules/realloc, modules/strerror, modules/strtod:
59544         Now LGPL, not GPL.
59545
59546 2005-07-05  Bruno Haible  <bruno@clisp.org>
59547
59548         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59549         autoconf CVS. Needed for mingw.
59550
59551 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59552
59553         Remove the dependency of the strftime module on the tzset module.
59554         * modules/strftime (Depends-on): Remove dependency on tzset.
59555
59556 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59557
59558         Remove the dependency of the strftime module on the tzset module.
59559         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59560         gl_FUNC_TZSET_CLOBBER.
59561
59562 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59563
59564         Remove the dependency of the strftime module on the tzset module.
59565         * lib/strftime.c (my_strftime)
59566         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59567         Copy the input structure, to work around some of the bug with
59568         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59569         Solaris releases, you should also use the tzset module, but we won't
59570         require it as a dependency any more since we don't want LGPLed code
59571         to depend on GPLed code.
59572
59573 2005-07-02  Jim Meyering  <jim@meyering.net>
59574
59575         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59576         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59577         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59578         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59579
59580 2005-07-02  Jim Meyering  <jim@meyering.net>
59581
59582         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59583
59584 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59585
59586         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59587         declares only 'struct timespec;' (!).
59588
59589 2005-07-01  Jim Meyering  <jim@meyering.net>
59590
59591         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59592         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59593         * lib/save-cwd.c, tempname.c:
59594         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59595         and don't include <sys/file.h>).
59596
59597 2005-06-29  Jim Meyering  <jim@meyering.net>
59598
59599         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59600         type name.  Use the variable name instead.
59601         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59602         Likewise.
59603
59604 2005-06-28  Simon Josefsson  <jas@extundo.com>
59605
59606         * modules/check-version (Files): Add check-version.m4.
59607
59608 2005-06-28  Simon Josefsson  <jas@extundo.com>
59609
59610         * m4/check-version.m4: New file, suggested by Jim Meyering
59611         <jim@meyering.net>.
59612
59613 2005-06-28  Simon Josefsson  <jas@extundo.com>
59614
59615         * lib/check-version.h, lib/check-version.c: New files.
59616
59617 2005-06-28  Simon Josefsson  <jas@extundo.com>
59618
59619         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59620         collision with global variable.  Better indentation.  Don't
59621         increment buffer pointer beyond buffer end.  Based on comments
59622         from Paul Eggert <eggert@cs.ucla.edu>.
59623
59624         * lib/base64.h: Indent.
59625
59626 2005-06-28  Simon Josefsson  <jas@extundo.com>
59627
59628         * doc/gnulib.texi (Library version handling): New section.
59629
59630 2005-06-28  Jim Meyering  <jim@meyering.net>
59631
59632         * check-module (find_included_lib_files): Hard-code another
59633         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59634         but modules/fts-lgpl (correctly) does not list those files.
59635
59636         * modules/canonicalize (Files): Add lib/pathmax.h.
59637
59638 2005-06-25  Simon Josefsson  <jas@extundo.com>
59639
59640         * modules/check-version: New file.
59641
59642 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59645         initializer of struct addrinfo, as an indication that we don't
59646         care how many members the structure has.
59647
59648 2005-06-24  Derek Price  <derek@ximbiot.com>
59649         and Bruno Haible  <bruno@clisp.org>
59650
59651         Remove stat module & update lstat.
59652         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59653         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59654         * m4/stat.m4: Remove this file.
59655
59656 2005-06-24  Derek Price  <derek@ximbiot.com>
59657         and Bruno Haible  <bruno@clisp.org>
59658
59659         Remove stat module & update lstat.
59660         * lib/stat.c: Remove this file...
59661         (slash_aware_lstat): ...moving this content and its support...
59662         * lib/lstat.c (rpl_lstat): ...into here.
59663         * lib/lstat.h: New file.
59664
59665 2005-06-24  Derek Price  <derek@ximbiot.com>
59666         and Bruno Haible  <bruno@clisp.org>
59667
59668         Remove stat module & update lstat.
59669         * config/srclist.txt (libc sources): Remove stat.
59670
59671 2005-06-24  Derek Price  <derek@ximbiot.com>
59672         and Bruno Haible  <bruno@clisp.org>
59673
59674         Remove stat module & update lstat.
59675         * MODULES.html.sh (stat): Remove.
59676         * MODULES.html: Regenerated.
59677         * modules/lstat (Description): Correct function name.
59678         (Files): Add "lstat.h".
59679         (Depends-on): Remove stat, add xalloc, stat-macros.
59680         * modules/stat: Remove this file.
59681         (Include): Add "lstat.h", remove <sys/stat.h>.
59682
59683 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59684
59685         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59686         (ranged_convert): Don't save conversion in a temporary struct.
59687         This causes a warning with GCC 4.0.0, and anyway in the typical
59688         case it's not worth the extra 100 bytes or so of code.
59689         (ranged_convert, __mktime_internal): When calling a function via a
59690         pointer P, use P () rather than (*P) (), as we now assume C89 or
59691         better.
59692
59693 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59694
59695         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59696         "who -r" failed to give output.  Problem reported by Tim Waugh.
59697
59698         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59699         (xcalloc): Use it to avoid needless tests.
59700         Problem reported by Jim Meyering.
59701
59702 2005-06-20  Derek Price  <derek@ximbiot.com>
59703
59704         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59705         unnecessary for Autoconfs > 2.59c.
59706
59707 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59708
59709         * lib/argp.h (__option_is_short): Check upper limit of
59710         __key. Isprint() requires its argument to have the value
59711         of an unsigned char or EOF.
59712
59713 2005-06-16  Jim Meyering  <jim@meyering.net>
59714
59715         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59716         when either N or S is zero.
59717
59718 2005-06-16  Derek Price  <derek@ximbiot.com>
59719
59720         * m4/bison.m4: Declare YACC & YFLAGS precious.
59721
59722 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59723
59724         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59725         multibyte string or pattern, fall back on unibyte matching.
59726         Problem reported by James Youngman.
59727
59728 2005-06-08  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/csharpcomp: New file.
59731         * MODULES.html.sh (C#): Add csharpcomp.
59732
59733 2005-06-08  Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/csharpcomp.m4: New file, from GNU gettext.
59736
59737 2005-06-08  Bruno Haible  <bruno@clisp.org>
59738
59739         * lib/csharpcomp.h: New file, from GNU gettext.
59740         * lib/csharpcomp.c: New file, from GNU gettext.
59741         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59742
59743 2005-06-08  Bruno Haible  <bruno@clisp.org>
59744
59745         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59746         warning on mingw.
59747
59748 2005-06-07  Derek Price  <derek@ximbiot.com>
59749
59750         Sync from CVS.
59751         * lib/glob_.h: Indent nested #ifdef.
59752
59753 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59754
59755         Sync from coreutils.
59756         Use "file name" when talking about file names, instead of "filename"
59757         or "path", as per the GNU coding standards.
59758         * lib/mkdir-p.c: Renamed from makepath.c.
59759         (make_dir_parents): Renamed from make_path.  All callers changed.
59760         * lib/mkdir-p.h: Likewise.  All includers changed.
59761         * lib/filenamecat.c: Renamed from path-concat.c.
59762         (file_name_concat): Renamed from path_concat.  All callers changed.
59763         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59764         * lib/filenamecat.h: Likewise.  All includers changed.
59765         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59766         in comments or local variable names.
59767         * lib/basename.c: Likewise.
59768         * lib/canonicalize.c, canonicalize.h: Likewise.
59769         * lib/dirname.c, dirname.h: Likewise.
59770         * lib/euidaccess.c: Likewise.
59771         * lib/exclude.c: Likewise
59772         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59773         * lib/fsusage.c, fsuage.h: Likewise.
59774         * lib/fts.c, fts_.h: Likewise.
59775         * lib/getcwd.c: Likewise.
59776         * lib/getloadavg.c: Likewise.
59777         * lib/mkstemp.c: Likewise.
59778         * lib/mountlist.c, mountlist.h: Likewise.
59779         * lib/openat.c, openat.h: Likewise.
59780         * lib/readlink-stub.c: Likewise.
59781         * lib/readutmp.c, readutmp.h: Likewise.
59782         * lib/rename.c: Likewise.
59783         * lib/rmdir.c: Likewise.
59784         * lib/same.c: Likewise.
59785         * lib/savedir.c: Likewise.
59786         * lib/stripslash.c: Likewise.
59787         * lib/tempname.c: Likewise.
59788         * lib/xreadlink.c: Likewise.
59789         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59790         All uses changed.
59791         * lib/exclude.h: Likewise.
59792
59793         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59794         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59795         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59796         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59797         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59798         files have been getting away with it for years (MORE/BSD 4.3
59799         is extinct now).
59800         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59801         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59802
59803         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59804         Define to 256, not 255, as per modern POSIX.
59805
59806 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59807
59808         Sync from coreutils.
59809         Use "file name" when talking about file names, instead of "filename"
59810         or "path", as per the GNU coding standards.
59811         * MODULES.html.sh: mkdir-p renamed from makepath.
59812         filenamecat renamed from path-concat.
59813         * modules/filenamecat: Renamed from modules/path-concat.
59814         (Files): filenamecat.h and filenamecat.c renamed from
59815         path-concat.h and path-concat.c.
59816         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59817         (Include): filenamecat.h, not path-concat.h.
59818         * modules/mkdir-p: Renamed from modules/makepath.
59819         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59820         makepath.c.
59821         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59822         (Include): mkdir-p.h, not makepath.h.
59823
59824 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59825
59826         Sync from coreutils.
59827         * m4/mkdir-p.m4: Renamed from makepath.m4.
59828         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59829         Rename files from makepath.c to mkdir-p.c, and from
59830         makepath.h to mkdir-p.h.
59831         * m4/filenamecat.m4: Renamed from path-concat.m4.
59832         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59833         Rename files from path-concat.c to filenamecat.c,
59834         and from path-concat.h to filenamecat.h.
59835         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59836         "file name" in local variables or comments.
59837         * m4/rename.m4: Likewise.
59838
59839 2005-06-01  Bruno Haible  <bruno@clisp.org>
59840
59841         * modules/csharpexec: New file.
59842         * MODULES.html.sh (C#): New section.
59843
59844 2005-06-01  Bruno Haible  <bruno@clisp.org>
59845
59846         * m4/csharp.m4: New file, from GNU gettext.
59847         * m4/csharpexec.m4: New file, from GNU gettext.
59848
59849 2005-06-01  Bruno Haible  <bruno@clisp.org>
59850
59851         * lib/csharpexec.h: New file, from GNU gettext.
59852         * lib/csharpexec.c: New file, from GNU gettext.
59853         * lib/csharpexec.sh.in: New file, from GNU gettext.
59854
59855 2005-05-31  Derek Price  <derek@ximbiot.com>
59856             Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         Sync from cvs.
59859         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59860
59861 2005-05-31  Derek Price  <derek@ximbiot.com>
59862             Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         Sync from cvs.
59865         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59866
59867 2005-05-29  Derek Price  <derek@ximbiot.com>
59868
59869         * config/srclist.txt (glob_.h, glob.c): Add these files.
59870
59871 2005-05-29  Derek Price  <derek@ximbiot.com>
59872
59873         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59874         * modules/glob: New file.
59875         * modules/getlogin_r: Add link to POSIX spec in description.
59876
59877 2005-05-29  Derek Price  <derek@ximbiot.com>
59878             Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         * m4/glob.m4: New file.
59881
59882 2005-05-29  Derek Price  <derek@ximbiot.com>
59883             Paul Eggert  <eggert@cs.ucla.edu>
59884
59885         * lib/glob_.h, lib/glob.c: New files.
59886
59887 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59888
59889         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59890         * modules/fts-lgpl (Depends-on): Remove gettext.
59891
59892 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59895         and don't require gt_INTTYPES_PRI.
59896
59897 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59898
59899         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59900
59901         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59902         the configuration hassle isn't worth it.
59903         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59904         (LONGEST_MODIFIER, PRIuMAX): Remove.
59905
59906 2005-05-27  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59909
59910 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59913         _POSIX_PTHREAD_SEMANTICS for Solaris.
59914
59915 2005-05-25  Derek Price  <derek@ximbiot.com>
59916
59917         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59918
59919 2005-05-25  Derek Price  <derek@ximbiot.com>
59920             Paul Eggert  <eggert@cs.ucla.edu>
59921
59922         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59923         * lib/getlogin_r.c, getlogin_r.h: New files.
59924
59925 2005-05-25  Bruno Haible  <bruno@clisp.org>
59926             Derek Price  <derek@ximbiot.com>
59927
59928         * lib/getlogin_r.h: Simplify API documentation.
59929
59930 2005-05-23  Derek Price  <derek@ximbiot.com>
59931
59932         * modules/minmax (Files): Add m4/minmax.m4.
59933         (configure.ac): Add gl_MINMAX.
59934
59935 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59936
59937         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59938         so that unistd-safer.h (GPL'ed code) need not be included.
59939
59940 2005-05-22  Bruno Haible  <bruno@clisp.org>
59941
59942         * m4/minmax.m4: New file.
59943         Based on a patch by Derek Price <derek@ximbiot.com>.
59944
59945 2005-05-22  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59948         (INT64_MIN): Fix definition.
59949         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59950
59951         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59952         NEED_SIGNED_INT_TYPES.
59953
59954         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59955         HAVE_SYSTEM_INTTYPES.
59956
59957 2005-05-22  Bruno Haible  <bruno@clisp.org>
59958
59959         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59960         Also include <sys/param.h> if it defines MIN, MAX.
59961         Based on a patch by Derek Price <derek@ximbiot.com>.
59962
59963 2005-05-21  Jim Meyering  <jim@meyering.net>
59964
59965         * modules/fts (Files): Add m4/inttypes-pri.m4.
59966         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59967
59968 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59969
59970         New fts module.
59971         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59972         (setup_dir, free_dir): New functions.
59973         (enter_dir, leave_dir): Define trivial
59974         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59975         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59976         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59977         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59978         Move to fts-cycle.c.
59979         (fts_open): Use setup_dir.
59980         (fts_close): Use free_dir.
59981         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59982         This adds a label and some gotos, but the alternatives were messier.
59983         Check for memory allocation failure when entering a dir.
59984         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59985         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59986         (FTS): New member fts_cycle, that is a union that contains the
59987         old active_dir_ht and cycle_state.  All uses changed to mention
59988         fts_cycle.ht and fts_cycle.state.
59989         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59990         fts.c, with the following changes:
59991         (setup_dir, free_dir): New functions.
59992         (enter_dir): Now returns bool.  Return true if successful, false
59993         if memory exhausted.  All callers changed.
59994         Do not bother partly cleaning up on
59995         memory allocation failure; that is free_dir's job.
59996         However, free ad if hash_insert fails, to avoid memory leak.
59997         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59998         fts->fts_options to see which union member to use.
59999
60000 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
60003         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
60004
60005 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60006
60007         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
60008
60009 2005-05-20  Jim Meyering  <jim@meyering.net>
60010
60011         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
60012         Now a macro, to pacify GCC.
60013
60014 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60015
60016         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
60017         of -1.
60018
60019 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60020
60021         * lib/chown.c (rpl_chown): Return -1 on failure.
60022
60023 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
60026         Don't check for stddef.h.
60027         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
60028         don't use its results.
60029         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
60030         since we include them unconditionally.  Don't require
60031         AM_STDBOOL_H, since stdbool is a prerequisite.
60032         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
60033         since we assume C89 or better.
60034         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
60035         as we don't use their results.
60036         Don't check for fchdir, memmove, memset, strrchr, as we use
60037         them unconditionally.
60038         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
60039         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
60040
60041 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60042
60043         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
60044         Include <stddef.h> unconditionally, since we assume C89 now.
60045         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
60046         * lib/fts.c: Include fts_.h first, to check interface.
60047         Do not include intprops.h; no longer needed.
60048         Include cycle-check.h and hash.h, since fts_.h no longer does.
60049         Remove unnecessary casts of closedir to void.
60050         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
60051         decide whether to decrement nlinks.
60052         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
60053         (FTS): Use struct hash_table * instead of Hash_table, so that
60054         we no longer need to include hash.h here.
60055
60056 2005-05-18  Jim Meyering  <jim@meyering.net>
60057
60058         * modules/dirfd (License): Change to LGPL.  Most of the code
60059         is already in the public domain.
60060
60061 2005-05-18  Jim Meyering  <jim@meyering.net>
60062
60063         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
60064         Reported by Yoann Vandoorselaere.
60065
60066 2005-05-17  Jim Meyering  <jim@meyering.net>
60067
60068         * m4/fts.m4: New file, from coreutils.
60069
60070 2005-05-17  Jim Meyering  <jim@meyering.net>
60071
60072         * lib/fts.c, lib/fts_.h: New files, from coreutils.
60073
60074 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60075
60076         Sync from coreutils.
60077         * m4/unlinkdir.m4: New file.
60078
60079 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60080
60081         Sync from coreutils.
60082         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
60083         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
60084         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
60085         White space changes only.
60086         * lib/makepath.c (make_path): Port to hosts where leading "//" is
60087         special.
60088         * lib/yesno.c: Include getline.h, not ctype.h.
60089         (yesno): Don't remove leading white space; POSIX doesn't allow it.
60090         Use getline to remove arbitrary restriction on response length.
60091
60092 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60093
60094         * config/srclist-update: Spell out "Street" in FSF postal
60095         mail address; this is the style the FSF seems to prefer.
60096
60097         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
60098         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
60099         this updates FSF postal mail address.
60100
60101         Sync from coreutils.
60102         * modules/unlinkdir: New file.
60103         * modules/yesno (Depends-on): Add getline.
60104         * MODULES.html.sh (File system functions): Add unlinkdir.
60105
60106 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60107
60108         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
60109         lib/strsep.h:
60110         Change the initial comment to refer to GPL, not LGPL.
60111         gnulib-tool will change it to LGPL as needed.
60112
60113         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
60114         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
60115         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60116         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60117         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60118         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60119         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60120         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60121         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60122         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60123         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60124         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60125         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60126         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60127         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60128         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60129         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60130         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60131         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60132         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60133         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60134         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60135         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60136         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60137         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60138         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60139         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60140         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60141         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60142         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60143         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60144         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60145         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60146         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60147         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60148         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60149         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60150         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60151         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60152         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60153         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60154         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60155         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60156         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60157         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60158         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60159         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60160         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60161         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60162         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60163         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60164         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60165         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60166         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60167         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60168         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60169         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60170         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60171         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60172         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60173         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60174         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60175         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60176         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60177         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60178         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60179         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60180         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60181         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60182         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60183         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60184         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60185         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60186         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60187         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60188         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60189         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60190         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60191         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60192         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60193         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60194         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60195         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60196         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60197         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60198         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60199         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60200         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60201         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60202         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60203         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60204         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60205         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60206         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60207         lib/yesno.c, lib/yesno.h:
60208         Update FSF postal mail address.
60209
60210 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60213         tests/test-memmem.c, tests/test-stpncpy.c:
60214         Update FSF postal mail address.
60215
60216 2005-05-13  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60219         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60220         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60221         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60222         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60223         Add support for 64-bit integers in the MSVC compiler.
60224
60225 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60226
60227         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60228
60229 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60230
60231         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60232
60233 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60234
60235         * doc/getdate.texi (General date syntax): Don't say that date
60236         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60237         Problem reported by Nic Ferrier.
60238
60239 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60240
60241         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60242         specified in ai_socktype. Fix invalid ai_protocol
60243         check. ai_protocol is usually set to 0 or depending on
60244         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60245         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60246         ai_socktype / ai_protocol in the returned addrinfo structure.
60247
60248 2005-05-10  Simon Josefsson  <jas@extundo.com>
60249
60250         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60251         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60252
60253 2005-05-10  Karl Berry  <karl@gnu.org>
60254
60255         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60256         (from http://www.gnu.org/licenses).
60257         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60258         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60259         fdl.texi suffices.
60260
60261 2005-05-10  Karl Berry  <karl@gnu.org>
60262
60263         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60264         (COPYING.DOC): remove.
60265
60266         * config/srclist-update: new FSF address.
60267
60268 2005-05-10  Derek Price  <derek@ximbiot.com>
60269
60270         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60271         possible.
60272
60273 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60274             Bruno Haible  <bruno@clisp.org>
60275
60276         * modules/inet_ntop: New file.
60277         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60278         inet_ntop.
60279
60280 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60281             Bruno Haible  <bruno@clisp.org>
60282
60283         * m4/inet_ntop.m4: New file.
60284
60285 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60286             Bruno Haible  <bruno@clisp.org>
60287
60288         * lib/inet_ntop.h: New file.
60289         * lib/inet_ntop.c: New file, from glibc with modifications.
60290
60291 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60292
60293         * modules/time_r (License): Change to LGPL.
60294         * modules/extensions (License): Change to LGPL.  Actually,
60295         the license is more permissive than that, but currently gnulib-tool
60296         doesn't know how to handle more-permissive licenses.
60297
60298         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60299         Problem reported by Dave Love.
60300
60301 2005-05-08  Jim Meyering  <jim@meyering.net>
60302
60303         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60304         blank.
60305
60306 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60307
60308         * modules/argmatch (Depends-on): Add stdbool.
60309         * modules/backupfile (Depends-on): Likewise.
60310         * modules/chdir-long (Depends-on): Likewise.
60311         * modules/closeout (Depends-on): Likewise.
60312         * modules/cycle-check (Depends-on): Likewise.
60313         * modules/dirname (Depends-on): Likewise.
60314         * modules/fnmatch (Depends-on): Likewise.
60315         * modules/fsusage (Depends-on): Likewise.
60316         * modules/fwriteerror (Depends-on): Likewise.
60317         * modules/getcwd (Depends-on): Likewise.
60318         * modules/getloadavg (Depends-on): Likewise.
60319         * modules/hard-locale (Depends-on): Likewise.
60320         * modules/makepath (Depends-on): Likewise.
60321         * modules/mountlist (Depends-on): Likewise.
60322         * modules/nanosleep (Depends-on): Likewise.
60323         * modules/posixtm (Depends-on): Likewise.
60324         * modules/quotearg (Depends-on): Likewise.
60325         * modules/readtokens (Depends-on): Likewise.
60326         * modules/readtokens0 (Depends-on): Likewise.
60327         * modules/readutmp (Depends-on): Likewise.
60328         * modules/save-cwd (Depends-on): Likewise.
60329         * modules/strftime (Depends-on): Likewise.
60330         * modules/userspec (Depends-on): Likewise.
60331         * modules/utimecmp (Depends-on): Likewise.
60332         * modules/xgetcwd (Depends-on): Likewise.
60333         * modules/xnanosleep (Depends-on): Likewise.
60334         * modules/xstrtod (Depends-on): Likewise.
60335         * modules/yesno (Depends-on): Likewise.
60336
60337 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60338
60339         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60340         needless checks.
60341
60342 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60343
60344         Merge from coreutils.  Among other things,
60345         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60346         * lib/fd-safer.c: New file.
60347         * lib/fcntl-safer.h, open-safer.c: Remove.
60348         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60349         * lib/dup-safer.c: Include unistd-safer.h first.
60350         Don't include errno.h.
60351         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60352         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60353         * lib/file-type.c: Rely on file-type.h change.
60354         * lib/getloadavg.c: Include unistd-safer.h.
60355         (getloadavg): Use safer open.
60356         * lib/getusershell.c: Include "stdio-safer.h".
60357         (getusershell): Use safer fopen.
60358         * lib/long-options.c (long_options): Use NULL rather than 0.
60359         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60360         'free'.
60361         * lib/modechange.c: Likewise.
60362         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60363         (MODE_DONE): New constant.
60364         (struct mode_change): Remove 'next' member.
60365         (make_node_op_equals): New function; like the old one of the
60366         same name, except it allocates an array.
60367         (mode_compile, mode_create_from_ref): Use it.
60368         (mode_compile): Allocate result as an array, not a linked list.
60369         Parse octal string ourself, so that we catch mistakes like "+0".
60370         (mode_adjust): Arg is an array, not a linked list.
60371         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60372         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60373         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60374         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60375         Remove.  This is now stat-macros.h's job.
60376         (talloc): Remove.  All callers replaced by xalloc, so that
60377         our invokers don't have to worry about reporting memory failures.
60378         (make_node_op_equals): Remove.
60379         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60380         New constants.
60381         (struct mode_change): Moved here from modechange.h.
60382         (mode_append_entry): Remove.
60383         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60384         apps to have incorrect behavior.  Use simpler algorithm for head
60385         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60386         Detect more invalid usages rather than having somewhat-random behavior.
60387         Don't insert an "a=" action, as that leads to incorrect behavior.
60388         (mode_compile, mode_create_from_ref): Return NULL on error instead
60389         of an enum, since now there's only one way to have an error.  All
60390         callers changed.
60391         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60392         at the correct time.  Simplify calculation of "+u" and its ilk.
60393         Don't mishandle "+X".
60394         (mode_free): Remove "register" and localize decls.
60395         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60396         (struct mode_change): Move to modechange.c; callers don't
60397         need to see this stuff.
60398         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60399         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60400         (mode_change, mode_adjust): Reflect the new signatures noted above.
60401         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60402         that might redefine system include files.
60403         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60404         (my_usleep): Use NULL rather than (void *) 0.
60405         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60406         Use siginterrupt to specify that system calls should be interrupted.
60407         (rpl_nanosleep): Move initialization of suspended closer to call of
60408         my_usleep.
60409         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60410         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60411         (desirable_utmp_entry): New function.
60412         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60413         using x2nrealloc, to simplify logic.
60414         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60415         size calculation.  Do not assume utmp file is a regular file.
60416         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60417         (READ_UTMP_CHECK_PIDS): New constant.
60418         * lib/save-cwd.c: Include unistd-safer.h.
60419         (save_cwd): Use fd_safer.
60420         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60421         [!_LIBC] Include "stat-macros.h" instead.
60422         * lib/unistd-safer.h (fd_safer): New decl.
60423
60424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60425
60426         * modules/getloadavg (Depends-on): Add unistd-safer.
60427         * modules/getusershell (Depends-on): Add stdio-safer.
60428         * modules/lstat (Depends-on): Remove xalloc.
60429         * modules/mkstemp (Depends-on): Add stat-macros.
60430         * modules/modechange (Depends-on): Remove xstrtol.
60431         Add stat-macros, xalloc.
60432         * modules/save-cwd (Depends-on): Add unistd-safer.
60433         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60434         * modules/unistd-safer (Files): Add lib/fd-safer.c
60435         (Makefile.am): Remove lib_SOURCES.
60436
60437         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60438         Remove fcntl-safer; unistd-safer supersedes it.
60439
60440 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60441
60442         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60443         AC_HEADER_STAT.
60444         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60445         (gl_PREREQ_CHOWN): Remove.
60446         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60447         it.  Don't require AC_HEADER_STAT.
60448         (gl_PREREQ_LSTAT): Remove.
60449         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60450         Don't require AC_HEADER_STAT.
60451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60452         (gl_PREREQ_RMDIR): Remove.
60453         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60454         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60455         the stat-macros module a prerequisite.
60456         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60457         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60458         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60459         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60460         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60461         variable names.
60462         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60463         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60464         variable prefixes.
60465         * m4/fcntl-safer.m4: Remove.
60466         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60467         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60468         Invoke gl_PREREQ_FD_SAFER.
60469         (gl_PREREQ_FD_SAFER): New macro.
60470         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60471         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60472         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60473         Remove duplicate call to AC_LIBOBJ(readutmp).
60474         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60475
60476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60477         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60478
60479 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         * MODULES.html.sh (Misc): Add byteswap.
60482
60483 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60484
60485         * modules/getcwd (Depends-on): Add extensions.
60486         * modules/openat (Depends-on): Likewise.
60487
60488 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60489
60490         * modules/byteswap: New file.
60491
60492 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60493
60494         * m4/byteswap.m4: New file.
60495
60496 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60497
60498         * lib/byteswap_.h: New file.
60499
60500 2005-04-25  Karl Berry  <karl@gnu.org>
60501
60502         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60503
60504 2005-04-25  Albert Chin  <china@thewrittenword.com>
60505
60506         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60507         Toolkit C bug.
60508
60509 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60510
60511         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60512         (func_ln_if_changed) Remove forcibly for no error message
60513         in case file does not exist.
60514
60515 2005-04-19  Simon Josefsson  <jas@extundo.com>
60516
60517         * gnulib-tool (Options): Make --symlink mean --symbolic.
60518
60519 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60520
60521         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60522
60523 2005-04-16  Simon Josefsson  <jas@extundo.com>
60524
60525         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60526
60527 2005-04-15  Simon Josefsson  <jas@extundo.com>
60528
60529         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60530
60531 2005-04-15  Simon Josefsson  <jas@extundo.com>
60532
60533         * gnulib-tool: Rename --symlink to --symbolic.
60534
60535 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60536
60537         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60538         symbolic links to files instead of copying/moving.  Add --aux-dir,
60539         specifying directory relative --dir where auxiliary build tools
60540         are placed.
60541
60542 2005-04-14  Bruno Haible  <bruno@clisp.org>
60543
60544         * modules/allocsa (License): Change to LGPL.
60545         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60546
60547 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60548
60549         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60550         that "UTC +1 second" continues to work.  Problem reported
60551         by Dmitry V. Levin.
60552         (relunit_snumber): New rule.
60553         (relunit): Use it.
60554
60555 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * lib/getdate.y (universal_time_zone_table): New constant.
60558         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60559         universal_time_zone_table.
60560         (lookup_zone): Prefer universal_time_zone_table to
60561         local_time_zone_table, so that "GMT" time stamps are allowed in
60562         London during the summer.  Problem reported by Ian Abbott.
60563
60564 2005-04-12  Jim Meyering  <jim@meyering.net>
60565
60566         * lib/human.c (humblock): Set *options even when returning due to
60567         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60568         warning from gcc-4.
60569
60570 2005-04-09  Jim Meyering  <jim@meyering.net>
60571
60572         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60573         -Wuninitialized: initialize tm0.tm_year.
60574
60575 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60578         count, since there's no maximum.  All uses changed.
60579         Add member dsts_seen.
60580         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60581         not being INT_MAX.
60582         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60583         Use pc_rels_seen to decide whther a date is absolute.
60584
60585         * lib/getdate.y (number): Don't overwrite year.
60586         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60587         check.
60588
60589 2005-04-02  Simon Josefsson  <jas@extundo.com>
60590
60591         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60592         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60593
60594 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60595
60596         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60597         where no absolute path name can be longer than PATH_MAX.
60598
60599 2005-03-27  Jim Meyering  <jim@meyering.net>
60600
60601         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60602
60603 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60606         "one's complement" -> "ones' complement" in comment, as per Knuth.
60607         "value of type" -> "type or expression" in comment.
60608         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60609
60610 2005-03-26  Jim Meyering  <jim@meyering.net>
60611
60612         Comment nits.
60613         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60614         Correct typos: s/or/of/.
60615
60616 2005-03-26  Jim Meyering  <jim@meyering.net>
60617
60618         * modules/check-include-files: Move to ../ and rename to...
60619         * check-module: ...this.
60620
60621 2005-03-25  Jim Meyering  <jim@meyering.net>
60622
60623         * modules/xvasprintf (Files): Add xalloc.h.
60624
60625 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60626
60627         * modules/gettext (Files): config/config.rpath ->
60628         build-aux/config.rpath
60629         * modules/iconv (Files): Likewise.
60630         Problem reported by Oskar Liljeblad.
60631
60632 2005-03-23  Jim Meyering  <jim@meyering.net>
60633
60634         * modules/check-include-files: New script to check for
60635         missing dependencies, multiple includes, etc.
60636
60637         * modules/c-strtold (Depends-on): Add xalloc.
60638         * modules/c-strtod (Depends-on): Add xalloc.
60639         * modules/hash (Depends-on): Add xalloc.
60640         (Files): Remove lib/xalloc.h.
60641
60642         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60643         * modules/userspec (Files): Add lib/inttostr.h.
60644
60645 2005-03-23  Jim Meyering  <jim@meyering.net>
60646
60647         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60648
60649 2005-03-22  Jim Meyering  <jim@meyering.net>
60650
60651         * modules/stat-macros: New module.
60652         * modules/canonicalize, modules/euidaccess, modules/file-type,
60653         * modules/filemode, modules/lchown, modules/makepath,
60654         * modules/rmdir, modules/stat: Depend on new stat-macros module
60655         rather than listing lib/stat-macros.h manually.
60656         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60657
60658 2005-03-22  Jim Meyering  <jim@meyering.net>
60659
60660         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60661
60662 2005-03-22  Bruno Haible  <bruno@clisp.org>
60663
60664         * config/srclist.txt: Replace target directory 'config' with
60665         'build-aux'.
60666         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60667         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60668         ../build-aux/.
60669
60670 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60671
60672         * modules/chdir-long (Depends-on): Add mempcpy.
60673
60674         * modules/acl, modules/backupfile, modules/c-strtod,
60675         modules/c-strtold, modules/canon-host, modules/canonicalize,
60676         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60677         modules/exclude, modules/exitfail, modules/file-type,
60678         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60679         modules/getdate, modules/getline, modules/getpagesize,
60680         modules/getpass, modules/getugroups, modules/group-member,
60681         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60682         modules/inttostr, modules/long-options, modules/makepath,
60683         modules/md5, modules/memcasecmp, modules/memcoll,
60684         modules/modechange, modules/mountlist, modules/path-concat,
60685         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60686         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60687         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60688         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60689         modules/strftime, modules/strndup, modules/strverscmp,
60690         modules/timespec, modules/unlocked-io, modules/userspec,
60691         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60692         modules/yesno:
60693         Remove lib_SOURCES line from Makefile.am section, as this is now
60694         done automatically by the corresponding Autoconf macro.
60695
60696 2005-03-21  Jim Meyering  <jim@meyering.net>
60697
60698         Changes imported from coreutils.
60699
60700         * lib/cycle-check.c: Don't include xalloc.h.
60701
60702         * lib/path-concat.c: Don't include assert.h.
60703         (path_concat): Remove assertion that would have triggered
60704         for ABASE starting with more than one slash.
60705         Reported by Andreas Schwab.
60706
60707         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60708         properly when ABASE is an absolute file name.
60709         Correct the description of this function.
60710         Include <assert.h>.
60711         Add an assertion and a test driver.
60712         This fixes a bug introduced on 2004-07-02.
60713         Andreas Schwab reported the resulting failure of cp --parents:
60714         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60715
60716 2005-03-21  Jim Meyering  <jim@meyering.net>
60717
60718         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60719         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60720
60721 2005-03-21  Jim Meyering  <jim@meyering.net>
60722         and  Paul Eggert  <eggert@cs.ucla.edu>
60723
60724         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60725         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60726         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60727         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60728         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60729         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60730         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60731         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60732         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60733         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60734         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60735         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60736         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60737         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60738         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60739         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60740         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60741         for these modules.
60742
60743 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60746         (which shouldn't happen), generate nothing instead of returning 0
60747         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60748
60749 2005-03-16  Bruno Haible  <bruno@clisp.org>
60750
60751         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60752         HAVE_LONGLONG_64BIT.
60753
60754 2005-03-16  Bruno Haible  <bruno@clisp.org>
60755
60756         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60757         HAVE_LONGLONG_64BIT.
60758
60759 2005-03-16  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60762         HAVE_LONGLONG_64BIT.
60763
60764 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60765
60766         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60767         reliably distinguish strftime failure from empty output on POSIX
60768         hosts.
60769
60770 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60773         (iconv_string): Don't guess a size-zero buffer, as that might cause
60774         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60775         result would be 'too large', where 'too large' is (heuristically)
60776         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60777         overflow concerns.  This will prevent some unwanted malloc failures
60778         when the inputs are very large.
60779
60780 2005-03-15  Karl Berry  <karl@gnu.org>
60781
60782         * config/srclist.txt (config.rpath): from gettext.
60783         * config/config.rpath: update.
60784
60785 2005-03-15  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60788         to 'negate'.
60789
60790         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60791         variable.
60792
60793         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60794         results.
60795
60796 2005-03-14  Simon Josefsson  <jas@extundo.com>
60797
60798         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60799         <fx@gnu.org>.
60800
60801 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60802
60803         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60804         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60805         intprops.h.
60806         * lib/strtol.c: Likewise.
60807
60808 2005-03-14  Jim Meyering  <jim@meyering.net>
60809
60810         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60811         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60812         to be nonzero so that we (and caller) can detect the difference
60813         between a valid zero-length expansion and an error return, even
60814         when the underlying strftime fails before writing anything into
60815         that location.
60816
60817 2005-03-14  Bruno Haible  <bruno@clisp.org>
60818
60819         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60820         Update from GNU gettext 0.14.3.
60821
60822 2005-03-10  Jim Meyering  <jim@meyering.net>
60823
60824         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60825
60826 2005-03-10  Jim Meyering  <jim@meyering.net>
60827
60828         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60829         so that this module works on systems without fchdir.
60830
60831 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         Factor int-properties macros into a single file, except for
60834         glibc-related files.
60835         * lib/intprops.h: New file.
60836         * lib/getloadavg.c: Include it instead of limits.h.
60837         (INT_STRLEN_BOUND): Remove.
60838         * lib/human.c: Include intprops.h.
60839         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60840         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60841         302/1000.
60842         * lib/inttostr.h: Include intprops.h instead of limits.h.
60843         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60844         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60845         for consistency with intprops.h.
60846         (time_t_is_integer, twos_complement_arithmetic): Use them.
60847         * lib/sig2str.h: Include <signal.h>, intprops.h.
60848         (INT_STRLEN_BOUND): Remove.
60849         * lib/strftime.c (TYPE_SIGNED): Remove.
60850         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60851         * lib/strtol.c: Adjust comments to match intprops.h.
60852         * lib/userspec.c: Include intprops.h.
60853         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60854         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60855         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60856         instead of rolling our own expressions.
60857         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60858
60859         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60860         instead of int.
60861         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60862         the right thing even if adding 1900 would overflow.  Similarly
60863         for tm_mon + 1 and tm_yday + 1.
60864         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60865         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60866         (DO_SIGNED_NUMBER): New macro.
60867         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60868
60869 2005-03-07  Bruno Haible  <bruno@clisp.org>
60870
60871         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60872
60873 2005-03-07  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60876
60877 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60878
60879         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60880         (func_import): Only replace files via --import when they have actually
60881         changed.
60882
60883 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60884
60885         * m4/mmap-anon.m4: New file.
60886         * m4/pagealign_alloc.m4: New file.
60887
60888 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60889             Bruno Haible  <bruno@clisp.org>
60890
60891         * modules/pagealign_alloc: New file.
60892         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60893
60894 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60895             Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/pagealign_alloc.h: New file.
60898         * lib/pagealign_alloc.c: New file.
60899
60900 2005-03-03  Bruno Haible  <bruno@clisp.org>
60901
60902         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60903         Use an all-permissive copyright notice, recommended by RMS.
60904
60905 2005-03-02  Bruno Haible  <bruno@clisp.org>
60906
60907         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60908         of AIX, the replacement has to be done only after <string.h> is
60909         included, therefore not in config.h. stpncpy.h does the replacement,
60910         and stpncpy.c uses it.
60911
60912 2005-03-02  Bruno Haible  <bruno@clisp.org>
60913
60914         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60915         stpncpy.c uses it.
60916
60917 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60918
60919         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60920         The workaround isn't strictly needed for POSIX conformance, and
60921         it's too much of a pain to configure and maintain.  We'll ask
60922         people to fix their kernels instead.
60923         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60924         (NANOSLEEP_BUG_WORKAROUND): Remove.
60925         (xnanosleep): Remove the workaround.
60926
60927 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60930         Reported by Derek Price.
60931         (Include): Add "timespec.h".
60932
60933         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60934
60935 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60936
60937         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60938         to detect nanosleep bug.
60939
60940 2005-03-01  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60943
60944 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         * modules/gethrxtime: New file.
60947         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60948         (Depends-on): Add gethrxtime.
60949         (configure.ac): Add gl_XNANOSLEEP.
60950         (Makefile.am): Remove lib_SOURCES line.
60951
60952 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60953
60954         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60955         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60956
60957 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60960         * lib/timespec.h (gettime): Return void, since it always
60961         succeeds now.  All uses changed.
60962         * lib/gettime.c (gettime) Likewise.
60963         [HAVE_NANOTIME]: Prefer nanotime.
60964         Assume gettimeofday succeeds, as POSIX requires.
60965         Assime time () succeeds, since other code already does.
60966         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60967         (timespec_subtract): Remove.
60968         (NANOSLEEP_BUG_WORKAROUND): New constant.
60969         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60970         things considerably.  Use it only on GNU/Linux hosts, since the
60971         workaround shouldn't be needed elsewhere.
60972
60973 2005-02-24  Bruno Haible  <bruno@clisp.org>
60974
60975         * modules/gettext (Files): Add m4/glibc2.m4.
60976
60977 2005-02-24  Bruno Haible  <bruno@clisp.org>
60978
60979         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60980         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60981         * m4/progtest.m4:
60982         Update from GNU gettext 0.14.2.
60983         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60984
60985 2005-02-24  Bruno Haible  <bruno@clisp.org>
60986
60987         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60988         * lib/config.charset: Update from GNU gettext 0.14.2.
60989
60990 2005-02-24  Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/gettext.h: Update from GNU gettext 0.14.2.
60993
60994 2005-02-23  Simon Josefsson  <jas@extundo.com>
60995
60996         * m4/iconvme.m4: New file.
60997
60998 2005-02-23  Jim Meyering  <jim@meyering.net>
60999
61000         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
61001         change.
61002         Thanks to Bruno Haible for catching it.
61003
61004 2005-02-22  Simon Josefsson  <jas@extundo.com>
61005
61006         * modules/iconvme: New file.
61007
61008         * MODULES.html.sh: Add iconvme.
61009
61010 2005-02-22  Simon Josefsson  <jas@extundo.com>
61011
61012         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
61013
61014 2005-02-22  Simon Josefsson  <jas@extundo.com>
61015
61016         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
61017
61018 2005-02-22  Jim Meyering  <jim@meyering.net>
61019
61020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
61021         s/ifndef/ifdef/.
61022
61023 2005-02-20  Neil Conway  <neilc@samurai.com>
61024
61025         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
61026         returned by OSX/Darwin if the specified buffer is not large
61027         enough for the hostname.
61028
61029 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61030
61031         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
61032         pass it to _help, otherwise the latter coredumps trying to
61033         dereference state.root_argp.
61034
61035 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * modules/chdir-long (Depends-on): Add memrchr.
61038         * modules/memrchr (Files): Add lib/memrchr.h.
61039         (Include): "memrchr.h".
61040
61041 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
61044
61045 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         * lib/memrchr.h: New file.
61048         * lib/chdir-long.c: Include it.
61049         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
61050         Don't bother including stddef.h.
61051
61052 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
61055         inclusion.
61056         Include <sys/types.h>, for dev_t.
61057         (ME_DUMMY, ME_REMOTE): Move from here....
61058         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
61059         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
61060         Dmitry V. Levin.
61061         Include mountlist.h first, to test the interface.
61062
61063 2005-01-29  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/progname.c (program_name): Initialize.
61066         Needed when linking statically on MacOS X.
61067
61068 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61069
61070         Sync from coreutils.
61071         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
61072         (Depends-on): Add c-strtod.
61073         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
61074
61075 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61076
61077         Sync from coreutils.
61078         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
61079
61080         Remove files that are specific to coreutils.
61081         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
61082
61083 2005-01-28  Bruno Haible  <bruno@clisp.org>
61084
61085         * modules/javacomp: New file.
61086         * MODULES.html.sh (Java): Add javacomp.
61087
61088 2005-01-28  Bruno Haible  <bruno@clisp.org>
61089
61090         * m4/javacomp.m4: New file, from GNU gettext.
61091
61092 2005-01-28  Bruno Haible  <bruno@clisp.org>
61093
61094         * lib/javacomp.sh.in: New file, from GNU gettext.
61095         * lib/javacomp.h: New file, from GNU gettext.
61096         * lib/javacomp.c: New file, from GNU gettext.
61097
61098 2005-01-26  Simon Josefsson  <jas@extundo.com>
61099
61100         * lib/gai_strerror.c: Use GPL in header.
61101
61102 2005-01-26  Bruno Haible  <bruno@clisp.org>
61103
61104         * modules/javaexec: New file.
61105         * MODULES.html.sh (Java): Add javaexec.
61106
61107 2005-01-26  Bruno Haible  <bruno@clisp.org>
61108
61109         * m4/javaexec.m4: New file, from GNU gettext.
61110
61111 2005-01-26  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/javaexec.sh.in: New file, from GNU gettext.
61114         * lib/javaexec.h: New file, from GNU gettext.
61115         * lib/javaexec.c: New file, from GNU gettext.
61116
61117 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61118
61119         * modules/lchown (Depends-on): Remove lchown.h
61120
61121 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61122
61123         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61124         must be defined if the header file was not found, in order
61125         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61126
61127 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61128
61129         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61130         initializers for struct pentry_state.
61131         (__argp_error): Check return value of __asprintf
61132         (__argp_failure): Translate error message
61133
61134         * lib/argp-parse.c: Removed braces around the expansion of N_()
61135
61136 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61139         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61140         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61141         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61142         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61143         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61144         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61145         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61146         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61147         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61148         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61149         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61150         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61151         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61152         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61153         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61154         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61155         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61156         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61157         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61158         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61159         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61160         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61161         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61162         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61163         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61164         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61165         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61166         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61167         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61168         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61169         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61170         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61171         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61172         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61173         Use an all-permissive copyright notice, recommended by RMS.
61174
61175 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61176
61177         * modules/chdir-long (Depends-on): Remove mempcpy.
61178
61179 2005-01-21  Jim Meyering  <jim@meyering.net>
61180
61181         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61182         same value as for Solaris 9.
61183
61184         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61185         component length.  This included changing the parameter to be
61186         of type `char *' rather than `char const *'.
61187         * lib/chdir-long.h (chdir_long): Update prototype.
61188
61189         * lib/openat.c (fdopendir, fstatat): New functions.
61190         * lib/openat.h: Include headers required for use of DIR and struct
61191         stat.
61192         [AT_SYMLINK_NOFOLLOW]: Define.
61193         (fdopendir, fstatat): Add prototypes.
61194
61195 2005-01-21  Bruno Haible  <bruno@clisp.org>
61196
61197         * modules/classpath: New file.
61198         * MODULES.html.sh (Java): Add classpath.
61199
61200 2005-01-21  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/classpath.h: New file, from GNU gettext.
61203         * lib/classpath.c: New file, from GNU gettext.
61204
61205 2005-01-20  Simon Josefsson  <jas@extundo.com>
61206
61207         * modules/version-etc-fsf: New file.
61208
61209 2005-01-20  Simon Josefsson  <jas@extundo.com>
61210
61211         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61212         * lib/version-etc.c: Remove version_etc_copyright.
61213         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61214         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61215
61216 2005-01-20  Simon Josefsson  <jas@extundo.com>
61217
61218         * lib/base64.h (isbase64): Add.
61219
61220         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61221         using a unsigned prototype, don't inline.
61222         (base64_decode): Use it.
61223
61224 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61227         it.
61228
61229 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61230
61231         * lib/save-cwd.c (save_cwd): Remove code to support the case
61232         where fchdir is missing or flaky.
61233
61234 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61237
61238 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61239
61240         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61241         AC_LIBSOURCES now does this.
61242         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61243         with new ullong_max module.
61244
61245 2005-01-19  Bruno Haible  <bruno@clisp.org>
61246
61247         * modules/sh-quote: New file.
61248         * MODULES.html.sh (Executing programs): Add sh-quote.
61249
61250 2005-01-19  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/sh-quote.h: New file, from GNU gettext.
61253         * lib/sh-quote.c: New file, from GNU gettext.
61254
61255 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         Merge from coreutils.
61258         * m4/ullong_max.m4: New file.
61259         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61260         (gl_MACROS): Assume localeconv exists.
61261
61262 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         Merge changes from coreutils, as described below in several
61265         changelogs dated today.
61266
61267         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61268         (O_DIRECTORY): Remove; not needed here, since "." must be
61269         a directory.  All uses removed.
61270         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61271         universal on Suns, and we also need to test for IRIX.
61272         Revamp code to use 'if' rather than '#if'.
61273         Avoid unnecessary comparison of cwd->desc to 0.
61274
61275         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61276         for known valid error numbers rather than observed invalid ones.
61277
61278 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * modules/ullong_max: New file.
61281
61282         * modules/chdir-long, modules/openat: New files.
61283         * modules/save-cwd (Depends-on): Depend on chdir-long.
61284         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61285
61286 2005-01-18  Jim Meyering  <jim@meyering.net>
61287
61288         Merge from coreutils.
61289         * m4/chdir-long.m4, m4/openat.m4: New files.
61290         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61291         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61292         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61293         is sane and DOES follow symlinks.  Besides, testing 20 different
61294         systems found no broken chown implementations.
61295         Prompted by a change in rsync's copy of this macro.
61296         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61297
61298         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61299
61300         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61301         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61302         NULL-means-set-to-current-time semantics.
61303         Remove temporary file immediately, rather than waiting
61304         for configure's at-exit trap code to do it.
61305
61306 2005-01-18  Jim Meyering  <jim@meyering.net>
61307
61308         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61309
61310         * lib/utimens.c (futimens): Account for the fact that futimes
61311         can also fail with errno == ENOSYS or errno == ENOENT.
61312         Patch from Dmitry V. Levin.
61313
61314         Change the name of the robust chdir function from chdir to chdir_long.
61315         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61316         (restore_cwd): Use chdir_long, not chdir.
61317         * lib/chdir-long.c: Renamed from chdir.c.
61318         * lib/chdir-long.h: Renamed from chdir.h.
61319         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61320         Hurd.
61321
61322 2005-01-18  Bruno Haible  <bruno@clisp.org>
61323
61324         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61325         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61326         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61327         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61328         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61329         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61330         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61331         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61332         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61333         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61334         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61335         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61336         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61337         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61338         Use an all-permissive copyright notice, recommended by RMS.
61339
61340 2005-01-18  Bob Proulx  <bob@proulx.com>
61341
61342         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61343         simplify offsetof() macro construct to avoid compile failure with
61344         native HP-UX 11.0 ANSI C compiler.
61345
61346 2005-01-17  Bruno Haible  <bruno@clisp.org>
61347
61348         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61349         redundant because stpncpy.m4 takes care of it.
61350
61351 2005-01-17  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61354
61355 2005-01-17  Bruno Haible  <bruno@clisp.org>
61356
61357         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61358         used.
61359
61360 2005-01-17  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/fwriteerror.h (fwriteerror): Change specification to include
61363         fclose.
61364         * lib/fwriteerror.c: Include <stdbool.h>.
61365         (fwriteerror): At the end, close the file stream. Record whether
61366         stdout was already closed.
61367
61368 2005-01-17  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/execute.c (environ): Declare if needed.
61371         * lib/pipe.c (environ): Likewise.
61372         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61373
61374 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61375
61376         * modules/argp: Depend on vsnprintf
61377
61378 2005-01-10  Jim Meyering  <jim@meyering.net>
61379
61380         * modules/closeout (Depends-on): Add atexit.
61381
61382 2005-01-06  Bruno Haible  <bruno@clisp.org>
61383
61384         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61385
61386 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61389         definitions to be after all include files, to avoid collisions.
61390         Problem reported by Bob Proulx.
61391
61392 2005-01-04  Jim Meyering  <jim@meyering.net>
61393
61394         Changes imported from coreutils.
61395         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61396         as the mkstemp template, use a temporary directory and an
61397         8.3-friendly template to avoid trouble on systems like DJGPP.
61398         Reported by Juan M. Guerrero via Stepan Kasal.
61399         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61400         close. Remove the temporary directory right away, rather than waiting
61401         for configure's at-exit trap code to do it.
61402         Suggestion from Stepan Kasal.
61403
61404 2005-01-01  Simon Josefsson  <jas@extundo.com>
61405
61406         * gnulib-tool: Print #include directives when --import'ing.
61407
61408 2004-12-28  Simon Josefsson  <jas@extundo.com>
61409
61410         * tests/test-base64.c: Include required header files.  Remove
61411         unused variables.
61412
61413 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61414
61415         * modules/error (Depends-on): Remove gettext.
61416
61417 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61418
61419         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61420         not needed.  This removes a dependency on the gettext module.
61421         [defined _LIBC]: Do not include <libintl.h>; not needed.
61422
61423 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61424
61425         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61426         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61427
61428 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61429
61430         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61431         HAVE_DECL_STRTOLD.
61432
61433 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         * modules/getdate (Depends-on): Remove alloca-opt.
61436
61437 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61440
61441 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61442
61443         * lib/argp-parse.c: Include <stddef.h>.
61444         (alignof, alignto): New macros.
61445         (parser_init): Don't assume that void * is aligned sufficiently
61446         for struct option.
61447
61448         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61449         need to extend the stack.
61450         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61451         large.
61452
61453 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61454
61455         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61456
61457 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61458
61459         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61460         (2004-10-24) change.  Apparently this was a false alarm.
61461
61462         * modules/getdate: Depend on alloca-opt, not alloca.
61463
61464 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61467         Remove now-obsolete comment about AIX.
61468         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61469         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61470         (YYMAXDEPTH): New macro.
61471
61472 2004-12-18  Simon Josefsson  <jas@extundo.com>
61473
61474         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61475
61476 2004-12-18  Bruno Haible  <bruno@clisp.org>
61477
61478         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61479
61480 2004-12-18  Bruno Haible  <bruno@clisp.org>
61481
61482         * lib/fatal-signal.c (fatal_signals): Make non-const.
61483         (init_fatal_signals): New function.
61484         (uninstall_handlers, install_handlers): Ignore signals that were set to
61485         SIG_IGN.
61486         (at_fatal_signal): Call init_fatal_signals.
61487         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61488         SIG_IGN.
61489         Reported by Paul Eggert.
61490
61491 2004-12-18  Bruno Haible  <bruno@clisp.org>
61492
61493         * doc/alloca.texi: New file.
61494         * doc/alloca-opt.texi: New file.
61495
61496 2004-12-17  Jim Meyering  <jim@meyering.net>
61497
61498         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61499         Otherwise, install-sh could exit with improper exit status when
61500         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61501
61502 2004-12-16  Simon Josefsson  <jas@extundo.com>
61503
61504         * tests/test-base64.c: Add license.
61505
61506 2004-12-15  Stepan Kasal  <address@hidden>
61507
61508         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61509
61510 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61511
61512         * modules/getcwd (Files): Add m4/d-ino.m4.
61513         Suggested by Mark D. Baushke.
61514
61515 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61516
61517         * lib/getdate.y (textint): New member "negative".
61518         (time_zone_hhmm): New function.
61519         Expect 14 shift-reduce conflicts, not 13.
61520         (o_colon_minutes): New rule.
61521         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61522         (yylex): Set the "negative" member of signed numbers.
61523
61524 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * doc/getdate.texi (Time of day items, Time zone items):
61527         Describe new formats +00:00, UTC+00:00.
61528
61529 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61532         spurious "-l"s.  Problem reported by Stepan Kasal.
61533
61534 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61535
61536         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61537         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61538
61539 2004-12-04  Simon Josefsson  <jas@extundo.com>
61540
61541         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61542         Vandoorselaere <yoann@prelude-ids.org>.
61543
61544 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61545
61546         Changes imported from coreutils.
61547         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61548         exist.
61549         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61550
61551 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61552
61553         Changes imported from coreutils.
61554         * lib/hard-locale.c: Assume <locale.h> exists.
61555         Include "strdup.h".
61556         (GLIBC_VERSION): New macro.
61557         (hard_locale): Assume setlocale exists.
61558         Rewrite to avoid #ifdef.
61559         Use strdup rather than malloc + strcpy.
61560         * lib/human.c: Assume <locale.h> exists.
61561         (human_readable): Assume localeconv exists.
61562
61563 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61564
61565         * modules/hard-locale (Depends-on): Add strdup.
61566
61567 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61568
61569         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61570         convert T2, not T.  (Imported from libc.)
61571
61572 2004-11-30  Simon Josefsson  <jas@extundo.com>
61573
61574         * modules/restrict (License): Change to LGPL.
61575
61576 2004-11-30  Simon Josefsson  <jas@extundo.com>
61577
61578         * m4/restrict.m4: Add copyright and copying conditions.
61579
61580 2004-11-30  Simon Josefsson  <jas@extundo.com>
61581
61582         * m4/base64.m4: New file.
61583
61584 2004-11-30  Simon Josefsson  <jas@extundo.com>
61585
61586         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61587         base64.
61588
61589         * tests/test-base64.c: New file.
61590
61591         * modules/base64: New file.
61592
61593 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61594
61595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61596         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61597
61598         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61599
61600 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61603         (__getcwd.c): Don't restore errno; glibc doesn't.
61604         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61605         first, falling back to our code only if its results look suspicious.
61606         Ensure that the resulting buffer is only as large as necessary.
61607
61608         * lib/readutmp.c: Include readutmp.h first.
61609         Include <errno.h>, since readutmp.h no longer does that.
61610         * lib/readutmp.h: Don't include <errno.h>,
61611         <sys/param.h>, <time.h>; not needed to establish interface.
61612         (errno): Remove decl.
61613         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61614         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61615         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61616
61617 2004-11-28  Simon Josefsson  <jas@extundo.com>
61618
61619         * lib/base64.h, base64.c: New file.
61620
61621 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61624
61625 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61626
61627         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61628         (Depends-on): Remove pathmax, same.  Add mempcpy.
61629         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61630         (Makefile.am): Append getcwd.h to lib_SOURCES.
61631         (Include): Add getcwd.h.
61632         (Maintainer): Change from Jim Meyering to "all, glibc",
61633         since getdate now uses intended-for-glibc code.
61634         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61635         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61636
61637 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61638
61639         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61640         HP's ANSI C compiler.
61641         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61642         Declaring int functions causes warnings on some modern systems and
61643         shouldn't be needed to compile on ancient ones.
61644         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61645         defined.
61646
61647         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61648         with the following changes.
61649         (__set_errno): Parenthesize properly.
61650         Include <stdbool.h>.
61651         (MIN, MAX, MATCHING_INO): New macros.
61652         (__getcwd): Define with prototype, not K&R form.
61653         Use heuristics to allocate default buffer on stack if possible.
61654         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61655         behavior, and to avoid the PATH_MAX limit when computing
61656         ../../../../...
61657         Use MATCHING_INO to compare inode number to file.
61658         Check for arithmetic overflow in size calculations.
61659         Fix bug in reallocation of dot array that caused getcwd to fail
61660         on directories nested deeper than 75.
61661         Be more careful about saving errno on error.
61662         Do not use realloc; use only free+malloc, as this is a bit
61663         more flexible and avoids a needless copy operation.
61664         Do not inspect st_dev and st_ino for symbolic links; POSIX
61665         doesn't specify the latter.
61666         Check for closedir errors.
61667         Avoid needless casts.
61668         Use "#ifdef weak_alias" around weak_alias, to be like other
61669         glibc code.
61670         The following changes to getcwd.c have effect only when used in
61671         gnulib; they have no effect inside glibc proper.
61672         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61673         as alloca isn't used.
61674         (alloca, __alloca): Likewise.
61675         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61676         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61677         unconditionally, as gnulib assumes C89 or better.
61678         Do not include <sys/param.h>.
61679         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61680         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61681         better.
61682         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61683         Include <dirent.h> in a way that is compatible with modern Autoconf.
61684         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61685         New macros, if not already defined.
61686         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61687         Use "_LIBC", not "defined _LIBC", for consistency.
61688         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61689         a mempcpy module.
61690         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61691         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61692         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61693         credit only to Jim Meyering and adjust the copyright dates.
61694         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61695         <stdlib.h>, <unistd.h>, "pathmax.h".
61696         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61697         (INITIAL_BUFFER_SIZE): Remove.
61698         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61699
61700 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61701
61702         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61703         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61704         Use the _ONCE methods, for efficiency.
61705         Check for fcntl.h.  In test program, include <errno.h>
61706         and <fcntl.h> if available.  Remove old K&R cruft from
61707         test program.  Check for common errors in GNU/Linux,
61708         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61709         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61710         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61711         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61712         name accordingly.
61713         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61714         accommodate new getcwd.c.
61715         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61716         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61717         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61718         that's all we need now.
61719
61720 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61721
61722         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61723         argp-parse.c depends on getopt internals, that means we should
61724         always use our getopt, to be on the safe side.
61725         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61726         order not to spoil the result of an eventual previous invocation
61727         of gl_GETOPT_SUBSTITUTE.
61728
61729 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61730
61731         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61732         redefinition warnings. To avoid them, include the defines
61733         in `#if !defined __need_getopt ... #endif'. The only place
61734         where __getopt_argv_const is used is in definitions
61735         of getopt_long and getopt_long_only below, which are as well
61736         protected by `#ifndef __need_getopt'.
61737         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61738         __need_getopt after including <stdio.h> and <unistd.h> These
61739         headers might have defined it.
61740
61741 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61742
61743         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61744
61745 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61748         (futimens): New function, which uses futimes if available.
61749         (futimens, utimens): Support timespec==NULL, with same semantics
61750         as utime and utimens.
61751         * lib/utimens.h (futimens): New decl.
61752
61753 2004-11-23  Jim Meyering  <jim@meyering.net>
61754
61755         * lib/getopt_.h: Remove trailing blanks.
61756
61757 2004-11-23  Jim Meyering  <jim@meyering.net>
61758
61759         * lib/__fpending.c: Add comment.
61760
61761 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61762
61763         * modules/canonicalize (Depends-on): Add xreadlink.
61764         Problem reported by James Youngman.
61765
61766 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61769         New macros.
61770         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61771         optopt): Use them instead of invoking ## directly; otherwise, the
61772         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61773
61774 2004-11-19  Bruno Haible  <bruno@clisp.org>
61775
61776         * lib/strtok_r.c: Move comments from here...
61777         * lib/strtok_r.h: ... to here.
61778
61779 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61780
61781         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61782         implementations that mishandle size_t overflow.
61783
61784 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61785
61786         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61787         might fail.  Problem reported by Yoann Vandoorselaere.
61788         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61789         implementations that mishandle size_t overflow.
61790
61791 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61792
61793         * modules/canon-host (Depends-on): Add strdup.
61794
61795 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61796
61797         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61798
61799 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61800
61801         * lib/canon-host.c: Include "strdup.h".
61802         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61803         Use strdup instead of malloc/strcpy to duplicate strings.
61804
61805         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61806         (human_space_before_unit): New constant.
61807         * lib/human.c (human_readable): Support it.
61808
61809         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61810         (xgetcwd): Set errno correctly when failing.
61811         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61812         the failure is actually due to a PATH_MAX problem.
61813
61814         Further getopt changes to make it more likely that glibc will
61815         buy the changes back.
61816         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61817         (getopt): Use it, so to preserve glibc semantic
61818         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61819         when compiling for libc.
61820         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61821         (getopt_long, getopt_long_only): Use it.
61822
61823         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61824         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61825         (getopt): Argv is now char * const *, as per standard.
61826         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61827         not char *__getopt_argv_const *.
61828         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61829         _getopt_long_only_r): Likewise.
61830         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61831         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61832         _getopt_long_r, _getopt_long_only_r): Likewise.
61833         * lib/getopt_.h (__getopt_argv_const): Remove.
61834         (getopt): Argv is now char * const *, as per standard.
61835
61836         * lib/getdate.y (tORDINAL): New token.
61837         (day, relunit): Allow it for relative times.
61838         (relative_time_table): Use tORDINAL for ordinals.
61839
61840 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61843         Document that "second" isn't allowed as an ordinal number.
61844
61845 2004-11-16  Jim Meyering  <jim@meyering.net>
61846
61847         * modules/closeout (Depends-on): Add fpending.
61848
61849 2004-11-15  Jim Meyering  <jim@meyering.net>
61850
61851         * lib/closeout.c: Include "__fpending.h" once again.
61852         Include <stdbool.h>.
61853         (close_stdout): Don't fail just because stdout was closed initially,
61854         since some programs don't write to stdout in the normal course of
61855         operation (other than --version and --help), and we don't want this
61856         function to make e.g. `touch file >&-' fail.
61857         But do fail if it was closed and someone has tried to write to it.
61858         E.g., `printf foo >&-' must fail.
61859
61860 2004-11-13  Jim Meyering  <jim@meyering.net>
61861
61862         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61863
61864 2004-11-12  Simon Josefsson  <jas@extundo.com>
61865
61866         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61867         small doc fix is still pending.
61868
61869 2004-11-11  Simon Josefsson  <jas@extundo.com>
61870
61871         * modules/strtok_r: New file.
61872
61873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61874         strtok_r.
61875
61876 2004-11-11  Simon Josefsson  <jas@extundo.com>
61877
61878         * m4/strtok_r.m4: New file.
61879
61880         * m4/getopt.m4: Replace opterr.
61881
61882 2004-11-11  Simon Josefsson  <jas@extundo.com>
61883
61884         * lib/strtok_r.h, strtok_r.c: New file.
61885
61886 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61887
61888         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61889         of replacing opterr, getopt, etc.  This should handle the
61890         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61891
61892 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61895         we can stop lying to compilers about the constness of argv when we
61896         are compiled outside glibc.
61897         (getopt, getopt_long, getopt_long_only): Use it.
61898         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61899         _getopt_internal, getopt): Likewise.
61900         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61901         _getopt_long_only_r): Likewise.
61902         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61903         _getopt_long_r, _getopt_long_only_r): Likewise.
61904
61905         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61906         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61907         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61908         the other external symbols.
61909         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61910         declaration, since the above renaming now works around collisions.
61911
61912 2004-11-11  Jim Meyering  <jim@meyering.net>
61913
61914         * lib/linebreak.c: Remove trailing blanks.
61915         * lib/alloca_.h: Likewise.
61916         * lib/acosl.c: Likewise.
61917         * lib/euidaccess.c: Likewise.
61918         * lib/allocsa.h: Likewise.
61919
61920 2004-11-10  Simon Josefsson  <jas@extundo.com>
61921
61922         * m4/getaddrinfo.m4: New file.
61923
61924 2004-11-10  Simon Josefsson  <jas@extundo.com>
61925
61926         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61927
61928 2004-11-10  Simon Josefsson  <jas@extundo.com>
61929
61930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61931         getaddrinfo.
61932
61933         * modules/getaddrinfo: New file.
61934
61935 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61936
61937         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61938
61939 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61940
61941         * lib/mktime.c (SHR): New macro, which is a portable
61942         substitute for >> that should work even on Crays.
61943         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61944         Problem reported by Mark D. Baushke in
61945         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61946         * lib/getdate.y (SHR): Likewise.
61947         (tm_diff): Use it.
61948         * lib/strftime.c (SHR): Likewise.
61949         (tm_diff): Use it.
61950         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61951         quote_these_too, so that right shifts are well defined.  All uses
61952         changed.
61953
61954 2004-11-10  Jim Meyering  <jim@meyering.net>
61955
61956         Ensure that no close failure goes unreported.
61957         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61958         return early when it seems there's nothing to flush.
61959         Don't include __fpending.h.
61960
61961 2004-11-10  Jim Meyering  <jim@meyering.net>
61962
61963         * modules/closeout (Depends-on): Remove fpending.
61964
61965 2004-11-10  Jim Meyering  <jim@meyering.net>
61966
61967         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61968
61969 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61970
61971         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61972         gl_FUNC_STRFTIME.
61973         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61974         and AC_REQUIRE when possible, to avoid duplicate checks.
61975         Check for <wchar.h>.
61976
61977 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61980
61981 2004-11-09  Bruno Haible  <bruno@clisp.org>
61982
61983         * m4/sockpfaf.m4: New file.
61984
61985 2004-11-05  Bruno Haible  <bruno@clisp.org>
61986
61987         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61988         Reported by Mark D. Baushke <mdb@cvshome.org>.
61989
61990 2004-11-04  Bruno Haible  <bruno@clisp.org>
61991
61992         2004-09-11  Bruno Haible  <bruno@clisp.org>
61993                 * allocsa.valgrind: New file.
61994         2004-02-06  Bruno Haible  <bruno@clisp.org>
61995                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61996                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61997                 Reported by Christopher Seip <chris.seip@hp.com>.
61998
61999 2004-11-04  Bruno Haible  <bruno@clisp.org>
62000
62001         * modules/allocsa (Files): Add lib/allocsa.valgrind.
62002         (Makefile.am): Distribute it.
62003
62004 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
62007         with errno == ERANGE if the buffer is too small.
62008         Problem reported by Mark D. Baushke.
62009
62010 2004-11-03  Albert Chin  <china@thewrittenword.com>
62011             Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
62014         equivalent, substitute $ac_type for equivalent type rather than
62015         blindly using uint32_t *always* which won't work if uint32_t is not
62016         available.  Define _UINT32_T to work around typedef of uint32_t if
62017         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
62018         2.5.1.
62019
62020 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         * m4/jm-macros.m4: Sync from coreutils.
62023         (gl_MACROS): Check for mbrlen, for pathchk.
62024         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
62025
62026 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62027
62028         * lib/xreadlink.c (MAXSIZE): New macro.
62029         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
62030         size does not exceed MAXSIZE.  Avoid cast.
62031         As suggested by Mark D. Baushke in
62032         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
62033         if readlink fails with buffer size just under MAXSIZE, try again
62034         with MAXSIZE.
62035
62036 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62037
62038         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
62039
62040 2004-11-02  Derek R. Price  <derek@ximbiot.com>
62041         and  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
62044         (get_date): Overparenthesize to avoid GCC warning.
62045
62046 2004-11-02  Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
62049         returns void.
62050
62051 2004-11-02  Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
62054         function returns void.
62055
62056 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62057
62058         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
62059         fflush_unlocked, flockfile, funlockfile, funlockfile,
62060         fputs_unlocked, putc_unlocked.
62061
62062 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62063
62064         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62065         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
62066         already declared.
62067
62068 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62069
62070         * modules/getdate (Files): Add doc/getdate.texi.
62071         (Depends-on): Add setenv, xalloc.
62072
62073 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62074
62075         * lib/getdate.y: Add support for TZ="foo" within a date string.
62076         Fix some bugs near time_t boundaries.  Reject dates with
62077         out-of-range components, e.g., "Sept 31".
62078         Include <stdlib.h>, "setenv.h", "xalloc.h".
62079         (ISDIGIT_LOCALE): Remove; unused.
62080         Note that the TZ and time functions used here are not reentrant.
62081         (mktime_ok, get_tz): New functions.
62082         (TZBUFSIZE): New constant.
62083         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
62084         This requires that we sometimes generate our own TZ="XXX..." setting.
62085
62086 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62087
62088         * doc/getdate.texi: New file, from coreutils with modifications for
62089         the new TZ parsing.
62090
62091 2004-10-27  Derek R. Price  <derek@ximbiot.com>
62092
62093         * lib/mktime.c (not_equal_tm): Remove redundant check.
62094
62095 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62096
62097         * modules/regex (lib_SOURCES): Add regex.c.
62098         Reported by James Youngman in
62099         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
62100
62101 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62102
62103         * lib/getdate.y: Use Bison 1.875 features, and some minor
62104         code cleanups.  This change does not affect semantics.
62105         Don't include <stdlib.h>; no longer needed.
62106         Don't include unlocked-io.h; only the "#if TEST" code uses
62107         stdio, and performance isn't crucial there.
62108         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
62109         Bison 1.875 features as described below.
62110         All uses of "PC." replaced by "pc->".
62111         (YYSTYPE): Add a forward declaration.
62112         (yylex, yyerror): Use full prototypes in forward decls.
62113         Use "%pure-parser" rather than obsolescent "%pure_parser".
62114         Use %parse-param and %lex-param instead of obsolescent
62115         YYPARSE_PARAM and YYLEX_PARAM.
62116         (meridian_table, month_and_day_table, time_units_table,
62117         relative_time_table, time_zone_table, military_table,
62118         lookup_zone, lookup_word, get_date):
62119         Use NULL instead of 0 where appropriate.
62120         (to_hour): Avoid abort (), to avoid a dependency on
62121         stdlib.h.
62122         (yyerror, yylex): Now accepts parser_control * arg.
62123         (main) [TEST]: Use '\0' rather than 0 for char.
62124
62125 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62126
62127         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62128
62129 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62130
62131         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62132         It's now the caller's responsibility to handle the case where
62133         !HAVE_GETPAGESIZE && !defined getpagesize.
62134
62135         * lib/mktime.c (leapyear): Arg is long int, not int.
62136
62137 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62138
62139         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62140
62141 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62142
62143         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62144         missing.  Problem reported by James Youngman.
62145
62146 2004-10-16  Simon Josefsson  <jas@extundo.com>
62147
62148         * gnulib-tool: Fix comments.  Fix parse problem.
62149         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62150
62151 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62152
62153         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62154         implementation of getopt_long.  Problem reported by Alexander Taler in:
62155         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62156
62157 2004-10-15  Bruno Haible  <bruno@clisp.org>
62158
62159         * gnulib-tool: Untabify. Initialize supplied_libname.
62160         (func_usage): More homogenous output.
62161         (func_modules_transitive_closure, func_modules_to_filelist,
62162         func_emit_lib_Makefile_am): New functions.
62163         (func_import): New function, extracted from big case statement. Use
62164         func_get_license, func_modules_transitive_closure,
62165         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62166         opt_lgpl. Don't use test -a, as it's not portable.
62167         (func_create_testdir): Use func_modules_transitive_closure,
62168         func_modules_to_filelist, func_emit_lib_Makefile_am.
62169
62170 2004-10-15  Bruno Haible  <bruno@clisp.org>
62171
62172         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62173
62174 2004-10-15  Bruno Haible  <bruno@clisp.org>
62175
62176         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62177         the portions belonging to each module.
62178         Suggested by Derek Robert Price <derek@ximbiot.com>.
62179
62180 2004-10-12  Simon Josefsson  <jas@extundo.com>
62181
62182         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62183         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62184         to real functions.
62185
62186 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62187
62188         * modules/vsnprintf: New file.
62189
62190 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62191
62192         * m4/vsnprintf.m4: New file.
62193
62194 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62195
62196         * lib/vsnprintf.h: New file.
62197         * lib/vsnprintf.c: New file.
62198
62199 2004-10-11  Bruno Haible  <bruno@clisp.org>
62200
62201         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62202         vsnprintf.
62203
62204 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62207
62208 2004-10-07  Bruno Haible  <bruno@clisp.org>
62209
62210         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62211         fits into the provided buffer.
62212
62213 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62214
62215         * lib/diacrit.c, diacrit.h: Add GPL notice.
62216
62217         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62218         notice.
62219         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62220         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62221         This avoids a potential constant-folding bug.
62222
62223 2004-10-05  Bruno Haible  <bruno@clisp.org>
62224
62225         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62226         for the declaration of strsep.
62227
62228 2004-10-05  Bruno Haible  <bruno@clisp.org>
62229
62230         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62231
62232 2004-10-04  Simon Josefsson  <jas@extundo.com>
62233
62234         * modules/memmem: New file.
62235         * tests/test-memmem.c: New file.
62236         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62237
62238 2004-10-04  Simon Josefsson  <jas@extundo.com>
62239
62240         * m4/memmem.m4: New file.
62241
62242 2004-10-04  Simon Josefsson  <jas@extundo.com>
62243
62244         * lib/memmem.h: New file.
62245         * lib/memmem.c: New file, taken from glibc.
62246
62247 2004-10-04  Simon Josefsson  <jas@extundo.com>
62248
62249         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62250         '#ifdef USE_UNLOCKED_IO'.
62251
62252 2004-10-04  Simon Josefsson  <jas@extundo.com>
62253
62254         * config/srclist.txt: Add memmem from glibc.
62255
62256 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62257
62258         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62259
62260         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62261         modules/exclude, modules/getdate, modules/getline,
62262         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62263         modules/getusershell, modules/linebuffer, modules/md5,
62264         modules/mountlist, modules/posixtm, modules/readtokens,
62265         modules/readutmp, modules/regex, modules/sha1,
62266         modules/version-etc, modules/yesno:
62267         Remove dependency on unlocked-io.
62268
62269 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62270
62271         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62272
62273         * m4/unlocked-io.m4: Add copyright notice.
62274         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62275
62276 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62277
62278         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62279         * lib/xmalloc.c (xmemdup): Likewise.
62280         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62281         XFREE): Remove these long-obsolescent macros.
62282         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62283         * lib/xstrdup.c: Remove.
62284
62285         * lib/regex.c (re_comp): Cast gettext return value to char *,
62286         Problem reported by Martin Neitzel via Mark D. Baushke.
62287
62288 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62291         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62292         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62293         regex.c, sha1.c, version-etc.c, yesno.c:
62294         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62295         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62296         the includer's responsibility.
62297
62298         Sync from coreutils.
62299
62300         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62301         points to the start of a string, as the C Standard says the
62302         resulting behavior is undefined.
62303
62304         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62305         simple -> simple_backups, numbered_existing ->
62306         numbered_existing_backups, numbered -> numbered_backups
62307         to avoid shadowing problems.  All uses changed.
62308         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62309         * lib/backupfile.c (check_extension, numbered_backup):
62310         Rename locals to avoid shadowing 'basename'.
62311         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62312         once.
62313
62314         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62315         * lib/.cvsignore: Add getopt.h.
62316
62317 2004-10-04  Bruno Haible  <bruno@clisp.org>
62318
62319         * modules/README: New file.
62320         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62321         not a module.
62322
62323 2004-10-02  Jim Meyering  <jim@meyering.net>
62324
62325         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62326
62327 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62328
62329         * modules/strsep: New file.
62330
62331 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62332
62333         * m4/strsep.m4: New file.
62334
62335 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62336
62337         * lib/strsep.h: New file.
62338         * lib/strsep.c: New file.
62339
62340 2004-10-01  Simon Josefsson  <jas@extundo.com>
62341
62342         * lib/snprintf.c (snprintf): Handle size==0.
62343
62344 2004-10-01  Simon Josefsson  <jas@extundo.com>
62345             Bruno Haible  <bruno@clisp.org>
62346
62347         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62348         (snprintf): Declare 'args'.
62349
62350 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62351
62352         * lib/snprintf.c: Remove comments as to why each header is needed.
62353
62354 2004-10-01  Bruno Haible  <bruno@clisp.org>
62355
62356         * MODULES.html.sh: Add strsep.
62357
62358 2004-09-30  Simon Josefsson  <jas@extundo.com>
62359
62360         * modules/snprintf: New file.
62361
62362 2004-09-30  Simon Josefsson  <jas@extundo.com>
62363
62364         * m4/snprintf.m4: New file.
62365
62366 2004-09-30  Simon Josefsson  <jas@extundo.com>
62367
62368         * lib/snprintf.h, lib/snprintf.c: New files.
62369
62370 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62371
62372         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62373         (hol_entry_help): Never translate an empty string.
62374         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62375         * lib/argp.h (OPTION_NO_TRANS): New option.
62376
62377 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62378
62379         * modules/argp (Maintainer): Replace Simon Josefsson
62380         by Sergey Poznyakoff.
62381
62382 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62383
62384         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62385         changes merged back into glibc.
62386
62387 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62390
62391 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62392
62393         * lib/xvasprintf.c: Include xalloc.h.
62394         (xvasprintf): Use xalloc_die, not xmalloc_die.
62395
62396 2004-09-29  Bruno Haible  <bruno@clisp.org>
62397
62398         * modules/alloca-opt: New file, derived from modules/alloca.
62399         * modules/allocsa: Depend on alloca-opt instead of alloca.
62400         * modules/setenv: Likewise.
62401         * modules/vasnprintf: Likewise.
62402         * MODULES.html.sh: Add alloca-opt.
62403
62404 2004-09-28  Simon Josefsson  <jas@extundo.com>
62405
62406         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62407         LGPL, and to replace license template from GPL to LGPL.
62408
62409 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62410
62411         * modules/dummy: Change license to LGPL.
62412
62413 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62414
62415         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62416
62417 2004-09-24  Simon Josefsson  <jas@extundo.com>
62418
62419         * modules/minmax (License): Change from GPL to LGPL.
62420
62421 2004-09-23  Simon Josefsson  <jas@extundo.com>
62422
62423         * gnulib-tool (--import): Typo.
62424
62425 2004-09-23  Simon Josefsson  <jas@extundo.com>
62426
62427         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62428
62429 2004-09-22  Bruno Haible  <bruno@clisp.org>
62430
62431         * modules/*: Add 'License' field.
62432         * gnulib-tool: Accept --extract-license option.
62433         (func_get_license): New function.
62434
62435 2004-09-21  Bruno Haible  <bruno@clisp.org>
62436
62437         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62438         Reported by Simon Josefsson.
62439
62440 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62441
62442         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62443         gl_AC_TYPE_LONG_LONG.
62444
62445 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62448
62449 2004-09-18  Simon Josefsson  <jas@extundo.com>
62450         and  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62453         calls with autoreconf.  Define GL_LIB.
62454
62455 2004-09-14  Karl Berry  <karl@gnu.org>
62456
62457         * config/srclist.txt: unsync setenv.c, sigh.
62458
62459 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62460
62461         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62462         Problem reported by Bruno Haible in:
62463         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62464
62465 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62466
62467         * config/srclist.txt: Comment out argp-pvh.c.
62468
62469 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62470
62471         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62472         in case some system header has #define'd it.  Problem reported by
62473         Soeren D. Schulze in
62474         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62475
62476 2004-09-09  Karl Berry  <karl@gnu.org>
62477
62478         * regex.[ch]: delete from the root.  These were supposed to be
62479                 synced with emacs cvs, but this has not happened for about
62480                 a year, and anyway nothing else uses emacs regex.[ch].
62481                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62482                 lib/regex[.ch] is untouched.
62483
62484 2004-09-09  Bruno Haible  <bruno@clisp.org>
62485
62486         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62487
62488 2004-09-09  Bruno Haible  <bruno@clisp.org>
62489
62490         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62491         modifications.
62492         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62493
62494 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62495
62496         * modules/xvasprintf: New file.
62497         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62498
62499 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62500
62501         * lib/xvasprintf.h: New file.
62502         * lib/xvasprintf.c: New file.
62503         * lib/xasprintf.c: New file.
62504
62505 2004-09-08  Bruno Haible  <bruno@clisp.org>
62506
62507         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62508
62509 2004-09-08  Bruno Haible  <bruno@clisp.org>
62510
62511         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62512         length is > INT_MAX.
62513         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62514         more.
62515
62516 2004-09-08  Bruno Haible  <bruno@clisp.org>
62517
62518         * lib/stdint_.h: New file, taken from GNU clisp.
62519
62520 2004-09-08  Bruno Haible  <bruno@clisp.org>
62521             Oskar Liljeblad  <oskar@osk.mine.nu>
62522
62523         * modules/stdint: New file.
62524         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62525
62526 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62527
62528         Import from coreutils.
62529         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62530         strings on unbounded length.  alloca's performance benefits aren't
62531         that important here.
62532         (V_STRDUP): Remove.
62533         (parse_with_separator): New function, with most of the internals
62534         of the old parse_user_spec.  Allow user to omit both user and group,
62535         for compatibility with FreeBSD.
62536         Clone only the user name, not the entire spec.
62537         Do not set *uid, *gid unless entirely successful.
62538         Avoid memory leak in some failing cases.
62539         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62540         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62541         (parse_user_spec): Rewrite to use parse_with_separator.
62542
62543 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62544
62545         * modules/userspec: Don't depend on alloca.
62546
62547 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62548
62549         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62550
62551 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62552
62553         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62554         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62555         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62556
62557 2004-08-16  Simon Josefsson  <jas@extundo.com>
62558
62559         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62560         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62561         Add --dry-run for --import.
62562         Let user provided command line parameters override configure.ac
62563         settings.
62564
62565 2004-08-12  Simon Josefsson  <jas@extundo.com>
62566
62567         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62568         as discussed with Paul Eggert in threads rooted at
62569         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62570         and
62571         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62572         Before, the test was empty, and relied on ELIDE_CODE in source
62573         code.)
62574         (gl_PREREQ_GETOPT): New macro.
62575         (gl_GETOPT): Use them.
62576
62577 2004-08-12  Simon Josefsson  <jas@extundo.com>
62578
62579         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62580         * lib/getopt_.h: Renamed from getopt.h.
62581
62582 2004-08-12  Simon Josefsson  <jas@extundo.com>
62583
62584         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62585         Change default library name from libfoo to libgnu.
62586         Now, if you have a configure.ac that says:
62587                 gl_SOURCE_BASE(gl)
62588                 gl_M4_BASE(gl/m4)
62589                 gl_MODULES(error getopt etcetera)
62590                 gl_INIT
62591         you can import all you need by running:
62592                 ../gnulib/gnulib-tool --import
62593
62594         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62595         (Makefile.am): Rewrite, use logic from argz.
62596         (Include): Use <getopt.h> instead of "getopt.h".
62597
62598 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62599
62600         * modules/argp (Files): Add m4/unlocked-io.m4.
62601         (Depends-on): Add extensions.
62602
62603 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62606         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62607         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62608         Check for program_invocation_name, program_invocation_short_name,
62609         flockfile, funlockfile, features.h, _getopt_long_only_r.
62610
62611 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62614         its complicated substitute.
62615         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62616         and program_invocation_name.
62617         (__argp_basename) [!_LIBC]: Remove; the only use was
62618         replaced by its body.
62619         (__argp_short_program_name): Change condition from
62620         !defined __argp_short_program_name to
62621         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62622         to match argp-namefrob.h.
62623         (__argp_failure): Don't assume strerror_r returns char *.
62624         * lib/argp-parse.c (N_): Define unconditionally.
62625         (argp_default_options): Fill out initializers with 0 to avoid
62626         gcc warnings.
62627
62628 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62629
62630         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62631         getopt1.c.
62632
62633 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         Merge from coreutils.
62636
62637         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62638
62639         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62640         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62641
62642 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         Merge from coreutils.
62645
62646         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62647         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62648         for Reliant Unix 5.43.
62649
62650         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62651         (union fooround): Use uintmax_t, not long int.
62652         The rest is a merge from libc:
62653         [defined _LIBC]: Include <shlib-compat.h>.
62654         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62655
62656         * lib/settime.c (settime): Recode to avoid warning with
62657         Sun Forte C 6U2.
62658
62659         * lib/strverscmp.c: Convert to UTF-8.
62660
62661 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62662
62663         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62664         m4/uintmax_t.m4.
62665
62666 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         * modules/xalloc-die: New file.
62669         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62670
62671         * modules/md5 (Files): Add m4/uint32_t.m4.
62672         * modules/sha1: Renamed from modules/sha.
62673         (Files):
62674         Rename lib/sha.h to lib/sha1.h.
62675         Rename lib/sha.c to lib/sha1.c.
62676         Rename m4/sha.m4 to m4/sha1.m4.
62677         (lib_SOURCES): Likewise.
62678         (configure.ac): Rename gl_SHA to gl_SHA1.
62679         (Include): sha.h -> sha1.h.
62680
62681 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62684         * m4/sha1.m4: Renamed from sha.m4.
62685         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62686
62687 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62688
62689         * lib/obstack.h (obstack_empty_p):
62690         Don't assume that chunk->contents is suitably aligned.
62691         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62692         Likewise. Problem reported by Benno in
62693         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62694
62695         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62696         readable.  This could be improved further but it'd take some work.
62697
62698 2004-08-08  Simon Josefsson  <jas@extundo.com>
62699
62700         * modules/xgethostname (Depends-on): Remove exit and error (not
62701         used).
62702
62703         * modules/getpass-gnu: Add getpass.h.
62704         (Depends-on): Add stdbool.
62705         * modules/getpass: Add getpass.h.
62706
62707 2004-08-08  Simon Josefsson  <jas@extundo.com>
62708
62709         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62710         Check getpass declaration.
62711
62712 2004-08-08  Simon Josefsson  <jas@extundo.com>
62713
62714         * lib/xgethostname.c: Don't include error.h (not used).
62715
62716         * lib/getpass.h: Add.
62717         * lib/getpass.c: Include getpass.h first.
62718
62719 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * lib/xalloc-die.c: New file.
62722         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62723         All uses removed.
62724         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62725         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62726         xalloc-die.c.
62727         (_, N_, xalloc_die): Move to xalloc-die.c.
62728         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62729         so that we needn't mess with xalloc_msg_memory_exhausted.
62730
62731         * lib/sha1.h: Renamed from sha.h.
62732         (SHA1_H): Renamed from _SHA_H.
62733         (sha1_ctx): Renamed from sha_ctx.
62734         (sha1_init_ctx): Renamed from sha_init_ctx.
62735         (sha1_process_block): Renamed from sha_process_block.
62736         (sha1_process_bytes): Renamed from sha_process_bytes.
62737         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62738         (sha1_read_ctx): Renamed from sha_read_ctx.
62739         (sha1_stream): Renamed from sha_stream.
62740         (sha1_buffer): Renamed from sha_buffer.
62741         * lib/sha1.c: Likewise; renamed from sha.c.
62742         Do not include <sys/types.h>.
62743         Include <stddef.h> rather than <stdlib.h>.
62744
62745 2004-08-08  Bruno Haible  <bruno@clisp.org>
62746
62747         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62748         FILESYSTEM_PREFIX_LEN.
62749         * lib/progreloc.c: Likewise.
62750         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62751
62752 2004-08-06  Simon Josefsson  <jas@extundo.com>
62753
62754         * modules/progname (Depends-on): Don't depend on stdbool.
62755
62756 2004-08-06  Simon Josefsson  <jas@extundo.com>
62757
62758         * modules/getsubopt: New file.
62759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62760         getsubopt.
62761
62762 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62763
62764         More merge from coreutils.
62765
62766         * m4/utimens.m4, m4/utimecmp.m4: New files.
62767         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62768         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62769         prereq.m4, sha.m4: Import changes from coreutils.
62770
62771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62772
62773         More merge from coreutils.
62774         * modules/raise, modules/readtokens0, modules/utimens:
62775         * modules/utimecmp, module/xnanosleep: New files.
62776         * modules/strftime: Add lib/strftime.h.
62777         Change include from <time.h> to "strftime.h".
62778         * modules/yesno: Add lib/yesno.h.
62779         * modules/backupfile: Remove lib/addext.c.
62780         * modules/euidaccess: Add stat-macros.h.
62781         * modules/canonicalize, modules/euidaccess,
62782         modules/filemode, modules/lchown, modules/makepath,
62783         modules/rmdir, modules/stat: Likewise.
62784
62785 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62786
62787         Merge from tar.
62788         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62789         SIZE_MAX is a valid preprocessor constant.
62790         (__argp_basename): Change from "#ifndef _LIBC"
62791         to "#ifndef __argp_short_program_name", so that
62792         we don't compile these functions for tar.
62793
62794         More merges from coreutils.
62795         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62796         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62797         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62798         * lib/addext.c: Remove; no longer needed.
62799         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62800         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62801         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62802         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62803         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62804         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62805         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62806         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62807         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62808         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62809         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62810         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62811         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62812         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62813         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62814         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62815         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62816         Import changes from coreutils.
62817
62818 2004-08-05  Simon Josefsson  <jas@extundo.com>
62819
62820         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62821
62822 2004-08-05  Simon Josefsson  <jas@extundo.com>
62823
62824         * m4/getsubopt.m4: New file.
62825
62826 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         Merge from coreutils.
62829
62830         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62831         * m4/getcwd-path-max.m4: New files.
62832
62833         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62834         FILESYSTEM_PREFIX_LEN ->
62835         FILE_SYSTEM_PREFIX_LEN.
62836         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62837         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62838         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62839         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62840
62841         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62842         prerequisite modules now handle the DOS stuff.
62843         Don't check for unistd.h.
62844
62845 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62846
62847         Merge from coreutils.
62848
62849         * lib/.gdb-history: Remove; this doesn't belong here.
62850
62851         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62852         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62853         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62854         * lib/getcwd.c: New files.
62855
62856         * lib/dirname.h: Include <stdbool.h>.
62857         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62858         for consistency with POSIX terminology.  All uses changed.
62859         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62860         (strip_trailing_slashes): Use bool for booleans.
62861         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62862
62863         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62864         sometimes returns a positive errno value even when it succeeds.
62865         (print_errno_message) [!LIBC]: Fall back on strerror if
62866         __strerror_r fails.
62867
62868         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62869         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62870         (longest_relative_suffix): New function.
62871         (path_concat): Use it.  Assume first argument is not NULL.
62872         Port to DOS.  Omit redundant separators.
62873         Report an error instead of returning NULL.
62874         Use mempcpy instead of memcpy.
62875         (xpath_concat): Remove: not declared or used.
62876
62877         * lib/same.h: Include <stdbool.h>
62878         (same_name): Return bool, not int.
62879         * lib/same.c (same_name): Likewise.
62880         (errno): Don't declare; we assume C89 or better now.
62881
62882         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62883         if not already defined.
62884
62885         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62886         * lib/dup-safer.c (errno): Likewise.
62887
62888 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62889
62890         Merge from coreutils.
62891         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62892         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62893         * modules/path-concat: Don't depend on strdup.
62894
62895 2004-08-03  Simon Josefsson  <jas@extundo.com>
62896
62897         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62898         * lib/progname.h: Don't include stdbool.h.
62899
62900 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62901
62902         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62903         * MODULES.html.sh (func_all_modules): Remove fatal.
62904
62905 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62906
62907         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62908
62909 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62910
62911         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62912         working.
62913
62914 2004-08-02  Simon Josefsson  <jas@extundo.com>
62915
62916         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62917         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62918         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62919
62920 2004-08-01  Simon Josefsson  <jas@extundo.com>
62921
62922         * lib/xgetdomainname.c: Include stdlib.h, for free().
62923
62924 2004-07-19  Bruno Haible  <bruno@clisp.org>
62925
62926         * MODULES.html.sh (func_all_modules): Add dummy.
62927
62928 2004-07-16  Simon Josefsson  <jas@extundo.com>
62929
62930         * modules/dummy: New file.
62931
62932 2004-07-16  Simon Josefsson  <jas@extundo.com>
62933
62934         * lib/dummy.c: New file.
62935
62936 2004-07-16  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/backupfile.h: Add extern "C" for C++.
62939         * lib/closeout.h: Likewise.
62940         * lib/copy-file.h: Likewise.
62941         * lib/findprog.h: Likewise.
62942         * lib/full-write.h: Likewise.
62943         * lib/pathname.h: Likewise.
62944         * lib/progname.h: Likewise.
62945         * lib/stpcpy.h: Likewise.
62946         * lib/stpncpy.h: Likewise.
62947         * lib/strcase.h: Likewise.
62948         * lib/strstr.h: Likewise.
62949         * lib/xalloc.h: Likewise.
62950
62951         * lib/mbswidth.h: Add extern "C" for C++.
62952         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62953
62954 2004-07-13  Robert Millan  <robertmh@gnu.org>
62955
62956         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62957
62958 2004-07-09  Simon Josefsson  <jas@extundo.com>
62959
62960         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62961         failed without this.)
62962
62963 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62964
62965         * modules/chown (Files): Add lib/fchown-stub.c, since
62966         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62967
62968 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62969
62970         * lib/fchown-stub.c: New file.
62971
62972 2004-06-24  Jim Meyering  <jim@meyering.net>
62973
62974         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62975
62976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * modules/argz: Omit "#include".
62979
62980         * MODULES.html.sh (func_all_modules): Add calloc, to match
62981         2004-06-01 addition of calloc module.
62982
62983 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         * m4/argz.m4: New file, which is autoupdated from libtool.
62986
62987 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62988
62989         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62990         libtool.
62991
62992 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62993
62994         * config/srclist-update: Don't insist on "USA." before the
62995         close-comment, as libtool omits the period and puts the */ on a
62996         separate line.
62997         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62998         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62999
63000 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
63001
63002         * modules/argz: New file.
63003         * MODULES.html.sh (func_all_modules): Add argz.
63004
63005 2004-06-12  Jim Meyering  <jim@meyering.net>
63006         and  Paul Eggert  <eggert@cs.ucla.edu>
63007
63008         * modules/hash (Files): Add lib/xalloc.h.
63009         * modules/pipe (Depends-on): Add wait-process.
63010         * modules/stat (Depends-on): Add xalloc.
63011         * modules/userspec (Files): Add lib/userspec.h.
63012         * modules/xstrto
63013
63014         Upgrade from gettext-0.13.
63015         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
63016         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
63017         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
63018
63019 2004-06-10  Jim Meyering  <jim@meyering.net>
63020
63021         * lib/calloc.c: New file.
63022
63023 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63024
63025         * lib/getdate.y (yylex): Allow space between sign and number.
63026         Problem reported by Dan Jacobson.
63027
63028 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63029
63030         Merge from coreutils CVS.
63031
63032         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
63033         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
63034         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
63035         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
63036         xstrtol.m4: Fix copyright date and/or serial number.
63037
63038         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
63039         See if we need an fchown replacement.
63040         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
63041         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
63042         and use the replacement function if we detect either defect.
63043
63044         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
63045         gl_UTIMECMP.
63046
63047 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63048         and  Jim Meyering  <jim@meyering.net>
63049
63050         Merge from coreutils CVS.
63051
63052         * lib/stat-macros.h: New file, with contents from file-type.h
63053         and coreutils' system.h.
63054         * lib/file-type.c: Include "stat-macros.h".
63055         * lib/file-type.h (file_type): Move all macro definitions to new file,
63056         stat-macros.h.
63057
63058         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
63059         Wrap old code with this conditional.
63060         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
63061         function that does not dereference symlinks.
63062         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
63063
63064         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
63065         dependency problems.
63066         (xreadlink): Accept new arg SIZE, for efficiency.
63067         All decls and uses changed.
63068         * lib/xreadlink.h: Include <stddef.h>, for size_t.
63069
63070         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
63071         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
63072
63073         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
63074         sysexits.h.
63075
63076 2004-06-01  Jim Meyering  <jim@meyering.net>
63077
63078         * m4/calloc.m4: New file.
63079
63080 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
63081
63082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
63083         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
63084         Also, fix a typo in a diagnostic.
63085
63086 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63087
63088         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
63089         or AC_FUNC_REALLOC.
63090
63091 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63092
63093         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
63094         macros to be defined.
63095         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
63096         the allocator returns NULL because the requested size is zero.
63097
63098 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
63101         var.  Add comment explaining why libc still defines it.  This
63102         merges the following patch from glibc:
63103         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
63104
63105 2004-05-20  Andreas Schwab  <schwab@suse.de>
63106
63107         * m4/free.m4: Replace free if it not known to work, not the other
63108         way round.
63109
63110 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
63113         present in glibc since revision 1.1 of this file.
63114         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
63115         obstack_alignment_mask, obstack_alloc, obstack_base,
63116         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63117         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63118         obstack_grow0, obstack_init, obstack_int_grow,
63119         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63120         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63121         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63122         nonexistent functions.
63123
63124 2004-05-18  Karl Berry  <karl@gnu.org>
63125
63126         * config/srclist.txt: break link for vasnprintf.c.
63127
63128 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63129
63130         Port obstack to the AS/400, where pointers are 16 bytes wide and
63131         you cannot cast an integer to a valid pointer.  This patch is
63132         currently waiting to be integrated into glibc; see
63133         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63134
63135         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63136         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63137         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63138         (struct obstack): temp member is now a union of a pointer and
63139         an integer, instead of an integer.  All integer uses changed.
63140         This does not affect the physical layout of struct obstack,
63141         except on hosts (like the AS/400) where the size or alignment of
63142         void * is greater than that of ptrdiff_t.
63143         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63144         __STDC__)]: Store temporary in pointer member of union, not
63145         integer member.
63146         * lib/obstack.c: Include <stddef.h>, for offsetof.
63147         (struct fooalign): Remove; it doesn't need a name.
63148         (union fooround): Change double to long double, and add void *.
63149         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63150         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63151         not a macro.  Hence the values are always int; so remove all
63152         casts-to-int in uses.
63153
63154 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63155
63156         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63157         we can get this patch merged into glibc.
63158
63159 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63160             Paul Eggert  <eggert@cs.ucla.edu>
63161
63162         * m4/argp: Depend on alloca.
63163
63164 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63165             Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63168         freecoding.
63169
63170 2004-05-17  Bruno Haible  <bruno@clisp.org>
63171
63172         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63173         precision that consists of a '.' followed by an empty digit string.
63174         Patch by Tor Lillqvist <tml@iki.fi>.
63175
63176 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63177
63178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63179         for backward compatibility with older code.  We need our own
63180         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63181         it under some other name, and our alloca.h will define it.
63182
63183 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63184             Derek Price  <derek@ximbiot.com>
63185
63186         * lib/alloca.c: Include <alloca.h>, to get our interface.
63187         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63188         include <alloca.h> first.  Use C89 prototype for alloca; this
63189         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63190         Use #elif for simplicity, since we can assume C89 now.
63191         Don't try to source the system alloca.h since it will not be found
63192         and to prevent recursively including its replacement.
63193         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63194         * lib/regex.c: Likewise.
63195
63196 2004-05-16  Derek Price  <derek@ximbiot.com>
63197             Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         getline cleanup.  This changes the getndelim2 API: both order of
63200         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63201         no delimiter).
63202
63203         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63204         interface does that.
63205         (getline): Always use getdelim, so that we don't have two
63206         copies of this code.
63207         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63208         if available.
63209         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63210         (GETNDELIM2_MAXIMUM): New macro.
63211         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63212         instead of the old practice of delim2==0.  All callers changed.
63213         Return -1 on overflow, instead of returning junk.
63214         Do not set *linesize unless allocation succeeds.
63215         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63216         that we include sys/types.h.
63217         * lib/getnline.h: Likewise.
63218         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63219         (getndelim2): Reorder arguments.
63220         * lib/getnline.c (getnline, getndelim):
63221         Don't discard the NMAX argument.
63222         (getnline): Invoke getndelim, to avoid code duplication.
63223         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63224         of (size_t) -1 by callers of the getnline family.
63225
63226 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63227
63228         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63229         Check for gettimeofday.
63230         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63231         Check for settimeofday, stime.
63232
63233 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63234
63235         * lib/nanosleep.c (suspended): Change its type from int to
63236         sig_atomic_t volatile.
63237         (first_call): Make it private to rpl_nanosleep, and have it
63238         be zero initially as that's a bit faster.
63239         (my_usleep): Round up fractional times instead of truncating them,
63240         as this is the usual meaning for 'sleep'.
63241
63242         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63243         doesn't work.
63244         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63245         (ENOSYS): Define if not defined.
63246         (settime): Fall back on stime if it exists and settimeofday fails.
63247         But don't bother with fallbacks if a method fails with errno == EPERM.
63248
63249 2004-05-11  Jim Meyering  <jim@meyering.net>
63250
63251         Prior to this change, the save_cwd caller required read access to the
63252         current directory on most systems (ones with the fchdir function).
63253
63254         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63255         fails, try write-only, and finally, resort to using xgetcwd.
63256
63257 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         * lib/obstack.c, obstack.h: Import changes from libc.
63260
63261 2004-04-28  Bruno Haible  <bruno@clisp.org>
63262
63263         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63264         also implicitly appends .exe to executables.
63265         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63266         accepts Windows pathnames.
63267         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63268         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63269         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63270         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63271         Reported by Derek Robert Price <derek@ximbiot.com>.
63272
63273 2004-04-21  Karl Berry  <karl@gnu.org>
63274
63275         * config/srclist.txt (localcharset.c): break sync.
63276
63277 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63278
63279         * m4/host-os.m4: Add a copyright notice.
63280
63281 2004-04-20  Jim Meyering  <jim@meyering.net>
63282
63283         Change UTILS_ to gl_ in AC_DEFINE'd names.
63284         Change utils_- and jm_-prefixed variables, too.
63285         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63286         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63288
63289         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63290         Don't emit trailing blanks.
63291         Also rename jm_-prefixed variables to have gl_ prefix.
63292
63293         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63294         Also rename jm_-prefixed variables to have gl_ prefix.
63295
63296         * m4/jm-macros.m4: Reflect the renamings.
63297         * m4/prereq.m4: Likewise.
63298
63299 2004-04-20  Jim Meyering  <jim@meyering.net>
63300
63301         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63302         memory.
63303
63304 2004-04-20  Jim Meyering  <jim@meyering.net>
63305             Bruno Haible  <bruno@clisp.org>
63306
63307         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63308         memory when realloc fails.
63309
63310 2004-04-19  Jim Meyering  <jim@meyering.net>
63311
63312         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63313         now that readutmp.c may call `free (0)'.
63314
63315 2004-04-19  Bruno Haible  <bruno@clisp.org>
63316
63317         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63318         * m4/inttypes_h.m4: Likewise.
63319         * m4/stdint_h.m4: Likewise.
63320         * m4/intmax_t.m4: Likewise.
63321         * m4/uintmax_t.m4: Likewise.
63322
63323 2004-04-18  Jim Meyering  <jim@meyering.net>
63324
63325         * m4/prereq.m4: Don't forbid jm_ prefix.
63326
63327         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63328         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63329         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63330         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63331         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63332         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63333         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63334         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63335         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63336         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63337         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63338         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63339         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63340         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63341         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63342         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63343         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63344         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63345         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63346
63347 2004-04-18  Jim Meyering  <jim@meyering.net>
63348
63349         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63350         failure, don't leak memory and do call END_UTMP_ENT.
63351
63352 2004-04-16  Jim Meyering  <jim@meyering.net>
63353
63354         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63355         coreutils' stat program.
63356         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63357
63358 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63359
63360         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63361         C89.
63362         (CHAR_BIT): Remove, since we assume C89.
63363         Include <stdint.h> if available, as per current Autoconf CVS advice.
63364
63365 2004-03-31  Jim Meyering  <jim@meyering.net>
63366
63367         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63368         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63369         * m4/xalloc.m4: Likewise.
63370
63371 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63372
63373         Merge from coreutils.
63374
63375         * m4/inttostr.m4: New file.
63376         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63377         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63378         Require gl_CLOCK_TIME.
63379         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63380
63381 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63382
63383         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63384         not bool, to be more consistent with Unix conventions.
63385         Suggested by Bruno Haible.
63386
63387         Merge from coreutils.
63388
63389         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63390         * lib/umaxtostr.c: New files.
63391
63392         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63393         the usual <time.h> dance.
63394         (get_date): Change signature to support fractional time stamps.
63395         All callers changed.
63396         * lib/getdate.y: Include "getdate.h" first, as we can now
63397         assume C89 and don't need to worry about 'const'.
63398         Similarly, include "unlocked-io.h" near start, not in middle.
63399         Include <limits.h>.
63400         (textint.value): Use long int rather than int.
63401         (textint.digits): Use size_t rather than int.
63402         (BILLION, LOG10_BILLION): New constants.
63403         (parser_control): New member rel_ns.  Members day_ordinal,
63404         time_zone, month, day, hour, minutes, rel_year, rel_month,
63405         rel_day, rel_hour, rel_minutes, rel_seconds
63406         are now long int, not int.  Member seconds is now struct timespec,
63407         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63408         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63409         not int.
63410         (%union.intval): Now long int, not int.
63411         New member timespec.
63412         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63413         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63414         (spec): Now is a timespec or an item list.
63415         (timespec, items): New nonterminals.
63416         (time, rel, relunit, number, get_date):
63417         Add support for fractional seconds.
63418         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63419         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63420         (to_hour): First arg is now long int, not int.
63421         (to_year): Returns long int, not int.
63422         Don't treat year -70 like 70.
63423         (tm_diff): Returns long int, not int.
63424         (lookup_word): Use bool instead of int when appropriate.
63425         (yylex): Use size_t for count, not int.
63426         Detect overflow when parsing large integer constants.
63427         Add support for fractions.
63428         (get_date): Make pointers 'const' if possible.
63429         Use more-portable code to detect integer overflow.
63430         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63431         Don't use ctime; it's not reliable if the year has >4 digits.
63432
63433         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63434         This is for compatibility with BSD.
63435
63436         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63437         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63438         From coreutils' system.h.
63439
63440         * lib/userspec.c: Don't include "posixver.h".
63441         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63442         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63443         compatible extension.  Simplify code by removing a boolean int
63444         that was always nonzero if a string was nonnull.
63445
63446 2004-03-30  Jim Meyering  <jim@meyering.net>
63447
63448         Merge from coreutils.
63449
63450         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63451         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63452         on some systems one must include <grp.h> before it.
63453         Reported by Christian Krackowizer.
63454
63455 2004-03-30  Jim Meyering  <jim@meyering.net>
63456
63457         Merge from coreutils.
63458
63459         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63460
63461         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63462         an empty input stream.
63463
63464         * lib/readtokens.c: Include <stdbool.h>.
63465         (readtoken): Use `size_t' rather than int/long.
63466         All callers adjusted.
63467         Use `bool' rather than `int' where appropriate.
63468         Use memset rather than an explicit loop.
63469         Use x2nrealloc rather than xrealloc.
63470         Allow the use of `\0' as a delimiter.
63471         (readtokens): Likewise.
63472         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63473
63474 2004-03-30  Jim Meyering  <jim@meyering.net>
63475
63476         * m4/realloc.m4: Remove file, since now it does no more than
63477         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63478         the `configure.ac' section of module/realloc.
63479         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63480
63481 2004-03-30  Bruno Haible  <bruno@clisp.org>
63482
63483         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63484         nonnull.
63485
63486 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63487
63488         Merge changes to getloadavg.c from coreutils and Emacs.
63489
63490         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63491         Define to an expression, not to the empty string.
63492         Include cloexec.h and xalloc.h.
63493         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63494         Use set_cloexec_flag rather than rolling our own.
63495         * lib/cloexec.c, lib/cloexec.h: New files.
63496
63497 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63498
63499         * m4/cloexec.m4: New file.
63500
63501 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63502
63503         * lib/getopt.h: Sync with libc CVS.
63504
63505 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63506             Bruno Haible  <bruno@clisp.org>
63507
63508         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63509         mbswidth.
63510
63511 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63512             Bruno Haible  <bruno@clisp.org>
63513
63514         * lib/mbswidth.h: Include <wchar.h> only if
63515         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63516         <wchar.h>.
63517         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63518
63519 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63520
63521         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63522         Sync with libc CVS.
63523         * lib/getopt_int.h: New file, also synced from libc.
63524
63525 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63526
63527         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63528         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63529         Bring back getopt.c, getopt.h, getopt1.c.
63530
63531 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63532
63533         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63534         All uses changed.  Check for sa_sigaction member; this fixes
63535         a bug first reported by Jason Andrade in
63536         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63537
63538 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63539
63540         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63541         '#if' expressions.  Unlike the code it replaces, it does not
63542         depend on (defined _SC_PAGESIZE).  However, it does depend on
63543         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63544         first reported by Jason Andrade in
63545         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63546
63547 2004-02-25  Simon Josefsson  <jas@extundo.com>
63548
63549         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63550
63551 2004-02-25  Simon Josefsson  <jas@extundo.com>
63552
63553         * lib/strdup.h: New file.
63554         * lib/strdup.c: Include it.
63555         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63556         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63557
63558 2004-02-23  Karl Berry  <karl@gnu.org>
63559
63560         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63561         (from fencepost.gnu.org:/gd/gnuorg).
63562
63563 2004-02-23  Karl Berry  <karl@gnu.org>
63564
63565         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63566         * config/srclist.txt: add maintain/standards documents.
63567
63568 2004-02-18  Bruno Haible  <bruno@clisp.org>
63569
63570         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63571         Reported by Derek Robert Price <derek@ximbiot.com>.
63572
63573 2004-02-16  Karl Berry  <karl@gnu.org>
63574
63575         * config/mkinstalldirs, install-sh: update from automake.
63576
63577 2004-02-06  Karl Berry  <karl@gnu.org>
63578
63579         * m4/po.m4: update from gettext 0.14.1.
63580
63581 2004-02-06  Karl Berry  <karl@gnu.org>
63582
63583         * lib/config.charset: update from gettext 0.14.1.
63584
63585 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63586
63587         Add comments and code, prompted by suggestions from Bruno Haible
63588         for sh-quote.
63589         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63590         describing the enum quoting_style values.
63591         * lib/quotearg.c (quotearg_alloc): New function.
63592         (quotearg_buffer_restyled): Treat lone { and } as special.
63593         Treat = as special.  Work around bug with older shells
63594         that "see" a '\' that is really the 2nd byte of a multibyte char.
63595         Quote empty string with shell_quoting_style.
63596
63597 2004-02-03  Bruno Haible  <bruno@clisp.org>
63598
63599         * m4/pipe.m4: New file, from GNU gettext.
63600
63601 2004-02-03  Bruno Haible  <bruno@clisp.org>
63602
63603         * lib/pipe.h: New file, from GNU gettext.
63604         * lib/pipe.c: New file, from GNU gettext.
63605
63606 2004-01-27  Bruno Haible  <bruno@clisp.org>
63607
63608         * m4/execute.m4: New file, from GNU gettext.
63609
63610 2004-01-27  Bruno Haible  <bruno@clisp.org>
63611
63612         * lib/execute.h: New file, from GNU gettext.
63613         * lib/execute.c: New file, from GNU gettext.
63614         * lib/w32spawn.h: New file, from GNU gettext.
63615
63616 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63617
63618         Merge from diffutils.
63619
63620         * lib/file-type.c (file_type): Add typed memory objects.
63621         * lib/file-type.h (S_TYPEISTMO): New macro.
63622
63623         * lib/c-stack.h (c_stack_action): Remove argv argument.
63624         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63625         (die): Don't calculate message unless segv_action returns.
63626         (get_stack_location, min_address_from_argv, max_address_from_argv,
63627         volatile stack_base, volatile_stack_size): Remove.
63628         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63629         that every segmentation violation is a stack overflow.  (Ouch!)
63630         See Debian bug 136249 (still outstanding) for more info about why
63631         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63632
63633 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63634
63635         Exit-status fix from coreutils.
63636
63637         Use exit_failure consistently in place of EXIT_FAILURE,
63638         so that program exit statuses are consistent on failure.
63639
63640         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63641         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63642         * lib/argmatch.h: Comment fix to match the above.
63643         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63644         Now a macro referring to exit_failure, instead of a separate
63645         variable.  Include "exitfail.h" to get it.
63646         * lib/xstrtol.h: Include "exitfail.h".
63647         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63648
63649         * lib/long-options.c (parse_long_options): Use prototype
63650         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63651         for clarity.
63652
63653 2004-01-21  Jim Meyering  <jim@meyering.net>
63654
63655         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63656         so as not to conflict with a different-sized __mktime_internal
63657         function in GNU libc.
63658         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63659         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63660
63661 2004-01-20  Karl Berry  <karl@gnu.org>
63662
63663         * config/config.guess: update from config.
63664
63665         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63666
63667 2004-01-20  Bruno Haible  <bruno@clisp.org>
63668
63669         Safer stack allocation.
63670         * lib/setenv.c: Include allocsa.h.
63671         (alloca): Remove fallback definition.
63672         (freea): Remove macro.
63673         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63674         instead of freea.
63675
63676 2004-01-20  Bruno Haible  <bruno@clisp.org>
63677
63678         * m4/eealloc.m4: New file, from GNU gettext.
63679
63680 2004-01-20  Bruno Haible  <bruno@clisp.org>
63681
63682         * m4/allocsa.m4: New file, from GNU gettext.
63683
63684 2004-01-20  Bruno Haible  <bruno@clisp.org>
63685
63686         * lib/xallocsa.h: New file, from GNU gettext.
63687         * lib/xallocsa.c: New file, from GNU gettext.
63688
63689 2004-01-20  Bruno Haible  <bruno@clisp.org>
63690
63691         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63692
63693 2004-01-20  Bruno Haible  <bruno@clisp.org>
63694
63695         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63696         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63697         specially.
63698
63699 2004-01-20  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63702         patch.
63703
63704 2004-01-20  Bruno Haible  <bruno@clisp.org>
63705
63706         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63707
63708 2004-01-20  Bruno Haible  <bruno@clisp.org>
63709
63710         * lib/eealloc.h: New file.
63711
63712 2004-01-20  Bruno Haible  <bruno@clisp.org>
63713
63714         * lib/binary-io.h: Avoid warnings on Cygwin.
63715
63716 2004-01-20  Bruno Haible  <bruno@clisp.org>
63717
63718         * lib/allocsa.h: New file, from GNU gettext.
63719         * lib/allocsa.c: New file, from GNU gettext.
63720
63721 2004-01-18  Karl Berry  <karl@gnu.org>
63722
63723         * doc/gpl.texi, doc/lgpl.texi: new files.
63724
63725 2004-01-18  Karl Berry  <karl@gnu.org>
63726
63727         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63728         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63729
63730 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63731
63732         Merge from coreutils.
63733
63734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63735         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63736         (gl_DEFAULT_POSIX2_VERSION): Move
63737         the documentation from 'configure' into 'config.hin',
63738         so that 'configure --help' isn't burdened by it and
63739         we don't have to worry about its formatting there.
63740         Reword the documentation so that it's more succinct
63741         and can be run together into a single paragraph.
63742         * m4/same.m4 (gl_SAME): Check for pathconf.
63743
63744 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63745
63746         Merge from coreutils.
63747
63748         * lib/posixver.c: Include posixver.h.
63749
63750         * lib/same.c: Include <stdbool.h>, <limits.h>.
63751         (_POSIX_NAME_MAX): Define if not defined.
63752         (MIN): New macro.
63753         (same_name): If file names are silently truncated, report
63754         that the file names are the same if they are the same after
63755         the silent truncation.
63756
63757         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63758         conversion function.
63759         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63760         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63761         longer needed.
63762
63763 2004-01-15  Jim Meyering  <jim@meyering.net>
63764
63765         Merge from coreutils.
63766
63767         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63768         if no library is required.
63769         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63770         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63771         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63772         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63773         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63774         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63775         value, $ac_cv_search_crypt, if it's "none required".
63776         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63777         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63778         not gl_FUNC_GETLOADAVG.
63779         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63780         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63781
63782 2004-01-15  Jim Meyering  <jim@meyering.net>
63783
63784         Merge from coreutils.
63785
63786         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63787         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63788         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63789
63790         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63791         optional configure-time default.
63792
63793         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63794
63795         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63796
63797 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63798
63799         Merge from coreutils.
63800
63801         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63802         value, $ac_cv_search_nanosleep, if it's "none required".
63803
63804 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63805
63806         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63807         with like-named macro in fnmatch.c.
63808         (EXT): Use an internal constant instead.
63809
63810         Merge fnmatch patches from glibc.
63811         * lib/fnmatch.c (mbsinit): Remove define.
63812         Add libc_hidden_ver (__fnmatch, fnmatch).
63813         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63814         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63815
63816 2004-01-14  Karl Berry  <karl@gnu.org>
63817
63818         * config/install-sh: update from automake.
63819
63820 2004-01-13  Karl Berry  <karl@gnu.org>
63821
63822         * config/install-sh: update from automake.
63823
63824 2004-01-09  Karl Berry  <karl@gnu.org>
63825
63826         * config/install-sh: update from automake.
63827
63828 2004-01-05  Karl Berry  <karl@gnu.org>
63829
63830         * config/config.{sub,guess}: update from config.
63831
63832 2003-12-31  Karl Berry  <karl@gnu.org>
63833
63834         * config/depcomp: update from automake.
63835
63836 2003-12-14  Karl Berry  <karl@gnu.org>
63837
63838         * lib/config.charset: update from gettext-runtime.
63839
63840 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63841
63842         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63843         Bug reported by Alfred M. Szmidt.
63844
63845 2003-12-03  Bruno Haible  <bruno@clisp.org>
63846
63847         * m4/gettext.m4: Upgrade from gettext-0.13.
63848         * m4/po.m4: Upgrade from gettext-0.13.
63849         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63850         * m4/intmax.m4: New file, from gettext-0.13.
63851         * m4/printf-posix.m4: New file, from gettext-0.13.
63852
63853 2003-11-29  Karl Berry  <karl@gnu.org>
63854
63855         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63856
63857 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63858             Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/printf-parse.h: Don't include sys/types.h.
63861         (ARG_NONE): New macro.
63862         (char_directive): Change type of *arg_index fields to size_t.
63863         * lib/printf-parse.c: Don't include sys/types.h.
63864         (SSIZE_MAX): Remove macro.
63865         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63866         Remove unnecessary overflow check.
63867         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63868         fields.
63869
63870 2003-11-25  Bruno Haible  <bruno@clisp.org>
63871
63872         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63873
63874 2003-11-25  Bruno Haible  <bruno@clisp.org>
63875
63876         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63877         gt_TYPE_SSIZE_T.
63878
63879 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63880
63881         * modules/alloca: Remove dependency on xalloc.
63882
63883 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63884
63885         * lib/alloca.c: Remove dependency on xalloc module.
63886         (xalloc_die): Remove.
63887         (memory_full) [!defined emacs]: New macro.
63888         [!defined emacs]: Don't include xalloc.h.
63889         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63890         address arithmetic overflows.  Change datatypes a bit to avoid
63891         unnecessary casts.
63892
63893 2003-11-22  Jim Meyering  <jim@meyering.net>
63894
63895         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63896         s/size/size_t/.
63897
63898 2003-11-21  Karl Berry  <karl@gnu.org>
63899
63900         * config/config.{sub,guess}: update from config.
63901
63902 2003-11-18  Karl Berry  <karl@gnu.org>
63903
63904         * config/config.{sub,guess}: update from config.
63905
63906         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63907
63908 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63909
63910         * README: Mention that S+T cannot overflow if S is the size of
63911         an existing object and T is sufficiently small.
63912
63913 2003-11-17  Jim Meyering  <jim@meyering.net>
63914
63915         On systems without utime and without a utimes function capable of
63916         dealing with a NULL struct utimbuf* argument, this utime replacement
63917         could -- in unusual circumstances -- leak a file descriptor.
63918         * lib/utime.c: Include <unistd.h> and <errno.h>.
63919         (utime_null): Be sure to close `fd' and to preserve errno.
63920         Reported by Geoff Collyer via Arnold Robbins.
63921
63922 2003-11-17  Bruno Haible  <bruno@clisp.org>
63923
63924         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63925         (Depends-on): Add xsize.
63926
63927 2003-11-17  Bruno Haible  <bruno@clisp.org>
63928
63929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63930
63931 2003-11-17  Bruno Haible  <bruno@clisp.org>
63932
63933         * lib/vasnprintf.c (alloca): Remove fallback definition.
63934         (freea): Remove definition.
63935         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63936         Reported by Paul Eggert.
63937
63938 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63939             Bruno Haible  <bruno@clisp.org>
63940
63941         Protect against address arithmetic overflow.
63942         * lib/printf-args.h: Include stddef.h.
63943         (arguments): Change type of field 'count' to size_t.
63944         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63945         'unsigned int' where appropriate.
63946         * lib/printf-parse.h: Include sys/types.h.
63947         (char_directive): Change type of *arg_index fields to ssize_t.
63948         (char_directives): Change type of fields 'count', max_*_length to
63949         size_t.
63950         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63951         (SSIZE_MAX): Define fallback value.
63952         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63953         instead of 'int' where appropriate. Check a_allocated, d_allocated
63954         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63955         * lib/vasnprintf.c: Include xsize.h.
63956         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63957         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63958         overflow. Avoid wraparound when converting a width or precision from
63959         decimal to binary.
63960
63961 2003-11-16  Bruno Haible  <bruno@clisp.org>
63962
63963         Update from GNU gettext.
63964         * lib/printf-parse.c: Generalize to it can be compiled for wide
63965         strings.
63966         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63967         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63968         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63969         SNPRINTF): New macros.
63970         Don't include <alloca.h> if the file is used inside libintl.
63971         (local_wcslen): New function, for Solaris 2.5.1.
63972         (VASNPRINTF): Use it instead of wcslen.
63973
63974 2003-11-16  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/xsize.h (xmax): New function.
63977         (xsum, xsum3, xsum4): Declare as "pure" functions.
63978
63979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63980
63981         * modules/xalloc (Files): Undo latest change, since xalloc.h
63982         no longer needs SIZE_MAX or PTRDIFF_MAX.
63983
63984 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63985
63986         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63987         gl_PTRDIFF_MAX.
63988
63989 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63990
63991         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63992         "return", to pacify some unknown compiler.  Problem reported
63993         by Joerg Schilling.
63994
63995 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63996
63997         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63998         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63999         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
64000         heuristic is just as accurate as far as we know, and it removes a
64001         dependency on size_max.m4 and ptrdiff_max.m4.
64002
64003 2003-11-11  Bruno Haible  <bruno@clisp.org>
64004
64005         * modules/xsize (Files): Add m4/size_max.m4.
64006         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
64007
64008 2003-11-11  Bruno Haible  <bruno@clisp.org>
64009
64010         * m4/size_max.m4: New file.
64011         * m4/ptrdiff_max.m4: New file.
64012         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
64013         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
64014         (gl_XALLOC): Invoke it.
64015
64016 2003-11-11  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
64019         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
64020         defined.
64021
64022 2003-11-10  Paul Eggert  <eggert@twinsun.com>
64023
64024         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
64025         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
64026         rejected some allocations of exactly SIZE_MAX - 2 bytes.
64027         From Bruno Haible.
64028         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
64029         not (size_t) -1, since it's defined here.
64030
64031 2003-11-09  Karl Berry  <karl@gnu.org>
64032
64033         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
64034
64035 2003-11-06  Paul Eggert  <eggert@twinsun.com>
64036
64037         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
64038         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
64039         Reject sizes of exactly SIZE_MAX bytes.
64040         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
64041         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
64042
64043 2003-11-05  Bruno Haible  <bruno@clisp.org>
64044
64045         * lib/xsize.h: Include limits.h, to avoid a possible collision with
64046         SIZE_MAX defined in <limits.h> on Solaris.
64047
64048 2003-11-04  Jim Meyering  <jim@meyering.net>
64049
64050         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
64051         variable names, rather than @VAR@.
64052         * modules/poll: Likewise.
64053
64054 2003-11-04  Bruno Haible  <bruno@clisp.org>
64055
64056         * modules/xsize: New file.
64057         * modules/linebreak: Depend on xsize.
64058         * MODULES.html.sh (func_all_modules): Add xsize.
64059
64060 2003-11-04  Bruno Haible  <bruno@clisp.org>
64061
64062         * m4/xsize.m4: New file.
64063
64064 2003-11-04  Bruno Haible  <bruno@clisp.org>
64065
64066         * lib/xsize.h: New file.
64067         * lib/linebreak.c: Include xsize.h.
64068         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
64069         argument for overflow.
64070         Suggested by Paul Eggert.
64071
64072 2003-11-03  Karl Berry  <karl@gnu.org>
64073
64074         * config/config.{guess,sub}: update from config.
64075
64076 2003-11-03  Jim Meyering  <jim@meyering.net>
64077
64078         * modules/userspec (lib_SOURCES): Add userspec.h.
64079         (Include): Add "userspec.h".
64080         Improve description.
64081
64082 2003-11-03  Jim Meyering  <jim@meyering.net>
64083
64084         * lib/userspec.c: Include "userspec.h".
64085         * lib/userspec.h: New file.
64086
64087 2003-11-03  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
64090
64091 2003-11-03  Bruno Haible  <bruno@clisp.org>
64092
64093         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
64094         available, to avoid (extremely rare) race condition.
64095         Suggested by Paul Eggert.
64096
64097 2003-11-02  Karl Berry  <karl@gnu.org>
64098
64099         * config/srclist.txt (vasprintf.c): sync broken, sigh.
64100
64101 2003-10-31  Paul Eggert  <eggert@twinsun.com>
64102
64103         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
64104         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
64105         (read_filesystem_list): Set and use me_type_malloced.
64106         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
64107         whatever the type happens to be), for brevity and consistency.
64108         Check for size calculation overflow on Alphas running OSF/1.
64109
64110 2003-10-31  Jim Meyering  <jim@meyering.net>
64111
64112         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
64113
64114         * lib/linebuffer.c: Include <string.h> for declaration of memset.
64115
64116 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64117             Bruno Haible  <bruno@clisp.org>
64118
64119         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64120         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64121
64122 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64125         netbsd*-gnu*.  Suggested by Robert Millan.
64126
64127 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64128
64129         * modules/group-member: Depend on stdbool.
64130
64131 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64132
64133         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64134
64135 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64136
64137         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64138         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64139         after the 'gnu' in these cases.  This fixes some bugs in the
64140         previous change, and is based on suggestions by Robert Millan.
64141
64142 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64143
64144         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64145         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64146         no longer needed.
64147         * lib/quotearg.c (quotearg_n_options): Use it.
64148         * lib/group-member.c: Include <stdbool.h>.
64149         (free_group_info): Arg is now const *; don't free arg.
64150         (get_group_info): Now returns bool and accepts struct group_info *,
64151         rather than returning a malloc'ed struct group_info *.
64152         All uses changed.  Check for overflow in internal size calculation.
64153
64154         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64155         rather than xmalloc/xrealloc.
64156         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64157         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64158         conformance bug: the old code used a pointer after freeing the
64159         storage that it addressed.
64160         * lib/hash.c (hash_initialize): Simplify the code by using
64161         xalloc_oversized rather than doing it by hand.
64162         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64163         the buffer preserved.  Use free and xmalloc instead.
64164         * lib/quotearg.c (quotearg_n_options): Likewise.
64165         Use a simpler test for size overflow.  Don't use xalloc_oversized
64166         because unsigned int might be wider than size_t (!); this suggests
64167         that we should switch from unsigned int to size_t for slot numbers.
64168
64169 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64170
64171         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64172         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64173         NetBSD kernels.  Requested by Richard Stallman.
64174
64175 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64176
64177         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64178         to allocate the returned structure.  Do not allocate a subarray,
64179         as x2nrealloc will do that.
64180         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64181         instead of xnrealloc.
64182         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64183
64184 2003-10-27  Bruno Haible  <bruno@clisp.org>
64185
64186         * lib/stdbool_.h: Better support for BeOS.
64187
64188 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64189
64190         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64191         now uses inline.
64192
64193 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64194
64195         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64196         callers that want to do their own size-overflow checking.  Include
64197         <stdbool.h>, since xalloc_oversized returns bool.
64198         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64199         to use xalloc_oversized.
64200
64201         Add two functions x2realloc, x2nrealloc, for programs that grow
64202         arrays dynamically by doubling their sizes.
64203         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64204         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64205         New functions.
64206
64207         Port to C99 semantics for 'inline' of external functions.
64208         Bug reported by Bruno Haible.
64209         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64210         with the old contents of xnmalloc.
64211         (xnmalloc, xmalloc): Use it.
64212         (xnrealloc_inline): New static inline function,
64213         with the old contents of xnrealloc.
64214         (xnrealloc, xrealloc): Use it.
64215
64216         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64217         that.
64218
64219 2003-10-26  Karl Berry  <karl@gnu.org>
64220
64221         * config/srclist.txt (COPYING.DOC): no longer available from
64222         /gd/gnuorg; don't know where the ultimate source is.
64223
64224 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64225
64226         Fix several address-calculation bugs in the hash modules,
64227         plus some minor code cleanup.
64228
64229         * lib/hash.h: Include <stdbool.h>, for bool.
64230         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64231         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64232         hash_get_n_entries, hash_get_max_bucket_length,
64233         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64234         hash_rehash): Use size_t rather than unsigned.
64235         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64236         hash_get_n_buckets_used, hash_get_n_entries,
64237         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64238         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64239         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64240         Likewise.
64241         (SIZE_MAX): Define if not defined.
64242         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64243         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64244         hash_print):
64245         Use const * when possible.
64246         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64247         (check_tuning): Fix bug: if tuning parameters were very close to
64248         0 or 1, rounding errors could have caused subscript violations.
64249         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64250         (hash_initialize): Add 'fail:' label
64251         to free table and return NULL, and use it to simplify code.
64252         Use calloc rather than clearing the storage ourself.
64253         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64254         buffer size calculations.
64255         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64256         Include <stddef.h>, for size_t.
64257         * lib/hash-pjw.c (hash_pjw): Likewise.
64258         Switch to method described by Bruno Haible.
64259         Include <limits.h>, for CHAR_BIT.
64260         (SIZE_BITS): New macro.
64261
64262 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64263
64264         * m4/getline.m4 (AM_FUNC_GETLINE):
64265         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64266         hosts.  Problem reported by Derek Robert Price in
64267         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64268         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64269         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64270
64271 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64272
64273         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64274         ceiling the allocation at NMAX bytes rather than silently
64275         discarding input bytes before NMAX is reached.  This makes
64276         a difference only if NMAX exceeds SIZE_MAX / 2.
64277
64278         * lib/obstack.c: Merge from glibc.
64279         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64280         Add libc_hidden_def (_obstack_newchunk).
64281         (_obstack_free) [! defined _LIBC]: Remove.
64282         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64283         a clone of the function body.
64284         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64285         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64286
64287         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64288         glibc.
64289         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64290         arg to memcpy.
64291
64292         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64293         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64294         Don't use lvalue casts, as GCC plans to remove support for them
64295         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64296         was also present in the non-GCC version, indicating that this
64297         code had always been buggy and had never been widely used.
64298         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64299         Use the fast variant of each macro, rather than copying the
64300         definiens of the fast variant; that way, we'll be more likely to
64301         catch future bugs in the fast variants.
64302
64303 2003-10-20  Bruno Haible  <bruno@clisp.org>
64304
64305         * modules/wait-process: New file.
64306         * MODULES.html.sh (func_all_modules): Add wait-process.
64307
64308 2003-10-20  Bruno Haible  <bruno@clisp.org>
64309
64310         * m4/wait-process.m4: New file.
64311
64312 2003-10-20  Bruno Haible  <bruno@clisp.org>
64313
64314         * lib/wait-process.h: New file, from GNU gettext.
64315         * lib/wait-process.c: New file, from GNU gettext.
64316
64317 2003-10-19  Jim Meyering  <jim@meyering.net>
64318
64319         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64320         HPUX 10.20.
64321
64322 2003-10-18  Karl Berry  <karl@gnu.org>
64323
64324         * config/config.guess: update from config.
64325
64326 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64327
64328         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64329         (getgroups): First arg is int, not size_t.
64330         Don't let 'free' mangle errno.
64331
64332 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64333
64334         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64335
64336 2003-10-16  Karl Berry  <karl@gnu.org>
64337
64338         * config/config.{guess,sub}: update from config.
64339
64340 2003-10-16  Jim Meyering  <jim@meyering.net>
64341
64342         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64343         memcpy.
64344
64345 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64346
64347         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64348         (SIZE_MAX): Remove.
64349         (new_exclude, add_exclude_file): Initial size no longer needs to
64350         be a power of 2.
64351         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64352         our own address arithmetic overflow checking.
64353
64354         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64355         (fnmatch): Do not alloca more than 2000 wide characters;
64356         instead, use malloc for large buffers.
64357         Check for address arithmetic overflow, and return -1
64358         with errno set to ENOMEM in that case.
64359         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64360         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64361         instead, return -1.  Check for address arithmetic overflow.
64362
64363 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64364
64365         Handle invalid suffixes and overflow independently, so that
64366         callers can treat them independently as needed.  Fix some bugs in
64367         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64368         suffix for a human-readable blocksize.  The major caller-visible
64369         change is the addition of a new
64370         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64371         that both overflow and suffix chars were found.
64372
64373         * lib/human.c (humblock): Don't check separately for invalid suffix
64374         char; that is xstrtoumax's job (now that its bug is fixed).
64375         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64376         INTMAX_MAX]: New macros.
64377         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64378         TYPE_MAXIMUM): New macros.
64379         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64380         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64381         if overflow occurs, as it's what __strtol does and it's more useful
64382         in practice.
64383         (__xstrtol): If __strtol reports some error other than ERANGE,
64384         reflect it to the caller as LONGINT_INVALID.  If it reports
64385         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64386         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64387         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64388         value.
64389         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64390         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64391         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64392         [defined UINTMAX_MAX]: New macros.
64393
64394 2003-10-14  Bruno Haible  <bruno@clisp.org>
64395
64396         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64397
64398 2003-10-14  Bruno Haible  <bruno@clisp.org>
64399
64400         * m4/sig_atomic_t: New file, from GNU gettext.
64401         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64402
64403 2003-10-14  Bruno Haible  <bruno@clisp.org>
64404
64405         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64406         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64407         Also use volatile where needed.
64408
64409 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64410
64411         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64412         Change maintainer from Bruno Haible to 'all'.
64413
64414 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64415
64416         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64417
64418 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64419
64420         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64421         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64422         and define in terms of the other primitives.
64423         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64424         (SIZE_MAX): Define if not already defined.
64425         (array_size_overflow): New function.
64426         (xalloc_die): Abort instead of exiting if 'error' returns.
64427         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64428         (xmalloc, xrealloc): Use them.
64429         (xcalloc): Check for address arithmetic overflow.
64430         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64431         a bit faster than strcpy.
64432
64433 2003-10-10  Simon Josefsson  <jas@extundo.com>
64434
64435         * modules/argp (Depends-on): Add restrict and strcase.
64436
64437 2003-10-10  Simon Josefsson  <jas@extundo.com>
64438
64439         * m4/argp.m4: Add AC_C_INLINE.
64440
64441 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64442
64443         Merge getpass from libc, plus a few fixes.
64444
64445         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64446         Include <stdbool.h>.
64447         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64448         __fsetlocking to empty.
64449         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64450         do include <bits/libc-lock.h>.
64451         Do not include <fcntl.h>; not needed.
64452         [_LIBC]: Include <wchar.h>.
64453         (NOTCANCEL_MODE): New macro.
64454         (flockfile, funlockfile) [_LIBC]: New macros.
64455         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64456         [!_LIBC]: New macros.
64457         (call_fclose): New function.
64458         (getpass): Use it.  Save tty stream separately; this simplifies the
64459         code and makes it more reliable if stdin happens to equal stdout.
64460         Invoke __fsetlocking on tty.
64461         Handle thread cancellation if needed.
64462         Namespace cleanup (use __tcgetattr, __getline).
64463         Use bool for Booleans.
64464         [USE_IN_LIBIO]: Handle wide streams.
64465         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64466         stream might go where.
64467
64468         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64469         doesn't have to include <stdio.h> before us.
64470         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64471         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64472         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64473         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64474         if not declared, so that we can use getpass.c code from libc without
64475         rewriting it.
64476         (flockfile, ftrylockfile, funlockfile): New macros.
64477
64478 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64479
64480         * modules/getpass: Depend on stdbool.
64481
64482 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64483
64484         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64485
64486 2003-10-07  Karl Berry  <karl@gnu.org>
64487
64488         * config/config.{guess,sub}: update from config.
64489
64490 2003-10-06  Jim Meyering  <jim@meyering.net>
64491             Bruno Haible  <bruno@clisp.org>
64492
64493         This lets translators provide better translations for the
64494         "Written by ..." part of --version output.
64495         * lib/version-etc.h: Include stdarg.h.
64496         (version_etc_copyright): Declare as readonly.
64497         (version_etc): Make this function variadic with a NULL-terminated list
64498         of author name strings.
64499         (version_etc_va): New declaration.
64500         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64501         (version_etc_copyright): Declare as readonly.
64502         (version_etc_va): New function. Provide a different translatable string
64503         for each possible number of authors < 10. Abbreviate when there are 10
64504         authors or more.
64505         (version_etc): Make this function variadic. Call version_etc_va.
64506         Suggestion from Gary V. Vaughan.
64507
64508         * lib/long-options.h (parse_long_options): Change prototype: the
64509         authors string is moved to the end and becomes variadic.
64510         * lib/long-options.c: Include stdarg.h.
64511         (parse_long_options): Make this function variadic, too.
64512         Call version_etc_va, not version_etc.
64513
64514 2003-10-06  Bruno Haible  <bruno@clisp.org>
64515
64516         * modules/version-etc-2: Remove file.
64517         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64518
64519 2003-10-06  Bruno Haible  <bruno@clisp.org>
64520
64521         * modules/fatal-signal: New file.
64522         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64523
64524 2003-10-06  Bruno Haible  <bruno@clisp.org>
64525
64526         * m4/fatal-signal.m4: New file.
64527         * m4/signalblocking.m4: New file, from GNU gettext.
64528
64529 2003-10-06  Bruno Haible  <bruno@clisp.org>
64530
64531         * lib/version-etc-2.h: Remove file.
64532         * lib/version-etc-2.c: Remove file.
64533
64534 2003-10-06  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/fatal-signal.h: New file, from GNU gettext.
64537         * lib/fatal-signal.c: New file, from GNU gettext.
64538
64539 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64540
64541         * README: Rework advice for preventing empty .o files.
64542         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64543         not <sys/types.h>.
64544
64545 2003-10-04  Karl Berry  <karl@gnu.org>
64546
64547         * lib/argp*: update from libc.
64548
64549 2003-10-04  Karl Berry  <karl@gnu.org>
64550
64551         * config/config.{guess,sub}: update from config.
64552
64553 2003-10-02  Bruno Haible  <bruno@clisp.org>
64554
64555         * modules/lchown (Include): Add lchown.h.
64556         * modules/time_r (Include): Use "..." syntax.
64557         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64558
64559 2003-10-01  Simon Josefsson  <jas@extundo.com>
64560
64561         * MODULES.html.sh (func_all_modules): Move gethostname from section
64562         'based on' to section 'lacking' POSIX:2001.
64563
64564 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64565
64566         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64567         to output mode on the same stream.
64568
64569 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64570
64571         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64572         Fix arg typo in previous patch.
64573
64574 2003-09-28  Jim Meyering  <jim@meyering.net>
64575
64576         * lib/error.c: Correct cpp indentation.
64577
64578 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64579
64580         * modules/free: New file.
64581
64582 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64583
64584         * m4/free.m4: New file.
64585
64586 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64587
64588         * lib/minmax.h (MIN, MAX)
64589         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64590         Omit the special code that used __typeof__, since we worry that
64591         it could be more trouble than it's worth.  See:
64592         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64593         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64594
64595         * lib/free.c: New file.
64596
64597 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64598
64599         Trivial fixes to Makefile.am parts of module listings.
64600         * modules/strstr: Append strstr.h to lib_SOURCES.
64601         * modules/strcase: Likewise, for strcase.h.
64602
64603 2003-09-27  Karl Berry  <karl@gnu.org>
64604
64605         * config/mkinstalldirs: update from automake.
64606
64607 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64608
64609         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64610         (error_tail): Do not loop, reallocating temporary buffer, since
64611         the output cannot contain more wide characters than the input
64612         contains bytes, the size must be big enough already.  This avoids
64613         one potential size overflow calculation.  Check for size overflow
64614         when calculating temporary buffer size.  Free temporary buffer
64615         when done, if it was allocated with malloc; this plugs a memory
64616         leak.  Remove casts from void * to pointers, that are no longer
64617         needed now that we're assuming C89 or better.
64618
64619         Merge error changes from glibc.
64620
64621         * lib/error.c, error.h: Update copyright notice header to match glibc.
64622         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64623         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64624         Disable cancellation while printing error.
64625         * lib/error.h: Prepend __ to parameter names.
64626
64627 2003-09-26  Jim Meyering  <jim@meyering.net>
64628
64629         * lib/error.c (error_tail): Move some declarations
64630         into inner scope where the local variables are used.
64631
64632 2003-09-26  Bruno Haible  <bruno@clisp.org>
64633
64634         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64635         stpncpy().
64636         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64637
64638 2003-09-26  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64641         (stpncpy): Define as alias for gnu_stpncpy.
64642         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64643
64644 2003-09-25  Simon Josefsson  <jas@extundo.com>
64645
64646         * lib/xgetdomainname.h: New file.
64647         * lib/xgetdomainname.c: New file.
64648
64649 2003-09-25  Simon Josefsson  <jas@extundo.com>
64650             Bruno Haible  <bruno@clisp.org>
64651
64652         * modules/getdomainname: New file.
64653         * modules/xgetdomainname: New file.
64654         * MODULES.html.sh (func_all_modules): Add getdomainname,
64655         xgetdomainname.
64656
64657 2003-09-25  Simon Josefsson  <jas@extundo.com>
64658             Bruno Haible  <bruno@clisp.org>
64659
64660         * m4/getdomainname.m4: New file.
64661
64662 2003-09-25  Simon Josefsson  <jas@extundo.com>
64663             Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/getdomainname.h: New file.
64666         * lib/getdomainname.c: New file.
64667
64668 2003-09-25  Karl Berry  <karl@gnu.org>
64669
64670         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64671
64672 2003-09-25  Karl Berry  <karl@gnu.org>
64673
64674         * config/install-sh: update from automake.
64675
64676 2003-09-25  Bruno Haible  <bruno@clisp.org>
64677
64678         * modules/version-etc-2: New file, from modules/version-etc with
64679         modifications.
64680         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64681
64682 2003-09-25  Bruno Haible  <bruno@clisp.org>
64683
64684         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64685         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64686
64687 2003-09-24  Simon Josefsson  <jas@extundo.com>
64688
64689         * modules/xgethostname: Add xgethostname.h.
64690
64691 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64692
64693         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64694         the buffer associated with the argument.  Bug reported by
64695         Simon Josefsson.
64696
64697 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64698
64699         * README: Document assumptions that 'int' is at least 32 bits
64700         wide, that integer arithmetic is 2's complement without overflow,
64701         that there are no holes in integer values, that adding sizes of
64702         two nonoverlapping objects can't overflow, and that all-bits-zero
64703         yields scalar zero.  Fix spelling and capitalization typos.
64704
64705 2003-09-19  Karl Berry  <karl@gnu.org>
64706
64707         * lib/argp.h: update from libc.
64708
64709 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64710
64711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64712         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64713         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64714
64715 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64716
64717         * gnulib-tool: Use "test -h", not "test -L", for portability
64718         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64719         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64720         (sed_extract_prog): Issue s commands one-by-one, rather than
64721         using \| in one s command.
64722
64723 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64724
64725         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64726         input error, instead of returning NULL the next time we are called
64727         (and therefore losing track of errno).
64728
64729 2003-09-16  Bruno Haible  <bruno@clisp.org>
64730
64731         * gnulib-tool (func_create_testdir): Warn about duplicated
64732         dependencies.
64733
64734 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64735
64736         * modules/argmatch, modules/fatal, modules/obstack,
64737         modules/xalloc, modules/xgethostname: Sort dependencies by
64738         importance, not alphabetically.
64739
64740 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64741
64742         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64743         fails, so that the caller gets the proper errno.
64744
64745         * lib/readutmp.c (read_utmp): Likewise.
64746         Check for fstat error.  Close stream and free storage
64747         when failing.
64748
64749 2003-09-14  Karl Berry  <karl@gnu.org>
64750
64751         * config/srclist.txt (strdup.c): disable for c89 changes.
64752
64753 2003-09-14  Jim Meyering  <jim@meyering.net>
64754
64755         * lib/getloadavg.c: Correct cpp indentation.
64756         * lib/strdup.c: Likewise.
64757         * lib/vasnprintf.c: Likewise.
64758
64759 2003-09-14  Bruno Haible  <bruno@clisp.org>
64760
64761         * modules/fwriteerror: New file.
64762         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64763
64764 2003-09-14  Bruno Haible  <bruno@clisp.org>
64765
64766         * lib/fwriteerror.h: New file.
64767         * lib/fwriteerror.c: New file.
64768
64769 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64770
64771         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64772         modules/xgethostname, modules/xalloc: Depend on exit.
64773
64774 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64775
64776         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64777
64778         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64779         and AC_MINIX, too, so that their extensions are available.
64780
64781         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64782         This macro has been superseded by gl_BACKUPFILE.
64783
64784         More patches to assume C89 or better.
64785
64786         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64787
64788         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64789         unconditionally.
64790         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64791         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64792         Include <string.h>, <stdlib.h> unconditionally.
64793         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64794         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64795         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64796         headers or for string.h.
64797         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64798         or strtoul.
64799
64800         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64801         headers.
64802         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64803         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64804         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64805         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64806         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64807         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64808         memcpy, memset.
64809         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64810         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64811         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64812         strtol.
64813         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64814         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64816         strtoul.
64817
64818 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64819
64820         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64821         * lib/obstack.c [!defined _LIBC]: Likewise.
64822         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64823         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64824         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64825
64826         More changes to assume C89 or better.
64827
64828         * lib/error.c (error_tail): Assume vprintf.
64829
64830         * lib/argmatch.c (getenv): Remove decl.
64831         * lib/progreloc.c (get_full_program_name): Define via prototype.
64832         * lib/setenv.c (clearenv): Likewise.
64833         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64834         needed.
64835         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64836         (malloc, memcpy): Remove decls.
64837         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64838         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64839         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64840         (memcpy): Remove macro.
64841         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64842         (__P): Remove.  All uses removed.
64843         (PTR): Remove.  All uses changed to void *.
64844         (CHAR_BIT, NULL): Remove.
64845         (spaces, zeros, memset_space, memset_zero)
64846         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64847         Remove.
64848         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64849         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64850         Define with prototype.
64851         Remove now-unnecessary prototype decl.
64852         (extra_args_spec): Assume ANSI C.  All uses changed.
64853         (extra_args_spec_iso): Remove.
64854         (my_strftime, emacs_strftimeu): Define via prototype.
64855         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64856         unconditionally.
64857         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64858         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64859         (strtoul, strtol): Remove decls.
64860         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64861         LONG_MAX): Remove.
64862         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64863         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64864         (LOCALE_PARAM_PROTO): New macro.
64865         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64866         (INTERNAL (strtol), strtol): Define with a prototype.
64867         (PARAMS): Remove.  All uses removed.
64868         * lib/tempname.c: Include <string.h> unconditionally.
64869         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64870         * lib/xgethostname.c (main): Define with a prototype.
64871         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64872         Include <stdlib.h> unconditionally.
64873         (calloc, malloc, realloc, free): Remove decls.
64874         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64875         Include <stdlib.h> unconditionally.  Sort include file names.
64876         (strtod): Remove.
64877         (xstrtod): Define with a prototype.
64878         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64879         (strtol, strtoul): Remove decls.
64880
64881 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64882
64883         More patches to assume C89 or better.
64884         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64885         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64886         string.h, memchr, STDC_HEADERS.
64887
64888 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64889
64890         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64891         Include <stdlib.h>, <string.h> unconditionally.
64892         Remove now-unnecessary cast to char *.
64893         * lib/strnlen.c: Include <string.h> unconditionally.
64894         * lib/yesno.c (yesno): Define with a prototype.
64895
64896 2003-09-11  Bruno Haible  <bruno@clisp.org>
64897
64898         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64899
64900 2003-09-10  Jim Meyering  <jim@meyering.net>
64901
64902         * lib/error.c: Correct indentation of cpp directives.
64903
64904 2003-09-10  Bruno Haible  <bruno@clisp.org>
64905
64906         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64907         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64908         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64909         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64910         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64911         <stdlib.h> and <string.h> checks.
64912         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64913         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64914
64915 2003-09-10  Bruno Haible  <bruno@clisp.org>
64916
64917         * lib/strcspn.c: Include <string.h> unconditionally.
64918         * lib/strpbrk.c: Include <string.h> unconditionally.
64919         * lib/strstr.c: Include <string.h> unconditionally.
64920         * lib/unicodeio.c: Include <string.h> unconditionally.
64921         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64922         * lib/unsetenv.c: Likewise.
64923         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64924         * lib/yesno.c: Include <stdlib.h> unconditionally.
64925         (rpmatch): Add prototype.
64926
64927 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64928
64929         More patches to assume C89 or better.
64930         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64931         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64932         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64933         or for string.h.
64934         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64935         stdlib.h.
64936         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64937         C headers.
64938         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64939         string.h.
64940         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64941         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64942         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64943         or for string.h.
64944         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64945         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64946         C headers.
64947         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64948         memcpy.
64949         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64950         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64951         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64952         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64953         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64954         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64955         string.h, free.
64956         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64957         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64958         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64959         C headers, or for string.h.
64960         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64961         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64962         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64963         headers, memory.h, stdlib.h, string.h, strings.h.
64964         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64965         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64966         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64967         strchr.
64968         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64969         headers, memory.h, string.h.
64970         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64971         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64972         free.
64973         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64974         headers.
64975         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64976         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64977         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64978         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64979         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64980
64981 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64982
64983         More K&R removal.
64984
64985         * lib/acosl.c (main): Use a prototype.
64986         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64987         tanl.c: Likewise.
64988
64989         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64990
64991         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64992         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64993         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64994         with a prototype.
64995         * lib/getopt.c (const): Remove macro.
64996         Include <string.h> unconditionally.
64997         (my_index): Remove; all uses changed to strchr.
64998         (strlen): Remove decl.
64999         (exchange): Remove forward decl; no longer needed.
65000         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
65001         Define with prototype.
65002         * lib/getopt1.c (const): Remove macro.
65003         (getopt_long, getopt_long_only, main): Define with prototype.
65004
65005         * lib/getugroups.c: Include <string.h> unconditionally.
65006
65007         * lib/getusershell.c: Include <stdlib.h> unconditionally.
65008         (getusershell, setusershell, endusershell, readname, main):
65009         Define with prototypes.
65010
65011         * lib/group-member.c: Include group-member.h first.
65012         Include <stdlib.h> unconditionally.
65013
65014         * lib/hard-locale.c: Include hard-locale.h first.
65015         Include <stdlib.h>, <string.h> unconditionally.
65016
65017         * lib/hash.c (free, malloc): Remove decls.
65018         Include <stdlib.h> unconditionally.
65019
65020         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
65021         (getenv): Do not declare.
65022
65023         * lib/idcache.c: Include <string.h> unconditionally.
65024
65025         * lib/long-options.c: Include long-options.h first, to test interface.
65026         Include <stdlib.h> unconditionally.
65027
65028         * lib/makepath.c: Include makepath.h first, to test interface.
65029         Include <stdlib.h> and <string.h> unconditionally.
65030
65031         * lib/linebuffer.c: Include <stdlib.h>.
65032         (free): Remove decl.
65033
65034         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
65035         stddef.h. rpl_malloc returns void *, not char *.
65036         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
65037         prototype.
65038
65039         * lib/md5.h: Include <limits.h> unconditionally.
65040         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
65041         (__P): Remove; all uses removed.
65042         * lib/md5.c: Include "md5.h" first.
65043         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
65044         md5_buffer, md5_process_bytes, md5_process_block):
65045         Define with prototypes.
65046         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
65047         * lib/sha.c: Include "sha.h" first.
65048         Include <stdlib.h>, <string.h> unconditionally.
65049
65050         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
65051         * lib/memcmp.c (__ptr_t): Likewise.
65052         * lib/memrchr.c (__ptr_t): Likewise.
65053         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
65054         Include <string.h> unconditionally.
65055         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
65056         * lib/memchr.c: Include <stdlib.h> unconditionally.
65057         * lib/memchr.c (LONG_MAX): Remove.
65058         * lib/memrchr.c (LONG_MAX): Likewise.
65059         * lib/memchr.c (__memchr): Define via a prototype.
65060         * lib/memrchr.c (__memrchr): Likewise.
65061         * lib/memcmp.c (__P): Remove, and remove all uses.
65062         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
65063         Remove forward decls; no longer needed.
65064         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
65065         Use types required by C89 in prototype.
65066
65067         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
65068         * lib/savedir.c: Likewise.
65069         * lib/mkdir.c (free): Remove decl.
65070         * lib/rmdir.c (rmdir): Define with a prototype.
65071         * lib/savedir.c: Include savedir.h first, to test interface.
65072
65073         * lib/mktime.c (STDC_HEADERS): Remove.
65074         Include <stdlib.h>, <string.h> unconditionally.
65075
65076         * lib/modechange.c: Include <stdlib.h> unconditionally.
65077         (malloc): Remove decl.
65078
65079         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
65080         (free): Remove decl.
65081
65082         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
65083         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
65084         (This type really should be intptr_t, but that's a C99ism.)
65085         (_obstack_memcpy): Remove: all uses changed to memcpy.
65086         Include <string.h> unconditionally.
65087         (struct obstack): Assume __STDC__ for types of members
65088         chunkfun, freefun, extra_arg.
65089         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
65090         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
65091         obstack_begin, obstack_specify_allocation,
65092         obstack_specify_allocation_with_arg, obstack_chunkfun,
65093         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
65094         Remove unprototyped decls and the macros that use them.
65095         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
65096         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
65097         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
65098         (defined __STDC__ && __STDC__)]:
65099         Remove nonprototyped code.
65100         Include <stdlib.h> unconditionally.
65101         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
65102         _obstack_allocated_p, _obstack_free, obstack_free,
65103         _obstack_memory_used, print_and_abort):
65104         Define using prototypes.
65105         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
65106         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
65107         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
65108         obstack_next_free, obstack_object_size, obstack_room) [0]:
65109         Remove unused, unprototyped code.
65110
65111         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
65112
65113         * lib/physmem.c (physmem_total, physmem_available, main): Define
65114         with prototypes.
65115
65116         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65117         (main): Define with a prototype.
65118
65119         * lib/posixver.c (getenv): Remove decl.
65120
65121         * lib/putenv.c (malloc): Returns void *, not char *.
65122         Include <string.h> unconditionally.
65123         (strchr, memcpy, NULL): Do not define.
65124
65125         * lib/readtokens.c: Include readtokens.h first, to test interface.
65126         Include <stdlib.h>, <string.h> unconditionally.
65127         (init_tokenbuffer): Define with a prototype.
65128
65129         * lib/regex.c (PARAMS): Remove.  All uses removed.
65130         All uses of _RE_ARGS removed, too.
65131         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65132         unconditionally.
65133         (bzero): Assume memset exists.
65134         (memcmp, memcpy, NULL): Remove.
65135         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65136         char, or assignments to local vars of type signed char.
65137         (init_syntax_once, PREFIX(extract_number_and_incr),
65138         PREFIX(print_partial_compiled_pattern),
65139         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65140         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65141         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65142         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65143         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65144         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65145         wcs_compile_range, byte_compile_range, truncate_wchar,
65146         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65147         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65148         count_mbs_length, wcs_re_match_2_internal,
65149         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65150         PREFIX(alt_match_null_string_p),
65151         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65152         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65153         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65154         now-unnecessary declaration, if any.
65155         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65156         regcomp, regexec):
65157         Remove now-unnecessary casts among pointer types.
65158         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65159
65160         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65161         (free): Remove decl.
65162
65163         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65164
65165         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65166         (free): Remove decl.
65167
65168         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65169         * lib/xgetcwd.c: Likewise.
65170
65171         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65172         (free): Remove decl.
65173
65174         * lib/strchrnul.c (strchrnul): Define with a prototype.
65175         Fix bug: c_in was not converted to char before searching.
65176
65177         The following changes are not K&R related:
65178
65179         * lib/group-member.h: Include <sys/types.h>, so that this file is
65180         self-contained.
65181         * lib/makepath.h: Likewise.
65182
65183         * lib/getusershell.c (readname, default_index, line_size, readname):
65184         Use size_t, not int, for sizes.
65185         (readname): If the size overflows, report an error instead of
65186         looping forever.
65187
65188 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65189
65190         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65191         libc.
65192
65193 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65194
65195         * README: New section: portability guidelines.
65196
65197 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65198
65199         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65200         C89 spec.
65201
65202 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65203
65204         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65205
65206 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65207
65208         Assume C89 or better; remove K&R cruft.
65209         A few of these changes were first proposed by Derek Robert Price
65210         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65211
65212         * lib/addext.c: Include <string.h> unconditionally.
65213         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65214         Don't declare getenv or malloc.
65215
65216         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65217         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65218         (NULL): Remove.
65219         (find_stack_direction, alloca): Use prototypes.
65220
65221         * lib/atexit.c (atexit): Define using a prototype.
65222
65223         * lib/basename.c, dirname.c, stripslash.c:
65224         Include <string.h> unconditionally.
65225
65226         * lib/bcopy.c: Include <stddef.h>.
65227         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65228
65229         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65230
65231         * lib/error.h (error, error_at_line, error_print_progname)
65232         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65233         * lib/error.c: Include error.h first, to check interface.
65234         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65235         (VA_START): Remove; all uses changeed to va_start.
65236         (exit, strerror): Remove decls.
65237         (error_print_progname): Prototype uncondionally.
65238         Don't include <errno.h>; no longer needed.
65239         (private_strerror): Remove.
65240         (error_tail): Always define.
65241         (error, error_at_line): Assume C89 or better; always use prototypes.
65242         * lib/fatal.c: Include "fatal.h" first, to test interface.
65243         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65244         (VA_START): Remove; all uses changed to va_start.
65245         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65246         this case.
65247         (exit): Remove decl.
65248         (fatal): Prototype unconditionally.  Assume va_start works.
65249         Abort at end, to pacify gcc.
65250
65251         * lib/euidaccess.c (main): Define with a prototype.
65252
65253         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65254
65255         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65256
65257         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65258         prototypes.
65259         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65260         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65261         (getenv): Remove decl.
65262         (fnmatch): Define using a prototype.
65263         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65264         (FCT): Define using a prototype.
65265
65266         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65267
65268         * lib/gethostname.c: Include <stddef.h>.
65269         (gethostname): Define with prototype.  Length is size_t, not int.
65270
65271 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65272
65273         Assume C89 or better; remove K&R cruft.
65274         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65275         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65276         string.h, getenv, malloc.
65277         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65278         headers.
65279         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65280         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65281         do not check for strerror.
65282         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65283         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65284         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65285         do not check for doprnt or vprintf.
65286         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65287         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65288
65289 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65290
65291         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65292         getversion.c should have been removed then, but was accidentally
65293         preserved.
65294
65295         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65296         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65297
65298 2003-09-08  Karl Berry  <karl@gnu.org>
65299
65300         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65301                 config, forget about prep.
65302
65303         * config/depcomp, missing: update from automake.
65304
65305 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65306
65307         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65308         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65309
65310 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65311
65312         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65313         copy_tm_result.  Bug reported by Simon Josefsson in
65314         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65315
65316 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65317
65318         * m4/time_r.m4: New file.
65319         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65320         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65321         is. Check for timegm declaration.
65322         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65323         Do not check for gmtime_r.
65324         Replace mktime if __mktime_internal does not exist and if mktime
65325         hasn't been replaced already.
65326
65327 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65328
65329         * lib/time_r.c, lib/time_r.h: New files.
65330
65331         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65332         __localtime_r.
65333         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65334         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65335
65336         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65337         __gmtime_r.
65338         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65339         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65340         Include <time_r.h>.
65341
65342         * lib/timegm.c: Switch to glibc implementation, with the following
65343         changes:
65344         [defined HAVE_CONFIG_H]: Include <config.h>.
65345         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65346         (__mktime_internal) [!defined _LIBC]: New decl.
65347         (__gmtime_r) [!defined _LIBC]: New macro and function.
65348         (timegm): Use a prototype, since gnulib assumes C89.
65349         Do not bother declaring tmp to be const, as it's not really usefu.
65350         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65351         (timegm): Declare only if HAVE_DECL_TIMEGM.
65352
65353 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65354
65355         * MODULES.html.sh (func_all_modules): Add time_r.
65356         * modules/time_r: New file.
65357         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65358         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65359
65360 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65361
65362         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65363         Bug reported by Lute Kamstra in
65364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65365
65366         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65367         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65368         course with correspondingly smaller numbers for tomorrow and
65369         yesterday.  From Tadayoshi Funaba.  Originally installed into
65370         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65371         coreutils merge?).
65372
65373 2003-08-31  Simon Josefsson  <jas@extundo.com>
65374
65375         * modules/timegm: New file.
65376         * MODULES.html.sh (func_all_modules): Add timegm.
65377
65378 2003-08-31  Simon Josefsson  <jas@extundo.com>
65379
65380         * m4/timegm.m4: New file.
65381
65382 2003-08-31  Simon Josefsson  <jas@extundo.com>
65383
65384         * lib/timegm.h: New file.
65385         * lib/timegm.c: New file.  Based on
65386         wget-1.8.2/src/http.c:mktime_from_utc.
65387
65388 2003-08-31  Karl Berry  <karl@gnu.org>
65389
65390         * lib/argp.h: update from libc.
65391
65392 2003-08-28  Bruno Haible  <bruno@clisp.org>
65393
65394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65395         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65396         followed by '#define fnmatch fnmatch_posix' gives an error.
65397
65398 2003-08-28  Bruno Haible  <bruno@clisp.org>
65399
65400         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65401         warning on QNX, which defines O_BINARY to 000000.
65402
65403 2003-08-27  Jim Meyering  <jim@meyering.net>
65404
65405         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65406         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65407         would fail after 32.  Reported by Danny Levinson.  Details here:
65408         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65409
65410 2003-08-24  Bruno Haible  <bruno@clisp.org>
65411
65412         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65413         MSVC7 <stdio.h> is included later.
65414
65415 2003-08-22  Simon Josefsson  <jas@extundo.com>
65416
65417         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65418
65419 2003-08-20  Karl Berry  <karl@gnu.org>
65420
65421         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65422
65423 2003-08-20  Bruno Haible  <bruno@clisp.org>
65424
65425         * modules/progname: New file.
65426         * MODULES.html.sh (func_all_modules): Add progname.
65427
65428 2003-08-20  Bruno Haible  <bruno@clisp.org>
65429
65430         * lib/progname.h: New file, from GNU gettext.
65431         * lib/progname.c: New file, from GNU gettext.
65432         * lib/progreloc.c: New file, from GNU gettext.
65433
65434 2003-08-19  Jim Meyering  <jim@meyering.net>
65435
65436         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65437         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65438
65439 2003-08-19  Bruno Haible  <bruno@clisp.org>
65440
65441         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65442         more.
65443
65444 2003-08-19  Bruno Haible  <bruno@clisp.org>
65445
65446         * lib/xstrdup.c: Assume <string.h> exists.
65447
65448 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65449
65450         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65451         in makefile rules.
65452
65453 2003-08-18  Jim Meyering  <jim@meyering.net>
65454
65455         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65456         * m4/lib-ld.m4: Likewise.
65457
65458 2003-08-18  Jim Meyering  <jim@meyering.net>
65459
65460         * lib/setenv.h: Indent nested cpp directive.
65461         * lib/vasnprintf.c: Remove trailing blanks.
65462
65463 2003-08-17  Simon Josefsson  <jas@extundo.com>
65464
65465         * modules/xstrndup: New file.
65466         * MODULES.html.sh (func_all_modules): Add xstrndup.
65467
65468 2003-08-17  Simon Josefsson  <jas@extundo.com>
65469
65470         * modules/argp: Fix autoconf macro name. Add more dependencies.
65471
65472 2003-08-17  Simon Josefsson  <jas@extundo.com>
65473
65474         * m4/xstrndup.m4: New file.
65475
65476 2003-08-17  Simon Josefsson  <jas@extundo.com>
65477
65478         * m4/argp.m4: New file.
65479
65480 2003-08-17  Simon Josefsson  <jas@extundo.com>
65481             Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/xstrndup.h: New file.
65484         * lib/xstrndup.c: New file.
65485
65486 2003-08-17  Bruno Haible  <bruno@clisp.org>
65487
65488         * modules/strndup (Files, Include): Add lib/strndup.h.
65489
65490 2003-08-17  Bruno Haible  <bruno@clisp.org>
65491
65492         * modules/euidaccess (Files): Add lib/euidaccess.h.
65493
65494 2003-08-17  Bruno Haible  <bruno@clisp.org>
65495
65496         * lib/strndup.h: New file.
65497
65498 2003-08-17  Bruno Haible  <bruno@clisp.org>
65499
65500         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65501         like AC_GNU_SOURCE.
65502         * modules/extensions (configure.ac): Comment out the invocation of
65503         gl_USE_SYSTEM_EXTENSIONS.
65504
65505 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65506
65507         Merges from coreutils, etc.
65508         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65509         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65510         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65511         fixing a typo.
65512         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65513         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65514
65515 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65516
65517         Document merge from coreutils.
65518         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65519         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65520         * modules/utime: Add m4/utimes-null.m4.
65521
65522 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65523
65524         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65525         space, undoing this 2003-08-12 change:
65526         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65527
65528 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65529
65530         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65531         strtoul.c from libc, undoing this 2003-08-12 change:
65532         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65533
65534 2003-08-16  Jim Meyering  <jim@meyering.net>
65535
65536         Merges from coreutils.
65537         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65538         prefix.  Adjust cache variables similarly.  Create 500 rather than
65539         just 300 files, to exercise bug on Darwin6.5, too.
65540         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65541         $missing_dir.
65542         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65543         AM_SYS_POSIX_TERMIOS.
65544         Reported by mkc@mathdogs.com.
65545         Also change use of $am_cv_sys_posix_termios
65546         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65547         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65548         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65549         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65550         in /proc/mounts until it finds one with matching device number.  This
65551         is unnecessary when the FILE argument *is* a mount point.  No stat call
65552         is necessary in that case.  So, disable the statvfs-testing code on
65553         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65554         as RedHat bug# 84846.
65555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65556         to 1MB, so as not to render systems with no stack size limit (e.g.,
65557         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65558         Include <unistd.h>.  On some systems,
65559         it is required for the definition of _SC_PAGESIZE.
65560
65561 2003-08-16  Jim Meyering  <jim@meyering.net>
65562
65563         Merge from coreutils.
65564         * lib/xstrtoimax.c: #else #if -> #elif.
65565         * lib/xstrtoumax.c: Likewise.
65566
65567 2003-08-16  Jim Meyering  <jim@meyering.net>
65568
65569         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65570         * m4/utimes.m4: Removed.
65571         * m4/utimes-null.m4: Renamed from utimes.m4.
65572
65573         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65574         to 1MB, so as not to render systems with no stack size limit (e.g.,
65575         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65576         Include <unistd.h>.  On some systems,
65577         it is required for the definition of _SC_PAGESIZE.
65578
65579 2003-08-16  Jim Meyering  <jim@meyering.net>
65580         and Paul Eggert  <eggert@cs.ucla.edu>
65581
65582         Merges from coreutils, etc.
65583
65584         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65585         using the latest version from cvs.  This avoids problems with #line
65586         directives using a vendor (Sun) compiler.
65587         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65588         Don't set GETGROUPS_LIB here; now it's
65589         done via getgroups.m4's wrapper function.
65590         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65591         rather than just in sh-util/configure.in, so that the
65592         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65593         same.
65594         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65595         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65596         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65597         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65598         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65599         Remove code that is now done by the newly-required macros.
65600         Append $(EXEEXT) to DF_PROG.
65601         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65602         Do not invoke or require the following here,
65603         since prereq.m4 or some gnulib .m4 now does this for us:
65604         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65605         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65606         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65607         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65608         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65609         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65610         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65611         AC_FUNC_OBSTACK.
65612         Do not replace the following functions, as this is now the job
65613         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65614         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65615         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65616         atexit getpass, strdup, getpagesize.
65617         Replace 'raise'.
65618         Do not check for the following functions, as this is now the job
65619         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65620         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65621         setregid.
65622         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65623         Check for sys/sysctl.h.
65624         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65625         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65626         of checking for ssize_t ourselves.
65627
65628         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65629         Require every macro that gnulib/modules/* suggests for us.
65630         (jm_PREREQ_ADDEXT): New macro.
65631         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65632         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65633
65634         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65635         (gl_PHYSMEM): Use it.
65636         Also check for `table' function.
65637         Check for new headers and functions.
65638         Add check for sys/sysmp.h.
65639         With suggestions from Kaveh Ghazi.
65640         Ignore headers that are present but cannot be compiled.  This
65641         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65642         C 5.4.
65643
65644 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65645
65646         Document merge from coreutils.
65647         * modules/userspec: Depend on posixver.
65648         * modules/strftime: Depend on tzset.
65649
65650 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65651
65652         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65653         rather than tab, after '#' in shell-script copyright notices.
65654         Suggested by Bruno Haible.
65655
65656 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65657
65658         * config/srclist-update: Use three spaces, rather than tab, after '#'
65659         in shell-script copyright notices.  Suggested by Bruno Haible.
65660         Remove unnecessary parenthesization in regular expression.
65661
65662 2003-08-15  Jim Meyering  <jim@meyering.net>
65663
65664         Merge from coreutils.
65665         * lib/xgethostname.c: Include <stdlib.h>.
65666         (xghostname): Don't exit for anything other than memory-related
65667         failure; just return NULL.
65668         * lib/userspec.c: Include "posixver.h".
65669         (parse_user_spec): Accept `.' as a separator only
65670         in pre-POSIX-200112 mode.
65671         * lib/strtoimax.c: Use #elif rather than #else #if.
65672         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65673         Remove function, now that we can rely on a working tzset function.
65674         [!_LIBC]: Ensure that the required autoconf test has been run.
65675         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65676         Use underlying_strftime for %r.
65677         * lib/sha.c: Merge in some clean-up and optimization changes from
65678         glibc.
65679         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65680         Ensure that it is a multiple of 64.
65681         Rearrange loop exit tests so as to avoid performing an
65682         additional fread after encountering an error or EOF.
65683         * lib/realloc.c: Update copyright date.
65684
65685 2003-08-15  Jim Meyering  <jim@meyering.net>
65686         and Paul Eggert  <eggert@twinsun.com>
65687
65688         Merge from coreutils.
65689         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65690         member but strut utmpx does not.  Needed for AIX 4.3.3.
65691         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65692
65693 2003-08-15  Jim Meyering  <jim@meyering.net>
65694         and Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         Merges from coreutils, etc.
65697         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65698         Require gl_FUNC_TZSET_CLOBBER.
65699         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65700         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65701         members.
65702
65703 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65704
65705         Help the merge from coreutils.
65706         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65707         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65708         * m4/tzset.m4: Use it too.
65709
65710 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65711
65712         * modules/tzset: New file.
65713
65714 2003-08-14  Jim Meyering  <jim@meyering.net>
65715
65716         Merges from coreutils.
65717         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65718         variable names, rather than @FNMATCH_H@.
65719         * modules/alloca: Likewise for $(ALLOCA_H).
65720
65721         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65722         the three copies of the literal target, `fnmatch.h'.
65723         * modules/alloca (alloca.h): Likewise.
65724
65725 2003-08-14  Jim Meyering  <jim@meyering.net>
65726
65727         Merge from coreutils.
65728         * m4/tzset.m4: New file.
65729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65730         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65731         otherwise, AIX 5.1 systems would end up using the latter.
65732         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65733         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65734         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65735         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65736
65737 2003-08-14  Jim Meyering  <jim@meyering.net>
65738
65739         Merge from coreutils.
65740         * lib/obstack.h: Whitespace changes.
65741         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65742         and xcalloc return values.
65743         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65744         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65745         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65746         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65747         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65748         error from mntctl.
65749         Use mntctl's return value to drive the entry-processing loop, since
65750         we can't rely on the value of the vmt_length member in the last
65751         entry.  On some systems doing so could result in exhausting
65752         virtual memory.  Based in part on a patch from Mike Jetzer.
65753
65754 2003-08-14  Jim Meyering  <jim@meyering.net>
65755         and Paul Eggert  <eggert@twinsun.com>
65756
65757         Merges from coreutils, plus other fixes.
65758         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65759         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65760         for credits and details.  Thanks to Kaveh Ghazi for helping
65761         to keep these files in sync.
65762         (ARRAY_SIZE): Define it.
65763         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65764         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65765         (memcasecmp): Don't assume size_t fits in unsigned int.
65766         Remove casts and duplicate code.
65767         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65768         (memcpy): Remove definition.
65769         Merge in some clean-up and optimization changes from glibc.
65770         [BLOCKSIZE]: Move definition to top of file.
65771         Ensure that it is a multiple of 64.
65772         Rearrange loop exit tests so as to avoid performing an
65773         additional fread after encountering an error or EOF.
65774         * lib/md5.h (md5_uintptr): Define.
65775         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65776         return to the initial working directory.  Preserve errno
65777         for caller.
65778         * lib/idcache.c: Include "xalloc.h".
65779         (xmalloc, xrealloc): Remove decls.
65780         (getuser): Remove casts no longer required in C89.
65781         * lib/human.c: Include stdio.h, for sprintf.
65782         * lib/group-member.c: Include "xalloc.h".
65783         (xmalloc, xrealloc): Remove decls.
65784         (get_group_info): Remove casts no longer required in C89.
65785         * lib/getusershell.c (readname): Remove casts no longer required in
65786         C89.
65787         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65788         * lib/getline.c: Whitespace fix, from coreutils.
65789
65790 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65791
65792         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65793         Check for isascii.
65794
65795         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65796         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65797         Undo previous (whitespace-only) change.
65798
65799 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65800
65801         * lib/exclude.c: Include <ctype.h>
65802         (IN_CTYPE_DOMAIN): New macro.
65803         (is_space): New fn.
65804         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65805         and empty lines.
65806
65807         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65808         Undo previous (whitespace-only) change.
65809
65810 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65811
65812         * config/srclist-update: Change update back to the old behavior,
65813         leaving whitespace alone.  Use one 'sed' command rather than a
65814         pipeline.
65815         (fixlicense): Now a variable, not a function.
65816         (remove_trailing_blanks): Remove.
65817         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65818         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65819         Undo previous (whitespace-only) change.
65820
65821 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65822
65823         Merge from coreutils.
65824         * modules/euidaccess: Add lib_SOURCES, include for new
65825         file euidaccess.h
65826
65827 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65828
65829         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65830         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65831         Normalize leading white space and remove trailing white space.
65832
65833         Merge from coreutils
65834         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65835
65836         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65837         0.12.1.  These files are now being upgraded automatically by
65838         ../config/srclist-update.
65839
65840 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65841
65842         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65843         Normalize leading white space and remove trailing white space.
65844         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65845         notice, as per ../config/srclist-update.
65846
65847         Merge from coreutils.
65848         * lib/euidaccess.h: New file.
65849         * lib/euidaccess.c: Include it.
65850         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65851         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65852         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65853
65854 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65855
65856         * config/srclist-update: Add copyright notice.
65857         (remove_id_lines, remove_trailing_blanks): New constants.
65858         (fixfile): Use them to normalize spacing a bit in copied files.
65859         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65860         Normalize leading white space and remove trailing white space.
65861
65862         * config/texinfo.tex: Sync with texinfo.
65863
65864         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65865         strtoul.c from libc, to merge coreutils whitespace changes.
65866
65867         * config/srclist.txt: Get the following m4 files from gettext:
65868         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65869         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65870         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65871         wint_t.m4.
65872
65873 2003-08-12  Karl Berry  <karl@gnu.org>
65874
65875         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65876         been made.
65877
65878 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65879
65880         * modules/gnu-source, m4/gnu-source.m4:
65881         Remove; we're assuming Autoconf 2.54 or later now.
65882         Suggested by Bruno Haible.
65883         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65884
65885 2003-08-11  Bruno Haible  <bruno@clisp.org>
65886
65887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65888
65889 2003-08-11  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65892         (vasnprintf): Use it instead of wcslen.
65893
65894 2003-08-11  Bruno Haible  <bruno@clisp.org>
65895
65896         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65897         value to ensure that _Bool promotes to int. Use #define for _Bool when
65898         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65899
65900 2003-08-10  Karl Berry  <karl@gnu.org>
65901
65902         * lib/regex.h: update from libc (whitespace fix).
65903
65904 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65905
65906         Merge some files from coreutils.  These changes were
65907         originally made by Jim Meyering.
65908         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65909         many older Unixes require this.
65910         * lib/alloca.c (alloca): Remove cast to argument of free;
65911         no longer needed in C89.
65912         * lib/alloca_.h, regex.h: Fix white space to match
65913         what GNU indent does.
65914
65915 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65916
65917         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65918         apparently Emacs's Unicode mode got confused before my 2003-08-05
65919         checkin.
65920
65921 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65922
65923         * m4/extensions.m4: New file.
65924         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65925         Require gl_USE_SYSTEM_EXTENSIONS.
65926         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65927         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65928
65929 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65930
65931         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65932         * modules/extensions, modules/gnu-source: New files.
65933         * modules/timespec, modules/unlocked-io: Depend on extensions.
65934
65935 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65936
65937         * modules/restrict: New file.
65938         * MODULES.html.sh (func_all_modules): Add restrict.
65939         * modules/regex: Depend on restrict.
65940
65941 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65942
65943         * m4/restrict.m4: New file.
65944         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65945
65946 2003-08-07  Bruno Haible  <bruno@clisp.org>
65947
65948         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65949         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65950
65951 2003-08-07  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65954         makes the module 'getndelim2' compatible with the module 'getline'.
65955
65956 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65957
65958         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65959         byte with "\201" to avoid glitches when editing that source file
65960         with multi-gnome-terminal.
65961
65962 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65963
65964         * lib/bumpalloc.h: Remove.
65965
65966 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65967
65968         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65969         * modules/bumpalloc: Remove.
65970
65971 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65972
65973         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65974         GNU coding style.
65975
65976         Merge from coreutils.
65977         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65978         1. From glibc.
65979         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65980         from Karl Berry, implemented by Jim Meyering.
65981         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65982         from Dmitry V. Levin.
65983         Remove anachronistic cast of xrealloc.
65984         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65985         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65986         type. Otherwise, it wouldn't compile with at least /bin/cc on
65987         ymp-cray-unicos9.0.2.X.
65988         Combine two mostly-identical uses of alloca into one.
65989         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65990
65991 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65992
65993         [From Emacs.]
65994
65995         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65996         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65997         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65998         obsolete NLIST_NAME_UNION.
65999         [__GNU__]: Undef BSD and FSCALE.
66000         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
66001
66002 2003-08-03  Paul Eggert  <eggert@twinsun.com>
66003
66004         * lib/stdbool_.h (_Bool): Make it signed char, instead of
66005         an enum type, so that it's guaranteed to promote to int.  See:
66006         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
66007
66008 2003-08-03  Karl Berry  <karl@gnu.org>
66009
66010         * config/depcomp: update from automake.
66011
66012 2003-07-31  Paul Eggert  <eggert@twinsun.com>
66013
66014         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
66015         (strerror): Don't assume that a printable int fits in 14 bytes.
66016
66017 2003-07-31  Bruno Haible  <bruno@clisp.org>
66018
66019         * modules/getpass-gnu: New file.
66020         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
66021
66022 2003-07-31  Bruno Haible  <bruno@clisp.org>
66023
66024         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
66025
66026 2003-07-24  Karl Berry  <karl@gnu.org>
66027
66028         * config/missing: update from automake.
66029
66030 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
66031             Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
66034         * lib/getline.c (getline, getdelim): Likewise.
66035         Remove _GNU_SOURCE define; now it's defined in config.h through
66036         m4/getline.m4.
66037
66038 2003-07-23  Karl Berry  <karl@gnu.org>
66039
66040         * config/config.sub: update from prep.
66041
66042 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66043
66044         * modules/xalloc (Depends-on): Add exitfail.
66045         * modules/xmemcoll: Likewise.
66046
66047 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66048
66049         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
66050         over-parenthesization in macros.
66051
66052         Sync with coreutils.
66053
66054         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
66055         required by C99.
66056
66057         Use `exit_failure' for xalloc and xmemcoll instead of their own
66058         private exit-failure variables.
66059         * lib/xalloc.h (xalloc_exit_failure): Remove.
66060         * lib/xmalloc.c: Likewise.  Include exitfail.h.
66061         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
66062         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
66063         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
66064         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
66065
66066 2003-07-20  Jim Meyering  <jim@meyering.net>
66067
66068         * modules/closeout (Depends-on): Add exitfail.
66069         Suggestion from Bruno Haible.
66070
66071 2003-07-19  Karl Berry  <karl@gnu.org>
66072
66073         * config/config.sub: update from prep.
66074
66075 2003-07-18  Paul Eggert  <eggert@twinsun.com>
66076
66077         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
66078         Remove.
66079         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
66080         to test that it can stand by itself.  Include "exitfail.h".
66081         Clients should set exit_failure instead.
66082         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
66083
66084 2003-07-18  Bruno Haible  <bruno@clisp.org>
66085
66086         * modules/getndelim2: New file.
66087         * modules/getline: Share files with module getndelim2.
66088         * modules/getnline: Depend on getndelim2 instead of sharing files with
66089         it. Add getnline.c to lib_SOURCES.
66090         * MODULES.html.sh (func_all_modules): Add getndelim2.
66091
66092 2003-07-18  Bruno Haible  <bruno@clisp.org>
66093
66094         * m4/getndelim2.m4: New file.
66095         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
66096         invoke gl_PREREQ_GETNDELIM2.
66097         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
66098         gl_PREREQ_GETNDELIM2.
66099         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
66100         gl_GETNDELIM2.
66101
66102 2003-07-18  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/getndelim2.h: New file.
66105         * lib/getndelim2.c: Make into a module of its own. Include config.h,
66106         getndelim2.h.
66107         (getndelim2): Make non-static. Change return type to ssize_t.
66108         * lib/getline.h: Change argument names.
66109         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
66110         * lib/getnline.c: Include getndelim2.h.
66111
66112 2003-07-18  Andreas Schwab  <schwab@suse.de>
66113
66114         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
66115
66116 2003-07-17  Karl Berry  <karl@gnu.org>
66117
66118         * config/config.sub: update from prep.
66119
66120 2003-07-17  Bruno Haible  <bruno@clisp.org>
66121
66122         * modules/getnline: New file.
66123         * modules/getline: Add lib/getndelim2.c to source file list.
66124         * MODULES.html.sh (func_all_modules): Add getnline.
66125
66126 2003-07-17  Bruno Haible  <bruno@clisp.org>
66127
66128         * m4/getnline.m4: New file.
66129
66130 2003-07-17  Bruno Haible  <bruno@clisp.org>
66131
66132         * m4/Makefile.am.in: Remove file.
66133         * m4/Makefile.am: Remove file.
66134         * m4/Makefile.in: Remove file.
66135
66136 2003-07-17  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/getnline.h: New file.
66139         * lib/getnline.c: New file.
66140         * lib/getndelim2.c: New file, extracted from getline.c.
66141         (getndelim2): Renamed from getdelim2, with added nmax argument.
66142         * lib/getline.c: Include getndelim2.c.
66143         (getdelim2): Moved out to getndelim2.c.
66144         (getline, getdelim): Update.
66145
66146 2003-07-17  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/Makefile.am: Remove file.
66149         * lib/Makefile.in: Remove file.
66150
66151 2003-07-17  Bruno Haible  <bruno@clisp.org>
66152
66153         * configure.in: Remove file.
66154         * Makefile.in: Remove file.
66155
66156 2003-07-17  Bruno Haible  <bruno@clisp.org>
66157
66158         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66159
66160 2003-07-16  Karl Berry  <karl@gnu.org>
66161
66162         * config/srclist-update: was running fixlicense twice, which caused
66163                 texinfo.tex to be nullified for some reason.  Simplify,
66164                 $gplsrc is no longer needed as far as I can see?
66165
66166 2003-07-16  Jim Meyering  <jim@meyering.net>
66167
66168         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66169
66170 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66171
66172         * config/srclist.txt: Get the following files from gettext-runtime/intl
66173         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66174         ref-del.sin.  From Bruno Haible.
66175         * config/srclist-update (fixfile): Change grep pattern again, since the
66176         previous fix didn't work (there was another trailing $).  Use
66177         '[$]' to escape the $s.
66178
66179 2003-07-15  Karl Berry  <karl@gnu.org>
66180
66181         * lib/vasnprintf.c: update from gettext.
66182
66183 2003-07-15  Karl Berry  <karl@gnu.org>
66184
66185         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66186         gets expanded when surrounded by '$'.
66187
66188 2003-07-15  Jim Meyering  <jim@meyering.net>
66189
66190         * modules/save-cwd: Don't depend on error.  From Derek Price.
66191
66192 2003-07-15  Jim Meyering  <jim@meyering.net>
66193
66194         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66195
66196 2003-07-14  Simon Josefsson  <jas@extundo.com>
66197
66198         * modules/mempcpy: New file.
66199         * MODULES.html.sh (func_all_modules): Add mempcpy.
66200
66201 2003-07-14  Simon Josefsson  <jas@extundo.com>
66202
66203         * m4/mempcpy.m4: New file.
66204
66205 2003-07-14  Simon Josefsson  <jas@extundo.com>
66206
66207         * lib/mempcpy.h: New file.
66208         * lib/mempcpy.c: New file.
66209
66210 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66211
66212         * modules/getdate, modules/posixtm: Depend on mktime.
66213
66214 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66215
66216         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66217         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66218         unicodeio.c, unicodeio.h, unlocked-io.h:
66219         Switch from LGPL to GPL.
66220
66221 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66222
66223         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66224         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66225         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66226         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66227         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66228         updated automatically by ../config/srclist-update.  This changes
66229         their license from LPGL to GPL.
66230
66231 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66232
66233         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66234         assumed to refer to the root of the most recent stable gettext version.
66235         * config/srclistvars.sh: Add defaults for eggert.
66236         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66237         Match "This program" as well as "The program".  This is needed
66238         for gettext.
66239
66240 2003-07-14  Jim Meyering  <jim@meyering.net>
66241
66242         Don't emit diagnostics.  Let callers do that.
66243         * lib/save-cwd.c: Don't include "error.h".
66244         (save_cwd): Don't call error.  Ensure that errno is valid
66245         when returning nonzero.
66246
66247         * lib/save-cwd.h (restore_cwd): Update prototype.
66248         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66249         Simplify.  Don't call error upon failure.  Let callers do that.
66250         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66251         when auditing is enabled.  But don't bother updating the #if.
66252
66253 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66254
66255         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66256         it breaks C++ compilation.
66257         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66258
66259 2003-07-10  Simon Josefsson  <jas@extundo.com>
66260
66261         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66262
66263 2003-07-10  Jim Meyering  <jim@meyering.net>
66264
66265         * m4/clock_time.m4: Remove trailing blank.
66266         * m4/intmax_t.m4: Likewise.
66267
66268 2003-07-10  Jim Meyering  <jim@meyering.net>
66269
66270         * lib/vasnprintf.c: Remove trailing blanks.
66271         Make cpp indentation consistent.
66272
66273 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66274
66275         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66276         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66277         Switch from LGPL to GPL.
66278
66279 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66280
66281         * config/srclist.txt: Sort sublists.  Add
66282         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66283         that differ from gnulib for one reason or another; we'd like this list
66284         to be smaller but for now let's document what we have.
66285
66286 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66287
66288         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66289         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66290         and sweeter "eval x=$x".
66291         * config/srclist.txt: Get lib/argp* from glibc.
66292
66293 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66294
66295         * lib/mktime.c: Fix some boundary cases and remove need for floating
66296         point.
66297
66298         Issue a compile-time diagnostic if time_t is floating point, or if
66299         two's complement arithmetic is not in effect, or if arithmetic
66300         right shift does not propagate the sign.  These assumptions were
66301         all in the original code but they weren't checked.
66302
66303         (TIME_T_MIDPOINT, verify): New macros.
66304         (__isleap): Remove; it has integer overflow problems.
66305         (leapyear): New function, without those problems.
66306         (ydhms_tm_diff): Remove; splitting into two parts.
66307         (ydhms_diff): New function, containing the arithmetic part of
66308         the old ydhms_tm_diff function.  Issue a compile-time
66309         diagnostic if we are not using C99 integer division.
66310         Avoid casts when possible.
66311         (guess_time_tm): New function, containing the checking part of
66312         the old ydhms_tm_diff function.  Return the new value, rather than
66313         the difference between it and the old.  Accept a new argument T
66314         so that *T specifies the old value.  Check for overflow in the result.
66315
66316         (__mktime_internal): Use a time_t offset, not a long int offset.
66317         This undoes the 2003-06-04 change, which is no longer needed now
66318         that we have better overflow checking.
66319         (localtime_offset): Likewise.
66320
66321         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66322         and long are 64-bit but int is only 32-bit.
66323         (ydhms_diff): Use long int to store year1 and yday1.
66324         Issue a compile-time diagnostic if long int is not wide enough.
66325
66326         (__mktime_internal): Use long int to store adjusted year and yday.
66327         Use plain C rather than preprocessor commands, if that doesn't
66328         affect efficiency.
66329         Check for overflow (and try to repair) after each probe
66330         rather than checking only at the very end.  This avoids some bugs
66331         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66332         does not equal GMT offset at maximum time).
66333         Use integer to check for overflow rather than floating point; this
66334         is more portable to non-IEEE hosts, and is a tad faster.
66335         When we detect that we are oscillating between two values,
66336         don't check whether tm_isdst has the requested value, since
66337         we already know the answer.  When tm_isdst has the wrong value,
66338         use a different heuristic to find the right one, based on the
66339         extreme values actually observed in practice in tz2003a,
66340         rather than the (overly optimistic) "previous 3 calendar quarters".
66341
66342         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66343         "T const" to accommodate glibc style.
66344         (check_result): Use less-confusing report format.  "long" -> "long int.
66345         (main): Likewise.
66346         Don't loop if the iteration overflows time_t.
66347         Allow a negative step in the iteration.
66348
66349 2003-07-06  Karl Berry  <karl@gnu.org>
66350
66351         * config/depcomp: update from automake.
66352         * config/config.sub: update from prep.
66353
66354 2003-07-03  Karl Berry  <karl@gnu.org>
66355
66356         * config/config.guess: update from prep.
66357
66358 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66359
66360         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66361         xreadlink.c now includes it unconditionally.
66362
66363 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66364
66365         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66366         having it depend on HAVE_SYS_TYPES_H.
66367
66368 2003-07-01  Bruno Haible  <bruno@clisp.org>
66369
66370         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66371         <sys/types.h> should be sufficient.
66372         Reported by Paul Eggert.
66373
66374 2003-06-26  Karl Berry  <karl@gnu.org>
66375
66376         * config/depcomp: update from automake.
66377
66378 2003-06-26  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/human: Depend on module stdbool.
66381
66382 2003-06-25  Bruno Haible  <bruno@clisp.org>
66383
66384         * modules/readlink: New file.
66385         * modules/xreadlink: Depend on it.
66386         * MODULES.html.sh (func_all_modules): Add readlink.
66387
66388 2003-06-25  Bruno Haible  <bruno@clisp.org>
66389
66390         * m4/readlink.m4: New file.
66391
66392 2003-06-25  Bruno Haible  <bruno@clisp.org>
66393
66394         * lib/readlink.c: New file.
66395
66396 2003-06-22  Karl Berry  <karl@gnu.org>
66397
66398         * config/srclist.txt: update mkinstalldirs from automake.
66399         * config/mkinstalldirs: update.
66400
66401 2003-06-22  Bruno Haible  <bruno@clisp.org>
66402
66403         Portability to mingw32.
66404         * m4/ssize_t.m4: New file, from GNU gettext.
66405         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66406         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66407
66408 2003-06-22  Bruno Haible  <bruno@clisp.org>
66409
66410         * modules/safe-read: Add m4/ssize_t.m4.
66411         * modules/xreadlink: Add m4/ssize_t.m4.
66412
66413 2003-06-20  Bruno Haible  <bruno@clisp.org>
66414
66415         Assume C89, so PARAMS isn't needed.
66416         * lib/unicodeio.h (PARAMS): Remove.
66417         * lib/unicodeio.c: Don't use PARAMS.
66418
66419 2003-06-18  Karl Berry  <karl@gnu.org>
66420
66421         * config/config.{guess,sub}: update from prep.
66422
66423 2003-06-18  Jim Meyering  <jim@meyering.net>
66424
66425         Merge changes from coreutils.
66426         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66427         Remove explicit declarations of xmalloc and realloc.
66428         Include xalloc.h.
66429         (read_utmp): Remove anachronistic cast of xmalloc.
66430
66431 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66432
66433         Assume C89, so PARAMS isn't needed.
66434         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66435         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66436         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66437         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66438         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66439         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66440         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66441         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66442         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66443         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66444         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66445         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66446         no longer needed. Anyway, config.h should always be included before any
66447         other file.
66448
66449 2003-06-11  Simon Josefsson  <jas@extundo.com>
66450
66451         * modules/sysexits: New file.
66452         * MODULES.html.sh (func_all_modules): Add sysexits.
66453
66454 2003-06-11  Simon Josefsson  <jas@extundo.com>
66455
66456         * lib/sysexit_.h: New file.
66457
66458 2003-06-11  Derek Price  <derek@ximbiot.com>
66459
66460         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66461         necessary.
66462
66463 2003-06-11  Bruno Haible  <bruno@clisp.org>
66464
66465         * m4/sysexits.m4: New file.
66466
66467 2003-06-10  Simon Josefsson  <jas@extundo.com>
66468
66469         * lib/argp.h: New file, from glibc.
66470         * lib/argp-ba.c: New file, from glibc.
66471         * lib/argp-eexst.c: New file, from glibc.
66472         * lib/argp-fmtstream.c: New file, from glibc.
66473         * lib/argp-fmtstream.h: New file, from glibc.
66474         * lib/argp-fs-xinl.c: New file, from glibc.
66475         * lib/argp-help.c: New file, from glibc.
66476         * lib/argp-namefrob.h: New file, from glibc.
66477         * lib/argp-parse.c: New file, from glibc.
66478         * lib/argp-pv.c: New file, from glibc.
66479         * lib/argp-pvh.c: New file, from glibc.
66480         * lib/argp-xinl.c: New file, from glibc.
66481
66482 2003-06-10  Simon Josefsson  <jas@extundo.com>
66483
66484         * modules/strchrnul: New file.
66485
66486 2003-06-10  Simon Josefsson  <jas@extundo.com>
66487
66488         * modules/argp: New file.
66489
66490 2003-06-10  Simon Josefsson  <jas@extundo.com>
66491
66492         * m4/strchrnul.m4: New file.
66493
66494 2003-06-10  Simon Josefsson  <jas@extundo.com>
66495
66496         * lib/strchrnul.h: New file.
66497         * lib/strchrnul.c: New file.
66498
66499 2003-06-10  Bruno Haible  <bruno@clisp.org>
66500
66501         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66502
66503 2003-06-07  Karl Berry  <karl@gnu.org>
66504
66505         * config/config.{guess,sub}: update from prep.
66506
66507 2003-06-07  Jim Meyering  <jim@meyering.net>
66508
66509         * modules/strtod: Use $(...) notation, not @...@ for
66510         AC_REPLACE'd variables.
66511         * modules/localcharset: Likewise.
66512
66513 2003-06-07  Jim Meyering  <jim@meyering.net>
66514
66515         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66516         in place of my name in the copyright comment.
66517         Remove definition and uses of __P.
66518
66519         From coreutils.
66520         * lib/stat.c: Don't declare xmalloc explicitly.
66521         Instead, include "xalloc.h".
66522         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66523         xrealloc, and xcalloc return values.
66524         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66525         Improve comment.
66526         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66527
66528 2003-06-07  Bruno Haible  <bruno@clisp.org>
66529
66530         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66531         avoid AC_CONFIG_LINKS.
66532         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66533         fnmatch.h, to avoid AC_CONFIG_LINKS.
66534         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66535
66536 2003-06-07  Bruno Haible  <bruno@clisp.org>
66537
66538         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66539         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66540         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66541         directory.
66542         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66543         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66544         directory.
66545
66546 2003-06-06  Jim Meyering  <jim@meyering.net>
66547
66548         Merge from coreutils.
66549         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66550         Consolidate declarations and initializations of *_base* locals.
66551
66552         Merge from coreutils.
66553         This avoids a core dump on systems without GNU putenv,
66554         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66555         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66556         (unsetenv): New static function, from GNU libc.
66557         (rpl_putenv): Use it.
66558
66559         * lib/modechange.c: Remove trailing blanks.
66560
66561         Merge from coreutils.
66562         * lib/fsusage.c: Remove declaration of statfs.
66563         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66564
66565         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66566
66567 2003-06-06  Jim Meyering  <jim@meyering.net>
66568
66569         * lib/stdbool_.h: Renamed from stdbool.h.in.
66570
66571 2003-06-06  Jim Meyering  <jim@meyering.net>
66572             Bruno Haible  <bruno@clisp.org>
66573
66574         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66575         Adjust Makefile.am snippet not to redirect directly to target.
66576         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66577
66578 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66579
66580         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66581         mismatch, look in future quarters as well as past.  This fixes a
66582         bug when processing fall-backwards gaps immediately after a long
66583         period of daylight-saving time.
66584
66585         * lib/mktime.c: Assume freestanding C89 or better.
66586         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66587         (__P): Remove; not used.
66588         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66589         (mktime, not_equal_tm, print_tm, check_result,
66590         main): Use prototypes.  Use const * where appropriate.
66591         (main): Fix typo in testing code that uncovered by above changes.
66592         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66593
66594 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66595
66596         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66597         locale.h, localeconv.  This merges changes from coreutils.
66598
66599         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66600         It can be removed after the next Autoconf is released.
66601         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66602         needed.
66603
66604 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66605
66606         * lib/mktime.c: Fix Debian bug 177940
66607         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66608         (localtime_offset): Now long int, not time_t, because we want it
66609         to be guaranteed to be signed.  All uses changed.
66610         (__mktime_internal): If overflow would occur when adding offset,
66611         don't add it.
66612
66613         Merge 'human' changes from coreutils.  Rewrite to support
66614         locale-specific notations like thousands separators.
66615         * lib/human.c: Simplify authorship notice.
66616         Include human.h immediately after config.h.
66617         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66618         <limits.h>: Do not include, since human.h does.
66619         (SIZE_MAX, UINTMAX_MAX): New macros.
66620         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66621         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66622         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66623         (power_letter): Renamed from suffixes.
66624         (generate_suffix_backwards): Remove.
66625         (adjust_value): Now takes int style (because of human.h changes)
66626         and long double value (for greater precision on some platforms).
66627         (group_number): New function.
66628         (human_readable): Use it.  Use integer options, not enum.
66629         Put the options before the sizes in the arg list.
66630         Support all the new options.
66631         The old human_readable function has been removed;
66632         use inttostr.h instead.
66633         (human_readable, default_block_size, humblock):
66634         Use uintmax_t, not int, for block sizes.
66635         (human_readable_inexact, block_size_types): Remove.
66636         (block_size_opts): New constant.
66637         (human_options): Renamed from human_block_size, with new signature
66638         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66639         * lib/human.h: Add copyright and authorship notice.
66640         Include <limits.h> and <stdbool.h> unconditionally.
66641         (PARAMS): Remove.  All uses removed.
66642         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66643         (enum human_inexact_style): Remove tag; now a nameless enum.
66644         (human_floor, human_ceiling, human_round_to_even): Now have
66645         values 2, 0, 1 rather than -1, 1, 0.
66646         (human_group_digits, human_suppress_point_zero, human_autoscale,
66647         human_base_1024, human_SI, human_B): New constants.
66648         (human_readable_inexact, human_block_size): Remove.
66649         (human_readable): Size args are now uintmax_t, not int.
66650         (human_options): New decl.
66651
66652         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66653         unnecessary now that we assume C89 or better.  This change
66654         imported from coreutils.
66655
66656         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66657         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66658         in the 2003-05-30 sync from glibc.
66659
66660         .h files should stand alone, but we shouldn't include <sys/types.h>
66661         if we can get away with just <stddef.h>.
66662
66663         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66664         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66665         rather than <sys/types.h>, as we merely need size_t.
66666         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66667         to get size_t.
66668         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66669         Include <stdio.h>, to get FILE.
66670         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66671         memcasecmp.h has included <stddef.h> and all we need is size_t.
66672         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66673         our interface, instead of including <sys/types.h>
66674
66675 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66676
66677         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66678         now, as glibc mktime is buggy on non-glibc systems.
66679
66680 2003-06-03  Karl Berry  <karl@gnu.org>
66681
66682         * config/config.sub: update from prep.
66683
66684 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66685
66686         [from coreutils]
66687         Fix some minor time-related bugs with POSIX time arguments.
66688         Some valid time stamps were being rejected (notably -1, and
66689         time stamps before 1900 on 64-bit hosts).  And some invalid
66690         time stamps were being accepted, e.g. September 31.
66691
66692         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66693         that we can return (time_t) -1 successfully.
66694         * lib/posixtm.c: Likewise.
66695         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66696         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66697         (t): Remove static var.
66698         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66699         of static var.  All uses changed.
66700         (year): Do not reject years before 1900; they can occur with
66701         64-bit time_t.
66702         (posix_time_parse): Do not check for out-of-range components;
66703         that is now the caller's responsibility, since our checks were
66704         only approximations.
66705         (posixtime): Use mktime to check for out-of-range components,
66706         since it knows them exactly.
66707         If mktime returns (time_t) -1, check whether an error actually occurred
66708         by invoking localtime on -1.
66709         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66710         posixtime failures better.
66711         Improve the test data (in comments only).
66712
66713 2003-06-02  Karl Berry  <karl@gnu.org>
66714
66715         * config/mkinstalldirs (version): new variable.
66716         (--version): new option.
66717         (usage): improve message.
66718
66719 2003-05-30  Karl Berry  <karl@gnu.org>
66720
66721         * lib/mktime.c: update from libc.
66722
66723 2003-05-30  Bruno Haible  <bruno@clisp.org>
66724
66725         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66726         * config/config.rpath: Upgrade to gettext-0.12.1.
66727
66728 2003-05-30  Bruno Haible  <bruno@clisp.org>
66729
66730         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66731         * m4/nls.m4: New file, from gettext-0.12.1.
66732         * m4/po.m4: New file, from gettext-0.12.1.
66733         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66734
66735 2003-05-30  Bruno Haible  <bruno@clisp.org>
66736
66737         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66738         * lib/localcharset.h: Likewise.
66739         * lib/localcharset.c: Likewise.
66740
66741 2003-05-29  Karl Berry  <karl@gnu.org>
66742
66743         * config/config.rpath: update from gettext.
66744
66745 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66746
66747         Assume the headers required for C89 freestanding compilers.
66748         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66749         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66750         * m4/human.m4 (gl_HUMAN): Likewise.
66751         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66752         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66753         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66754         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66755         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66756         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66757
66758 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66759
66760         Assume the headers required for C89 freestanding compilers.
66761         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66762         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66763         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66764         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66765         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66766         define, since <limits.h> is guaranteed to do that.
66767         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66768         * lib/exclude.c: Include <stdbool.h> unconditionally.
66769         * lib/tempname.c: Include <stddef.h> unconditionally.
66770         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66771         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66772         <stddef.h> does that.
66773         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66774         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66775         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66776         needed.
66777         * lib/xstrtol.c: Likewise.
66778         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66779         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66780
66781         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66782         warnings on some platforms.
66783
66784         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66785         arbitrarily.
66786
66787 2003-05-26  Jim Meyering  <jim@meyering.net>
66788
66789         Merge in a change from coreutils:
66790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66791         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66792         that condition, rather than `-1' which is slightly misleading.
66793         Change the name of the cache variable to have the gl_ prefix.
66794         Prompted by a patch from Richard Dawe for DJGPP.
66795
66796 2003-05-24  Karl Berry  <karl@gnu.org>
66797
66798         * config/config.guess: update from prep.
66799
66800 2003-05-22  Karl Berry  <karl@gnu.org>
66801
66802         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66803
66804 2003-05-20  Karl Berry  <karl@gnu.org>
66805
66806         * config/config.guess: update from prep.
66807
66808 2003-05-18  Karl Berry  <karl@gnu.org>
66809
66810         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66811         might actually be set by the user.
66812
66813         * config/depcomp, install-sh, mdate-sh: update from automake.
66814
66815 2003-05-17  Bruno Haible  <bruno@clisp.org>
66816
66817         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66818         invalid expansion for AC_EGREP_CPP.
66819         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66820         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66821         Suggested by Akim Demaille <akim@epita.fr> in
66822         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66823
66824 2003-05-12  Jim Meyering  <jim@meyering.net>
66825
66826         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66827         the space-padded-by-default conversion specifiers, %e, %k, %l.
66828
66829 2003-05-12  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66832         the string is longer than 4 KB.
66833
66834 2003-05-11  Karl Berry  <karl@gnu.org>
66835
66836         * config/config.{guess,sub}: update from prep.
66837
66838 2003-05-09  Bruno Haible  <bruno@clisp.org>
66839
66840         * modules/error: Add m4/strerror_r.m4 to file list.
66841
66842 2003-05-03  Bruno Haible  <bruno@clisp.org>
66843
66844         Upgrade to Unicode-4.0.
66845         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66846         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66847         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66848         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66849         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66850         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66851         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66852         Change width of U+E0100..U+E01EF from 1 to 0.
66853
66854 2003-04-25  Jim Meyering  <jim@meyering.net>
66855
66856         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66857         of type size_t, not int.
66858
66859 2003-04-25  Bruno Haible  <bruno@clisp.org>
66860
66861         * lib/copy-file.c: Include <stddef.h>, for size_t.
66862
66863 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66864
66865         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66866         code which expansion is under static control.  Patch imported from
66867         Akim Demaille's patch to Bison; see
66868         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66869
66870 2003-04-14  Bruno Haible  <bruno@clisp.org>
66871
66872         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66873
66874 2003-04-11  Jim Meyering  <jim@meyering.net>
66875
66876         Merge changes from Coreutils.
66877
66878         2003-03-22  Jim Meyering  <jim@meyering.net>
66879
66880         * lib/strftime.c (widen): Cast alloca return value to proper type.
66881
66882         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66883
66884         From GNU libc.
66885         * lib/strftime.c (my_strftime): Handle very large width
66886         specifications for numeric values correctly.  Improve checks for
66887         overflow.
66888
66889         2003-01-19  Jim Meyering  <jim@meyering.net>
66890
66891         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66892         definitions.
66893         (nl_get_alt_digit) [! defined my_strftime]: Define.
66894         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66895         _nl_get_alt_digit and _nl_get_walt_digit.
66896
66897         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66898         libc. These changes have no effect outside of _LIBC.
66899
66900 2003-04-10  Bruno Haible  <bruno@clisp.org>
66901
66902         * modules/findprog: New file.
66903         * MODULES.html.sh (func_all_modules): Add it.
66904
66905 2003-04-10  Bruno Haible  <bruno@clisp.org>
66906
66907         * m4/findprog.m4: New file.
66908         * m4/eaccess.m4: New file.
66909
66910 2003-04-10  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/findprog.h: New file, from GNU gettext.
66913         * lib/findprog.c: New file, from GNU gettext.
66914
66915 2003-04-05  Jim Meyering  <jim@meyering.net>
66916
66917         Merge changes from Coreutils.
66918
66919         * lib/exclude.h (PARAMS): Remove definition and uses.
66920         * lib/exclude.c: Remove uses of `PARAMS'.
66921
66922         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66923         Add test-cases for DOS filenames. Declare program_name.
66924         (main): Set up program_name.  Patch by Rich Dawe.
66925
66926         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66927         error from mntctl.
66928         Use mntctl's return value to drive the entry-processing loop, since
66929         we can't rely on the value of the vmt_length member in the last
66930         entry.  On some systems doing so could result in exhausting
66931         virtual memory.  Based in part on a patch from Mike Jetzer.
66932
66933 2003-04-04  Bruno Haible  <bruno@clisp.org>
66934
66935         * modules/linebreak: New file.
66936         * MODULES.html.sh (func_all_modules): Add it.
66937
66938 2003-04-04  Bruno Haible  <bruno@clisp.org>
66939
66940         * m4/linebreak.m4: New file.
66941
66942 2003-04-04  Bruno Haible  <bruno@clisp.org>
66943
66944         * lib/linebreak.h: New file, from GNU gettext.
66945         * lib/linebreak.c: New file, from GNU gettext with slight
66946         modifications.
66947         * lib/lbrkprop.h: New file, from GNU gettext.
66948
66949 2003-04-03  Bruno Haible  <bruno@clisp.org>
66950
66951         * modules/utf8-ucs4: New file.
66952         * modules/utf16-ucs4: New file.
66953         * modules/ucs4-utf8: New file.
66954         * modules/ucs4-utf16: New file.
66955         * MODULES.html.sh (func_all_modules): Add them.
66956
66957 2003-04-03  Bruno Haible  <bruno@clisp.org>
66958
66959         * m4/utf-ucs4.m4: New file.
66960         * m4/ucs4-utf.m4: New file.
66961
66962 2003-04-03  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/utf8-ucs4.h: New file, from GNU gettext.
66965         * lib/utf16-ucs4.h: New file, from GNU gettext.
66966         * lib/ucs4-utf8.h: New file, from GNU gettext.
66967         * lib/ucs4-utf16.h: New file, from GNU gettext.
66968
66969 2003-04-02  Bruno Haible  <bruno@clisp.org>
66970
66971         * modules/binary-io: New file.
66972         * MODULES.html.sh (func_all_modules): Add it.
66973
66974 2003-04-02  Bruno Haible  <bruno@clisp.org>
66975
66976         * lib/binary-io.h: New file, from GNU gettext.
66977
66978 2003-04-01  Bruno Haible  <bruno@clisp.org>
66979
66980         * modules/pathname: New file.
66981         * MODULES.html.sh (func_all_modules): Add it.
66982
66983 2003-04-01  Bruno Haible  <bruno@clisp.org>
66984
66985         * lib/pathname.h: New file, from GNU gettext.
66986         * lib/concatpath.c: New file, from GNU gettext.
66987
66988 2003-03-30  Bruno Haible  <bruno@clisp.org>
66989
66990         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66991
66992 2003-03-30  Bruno Haible  <bruno@clisp.org>
66993
66994         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66995         function chown() doesn't exist.
66996
66997 2003-03-28  Bruno Haible  <bruno@clisp.org>
66998
66999         * modules/copy-file: New file.
67000         * MODULES.html.sh (func_all_modules): Add it.
67001
67002 2003-03-28  Bruno Haible  <bruno@clisp.org>
67003
67004         * m4/copy-file.m4: New file.
67005
67006 2003-03-28  Bruno Haible  <bruno@clisp.org>
67007
67008         * lib/copy-file.h: New file, from GNU gettext.
67009         * lib/copy-file.c: New file, from GNU gettext.
67010
67011 2003-03-18  Jim Meyering  <jim@meyering.net>
67012
67013         * lib/quote.c (quote_n): Fix typo in comment.
67014
67015 2003-03-18  Bruno Haible  <bruno@clisp.org>
67016
67017         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
67018         checking.
67019         * m4/onceonly_2_57.m4: Likewise.
67020
67021 2003-03-17  Bruno Haible  <bruno@clisp.org>
67022
67023         * m4/onceonly.m4: Require autoconf 2.54 or newer.
67024         (m4_quote): Remove macro.
67025         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
67026
67027 2003-03-14  Jim Meyering  <jim@meyering.net>
67028
67029         Merge changes from Coreutils.
67030         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
67031         to be const, in order to avoid warnings.
67032         (obstack_room): Likewise.
67033         (obstack_empty_p): Likewise.
67034
67035 2003-03-14  Bruno Haible  <bruno@clisp.org>
67036
67037         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
67038         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
67039
67040 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67041
67042         Merge changes from Bison.
67043         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
67044         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
67045         when compiling Bison 1.875's `bitset bset = obstack_alloc
67046         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
67047         * lib/hash.c: Include <stdbool.h> unconditionally.
67048
67049 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67050
67051         * m4/onceonly.m4 (m4_quote): New macro.
67052         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
67053         Quote AC_FOREACH variable-expansions properly.
67054
67055 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67056
67057         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
67058
67059 2003-03-09  Paul Eggert  <eggert@twinsun.com>
67060
67061         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
67062         Reported by Bruce Becker; see:
67063         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
67064
67065 2003-03-03  Paul Eggert  <eggert@twinsun.com>
67066             Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
67069         Reported by John Hughes, see
67070         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
67071
67072 2003-02-20  Bruno Haible  <bruno@clisp.org>
67073
67074         * MODULES.html.sh (func_all_modules): Add poll.
67075
67076 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67077
67078         * modules/poll: New file.
67079
67080 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67081
67082         * lib/poll_.h: New file.
67083         * lib/poll.c: New file.
67084
67085 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67086
67087         * m4/poll.m4: New file.
67088
67089 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67090
67091         * modules/mathl: New file.
67092
67093 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67094
67095         * lib/mathl.h: New file.
67096         * lib/acosl.c: New file.
67097         * lib/asinl.c: New file.
67098         * lib/atanl.c: New file.
67099         * lib/ceill.c: New file.
67100         * lib/cosl.c: New file.
67101         * lib/expl.c: New file.
67102         * lib/floorl.c: New file.
67103         * lib/frexpl.c: New file.
67104         * lib/ldexpl.c: New file.
67105         * lib/logl.c: New file.
67106         * lib/sincosl.c: New file.
67107         * lib/sinl.c: New file.
67108         * lib/sqrtl.c: New file.
67109         * lib/tanl.c: New file.
67110         * lib/trigl.c: New file.
67111         * lib/trigl.h: New file.
67112
67113 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67114
67115         * m4/mathl.m4: New file.
67116
67117 2003-02-18  Bruno Haible  <bruno@clisp.org>
67118
67119         * MODULES.html.sh (func_all_modules): Add mathl.
67120
67121 2003-02-17  Bruno Haible  <bruno@clisp.org>
67122
67123         * modules/mkdtemp: New module.
67124         * MODULES.html.sh (func_all_modules): Add it.
67125
67126 2003-02-17  Bruno Haible  <bruno@clisp.org>
67127
67128         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67129
67130 2003-02-17  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/mkdtemp.h: New file, from GNU gettext.
67133         * lib/mkdtemp.c: New file, from GNU gettext.
67134
67135 2003-02-02  Jim Meyering  <jim@meyering.net>
67136
67137         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67138         e.g. glibc-2.2.93.
67139
67140 2003-01-31  Bruno Haible  <bruno@clisp.org>
67141
67142         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67143         'rpl_rename'.
67144         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67145         'rpl_strnlen'.
67146         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67147         'rpl_strtod'.
67148         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67149         'rpl_utime'.
67150
67151 2003-01-31  Bruno Haible  <bruno@clisp.org>
67152
67153         * lib/rename.c: #undef rename before defining rpl_rename.
67154         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67155
67156 2003-01-30  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/vasnprintf, modules/vasprintf: New modules.
67159         * MODULES.html.sh (func_all_modules): Add them.
67160
67161 2003-01-30  Bruno Haible  <bruno@clisp.org>
67162
67163         * m4/signed.m4: New file, from GNU gettext.
67164         * m4/longdouble.m4: New file, from GNU gettext.
67165         * m4/wchar_t.m4: New file, from GNU gettext.
67166         * m4/wint_t.m4: New file, from GNU gettext.
67167         * m4/vasnprintf.m4: New file.
67168         * m4/vasprintf.m4: New file.
67169
67170 2003-01-30  Bruno Haible  <bruno@clisp.org>
67171
67172         * lib/printf-args.h: New file, from GNU gettext.
67173         * lib/printf-args.c: New file, from GNU gettext.
67174         * lib/printf-parse.h: New file, from GNU gettext.
67175         * lib/printf-parse.c: New file, from GNU gettext.
67176         * lib/vasnprintf.h: New file, from GNU gettext.
67177         * lib/vasnprintf.c: New file, from GNU gettext.
67178         * lib/asnprintf.c: New file, from GNU gettext.
67179         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67180         * lib/vasprintf.c: New file, from GNU gettext.
67181         * lib/asprintf.c: New file, from GNU gettext.
67182
67183 2003-01-29  Bruno Haible  <bruno@clisp.org>
67184
67185         * modules/stpncpy: New module.
67186         * MODULES.html.sh (func_all_modules): Add it.
67187
67188 2003-01-29  Bruno Haible  <bruno@clisp.org>
67189
67190         * m4/stpncpy.m4: New file.
67191
67192 2003-01-29  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67195         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67196
67197 2003-01-28  Bruno Haible  <bruno@clisp.org>
67198
67199         * modules/c-ctype: New module.
67200         * MODULES.html.sh (func_all_modules): Add it.
67201
67202 2003-01-28  Bruno Haible  <bruno@clisp.org>
67203
67204         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67205         Paul Eggert.
67206         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67207         Paul Eggert.
67208
67209 2003-01-27  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/xsetenv: New module.
67212         * MODULES.html.sh (func_all_modules): Add it.
67213
67214 2003-01-27  Bruno Haible  <bruno@clisp.org>
67215
67216         * lib/xsetenv.h: New file, from GNU gettext.
67217         * lib/xsetenv.c: New file, from GNU gettext.
67218
67219 2003-01-23  Jim Meyering  <jim@meyering.net>
67220
67221         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67222         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67223
67224 2003-01-23  Bruno Haible  <bruno@clisp.org>
67225
67226         * modules/minmax: New module.
67227         * MODULES.html.sh (func_all_modules): Add it.
67228
67229 2003-01-23  Bruno Haible  <bruno@clisp.org>
67230
67231         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67232         Eggert.
67233
67234 2003-01-22  Bruno Haible  <bruno@clisp.org>
67235
67236         * modules/exit: New module.
67237         * MODULES.html.sh (func_all_modules): Add it.
67238
67239 2003-01-22  Bruno Haible  <bruno@clisp.org>
67240
67241         * lib/exit.h: New file, from GNU gettext.
67242
67243 2003-01-19  Bruno Haible  <bruno@clisp.org>
67244
67245         * gnulib-tool: Recognize option --extract-maintainer.
67246         (func_get_maintainer): New function.
67247         * modules/*: Add Maintainer entry.
67248
67249 2003-01-16  Jim Meyering  <jim@meyering.net>
67250
67251         * m4/regex.m4: The `regex' struct is both input and output.
67252         Initialize it before each use.  Patch by Tim Waugh.
67253
67254 2003-01-16  Bruno Haible  <bruno@clisp.org>
67255
67256         * MODULES.html.sh: Add a table of contents. Add the module name as
67257         leftmost column. Add hyperlinks.
67258
67259 2003-01-15  Bruno Haible  <bruno@clisp.org>
67260
67261         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67262
67263 2003-01-15  Bruno Haible  <bruno@clisp.org>
67264
67265         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67266         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67267         suffix.
67268
67269 2003-01-15  Bruno Haible  <bruno@clisp.org>
67270
67271         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67272
67273 2003-01-15  Bruno Haible  <bruno@clisp.org>
67274
67275         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67276         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67277
67278 2003-01-14  Jim Meyering  <jim@meyering.net>
67279
67280         * lib/same.c (same_name): Tweak a comment.
67281
67282 2003-01-14  Bruno Haible  <bruno@clisp.org>
67283
67284         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67285         when a string comparison is sufficient.
67286
67287 2003-01-14  Bruno Haible  <bruno@clisp.org>
67288
67289         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67290         'unsigned int'.
67291
67292 2003-01-14  Bruno Haible  <bruno@clisp.org>
67293
67294         * lib/hash-pjw.c: Add comment about low quality of this function.
67295
67296 2003-01-13  Bruno Haible  <bruno@clisp.org>
67297
67298         * modules/stpcpy: Distribute lib/stpcpy.h.
67299         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67300
67301 2003-01-13  Bruno Haible  <bruno@clisp.org>
67302
67303         * modules/*: Add a description.
67304         * modules/strpbrk: Fix Makefile.am snippet.
67305         * modules/strtoimax: Fix dependencies.
67306         * modules/strtoumax: Likewise.
67307
67308 2003-01-13  Bruno Haible  <bruno@clisp.org>
67309
67310         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67311         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67312         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67313
67314 2003-01-13  Bruno Haible  <bruno@clisp.org>
67315
67316         * gnulib-tool (func_create_testdir): Store config/* files in the main
67317         directory.
67318         * config.rpath: Move to ...
67319         * config/config.rpath: ... here.
67320         * modules/gettext: Contains config/config.rpath, not config.rpath.
67321         * modules/iconv: Likewise.
67322
67323 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67324
67325         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67326         to avoid collisions with libcurses and libreadline.
67327
67328         * m4/getstr.m4: Remove.
67329         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67330
67331 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67332
67333         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67334         to avoid collisions with libcurses and libreadline.
67335
67336         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67337         * lib/getstr.h, getstr.c: Remove.
67338         * lib/getline.c: Include "getline.h", to check interface.
67339         Move body of old getstr.c here: this defines MIN_CHUNK and
67340         declares getdelim2, which is renamed from getstr.
67341         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67342
67343         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67344         All uses changed.
67345         * lib/linebuffer.h: Likewise.
67346         (readline): Remove backward-compatibility macro.
67347
67348 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67349
67350         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67351         to avoid collisions with libcurses and libreadline.
67352         * getstr: Remove.
67353         * MODULES.html.sh: Remove getstr.
67354         * modules/getline: Depend on unlocked-io, not getstr.
67355
67356 2003-01-12  Jim Meyering  <jim@meyering.net>
67357
67358         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67359
67360 2003-01-10  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/alloca: Change Makefile.am requirements. Simplify Include
67363         requirements. Add lib/alloca_.h to file list.
67364
67365 2003-01-10  Bruno Haible  <bruno@clisp.org>
67366
67367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67368
67369 2003-01-10  Bruno Haible  <bruno@clisp.org>
67370
67371         * lib/alloca_.h: New file.
67372         * lib/getdate.y: Unconditionally include alloca.h.
67373         * lib/makepath.c: Likewise.
67374         * lib/setenv.c: Likewise.
67375         * lib/userspec.c: Likewise.
67376
67377 2003-01-09  Karl Berry  <karl@gnu.org>
67378
67379         * MODULES.html.sh: include `dirname $0` in PATH, to find
67380         gnulib-tool.
67381
67382 2003-01-09  Bruno Haible  <bruno@clisp.org>
67383
67384         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67385         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67386
67387 2003-01-09  Bruno Haible  <bruno@clisp.org>
67388
67389         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67390
67391 2003-01-09  Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/stdbool.h.in: New file.
67394
67395 2003-01-09  Bruno Haible  <bruno@clisp.org>
67396
67397         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67398         * MODULES.html.sh: Likewise.
67399
67400 2003-01-08  Jim Meyering  <jim@meyering.net>
67401
67402         * lib/full-write.c: Undefine and define-away `const' after inclusion
67403         of errno.h, not before.  Suggestion from Bruno Haible.
67404
67405 2003-01-08  Bruno Haible  <bruno@clisp.org>
67406
67407         * modules/full-read: Depend on full-write.
67408
67409 2003-01-08  Bruno Haible  <bruno@clisp.org>
67410
67411         * lib/safe-read.c: Include specification header first, to ensure its
67412         selfcontainedness.
67413         * lib/full-write.c: Likewise.
67414
67415 2003-01-07  Jim Meyering  <jim@meyering.net>
67416
67417         * lib/full-write.c: Rework so that it may serve to define full_read,
67418         too.
67419         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67420
67421 2003-01-07  Bruno Haible  <bruno@clisp.org>
67422
67423         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67424         <inttypes.h>.
67425         * lib/xstrtol.h: Likewise.
67426         * lib/xstrtoimax.c: Likewise.
67427         * lib/xstrtoumax.c: Likewise.
67428         * lib/human.h: Likewise.
67429
67430         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67431         on systems that have <inttypes.h> but not <stdint.h>.
67432
67433 2003-01-07  Bruno Haible  <bruno@clisp.org>
67434
67435         * MODULES.html.sh: Add copyright notice.
67436         (missed_files): Omit CVS directory entries.
67437         (func_module): Make it work with sed-3.02.
67438         * MODULES.txt: Remove file.
67439
67440 2003-01-06  Jim Meyering  <jim@meyering.net>
67441
67442         * lib/version-etc.c: Update year in translatable copyright string.
67443
67444 2003-01-03  Karl Berry  <karl@gnu.org>
67445
67446         * config/config.{guess,sub}: update from prep.
67447
67448 2003-01-02  Karl Berry  <karl@gnu.org>
67449
67450         * doc/COPYING.DOC: belatedly updated to 1.2.
67451
67452 2003-01-01  Karl Berry  <karl@gnu.org>
67453
67454         * gnulib-tool (func_verify_module): report module name $module in
67455         error message, not $1.
67456         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67457         be created, only if it doesn't exist.
67458         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67459
67460 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67461
67462         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67463
67464 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67465
67466         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67467         memcmp if strcoll doesn't work.
67468
67469 2002-12-31  Bruno Haible  <bruno@clisp.org>
67470
67471         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67472         nonempty.
67473
67474 2002-12-31  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/memcoll.c (STRCOLL): New macro.
67477         (memcoll): Use it.
67478
67479 2002-12-31  Bruno Haible  <bruno@clisp.org>
67480
67481         * lib/localcharset.h: New file.
67482         * lib/localcharset.c: Include it.
67483         * lib/unicodeio.c: Likewise.
67484
67485 2002-12-31  Bruno Haible  <bruno@clisp.org>
67486
67487         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67488         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67489
67490 2002-12-31  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/getline.h: Include <stddef.h>, for size_t.
67493
67494         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67495         * lib/unicodeio.c: Don't include <stddef.h>.
67496
67497 2002-12-31  Bruno Haible  <bruno@clisp.org>
67498
67499         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67500         HAVE_TM_ZONE.
67501
67502 2002-12-24  Karl Berry  <karl@gnu.org>
67503
67504         * config/config.guess: update from prep.
67505
67506 2002-12-24  Bruno Haible  <bruno@clisp.org>
67507
67508         General infrasructure.
67509         * m4/README: Rewritten.
67510         * m4/onceonly.m4: New file.
67511         * m4/onceonly_2_57.m4: New file.
67512
67513         Module atexit.
67514         * m4/atexit.m4: New file.
67515
67516         Module strtod.
67517         * m4/strtod.m4: New file.
67518
67519         Module strtol.
67520         * m4/strtol.m4: New file.
67521
67522         Module strtoul.
67523         * m4/strtoul.m4: New file.
67524
67525         Module memchr.
67526         * m4/memchr.m4: New file.
67527
67528         Module memcmp.
67529         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67530         (jm_FUNC_MEMCMP): Invoke it.
67531
67532         Module memcpy.
67533         * m4/memcpy.m4: New file.
67534
67535         Module memmove.
67536         * m4/memmove.m4: New file.
67537
67538         Module memset.
67539         * m4/memset.m4: New file.
67540
67541         Module strcspn.
67542         * m4/strcspn.m4: New file.
67543
67544         Module strpbrk.
67545         * m4/strpbrk.m4: New file.
67546
67547         Module strstr.
67548         * m4/strstr.m4: New file.
67549
67550         Module strerror.
67551         * m4/strerror.m4: New file.
67552
67553         Module mktime.
67554         * m4/mktime.m4: Renamed from jm-mktime.m4.
67555         (gl_PREREQ_MKTIME): New macro.
67556         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67557
67558         Module malloc.
67559         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67560         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67561         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67562
67563         Module realloc.
67564         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67565         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67566         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67567
67568         Module strftime.
67569         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67571         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67572         gl_TM_GMTOFF.
67573         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67574
67575         Module xalloc.
67576         * m4/xalloc.m4: New file.
67577
67578         Module alloca.
67579         * m4/alloca.m4: New file.
67580
67581         Module putenv.
67582         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67583         (jm_FUNC_PUTENV): Invoke it.
67584
67585         Module setenv.
67586         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67587         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67588         when invoked twice.
67589         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67590         gt_FUNC_SETENV.
67591
67592         Module memrchr.
67593         * m4/memrchr.m4: New file.
67594
67595         Module stpcpy.
67596         * m4/stpcpy.m4: New file.
67597
67598         Module strcase.
67599         * m4/strcase.m4: New file.
67600
67601         Module strdup.
67602         * m4/strdup.m4: New file.
67603
67604         Module strnlen.
67605         * m4/strnlen.m4: New file.
67606
67607         Module strndup.
67608         * m4/strndup.m4: New file.
67609
67610         Module xstrtod.
67611         * m4/xstrtod.m4: New file.
67612
67613         Module xstrtol.
67614         * m4/xstrtol.m4: New file.
67615
67616         Module getdate.
67617         * m4/getdate.m4: New file.
67618
67619         Module unlocked-io.
67620         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67621         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67622         * m4/jm-glibc-io.m4n: Remove file.
67623
67624         Module long-options.
67625         * m4/long-options.m4: New file.
67626
67627         Module md5.
67628         * m4/md5.m4: New file.
67629
67630         Module sha.
67631         * m4/sha.m4: New file.
67632
67633         Module getstr.
67634         * m4/getstr.m4: New file.
67635
67636         Module getline.
67637         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67638         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67639         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67640         simply getline. Infoke gl_PREREQ_GETLINE.
67641
67642         Module obstack.
67643         * m4/obstack.m4: New file.
67644
67645         Module hash.
67646         * m4/hash.m4: New file.
67647
67648         Module readtokens.
67649         * m4/readtokens.m4: New file.
67650
67651         Module strverscmp.
67652         * m4/strverscmp.m4: New file.
67653
67654         Module stdbool.
67655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67656         OSF/1.
67657
67658         Module strtoll.
67659         * m4/strtoll.m4: New file.
67660
67661         Module strtoull.
67662         * m4/strtoull.m4: New file.
67663
67664         Module strtoimax.
67665         * m4/strtoimax.m4: New file.
67666
67667         Module strtoumax.
67668         * m4/strtoumax.m4: New file.
67669
67670         Module xstrtoimax.
67671         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67672         jm_AC_PREREQ_XSTRTOIMAX.
67673         Moved the strtol prerequisites to strtol.m4.
67674         Moved the strtoll prerequisites to strtoll.m4.
67675         Moved the strtoimax prerequisites to strtoimax.m4.
67676
67677         Module xstrtoumax.
67678         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67679         jm_AC_PREREQ_XSTRTOUMAX.
67680         Moved the strtoul prerequisites to strtoul.m4.
67681         Moved the strtoull prerequisites to strtoull.m4.
67682         Moved the strtoumax prerequisites to strtoumax.m4.
67683
67684         Module chown.
67685         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67686         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67687
67688         Module dup2.
67689         * m4/dup2.m4: New file.
67690
67691         Module ftruncate.
67692         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67693         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67694
67695         Module getgroups.
67696         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67697         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67698
67699         Module gettimeofday.
67700         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67701         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67702         gl_PREREQ_GETTIMEOFDAY.
67703
67704         Module mkdir.
67705         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67706         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67707
67708         Module mkstemp.
67709         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67710         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67711         jm_AC_TYPE_UINTMAX_T.
67712         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67713
67714         Module stat.
67715         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67716         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67717
67718         Module lstat.
67719         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67720         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67721
67722         Module timespec.
67723         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67724         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67725         * m4/st_mtim.m4: Indentation.
67726
67727         Module nanosleep.
67728         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67729         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67730         gl_PREREQ_NANOSLEEP.
67731
67732         Module regex.
67733         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67734         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67735         (gl_REGEX): New macro.
67736
67737         Module rename.
67738         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67739         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67740
67741         Module rmdir.
67742         * m4/rmdir.m4: New file.
67743
67744         Module utime.
67745         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67746         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67747         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67748
67749         Module dirname.
67750         * m4/dirname.m4: New file.
67751
67752         Module getopt.
67753         * m4/getopt.m4: New file.
67754
67755         Module unistd-safer.
67756         * m4/unistd-safer.m4: New file.
67757
67758         Module fnmatch.
67759         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67760         declaration.
67761         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67762         (gl_FUNC_FNMATCH_POSIX): New macro.
67763         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67764         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67765         simply fnmatch.
67766
67767         Module exclude.
67768         * m4/exclude.m4: New file.
67769
67770         Module human.
67771         * m4/human.m4: New file.
67772
67773         Module acl.
67774         * m4/acl.m4: Nop.
67775
67776         Module backupfile.
67777         * m4/backupfile.m4: New file.
67778         * m4/d-ino.m4: Indentation.
67779
67780         Module fsusage.
67781         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67782         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67783         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67784
67785         Module dirfd.
67786         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67787         requirements.
67788
67789         Module euidaccess.
67790         * m4/euidaccess.m4: New file.
67791
67792         Module file-type.
67793         * m4/file-type.m4: New file.
67794
67795         Module fileblocks.
67796         * m4/fileblocks.m4: New file.
67797
67798         Module filemode.
67799         * m4/filemode.m4: New file.
67800
67801         Module isdir.
67802         * m4/isdir.m4: New file.
67803
67804         Module lchown.
67805         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67806         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67807
67808         Module makepath.
67809         * m4/makepath.m4: New file.
67810
67811         Module modechange.
67812         * m4/modechange.m4: New file.
67813
67814         Module mountlist.
67815         * m4/mountlist.m4: New file.
67816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67817         Indentation.
67818
67819         Module path-concat.
67820         * m4/path-concat.m4: New file.
67821
67822         Module pathmax.
67823         * m4/pathmax.m4: New file.
67824
67825         Module same.
67826         * m4/same.m4: New file.
67827
67828         Module save-cwd.
67829         * m4/save-cwd.m4: New file.
67830
67831         Module savedir.
67832         * m4/savedir.m4: New file.
67833
67834         Module xgetcwd.
67835         * m4/xgetcwd.m4: New file.
67836         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67837
67838         Module xreadlink.
67839         * m4/xreadlink.m4: New file.
67840
67841         Module safe-read.
67842         * m4/safe-read.m4: New file.
67843
67844         Module safe-write.
67845         * m4/safe-write.m4: New file.
67846
67847         Module closeout.
67848         * m4/closeout.m4: New file.
67849
67850         Module stdio-safer.
67851         * m4/stdio-safer.m4: New file.
67852
67853         Module getpass.
67854         * m4/getpass.m4: New file.
67855
67856         Module getugroups.
67857         * m4/getugroups.m4: New file.
67858
67859         Module group-member.
67860         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67861         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67862
67863         Module idcache.
67864         * m4/idcache.m4: New file.
67865
67866         Module userspec.
67867         * m4/userspec.m4: New file.
67868
67869         Module gettime.
67870         * m4/clock_time.m4: New file.
67871         * m4/gettime.m4: New file.
67872
67873         Module settime.
67874         * m4/settime.m4: New file.
67875
67876         Module posixtm.
67877         * m4/posixtm.m4: New file.
67878
67879         Module gethostname.
67880         * m4/gethostname.m4: New file.
67881
67882         Module canon-host.
67883         * m4/canon-host.m4: New file.
67884
67885         Module gettext.
67886         * m4/codeset.m4: New file, from gettext-0.11.5.
67887         * m4/gettext.m4: New file, from gettext-0.11.5.
67888         * m4/glibc21.m4: New file, from gettext-0.11.5.
67889         * m4/iconv.m4: New file, from gettext-0.11.5.
67890         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67891         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67892         * m4/inttypes.m4: New file, from gettext-0.11.5.
67893         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67894         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67895         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67896         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67897         * m4/lib-link.m4: New file, from gettext-0.11.5.
67898         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67899         * m4/progtest.m4: New file, from gettext-0.11.5.
67900         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67901         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67902         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67903
67904         Module localcharset.
67905         * m4/localcharset.m4: New file.
67906
67907         Module hard-locale.
67908         * m4/hard-locale.m4: New file.
67909
67910         Module mbswidth.
67911         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67912         onceonly macros.
67913         * m4/mbrtowc.m4: Add comment.
67914
67915         Module memcasecmp.
67916         * m4/memcasecmp.m4: New file.
67917
67918         Module memcoll.
67919         * m4/memcoll.m4: New file.
67920
67921         Module unicodeio.
67922         * m4/unicodeio.m4: New file.
67923
67924         Module rpmatch.
67925         * m4/rpmatch.m4: New file.
67926
67927         Module yesno.
67928         * m4/yesno.m4: New file.
67929
67930         Module exitfail.
67931         * m4/exitfail.m4: New file.
67932
67933         Module c-stack.
67934         * m4/c-stack.m4 (gl_C_STACK): New macro.
67935         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67936
67937         Module error.
67938         * m4/error.m4 (gl_ERROR): New macro.
67939         (jm_PREREQ_ERROR): Use onceonly macros.
67940
67941         Module fatal.
67942         * m4/fatal.m4: New file.
67943
67944         Module getloadavg.
67945         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67946         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67947
67948         Module getpagesize.
67949         * m4/getpagesize.m4: New file.
67950
67951         Module getusershell.
67952         * m4/getusershell.m4: New file.
67953
67954         Module physmem.
67955         * m4/physmem.m4: New file.
67956
67957         Module posixver.
67958         * m4/posixver.m4: New file.
67959
67960         Module quotearg.
67961         * m4/quotearg.m4: New file.
67962
67963         Module quote.
67964         * m4/quote.m4: New file.
67965
67966         Module readutmp.
67967         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67968
67969         Module sig2str.
67970         * m4/sig2str.m4: New file.
67971
67972         Other.
67973         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67974         ulonglong.m4.
67975         * m4/intmax_t.m4: New file.
67976         * m4/d-type.m4: Indentation.
67977         * m4/jm-macros.m4: Update.
67978         * m4/prereq.m4 (jm_PREREQ): Update.
67979         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67980         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67981         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67982         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67983         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67984         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67985         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67986         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67987         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67988         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67989         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67990         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67991         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67992         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67993         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67994         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67995         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67996         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67997         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67998
67999 2002-12-24  Bruno Haible  <bruno@clisp.org>
68000
68001         * MODULES.txt: Update according to m4/ changes.
68002
68003         Module gettext.
68004         * config.rpath: New file, from gettext-0.11.5.
68005
68006         * modules/*: New module descriptions.
68007         * gnulib-tool: New file.
68008         * MODULES.html.sh: New file.
68009
68010 2002-12-21  Karl Berry  <karl@gnu.org>
68011
68012         * doc/fdl.texi: update to version 1.2.
68013
68014 2002-12-19  Karl Berry  <karl@gnu.org>
68015
68016         * config/config.guess: update from prep.
68017
68018 2002-12-18  Bruno Haible  <bruno@clisp.org>
68019
68020         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
68021         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
68022
68023 2002-12-17  Bruno Haible  <bruno@clisp.org>
68024
68025         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
68026         stdlib.h, string.h.
68027
68028 2002-12-17  Bruno Haible  <bruno@clisp.org>
68029
68030         * lib/canon-host.c (strdup): Remove unused declaration.
68031
68032         * lib/fsusage.c: Include full_read.h.
68033         (get_fs_usage): Use full_read instead of safe_read.
68034
68035         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
68036
68037 2002-12-12  Karl Berry  <karl@gnu.org>
68038
68039         * config/config.guess: update from prep.
68040
68041 2002-12-11  Bruno Haible  <bruno@clisp.org>
68042
68043         * m4/setenv.m4: New file, from gettext-0.11.5.
68044
68045 2002-12-11  Bruno Haible  <bruno@clisp.org>
68046
68047         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
68048         not unsetenv().
68049         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
68050         modifications:
68051
68052         2002-12-11  Bruno Haible  <bruno@clisp.org>
68053
68054                 * setenv.c (alloca): Fall back to malloc.
68055                 (freea): New macro.
68056                 (setenv): Use freea() to free memory allocated with alloca().
68057
68058         2002-11-13  Bruno Haible  <bruno@clisp.org>
68059
68060                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
68061                 function declarations.
68062                 * unsetenv.c (unsetenv): Likewise.
68063
68064         2002-03-04  Bruno Haible  <bruno@clisp.org>
68065
68066                 Portability to AIX 4.3.3.
68067                 * unsetenv.c: New file, extracted from setenv.c.
68068                 * setenv.c: Move the unsetenv() function to unsetenv.c.
68069
68070         2001-12-20  Bruno Haible  <bruno@clisp.org>
68071
68072                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
68073                 use malloc instead. For SunOS 4.
68074
68075         2001-12-11  Bruno Haible  <bruno@clisp.org>
68076
68077                 * setenv.c: Declare alloca.
68078                 (compar_fn_t): New typedef.
68079                 (KNOWN_VALUE, STORE_VALUE): Use it.
68080
68081         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
68082         setenv.h.
68083
68084 2002-12-10  Paul Eggert  <eggert@twinsun.com>
68085
68086         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
68087         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
68088         Choose values that are less likely to collide with system fnmatch
68089         options.
68090         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
68091         defined (e.g., a pure POSIX system).
68092         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
68093         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
68094
68095 2002-12-06  Paul Eggert  <eggert@twinsun.com>
68096
68097         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
68098         a pain in practice to deal with generated m4 files.  This change
68099         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
68100
68101         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
68102         and jm-glibc-io.m4, as they are no longer a special case.
68103         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
68104         kludge and the auto-generation stuff.  Check only whether the
68105         functions are declared, not whether they exist, since older hosts
68106         that don't declare the functions can't use the optimization anyway.
68107
68108 2002-12-06  Jim Meyering  <jim@meyering.net>
68109
68110         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
68111
68112         Merge in changes from libc's misc/error.c, in preparation
68113         for the merge of gnulib's changes back into libc.
68114
68115         * lib/error.c (_): Define only if not already defined.
68116         Move definition to follow all #include directives.
68117         Include unlocked-io.h only if !_LIBC.
68118         [_LIBC]: Include <libio/libioP.h>.
68119         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68120         (fflush): Tweak definition to use INTUSE.
68121         (putc): Define.
68122
68123 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68124
68125         * lib/alloca.c [defined emacs]: Include "lisp.h".
68126         (xalloc_die) [defined emacs]: New macro.
68127         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68128         [! defined emacs]: Include <xalloc.h>.
68129         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68130         (pointer): Typedef to POINTER_TYPE *.
68131         (malloc): Remove decl; we now always use xmalloc.
68132         (alloca): Use old-style definition, since Emacs needs this.
68133         Check for arithmetic overflow when computing combined size.
68134
68135 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68136
68137         Do not generate unlocked-io.h automatically, since it's easier to
68138         maintain it by hand.
68139
68140         * lib/unlocked-io.h: New file, from GNU diffutils,
68141         but with proper copyright notice and attribution.
68142         * lib/gen-uio: Remove.
68143         * lib/Makefile.am: Add copyright notice.
68144         (libfetish_a_SOURCES): Add unlocked-io.h.
68145         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68146         (DISTCLEANFILES, io_functions): Remove macros.
68147         (EXTRA_DIST): Remove gen_uio.
68148         (unlocked-io.h): Remove rule.
68149
68150 2002-12-04  Jim Meyering  <jim@meyering.net>
68151
68152         Reflect the fact that stat.c and lstat.c are no longer generated.
68153         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68154         (DISTCLEANFILES): Likewise.
68155         (EXTRA_DIST): Likewise.
68156         (all_local): Don't depend on stat.c or lstat.c.
68157         (stat.c, lstat.c): Remove rules.
68158         (EXTRA_DIST): Remove xstat.in.
68159
68160         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68161         * lib/stat.c: New file.  Contents mostly from xstat.in.
68162         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68163         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68164
68165         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68166         too.
68167         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68168
68169 2002-12-03  Jim Meyering  <jim@meyering.net>
68170
68171         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68172         but not semantics, to minimize the differences between these two files.
68173         (safe_read): Change comment to mention SAFE_READ_ERROR.
68174
68175         * lib/safe-read.c (IS_EINTR): Define.
68176         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68177
68178 2002-12-02  Jim Meyering  <jim@meyering.net>
68179
68180         * lib/safe-read.c (EINTR): Define.
68181         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68182         (INT_MAX): Provide fallback.
68183         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68184
68185         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68186
68187 2002-12-02  Bruno Haible  <bruno@clisp.org>
68188
68189         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68190         Define, taken from safe-read.c.
68191         (INT_MAX): Provide fallback.
68192         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68193         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68194
68195         * lib/safe-read.c (EINTR): Remove definition.
68196         (safe_read): Don't use EINTR if it is absent.
68197
68198 2002-12-01  Jim Meyering  <jim@meyering.net>
68199
68200         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68201         zero.
68202         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68203
68204 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68205
68206         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68207         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68208         with `if (! (value < limit)) abort ();', for readability.
68209
68210 2002-11-26  Karl Berry  <karl@gnu.org>
68211
68212         * lib/strdup.c: copy from libc again, with jim's ok.
68213         * lib/.cppi-disable: re-add strdup.c
68214
68215 2002-11-25  Karl Berry  <karl@gnu.org>
68216
68217         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68218         instead of "strtol.c".
68219
68220 2002-11-25  Karl Berry  <karl@gnu.org>
68221
68222         * config/install-sh: update from automake for variable quoting, $0 in
68223         error msgs, etc.
68224
68225         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68226         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68227         entry.
68228
68229 2002-11-25  Jim Meyering  <jim@meyering.net>
68230
68231         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68232
68233 2002-11-24  Karl Berry  <karl@gnu.org>
68234
68235         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68236         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68237
68238 2002-11-24  Jim Meyering  <jim@meyering.net>
68239
68240         Update from coreutils:
68241
68242         * lib/mktime.c: Merge in changes from libc.
68243
68244         Avoid a link-time failure on some Linux systems.
68245         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68246         (otherwise).
68247         (__mon_yday): Declare with the STATIC attribute.
68248         (__mktime_internal): Likewise.
68249         Based on a report from Greg Schafer.
68250
68251 2002-11-23  Jim Meyering  <jim@meyering.net>
68252
68253         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68254         Use `unsigned', not `int', as type of index.
68255
68256         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68257
68258         * lib/fsusage.c: Remove unneeded parentheses around operands of
68259         `defined'.
68260
68261 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68262
68263         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68264         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68265         so that we can be included first.
68266         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68267         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68268         No need to include stddef.h or sys/types.h any more.
68269         Surround local include files with "", not "<>".
68270         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68271         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68272         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68273         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68274         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68275         (ISPRINT): Remove; no longer needed now that we assume C89.
68276
68277         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68278         Preserve errno.
68279
68280         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68281         quotearg_char): Use SIZE_MAX rather than
68282         (size_t) -1 when we are talking about "infinity".
68283
68284         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68285
68286 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68287
68288         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68289         hint that one should use `if (! x) abort ();' rather than `assert
68290         (x);', and anyway it's one less thing to worry about configuring.
68291         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68292         hash_rehash, hash_insert): Use abort rather than assert.
68293
68294 2002-11-22  Bruno Haible  <bruno@clisp.org>
68295
68296         * lib/safe-read.h: Assume C89. Add comments.
68297         (safe_read): Change return type to size_t.
68298         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68299         byte counts > SSIZE_MAX correctly.
68300         * lib/safe-write.h: New file.
68301         * lib/safe-write.c: New file.
68302         * lib/full-read.h: New file.
68303         * lib/full-read.c: New file.
68304         * lib/full-write.h: Assume C89. Add comments.
68305         * lib/full-write.c: Include safe-write.h.
68306         (full_write): Rewritten to use safe_write.
68307         Suggested by Jim Meyering and Paul Eggert.
68308
68309 2002-11-21  Jim Meyering  <jim@meyering.net>
68310
68311         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68312
68313         Merge in changes from the coreutils.
68314
68315         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68316         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68317         <stdint.h>.
68318         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68319         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68320         int.  Work more efficiently if X is the same width as uintmax_t.
68321         Do not compare X to -1, to avoid bogus compiler warning.
68322         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68323         Don't assume that f_frsize and f_bsize are the same type.
68324
68325         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68326         warning on FreeBSD.
68327
68328         * lib/makepath.c (make_path): Restore umask *before* creating the final
68329         component.
68330         (make_path): Minor reformatting.
68331
68332         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68333         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68334         HAVE_MALLOC/HAVE_REALLOC.
68335
68336         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68337         dummy ones.  At least on GNU/Linux systems, `auto' means something
68338         else.
68339         From Michael Stone.
68340
68341 2002-11-21  Bruno Haible  <bruno@clisp.org>
68342
68343         Remove case insensitive option matching.
68344         * lib/argmatch.h (argcasematch): Remove declaration.
68345         (ARGCASEMATCH): Remove macro.
68346         (__xargmatch_internal): Remove case_sensitive argument.
68347         (XARGMATCH): Update.
68348         (XARGCASEMATCH): Remove macro.
68349         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68350         case_sensitive argument.
68351         (argcasematch): Remove function.
68352         (__xargmatch_internal): Remove case_sensitive argument.
68353         (main): Use XARGMATCH instead of XARGCASEMATCH.
68354
68355         * lib/xmalloc.c: Change compile-time error message. Add comment about
68356         required autoconf version.
68357
68358 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68359
68360         Merge argmatch cleanups from Bison.  Assume C89.
68361
68362         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68363         Include stdlib.h, for EXIT_FAILURE.
68364         Always include <string.h>, since we assume C89.
68365         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68366         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68367         Include <stddef.h> instead, since it's all we need for size_t.
68368         (PARAMS): Remove.  All uses removed.
68369         (ARRAY_CARDINALITY): Do not bother to #undef.
68370         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68371         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68372         Remove unnecessary parentheses.
68373         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68374         Insert necessary parentheses.
68375         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68376         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68377
68378 2002-11-19  Bruno Haible  <bruno@clisp.org>
68379
68380         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68381         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68382
68383         * lib/mbswidth.h (PARAMS): Remove macro.
68384         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68385         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68386
68387         * lib/gcd.h (PARAMS): Remove macro.
68388         (gcd): Use ANSI C function declarations.
68389         * lib/gcd.c (gcd): Likewise.
68390
68391 2002-11-15  Bruno Haible  <bruno@clisp.org>
68392
68393         * lib/strcspn.c: Include <stddef.h>.
68394         (strcspn): Use ANSI C function declaration. Change return type to
68395         size_t. Use NULL.
68396         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68397         (strpbrk): Use NULL.
68398         * lib/strpbrk.h (PARAMS): Remove macro.
68399         (strpbrk): Use ANSI C function declaration.
68400         * lib/strstr.c: Don't include <sys/types.h>.
68401         * lib/strstr.h (PARAMS): Remove macro.
68402         (strstr): Use ANSI C function declarations.
68403
68404 2002-11-14  Karl Berry  <karl@gnu.org>
68405
68406         * config/mkinstalldirs: `do' on separate line, instead of
68407         `for var; do'.
68408
68409 2002-11-06  Bruno Haible  <bruno@clisp.org>
68410
68411         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68412         * lib/gcd.c (gcd): Likewise.
68413
68414 2002-11-05  Bruno Haible  <bruno@clisp.org>
68415
68416         * lib/gcd.h: New file, from gettext-0.11.5.
68417         * lib/gcd.c: New file, from gettext-0.11.5.
68418
68419 2002-11-05  Bruno Haible  <bruno@clisp.org>
68420
68421         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68422         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68423         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68424         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68425
68426         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68427         <libintl.h>.
68428         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68429         <libintl.h>.
68430
68431         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68432         * lib/human.c: Include gettext.h instead of <libintl.h>.
68433         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68434         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68435         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68436         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68437         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68438         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68439         (textdomain): Remove definition.
68440         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68441
68442         * lib/long-options.c: Remove include of <libintl.h> and definition of
68443         _.
68444         * lib/same.c: Remove include of <libintl.h> and definition of _.
68445
68446 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68447
68448         * lib/config.charset: A few additions for Solaris.
68449
68450 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68451
68452         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68453         * lib/localcharset.c (locale_charset): Declare as extern "C".
68454
68455 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68456
68457         * lib/config.charset: msdos in uk_UA uses CP1125.
68458
68459 2002-11-04  Bruno Haible  <bruno@clisp.org>
68460
68461         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68462         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68463         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68464         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68465         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68466
68467 2002-11-04  Bruno Haible  <bruno@clisp.org>
68468
68469         * lib/localcharset.c (locale_charset): Don't return an empty string.
68470
68471 2002-11-04  Bruno Haible  <bruno@clisp.org>
68472
68473         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68474         aliases.
68475
68476 2002-11-04  Bruno Haible  <bruno@clisp.org>
68477
68478         * lib/config.charset: Update for newest glibc. Add canonical names
68479         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68480
68481 2002-11-04  Bruno Haible  <bruno@clisp.org>
68482
68483         * lib/config.charset: Add support for NetBSD.
68484
68485 2002-11-04  Bruno Haible  <bruno@clisp.org>
68486
68487         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68488
68489 2002-11-01  Bruno Haible  <bruno@clisp.org>
68490
68491         * configure.in: Add AC_CONFIG_AUX_DIR call.
68492         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68493         test/Makefile.
68494         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68495
68496 2002-09-28  Karl Berry  <karl@gnu.org>
68497
68498         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68499         installed automake until the next release, since changes have been
68500         made.
68501
68502 2002-09-25  Karl Berry  <karl@gnu.org>
68503
68504         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68505         * lib/getopt*: copy from libc/posix.
68506         * lib/gettext.h: copy from gettext.
68507         * lib/.cppi-disable: add strdup.c, gettext.h.
68508
68509 2002-09-25  Karl Berry  <karl@gnu.org>
68510
68511         * config/srclist.txt: enable gettext.h check.
68512         * config/config.{guess,sub}: update from prep.
68513         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68514                 from automake 1.6.3.
68515         See srclist*.
68516
68517 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68518
68519         * regex.c (PATFETCH): Remove the translating fetch.
68520         (PATFETCH_RAW): Rename to PATFETCH.
68521         (set_image_of_range): New fun.
68522         (SET_RANGE_TABLE_WORK_AREA): Use it.
68523         (regex_compile): Don't translate the pattern chars so eagerly.
68524         Only do it when inserting an `exactn' bytecode or when handling
68525         a char-range.
68526         (mutually_exclusive_p): Avoid empty statement.
68527
68528 2002-07-06  Jim Meyering  <meyering@lucent.com>
68529
68530         * m4/README: Don't mention Makefile.am.in.
68531         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68532
68533 2002-07-01  Jim Meyering  <meyering@lucent.com>
68534
68535         * lib/c-stack.c: Include sys/time.h.
68536         From Volker Borchert.
68537
68538 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68539
68540         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68541
68542 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68543
68544         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68545         New macro.  Use it uniformly instead of
68546         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68547         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68548         reported by Vin Shelton.
68549
68550 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68551
68552         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68553         Do not assume SA_SIGINFO behavior.
68554         Bug reported by Jim Meyering on NetBSD 1.5.2.
68555
68556 2002-06-22  Jim Meyering  <meyering@lucent.com>
68557
68558         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68559         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68560
68561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68562         now that configure.ac uses AC_GNU_SOURCE.
68563         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68564         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68565
68566         Update to latest tools.  Suggestions from Paul Eggert.
68567         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68568         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68569         * m4/fnmatch.m4: Likewise.
68570         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68571         to AC_HEADER_STDBOOL
68572
68573 2002-06-22  Jim Meyering  <meyering@lucent.com>
68574
68575         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68576         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68577
68578 2002-06-22  Jim Meyering  <meyering@lucent.com>
68579
68580         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68581
68582         * lib/exitfail.c, exitfail.h: Likewise.
68583         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68584
68585         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68586         of fnmatch.h.
68587         (EXTRA_DIST): Add fnmatch_loop.c.
68588         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68589
68590         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68591         * lib/fnmatch.c: Update from diffutils-2.8.2.
68592         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68593         * lib/fnmatch.h: Remove file.
68594
68595 2002-06-21  Jim Meyering  <meyering@lucent.com>
68596
68597         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68598         * m4/mbrtowc.m4: Likewise.
68599
68600         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68601         * m4/mbswidth.m4: Reflect name change:
68602         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68603         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68604
68605         * m4/lib-link.m4: Update from gettext-0.11.2.
68606         * m4/gettext.m4: Likewise.
68607
68608         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68609         From Alfred M. Szmidt.
68610
68611 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68612
68613         * lib/file-type.h: Report an error if neither S_ISREG nor
68614         S_IFREG is defined, instead of using a test specific to glibc
68615         2.2.  This should be safe, since POSIX requires S_ISREG and
68616         Unix Version 7 had S_IFREG.  We don't need to check for
68617         <sys/types.h> since we don't use any symbols that it defines.
68618
68619 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68620
68621         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68622         $@-t, so that each temporary file name is unique and valid in the first
68623         8 characters, for operation under DOS.
68624
68625 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68626
68627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68628
68629 2002-06-15  Jim Meyering  <meyering@lucent.com>
68630
68631         Work even with DJGPP 2.03, which lacks support for symlinks.
68632         From Richard Dawe.
68633         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68634         is defined.
68635         * lib/lchown.c (S_ISLNK): Likewise.
68636
68637 2002-06-15  Jim Meyering  <meyering@lucent.com>
68638
68639         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68640         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68641         have been included before this file.
68642
68643 2002-06-14  Jim Meyering  <meyering@lucent.com>
68644
68645         * lib/file-type.h: Use the version from diffutils-2.8.2.
68646         * lib/file-type.c: Likewise.
68647
68648 2002-06-07  Jim Meyering  <meyering@lucent.com>
68649
68650         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68651         They're needed at least for NetBSD 1.5.2.
68652         ($statxfs_includes): Include those same headers.
68653         ($statxfs_includes): Include sys/vfs.h if available.
68654         ($statxfs_includes): Likewise for sys/statvfs.h.
68655         Check for the following members in both structs statfs and statvfs:
68656         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68657
68658 2002-06-01  Jim Meyering  <meyering@lucent.com>
68659
68660         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68661         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68662
68663 2002-05-28  Jim Meyering  <meyering@lucent.com>
68664
68665         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68666         Reported by Volker Borchert.
68667
68668 2002-05-27  Jim Meyering  <meyering@lucent.com>
68669
68670         Fix a problem seen only on nonconforming systems whereby ls.c's
68671         use of localtime, and then of gettimeofday would cause trouble:
68672         the localtime call used to initialize rpl_gettimeofday's save
68673         mechanism would clobber ls's current local time information so
68674         that in any long listing the first file would always be listed
68675         with date 1970-01-01.  Analysis by Volker Borchert.
68676
68677         * lib/gettimeofday.c (localtime): Undefine.
68678         (rpl_localtime): New function.
68679
68680 2002-05-27  Jim Meyering  <meyering@lucent.com>
68681
68682         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68683         localtime.
68684
68685         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68686         use the replacement function; it wouldn't resolve at link time.
68687         Reported by Volker Borchert.
68688
68689 2002-05-22  Jim Meyering  <meyering@lucent.com>
68690
68691         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68692         file-type.h.
68693         * lib/file-type.h: New file.
68694         * lib/file-type.c (file_type): New file/function.  Extracted from
68695         diffutils.
68696
68697 2002-04-30  Jim Meyering  <meyering@lucent.com>
68698
68699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68700
68701 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68702
68703         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68704
68705 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68706
68707         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68708         Do not check for alloca.h (no longer used) or stdbool.h (was never
68709         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68710
68711 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68712
68713         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68714
68715 2002-04-29  Jim Meyering  <meyering@lucent.com>
68716
68717         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68718         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68719         Use AC_FUNC_STRNLEN here instead.
68720
68721         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68722         With autoconf-2.53a, it's part of AC_PROG_CC.
68723
68724 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68725
68726         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68727         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68728
68729 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68730
68731         * lib/sig2str.h, lib/sig2str.c: New files.
68732         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68733
68734 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68735
68736         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68737         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68738         of 127, since 64 is the largest conceivable number for ancient
68739         nonstandard hosts.
68740         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68741
68742 2002-04-28  Jim Meyering  <meyering@lucent.com>
68743
68744         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68745
68746 2002-04-24  Jim Meyering  <meyering@lucent.com>
68747
68748         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68749         (jm_PREREQ): Use it.
68750
68751         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68752         mach/mach.h fcntl.h.
68753         Check for this function: setlocale.
68754
68755 2002-04-24  Jim Meyering  <meyering@lucent.com>
68756
68757         * lib/gettext.h: New file, from Gettext.
68758         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68759         (libfetish_a_SOURCES): Add gettext.h.
68760
68761 2002-04-16  Jim Meyering  <meyering@lucent.com>
68762
68763         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68764         ut_pid, ut_id, ut_exit.
68765
68766 2002-04-16  Jim Meyering  <meyering@lucent.com>
68767
68768         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68769         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68770         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68771
68772 2002-04-12  Jim Meyering  <meyering@lucent.com>
68773
68774         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68775         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68776         existence of the getmntinfo function.  Needed for Darwin 5.3.
68777
68778         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68779         This is necessary at least on Darwin 5.3.
68780
68781         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68782         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68783         strnlen.o in the library, and that makes some versions of ranlib
68784         object.
68785
68786 2002-04-12  Jim Meyering  <meyering@lucent.com>
68787
68788         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68789
68790 2002-04-09  Jim Meyering  <meyering@lucent.com>
68791
68792         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68793         to be more precise.  Rather than saying we're checking whether the
68794         function `works', say what we're testing.
68795         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68796         Reported by Bruno Haible.
68797
68798 2002-03-10  Jim Meyering  <meyering@lucent.com>
68799
68800         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68801         Suggestion from Santiago Vila.
68802
68803 2002-03-08  Jim Meyering  <meyering@lucent.com>
68804
68805         * lib/rename.c: Mention that this wrapper is needed also on
68806         mips-dec-ultrix4.4 systems.
68807
68808 2002-03-02  Jim Meyering  <meyering@lucent.com>
68809
68810         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68811         not HAVE_CLOCK_SETTIME.
68812
68813 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68814
68815         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68816         Check for clock_settime.
68817
68818 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68819
68820         * lib/nanosleep.h: Rename to....
68821         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68822
68823         * lib/gettime.c: New file.
68824         * lib/settime.c: New file.
68825         * lib/stime.c: Remove.
68826
68827         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68828         timespec.h.  Remove nanosleep.h.
68829
68830 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68831
68832         * m4/acl.m4: New file.
68833         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68834         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68835
68836 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68837
68838         * lib/acl.c, lib/acl.h: New files.
68839         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68840
68841 2002-02-24  Jim Meyering  <meyering@lucent.com>
68842
68843         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68844         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68845         cause trouble.  Reported by Nelson Beebe.
68846
68847 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68848
68849         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68850         compilers that don't know that xalloc_die never returns.
68851
68852 2002-02-20  Jim Meyering  <meyering@lucent.com>
68853
68854         * lib/getdate.c: Regenerate using bison-1.33.
68855
68856 2002-02-17  Jim Meyering  <meyering@lucent.com>
68857
68858         * config/config.guess (main): Don't use `head -1'; it's no longer
68859         portable. Use `sed 1q' instead.
68860
68861 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68862
68863         * m4/codeset.m4: Upgrade to gettext-0.11.
68864         * m4/gettext.m4: Upgrade to gettext-0.11.
68865         * m4/glibc21.m4: Upgrade to gettext-0.11.
68866         * m4/iconv.m4: Upgrade to gettext-0.11.
68867         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68868         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68869         * m4/lib-ld.m4: New file, from gettext-0.11.
68870         * m4/lib-link.m4: New file, from gettext-0.11.
68871         * m4/lib-prefix.m4: New file, from gettext-0.11.
68872         * m4/progtest.m4: Upgrade to gettext-0.11.
68873
68874 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68875
68876         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68877         (jm_PREREQ): Use it.
68878
68879 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68880
68881         * lib/posixver.c, lib/posixver.h: New files.
68882         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68883
68884 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68885             Bruno Haible  <bruno@clisp.org>
68886
68887         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68888         (fwrite_success_callback): New declaration.
68889         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68890         print_unicode_char. Call failure callback instead of error.
68891         (fwrite_success_callback): New function.
68892         (exit_failure_callback): New function.
68893         (fallback_failure_callback): New function.
68894         (print_unicode_char): Call unicode_to_mb.
68895
68896 2002-01-26  Jim Meyering  <meyering@lucent.com>
68897
68898         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68899         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68900
68901 2002-01-26  Jim Meyering  <meyering@lucent.com>
68902
68903         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68904
68905 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68906
68907         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68908
68909 2002-01-22  Jim Meyering  <meyering@lucent.com>
68910
68911         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68912         Otherwise, some versions of automake would omit the rule that makes
68913         Makefile from Makefile.in.
68914
68915 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68916
68917         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68918         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68919         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68920         (memcoll): Set errno to zero if there is no error.
68921
68922         * lib/quotearg.c (quotearg_buffer_restyled):
68923         Fix bug with quoting buffers containing NUL when backslashing escapes.
68924         This bug was exposed by the other changes in this patch.
68925         (quotearg_n_options): New arg ARGSIZE.
68926         All callers changed.
68927         (quoting_options_from_style): New function.
68928         (quotearg_n_style): Use it.
68929         (quotearg_n_style_mem): New function.
68930
68931         * lib/quotearg.h (quotearg_n_style_mem): New function.
68932
68933 2002-01-19  Jim Meyering  <meyering@lucent.com>
68934
68935         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68936         Remove useless quotes: DF_PROG="df".
68937         * m4/strnlen.m4: New file.
68938
68939 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68940
68941         * lib/backupfile.c (ISDIGIT): Comment fix.
68942         * lib/getdate.y (ISDIGIT): Likewise.
68943         * lib/posixtm.c (ISDIGIT, year): Likewise.
68944         * lib/strverscmp.c (ISDIGIT): Likewise.
68945         * lib/userspec.c (ISDIGIT): Likewise.
68946
68947 2002-01-16  Jim Meyering  <meyering@lucent.com>
68948
68949         * lib/getdate.y: Add three semicolons, each just before a closing
68950         brace. Bison (as of version 1.31) no longer papers over that mistake.
68951
68952 2002-01-05  Jim Meyering  <meyering@lucent.com>
68953
68954         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68955
68956 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68957
68958         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68959         not silently exit merely because the output buffer happens to
68960         have nothing pending.
68961
68962 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68963
68964         See the big note in ../ChangeLog.
68965         * lib/human.c (suffixes): Prefer K to k for 1024.
68966         (generate_suffix_backwards): New function.
68967         (human_readable_inexact): Use it.
68968         * lib/xstrtol.c (__xstrtol): If there is no number but there
68969         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68970         Accept 'K' as well as 'k'.
68971
68972 2001-12-15  Jim Meyering  <meyering@lucent.com>
68973
68974         * lib/regex.h (__restrict_arr): Update from libc.
68975
68976         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68977         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68978         (STREQ): Define.
68979
68980 2001-12-14  Jim Meyering  <meyering@lucent.com>
68981
68982         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68983         Suggestion from Bruno Haible.
68984
68985 2001-12-10  Jim Meyering  <meyering@lucent.com>
68986
68987         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68988         xrealloc, Instead, include "xalloc.h".
68989         (initbuffer): Don't cast xmalloc return value to char*.
68990         (readline): Reword comment.
68991         Don't cast xrealloc return value to char*
68992         Return NULL, not 0.
68993
68994 2001-12-09  Jim Meyering  <meyering@lucent.com>
68995
68996         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68997         about `signed and unsigned type in conditional expression'.
68998         * lib/posixtm.c (posix_time_parse): Likewise.
68999
69000         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
69001
69002         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
69003         to avoid a pedantic warning.
69004
69005         * lib/getstr.c: Don't include assert.h.
69006         (getstr): Remove warning-evoking assertions.
69007         Return -1 if offset parameter is out of bounds.
69008         Change the type of a local from int to size_t.
69009
69010         * lib/strftime.c (my_strftime_localtime_r): Include this function
69011         definition in the `#if ! HAVE_TM_GMTOFF' block.
69012
69013         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
69014         Include xalloc.h instead.
69015
69016 2001-12-02  Jim Meyering  <meyering@lucent.com>
69017
69018         * lib/tempname.c: Don't declare getenv, thus reverting the change of
69019         2001-11-18.  It's no longer necessary, now that stdlib.h is always
69020         included.
69021
69022         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
69023         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
69024
69025 2001-11-30  Akim Demaille  <akim@epita.fr>
69026
69027         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
69028         before being defined.
69029
69030 2001-11-27  Paul Eggert  <eggert@twinsun.com>
69031
69032         * lib/quotearg.h (quotearg_n, quotearg_n_style):
69033         First arg is int, not unsigned.
69034         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
69035         (SIZE_MAX, UINT_MAX): New macros.
69036         (quotearg_n_options): Abort if N is negative.
69037         Avoid overflow check on hosts where size_t is 64 bits and int
69038         is 32 bits, as overflow is impossible there.
69039         Fix off-by-one typo that caused unnecessary reallocation.
69040
69041 2001-11-27  Jim Meyering  <meyering@lucent.com>
69042
69043         * lib/tempname.c: Merge with version from libc.
69044         * lib/regex.c: Likewise.
69045
69046         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
69047         systems for which STDC_HEADERS is 0, it was not included, resulting in
69048         a warning about an integer-to-pointer conversion problem with getenv.
69049         Reported by Volker Borchert.
69050
69051 2001-11-26  Jim Meyering  <meyering@lucent.com>
69052
69053         * lib/gtod.h: Remove file.
69054         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
69055         * lib/gettimeofday.c: Don't include gtod.h.
69056         (GTOD_init): Remove function.
69057         (rpl_gettimeofday): Do its job here instead, rather than aborting.
69058         Suggestion from Volker Borchert.
69059
69060 2001-11-23  Jim Meyering  <meyering@lucent.com>
69061
69062         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
69063         it.
69064         * lib/hash.c (struct hash_table): Define it here instead.
69065
69066 2001-11-22  Jim Meyering  <meyering@lucent.com>
69067
69068         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
69069
69070 2001-11-20  Jim Meyering  <meyering@lucent.com>
69071
69072         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
69073         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
69074
69075 2001-11-19  Jim Meyering  <meyering@lucent.com>
69076
69077         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
69078         directory.  Use "conftestXXXXXX" as the template.
69079         Suggestion from Paul Eggert.
69080
69081         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
69082         immediately, so the test doesn't mistakenly hit the max-open-files
69083         limit.
69084
69085 2001-11-18  Paul Eggert  <eggert@twinsun.com>
69086
69087         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
69088         (TEMPORARIES): New macro.
69089         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
69090         removes an artificial limitation (e.g. HP-UX 10.20, where
69091         TMP_MAX is 17576).
69092
69093 2001-11-18  Jim Meyering  <meyering@lucent.com>
69094
69095         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
69096
69097 2001-11-18  Jim Meyering  <meyering@lucent.com>
69098
69099         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
69100         on SunOS 4.
69101
69102         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
69103         files will be created before anything else.
69104
69105 2001-11-17  Paul Eggert  <eggert@twinsun.com>
69106
69107         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
69108         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
69109
69110 2001-11-17  Jim Meyering  <meyering@lucent.com>
69111
69112         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
69113         Prompted by a report from Bob Proulx.
69114
69115         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69116         Instead, require UTILS_FUNC_MKSTEMP.
69117
69118 2001-11-17  Jim Meyering  <meyering@lucent.com>
69119
69120         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69121         Now, that's done as part of AC_FUNC_STRTOD.
69122
69123 2001-11-17  Jim Meyering  <meyering@lucent.com>
69124
69125         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69126         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69127         rather than group writable.  Patch by Juan F. Codagnone.
69128
69129         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69130         xrealloc, Instead, include "xalloc.h".
69131
69132         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69133         Remove explicit declarations of xmalloc, xrealloc,
69134         and xstrdup.  Instead, include "xalloc.h".
69135
69136         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69137         unlocked-io.h.
69138         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69139         Likewise.
69140         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69141
69142         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69143         Reported by Padraig Brady.
69144
69145         * lib/mkstemp.c: #undef mkstemp.
69146         Include config.h.
69147         (rpl_mkstemp): Rename from mkstemp.
69148         Protoize.
69149
69150 2001-11-16  Jim Meyering  <meyering@lucent.com>
69151
69152         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69153         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69154         determine the amount of total physical memory, use pstat_getstatic.
69155         HPUX-11 doesn't define _SC_PHYS_PAGES.
69156         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69157         If sysconf couldn't be used to determine the amount of available
69158         physical memory, use both pstat_getstatic and pstat_getdynamic.
69159         Based on a patch from Bob Proulx.
69160
69161 2001-11-10  Jim Meyering  <meyering@lucent.com>
69162
69163         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69164         (jm_PREREQ): Use it.
69165
69166 2001-11-09  Jim Meyering  <meyering@lucent.com>
69167
69168         * m4/jm-macros.m4: Require autoconf-2.52f.
69169         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69170         Use these AC_-prefixed names, not the AM_-prefixed ones.
69171
69172         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69173
69174 2001-11-05  Jim Meyering  <meyering@lucent.com>
69175
69176         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69177
69178 2001-11-04  Jim Meyering  <meyering@lucent.com>
69179
69180         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69181         $DEFS.
69182
69183 2001-11-03  Jim Meyering  <meyering@lucent.com>
69184
69185         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69186         of AC_DEFUN.
69187
69188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69189         know the name of the variable in the macro definition.
69190
69191 2001-11-03  Jim Meyering  <meyering@lucent.com>
69192
69193         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69194         in argmatch_to_argument call.
69195
69196         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69197         argument.
69198
69199         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69200         e.g., a fault due to an attempt to free a NULL pointer.
69201
69202 2001-11-01  Jim Meyering  <meyering@lucent.com>
69203
69204         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69205         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69206
69207 2001-11-01  Jim Meyering  <meyering@lucent.com>
69208
69209         * lib/dirfd.c, lib/dirfd.h: New files.
69210         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69211
69212         * lib/hash.c (hash_print) [TESTING]: Clean up.
69213
69214 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69215
69216         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69217         to avoid a warning if -Wall.
69218
69219 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69220
69221         * README: New file
69222         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69223         (per RMS's instructions, this is now the canonical source)
69224         * lgpl/, gpl/: New directories.
69225
69226 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69227
69228         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69229
69230 2001-10-21  Jim Meyering  <meyering@lucent.com>
69231
69232         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69233         this code would end up calling gettext even in packages built
69234         with --disable-nls.
69235         * lib/getopt.c (_): Likewise.
69236         * lib/regex.c (_): Likewise.
69237
69238 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69239
69240         * m4/error.m4 (jm_PREREQ_ERROR):
69241         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69242         AC_FUNC_STRERROR_R does that.
69243         Check for strerror declaration.
69244
69245         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69246         are supposed to have them these days.
69247         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69248         Merge changes from latest Autoconf CVS.
69249         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69250         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69251         POSIX decided to standardize on the int flavor of strerror_r.
69252
69253 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69254
69255         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69256         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69257         Use strerror_r that is only a macro, even if it is not a function.
69258         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69259         (private_strerror): Use prototypes, not old-style function definition.
69260         (print_errno_message): New function.
69261         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69262         char*-flavored one.
69263         (error_tail, error, error_at_line): Use it.
69264
69265 2001-10-11  Jim Meyering  <meyering@lucent.com>
69266
69267         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69268         and quote_n (1, ... to avoid clobbering a buffer.
69269
69270 2001-10-05  Jim Meyering  <meyering@lucent.com>
69271
69272         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69273         hash-pjw.h.
69274         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69275         * lib/hash-pjw.h: New file.
69276
69277 2001-09-30  Jim Meyering  <meyering@lucent.com>
69278
69279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69280         `struct fsstat' has the `f_fstypename' member.
69281         Use that to define FS_TYPE, which is now used to make
69282         the getfsstat link test tighter.
69283
69284 2001-09-30  Jim Meyering  <meyering@lucent.com>
69285
69286         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69287         Include <sys/ucred.h>, for Apple Darwin.
69288         Include sys/mount.h and sys/fs_types.h only if available.
69289         (FS_TYPE): Define.
69290         (read_filesystem_list): Use FS_TYPE.
69291
69292 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69293
69294         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69295         a boolean context.
69296
69297 2001-09-29  Jim Meyering  <meyering@lucent.com>
69298
69299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69300         [one-argument getmntent function]): Include stdio.h before mntent.h.
69301         SunOS 4.1.x needs it for the declaration of `FILE'.
69302         Patch by Volker Borchert.
69303
69304         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69305         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69306         sys/fs_types.h, and make the link-test for getfsstat guard #include
69307         directives with appropriate #if HAVE_*_H tests so that we can
69308         detect getfsstat on Apple Darwin1.3.7 systems.
69309         Reported by Nelson Beebe.
69310         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69311
69312 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69313
69314         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69315         #defines strtoimax.  Also treat the other strto* functions
69316         like strtoimax.
69317
69318         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69319         Check for strtoul and strtoumax,
69320         as those declarations are made even in the signed case.
69321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69322         Likewise, for strtol and strtoimax.
69323
69324 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69325
69326         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69327         #defines strtoimax.  Also treat the other strto* functions
69328         like strtoimax.
69329
69330         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69331         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69332         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69333
69334 2001-09-26  Jim Meyering  <meyering@lucent.com>
69335
69336         Most macros in unlocked-io.h had the wrong number of arguments.
69337         * lib/gen-uio: New script.
69338         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69339         * lib/unlocked-io.hin: Remove file.
69340         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69341         rather than trying to embed it here.
69342         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69343         Reported by Padraig Brady.
69344
69345 2001-09-25  Volker Borchert  <bt@teknon.de>
69346
69347         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69348         `result'.
69349
69350 2001-09-24  Jim Meyering  <meyering@lucent.com>
69351
69352         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69353
69354 2001-09-23  Jim Meyering  <meyering@lucent.com>
69355
69356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69357         instead of the mere test for existence of mntent.h.  The latter
69358         would get a false-positive on AIX 3.4 systems.
69359         In the outer getmntent if-block, don't die if neither of the getmntent
69360         tests succeeds.  Instead, just fall through and continue with the
69361         remaining tests.
69362
69363 2001-09-23  Jim Meyering  <meyering@lucent.com>
69364
69365         * lib/mountlist.c: Remove useless parentheses in #if directives.
69366         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69367         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69368
69369 2001-09-22  Jim Meyering  <meyering@lucent.com>
69370
69371         * m4/gettext.m4: New file.  From gettext.
69372         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69373         * m4/progtest.m4: Likewise
69374         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69375         * m4/glibc21.m4: Likewise.
69376
69377         * m4/libintl.m4: Remove.  No longer used.
69378
69379 2001-09-22  Jim Meyering  <meyering@lucent.com>
69380
69381         * lib/localcharset.c: Update from latest gettext.
69382         * lib/config.charset: Likewise.
69383
69384 2001-09-20  Jim Meyering  <meyering@lucent.com>
69385
69386         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69387         strtoimax.
69388         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69389         strtoumax.
69390
69391 2001-09-20  Jim Meyering  <meyering@lucent.com>
69392
69393         * lib/xstrtol.c (strtoimax): Guard declaration with
69394         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69395         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69396         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69397         (strtoumax): Likewise, for completeness (it wasn't necessary).
69398
69399 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69400
69401         * lib/strtoimax.c (HAVE_LONG_LONG):
69402         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69403         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69404         to work around bug in IBM C compiler.
69405
69406 2001-09-17  Jim Meyering  <meyering@lucent.com>
69407
69408         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69409         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69410         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69411         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69412         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69413         whenever the right hand side need not be expanded by the shell.
69414
69415 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69416
69417         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69418         library.  It's not correct, as some older glibcs are buggy.
69419         fnmatch wasn't fixed until glibc 2.2.
69420
69421         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69422         special shell magic here.
69423
69424 2001-09-16  Jim Meyering  <meyering@lucent.com>
69425
69426         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69427         * m4/jm-macros.m4: Require it.
69428
69429 2001-09-16  Jim Meyering  <meyering@lucent.com>
69430
69431         * lib/mkdir.c: New file.
69432
69433 2001-09-15  Jim Meyering  <meyering@lucent.com>
69434
69435         * m4/jm-macros.m4: Check for help2man.
69436
69437 2001-09-11  Jim Meyering  <meyering@lucent.com>
69438
69439         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69440         The body, by Paul Eggert, was moved here from configure.in.
69441         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69442
69443 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69444
69445         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69446         (jm_PREREQ): Use it.
69447
69448 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69449
69450         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69451         Use ssize_t, not int, to store result of readlink.
69452         Check for ssize_t overflow as well as size_t overflow,
69453         as POSIX says the result of readlink is implementation-defined
69454         when ssize_t overflows.
69455         Remove unnecessary cast to char*.
69456         Use free+malloc instead of realloc, as the storage doesn't need
69457         to be preserved and it's clearer and can be more efficient that way.
69458         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69459         * lib/xreadlink.h (xreadlink): Update prototype.
69460
69461 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69462
69463         * lib/xgetcwd.c: Revert some of the previous change; intead,
69464         fix the HAVE_GETCWD_NULL code to behave more like the
69465         !HAVE_GETCWD_NULL code used to.
69466
69467         Include "xalloc.h".
69468         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69469         invoke xalloc_die.
69470
69471 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69472
69473         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69474         sys/param.h, as pathmax.h includes them.
69475
69476 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69477
69478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69479         (jm_PREREQ_XGETCWD): New macro.
69480
69481         * m4/getcwd.m4: New file.
69482
69483 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69484
69485         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69486         like the HAVE_GETCWD_NULL code.
69487         Include pathmax.h if not HAVE_GETCWD.
69488         Do not include xalloc.h.
69489         (INITIAL_BUFFER_SIZE): New symbol.
69490         Do not use xmalloc / xrealloc, since the caller is responsible for
69491         handling errors.  Preserve errno around `free' during failure.
69492         Do not overrun buffer when using getwd.
69493
69494 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69495
69496         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69497         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69498         getcwd (NULL, 0).
69499
69500 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69501
69502         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69503         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69504         spotted by Jim Meyering.
69505
69506 2001-09-03  Jim Meyering  <meyering@lucent.com>
69507
69508         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69509         failure.
69510
69511 2001-09-02  Jim Meyering  <meyering@lucent.com>
69512
69513         * lib/error.c: Update from GNU libc.
69514
69515 2001-09-01  Jim Meyering  <meyering@lucent.com>
69516
69517         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69518         Used by df.
69519
69520 2001-09-01  Jim Meyering  <meyering@lucent.com>
69521
69522         * lib/xreadlink.c: New file.
69523         * lib/xreadlink.h: New file.
69524         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69525         xreadlink.h.
69526
69527         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69528         doesn't conflict with sparc Solaris 7's definition in
69529         /usr/include/sys/int_types.h.
69530
69531         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69532         files.
69533         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69534         and strncasecmp as r-values.  Unixware didn't have declarations.
69535
69536 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69537
69538         * lib/xstrtol.h: Add copyright notice.
69539         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69540         LONGINT_INVALID_SUFFIX_CHAR.
69541
69542 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69543
69544         * lib/xstrtol.c (strtoimax): New decl.
69545
69546 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69547
69548         * lib/xgetcwd.c: Don't include pathmax.h.
69549         Include stdlib.h and unistd.h if available.
69550         Include xalloc.h.
69551         (xmalloc, xstrdup, free): Remove decls.
69552         (xgetcwd): Don't assume sizes fit in unsigned.
69553         Check for overflow when computing sizes.
69554         Simplify reallocation code.
69555
69556 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69557
69558         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69559         a directory's st_size can have an arbitrary value, so the old
69560         usage could waste an arbitrary amount of memory.  All uses
69561         changed.
69562         * lib/savedir.h: Update prototype.
69563
69564 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69565
69566         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69567
69568         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69569         old strtoimax.c.
69570
69571         Also, make the following further changes to make this file's
69572         configuration more similar to that of strtol.c:
69573         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69574         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69575         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69576         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69577         changed to signed values.
69578
69579         And make the following changes as well:
69580         Fix copyright notice, as 1999 was missing.
69581         (verify): New macro.
69582         (strtoimax): Check sizes at compile-time, not run-time.
69583         Prefer strtol to strtoll if both work.
69584         (main): Remove; it was not that useful and was a pain to maintain.
69585
69586         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69587
69588 2001-08-31  Jim Meyering  <meyering@lucent.com>
69589
69590         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69591         Use an initial, malloc'd, buffer of length 128 rather than
69592         a statically allocated one of length 1024.
69593
69594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69595
69596         Simplify code, partly by assuming autoconf 2.52 semantics.
69597
69598         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69599
69600         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69601         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69602         All uses removed.
69603         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69604         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69605         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69606         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69607         jm_AC_HEADER_INTTYPES_H.
69608         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69609
69610         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69611
69612         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69613         Quote first arg of AC_DEFUN.
69614         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69615         since they are needed to parse the include file even if we need
69616         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69617         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69618         but with opposite signedness.
69619
69620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69621
69622         Merge 'exclude' changes from tar 1.13.22.
69623         This fixes one or two unlikely storage allocation overflow bugs,
69624         but doesn't change user-visible behavior otherwise.
69625
69626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69627
69628         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69629         (jm_PREREQ_EXCLUDE): New macro.
69630
69631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69632
69633         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69634         tm to be declared.
69635
69636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69637
69638         * lib/hash.c: Remove '2001' from copyright notice.
69639
69640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69641
69642         * lib/full-write.h: New file.
69643         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69644         * lib/full-write.c: Correct credits, as cccp.c no longer
69645         exists and anyway it was so heavily changed from the old cccp
69646         code as to be unrecognizable.  Include full-write.h.
69647         (full_write) Return size_t, with short writes meaning failure.
69648         All callers changed.  This fixes a bug with large buffers
69649         on 64-bit hosts.
69650         * lib/utime.c: Include full-write.h.
69651
69652 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69653
69654         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69655         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69656         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69657         Include if available.
69658         (<xalloc.h>): Include
69659         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69660         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69661         collide with FNM macros.
69662         (struct patopts): New struct.
69663         (struct exclude): Use it, as exclude patterns now come with options.
69664         (new_exclude): Support above changes.
69665         (new_exclude, add_exclude_file):
69666         Initial size must now be a power of two to simplify overflow checking.
69667         (free_exclude, fnmatch_no_wildcards): New function.
69668         (excluded_filename): No longer requires options arg, as the options
69669         are determined by add_exclude.  Now returns bool, not int.
69670         (excluded_filename, add_exclude):
69671         Add support for the fancy new exclusion options.
69672         (add_exclude, add_exclude_file): Now takes int options arg.
69673         Check for arithmetic overflow when computing sizes.
69674         (add_exclude_file): xrealloc might modify errno, so don't
69675         realloc until after errno might be used.
69676
69677         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69678         New macros.
69679         (free_exclude): New decl.
69680         (add_exclude, add_exclude_file): Now takes int options arg.
69681         (excluded_filename): No longer requires options arg, as the options
69682         are determined by add_exclude.  Now returns bool, not int.
69683
69684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69685
69686         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69687
69688 2001-08-27  Jim Meyering  <meyering@lucent.com>
69689
69690         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69691
69692         * lib/version-etc.c (N_): Remove definition.
69693         Revert most of last change.
69694         Instead, simply don't mark the `Copyright...' string for translation.
69695         Based on advice from Paul Eggert.
69696
69697         * lib/strtoxmax.c: Tweak comment.
69698
69699 2001-08-26  Jim Meyering  <meyering@lucent.com>
69700
69701         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69702
69703         * m4/xstrtoimax.m4: New file.
69704         * m4/xstrtoumax.m4: Add comments explaining why we
69705         AC_REPLACE_FUNCS(strtol).
69706
69707 2001-08-26  Jim Meyering  <meyering@lucent.com>
69708
69709         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69710         of copyright with `%s' so translators don't get an untranslated
69711         message in 2002.
69712         (COPYRIGHT_YEAR): Define.
69713         (version_etc): Use fprintf rather than fputs.
69714         Suggestion from Ulrich Drepper.
69715
69716         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69717
69718         * lib/strtoll.c: New file, from GNU libc.
69719         * lib/xstrtoimax.c: New file.
69720
69721         * lib/xstrtol.h: Add xstrtoimax.
69722         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69723         * lib/strtoimax.c: New file.  Likewise, but first define
69724         STRTOUXMAX_SIGNED.
69725
69726         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69727         ...
69728         * lib/strtoxmax.c: ... then renamed to this.
69729
69730 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69731
69732         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69733         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69734         (jm_AC_TYPE_INTMAX_T): New macro.
69735         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69736
69737         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69738
69739         * m4/longlong.m4: Renamed from ulonglong.m4.
69740         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69741         * m4/uintmax_t.m4: Removed.
69742
69743 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69744
69745         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69746         Port to Solaris 8, where 'sed' requires a space after the 'r'
69747         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69748         Redirect output to $tmp just once.
69749
69750 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69751
69752         * lib/addext.c (<errno.h>): Include.
69753         (errno): Declare if not defined.
69754         (addext): Work correctly when pathconf returns -1 and leaves
69755         errno alone because there is no limit.  Also, work even if
69756         pathconf returns a value greater than SIZE_MAX.
69757
69758 2001-08-12  Jim Meyering  <meyering@lucent.com>
69759
69760         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69761         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69762         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69763         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69764         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69765         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69766         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69767         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69768         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69769         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69770         utime.m4, utimes.m4, xstrtoumax.m4:
69771         Quote the first argument in each use of AC_DEFUN.
69772
69773 2001-08-12  Jim Meyering  <meyering@lucent.com>
69774
69775         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69776         Simply `return getcwd (NULL, 0);'.
69777         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69778         Use 1300 as initial value for length, not PATH_MAX.
69779
69780         * lib/pathmax.h: Clean up cpp syntax.
69781
69782 2001-08-12  Jim Meyering  <meyering@lucent.com>
69783
69784         * lib/gettimeofday.c: New file.
69785         * lib/gtod.h: New file.
69786         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69787
69788 2001-08-05  Jim Meyering  <meyering@lucent.com>
69789
69790         * m4/jm-macros.m4: Require autoconf-2.52.
69791
69792 2001-08-04  Jim Meyering  <meyering@lucent.com>
69793
69794         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69795         stmt, to get in sync with glibc.
69796
69797 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69798
69799         The following changes are from gettext 0.10.39 as maintained by
69800         Bruno Haible.
69801
69802         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69803         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69804         with inverted sense.  All uses changed.
69805
69806         * lib/mbswidth.c: Don't include <limits.h>.
69807         Include <stdlib.h> and <string.h> unconditionally.
69808         (iswcntrl, mbsinit, ISCNTRL): New macros.
69809         (mbsnwidth): Use K&R style function declarations.
69810         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69811         can optimize it when MB_CUR_MAX == 1.
69812         The width of control characters is zero, not 1.
69813
69814 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69815
69816         The following changes are from gettext 0.10.39 as maintained by
69817         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69818
69819         * m4/codeset.m4: Upgrade to serial AM1.
69820         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69821         all uses changed.  Quote first arg of AC_DEFUN.
69822         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69823
69824         * m4/iconv.m4: Upgrade to serial AM2.
69825         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69826         Add --with-libconv-prefix.
69827         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69828         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69829         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69830         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69831         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69832
69833         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69834         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69835         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69836         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69837         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69838         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69839         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69840         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69841         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69842
69843         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69844         string.h any more.
69845
69846         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69847         not the default value.
69848
69849         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69850         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69851         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69852         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69853         Also check for iswcntrl, used for wcwidth fallback.
69854         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69855         to Autoconf 2.13.
69856
69857 2001-08-03  Jim Meyering  <meyering@lucent.com>
69858
69859         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69860         as it was in the original.  Reported by Paul Eggert.
69861
69862 2001-07-16  Jim Meyering  <meyering@lucent.com>
69863
69864         * m4/gettimeofday.m4: New file.
69865         Prompted by a report from Bernhard Baehr.
69866
69867 2001-07-15  Jim Meyering  <meyering@lucent.com>
69868
69869         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69870         stuff. Now it's in ../Makefile.cfg.
69871
69872 2001-07-15  Jim Meyering  <meyering@lucent.com>
69873
69874         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69875         (BUILT_SOURCES): Add unlocked-io.h.
69876         (io_functions): Define.
69877         (unlocked-io.h): New rule.
69878         (DISTCLEANFILES): Add unlocked-io.h.
69879         (all-local): Depend on unlocked-io.h, to ensure it is created.
69880
69881         * lib/unlocked-io.hin: New file
69882
69883         * lib/regex.c: Update from glibc.
69884
69885 2001-07-05  Jim Meyering  <meyering@lucent.com>
69886
69887         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69888         recommendation.
69889         (libfetish_a_SOURCES): Put all .h files here instead.
69890         Remove a thus-exposed (better checks in automake) duplicate and
69891         two unnecessary .h files.
69892
69893 2001-07-04  Jim Meyering  <meyering@lucent.com>
69894
69895         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69896         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69897         distcheck failure.
69898
69899 2001-07-02  Jim Meyering  <meyering@lucent.com>
69900
69901         The following changes were prompted by suggestions from Bruno Haible.
69902
69903         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69904         is now generated.
69905         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69906         definition of EXTRA_DIST.
69907         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69908         ensure that the generated file is created/updated whenever the list
69909         of $(unlocked_functions) is changed.
69910         (jm-glibc-io.m4): New rule.
69911         (unlocked-io.h): New rule -- currently unused.
69912
69913 2001-06-24  Jim Meyering  <meyering@lucent.com>
69914
69915         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69916         unmatched right bracket, rather than kludging it with an extra,
69917         falsely-matching quote in a comment.  Patch by Akim Demaille.
69918
69919 2001-06-11  Jim Meyering  <meyering@lucent.com>
69920
69921         * lib/regex.c: Update from GNU libc.
69922
69923 2001-05-27  Jim Meyering  <meyering@lucent.com>
69924
69925         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69926         Check for ut_type in struct utmp.
69927
69928 2001-05-27  Jim Meyering  <meyering@lucent.com>
69929
69930         * lib/readutmp.h (UT_TYPE): Define.
69931
69932 2001-05-24  Jim Meyering  <meyering@lucent.com>
69933
69934         * lib/argmatch.c: Include "quote.h".
69935         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69936         quote function.  Reported by Göran Uddeborg.
69937
69938 2001-05-22  Jim Meyering  <meyering@lucent.com>
69939
69940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69941         now that we use the package-supplied version unconditionally.
69942         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69943
69944 2001-05-21  Jim Meyering  <meyering@lucent.com>
69945
69946         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69947         shell syntax errors.
69948
69949 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69950
69951         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69952
69953 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69954
69955         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69956         Don't bother to check library strftime, since
69957         we'll be using our own my_strftime function anyway.
69958         Define my_strftime instead of strftime.
69959
69960 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69961
69962         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69963         which is not yet declared.
69964
69965 2001-05-15  Jim Meyering  <meyering@lucent.com>
69966
69967         * m4/regex.m4: Use proper quoting so brackets appear in the test
69968         program.
69969         Reported by, and with help from, Bruno Haible.
69970
69971 2001-05-13  Jim Meyering  <meyering@lucent.com>
69972
69973         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69974         undefined.
69975
69976 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69977
69978         dirname code cleanup.  base_name now behaves more compatibly
69979         with POSIX basename when given file names that have trailing
69980         slashes, and similarly for dir_name.  Add new primitives
69981         base_len and dir_len.  Put the directory-name-related decls
69982         into dirname.h.
69983
69984         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69985         * lib/backupfile.c (base_name): Likewise.
69986         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69987         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69988         * lib/makepath.c (strip_trailing_slashes): Likewise.
69989         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69990         ISSLASH): Likewise.
69991         * lib/rename.c (strip_trailing_slashes): Likewise.
69992         * lib/same.c (base_name): Likewise.
69993         * lib/stripslash.c (ISSLASH): Likewise.
69994
69995         * lib/addext.c: Include <dirname.h> after size_t is defined.
69996         * lib/backupfile.c: Likewise.
69997
69998         * lib/addext.c (addext): Use base_len to trim redundant
69999         trailing slashes instead of doing it ourselves.
70000         But do not trim the last slash if it is not redundant.
70001
70002         * lib/backupfile.c (find_backup_file_name,
70003         max_backup_version): Use base_len instead of rolling it ourselves.
70004         Handle the case of "" and (on DOS) "C:" correctly.
70005
70006         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
70007         needed. Include <string.h>, <dirname.h>.
70008         (base_name): Allow file names ending in slashes, other than names
70009         that are all slashes.  In this case, return the basename followed
70010         by the slashes.  This is more general, and can be used in places
70011         where the original base_name purposely had an assertion failure.
70012         (base_len): New function.
70013
70014         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
70015         Do not include <assert.h>; no longer needed.
70016         Include xalloc.h.
70017         (memrchr): Remove decl.
70018         (dir_name_r): Remove.
70019         (dir_len): Renamed from dirlen.  All callers changed.
70020         Rewrite in terms of base_name, for simplicity and consistency.
70021         (dir_name): Never return NULL.  All callers changed.
70022         Do not include <stdlib.h> in test program; no longer needed.
70023         return 0; is fine for test program.
70024
70025         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
70026         New macros.
70027         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
70028
70029         * lib/path-concat.c (path_concat): Use base_len to compute
70030         base length, not strlen; this means we cannot rely on memcpy
70031         to null-terminate.
70032
70033         * lib/same.c (STREQ): Remove.
70034         (same_name): Handle the case where the basename ends in trailing '/'.
70035
70036         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
70037         a slash was stripped.  Do not strip the last slash after a
70038         file system prefix.
70039
70040 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70041
70042         * lib/Makefile.am (libfetish_a_SOURCES):
70043         Add strftime.c, since we now compile it on all hosts.
70044
70045         * lib/strftime.c (my_strftime):
70046         Define to nstrftime if emacs, but only if my_strftime is not defined.
70047         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
70048         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
70049         Add one more extra argument: a nanoseconds value.
70050         All uses changed.
70051         (ns): New macro.
70052         (my_strftime function): Add %N format.
70053         (emacs_strftimeu): Renamed from emacs_strftime,
70054         with extra ut argument.
70055
70056 2001-05-09  Paul Eggert  <eggert@twinsun.com>
70057
70058         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
70059
70060 2001-04-21  Jim Meyering  <meyering@lucent.com>
70061
70062         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
70063         doesn't interfere.
70064
70065 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70066
70067         * m4/ftruncate.m4: Check for chsize.
70068         Link with ftruncate.o unconditionally if ftruncate is missing.
70069         This was required when cross-compiling to i586-mingw32msvc.
70070
70071 2001-04-08  Jim Meyering  <meyering@lucent.com>
70072
70073         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
70074         recomputed; that's necessary when the offset spans a DST transition.
70075         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
70076
70077 2001-04-02  Jim Meyering  <meyering@lucent.com>
70078
70079         * lib/regex.h, regex.c: Update from GNU libc.
70080
70081 2001-03-24  Jim Meyering  <meyering@lucent.com>
70082
70083         * m4/jm-macros.m4: Require autoconf-2.49d.
70084
70085 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
70086
70087         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
70088
70089 2001-03-19  Paul Eggert  <eggert@twinsun.com>
70090
70091         * lib/version-etc.c (version_etc_copyright): Update to 2001.
70092
70093 2001-03-17  Jim Meyering  <meyering@lucent.com>
70094
70095         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
70096         now that the version in autoconf is equivalent.
70097         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
70098
70099         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
70100         Suggestion from Akim Demaille.
70101
70102         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
70103         (jm_PREREQ_TEMPNAME): New function.
70104
70105 2001-03-16  Paul Eggert  <eggert@twinsun.com>
70106
70107         * lib/tempname.c (uint64_t): Define to uintmax_t if
70108         not defined, and if UINT64_MAX is not defined.
70109         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
70110         Reported by John David Anglin.
70111
70112 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
70113
70114         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
70115         resolve alias if codeset is empty.
70116         * lib/config.charset (BeOS): Use wildcard syntax.
70117
70118 2001-03-13  Jim Meyering  <meyering@lucent.com>
70119
70120         * lib/path-concat.c (path_concat)
70121         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70122         concatenating e.g., `C:' and `foo'.
70123         From Bruno Haible.
70124
70125 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70126
70127         * lib/localcharset.c (locale_charset): Don't use
70128         setlocale(LC_CTYPE,NULL). Don't return NULL.
70129         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70130
70131 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70132
70133         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70134         support for DOS/DJGPP.
70135
70136 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70137
70138         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70139         lacks mkstemp.  Compile our own tempname.c if we compile our own
70140         mkstemp.c, as mkstemp relies on tempname.
70141
70142 2001-03-01  Jim Meyering  <meyering@lucent.com>
70143
70144         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70145         AH_VERBATIM really does output its argument verbatim.
70146
70147 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70148
70149         * lib/Makefile.am (libfetish_a_SOURCES):
70150         Add dup-safer.c, fopen-safer.c.
70151         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70152
70153         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70154         * lib/unistd-safer.h: New files.
70155
70156 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70157
70158         The mkstemp replacement is taken from glibc 2.2.2, with some
70159         portability fixes for use outside glibc, as follows:
70160
70161         * lib/tempname.c (struct_stat64): New macro.
70162         (direxists, __gen_tempname): Use it.
70163         This avoids a portability problem with Solaris 8.
70164
70165         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70166         (<stddef.h>, <stdint.h>, <string.h>):
70167         Include only if STDC_HEADERS || _LIBC.
70168         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70169         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70170         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70171         (__set_errno): Define this macro if <errno.h> doesn't.
70172         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70173         Define these macros if <stdio.h> doesn't.
70174         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70175         Define these macros if <sys/stat.h>
70176         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70177         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70178         __xstat64): Define if not _LIBC.
70179         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70180         (__gen_tempname): Invoke gettimeofday only if
70181         HAVE_GETTIMEOFDAY || _LIBC;
70182         otherwise, fall back on plain "time".
70183         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70184
70185         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70186
70187         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70188
70189 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70190
70191         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70192
70193 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70194
70195         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70196         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70197         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70198         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70199
70200 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70201
70202         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70203         Remove workaround macros for hosts that have mbrtowc but not
70204         mbstate_t, as we now insist on proper declarations for both
70205         before using mbrtowc.
70206
70207 2001-02-17  Jim Meyering  <meyering@lucent.com>
70208
70209         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70210         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70211         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70212         UnixWare 7.1.1.
70213
70214         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70215         rather than AC_CACHE_VAL.
70216
70217 2001-02-17  Jim Meyering  <meyering@lucent.com>
70218
70219         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70220         around included file name.
70221
70222         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70223
70224         * lib/strftime.c: Update from GNU libc (the only changes were to
70225         comments).
70226
70227 2001-02-17  Jim Meyering  <meyering@lucent.com>
70228
70229         * lib/regex.c: Update from libc.
70230
70231 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70232
70233         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70234         clash.
70235
70236 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70237
70238         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70239         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70240         Reported by Mark Hounschell via Paul Eggert.
70241
70242 2001-02-07  Jim Meyering  <meyering@lucent.com>
70243
70244         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70245
70246 2001-02-05  Jim Meyering  <meyering@lucent.com>
70247
70248         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70249         it includes the patch required for `large file' support with at least
70250         HP-UX's 10.20 /bin/cc.
70251
70252 2001-02-03  Jim Meyering  <meyering@lucent.com>
70253
70254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70255         AS_IF, now that it works once again (mysteriously).
70256         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70257
70258 2001-01-30  Jim Meyering  <meyering@lucent.com>
70259
70260         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70261         * m4/chown.m4: Rename conftestchown to conftest.chown.
70262         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70263         s/conftestdir2/conftest.d2/.
70264         * m4/utimes.m4: s/conftestdata/conftest.data/
70265         Inspired by Pavel Roskin's change in autoconf.
70266
70267 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70268
70269         * lib/config.charset: Update for FreeBSD 4.2.
70270
70271 2001-01-27  Jim Meyering  <meyering@lucent.com>
70272
70273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70274         a use of AS_IF.
70275         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70276
70277 2001-01-26  Jim Meyering  <meyering@lucent.com>
70278
70279         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70280         quotearg.c includes it.
70281
70282 2001-01-26  Jim Meyering  <meyering@lucent.com>
70283
70284         * lib/quotearg.c: Include stddef.h.
70285         * lib/quote.c: Include stddef.h.
70286         Reported by Axel Kittenberger.
70287
70288         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70289         line in double quotes so that it evokes a better diagnostic.
70290         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70291         Reported by Axel Kittenberger.
70292
70293 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70294
70295         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70296         as if it was a `charset'.
70297
70298 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70299
70300         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70301         has const.
70302
70303 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70304
70305         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70306         to avoid a warning.  Add back 'const' to inptr.
70307
70308 2001-01-20  Jim Meyering  <meyering@lucent.com>
70309
70310         Be sure that headers are checked before used in code compiled
70311         for the type checks.
70312         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70313         In place of that, invoke jm_CHECK_ALL_TYPES.
70314         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70315         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70316         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70317         The check for ssize_t was mistakenly run before the test for unistd.h.
70318
70319         The configure-time check for stdbool.h was missing.
70320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70321         (jm_PREREQ_HASH): New function.
70322
70323 2001-01-17  Jim Meyering  <meyering@lucent.com>
70324
70325         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70326         for autoconf-2.49c.
70327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70328
70329 2001-01-16  Jim Meyering  <meyering@lucent.com>
70330
70331         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70332         From Bruno Haible.
70333
70334 2001-01-14  Jim Meyering  <meyering@lucent.com>
70335
70336         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70337         foo and bar.  Create conftestdir/ in the script, not in the C code.
70338         Remove directories in the script, not in the C code.
70339         Remove conftestdir{,2} before trying to create the directory.
70340         Make the entire configure script fail if the mkdir fails.
70341
70342 2001-01-14  Jim Meyering  <meyering@lucent.com>
70343
70344         * lib/rename.c: New file.  From Volker Borchert.
70345         Include stdlib.h, string.h or strings.h, and xalloc.h.
70346         Use strip_trailing_slashes rather than open-coding it.
70347
70348 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70349
70350         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70351
70352 2001-01-03  Jim Meyering  <meyering@lucent.com>
70353
70354         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70355         of local `inptr' to avoid warning with some system declarations of
70356         iconv.
70357
70358 2001-01-02  Volker Borchert  <bt@teknon.de>
70359
70360         * m4/rename.m4: New file.
70361         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70362
70363 2001-01-01  Jim Meyering  <meyering@lucent.com>
70364
70365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70366         even on systems with utmpx.h.  It's necessary for the declaration of
70367         utmp's ut_user member.  Reported by Andreas Jaeger.
70368
70369         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70370         available. They are required for the declarations of getgrgid and
70371         getpwuid resp.
70372         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70373         Reported by Andreas Jaeger.
70374
70375 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70376
70377         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70378         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70379         so `make install' also works in VPATH builds.
70380
70381 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70382
70383         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70384         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70385         can be used in subdirectories.
70386
70387 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70388
70389         * lib/modechange.c: Do not assume that mode_t uses the
70390         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70391         the other-execute bit of FOO even if S_IXOTH != 1.
70392
70393         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70394         WOTH, XOTH, ALLM): New macros.
70395         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70396          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70397         Use them.
70398         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70399         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70400         (mode_compile):
70401         No need to use uintmax_t; unsigned long is long enough.
70402         Don't bother to get suffix since we don't use it.
70403
70404 2000-12-26  Jim Meyering  <meyering@lucent.com>
70405
70406         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70407         better with autoheader.
70408
70409 2000-12-24  Jim Meyering  <meyering@lucent.com>
70410
70411         * lib/hash.c (is_prime): Return explicit boolean values.
70412         (hash_get_first): Return NULL to appease Irix5.6's 89.
70413         Reported by Nelson Beebe.
70414
70415 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70416
70417         * lib/localcharset.c (locale_charset): Add support for Win32.
70418
70419 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70420
70421         * lib/physmem.h, lib/physmem.c: New files.
70422
70423         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70424         (noinst_HEADERS): Add physmem.h.
70425
70426         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70427         't' for compatibility with Solaris 8 sort.
70428
70429 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70430
70431         * lib/config.charset: Add support for BeOS.
70432
70433 2000-12-17  Jim Meyering  <meyering@lucent.com>
70434
70435         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70436         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70437
70438 2000-12-16  Jim Meyering  <meyering@lucent.com>
70439
70440         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70441         N and M) would have treated it like `chown N:N FILE'.
70442
70443         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70444
70445 2000-12-16  Jim Meyering  <meyering@lucent.com>
70446
70447         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70448         SHELLS_FILE to a file name that's useful on djgpp systems.
70449         Include stdlib.h.
70450         (ADDITIONAL_DEFAULT_SHELLS): Define.
70451         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70452         Based mostly on a patch from Prashant TR.
70453
70454 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70455
70456         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70457         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70458         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70459
70460 2000-12-08  Andreas Schwab  <schwab@suse.de>
70461
70462         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70463         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70464
70465 2000-12-07  Jim Meyering  <meyering@lucent.com>
70466
70467         * lib/stripslash.c (ISSLASH): Define.
70468         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70469         `/'.
70470         From Prashant TR.
70471
70472         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70473         (dir_name_r): Declare this function as static.
70474         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70475         manifest itself on a name containing a mix of slashes and
70476         backslashes.
70477         Make this function work with names starting with a DOS-style
70478         drive letter and colon prefix.
70479         (dir_name): Append `.' if necessary.
70480         Based mostly on patches from Prashant TR and Eli Zaretskii.
70481
70482         * lib/dirname.h (dir_name_r): Remove prototype.
70483
70484 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70485
70486         * m4/off_t-format.m4: Remove this file.
70487         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70488
70489 2000-12-06  Jim Meyering  <meyering@lucent.com>
70490
70491         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70492         replacement strtoull, we may well need the replacement strtoul, too.
70493         Check for declarations of strtoul and strtoull.
70494         Check for strtol.  Mainly as a cue to cause automake to include
70495         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70496         Check for limits.h -- strtol.c needs it.
70497
70498 2000-12-05  Jim Meyering  <meyering@lucent.com>
70499
70500         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70501
70502 2000-12-04  Jim Meyering  <meyering@lucent.com>
70503
70504         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70505         Also include memory.h, stdlib.h, unistd.h if appropriate.
70506         Reported by Andreas Jaeger (conflicting declaration of malloc).
70507
70508 2000-12-02  Jim Meyering  <meyering@lucent.com>
70509
70510         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70511         * m4/jm-macros.m4 (jm_MACROS): require it.
70512
70513 2000-12-02  Jim Meyering  <meyering@lucent.com>
70514
70515         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70516
70517 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70518
70519         * lib/memrchr.c: Include <config.h> before any system include file.
70520
70521 2000-11-30  Jim Meyering  <meyering@lucent.com>
70522
70523         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70524
70525 2000-11-30  Jim Meyering  <meyering@lucent.com>
70526
70527         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70528
70529 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70530
70531         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70532
70533 2000-11-26  Jim Meyering  <meyering@lucent.com>
70534
70535         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70536
70537 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70538
70539         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70540         size of (size_t) -1; it's not portable.
70541
70542 2000-11-17  Jim Meyering  <meyering@lucent.com>
70543
70544         * lib/strstr.c: Update from GNU libc.
70545
70546 2000-11-17  Akim Demaille  <akim@epita.fr>
70547
70548         * lib/obstack.h: Formatting changes.
70549         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70550         prevent type checking.
70551         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70552         cast the value to (void *): assigning a `foo *' to a `void *'
70553         variable is valid.
70554         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70555
70556 2000-11-16  Jim Meyering  <meyering@lucent.com>
70557
70558         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70559
70560 2000-11-11  Jim Meyering  <meyering@lucent.com>
70561
70562         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70563
70564 2000-11-10  Jim Meyering  <meyering@lucent.com>
70565
70566         * lib/obstack.h: Update from GNU libc.
70567         * lib/obstack.c: Likewise.
70568
70569 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70570
70571         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70572
70573 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70574
70575         * lib/getusershell.c (setusershell): Use rewind rather than
70576         fseek/fseeko, to avoid configuration hassles with fseeko.
70577         Don't bother opening SHELLS_FILE if shellstream is NULL;
70578         it's not necessary.
70579
70580 2000-11-05  Jim Meyering  <meyering@lucent.com>
70581
70582         * lib/makepath.h (make_dir): Declare.
70583         * lib/makepath.c (make_dir): Remove `static' attribute.
70584         Tweak a comment.
70585
70586 2000-11-04  Jim Meyering  <meyering@lucent.com>
70587
70588         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70589
70590 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70591
70592         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70593         last one in a bucket, advance to the next bucket.
70594
70595 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70596
70597         * lib/fnmatch.c: Do not comment out all the code if we are using
70598         the GNU C library, because in some cases we are replacing buggy
70599         code in the GNU C library itself.
70600
70601 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70602
70603         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70604         (regex_compile): Catch bogus \(\1\).
70605
70606 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70607
70608         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70609         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70610         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70611
70612 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70613
70614         * lib/error.h, getline.h, modechange.h:
70615         Remove "2000" from Copyright line, as the file hasn't been
70616         changed this year other than in the copyright notice.
70617
70618         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70619         was changed this year.
70620
70621 2000-10-29  Jim Meyering  <meyering@lucent.com>
70622
70623         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70624         renaming.
70625         * m4/ls-mntd-fs.m4: Likewise
70626
70627 2000-10-29  Jim Meyering  <meyering@lucent.com>
70628
70629         * lib/xstat.in: Fix grammar in comment.
70630
70631 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70632
70633         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70634         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70635         doesn't define __restrict_arr.
70636
70637 2000-10-28  Jim Meyering  <meyering@lucent.com>
70638
70639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70640         (jm_PREREQ_MEMCHR): New function.
70641
70642 2000-10-28  Jim Meyering  <meyering@lucent.com>
70643
70644         * lib/memchr.c: Update from libc.
70645         Adjust for portability:
70646         [HAVE_STDLIB_H]: Include stdlib.h.
70647         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70648         Undef __memchr, too.
70649         [!weak_alias]: Define __memchr to memchr.
70650
70651         * lib/regex.c: Update from libc.
70652         * lib/regex.h: Likewise.
70653         * lib/getopt1.c: Likewise.
70654         * lib/memcmp.c: Likewise.
70655
70656         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70657         Avoid using fseek, when possible -- it's broken by design.
70658         Patch by Ulrich Drepper.
70659
70660 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70661
70662         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70663         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70664         Giving in to popular pressure to shut up the compiler with casts.
70665
70666 2000-10-26  Jim Meyering  <meyering@lucent.com>
70667
70668         * lib/strftime.c: Update from libc.
70669
70670 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70671
70672         * regex.c: More `unsigned char' -> `re_char' changes.
70673         Also change several `int' into `re_wchar_t'.
70674         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70675         (PUSH_FAILURE_POINTER): Don't cast any more.
70676         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70677         We want GCC to complain, since this piece of code makes
70678         re_match non-reentrant, which *should* be fixed.
70679         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70680         (EXTEND_BUFFER): Use RETALLOC.
70681         (SET_LIST_BIT): Don't cast.
70682         (re_wchar_t): New type.
70683         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70684         that those two functions will always properly return.
70685         (IMMEDIATE_QUIT_CHECK): Cast to void.
70686         (analyse_first): Use recursion rather than an explicit stack.
70687         (re_compile_fastmap): Can't fail anymore.
70688         (re_search_2): Don't check re_compile_fastmap for failure.
70689         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70690         Now also sets the new value (passed in a new argument).
70691         (re_match_2_internal): Use it.
70692         Also, use a new var `reg' of type size_t when looping through regs
70693         rather than reuse the inappropriate `mcnt'.
70694
70695 2000-10-25  Jim Meyering  <meyering@lucent.com>
70696
70697         * lib/obstack.c: Update from libc.
70698
70699 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70700
70701         * regex.c (regex_compile): Change the way of handling a range from
70702         a char less than 256 to a char not less than 256.
70703
70704 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70705
70706         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70707         NT-Emacs only.
70708         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70709         so that re_search functions only quit when callers expect them to.
70710
70711 2000-10-23  Jim Meyering  <meyering@lucent.com>
70712
70713         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70714         wrong.  That set_locale call must not have any side effects.
70715         From Paul Eggert.
70716
70717 2000-10-22  Jim Meyering  <meyering@lucent.com>
70718
70719         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70720         [CYCLIC]: Remove now-unused definition.
70721
70722         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70723         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70724         Suggestion from Ulrich Drepper.
70725
70726 2000-10-21  Jim Meyering  <meyering@lucent.com>
70727
70728         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70729         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70730         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70731
70732 2000-10-21  Jim Meyering  <meyering@lucent.com>
70733
70734         * lib/dirname.c (memrchr): Declare if necessary.
70735         (dir_name): Remove the restriction that there be no
70736         trailing slashes.  Now, this code skips past them, effectively
70737         ignoring them.
70738         [TEST_DIRNAME] (main): New unit tests.
70739
70740         * lib/memrchr.c: New file from GNU libc.
70741         Undef __memrchr, too.
70742         [!weak_alias]: Define __memrchr to memrchr.
70743         Guard weak_alias use with `#ifdef weak_alias'.
70744
70745 2000-10-21  Jim Meyering  <meyering@lucent.com>
70746
70747         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70748         (dir_name): Use dir_name_r.
70749         * lib/dirname.h (dir_name_r): Declare it.
70750
70751 2000-10-17  Jim Meyering  <meyering@lucent.com>
70752
70753         * lib/quote.h (PARAMS): Define and use.
70754         Reported by Akim Demaille.
70755
70756         * lib/getopt.c: Update from libc.
70757
70758 2000-10-16  Jim Meyering  <meyering@lucent.com>
70759
70760         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70761         setlocale.
70762         From Jan Fedak.
70763
70764 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70765
70766         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70767
70768 2000-09-25  Jim Meyering  <meyering@lucent.com>
70769
70770         * lib/md5.h (rol): Define (from GnuPG).
70771
70772         * lib/sha.c: Give credit (GnuPG) where due.
70773         (M): Use rol rather than open-coding it.
70774         Add a FIXME comment.
70775
70776 2000-09-21  Jim Meyering  <meyering@lucent.com>
70777
70778         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70779         Reported by Michael Stone.
70780
70781 2000-09-20  Jim Meyering  <meyering@lucent.com>
70782
70783         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70784         (noinst_HEADERS): Add sha.h.
70785         Based on code from Scott G. Miller and from GnuPG.
70786
70787 2000-09-18  Jim Meyering  <meyering@lucent.com>
70788
70789         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70790         LIBS. Otherwise, everyone ends up linking with -lelf for some
70791         configurations.
70792         Reported by Mike Stone.
70793
70794 2000-09-15  Jim Meyering  <meyering@lucent.com>
70795
70796         * lib/regex.c: Update from libc.
70797
70798 2000-09-10  Jim Meyering  <meyering@lucent.com>
70799
70800         * lib/getopt.c (_getopt_internal): Update from glibc.
70801
70802 2000-09-09  Jim Meyering  <meyering@lucent.com>
70803
70804         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70805         think it should be used as a general replacement for isascii.
70806         * lib/fnmatch.c: Likewise.
70807         * lib/mbswidth.c: Likewise
70808         * lib/regex.c: Likewise.
70809
70810         Don't use atoi.
70811         * lib/userspec.c: Include sys/param.h and limits.h.
70812         Include xstrtol.h.
70813         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70814         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70815         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70816         UID, GID.  Check range.
70817
70818 2000-09-06  Jim Meyering  <meyering@lucent.com>
70819
70820         * lib/getopt.c (_getopt_internal): Update from glibc.
70821
70822 2000-08-30  Jim Meyering  <meyering@lucent.com>
70823
70824         * lib/strftime.c: Merge in changes from GNU libc.
70825
70826 2000-08-26  Jim Meyering  <meyering@lucent.com>
70827
70828         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70829         * m4/fpending.m4: New file.
70830
70831 2000-08-26  Jim Meyering  <meyering@lucent.com>
70832
70833         * lib/closeout.c: Include "__fpending.h".
70834         (close_stdout_status): Return right away if there's nothing to flush.
70835
70836         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70837         * lib/__fpending.c: New file.
70838         * lib/__fpending.h: New file.
70839
70840 2000-08-20  Jim Meyering  <meyering@lucent.com>
70841
70842         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70843         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70844         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70845
70846 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70847
70848         Improve fileutils installation on systems where running
70849         programs (like install) can't be unlinked.
70850         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70851         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70852
70853 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70854
70855         Standardize on "memory exhausted" instead of "Memory exhausted"
70856         or "virtual memory exhausted".
70857         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70858         "virtual memory exhausted".
70859         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70860         our own message.
70861         * lib/userspec.c (parse_user_spec): Likewise.
70862         * lib/bumpalloc.h: comment fix
70863         * lib/same.c, userspec.c: Include xalloc.h.
70864
70865         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70866         not char *const and pointing to a constant array.
70867         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70868         (xrealloc): Comment fix.
70869
70870         * lib/userspec.c (parse_user_spec):
70871         Don't translate a message until just before returning,
70872         to avoid unnecessary translation.
70873
70874 2000-08-07  Jim Meyering  <meyering@lucent.com>
70875
70876         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70877         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70878         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70879         getgroups.c, gethostname.c, getopt.h, group-member.c,
70880         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70881         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70882         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70883         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70884         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70885         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70886         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70887         yesno.c: Back out Copyright date changes for each file with no change
70888         this year.  This eases coordination with other programs using the same
70889         source code modules.  From Paul Eggert.
70890
70891 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70892
70893         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70894         not char, for compatibility with glibc 2.1.3 strftime.c.
70895
70896 2000-08-03  Greg McGary  <greg@mcgary.org>
70897
70898         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70899         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70900         (EXTEND_BUFFER): Use them.
70901
70902 2000-08-01  Jim Meyering  <meyering@lucent.com>
70903
70904         * lib/dirname.c (ISSLASH): Define.
70905         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70906         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70907         both `\' and `/' may be use as path separators.
70908         Based on a patch from Prashant TR.
70909
70910 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70911
70912         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70913         slot vector a constant, since it might get modified.
70914
70915 2000-07-31  Jim Meyering  <meyering@lucent.com>
70916
70917         * lib/xmalloc.c: Use `virtual memory exhausted', not
70918         `Memory exhausted'.
70919         * lib/obstack.c (print_and_abort): Likewise.
70920
70921 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70922
70923         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70924         buffer, so that the caller can always quote one small
70925         component of a "memory exhausted" message in slot 0.
70926         From a suggestion by Jim Meyering.
70927
70928 2000-07-30  Jim Meyering  <meyering@lucent.com>
70929
70930         * lib/makepath.c (make_path): Quote the other instance, too.
70931
70932         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70933         (STATIC_BUF_SIZE): Define.
70934         (quotearg_n_options): Use only statically allocated storage when
70935         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70936         than STATIC_BUF_SIZE.
70937
70938 2000-07-29  Jim Meyering  <meyering@lucent.com>
70939
70940         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70941         * lib/dirname.c (dir_name): Likewise.
70942
70943         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70944         `/'.
70945
70946         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70947         (dir_name): Assert that there are no trailing slashes.
70948
70949 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70950
70951         * lib/mbswidth.h (mbswidth): Add a flags argument.
70952         (mbswidth): New declaration.
70953         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70954         * lib/mbswidth.c (mbswidth): Add a flags argument.
70955         (mbsnwidth): New function.
70956
70957 2000-07-24  Jim Meyering  <meyering@lucent.com>
70958
70959         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70960
70961 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70962
70963         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70964
70965 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70966
70967         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70968         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70969         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70970         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70971         invoke multibyte primitives.
70972
70973 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70974
70975         * lib/quotearg.c:
70976         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70977         so that mbstate_t is always defined.
70978
70979         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70980         be 1 in at least one GCC installation, and this configuration
70981         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70982         performance on hosts that have mbrtowc but have only unibyte
70983         locales, but I assume these hosts are rare.
70984
70985 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70986
70987         * lib/mbswidth.c (_XOPEN_SOURCE):
70988         Don't define; this causes problems on Solaris 7.
70989         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70990
70991 2000-07-23  Jim Meyering  <meyering@lucent.com>
70992
70993         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70994         too: getgrgid, getpwuid, getuid.
70995
70996 2000-07-23  Jim Meyering  <meyering@lucent.com>
70997
70998         * lib/basename.c (base_name): Add an assertion.
70999
71000 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
71001
71002         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
71003         shadow its mbsinit function.
71004
71005 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71006
71007         * lib/mbswidth.h: New file.
71008         * lib/mbswidth.c: New file.
71009         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
71010         (noinst_HEADERS): Add mbswidth.h.
71011
71012 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71013
71014         * lib/config.charset: Add support for FreeBSD. Improve support for
71015         HP-UX and IRIX 6.
71016
71017 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
71018
71019         * m4/mbswidth.m4: New file.
71020         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
71021
71022 2000-07-15  Jim Meyering  <meyering@lucent.com>
71023
71024         * lib/makepath.c: Include quote.h.
71025         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
71026         corresponding argument in a `quote (...)' call.
71027         Give better diagnostics.
71028
71029         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
71030         (noinst_HEADERS): Add quote.h.
71031
71032         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
71033         from tar's src/misc.c.
71034         * lib/quote.h: New file.  Prototypes for same.
71035
71036 2000-07-14  Paul Eggert  <eggert@twinsun.com>
71037
71038         From a suggestion by Bruno Haible.
71039         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
71040         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
71041         to decide whether to define the BeOS workaround macro;
71042         this adjusts to the change to AC_MBSTATE_T.
71043
71044 2000-07-14  Jim Meyering  <meyering@lucent.com>
71045
71046         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
71047         jm_AC_TYPE_UINTMAX_T.
71048
71049 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71050
71051         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
71052
71053         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
71054         quotearg_buffer_restyled): Add support for
71055         clocale_quoting_style.  Undo previous change to
71056         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
71057         and "{RIGHT QUOTATION MARK}" msgids.
71058
71059 2000-07-10  Paul Eggert  <eggert@twinsun.com>
71060
71061         From a suggestion by Bruno Haible.
71062         * m4/mbstate_t.m4 (AC_MBSTATE_T):
71063         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
71064         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
71065         and mbstate_t, to a single-part test that simply defines mbstate_t.
71066         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
71067         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
71068
71069 2000-07-10  Jim Meyering  <meyering@lucent.com>
71070
71071         * m4/strerror_r.m4: Mirror the correction made in autoconf.
71072
71073         * m4/gnu-source.m4: Output to confdefs.h directly.
71074         Suggestion from Akim Demaille.
71075
71076 2000-07-09  Paul Eggert  <eggert@twinsun.com>
71077
71078         The old behavior of quoting `like this' doesn't look good with
71079         newer, ISO-style fonts.  See:
71080         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
71081
71082         Instead, quote "like this" by default.  Let the translator
71083         tailor the locale-specific quoting behavior by providing
71084         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
71085
71086         * lib/quotearg.c (N_): New macro.
71087         (gettext_default): New function.
71088         (quotearg_buffer_restyled): Use
71089         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
71090         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
71091
71092 2000-07-09  Jim Meyering  <meyering@lucent.com>
71093
71094         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
71095         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
71096
71097         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
71098         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
71099
71100 2000-07-09  Jim Meyering  <meyering@lucent.com>
71101
71102         * lib/Most files: Update copyright dates to include 2000.
71103
71104 2000-07-08  Jim Meyering  <meyering@lucent.com>
71105
71106         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
71107         if not defined.
71108         (xgethostname): Remove now-unnecessary #ifdef.
71109         Move declaration of `err' into loop where it's used.
71110
71111 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71112         and Bruno Haible  <haible@clisp.cons.org>
71113
71114         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
71115         only if the test for an object-type mbstate_t fails.  This
71116         prevents us from mistakenly reporting that mbstate_t is a
71117         system object type after we "#define mbstate_t int" to work
71118         around its lack.
71119
71120 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71121         and Bruno Haible  <haible@clisp.cons.org>
71122
71123         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71124
71125 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71126
71127         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71128         to strerror_r.
71129         Include <ctype.h> for use of isalpha.
71130
71131 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71132
71133         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71134         by allocating a larger buffer. Test the gethostname return value for
71135         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71136         returns an error and ENAMETOOLONG isn't defined.
71137
71138 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71139
71140         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71141         dimension.
71142
71143 2000-07-04  Jim Meyering  <meyering@lucent.com>
71144
71145         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71146         of the deprecated AC_CHECKING.
71147
71148 2000-07-04  Jim Meyering  <meyering@lucent.com>
71149
71150         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71151         Reported by Bruno Haible.
71152
71153 2000-07-04  Jim Meyering  <meyering@lucent.com>
71154
71155         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71156         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71157         lacks mbrtowc.
71158
71159 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71160
71161         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71162         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71163
71164 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71165         and Bruno Haible  <haible@clisp.cons.org>
71166
71167         * lib/quotearg.c (mbrtowc):
71168         Assign to *pwc, and return 1 only if result is nonzero.
71169         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71170
71171 2000-07-03  Jim Meyering  <meyering@lucent.com>
71172
71173         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71174
71175 2000-07-03  Jim Meyering  <meyering@lucent.com>
71176
71177         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71178         This is necessary to get a definition of e.g., UTMP_FILE on
71179         HP-UX 10.20.
71180         From Bob Proulx.
71181
71182 2000-07-02  Jim Meyering  <meyering@lucent.com>
71183
71184         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71185
71186         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71187         AC_LIBOBJ(function_name).
71188         * m4/chown.m4: Likewise.
71189         * m4/fnmatch.m4: Likewise.
71190         * m4/ftruncate.m4: Likewise.
71191         * m4/getgroups.m4: Likewise.
71192         * m4/getline.m4: Likewise.
71193         * m4/group-member.m4: Likewise.
71194         * m4/jm-macros.m4: Likewise.
71195         * m4/lstat.m4: Likewise.
71196         * m4/malloc.m4: Likewise.
71197         * m4/memcmp.m4: Likewise.
71198         * m4/nanosleep.m4: Likewise.
71199         * m4/putenv.m4: Likewise.
71200         * m4/realloc.m4: Likewise.
71201         * m4/regex.m4: Likewise.
71202         * m4/stat.m4: Likewise.
71203         * m4/strftime.m4: Likewise.
71204
71205 2000-07-02  Jim Meyering  <meyering@lucent.com>
71206
71207         * lib/quotearg.c (mbstate_t): Don't define here.
71208
71209 2000-07-02  Jim Meyering  <meyering@lucent.com>
71210
71211         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71212
71213 2000-07-01  Jim Meyering  <meyering@lucent.com>
71214
71215         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71216
71217 2000-07-01  Jim Meyering  <meyering@lucent.com>
71218
71219         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71220         problem.
71221
71222 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71223
71224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71225         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71226
71227 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71228
71229         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71230         per change in ../m4/ls-mntd-fs.m4.
71231         (read_filesystem_list): Ignore symbolic links.
71232
71233 2000-06-29  Jim Meyering  <meyering@lucent.com>
71234
71235         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71236         for declaration of strcmp.
71237
71238         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71239
71240         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71241         Avoid warning by casting result to `char *' to remove `const'.
71242
71243 2000-06-28  Jim Meyering  <meyering@lucent.com>
71244
71245         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71246         included by quotearg.c, for which we perform this test.  From
71247         Bruno Haible.
71248
71249 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71250
71251         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71252         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71253         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71254
71255 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71256
71257         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71258
71259 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71260
71261         savedir now sets errno on failure and invokes xmalloc to get memory.
71262         Fix a couple of other minor bugs while we're at it.
71263
71264         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71265         (NAMLEN): Remove macro.
71266         (malloc, realloc): Remove decls.
71267         (stpcpy): Likewise.
71268         ("xalloc.h"): Include.
71269         (NAME_SIZE_DEFAULT): New macro.
71270         (savedir): Use xmalloc / xrealloc to allocate memory.
71271         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71272         Skip "" directory entries.
71273         Use strlen to calculate directory entry length, since the old method
71274         is rarely used these days and isn't worth supporting.
71275         Don't use a pointer after freeing it.
71276         Check for integer overflow when calculating allocation size.
71277         Use memcpy to copy entries, instead of stpcpy.
71278         Set errno properly when returning NULL.
71279         Check for readdir error.
71280
71281 2000-06-26  Jim Meyering  <meyering@lucent.com>
71282
71283         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71284
71285 2000-06-25  Jim Meyering  <meyering@lucent.com>
71286
71287         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71288         Linux header bug when _XOPEN_SOURCE is defined to 500.
71289
71290 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71291
71292         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71293         deficiency.
71294
71295 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71296
71297         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71298         Include xalloc.h.
71299         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71300
71301 2000-06-24  Jim Meyering  <meyering@lucent.com>
71302
71303         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71304         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71305         for which strerror does return char*, but which lacks a conveniently
71306         accessible declaration of the function.  If the compile-test says
71307         strerror_r doesn't work, then resort to a `run'-test that works on
71308         BeOS and segfaults on DEC Unix.
71309
71310 2000-06-24  Jim Meyering  <meyering@lucent.com>
71311
71312         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71313
71314 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71315
71316         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71317         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71318
71319 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71320
71321         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71322         (mbrtowc, mbstate_t): Define substitutes if
71323         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71324         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71325         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71326
71327 2000-06-23  Jim Meyering  <meyering@lucent.com>
71328
71329         * m4/afs.m4: Add missing AC_MSG_RESULT.
71330         Reported by Bruno Haible.
71331
71332         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71333         Suggestion from Bruno Haible.
71334
71335 2000-06-23  Jim Meyering  <meyering@lucent.com>
71336
71337         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71338
71339 2000-06-21  Jim Meyering  <meyering@lucent.com>
71340
71341         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71342
71343 2000-06-21  Jim Meyering  <meyering@lucent.com>
71344
71345         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71346         (noinst_HEADERS): Add getstr.h.
71347
71348         * lib/getline.c (getstr): Move into a separate file.
71349         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71350         the following changes: new parameter, delim2; both delim[12]
71351         parameters have type `int', not `char'.  The latter would lose
71352         with 8-bit delimiters.
71353         * lib/getstr.h: New file.
71354
71355 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71356
71357         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71358         than 1024, return a memory chunk of least possible size, instead
71359         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71360         Use free/xmalloc instead of xrealloc to avoid copying for very long
71361         paths.
71362
71363 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71364
71365         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71366         the empty string.
71367
71368 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71369
71370         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71371         address, not strdup.  Include <stdlib.h> and don't declare free().
71372
71373 2000-06-19  Jim Meyering  <meyering@lucent.com>
71374
71375         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71376
71377 2000-06-18  Jim Meyering  <meyering@lucent.com>
71378
71379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71380
71381         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71382         `checking whether...' message to be consistent with that of the
71383         lstat test.
71384
71385 2000-06-18  Jim Meyering  <meyering@lucent.com>
71386
71387         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71388         Besides, these days every porting target provides a mkdir function.
71389
71390         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71391         needed. (this snippet comes from src/system.h).
71392
71393 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71394
71395         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71396
71397 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71398
71399         * lib/human.c (adjust_value): New function.
71400         (human_readable_inexact): Apply rounding style even when
71401         printing approximate values.
71402
71403 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71404
71405         * lib/human.c (human_readable_inexact): Allow an input block
71406         size that is not a multiple of the output block size, and vice versa.
71407         Reported by Piergiorgio Sartor.
71408
71409 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71410
71411         * lib/getdate.y (get_date): Apply relative times after time
71412         zone indicator, not before.  Reported by Todd A. Jacobs.
71413
71414 2000-06-13  Jim Meyering  <meyering@lucent.com>
71415
71416         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71417
71418         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71419
71420 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71421
71422         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71423
71424 2000-06-12  Jim Meyering  <meyering@lucent.com>
71425
71426         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71427         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71428         optional argument.
71429         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71430         the optional argument, `lib'.
71431
71432 2000-06-08  Jim Meyering  <meyering@lucent.com>
71433
71434         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71435
71436 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71437
71438         Rewrite largefile configuration so that we don't need to run
71439         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71440         AC_CANONICAL_HOST in configure.in -- jmm]
71441
71442         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71443         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71444         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71445         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71446         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71447         All uses changed.
71448         Instead of inspecting the output of getconf, try to compile the
71449         test program without and with the macro definition.
71450         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71451         for getconf.  Instead, check for the needed flags by compiling
71452         test programs.
71453
71454 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71455
71456         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71457
71458 2000-06-04  Jim Meyering  <meyering@lucent.com>
71459
71460         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71461         SunOS 4.1.4 for which gid_t is an unsigned type.
71462
71463 2000-06-03  Jim Meyering  <meyering@lucent.com>
71464
71465         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71466         now that autoconf requires that.
71467
71468         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71469         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71470         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71471
71472 2000-06-03  Jim Meyering  <meyering@lucent.com>
71473
71474         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71475
71476 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71477
71478         * m4/glibc21.m4: New file.
71479         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71480
71481 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71482
71483         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71484         newer, don't install charset.alias.
71485         * lib/config.charset: Change the Linux/glibc rules so they become empty
71486         on glibc-2.1 or newer.
71487
71488 2000-06-02  Jim Meyering  <meyering@lucent.com>
71489
71490         * lib/mountlist.c: Back out last change.  Instead, do this...
71491         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71492         me_dummy member using the same `ignore'-testing code.
71493         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71494         fs_type strings.
71495         From Mark D. Roth.
71496
71497 2000-05-29  Jim Meyering  <meyering@lucent.com>
71498
71499         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71500         mounts with the `ignore' attribute.  Based on a patch from
71501         Mark D. Roth.
71502
71503 2000-05-28  Jim Meyering  <meyering@lucent.com>
71504
71505         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71506         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71507         * m4/stat.m4: Likewise.
71508         * m4/lstat.m4: Likewise.
71509         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71510
71511         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71512         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71513
71514 2000-05-26  Jim Meyering  <meyering@lucent.com>
71515
71516         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71517
71518 2000-05-24  Jim Meyering  <meyering@lucent.com>
71519
71520         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71521         autoconf requires that.
71522         * m4/lib-check.m4: Likewise.
71523         * m4/jm-macros.m4: Likewise.
71524         * m4/strftime.m4: Likewise.
71525
71526         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71527         AC_CHECK_DECLS, now that autoconf requires that.
71528
71529 2000-05-22  Jim Meyering  <meyering@lucent.com>
71530
71531         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71532         * m4/lstat.m4: Likewise.
71533
71534 2000-05-22  Jim Meyering  <meyering@lucent.com>
71535
71536         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71537
71538 2000-05-20  Jim Meyering  <meyering@lucent.com>
71539
71540         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71541         (jm_PREREQ): Use it.
71542
71543 2000-05-18  Jim Meyering  <meyering@lucent.com>
71544
71545         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71546         back, too, since it may have been modified by allocate_entry.
71547         (hash_delete): Rewrite to use neither the assignment operator
71548         nor the comma operator in an if-expression.
71549
71550 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71551
71552         * lib/closeout.c:
71553         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71554         Remove; no longer needed.
71555         "quotearg.h": Add include.
71556         (file_name): Do not bother to explicitly initialize to NULL; it's less
71557         efficient on some hosts.
71558         (close_stdout_status): Remove test as to whether stdout was already
71559         closed; it breaks for the case "echo x | sort >&-".
71560         Quote file name colons.
71561         Do not assume that _("write error") lacks format strings.
71562
71563 2000-05-15  Jim Meyering  <meyering@lucent.com>
71564
71565         * lib/version-etc.c (version_etc_copyright): Update the copyright
71566         string used in all --version output.
71567
71568 2000-05-14  Jim Meyering  <meyering@lucent.com>
71569
71570         * lib/closeout.c (close_stdout_set_file_name): New function.
71571         (close_stdout_status): Use new file-scoped global.
71572         Return right away if fstat says the stdout file descriptor is invalid.
71573         * lib/closeout.h (close_stdout_set_file_name): Declare.
71574
71575 2000-05-10  Jim Meyering  <meyering@lucent.com>
71576
71577         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71578         (close_stdout_set_status): New function.
71579         * lib/closeout.h (close_stdout_set_status): Declare.
71580
71581 2000-05-09  Jim Meyering  <meyering@lucent.com>
71582
71583         * m4/gettext.m4: Rename this...
71584         * m4/libintl.m4: ...to this.
71585
71586 2000-05-08  Jim Meyering  <meyering@lucent.com>
71587
71588         * lib/long-options.c: Don't include closeout.h.
71589         (parse_long_options): Don't call close_stdout for --version.
71590
71591 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71592
71593         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71594         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71595         2.1.3 bug.  This avoids a clash when files like regex.c define
71596         _GNU_SOURCE.
71597
71598 2000-05-06  Jim Meyering  <meyering@lucent.com>
71599
71600         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71601         (AC_REPLACE_FUNCS): Add strnlen.
71602
71603         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71604         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71605
71606         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71607         AC_SEARCH_LIBS call for nanosleep.
71608         (LIB_NANOSLEEP): Set and AC_SUBST.
71609
71610 2000-05-06  Jim Meyering  <meyering@lucent.com>
71611
71612         * lib/strnlen.c: Undefine __strnlen and strnlen.
71613         [!weak_alias]: Define __strnlen to strnlen.
71614
71615         * lib/atexit.c: New file, from libiberty.
71616
71617 2000-05-06  Jim Meyering  <meyering@lucent.com>
71618
71619         * lib/closeout.c (close_stdout_status): Also check for errors on the
71620         stderr stream.
71621
71622 2000-05-05  Jim Meyering  <meyering@lucent.com>
71623
71624         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71625         AC_SEARCH_LIBS call for clock_gettime.
71626         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71627
71628         * m4/search-libs.m4: Update from autoconf.
71629
71630         su doesn't work on Solaris 2.6.
71631         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71632         <shadow.h>.  Reported by Dragos Harabor.
71633
71634 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71635
71636         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71637         memcpy instead of xmalloc, xrealloc, path_concat.
71638         (locale_charset): Treat empty environment variables as absent.
71639         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71640
71641 2000-05-04  Jim Meyering  <meyering@lucent.com>
71642
71643         * lib/getopt.c: Update from glibc.
71644         * lib/obstack.c: Likewise.
71645         * lib/obstack.h: Likewise.
71646         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71647         file
71648
71649         * lib/regex.h: Likewise.
71650         * lib/strndup.c: Likewise.
71651         * lib/strnlen.c: New file, from glibc.
71652
71653 2000-05-03  Jim Meyering  <meyering@lucent.com>
71654
71655         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71656
71657 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71658
71659         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71660         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71661         compile-time test, rather than inspecting host and OS, to
71662         decide whether to define _LARGEFILE_SOURCE.
71663
71664 2000-05-01  Jim Meyering  <meyering@lucent.com>
71665
71666         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71667
71668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71669         Based on a patch from Bruno Haible.
71670
71671 2000-05-01  Jim Meyering  <meyering@lucent.com>
71672
71673         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71674
71675 2000-04-29  Jim Meyering  <meyering@lucent.com>
71676
71677         * lib/path-concat.c: Declare strdup only if it's not defined.
71678         * lib/canon-host.c: Likewise.
71679
71680 2000-04-28  Jim Meyering  <meyering@lucent.com>
71681
71682         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71683         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71684         is included first, then limits.h is included by locale.h by libintl.h.
71685         From John David Anglin.
71686
71687 2000-04-25  Jim Meyering  <meyering@lucent.com>
71688
71689         * lib/makepath.c (S_IRWXUGO): Define.
71690         (make_path): Always perform explicit chmod if MODE specifies any
71691         of the `special' permission bits.  Prompted by a bug report against
71692         install from Mate Wierdl and Joost van Baal.
71693
71694 2000-04-18  Jim Meyering  <meyering@lucent.com>
71695
71696         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71697         (jm_PREREQ): Use it.
71698
71699 2000-04-18  Jim Meyering  <meyering@lucent.com>
71700
71701         * lib/README: New file.
71702
71703         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71704         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71705
71706 2000-04-17  Jim Meyering  <meyering@lucent.com>
71707
71708         Get it right :-)
71709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71710         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71711         Suggestion from Akim Demaille.
71712
71713 2000-04-17  Jim Meyering  <meyering@lucent.com>
71714
71715         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71716         the definition of it to rpl_strftime also defined-away the system's
71717         declaration.
71718
71719 2000-04-15  Jim Meyering  <meyering@lucent.com>
71720
71721         Use `C' to denote so-called `contiguous' files, the same way
71722         that tar does.
71723         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71724         (ftypelet): Use S_ISCTG.
71725         From Michael Deutschmann.
71726
71727 2000-04-14  Jim Meyering  <meyering@lucent.com>
71728
71729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71730         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71731         clobbered.
71732
71733 2000-04-14  Jim Meyering  <meyering@lucent.com>
71734
71735         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71736
71737 2000-04-13  Jim Meyering  <meyering@lucent.com>
71738
71739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71740         AH_VERBATIM to insert required #ifndef into config.h.in.
71741         Suggestion from Akim Demaille.
71742
71743 2000-04-12  Jim Meyering  <meyering@lucent.com>
71744
71745         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71746         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71747         Christian Krackowizer.
71748
71749         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71750         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71751         (AC_SYS_LARGEFILE): Require.
71752         (AM_C_PROTOTYPES): Require.
71753
71754 2000-04-08  Jim Meyering  <meyering@lucent.com>
71755
71756         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71757         names don't conflict.  Reported by Eli Zaretskii.
71758
71759 2000-04-07  Jim Meyering  <meyering@lucent.com>
71760
71761         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71762         sys/types.h, to work around system header problems on AIX 3.2.5.
71763         From Bruno Haible.
71764
71765 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71766
71767         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71768         bug.  Deal with the different error behavior of Irix iconv.
71769
71770 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71771
71772         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71773         IRIX if the installer said otherwise.
71774
71775 2000-04-05  Jim Meyering  <meyering@lucent.com>
71776
71777         Portability tweaks required for ultrix4.3.
71778         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71779         (jm_CHECK_DECLS): Add getutent to the list of functions.
71780         (_jm_DECL_HEADERS): Add utmpx.h.
71781         From John David Anglin.
71782
71783         * m4/strftime.m4: Back out the 2000-04-02 change.
71784         Instead of that change, simply undefine putenv in the test program.
71785
71786 2000-04-05  Jim Meyering  <meyering@lucent.com>
71787
71788         Portability tweaks required for ultrix4.3.
71789         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71790         getutent.
71791         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71792         * lib/canon-host.c: Declare strdup.
71793         * lib/path-concat.c: Likewise.
71794         From John David Anglin.
71795
71796 2000-04-04  Jim Meyering  <meyering@lucent.com>
71797
71798         Be more DOS 8.3-friendly.
71799         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71800         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71801         * lib/Makefile.am: Reflect renaming.
71802         Reported by Eli Zaretskii.
71803
71804         Use a temporary file name that won't clash with `charset.alias'
71805         in the DOS 8.3 name space.
71806         * lib/Makefile.am (charset_tmp): Define.
71807         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71808         (uninstall-local): Likewise.
71809         Reported by Eli Zaretskii.
71810
71811 2000-04-03  Jim Meyering  <meyering@lucent.com>
71812
71813         * m4/gettext.m4: Fix typo in comment.
71814
71815         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71816         textutils/configure.in).  Suggestion from Paul Eggert.
71817         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71818
71819 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71820
71821         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71822         variable in the shell rather than using putenv, which isn't
71823         portable.  This avoids the configure-time inter-test dependency
71824         on the potentially-renamed putenv function.
71825
71826 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71827
71828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71829         before checking struct stat.st_blksize, so that
71830         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71831
71832 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71833
71834         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71835         since strftime.c uses HAVE_STRFTIME to decide whether to use
71836         the underlying strftime.
71837
71838 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71839
71840         * lib/time/strftime.c (my_strftime): Make sure we call the system
71841         strftime, not ourselves, when invoking the underlying strftime.
71842
71843 2000-03-24  Jim Meyering  <meyering@lucent.com>
71844
71845         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71846         (charset_alias): Define.
71847         (install-exec-local): Factor out common code.
71848         (uninstall-local): Split lines longer than 80.
71849         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71850         (SUFFIXES): Define.
71851         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71852         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71853
71854 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71855
71856         * lib/config.charset: Output a line containing "Packages using this
71857         file".
71858         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71859         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71860         ref-del.sed): New rules.
71861
71862 2000-03-17  Jim Meyering  <meyering@lucent.com>
71863
71864         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71865         Otherwise, include <strings.h>
71866
71867 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71868
71869         * lib/unicodeio.c (utf8_wctomb): New function.
71870         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71871         format instead of in UCS-4 with platform dependent endianness.
71872
71873 2000-03-10  Jim Meyering  <meyering@lucent.com>
71874
71875         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71876         From Marco Franzen.
71877
71878 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71879
71880         * lib/savedir.c (savedir): Work even if directory size is
71881         negative; this can happen with some screwy NFS configurations.
71882
71883 2000-03-06  Jim Meyering  <meyering@lucent.com>
71884
71885         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71886         if it's NULL (because we ran out of memory).  From Bruno Haible.
71887
71888 2000-03-05  Jim Meyering  <meyering@lucent.com>
71889
71890         * lib/localcharset.c ("path-concat.h"): Include.
71891         (get_charset_aliases): Use path_concat instead of ANSI string
71892         concatenation.
71893
71894         * lib/unicodeio.h (PARAMS): Define.
71895         Use it to guard prototype.
71896
71897 2000-03-04  Jim Meyering  <meyering@lucent.com>
71898
71899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71900         for lib/localcharset.c.
71901
71902 2000-03-04  Jim Meyering  <meyering@lucent.com>
71903
71904         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71905         installing into it.
71906         (uninstall-local): Uncomment this rule so `make distcheck' works
71907         once again.
71908
71909         * lib/unicodeio.c (<errno.h>): Include it.
71910         (errno): Declare if not defined.
71911
71912         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71913
71914         * lib/config.charset: New version, incorporating remarks from a linux
71915         i18n mailing list.  From Bruno Haible.
71916
71917 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71918
71919         * m4/codeset.m4: New file.
71920         * m4/iconv.m4: New file.
71921         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71922
71923 2000-03-03  Jim Meyering  <meyering@lucent.com>
71924
71925         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71926
71927 2000-03-02  Jim Meyering  <meyering@lucent.com>
71928
71929         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71930         the messages come out on separate lines.
71931
71932         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71933         rather than jm_CHECK_DECLARATIONS.
71934         * m4/decl.m4: Remove now-unused file.
71935
71936         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71937         geteuid.
71938
71939 2000-03-02  Jim Meyering  <meyering@lucent.com>
71940
71941         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71942
71943 2000-03-01  Jim Meyering  <meyering@lucent.com>
71944
71945         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71946         * lib/unicodeio.c: Likewise.
71947
71948 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71949
71950         * lib/config.charset: New file.
71951         * lib/localcharset.c: New file.
71952         * lib/unicodeio.h, lib/unicodeio.c: New files.
71953         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71954         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71955         (noinst_HEADERS): Add unicodeio.h.
71956         (all-local, install-exec-local, charset.alias): New targets.
71957
71958 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71959
71960         * lib/quotearg.c (ALERT_CHAR): New macro.
71961         (quotearg_buffer_restyled): Use it.
71962
71963 2000-02-27  Jim Meyering  <meyering@lucent.com>
71964
71965         * m4/check-decl.m4: Add getenv to the list.
71966
71967 2000-02-27  Jim Meyering  <meyering@lucent.com>
71968
71969         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71970         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71971
71972         * lib/backupfile.c: Guard inclusion of stdlib.h with
71973         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71974         Declare malloc if needed.
71975
71976         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71977         `#ifndef HAVE_DECL..'
71978         now that autoconf always defines the HAVE_DECL_ symbols.
71979         * lib/human.c: Likewise.
71980         * lib/same.c: Likewise.
71981         * lib/strtoumax.c: Likewise.
71982
71983         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71984         declaration check was not run.
71985         * lib/hash.c: Likewise.
71986         * lib/human.c: Likewise.
71987         * lib/same.c: Likewise.
71988         * lib/strtoumax.c: Likewise.
71989
71990         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71991         `.', then first look up the entire `.'-containing string as a login
71992         name.
71993
71994 2000-02-23  Jim Meyering  <meyering@lucent.com>
71995
71996         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71997         in place of my hack.
71998
71999 2000-02-18  Paul Eggert  <eggert@twinsun.com>
72000
72001         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
72002         (textint): New typedef.
72003         (parser_control): Member year changed from int to textint.
72004         All uses changed.
72005         (YYSTYPE): Removed; replaced by %union with int and textint members.
72006         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
72007         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
72008         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
72009         (tSNUMBER, tUNUMBER): Now of type <textintval>.
72010         (date, number, to_year): Use width of number in digits, not its value,
72011         to determine whether it's a 2-digit year, or a 2-digit time.
72012         (yylex): Store number of digits of numeric tokens.
72013         Reported by John Kendall.
72014
72015         (parser_control): Changed from struct parser_control to typedef (for
72016         consistency).  All uses changed.
72017
72018         (tID): Removed; not used.
72019         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
72020
72021 2000-02-14  Paul Eggert  <eggert@twinsun.com>
72022
72023         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
72024         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
72025
72026 2000-02-12  Jim Meyering  <meyering@lucent.com>
72027
72028         * lib/userspec.c (ISDIGIT): Define it.
72029         (isdigit): Remove definition.
72030         (is_number): Use ISDIGIT, not isdigit.
72031         <libintl.h>: Include.
72032         (_ and N_): Define.
72033         (parse_user_spec): Mark translatable strings.
72034
72035 2000-02-10  Jim Meyering  <meyering@lucent.com>
72036
72037         With these changes, nanosleep.[ch] are finally enough like the other
72038         lib/* replacement files to compile on a few more losing systems.
72039
72040         * lib/nanosleep.h: Don't include config.h.
72041         Remove prototype from declaration of nanosleep.
72042         (PARAMS): Remove now-unneeded definition.
72043         * lib/nanosleep.c: #undef nanosleep.
72044         (rpl_nanosleep): Rename from nanosleep.
72045
72046 2000-02-10  Jim Meyering  <meyering@lucent.com>
72047
72048         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
72049         gnu_nanosleep to rpl_nanosleep.
72050
72051 2000-02-09  Jim Meyering  <meyering@lucent.com>
72052
72053         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
72054         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
72055
72056 2000-02-08  Akim Demaille  <akim@epita.fr>
72057
72058         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
72059         `[' and `]' and remove uses of `changequote'.
72060         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
72061         (AC_SYS_LARGEFILE): Likewise.
72062         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72063         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
72064         of changequote.
72065         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
72066         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
72067         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
72068         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
72069
72070 2000-02-05  Jim Meyering  <meyering@lucent.com>
72071
72072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
72073         Remove explicit use of AC_HEADER_TIME.  It is required by
72074         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
72075         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
72076         in autoconf whereby the expansion of the latter ended up preceding
72077         the expansion of its prerequisite, AC_HEADER_TIME.
72078         Reported by Volker Borchert.
72079
72080 2000-02-03  Jim Meyering  <meyering@lucent.com>
72081
72082         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
72083
72084 2000-02-03  Jim Meyering  <meyering@lucent.com>
72085
72086         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
72087         rather than with `#if HAVE_UTMPNAME'.
72088
72089 2000-02-02  Jim Meyering  <meyering@lucent.com>
72090
72091         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
72092         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
72093         Reported by Eli Zaretskii.
72094
72095 2000-02-01  Jim Meyering  <meyering@lucent.com>
72096
72097         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
72098
72099 2000-01-31  Jim Meyering  <meyering@lucent.com>
72100
72101         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
72102         functions.  Add the time.h and sys/time.h headers along with the
72103         AC_REQUIRE'ment of AC_HEADER_TIME.
72104
72105 2000-01-31  Jim Meyering  <meyering@lucent.com>
72106
72107         * lib/nanosleep.h (nanosleep): Guard declaration with
72108         `#if ! HAVE_DECL_NANOSLEEP'.
72109         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
72110         the declaration in that vendor's sys/timers.h.
72111         Reported by Christian Krackowizer.
72112
72113         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
72114         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
72115         (ISPRINT): Likewise.
72116         Reported by Tom Tromey.
72117
72118 2000-01-30  Jim Meyering  <meyering@lucent.com>
72119
72120         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72121
72122         * m4/prereq.m4 (utmp_includes): Define.
72123         Check for ut_user and ut_name members in both struct utmpx
72124         and struct utmp.
72125
72126 2000-01-30  Jim Meyering  <meyering@lucent.com>
72127
72128         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72129         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72130         header files where only utmpx.ut_user is declared.
72131
72132         * lib/readutmp.h (UT_USER): Define.
72133
72134 2000-01-29  Jim Meyering  <meyering@lucent.com>
72135
72136         * m4/lib-check.m4: New file containing library-related checks from
72137         fileutils and sh-utils (textutils had none).
72138
72139 2000-01-28  Jim Meyering  <meyering@lucent.com>
72140
72141         * m4/perl.m4: Change format of warning message to look more like that
72142         from the missing script.  Suggestion from François Pinard.
72143
72144 2000-01-25  Jim Meyering  <meyering@lucent.com>
72145
72146         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72147         well as time.h in the compile check.
72148         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72149         Fix typo in cross-compiling case: s/yes/no/.
72150
72151 2000-01-23  Jim Meyering  <meyering@lucent.com>
72152
72153         * m4/jm-macros.m4: Move df-related tests here from
72154         fileutils/configure.in
72155
72156         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72157         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72158
72159         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72160         s/space/ac_fsusage_space/.
72161         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72162
72163         * m4/ftruncate.m4: New file (derived from part of
72164         fileutils/configure.in).
72165         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72166         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72167
72168         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72169         AC_SUBST these here, rather than just in sh-util/configure.in, so
72170         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72171         all the same.
72172         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72173         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72174         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72175         (AC_SUBST(POW_LIBM)): Likewise.
72176         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72177
72178 2000-01-23  Jim Meyering  <meyering@lucent.com>
72179
72180         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72181         obstack.c.
72182
72183 2000-01-22  Jim Meyering  <meyering@lucent.com>
72184
72185         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72186
72187         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72188
72189         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72190         configure.in
72191         (AC_CHECK_HEADERS): Likewise for sh-utils.
72192         (AC_CHECK_HEADERS): Likewise for textutils.
72193         Merge the three lists of headers.
72194
72195         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72196         from fileutils' configure.in.
72197
72198         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72199         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72200         check-decl.m4.
72201
72202         * m4/check-decl.m4: Use #if rather than #ifdef.
72203         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72204         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72205         (_jm_DECL_HEADERS): Define new function.
72206         (jm_CHECK_DECLARATIONS): Require it.
72207
72208 2000-01-22  Jim Meyering  <meyering@lucent.com>
72209
72210         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72211         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72212         Required for some AIX systems.  Reported by Christian Krackowizer.
72213         [TESTING] (main): New function.
72214
72215         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72216         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72217         letters.
72218
72219         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72220         iswprint.
72221
72222         * lib/strverscmp.c (ISDIGIT): Define.
72223         (strverscmp): Use ISDIGIT, not isdigit.
72224
72225 2000-01-19  Jim Meyering  <meyering@lucent.com>
72226
72227         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72228         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72229         defines `struct timespec' in <sys/time.h>
72230
72231         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72232         Thanks to Akim for explaining.
72233
72234 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72235
72236         * lib/nanosleep.c (nanosleep):
72237         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72238         POSIX.1 doesn't require SA_INTERRUPT and some systems
72239         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72240         it's been part of POSIX.1 since day 1 (in 1988).
72241
72242 2000-01-17  Jim Meyering  <meyering@lucent.com>
72243
72244         * lib/interlock: Remove unused file.  Reported by François Pinard.
72245
72246 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72247
72248         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72249         alert, backslash, formfeed, and vertical tab unnecessarily in
72250         shell quoting style.
72251
72252 2000-01-16  Jim Meyering  <meyering@lucent.com>
72253
72254         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72255         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72256         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72257         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72258
72259 2000-01-16  Jim Meyering  <meyering@lucent.com>
72260
72261         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72262         because the latter didn't work.
72263
72264 2000-01-15  Jim Meyering  <meyering@lucent.com>
72265
72266         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72267         (AC_REPLACE_FUNCS): Add memcpy and memset.
72268         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72269         Add strpbrk.
72270         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72271
72272 2000-01-12  Jim Meyering  <meyering@lucent.com>
72273
72274         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72275         (jm_PREREQ): Use it.
72276         (jm_PREREQ_READUTMP): New macro.
72277         (jm_PREREQ): Use it.
72278
72279 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72280
72281         Quote multibyte characters correctly.
72282         * m4/c-bs-a.m4: New file.
72283         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72284         (jm_PREREQ): Use it.
72285
72286 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72287
72288         * m4/uintmax_t.m4: Port to autoconf 2.13.
72289
72290 2000-01-08  Jim Meyering  <meyering@ascend.com>
72291
72292         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72293         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72294
72295 2000-01-04  Jim Meyering  <meyering@ascend.com>
72296
72297         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72298         jm_STRUCT_DIRENT_D_TYPE.
72299         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72300         jm_STRUCT_DIRENT_D_INO.
72301         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72302         jm_STRUCT_UTIMBUF.
72303         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72304         renamings.
72305         * m4/utime.m4: Likewise.
72306
72307         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72308         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72309
72310 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72311
72312         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72313         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72314
72315 2000-01-02  Jim Meyering  <meyering@ascend.com>
72316
72317         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72318         remember if this is necessary.
72319
72320 1999-12-26  Jim Meyering  <meyering@ascend.com>
72321
72322         * m4/jm-macros.m4: Use it here.
72323         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72324
72325 1999-12-23  Jim Meyering  <meyering@ascend.com>
72326
72327         * m4/jm-macros.m4: Check for clock_gettime (moved from
72328         fileutils/configure.in)
72329         Check for gettimeofday.
72330
72331 1999-12-20  Jim Meyering  <meyering@ascend.com>
72332
72333         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72334         autoconf-2.14a-1999-12-20.
72335
72336 1999-12-19  Jim Meyering  <meyering@ascend.com>
72337
72338         * m4/lstat-slash.m4: New file.
72339         * m4/jm-macros.m4: Use the new macro:
72340         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72341
72342 1999-12-07  Jim Meyering  <meyering@ascend.com>
72343
72344         * m4/perl.m4: Require that File::Compare be available, too.
72345         Too many systems seem to lack it.
72346
72347         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72348         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72349
72350 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72351
72352         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72353         problem with the QNX 4.25 shell, which doesn't propagate exit
72354         status of failed commands inside shell assignments.
72355
72356 1999-11-17  Jim Meyering  <meyering@ascend.com>
72357
72358         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72359
72360 1999-11-07  Jim Meyering  <meyering@ascend.com>
72361
72362         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72363
72364 1999-11-06  Jim Meyering  <meyering@ascend.com>
72365
72366         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72367         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72368
72369 1999-11-05  Jim Meyering  <meyering@ascend.com>
72370
72371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72372         configure.in of textutils, fileutils, and sh-utils into this one
72373         (shared between those packages) file.
72374         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72375         AC_STRUCT_ST_BLKSIZE.
72376
72377 1999-11-03  Jim Meyering  <meyering@ascend.com>
72378
72379         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72380         of AC_CHECK_TYPE checks includes unistd.h.
72381         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72382         Suggestion from Akim Demaille.
72383
72384 1999-10-30  Jim Meyering  <meyering@ascend.com>
72385
72386         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72387         m4-quoted string.
72388         * m4/ls-mntd-fs.m4: Likewise.
72389         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72390         * m4/jm-winsz1.m4: Likewise.
72391
72392         * m4/const.m4: Remove file, since the fix made it into the experimental
72393         version of autoconf.
72394         * m4/mktime.m4: Likewise.
72395
72396         * m4/check-type.m4: Remove file, now that the latest version of
72397         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72398
72399         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72400         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72401         AC_CHECK_TYPE.
72402
72403 1999-10-04  Jim Meyering  <meyering@ascend.com>
72404
72405         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72406
72407 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72408
72409         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72410         2.95.1 bug with HP-UX 10.20.
72411
72412 1999-09-17  Jim Meyering  <meyering@ascend.com>
72413
72414         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72415         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72416         due to missing strdup (against sh-utils-2.0).
72417
72418 1999-08-29  Jim Meyering  <meyering@ascend.com>
72419
72420         * m4/jm-macros.m4: Require jm_BISON.
72421         * m4/bison.m4: New file.
72422
72423 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72424
72425         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72426         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72427
72428 1999-08-05  Jim Meyering  <meyering@ascend.com>
72429
72430         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72431         to avoid conflicts with `conftest' on 8+3 filesystems.
72432         Suggestion from Eli Zaretskii.
72433
72434 1999-08-04  Jim Meyering  <meyering@ascend.com>
72435
72436         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72437         fileutils and sh-utils (textutils's getline test was inadequate).
72438         (AM_FUNC_GETLINE): Run this test.
72439         (AC_CHECK_FUNCS): Check for getdelim.
72440         Reported by Bob Proulx.
72441
72442 1999-08-02  Jim Meyering  <meyering@ascend.com>
72443
72444         * m4/jm-macros.m4: Add a comment.
72445
72446 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72447
72448         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72449         <inttypes.h> defines strtoumax as a macro (and not as a
72450         function).
72451
72452 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72453
72454         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72455         that we can shift, multiply and divide unsigned long long
72456         values; Ultrix cc can't do it.
72457
72458 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72459
72460         * m4/mktime.m4: New file, which is a preview of what should appear
72461         in the next public autoconf release.
72462
72463 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72464
72465         * m4/lfs.m4: Remove this file.
72466         * m4/largefile.m4: New file.  It contains the old contents of
72467         lfs.m4, except that all names with prefix AC_LFS have been
72468         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72469         compatible with future autoconf versions.  Also, some minor m4
72470         quoting problems have been fixed.
72471
72472 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72473
72474         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72475         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72476         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72477         and simplify the shell code.
72478
72479 1999-08-01  Jim Meyering  <meyering@ascend.com>
72480
72481         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72482         m4.
72483
72484 1999-07-20  Jim Meyering  <meyering@ascend.com>
72485
72486         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72487
72488 1999-07-15  Jim Meyering  <meyering@ascend.com>
72489
72490         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72491
72492 1999-05-22  Jim Meyering  <meyering@ascend.com>
72493
72494         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72495
72496 1999-05-20  Jim Meyering  <meyering@ascend.com>
72497
72498         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72499         Add a colon after each `then' in case $4 is empty.
72500
72501 1999-05-16  Jim Meyering  <meyering@ascend.com>
72502
72503         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72504
72505 1999-05-10  Jim Meyering  <meyering@ascend.com>
72506
72507         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72508
72509         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72510         AC_FUNC_MKTIME.
72511
72512 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72513
72514         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72515
72516 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72517
72518         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72519         not CPPFLAGS, so that linking works correctly in IRIX.
72520
72521 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72522
72523         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72524
72525 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72526
72527         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72528         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72530         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72531         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72532
72533         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72534
72535 1999-04-20  Jim Meyering  <meyering@ascend.com>
72536
72537         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72538         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72539         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72540
72541 1999-04-18  Jim Meyering  <meyering@ascend.com>
72542
72543         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72544         * m4/jm-macros.m4: Use it.
72545
72546 1999-04-06  Jim Meyering  <meyering@ascend.com>
72547
72548         * m4/strftime.m4: Remove test for %f.
72549
72550 1999-03-29  Jim Meyering  <meyering@ascend.com>
72551
72552         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72553         superset of the AC_TYPE_* checks in the textutils, fileutils,
72554         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72555         AC_TYPE_PID_T.
72556
72557 1999-03-28  Jim Meyering  <meyering@ascend.com>
72558
72559         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72560         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72561         replaced e.g., in the *.sh files of the sh-utils.
72562
72563 1999-03-20  Jim Meyering  <meyering@ascend.com>
72564
72565         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72566         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72567         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72568
72569 1999-03-19  Jim Meyering  <meyering@ascend.com>
72570
72571         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72572
72573 1999-03-12  Jim Meyering  <meyering@ascend.com>
72574
72575         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72576
72577 1999-03-07  Jim Meyering  <meyering@ascend.com>
72578
72579         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72580         declared.
72581
72582 1999-02-17  Jim Meyering  <meyering@ascend.com>
72583
72584         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72585         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72586
72587 1999-02-07  Jim Meyering  <meyering@ascend.com>
72588
72589         * m4/group-member.m4: New file -- extracted from sh-utils'
72590         configure.in.
72591
72592         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72593         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72594
72595 1999-02-06  Jim Meyering  <meyering@ascend.com>
72596
72597         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72598         * m4/fnmatch.m4: Likewise.
72599         * m4/getgroups.m4: Likewise.
72600         * m4/lstat.m4: Likewise.
72601         * m4/malloc.m4: Likewise.
72602         * m4/putenv.m4: Likewise.
72603         * m4/realloc.m4: Likewise.
72604         * m4/regex.m4: Likewise.
72605         * m4/stat.m4: Likewise.
72606         * m4/strftime.m4: Likewise.
72607         Suggestion from Alain Magloire.
72608
72609         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72610         * m4/fnmatch.m4: Likewise.
72611         * m4/getgroups.m4: Likewise.
72612         * m4/getline.m4: Likewise.
72613         * m4/lstat.m4: Likewise.
72614         * m4/malloc.m4: Likewise.
72615         * m4/memcmp.m4: Likewise.
72616         * m4/putenv.m4: Likewise.
72617         * m4/realloc.m4: Likewise.
72618         * m4/regex.m4: Likewise.
72619         * m4/stat.m4: Likewise.
72620         * m4/strftime.m4: Likewise.
72621         Suggestion from Alain Magloire.
72622
72623         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72624         an argument.
72625
72626         * m4/regex.m4: Add a run-time Test for proper operation of
72627         re_compile_pattern.
72628
72629 1999-01-31  Jim Meyering  <meyering@ascend.com>
72630
72631         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72632
72633 1999-01-30  Jim Meyering  <meyering@ascend.com>
72634
72635         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72636
72637         * m4/jm-mktime.m4: Make this a wrapper around the official
72638         AM_FUNC_MKTIME rather than my private copy, now that the official one
72639         is up to date.
72640         * m4/mktime.m4: Remove file.
72641
72642         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72643         * m4/uptime.m4: Likewise.
72644         * m4/uintmax_t.m4: Likewise.
72645
72646 1999-01-28  Jim Meyering  <meyering@ascend.com>
72647
72648         * m4/jm-macros.m4: Use jm_AFS.
72649         * m4/afs.m4: New file (from fileutils' configure.in).
72650
72651         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72652         * m4/chown.m4: Likewise.
72653         * m4/d-ino.m4: Likewise.
72654         * m4/d-type.m4: Likewise.
72655         * m4/fnmatch.m4: Likewise.
72656         * m4/getgroups.m4: Likewise.
72657         * m4/gettext.m4: Likewise.
72658         * m4/jm-mktime.m4: Likewise.
72659         * m4/jm-winsz2.m4: Likewise.
72660         * m4/lcmessage.m4: Likewise.
72661         * m4/ls-mntd-fs.m4: Likewise.
72662         * m4/malloc.m4: Likewise.
72663         * m4/memcmp.m4: Likewise.
72664         * m4/putenv.m4: Likewise.
72665         * m4/realloc.m4: Likewise.
72666         * m4/st_mtim.m4: Likewise.
72667         * m4/strftime.m4: Likewise.
72668
72669 1999-01-16  Jim Meyering  <meyering@ascend.com>
72670
72671         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72672         (ARGMATCH_DIE_DECL): Define.
72673
72674 1999-01-12  Jim Meyering  <meyering@ascend.com>
72675
72676         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72677         Reported by Lars Hecking.
72678
72679 1999-01-10  Jim Meyering  <meyering@ascend.com>
72680
72681         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72682         gross kludge.
72683         * m4/inttypes_h.m4: Likewise.
72684         * m4/lstat.m4: Likewise.
72685         * m4/malloc.m4: Likewise.
72686         * m4/readdir.m4: Likewise.
72687         * m4/realloc.m4: Likewise.
72688         * m4/st_dm_mode.m4: Likewise.
72689         * m4/stat.m4: Likewise.
72690         * m4/utimbuf.m4: Likewise.
72691         * m4/utimes.m4: Likewise.
72692
72693         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72694         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72695         comments in config.h.in are meaningful.
72696
72697         * m4/jm-macros.m4: Require autoconf-2.13 here.
72698
72699         * m4/regex.m4: By default, don't use the included regex.c on systems
72700         with glibc 2.  Suggestion from Uli Drepper.
72701
72702 1999-01-02  Jim Meyering  <meyering@ascend.com>
72703
72704         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72705
72706 1998-12-18  Jim Meyering  <meyering@ascend.com>
72707
72708         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72709         Based on a suggestion from Lars Hecking.
72710
72711 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72712
72713         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72714
72715 1998-11-16  Jim Meyering  <meyering@ascend.com>
72716
72717         * m4/lfs.m4: Double-quote the `uname...` expression.
72718
72719 1998-11-14  Jim Meyering  <meyering@ascend.com>
72720
72721         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72722         * m4/stat.m4: Likewise.
72723
72724 1998-11-03  Jim Meyering  <meyering@ascend.com>
72725
72726         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72727         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72728
72729 1998-10-18  Jim Meyering  <meyering@ascend.com>
72730
72731         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72732
72733 1998-10-17  Jim Meyering  <meyering@ascend.com>
72734
72735         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72736         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72737         calls for those previously hard-coded headers.  Instead, take a new
72738         parameter.
72739         (jm_CHECK_DECLARATIONS): Reflect interface change.
72740         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72741         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72742
72743         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72744
72745 1998-10-14  Jim Meyering  <meyering@ascend.com>
72746
72747         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72748         instead of "TZ=America/Vancouver".  From Paul Eggert.
72749
72750 1998-10-11  Jim Meyering  <meyering@ascend.com>
72751
72752         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72753         This adds a test for a recently added compatibility fix for mktime.c.
72754         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72755
72756 1998-09-27  Jim Meyering  <meyering@ascend.com>
72757
72758         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72759
72760         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72761         ../configure.in, including a change from Gordon Matzigkeit to allow
72762         cross-compiling for the Hurd.
72763
72764         * m4/glibc.m4: New file/macro to test for the GNU C Library
72765         versions 1 and 2.  From Gordon Matzigkeit.
72766         Indent.
72767
72768 1998-09-21  Jim Meyering  <meyering@ascend.com>
72769
72770         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72771
72772 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72773
72774         Port nanosecond-resolution times to UnixWare 2.1.2 and
72775         pedantic Solaris 2.6.
72776
72777         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72778         AC_STRUCT_ST_MTIM.
72779         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72780         Generate name of ns member, instead of just 1 or undef.
72781         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72782
72783 1998-08-15  Jim Meyering  <meyering@ascend.com>
72784
72785         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72786         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72787         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72788         instead of jm_TYPE_SSIZE_T.
72789
72790 1998-08-12  Jim Meyering  <meyering@ascend.com>
72791
72792         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72793
72794 1998-08-02  Jim Meyering  <meyering@ascend.com>
72795
72796         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72797         in acconfig.h manually.
72798
72799 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72800
72801         * m4/st_mtim.m4: New file.
72802
72803 1998-07-28  Jim Meyering  <meyering@ascend.com>
72804
72805         * m4/utimes.m4: Undef stat.
72806
72807 1998-07-25  Jim Meyering  <meyering@ascend.com>
72808
72809         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72810         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72811
72812 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72813
72814         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72815         uid and gid actually remain unchanged.
72816
72817 1998-07-07  Jim Meyering  <meyering@ascend.com>
72818
72819         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72820
72821 1998-07-04  Jim Meyering  <meyering@ascend.com>
72822
72823         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72824         to prove that this macro can be used in packages without regex.c.
72825
72826 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72827
72828         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72829         is to be used.
72830
72831 1998-07-03  Jim Meyering  <meyering@ascend.com>
72832
72833         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72834
72835         * m4/gettext.m4: New file -- from gettext-0.10.35.
72836         * m4/lcmessage.m4: Likewise.
72837         * m4/progtest.m4: Likewise.
72838
72839         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72840         * m4/jm-macros.m4: Require the new macro.
72841
72842 1998-06-29  Jim Meyering  <meyering@ascend.com>
72843
72844         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72845         for the definition of NGROUPS (used in a system header included
72846         by sys/mount.h).
72847
72848 1998-06-28  Jim Meyering  <meyering@ascend.com>
72849
72850         * m4/ls-mntd-fs.m4: New file.
72851         * m4/fstypename.m4: New file.
72852
72853         * m4/jm-macros.m4: Require the new macro.
72854         * m4/jm-glibc-io.m4: New file.
72855
72856 1998-05-19  Jim Meyering  <meyering@ascend.com>
72857
72858         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72859         * m4/lchown.m4: New file.
72860
72861         * m4/Makefile.am.in: New file.
72862         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72863
72864 1998-05-14  Jim Meyering  <meyering@ascend.com>
72865
72866         * m4/Makefile.am (EXTRA_DIST): Add them.
72867         * m4/jm-macros.m4: New file.
72868         * m4/utimbuf.m4: New file.
72869
72870 1998-05-12  Jim Meyering  <meyering@ascend.com>
72871
72872         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72873
72874 1998-05-11  Jim Meyering  <meyering@ascend.com>
72875
72876         * m4/isc-posix.m4: New file.
72877
72878 1998-05-10  Jim Meyering  <meyering@ascend.com>
72879
72880         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72881
72882 1998-05-09  Jim Meyering  <meyering@ascend.com>
72883
72884         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72885         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72886         with automake.
72887
72888         * m4/ssize_t.m4: New file.
72889         * m4/mktime.m4: Remove file -- the new automake has this now.
72890
72891 1998-04-26  Jim Meyering  <meyering@ascend.com>
72892
72893         * m4/assert.m4: New file.
72894         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72895
72896 1998-04-05  Jim Meyering  <meyering@ascend.com>
72897
72898         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72899         (jm_PREREQ): Use it here.
72900
72901 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72902
72903         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72904         in acconfig.h.
72905
72906 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72907
72908         * m4/prereq.m4: New file.
72909         * m4/error.m4: New file.
72910         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72911
72912 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72913
72914         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72915         cache-check for the same variable -- that defeated the purpose of
72916         the test; the test program was never run.  This was a problem only
72917         on systems with losing getline functions -- HP-UX 10.20 is one.
72918         Reported by Bjorn Helgaas.
72919
72920 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72921
72922         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72923
72924 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72925
72926         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72927
72928         * m4/const.m4: New file.  Use an initializer in this declaration
72929         typedef int charset[2]; const charset x;
72930         Reported by Bob Glickstein.
72931
72932 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72933
72934         * m4/chown.m4: Fix reversed types on -1 args to chown.
72935         From Kaveh Ghazi.
72936
72937 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72938
72939         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72940         Add lseek and memchr.
72941
72942         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72943         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72944         have a 20-character limit on names.
72945
72946 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72947
72948         * m4/inttypes_h.m4: New file.
72949         * m4/uintmax_t.m4: New file.
72950         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72951
72952
72953         -----
72954
72955         Local Variables:
72956         coding: utf-8
72957         End:
72958
72959         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72960
72961         Copying and distribution of this file, with or without
72962         modification, are permitted provided the copyright notice
72963         and this notice are preserved.